@ganpatiinfo/gids-core-web 10.0.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/index.css +260 -0
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.d.ts +11 -0
- package/dist/gids-action-bar.js +1 -0
- package/dist/gids-activity-gauge.d.ts +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-bar-chart.d.ts +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-calendar-header-panel.d.ts +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.d.ts +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.d.ts +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.d.ts +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.d.ts +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.d.ts +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.d.ts +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.d.ts +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.d.ts +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.d.ts +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.d.ts +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.d.ts +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.d.ts +11 -0
- package/dist/gids-filter.js +1 -0
- package/dist/gids-icon.d.ts +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.d.ts +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-level-gauge.d.ts +1 -1
- package/dist/gids-level-gauge.js +1 -1
- package/dist/gids-line-chart.d.ts +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-notification.d.ts +1 -1
- package/dist/gids-notification.js +1 -1
- package/dist/gids-overflow-container.d.ts +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.d.ts +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.d.ts +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.d.ts +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.d.ts +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-progress-circle.d.ts +1 -1
- package/dist/gids-progress-circle.js +1 -1
- package/dist/gids-scrim.d.ts +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-snackbar.d.ts +1 -1
- package/dist/gids-snackbar.js +1 -1
- package/dist/gids-tab-item.d.ts +11 -0
- package/dist/gids-tab-item.js +1 -0
- package/dist/gids-tab.d.ts +11 -0
- package/dist/gids-tab.js +1 -0
- package/dist/gids-text-field.d.ts +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.d.ts +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.d.ts +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{p-h6alWGT8.js → p-5VIPb1eU.js} +1 -1
- package/dist/{p-BiPAgxAQ.js → p-8tOn5SjU.js} +1 -1
- package/dist/{p-Bmb-HiXg.js → p-B1Jgtjhu.js} +1 -1
- package/dist/{p-B81J5HCC.js → p-BYDimyG-.js} +1 -1
- package/dist/p-Bf3p-DY2.js +1 -0
- package/dist/{p-tyIgTtUC.js → p-BfnzH6wp.js} +1 -1
- package/dist/p-Bj28yqMD.js +1 -0
- package/dist/{p-CJzporPT.js → p-C-cUL-aA.js} +1 -1
- package/dist/{p-BvYnawkJ.js → p-C7ifjRCE.js} +1 -1
- package/dist/p-CHGTBObD.js +1 -0
- package/dist/{p-D_wcwB7E.js → p-CaauwQNd.js} +1 -1
- package/dist/p-Ciw-O9qN.js +1 -0
- package/dist/{p-quZYWCxU.js → p-CoS0NuDU.js} +1 -1
- package/dist/{p-BnL97lOW.js → p-D4Pimu_8.js} +1 -1
- package/dist/p-D6lxqcxP.js +1 -0
- package/dist/p-DMNS1d8v.js +1 -0
- package/dist/{p-uqSjmNkw.js → p-Degg_WJz.js} +1 -1
- package/dist/p-Dg2yoUxw.js +1 -0
- package/dist/{p-CIP0xyhD.js → p-DiNad9Px.js} +1 -1
- package/dist/{p-D93TNeOt.js → p-DoPuGtJd.js} +1 -1
- package/dist/{p-DfFqFdmS.js → p-Doi8Yizl.js} +1 -1
- package/dist/{p-9_mrQ7ac.js → p-Jdpe4Sgj.js} +1 -1
- package/dist/p-UVmSPzTd.js +1 -0
- package/dist/p-UxDcM-C5.js +1 -0
- package/dist/{p-CPSHPtGE.js → p-bPPm7cuw.js} +1 -1
- package/dist/p-qb1aWgjh.js +1 -0
- package/dist/p-qrjEbv6g.js +1 -0
- package/dist/p-xITwQAMz.js +1 -0
- package/dist/types/components/html/GidsButtonGroup/GidsButtonGroup.d.ts +2 -2
- package/dist/types/components/webComponents/GidsActionBar/GidsActionBar.d.ts +59 -0
- package/dist/types/components/webComponents/GidsFilter/GidsFilter.d.ts +55 -0
- package/dist/types/components/webComponents/GidsTab/GidsTab.d.ts +17 -0
- package/dist/types/components/webComponents/GidsTabItem/GidsTabItem.d.ts +29 -0
- package/dist/types/components/webComponents/GidsToggleButton/GidsToggleButton.d.ts +5 -3
- package/dist/types/components.d.ts +381 -5
- package/dist-bundled/es/gids-action-bar.js +177 -0
- package/dist-bundled/es/gids-activity-gauge.js +1 -1
- package/dist-bundled/es/gids-bar-chart.js +4 -4
- package/dist-bundled/es/gids-calendar-header-panel.js +4 -4
- package/dist-bundled/es/gids-calendar-month-list.js +3 -3
- package/dist-bundled/es/gids-calendar-year-list.js +3 -3
- package/dist-bundled/es/gids-calendar.js +34 -34
- package/dist-bundled/es/gids-chart-legend-item.js +3 -3
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +22 -22
- package/dist-bundled/es/gids-chevron-button.js +9 -9
- package/dist-bundled/es/gids-dot.js +1 -1
- package/dist-bundled/es/gids-dropdown-field.js +9 -9
- package/dist-bundled/es/gids-dropdown-picker.js +2 -2
- package/dist-bundled/es/gids-dropdown.js +4 -4
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-filter.js +6 -0
- package/dist-bundled/es/gids-icon.js +4 -4
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-level-gauge.js +4 -4
- package/dist-bundled/es/gids-line-chart.js +1 -1
- package/dist-bundled/es/gids-notification.js +1 -1
- package/dist-bundled/es/gids-overflow-container.js +9 -9
- package/dist-bundled/es/gids-overlay-provider.js +12 -12
- package/dist-bundled/es/gids-password-field.js +48 -48
- package/dist-bundled/es/gids-pie-chart.js +3 -3
- package/dist-bundled/es/gids-popover.js +5 -5
- package/dist-bundled/es/gids-progress-circle.js +1 -1
- package/dist-bundled/es/gids-scrim.js +3 -3
- package/dist-bundled/es/gids-snackbar.js +1 -1
- package/dist-bundled/es/gids-tab-item.js +100 -0
- package/dist-bundled/es/gids-tab.js +63 -0
- package/dist-bundled/es/gids-text-field.js +17 -17
- package/dist-bundled/es/gids-toggle-button.js +4 -44
- package/dist-bundled/es/gids-tooltip.js +2 -2
- package/dist-bundled/es/index.js +3 -3
- package/dist-bundled/es/nonEmpty-B284_5ai.js +4 -0
- package/dist-bundled/es/{p-h6alWGT8-CSY2g3c8.js → p-5VIPb1eU-MCAo8JCp.js} +8 -8
- package/dist-bundled/es/{p-BiPAgxAQ-BtMBQpJY.js → p-8tOn5SjU-D9rZ28cf.js} +11 -11
- package/dist-bundled/es/{p-Bmb-HiXg-MyHWdhpw.js → p-B1Jgtjhu-B_VYp-ZP.js} +15 -15
- package/dist-bundled/es/{p-B81J5HCC-Bkt2yXKi.js → p-BYDimyG--DBCLrqDJ.js} +3 -3
- package/dist-bundled/es/p-Bf3p-DY2-CPqEc-vc.js +672 -0
- package/dist-bundled/es/{p-tyIgTtUC-C8jR4A5G.js → p-BfnzH6wp-BfLC7Nak.js} +4 -4
- package/dist-bundled/es/p-Bj28yqMD-Dz1SWSqM.js +44 -0
- package/dist-bundled/es/{p-CJzporPT-I_OdjJsQ.js → p-C-cUL-aA-2jsvw-Lr.js} +9 -9
- package/dist-bundled/es/{p-BvYnawkJ-DohV9UNG.js → p-C7ifjRCE-CRlorwoN.js} +10 -10
- package/dist-bundled/es/{p-DKsrt7dx-ImYLc4xz.js → p-CHGTBObD-EN4cCwtX.js} +3 -3
- package/dist-bundled/es/{p-D_wcwB7E-d3jYxfod.js → p-CaauwQNd-D6_PbcRr.js} +1 -1
- package/dist-bundled/es/{p-BFHWXEeg-ByjSjz8i.js → p-Ciw-O9qN-DkWfirFu.js} +24 -22
- package/dist-bundled/es/{p-quZYWCxU-CPyWW0nv.js → p-CoS0NuDU-CqmDcRWj.js} +9 -9
- package/dist-bundled/es/{p-BnL97lOW-BO0p4EdC.js → p-D4Pimu_8-DfEGRQGf.js} +1 -1
- package/dist-bundled/es/p-D6lxqcxP-DWrZi1Xi.js +74 -0
- package/dist-bundled/es/{p-Dehss-X0-Di5vMgvd.js → p-DMNS1d8v-CHF62UXm.js} +3 -3
- package/dist-bundled/es/{p-uqSjmNkw-Cz2T86sC.js → p-Degg_WJz-BLua06el.js} +3 -3
- package/dist-bundled/es/{p-CRngHsR7-DL9wz3Z3.js → p-Dg2yoUxw-Cca8ROd_.js} +4 -4
- package/dist-bundled/es/{p-CIP0xyhD-D6y5soLj.js → p-DiNad9Px-uOCMHqAq.js} +11 -11
- package/dist-bundled/es/{p-D93TNeOt-Vvshbux8.js → p-DoPuGtJd-DYlbhh57.js} +14 -14
- package/dist-bundled/es/{p-DfFqFdmS-DjI2pk-0.js → p-Doi8Yizl-BszWK5Dq.js} +5 -5
- package/dist-bundled/es/{p-9_mrQ7ac-If6e6cvJ.js → p-Jdpe4Sgj-acwaxLtK.js} +3 -3
- package/dist-bundled/es/p-UVmSPzTd-6vjXok6h.js +26 -0
- package/dist-bundled/es/{p-DZWWuJac-DNQvnHAr.js → p-UxDcM-C5-Dr5d_WpJ.js} +2 -2
- package/dist-bundled/es/{p-CPSHPtGE-C7baJgXR.js → p-bPPm7cuw-B-dtPJF9.js} +6 -6
- package/dist-bundled/es/{p-B_HaXpJZ-a2SDgQ0E.js → p-qb1aWgjh-CzmMPIME.js} +2 -2
- package/dist-bundled/es/p-qrjEbv6g-ITSp3ky_.js +152 -0
- package/dist-bundled/es/{p-BaO-kEWS-ZITkeP-j.js → p-xITwQAMz-BMXjOAAQ.js} +20 -18
- package/dist-bundled/umd/gids-action-bar.umd.js +7 -0
- package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
- package/dist-bundled/umd/gids-bar-chart.umd.js +3 -3
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend.umd.js +2 -2
- package/dist-bundled/umd/gids-chart.umd.js +3 -3
- package/dist-bundled/umd/gids-chevron-button.umd.js +2 -2
- package/dist-bundled/umd/gids-dot.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown.umd.js +2 -2
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- package/dist-bundled/umd/gids-filter.umd.js +7 -0
- package/dist-bundled/umd/gids-icon.umd.js +2 -2
- package/dist-bundled/umd/gids-input.umd.js +2 -2
- package/dist-bundled/umd/gids-level-gauge.umd.js +2 -2
- package/dist-bundled/umd/gids-line-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-notification.umd.js +2 -2
- package/dist-bundled/umd/gids-overflow-container.umd.js +2 -2
- package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
- package/dist-bundled/umd/gids-password-field.umd.js +2 -2
- package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +2 -2
- package/dist-bundled/umd/gids-progress-circle.umd.js +2 -2
- package/dist-bundled/umd/gids-scrim.umd.js +2 -2
- package/dist-bundled/umd/gids-snackbar.umd.js +2 -2
- package/dist-bundled/umd/gids-tab-item.umd.js +5 -0
- package/dist-bundled/umd/gids-tab.umd.js +5 -0
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
- package/dist-bundled/umd/gids-tooltip.umd.js +2 -2
- package/dist-bundled/umd/index.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +8 -8
- package/package.json +36 -4
- package/dist/p-BFHWXEeg.js +0 -1
- package/dist/p-B_HaXpJZ.js +0 -1
- package/dist/p-BaO-kEWS.js +0 -1
- package/dist/p-CRngHsR7.js +0 -1
- package/dist/p-Ct3Ixgvf.js +0 -1
- package/dist/p-DKsrt7dx.js +0 -1
- package/dist/p-DZWWuJac.js +0 -1
- package/dist/p-Dehss-X0.js +0 -1
- package/dist/p-KxRqlvSh.js +0 -1
- package/dist/p-MgTlrSP_.js +0 -1
- package/dist-bundled/es/p-Ct3Ixgvf-CNP_PKwP.js +0 -646
- package/dist-bundled/es/p-KxRqlvSh-JOFDmT0B.js +0 -25
- package/dist-bundled/es/p-MgTlrSP_-DifRVv94.js +0 -70
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(D,
|
|
1
|
+
(function(D,P){typeof exports=="object"&&typeof module<"u"?P(exports):typeof define=="function"&&define.amd?define(["exports"],P):(D=typeof globalThis<"u"?globalThis:D||self,P(D.gidsCoreWebGidsDropdownField={}))})(this,(function(D){"use strict";function P(e,t,s){const n=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==n;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!s||i.get))return i;e=Object.getPrototypeOf(e)}}var B,vt=(e,t)=>{var s;Object.entries((s=t.o.t)!=null?s:{}).map((([n,[i]])=>{if(31&i||32&i){const o=e[n],a=P(Object.getPrototypeOf(e),n,!0)||Object.getOwnPropertyDescriptor(e,n);a&&Object.defineProperty(e,n,{get(){return a.get.call(this)},set(r){a.set.call(this,r)},configurable:!0,enumerable:!0}),t.l.has(n)?e[n]=t.l.get(n):o!==void 0&&(e[n]=o)}}))},N=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},Ie=(e,t)=>t in e,O=(e,t)=>(0,console.error)(e,t),z=new Map,ke="http://www.w3.org/1999/xlink",yt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],x=typeof window<"u"?window:{},U=x.HTMLElement||class{},C={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)},bt=(()=>{var e;let t=!1;try{(e=x.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),ie=(()=>{try{return!!x.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),oe=!!ie&&!!x.document&&Object.getOwnPropertyDescriptor(x.document.adoptedStyleSheets,"length").writable,le=!1,Le=[],Te=[],_t=(e,t)=>s=>{e.push(s),le||(le=!0,4&C.i?re(ae):C.raf(ae))},Ae=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){O(s)}e.length=0},ae=()=>{Ae(Le),Ae(Te),(le=Le.length>0)&&C.raf(ae)},re=e=>Promise.resolve(void 0).then(e),St=_t(Te);function xt(){const e=this.attachShadow({mode:"open"});B===void 0&&(B=null),B&&(oe?e.adoptedStyleSheets.push(B):e.adoptedStyleSheets=[...e.adoptedStyleSheets,B])}var Ne=e=>{const t=ce(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&de(t,e.tagName).forEach((n=>{n.nodeType===1&&n.tagName==="SLOT-FB"&&(n.hidden=!!Et(n,H(n),!1).length)}));let s=0;for(s=0;s<t.length;s++){const n=t[s];n.nodeType===1&&ce(n,"childNodes").length&&Ne(n)}};function de(e,t,s){let n,i=0,o=[];for(;i<e.length;i++){if(n=e[i],n["s-sr"]&&(!t||n["s-hn"]===t)&&(s===void 0||H(n)===s)&&(o.push(n),s!==void 0))return o;o=[...o,...de(n.childNodes,t,s)]}return o}var Et=(e,t,s=!0)=>{const n=[];(s&&e["s-sr"]||!e["s-sr"])&&n.push(e);let i=e;for(;i=i.nextSibling;)H(i)!==t||!s&&i["s-sr"]||n.push(i);return n},Ve=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",H=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ce(e,t){if("__"+t in e){const s=e["__"+t];return typeof s!="function"?s:s.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var he,F,$=new WeakMap,$e=e=>"sc-"+e.p,ue=e=>(e=typeof e)=="object"||e==="function",p=(e,t,...s)=>{let n=null,i=null,o=null,a=!1,r=!1;const l=[],c=d=>{for(let u=0;u<d.length;u++)n=d[u],Array.isArray(n)?c(n):n!=null&&typeof n!="boolean"&&((a=typeof e!="function"&&!ue(n))&&(n=String(n)),a&&r?l[l.length-1].h+=n:l.push(a?K(null,n):n),r=a)};if(c(s),t){t.key&&(i=t.key),t.name&&(o=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((u=>d[u])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,wt);const h=K(e,null);return h.v=t,l.length>0&&(h.m=l),h.$=i,h.j=o,h},K=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),De={},wt={forEach:(e,t)=>e.map(Oe).forEach(t),map:(e,t)=>e.map(Oe).map(t).map(Ct)},Oe=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Ct=e=>{if(typeof e.vtag=="function"){const s={...e.vattrs};return e.vkey&&(s.key=e.vkey),e.vname&&(s.name=e.vname),p(e.vtag,s,...e.vchildren||[])}const t=K(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Fe=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let s=!1;for(const i of t){if(s)break;for(const o of e[i])if(typeof o=="string"){s=!0;break}}if(!s)return e;const n={};for(const i of t)n[i]=e[i].map((o=>typeof o=="string"?{[o]:0}:o));return n},Pe=(e,t,s)=>e==null||ue(e)?e:4&t?(s&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,It=(e,t,s)=>{const n=C.ce(t,s);return e.dispatchEvent(n),n},Me=(e,t,s,n,i,o)=>{if(s===n)return;let a=Ie(e,t),r=t.toLowerCase();if(t==="class"){const l=e.classList,c=je(s);let h=je(n);l.remove(...c.filter((d=>d&&!h.includes(d)))),l.add(...h.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const l in s)n&&n[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in n)s&&n[l]===s[l]||(l.includes("-")?e.style.setProperty(l,n[l]):e.style[l]=n[l])}else if(t!=="key"){if(t==="ref")n&&Tt(n,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let c;{const h=N(e);if(h&&h.o&&h.o.t){const d=h.o.t[l];d&&d[1]&&(c=d[1])}}return c||(c=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(n==null||n===!1?n===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,n===!0?"":n))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=n}catch{}return}{const l=ue(n);if((a||l&&n!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==n&&(e[t]=n);else{const h=n??"";t==="list"?a=!1:s!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let c=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,c=!0),n==null||n===!1?n===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(ke,t):e.removeAttribute(t)):(!a||4&o||i)&&!l&&e.nodeType===1&&(n=n===!0?"":n,c?e.setAttributeNS(ke,t,n):e.setAttribute(t,n))}}else if(t=t[2]==="-"?t.slice(3):Ie(x,r)?r.slice(2):r[2]+t.slice(3),s||n){const l=t.endsWith(Re);t=t.replace(Lt,""),s&&C.rel(e,t,s,l),n&&C.ael(e,t,n,l)}}},kt=/\s/,je=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(kt):[]),Re="Capture",Lt=new RegExp(Re+"$"),fe=(e,t,s)=>{const n=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},o=t.v||{};for(const a of Be(Object.keys(i)))a in o||Me(n,a,i[a],void 0,s,t.i);for(const a of Be(Object.keys(o)))Me(n,a,i[a],o[a],s,t.i)};function Be(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var G=!1,Y=!1,J=!1,I=!1,pe=[],ge=[],X=(e,t,s)=>{var n;const i=t.m[s];let o,a,r,l=0;if(G||(J=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)o=i.S=x.document.createTextNode(i.h);else if(1&i.i)o=i.S=x.document.createTextNode(""),fe(null,i,I);else{if(I||(I=i.O==="svg"),!x.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=i.S=x.document.createElementNS(I?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!G&&2&i.i?"slot-fb":i.O),I&&i.O==="foreignObject"&&(I=!1),fe(null,i,I),i.m){const c=i.O==="template"?o.content:o;for(l=0;l<i.m.length;++l)a=X(e,i,l),a&&c.appendChild(a)}i.O==="svg"?I=!1:o.tagName==="foreignObject"&&(I=!0)}return o["s-hn"]=F,3&i.i&&(o["s-sr"]=!0,o["s-cr"]=he,o["s-sn"]=i.j||"",o["s-rf"]=(n=i.v)==null?void 0:n.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const h=d=>(function(u){const g=[],f=this["s-sn"];u?.flatten&&console.error(`
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(_=>{const y=[];for(let v=0;v<_.length;v++){const m=_[v]["s-nr"]||void 0;m&&m.isConnected&&y.push(m)}return y})(S.childNodes)).forEach((_=>{f===G(_)&&g.push(_)})),d?g.filter((_=>_.nodeType===1)):g}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(o),r=e&&e.m&&e.m[n],r&&r.O===i.O&&e.S&&Ge(e.S)),o},Ge=e=>{C.i|=1;const t=e.closest(O.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const i of n?s.reverse():s)i["s-sh"]!=null&&(T(t,i,n??null),i["s-sh"]=void 0,J=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const n=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"]===O&&n.push(s)}for(let s=n.length-1;s>=0;s--){const i=n[s];i["s-hn"]!==O&&i["s-ol"]&&(T(q(i).parentNode,i,q(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,J=!0),t&&Z(i,t)}C.i&=-2},He=(e,t,n,s,i,o)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===O&&(r=r.shadowRoot),n.O==="template"&&(r=r.content);i<=o;++i)s[i]&&(a=X(null,n,i),a&&(s[i].S=a,T(r,a,q(t))))},qe=(e,t,n)=>{for(let s=t;s<=n;++s){const i=e[s];if(i){const o=i.S;We(i),o&&(Y=!0,o["s-ol"]?o["s-ol"].remove():Z(o,!0),o.remove())}}},Q=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,M=(e,t,n=!1)=>{const s=t.S=e.S,i=e.m,o=t.m,a=t.O,r=t.h;let l;r==null?(I=a==="svg"||a!=="foreignObject"&&I,a!=="slot"||H||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ge(t.S.parentElement)),fe(e,t,I),i!==null&&o!==null?((c,h,d,u,g=!1)=>{let f,S,_=0,y=0,v=0,m=0,E=h.length-1,b=h[0],x=h[E],k=u.length-1,L=u[0],A=u[k];const gt=d.O==="template"?c.content:c;for(;_<=E&&y<=k;)if(b==null)b=h[++_];else if(x==null)x=h[--E];else if(L==null)L=u[++y];else if(A==null)A=u[--k];else if(Q(b,L,g))M(b,L,g),b=h[++_],L=u[++y];else if(Q(x,A,g))M(x,A,g),x=h[--E],A=u[--k];else if(Q(b,A,g))b.O!=="slot"&&A.O!=="slot"||Z(b.S.parentNode,!1),M(b,A,g),T(gt,b.S,x.S.nextSibling),b=h[++_],A=u[--k];else if(Q(x,L,g))b.O!=="slot"&&A.O!=="slot"||Z(x.S.parentNode,!1),M(x,L,g),T(gt,x.S,b.S),x=h[--E],L=u[++y];else{for(v=-1,m=_;m<=E;++m)if(h[m]&&h[m].$!==null&&h[m].$===L.$){v=m;break}v>=0?(S=h[v],S.O!==L.O?f=X(h&&h[y],d,v):(M(S,L,g),h[v]=void 0,f=S.S),L=u[++y]):(f=X(h&&h[y],d,y),L=u[++y]),f&&T(q(b.S).parentNode,f,q(b.S))}_>E?He(c,u[k+1]==null?null:u[k+1].S,d,u,y,k):y>k&&qe(h,_,E)})(s,i,t,o,n):o!==null?(e.h!==null&&(s.textContent=""),He(s,null,t,o,0,o.length-1)):!n&&i!==null&&qe(i,0,i.length-1),I&&a==="svg"&&(I=!1)):(l=s["s-cr"])?l.parentNode.textContent=r:e.h!==r&&(s.data=r)},V=[],ze=e=>{let t,n,s;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Ve(t,a)){let r=V.find((l=>l.k===t));Y=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=o["s-hn"],r.N=o):(t["s-sh"]=o["s-hn"],V.push({N:o,k:t})),t["s-sr"]&&V.map((l=>{Ve(l.k,t["s-sn"])&&(r=V.find((c=>c.k===t)),r&&!l.N&&(l.N=r.N))}))}else V.some((r=>r.k===t))||V.push({k:t})}o.nodeType===1&&ze(o)}},We=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(We)},kt=(e,t)=>{ge.push((()=>e(t)))},T=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:i}=(function(o,a){var r;if(!(a=a||((r=o["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=G(o)||"";return{slotNode:de(ce(a,"childNodes"),a.tagName,l)[0],slotName:l}})(t);return i&&!s&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},Lt=(e,t,n=!1)=>{var s,i,o,a,r;const l=e.$hostElement$,c=e.o,h=e.M||K(null,null);var d;const u=(d=t)&&d.O===De?t:p(null,null,t);if(O=l.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([g,f])=>{u.v[f]=l[g]}))),n&&u.v)for(const g of Object.keys(u.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(u.v[g]=l[g]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=l.shadowRoot||l,H=!(!(1&c.i)||128&c.i),he=l["s-cr"],Y=!1,M(h,u,n),C.i|=1,J){ze(u.S);for(const g of V){const f=g.k;if(!f["s-ol"]&&w.document){const S=w.document.createTextNode("");S["s-nr"]=f,T(f.parentNode,f["s-ol"]=S,f,n)}}for(const g of V){const f=g.k,S=g.N;if(f.nodeType===1&&n&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const _=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let v=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;v;){let m=(o=v["s-nr"])!=null?o:null;if(m&&m["s-sn"]===f["s-sn"]&&_===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===f||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){y=m;break}}v=v.previousSibling}}if((!y&&_!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==y)&&f!==y){if(T(_,f,y,n),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const v=w.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));v["s-hn"]=f["s-hn"],v["s-sn"]=f["s-sn"],v["s-sh"]=f["s-sh"],v["s-sr"]=f["s-sr"],v["s-ol"]=f["s-ol"],v["s-ol"]["s-nr"]=v,T(f.parentNode,v,f,n),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(a=f["s-ih"])!=null&&a)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(Y&&Ne(u.S),C.i&=-2,V.length=0,!H&&!(1&c.i)&&l["s-cr"]){const g=u.S.__childNodes||u.S.childNodes;for(const f of g)if(f["s-hn"]!==O&&!f["s-sh"]){if(n&&f["s-ih"]==null&&(f["s-ih"]=(r=f.hidden)!=null&&r),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=w.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],T(f.parentNode,S,f,n),f.parentNode.removeChild(f)}}}he=void 0,pe.forEach((g=>g())),pe.length=0,ge.forEach((g=>g())),ge.length=0},Ue=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},me=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ue(e,e.R);const n=()=>Tt(e,t);if(!t)return bt(n);queueMicrotask((()=>{n()}))},Tt=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=z(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=Ke(i,(()=>z(s,"componentWillRender",void 0,n))),Ke(i,(()=>Nt(e,s,t)))},Ke=(e,t)=>At(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),At=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Nt=async(e,t,n)=>{var s;const i=e.$hostElement$,o=i["s-rc"];n&&(a=>{const r=a.o,l=a.$hostElement$,c=r.i,h=((d,u)=>{var g,f,S;const _=$e(u),y=W.get(_);if(!w.document)return _;if(d=d.nodeType===11?d:w.document,y)if(typeof y=="string"){let v,m=$.get(d=d.head||d);if(m||$.set(d,m=new Set),!m.has(_)){v=w.document.createElement("style"),v.textContent=y;const E=(g=C._)!=null?g:(function(){var b,x,k;return(k=(x=(b=w.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?k:void 0})();if(E!=null&&v.setAttribute("nonce",E),!(1&u.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),x=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(v,x?.parentNode===d?x:null)}else if("host"in d)if(ie){const b=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(y),oe?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=y+b.textContent:d.prepend(v)}else d.append(v);1&u.i&&d.insertBefore(v,null),4&u.i&&(v.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(_)}}else{let v=$.get(d);if(v||$.set(d,v=new Set),!v.has(_)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let E;if(y.constructor===m.CSSStyleSheet)E=y;else{E=new m.CSSStyleSheet;for(let b=0;b<y.cssRules.length;b++)E.insertRule(y.cssRules[b].cssText,b)}oe?d.adoptedStyleSheets.push(E):d.adoptedStyleSheets=[...d.adoptedStyleSheets,E],v.add(_)}}return _})(l.shadowRoot?l.shadowRoot:l.getRootNode(),r);10&c&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),Vt(e,t,i,n),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(s=i["s-p"])!=null?s:[],r=()=>$t(e);a.length===0?r():(Promise.all(a).then(r).catch(r),e.i|=4,a.length=0)}},Vt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Lt(e,t,s)}catch(i){P(i,e.$hostElement$)}return null},$t=e=>{const t=e.$hostElement$,n=t,s=e.R;z(n,"componentDidRender",void 0,t),64&e.i?z(n,"componentDidUpdate",void 0,t):(e.i|=64,Ot(t),z(n,"componentDidLoad",void 0,t),e.L(t),s||Dt()),e.A&&(e.A(),e.A=void 0),512&e.i&&re((()=>me(e,!1))),e.i&=-517},Dt=()=>{re((()=>Et(w,"appload",{detail:{namespace:"gids-core-web"}})))},z=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(i){P(i,s)}},Ot=e=>e.classList.add("hydrated"),Ye=(e,t,n,s)=>{const i=N(e);if(!i)return;const o=e,a=i.l.get(t),r=i.i,l=o;n=Pe(n,s.t[t][0],!!(64&s.i));const c=Number.isNaN(a)&&Number.isNaN(n);if(n!==a&&!c){if(i.l.set(t,n),s.F){const h=s.F[t];h&&h.map((d=>{try{const[[u,g]]=Object.entries(d);(128&r||1&g)&&(l?l[u](n,a,t):i.T.push((()=>{i.D[u](n,a,t)})))}catch(u){P(u,o)}}))}if(2&r){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,a,t)===!1&&!(16&r))return;16&r||me(i,!1)}}},Ft=(e,t,n)=>{var s,i;const o=e.prototype;64&t.i&&1&n&&vt.forEach((a=>{const r=o[a];Object.defineProperty(o,a,{value(...l){var c;const h=N(this),d=this;d?typeof r=="function"&&r.call(d,...l):(c=h?.H)==null||c.then((u=>{const g=u[a];typeof g=="function"&&g.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Fe(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((s=t.t)!=null?s:{});a.map((([r,[l]])=>{if(31&l||32&l){const{get:c,set:h}=F(o,r)||{};c&&(t.t[r][0]|=2048),h&&(t.t[r][0]|=4096),Object.defineProperty(o,r,{get(){return c?c.apply(this):(d=r,N(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,r,{set(d){const u=N(this);if(u){if(h)return(32&l?this[r]:u.$hostElement$[r])===void 0&&u.l.get(r)&&(d=u.l.get(r)),h.apply(this,[Pe(d,l,!!(64&t.i))]),void Ye(this,r,d=32&l?this[r]:u.$hostElement$[r],t);Ye(this,r,d,t)}}})}}));{const r=new Map;o.attributeChangedCallback=function(l,c,h){C.jmp((()=>{var d;const u=r.get(l),g=N(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const v=g?.i;if(g&&v&&!(8&v)&&h!==c){const m=this,E=(d=t.F)==null?void 0:d[l];E?.forEach((b=>{const[[x,k]]=Object.entries(b);m[x]!=null&&(128&v||1&k)&&m[x].call(m,h,c,l)}))}return}const f=a.find((([v])=>v===u)),S=f&&4&f[1][0],_=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const y=Object.getOwnPropertyDescriptor(o,u);_||h==this[u]||y.get&&!y.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...a.filter((([l,c])=>31&c[0])).map((([l,c])=>{var h;const d=c[1]||l;return r.set(d,l),512&c[0]&&((h=t.C)==null||h.push([l,d])),d}))]))}}return e},ee=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.F=Fe(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const r={i:0,$hostElement$:o,o:a,l:new Map,W:new Map};r.H=new Promise((c=>r.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=r;o.__stencil__getHostRef=()=>l,512&a.i&&mt(o,r)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!N(this))return;this.__hasHostListenerAttached=!0}(o=>{if(!(1&C.i)){const a=N(o);if(!a)return;const r=a.o;if(1&a.i)a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&r.i&&(l=>{if(!w.document)return;const c=l["s-cr"]=w.document.createComment("");c["s-cn"]=!0,T(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ue(a,a.R=l);break}}r.t&&Object.entries(r.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const h=o[l];delete o[l],o[l]=h}})),(async(l,c,h)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let f;typeof d.style=="string"&&(f=d.style);const S=$e(h);W.has(S)||((_,y,v)=>{let m=W.get(_);ie&&v?(m=m||new CSSStyleSheet,typeof m=="string"?m=y:m.replaceSync(y)):m=y,W.set(_,m)})(S,f,!!(1&h.i))}const u=c.R,g=()=>me(c,!0);u&&u["s-rc"]?u["s-rc"].push(g):g()}catch(u){P(u,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,a,r)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{1&C.i||N(o),$.has(o)&&$.delete(o),o.shadowRoot&&$.has(o.shadowRoot)&&$.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else _t.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Ft(e,n,3)}catch(s){return P(s),e}},Pt=(e,t)=>t;function Ss(e){return e}function Je(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Je(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function j(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Je(e))&&(s&&(s+=" "),s+=t);return s}const Mt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>j("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>j("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},n,s)},Symbol.toStringTag,{value:"Module"})),Rt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>j("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"})),Xe=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},Bt=/\w/,Gt=e=>e.replace(Bt,t=>t.toLocaleUpperCase()),Ze=(e,t)=>typeof e=="function"?e(t):t?Gt(e):e,Ht=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,isLabelSentence:i})=>{const o=i?i(e):Xe(e);if(t==="required")return Ze(s&&s.length>0?s:"(required)",o);if(t==="optional")return Ze(n&&n.length>0?n:"(optional)",o)},isSentence:Xe},Symbol.toStringTag,{value:"Module"})),te=64,Qe=10,et=te/2-Qe/2,qt=te/2,ve=2*Math.PI*et,zt=`0 0 ${te} ${te}`,Wt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(n,e))/n*100,o=(ve*i/100).toFixed(2),a=(ve-parseFloat(o)).toFixed(2);return`${o} ${a}`},centerPosition:qt,circumference:ve,radius:et,thickness:Qe,viewBox:zt},Symbol.toStringTag,{value:"Module"})),Ut=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>j("gids-field",e)},Symbol.toStringTag,{value:"Module"})),Kt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>j("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>j("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),ye=Symbol("defaultPath"),tt=Symbol("pathSet"),be="gids-asset-paths-set";class Yt extends EventTarget{#e=new Map;constructor(){super()}#t(t,n){this.#e.set(t,n)}#s(t){return this.#e.get(t)??null}#n=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#s(tt)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#t(ye,t);else{for(const s in t)this.#t(s,t[s]);n&&this.#t(ye,n)}this.#t(tt,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#s(t);if(n===null){const s=this.#s(ye);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const _e=Symbol.for("GIDS"),Jt=()=>(globalThis[_e]===void 0&&(globalThis[_e]={assetPaths:{}}),globalThis[_e]),Xt=e=>{const t=Jt().assetPaths;return t[e]===void 0&&(t[e]=new Yt),t[e]};function Se(){return Xt("@ganpatiinfo/gids-web-shared")}function Zt(){return Se().haveAssetPathsBeenSet()}function st(e){return Se().getAssetFilePath(e)}function Qt(e){return Se().onAssetPathsSet(e)}let es=0;const nt=(e,t="gids")=>e||`${t}-${es++}`,ts=e=>e.type==="hidden",ss=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!ts(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},{getIndicatorText:ns}=Ht,{getGidsLabelClassNames:is}=Mt,os=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,info:i,htmlFor:o,labelId:a,class:r,isLabelSentence:l,...c},h)=>{const d=ns({children:h,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,isLabelSentence:l});return p("div",{class:is({disabled:e},r),...c},p("label",{htmlFor:o,id:a},h,d&&p("span",{class:"gids-label__field-requirement"},d)),i)},it={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},ot=new Map;for(const e in it)for(const t of it[e])ot.set(t,e);function ls(e){return ot.get(e)}function lt(e,t="regular",n){const s=ls(e);let i=s??"";return n&&s&&(i=n(s)??s),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:as}=Rt,se=({name:e,size:t,appearance:n,alt:s,class:i,titleId:o,src:a,...r})=>{const l=nt(o);let c=a;return c===void 0&&Zt()&&(c=lt(e,n,st)),p("svg",{ref:h=>{c===void 0&&Qt((()=>{(function(d,u,g){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",lt(u,g,st)),d.appendChild(f)})(h,e,n)}))},width:"16",height:"16",class:as({size:t},i),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...r},s!==""&&p("title",{id:l},s||e),c!==void 0?p("use",{href:c}):null)},{getGidsSpinnerControlClassNames:rs}=jt,{calculateStrokeDasharray:ds,thickness:at,radius:rt,centerPosition:ne,viewBox:cs}=Wt,hs=({size:e,indeterminate:t,value:n,max:s,...i})=>{let o;return t||(o={strokeDashArray:ds(n,s||0),strokeDashoffset:"0"}),p("svg",{class:rs({size:e,indeterminate:t,value:n}),viewBox:cs,...i},p("circle",{class:"gids-spinner-control__track",cx:ne,cy:ne,r:rt,"stroke-width":at}),p("circle",{style:o,class:"gids-spinner-control__progress",cx:ne,cy:ne,r:rt,"stroke-width":at}))},us=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.#t={},this._focusInput=t=>{const n=t.target;n===this.#e||this._isWithinInteractiveElement(n)||this.#e?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#e?.defaultValue??this.#t.defaultValue??""}set defaultValue(e){this.#e?this.#e.defaultValue=e:this.#t.defaultValue=e}get value(){return this.#e?.value??this.#t.value??this.#t.defaultValue??""}set value(e){this.#e?this.#e.value=e:this.#t.value=e}#e;#t;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(ss(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return p(Pt,{key:"8cfc78682bffd38298aaa5bc8fe63bc996f17586"},p("slot",{key:"5e5c57234e3e531b0d095597e021ab3d4756173d",name:"leadingIcon"}),this.leadingLabel&&p("span",{key:"5d0fc2c8a8716806891347f30ba961db61e1cf91",class:"gids-input__label"},this.leadingLabel),p("slot",{key:"881161160b2e933479c7af0a63846c0f86c7bbfe",name:"leadingAccessory"}),p("input",{key:"f0db6b63f0aa4a1a778743620753184ff0a7086a",...this.inputProps,ref:e=>{this.#e=e,this.#t.value!==void 0&&(this.#e.value=this.#t.value,delete this.#t.value),this.#t.defaultValue!==void 0&&(this.#e.defaultValue=this.#t.defaultValue,delete this.#t.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),p("slot",{key:"5bb8549e6aa491b7ebbf56bce66bab6f386f98fe",name:"trailingAccessory"}),this.trailingLabel&&p("span",{key:"3ef3319efd5512bbd370e314724820a539e342f9",class:"gids-input__label"},this.trailingLabel),p("slot",{key:"22dcea487ee58e5df65a5b88d3f7ce7bcc32f828",name:"trailingIcon"}),this.status==="incomplete"&&p(se,{key:"808723d08c4e8a1533652d6c20fd7f8ff0e98275",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&p(se,{key:"10c61d22cb2a4fa56dc0de3025cfc07c1268f91e",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&p(hs,{key:"58147d27b92c93a6bf9dde27c394de2868d6225e",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function xe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,us))}))}xe();const{getGidsDropdownClassNames:fs,getGidsChevronButtonControlClassNames:ps}=Kt,we="gids-dropdown-item--active",gs=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.expanded=!1,this.filterValue="",this.isFilterEditing=!1,this.hasLeadingIcon=!1,this.hasLeadingAccessory=!1,this.activeIndex=-1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.hasPendingControlRevalidation=!1,this.handleDropdownItemSelect=t=>{const{value:n,title:s,disabled:i,id:o}=t.detail;i||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,value:n,title:s,disabled:!1,originalEvent:t}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t.target;if(!(n instanceof Element))return;const s=n.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const i=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")??"";if(typeof i!="string"||i.length===0)return;const o=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";typeof o=="string"&&o.length!==0&&this.applySelection({id:o,value:i,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t})},this.handleFilterInput=t=>{const n=t.target;this.filterValue=n?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const n=t.key,s=n==="ArrowDown";if((s||n==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(s?1:-1);if(n==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(n==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(n==="Enter"){if(!this.expanded)return t.preventDefault(),this.setExpandedState(!0,t),void this.setActiveByIndex(0);this.selectActive()&&t.preventDefault()}},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleInputFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this.handleInputClickToggle=t=>{t.defaultPrevented||this.handleTriggerToggle(t)},this.handleChevronClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const n=t.key;if(n==="Escape"||n==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);n==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.isFilterEditing=!1,this.filterValue="",this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]'),this.hasLeadingAccessory=!!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]')}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}getVisibleEnabledItems(){return this.getItemElements().filter((e=>e.style.display!=="none"&&!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.emitNativeSelectionEvents(this.selectedItemTitle??""),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownChange",{bubbles:!0,composed:!0,detail:e}))}getInputControl(){return this.hostElement.querySelector(".gids-input__control")}emitNativeSelectionEvents(e){const t=this.getInputControl();t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}clearActive(){this.activeIndex=-1,this.getItemElements().forEach((e=>e.classList.remove(we))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((i=>i.classList.remove(we))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const n=Math.max(0,Math.min(e,t.length-1)),s=t[n];if(!s)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=n,s.classList.add(we),s.scrollIntoView({block:"nearest"}),this.setActiveDescendant(s.id||void 0)}moveActive(e){const t=this.getVisibleEnabledItems();t.length!==0?this.setActiveByIndex(this.activeIndex===-1?e>0?0:t.length-1:(this.activeIndex+e+t.length)%t.length):this.clearActive()}selectActive(){const e=this.getVisibleEnabledItems();if(e.length===0)return!1;const t=this.activeIndex>=0?e[this.activeIndex]:e[0];return!!t&&(t.click(),this.getInputControl()?.focus(),!0)}applyFilter(){const e=this.filterValue.trim().toLowerCase();this.getItemElements().forEach((t=>{const n=(t.textContent??"").toLowerCase(),s=e.length===0||n.includes(e);t.style.display=s?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const n=!!e;n&&!this.isInteractive()||this.expanded!==n&&(this.expanded=n,n||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:n,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getInputControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}get form(){return this.getInputControl()?.form??this.patternForm??null}get validity(){return this.getInputControl()?.validity??{}}get validationMessage(){return this.getInputControl()?.validationMessage??""}get willValidate(){return this.getInputControl()?.willValidate??!1}async checkValidity(){return this.getInputControl()?.checkValidity()??!0}async reportValidity(){return this.getInputControl()?.reportValidity()??!0}async setCustomValidity(e){return this.getInputControl()?.setCustomValidity(e)}isInteractive(){return!(this.disabled||this.readOnly)}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}scheduleControlRevalidation(){if(this.hasPendingControlRevalidation)return;this.hasPendingControlRevalidation=!0;const e=()=>{this.hasPendingControlRevalidation=!1,this.checkValidity()};typeof requestAnimationFrame!="function"?e():requestAnimationFrame(e)}getEnhancedInputProps(){const e={...this.inputProps??{}};typeof e.autoComplete=="string"&&e?.autoComplete?.trim?.()?.length!==0||(e.autoComplete="off");const t=e.onInput;e.onInput=i=>{t?.(i),this.handleFilterInput(i)};const n=e.onBlur;e.onBlur=i=>{n?.(i),this.scheduleControlRevalidation()};const s=e.onKeyDown;return e.onKeyDown=i=>{s?.(i),i.defaultPrevented||this.handleInputKeyDown(i)},e}render(){const e=this.expanded&&this.isInteractive(),t=fs({expanded:e}),n=this.getEnhancedInputProps(),s=typeof n.id=="string"?n.id:void 0,i=s?`${s}__menu`:void 0;n.role="combobox",n["aria-expanded"]=e?"true":"false",n["aria-haspopup"]="listbox",n["aria-autocomplete"]="list",i&&(n["aria-controls"]=i);const o=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",a=e?"true":"false",r=p("button",{key:"94ed9ae19e3a6e1e9e02c6e3fab0c70a5193667b",class:ps({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":a,"aria-haspopup":"listbox","aria-controls":i,disabled:this.disabled||this.readOnly,tabIndex:-1},p("span",{key:"f6e79003a75a80623564c81c83158640c407c8f4",class:"gids-button__content"},p(se,{key:"85c0caf667a50f629375652ead7c1e8d86bc96ed",name:"chevron-vertical",alt:""})));return p("div",{key:"d02c0b39097b0307ca22a7e86bccfb37083d447f",class:t},p("gids-input",{key:"16475e8ebce7a5909f6c4c102ef781eed657a6e0",appearance:this.appearance,loading:this.loading,disabled:this.disabled,readOnly:this.readOnly,required:this.required,value:o,name:this.name,inputProps:n,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&p("slot",{key:"fbdf6ef356a9d1ade43eecfa3bb92ef0fe538f1c",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&p("slot",{key:"f9e0fc631f4a3a4758d9b446312ae9d0ff9bcd01",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),r),p("div",{key:"ae2974b210c297fa1e1160ad93d22b45297a1613",class:"gids-dropdown__menu",id:i,role:"listbox",onClick:this.handleMenuClick},p("slot",{key:"d7bd637af09568522549e2551173efd90fa40e4b"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}}static get style(){return'@charset "UTF-8";.gids-dropdown{position:relative}.gids-dropdown__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;min-height:55px;max-height:20rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown__menu>*{flex-shrink:0}.gids-dropdown--expanded .gids-dropdown__menu{display:flex}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}'}},[260,"gids-dropdown",{appearance:[1],expanded:[1540],inputProps:[16],disabled:[516],readOnly:[516,"read-only"],loading:[516],value:[513],name:[1],onSelectionChange:[16],required:[4],filterValue:[32],isFilterEditing:[32],selectedItemTitle:[32],hasLeadingIcon:[32],hasLeadingAccessory:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}]);function dt(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,gs);break;case"gids-input":customElements.get(e)||xe()}}))}dt();const R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ct=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let Ee=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ht()})):void 0,ht=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let n=0;n<document.styleSheets.length;n++){const s=document.styleSheets.item(n);if(s)try{let i=-1,o=0;for(let a=0;a<s.cssRules.length;a++){const r=s.cssRules.item(a);if(r?.cssText.startsWith("gids-global-styles-start"))i=a;else if(i>-1){if(r?.cssText.startsWith("gids-global-styles-end")){o=a-i+1;break}t.push(r)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:o,rules:t,styleSheet:s}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==Ee&&(Ee&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),Ee=t),R.replaceSync((n=>n.rules.map((s=>s.cssText)).join(""))(e)),(n=>{const{rulesStartIndex:s,originalRulesCount:i,styleSheet:o}=n;for(let a=0;a<i;a++)o.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},ms=()=>(ct||(ct=ht()),R),{getGidsFieldClassNames:vs}=Ut,ys=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],n=this._findTextControl(t);this._attachControlElement(n)},this._handleControlValueInput=t=>{if(!this._controlTouched){const n=t.target;n instanceof HTMLInputElement&&(n.type==="checkbox"||n.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=ms();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,n=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const i=this._getStatusModifierClass(n,"gids-field__status-text");i!=null&&s.push(i)}return p(De,{key:"98078538f6970b0cf756c7a172e635f3302381b2"},p("div",{key:"6751ea942c38270fce42e025ca17e29a38207028",class:vs()},p("div",{key:"5c4969bedfd54b42603ff3de69c72bc513aeaeb6",class:"gids-field__header",hidden:!this._hasLabelContent()},p("slot",{key:"9f98f47e3285551c67f7a350d058a55953c88756",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),p("div",{key:"6660ed1c29faf2ca838ba8714dee7feb79257187",class:"gids-field__count","aria-live":"polite"},this.count)),p("div",{key:"ab2bb081db7e8e8caddcc515580e02f32d4c054a",class:"gids-field__control"},p("slot",{key:"5df4538b894f7daedcb03bcab1316c9452e65caf",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),p("p",{key:"d7dce2f4a0b03b056ac8888a918e88b15931c8e5",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?p("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(n),t!==void 0?p("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const n=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&n.push(s);let i=e;return e==="error"&&(i="danger"),e==="success"&&(i="positive"),p(se,{appearance:"filled",size:"sm",alt:"",name:t,class:n.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${i})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((n=>{n.addEventListener("input",this._handleControlValueInput),n.addEventListener("change",this._handleControlValueInput),n.addEventListener("blur",this._handleControlBlur,!0),n.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const n=t.elements.namedItem(e.name);if(n instanceof RadioNodeList){const s=Array.from(n).filter((i=>i instanceof HTMLInputElement&&i.type==="radio"&&this._el.contains(i)));if(s.length>0)return s}}if(e.name!=null){const n=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(n));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const n=t,s=this._asTextControl(n);if(s!==null)return s;const i=n.querySelector("input, textarea");if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)return i}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function ut(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,ys))}))}ut();const ft=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.internals=this.attachInternals(),this.appearance="default",this.expanded=!1,this.#e=nt(),this.handleSelectionChange=t=>{this.value=t.value,this.syncFormValue(t.value),this.onSelectionChange?.(t)},this.handleDropdownFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}#e;componentWillLoad(){this.syncFormValue(this.value)}handleValueChange(e){this.syncFormValue(e)}syncFormValue(e){this.internals.setFormValue(e??"")}getDropdownControl(){return this.hostElement.querySelector("gids-dropdown")}get form(){return this.getDropdownControl()?.form??null}get validity(){return this.getDropdownControl()?.validity??{}}get validationMessage(){return this.getDropdownControl()?.validationMessage??""}get willValidate(){return this.getDropdownControl()?.willValidate??!1}async checkValidity(){const e=this.getDropdownControl();return!e?.checkValidity||await e.checkValidity()}async reportValidity(){const e=this.getDropdownControl();return!e?.reportValidity||await e.reportValidity()}async setCustomValidity(e){const t=this.getDropdownControl();if(t?.setCustomValidity)return await t.setCustomValidity(e)}render(){const e=this.inputProps?.id??this.#e,t={...this.inputProps,id:e,placeholder:this.inputProps?.placeholder??"Please select an option"};return p("gids-field",{key:"9d896c1a60c010c49f17578133b1f593637ee25a",disabled:this.disabled,helperText:this.helperText,statusText:this.statusText,status:this.status},this.label!==void 0?p(os,{slot:"label",disabled:this.disabled,htmlFor:e,fieldRequirement:this.required?"required":void 0},this.label):null,p("gids-dropdown",{key:"cb5e873f42af870aec073f553a660aea8f61ffcb",appearance:this.appearance,expanded:this.expanded,inputProps:t,disabled:this.disabled,readOnly:this.readOnly,loading:this.loading,value:this.value,name:this.name,onSelectionChange:this.handleSelectionChange,onFocus:this.handleDropdownFocusAndBlur,onBlur:this.handleDropdownFocusAndBlur,required:this.required},p("slot",{key:"fbdd00ab717487697bc705af19c6e304ff77bd82",name:"leadingIconDropdown"}),p("slot",{key:"1f6ffc78105de5a1e2e4f8906271e8e2c5ca385d",name:"leadingAccessoryDropdown"}),p("slot",{key:"04404c104113d9b83afbe594bd7b9381864b526f"})))}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}},[324,"gids-dropdown-field",{label:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],appearance:[513],expanded:[516],readOnly:[516,"readonly"],disabled:[516],loading:[516],inputProps:[16],value:[1025],name:[513],onSelectionChange:[16],required:[516],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{value:[{handleValueChange:0}]}]);function pt(){typeof customElements<"u"&&["gids-dropdown-field","gids-dropdown","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-dropdown-field":customElements.get(e)||customElements.define(e,ft);break;case"gids-dropdown":customElements.get(e)||dt();break;case"gids-field":customElements.get(e)||ut();break;case"gids-input":customElements.get(e)||xe()}}))}pt();const bs=ft,_s=pt;D.GidsDropdownField=bs,D.defineCustomElement=_s,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(_=>{const y=[];for(let v=0;v<_.length;v++){const m=_[v]["s-nr"]||void 0;m&&m.isConnected&&y.push(m)}return y})(S.childNodes)).forEach((_=>{f===H(_)&&g.push(_)})),d?g.filter((_=>_.nodeType===1)):g}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(o),r=e&&e.m&&e.m[s],r&&r.O===i.O&&e.S&&He(e.S)),o},He=e=>{C.i|=1;const t=e.closest(F.toLowerCase());if(t!=null){const s=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),n=Array.from(e.__childNodes||e.childNodes);for(const i of s?n.reverse():n)i["s-sh"]!=null&&(T(t,i,s??null),i["s-sh"]=void 0,J=!0)}C.i&=-2},Z=(e,t)=>{C.i|=1;const s=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===F&&s.push(n)}for(let n=s.length-1;n>=0;n--){const i=s[n];i["s-hn"]!==F&&i["s-ol"]&&(T(q(i).parentNode,i,q(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,J=!0),t&&Z(i,t)}C.i&=-2},Ge=(e,t,s,n,i,o)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===F&&(r=r.shadowRoot),s.O==="template"&&(r=r.content);i<=o;++i)n[i]&&(a=X(null,s,i),a&&(n[i].S=a,T(r,a,q(t))))},qe=(e,t,s)=>{for(let n=t;n<=s;++n){const i=e[n];if(i){const o=i.S;ze(i),o&&(Y=!0,o["s-ol"]?o["s-ol"].remove():Z(o,!0),o.remove())}}},Q=(e,t,s=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:s?(s&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,M=(e,t,s=!1)=>{const n=t.S=e.S,i=e.m,o=t.m,a=t.O,r=t.h;let l;r==null?(I=a==="svg"||a!=="foreignObject"&&I,a!=="slot"||G||e.j!==t.j&&(t.S["s-sn"]=t.j||"",He(t.S.parentElement)),fe(e,t,I),i!==null&&o!==null?((c,h,d,u,g=!1)=>{let f,S,_=0,y=0,v=0,m=0,w=h.length-1,b=h[0],E=h[w],k=u.length-1,L=u[0],A=u[k];const mt=d.O==="template"?c.content:c;for(;_<=w&&y<=k;)if(b==null)b=h[++_];else if(E==null)E=h[--w];else if(L==null)L=u[++y];else if(A==null)A=u[--k];else if(Q(b,L,g))M(b,L,g),b=h[++_],L=u[++y];else if(Q(E,A,g))M(E,A,g),E=h[--w],A=u[--k];else if(Q(b,A,g))b.O!=="slot"&&A.O!=="slot"||Z(b.S.parentNode,!1),M(b,A,g),T(mt,b.S,E.S.nextSibling),b=h[++_],A=u[--k];else if(Q(E,L,g))b.O!=="slot"&&A.O!=="slot"||Z(E.S.parentNode,!1),M(E,L,g),T(mt,E.S,b.S),E=h[--w],L=u[++y];else{for(v=-1,m=_;m<=w;++m)if(h[m]&&h[m].$!==null&&h[m].$===L.$){v=m;break}v>=0?(S=h[v],S.O!==L.O?f=X(h&&h[y],d,v):(M(S,L,g),h[v]=void 0,f=S.S),L=u[++y]):(f=X(h&&h[y],d,y),L=u[++y]),f&&T(q(b.S).parentNode,f,q(b.S))}_>w?Ge(c,u[k+1]==null?null:u[k+1].S,d,u,y,k):y>k&&qe(h,_,w)})(n,i,t,o,s):o!==null?(e.h!==null&&(n.textContent=""),Ge(n,null,t,o,0,o.length-1)):!s&&i!==null&&qe(i,0,i.length-1),I&&a==="svg"&&(I=!1)):(l=n["s-cr"])?l.parentNode.textContent=r:e.h!==r&&(n.data=r)},V=[],We=e=>{let t,s,n;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){s=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Ve(t,a)){let r=V.find((l=>l.k===t));Y=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=o["s-hn"],r.N=o):(t["s-sh"]=o["s-hn"],V.push({N:o,k:t})),t["s-sr"]&&V.map((l=>{Ve(l.k,t["s-sn"])&&(r=V.find((c=>c.k===t)),r&&!l.N&&(l.N=r.N))}))}else V.some((r=>r.k===t))||V.push({k:t})}o.nodeType===1&&We(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},Tt=(e,t)=>{ge.push((()=>e(t)))},T=(e,t,s,n)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,s);const{slotNode:i}=(function(o,a){var r;if(!(a=a||((r=o["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=H(o)||"";return{slotNode:de(ce(a,"childNodes"),a.tagName,l)[0],slotName:l}})(t);return i&&!n&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,s):e?.insertBefore(t,s)},At=(e,t,s=!1)=>{var n,i,o,a,r;const l=e.$hostElement$,c=e.o,h=e.M||K(null,null);var d;const u=(d=t)&&d.O===De?t:p(null,null,t);if(F=l.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([g,f])=>{u.v[f]=l[g]}))),s&&u.v)for(const g of Object.keys(u.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(u.v[g]=l[g]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=l.shadowRoot||l,G=!(!(1&c.i)||128&c.i),he=l["s-cr"],Y=!1,M(h,u,s),C.i|=1,J){We(u.S);for(const g of V){const f=g.k;if(!f["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=f,T(f.parentNode,f["s-ol"]=S,f,s)}}for(const g of V){const f=g.k,S=g.N;if(f.nodeType===1&&s&&(f["s-ih"]=(n=f.hidden)!=null&&n),S){const _=S.parentNode;let y=S.nextSibling;if(y&&y.nodeType===1){let v=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;v;){let m=(o=v["s-nr"])!=null?o:null;if(m&&m["s-sn"]===f["s-sn"]&&_===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===f||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){y=m;break}}v=v.previousSibling}}if((!y&&_!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==y)&&f!==y){if(T(_,f,y,s),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const v=x.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));v["s-hn"]=f["s-hn"],v["s-sn"]=f["s-sn"],v["s-sh"]=f["s-sh"],v["s-sr"]=f["s-sr"],v["s-ol"]=f["s-ol"],v["s-ol"]["s-nr"]=v,T(f.parentNode,v,f,s),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(a=f["s-ih"])!=null&&a)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(Y&&Ne(u.S),C.i&=-2,V.length=0,!G&&!(1&c.i)&&l["s-cr"]){const g=u.S.__childNodes||u.S.childNodes;for(const f of g)if(f["s-hn"]!==F&&!f["s-sh"]){if(s&&f["s-ih"]==null&&(f["s-ih"]=(r=f.hidden)!=null&&r),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const S=x.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],T(f.parentNode,S,f,s),f.parentNode.removeChild(f)}}}he=void 0,pe.forEach((g=>g())),pe.length=0,ge.forEach((g=>g())),ge.length=0},Ue=(e,t)=>{if(t&&!e.A&&t["s-p"]){const s=t["s-p"].push(new Promise((n=>e.A=()=>{t["s-p"].splice(s-1,1),n()})))}},me=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ue(e,e.R);const s=()=>Nt(e,t);if(!t)return St(s);queueMicrotask((()=>{s()}))},Nt=(e,t)=>{const s=e.$hostElement$,n=s;if(!n)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=W(n,t?"componentWillLoad":"componentWillUpdate",void 0,s),i=Ke(i,(()=>W(n,"componentWillRender",void 0,s))),Ke(i,(()=>$t(e,n,t)))},Ke=(e,t)=>Vt(e)?e.then(t).catch((s=>{console.error(s),t()})):t(),Vt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",$t=async(e,t,s)=>{var n;const i=e.$hostElement$,o=i["s-rc"];s&&(a=>{const r=a.o,l=a.$hostElement$,c=r.i,h=((d,u)=>{var g,f,S;const _=$e(u),y=z.get(_);if(!x.document)return _;if(d=d.nodeType===11?d:x.document,y)if(typeof y=="string"){let v,m=$.get(d=d.head||d);if(m||$.set(d,m=new Set),!m.has(_)){v=x.document.createElement("style"),v.textContent=y;const w=(g=C._)!=null?g:(function(){var b,E,k;return(k=(E=(b=x.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:E.getAttribute("content"))!=null?k:void 0})();if(w!=null&&v.setAttribute("nonce",w),!(1&u.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),E=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(v,E?.parentNode===d?E:null)}else if("host"in d)if(ie){const b=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(y),oe?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=y+b.textContent:d.prepend(v)}else d.append(v);1&u.i&&d.insertBefore(v,null),4&u.i&&(v.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(_)}}else{let v=$.get(d);if(v||$.set(d,v=new Set),!v.has(_)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(y.constructor===m.CSSStyleSheet)w=y;else{w=new m.CSSStyleSheet;for(let b=0;b<y.cssRules.length;b++)w.insertRule(y.cssRules[b].cssText,b)}oe?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],v.add(_)}}return _})(l.shadowRoot?l.shadowRoot:l.getRootNode(),r);10&c&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),Dt(e,t,i,s),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(n=i["s-p"])!=null?n:[],r=()=>Ot(e);a.length===0?r():(Promise.all(a).then(r).catch(r),e.i|=4,a.length=0)}},Dt=(e,t,s,n)=>{try{t=t.render(),e.i&=-17,e.i|=2,At(e,t,n)}catch(i){O(i,e.$hostElement$)}return null},Ot=e=>{const t=e.$hostElement$,s=t,n=e.R;W(s,"componentDidRender",void 0,t),64&e.i?W(s,"componentDidUpdate",void 0,t):(e.i|=64,Pt(t),W(s,"componentDidLoad",void 0,t),e.L(t),n||Ft()),e.A&&(e.A(),e.A=void 0),512&e.i&&re((()=>me(e,!1))),e.i&=-517},Ft=()=>{re((()=>It(x,"appload",{detail:{namespace:"gids-core-web"}})))},W=(e,t,s,n)=>{if(e&&e[t])try{return e[t](s)}catch(i){O(i,n)}},Pt=e=>e.classList.add("hydrated"),Ye=(e,t,s,n)=>{const i=N(e);if(!i)return;const o=e,a=i.l.get(t),r=i.i,l=o;s=Pe(s,n.t[t][0],!!(64&n.i));const c=Number.isNaN(a)&&Number.isNaN(s);if(s!==a&&!c){if(i.l.set(t,s),n.F){const h=n.F[t];h&&h.map((d=>{try{const[[u,g]]=Object.entries(d);(128&r||1&g)&&(l?l[u](s,a,t):i.T.push((()=>{i.D[u](s,a,t)})))}catch(u){O(u,o)}}))}if(2&r){if(l.componentShouldUpdate&&l.componentShouldUpdate(s,a,t)===!1&&!(16&r))return;16&r||me(i,!1)}}},Mt=(e,t,s)=>{var n,i;const o=e.prototype;64&t.i&&1&s&&yt.forEach((a=>{const r=o[a];Object.defineProperty(o,a,{value(...l){var c;const h=N(this),d=this;d?typeof r=="function"&&r.call(d,...l):(c=h?.H)==null||c.then((u=>{const g=u[a];typeof g=="function"&&g.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Fe(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((n=t.t)!=null?n:{});a.map((([r,[l]])=>{if(31&l||32&l){const{get:c,set:h}=P(o,r)||{};c&&(t.t[r][0]|=2048),h&&(t.t[r][0]|=4096),Object.defineProperty(o,r,{get(){return c?c.apply(this):(d=r,N(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,r,{set(d){const u=N(this);if(u){if(h)return(32&l?this[r]:u.$hostElement$[r])===void 0&&u.l.get(r)&&(d=u.l.get(r)),h.apply(this,[Pe(d,l,!!(64&t.i))]),void Ye(this,r,d=32&l?this[r]:u.$hostElement$[r],t);Ye(this,r,d,t)}}})}}));{const r=new Map;o.attributeChangedCallback=function(l,c,h){C.jmp((()=>{var d;const u=r.get(l),g=N(this);if(this.hasOwnProperty(u),o.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const v=g?.i;if(g&&v&&!(8&v)&&h!==c){const m=this,w=(d=t.F)==null?void 0:d[l];w?.forEach((b=>{const[[E,k]]=Object.entries(b);m[E]!=null&&(128&v||1&k)&&m[E].call(m,h,c,l)}))}return}const f=a.find((([v])=>v===u)),S=f&&4&f[1][0],_=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const y=Object.getOwnPropertyDescriptor(o,u);_||h==this[u]||y.get&&!y.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...a.filter((([l,c])=>31&c[0])).map((([l,c])=>{var h;const d=c[1]||l;return r.set(d,l),512&c[0]&&((h=t.C)==null||h.push([l,d])),d}))]))}}return e},ee=(e,t)=>{const s={i:t[0],p:t[1]};try{s.t=t[2],s.W=t[3],s.F=Fe(e.F),s.P=e.P,s.U=e.U,s.C=[];const n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const r={i:0,$hostElement$:o,o:a,l:new Map,B:new Map};r.H=new Promise((c=>r.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=r;o.__stencil__getHostRef=()=>l,512&a.i&&vt(o,r)})(this,s)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=N(this);if(!o)return;Je(this,o,s.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&C.i)){const a=N(o);if(!a)return;const r=a.o;if(1&a.i)Je(o,a,r.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&r.i&&(l=>{if(!x.document)return;const c=l["s-cr"]=x.document.createComment("");c["s-cn"]=!0,T(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ue(a,a.R=l);break}}r.t&&Object.entries(r.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const h=o[l];delete o[l],o[l]=h}})),(async(l,c,h)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let f;typeof d.style=="string"&&(f=d.style);const S=$e(h);z.has(S)||((_,y,v)=>{let m=z.get(_);ie&&v?(m=m||new CSSStyleSheet,typeof m=="string"?m=y:m.replaceSync(y)):m=y,z.set(_,m)})(S,f,!!(1&h.i))}const u=c.R,g=()=>me(c,!0);u&&u["s-rc"]?u["s-rc"].push(g):g()}catch(u){O(u,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,a,r)}}})(this),n&&n.call(this)},disconnectedCallback(){(async o=>{if(!(1&C.i)){const a=N(o);a?.V&&(a.V.map((r=>r())),a.V=void 0)}$.has(o)&&$.delete(o),o.shadowRoot&&$.has(o.shadowRoot)&&$.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${s.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else xt.call(this,s)}}),Object.defineProperty(e,"is",{value:s.p,configurable:!0}),Mt(e,s,3)}catch(n){return O(n),e}},jt=(e,t)=>t,Je=(e,t,s)=>{s&&x.document&&s.map((([n,i,o])=>{const a=Bt(x.document,e,n),r=Rt(t,o),l=Ht(n);C.ael(a,i,r,l),(t.V=t.V||[]).push((()=>C.rel(a,i,r,l)))}))},Rt=(e,t)=>s=>{try{e.$hostElement$[t](s)}catch(n){O(n,e.$hostElement$)}},Bt=(e,t,s)=>8&s?x:t,Ht=e=>bt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Is(e){return e}function Xe(e){var t,s,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(s=Xe(e[t]))&&(n&&(n+=" "),n+=s)}else for(s in e)e[s]&&(n&&(n+=" "),n+=s);return n}function j(){for(var e,t,s=0,n="",i=arguments.length;s<i;s++)(e=arguments[s])&&(t=Xe(e))&&(n&&(n+=" "),n+=t);return n}const Gt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>j("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:s},n)=>j("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},s,n)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>j("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"})),Ze=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},zt=/\w/,Ut=e=>e.replace(zt,t=>t.toLocaleUpperCase()),Qe=(e,t)=>typeof e=="function"?e(t):t?Ut(e):e,Kt=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:i})=>{const o=i?i(e):Ze(e);if(t==="required")return Qe(n&&n.length>0?n:"(required)",o);if(t==="optional")return Qe(s&&s.length>0?s:"(optional)",o)},isSentence:Ze},Symbol.toStringTag,{value:"Module"})),te=64,et=10,tt=te/2-et/2,Yt=te/2,ve=2*Math.PI*tt,Jt=`0 0 ${te} ${te}`,Xt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const s=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(s,e))/s*100,o=(ve*i/100).toFixed(2),a=(ve-parseFloat(o)).toFixed(2);return`${o} ${a}`},centerPosition:Yt,circumference:ve,radius:tt,thickness:et,viewBox:Jt},Symbol.toStringTag,{value:"Module"})),Zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>j("gids-field",e)},Symbol.toStringTag,{value:"Module"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsChevronButtonControlClassNames:({size:e},t)=>j("gids-chevron-button-control",{"gids-chevron-button-control--small":e==="sm","gids-chevron-button-control--large":e==="lg"},t),getGidsDropdownClassNames:({expanded:e},t)=>j("gids-dropdown",{"gids-dropdown--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),ye=Symbol("defaultPath"),st=Symbol("pathSet"),be="gids-asset-paths-set";class es extends EventTarget{#e=new Map;constructor(){super()}#t(t,s){this.#e.set(t,s)}#s(t){return this.#e.get(t)??null}#n=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#s(st)!==null}setAssetPaths(t,s){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#t(ye,t);else{for(const n in t)this.#t(n,t[n]);s&&this.#t(ye,s)}this.#t(st,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const s=this.#s(t);if(s===null){const n=this.#s(ye);if(n!==null)return`${n}${n.endsWith("/")?"":"/"}${t}`}return s}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const _e=Symbol.for("GIDS"),ts=()=>(globalThis[_e]===void 0&&(globalThis[_e]={assetPaths:{}}),globalThis[_e]),ss=e=>{const t=ts().assetPaths;return t[e]===void 0&&(t[e]=new es),t[e]};function Se(){return ss("@ganpatiinfo/gids-web-shared")}function ns(){return Se().haveAssetPathsBeenSet()}function nt(e){return Se().getAssetFilePath(e)}function is(e){return Se().onAssetPathsSet(e)}let os=0;const it=(e,t="gids")=>e||`${t}-${os++}`,ls=e=>e.type==="hidden",as=e=>{if(!(e instanceof HTMLElement))return!1;const{nodeName:t}=e;return!!(["BUTTON","DETAILS","EMBED","IFRAME","KEYGEN","LABEL","SELECT","TEXTAREA"].includes(t)||t==="A"&&e.hasAttribute("href")||e instanceof HTMLInputElement&&!ls(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},{getIndicatorText:rs}=Kt,{getGidsLabelClassNames:ds}=Gt,cs=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,info:i,htmlFor:o,labelId:a,class:r,isLabelSentence:l,...c},h)=>{const d=rs({children:h,fieldRequirement:t,fieldRequirementOptionalText:s,fieldRequirementRequiredText:n,isLabelSentence:l});return p("div",{class:ds({disabled:e},r),...c},p("label",{htmlFor:o,id:a},h,d&&p("span",{class:"gids-label__field-requirement"},d)),i)},ot={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},lt=new Map;for(const e in ot)for(const t of ot[e])lt.set(t,e);function hs(e){return lt.get(e)}function at(e,t="regular",s){const n=hs(e);let i=n??"";return s&&n&&(i=s(n)??n),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:us}=Wt,se=({name:e,size:t,appearance:s,alt:n,class:i,titleId:o,src:a,...r})=>{const l=it(o);let c=a;return c===void 0&&ns()&&(c=at(e,s,nt)),p("svg",{ref:h=>{c===void 0&&is((()=>{(function(d,u,g){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",at(u,g,nt)),d.appendChild(f)})(h,e,s)}))},width:"16",height:"16",class:us({size:t},i),role:"img","aria-hidden":n===""?"true":void 0,"aria-labelledby":n===""?void 0:l,...r},n!==""&&p("title",{id:l},n||e),c!==void 0?p("use",{href:c}):null)},{getGidsSpinnerControlClassNames:fs}=qt,{calculateStrokeDasharray:ps,thickness:rt,radius:dt,centerPosition:ne,viewBox:gs}=Xt,ms=({size:e,indeterminate:t,value:s,max:n,...i})=>{let o;return t||(o={strokeDashArray:ps(s,n||0),strokeDashoffset:"0"}),p("svg",{class:fs({size:e,indeterminate:t,value:s}),viewBox:gs,...i},p("circle",{class:"gids-spinner-control__track",cx:ne,cy:ne,r:dt,"stroke-width":rt}),p("circle",{style:o,class:"gids-spinner-control__progress",cx:ne,cy:ne,r:dt,"stroke-width":rt}))},vs=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.#t={},this._focusInput=t=>{const s=t.target;s===this.#e||this._isWithinInteractiveElement(s)||this.#e?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#e?.defaultValue??this.#t.defaultValue??""}set defaultValue(e){this.#e?this.#e.defaultValue=e:this.#t.defaultValue=e}get value(){return this.#e?.value??this.#t.value??this.#t.defaultValue??""}set value(e){this.#e?this.#e.value=e:this.#t.value=e}#e;#t;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(as(e))return!0;{const t=e.parentElement;if(t)return this._isWithinInteractiveElement(t)}return!1}connectedCallback(){this._el.addEventListener("click",this._focusInput)}disconnectedCallback(){this._el.removeEventListener("click",this._focusInput)}render(){return p(jt,{key:"94b08611da249786439b37e6ea7961ea3e5ee851"},p("slot",{key:"d334ee7f99214b10ddecafcbc9a8a851723eba89",name:"leadingIcon"}),this.leadingLabel&&p("span",{key:"8c650986f8a51f563f2499d9f68704702d67d3d6",class:"gids-input__label"},this.leadingLabel),p("slot",{key:"d6f6f0f53e0af2b3de306fbb4bda2b4199567060",name:"leadingAccessory"}),p("input",{key:"8429cdabbbc2034cac2d76cc72fa5e40298d5ec7",...this.inputProps,ref:e=>{this.#e=e,this.#t.value!==void 0&&(this.#e.value=this.#t.value,delete this.#t.value),this.#t.defaultValue!==void 0&&(this.#e.defaultValue=this.#t.defaultValue,delete this.#t.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),p("slot",{key:"aa7a6d1b0551a88801ef75da893ecf41e1eaafa8",name:"trailingAccessory"}),this.trailingLabel&&p("span",{key:"5f683d6c71ef3802c3749959b921b9046c168437",class:"gids-input__label"},this.trailingLabel),p("slot",{key:"b7d26fe16f35c0147b7b1a34dd41cd0f85ed5ab5",name:"trailingIcon"}),this.status==="incomplete"&&p(se,{key:"66f1da3df7907675feace05c11e2e31e892d6251",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&p(se,{key:"3fc74b5623174d2a321a5367854ff180bde2cd9f",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&p(ms,{key:"ceb78121856acade2513cffcae16170d91a3fb74",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function xe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,vs))}))}xe();const{getGidsDropdownClassNames:ys,getGidsChevronButtonControlClassNames:bs}=Qt,Ee="gids-dropdown-item--active",_s=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="default",this.expanded=!1,this.filterValue="",this.isFilterEditing=!1,this.hasLeadingIcon=!1,this.hasLeadingAccessory=!1,this.activeIndex=-1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.hasPendingControlRevalidation=!1,this.handleDropdownItemSelect=t=>{const{value:s,title:n,disabled:i,id:o,isPlaceholderItem:a}=t.detail;i||typeof s!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:o,value:s,title:n,disabled:!1,originalEvent:t,isPlaceholderItem:a}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const s=t.target;if(!(s instanceof Element))return;const n=s.closest(".gids-dropdown-item");if(!n||!this.hostElement.contains(n)||n.hasAttribute("disabled")||n.getAttribute("aria-disabled")==="true")return;const i=n instanceof HTMLButtonElement?n.value:n.getAttribute("value")??"";if(typeof i!="string"||i.length===0)return;const o=n instanceof HTMLButtonElement?n.id:n.getAttribute("id")??"";if(typeof o!="string"||o.length===0)return;const a=n.getAttribute("is-placeholder-item")??"";this.applySelection({id:o,value:i,title:n.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!a||a!=="true")})},this.handleFilterInput=t=>{const s=t.target;this.filterValue=s?.value??"",this.isFilterEditing=!0,this.clearActive(),this.expanded||this.setExpandedState(!0,t),this.applyFilter()},this.handleInputKeyDown=t=>{if(!this.isInteractive())return;const s=t.key,n=s==="ArrowDown";if((n||s==="ArrowUp")&&!t.metaKey&&!t.ctrlKey)return t.preventDefault(),this.expanded||this.setExpandedState(!0,t),void this.moveActive(n?1:-1);if(s==="Home"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(0);if(s==="End"&&this.expanded)return t.preventDefault(),void this.setActiveByIndex(this.getVisibleEnabledItems().length-1);if(s==="Enter"){if(!this.expanded)return t.preventDefault(),this.setExpandedState(!0,t),void this.setActiveByIndex(0);this.selectActive()&&t.preventDefault()}},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleInputFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))},this.handleInputClickToggle=t=>{t.defaultPrevented||this.handleTriggerToggle(t)},this.handleChevronClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const s=t.key;if(s==="Escape"||s==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);s==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.isFilterEditing=!1,this.filterValue="",this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdown"]'),this.hasLeadingAccessory=!!this.hostElement.querySelector('[slot="leadingAccessoryDropdown"]')}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}getVisibleEnabledItems(){return this.getItemElements().filter((e=>e.style.display!=="none"&&!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.emitNativeSelectionEvents(this.selectedItemTitle??""),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownChange",{bubbles:!0,composed:!0,detail:e}))}getInputControl(){return this.hostElement.querySelector(".gids-input__control")}emitNativeSelectionEvents(e){const t=this.getInputControl();t&&(t.value=e,t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}clearActive(){this.activeIndex=-1,this.getItemElements().forEach((e=>e.classList.remove(Ee))),this.setActiveDescendant(void 0)}setActiveByIndex(e){const t=this.getVisibleEnabledItems();if(this.getItemElements().forEach((i=>i.classList.remove(Ee))),t.length===0)return this.activeIndex=-1,void this.setActiveDescendant(void 0);const s=Math.max(0,Math.min(e,t.length-1)),n=t[s];if(!n)return this.activeIndex=-1,void this.setActiveDescendant(void 0);this.activeIndex=s,n.classList.add(Ee),n.scrollIntoView({block:"nearest"}),this.setActiveDescendant(n.id||void 0)}moveActive(e){const t=this.getVisibleEnabledItems();t.length!==0?this.setActiveByIndex(this.activeIndex===-1?e>0?0:t.length-1:(this.activeIndex+e+t.length)%t.length):this.clearActive()}selectActive(){const e=this.getVisibleEnabledItems();if(e.length===0)return!1;const t=this.activeIndex>=0?e[this.activeIndex]:e[0];return!!t&&(t.click(),this.getInputControl()?.focus(),!0)}applyFilter(){const e=this.filterValue.trim().toLowerCase();this.getItemElements().forEach((t=>{const s=(t.textContent??"").toLowerCase(),n=e.length===0||s.includes(e);t.style.display=n?"":"none"}))}setActiveDescendant(e){const t=this.getInputControl();t&&(e?t.setAttribute("aria-activedescendant",e):t.removeAttribute("aria-activedescendant"))}setExpandedState(e,t){const s=!!e;s&&!this.isInteractive()||this.expanded!==s&&(this.expanded=s,s||(this.isFilterEditing=!1,this.filterValue="",this.clearActive(),this.applyFilter(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownToggle",{bubbles:!0,composed:!0,detail:{expanded:s,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getInputControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}get form(){return this.getInputControl()?.form??this.patternForm??null}get validity(){return this.getInputControl()?.validity??{}}get validationMessage(){return this.getInputControl()?.validationMessage??""}get willValidate(){return this.getInputControl()?.willValidate??!1}async checkValidity(){return this.getInputControl()?.checkValidity()??!0}async reportValidity(){return this.getInputControl()?.reportValidity()??!0}async setCustomValidity(e){return this.getInputControl()?.setCustomValidity(e)}isInteractive(){return!(this.disabled||this.readOnly)}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}scheduleControlRevalidation(){if(this.hasPendingControlRevalidation)return;this.hasPendingControlRevalidation=!0;const e=()=>{this.hasPendingControlRevalidation=!1,this.checkValidity()};typeof requestAnimationFrame!="function"?e():requestAnimationFrame(e)}getEnhancedInputProps(){const e={...this.inputProps??{}};typeof e.autoComplete=="string"&&e?.autoComplete?.trim?.()?.length!==0||(e.autoComplete="off");const t=e.onInput;e.onInput=i=>{t?.(i),this.handleFilterInput(i)};const s=e.onBlur;e.onBlur=i=>{s?.(i),this.scheduleControlRevalidation()};const n=e.onKeyDown;return e.onKeyDown=i=>{n?.(i),i.defaultPrevented||this.handleInputKeyDown(i)},e}render(){const e=this.expanded&&this.isInteractive(),t=ys({expanded:e}),s=this.getEnhancedInputProps(),n=typeof s.id=="string"?s.id:void 0,i=n?`${n}__menu`:void 0;s.role="combobox",s["aria-expanded"]=e?"true":"false",s["aria-haspopup"]="listbox",s["aria-autocomplete"]="list",i&&(s["aria-controls"]=i);const o=this.isFilterEditing?this.filterValue:this.selectedItemTitle??this.value??"",a=e?"true":"false",r=p("button",{key:"c4482da12927a1e47e6ef8aeaa8948d928f44c82",class:bs({size:"lg"}),slot:"trailingAccessory",type:"button",onClick:this.handleChevronClickToggle,"aria-label":e?"Collapse options":"Expanded options","aria-expanded":a,"aria-haspopup":"listbox","aria-controls":i,disabled:this.disabled||this.readOnly,tabIndex:-1},p("span",{key:"19b889b60ea764f63f885092201e950b35d78a45",class:"gids-button__content"},p(se,{key:"0ac5ccbd16fc7bd223f45107ede23aa698c1f4b1",name:"chevron-vertical",alt:""})));return p("div",{key:"5e1ecfa73b2790753739dfb374a4220b9470dc5b",class:t},p("gids-input",{key:"945e19939a10b6c3415c6794f6d594d8c6e4288e",appearance:this.appearance,loading:this.loading,disabled:this.disabled,readOnly:this.readOnly,required:this.required,value:o,name:this.name,inputProps:s,onClick:this.handleInputClickToggle,onFocus:this.handleInputFocusAndBlur,onBlur:this.handleInputFocusAndBlur},this.hasLeadingIcon&&p("slot",{key:"3f73972a3e445cb40bfdb1a319e7f2094a100ec6",name:"leadingIconDropdown",slot:"leadingIcon"}),this.hasLeadingAccessory&&p("slot",{key:"2c53bfbd7fa8dd1cb03295bf6994c5ebabfd4c3b",name:"leadingAccessoryDropdown",slot:"leadingAccessory"}),r),p("div",{key:"b09e3a03faba23b1fa1b641543803322d05d6cc6",class:"gids-dropdown__menu",id:i,role:"listbox",onClick:this.handleMenuClick},p("slot",{key:"90acae2dad52ae43ddada1acc294d8b5291ab668"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}}static get style(){return'@charset "UTF-8";.gids-dropdown{position:relative}.gids-dropdown__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;min-height:55px;max-height:20rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown__menu>*{flex-shrink:0}.gids-dropdown--expanded .gids-dropdown__menu{display:flex}.gids-dropdown__leading-icon{display:flex;align-items:center}.gids-dropdown__accessory{display:flex;align-items:center}'}},[260,"gids-dropdown",{appearance:[1],expanded:[1540],inputProps:[16],disabled:[516],readOnly:[516,"read-only"],loading:[516],value:[513],name:[1],onSelectionChange:[16],required:[4],filterValue:[32],isFilterEditing:[32],selectedItemTitle:[32],hasLeadingIcon:[32],hasLeadingAccessory:[32],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],readOnly:[{handleInteractivityChange:0}]}]);function ct(){typeof customElements<"u"&&["gids-dropdown","gids-input"].forEach((e=>{switch(e){case"gids-dropdown":customElements.get(e)||customElements.define(e,_s);break;case"gids-input":customElements.get(e)||xe()}}))}ct();const R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ht=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let we=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{ut()})):void 0,ut=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let s=0;s<document.styleSheets.length;s++){const n=document.styleSheets.item(s);if(n)try{let i=-1,o=0;for(let a=0;a<n.cssRules.length;a++){const r=n.cssRules.item(a);if(r?.cssText.startsWith("gids-global-styles-start"))i=a;else if(i>-1){if(r?.cssText.startsWith("gids-global-styles-end")){o=a-i+1;break}t.push(r)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:o,rules:t,styleSheet:n}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==we&&(we&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),we=t),R.replaceSync((s=>s.rules.map((n=>n.cssText)).join(""))(e)),(s=>{const{rulesStartIndex:n,originalRulesCount:i,styleSheet:o}=s;for(let a=0;a<i;a++)o.deleteRule(n)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ss=()=>(ht||(ht=ut()),R),{getGidsFieldClassNames:xs}=Zt,Es=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],s=this._findTextControl(t);this._attachControlElement(s)},this._handleControlValueInput=t=>{if(!this._controlTouched){const s=t.target;s instanceof HTMLInputElement&&(s.type==="checkbox"||s.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=Ss();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,s=this._getCurrentStatus(),n=["gids-field__status-text"];if(e){const i=this._getStatusModifierClass(s,"gids-field__status-text");i!=null&&n.push(i)}return p(De,{key:"55afcede8d0a565f98b1cdd20293c9f885997d6c"},p("div",{key:"4c9ce99475a4c38e5b8c62b2bef588eb48fcec28",class:xs()},p("div",{key:"4c254203e9d4414e59c2564e86119280a7f89186",class:"gids-field__header",hidden:!this._hasLabelContent()},p("slot",{key:"3f8c6df5ac4098e821490edf0699d002ee8ca430",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),p("div",{key:"c2da3ba663158c54514d959e98ad2861fc64bd57",class:"gids-field__count","aria-live":"polite"},this.count)),p("div",{key:"da5091c74fb3df1146b4eecb4d7ee6537a322f32",class:"gids-field__control"},p("slot",{key:"bc49fb537279473305d616f900d5df696d9c2c3c",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),p("p",{key:"326849f878b531e4695368f1f112ce6d36c3ef4d",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?p("p",{class:n.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(s),t!==void 0?p("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const s=["gids-field__status-icon"],n=this._getStatusModifierClass(e,"gids-field__status-icon");n!=null&&s.push(n);let i=e;return e==="error"&&(i="danger"),e==="success"&&(i="positive"),p(se,{appearance:"filled",size:"sm",alt:"",name:t,class:s.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${i})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((s=>{s.addEventListener("input",this._handleControlValueInput),s.addEventListener("change",this._handleControlValueInput),s.addEventListener("blur",this._handleControlBlur,!0),s.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const s=t.elements.namedItem(e.name);if(s instanceof RadioNodeList){const n=Array.from(s).filter((i=>i instanceof HTMLInputElement&&i.type==="radio"&&this._el.contains(i)));if(n.length>0)return n}}if(e.name!=null){const s=`input[type="radio"][name="${CSS.escape(e.name)}"]`,n=Array.from(this._el.querySelectorAll(s));if(n.length>0)return n}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const s=t,n=this._asTextControl(s);if(n!==null)return n;const i=s.querySelector("input, textarea");if(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)return i}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function ft(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Es))}))}ft();const pt=ee(class extends U{constructor(e){super(),e!==!1&&this.__registerHost(),this.internals=this.attachInternals(),this.appearance="default",this.expanded=!1,this.#e=it(),this.handleSelectionChange=t=>{this.value=t.value,this.syncFormValue(t.value),this.onSelectionChange?.(t)},this.handleDropdownFocusAndBlur=t=>{this.hostElement.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}#e;componentWillLoad(){this.syncFormValue(this.value)}handleValueChange(e){this.syncFormValue(e)}syncFormValue(e){this.internals.setFormValue(e??"")}getDropdownControl(){return this.hostElement.querySelector("gids-dropdown")}get form(){return this.getDropdownControl()?.form??null}get validity(){return this.getDropdownControl()?.validity??{}}get validationMessage(){return this.getDropdownControl()?.validationMessage??""}get willValidate(){return this.getDropdownControl()?.willValidate??!1}async checkValidity(){const e=this.getDropdownControl();return!e?.checkValidity||await e.checkValidity()}async reportValidity(){const e=this.getDropdownControl();return!e?.reportValidity||await e.reportValidity()}async setCustomValidity(e){const t=this.getDropdownControl();if(t?.setCustomValidity)return await t.setCustomValidity(e)}render(){const e=this.inputProps?.id??this.#e,t={...this.inputProps,id:e,placeholder:this.inputProps?.placeholder??"Please select an option"};return p("gids-field",{key:"fb0965fc37a06b9937a6806516c7cddedadfe125",disabled:this.disabled,helperText:this.helperText,statusText:this.statusText,status:this.status},this.label!==void 0?p(cs,{slot:"label",disabled:this.disabled,htmlFor:e,fieldRequirement:this.required?"required":void 0},this.label):null,p("gids-dropdown",{key:"8ccb36c6505cd9363f1f4334bc2a2be7e7045f52",appearance:this.appearance,expanded:this.expanded,inputProps:t,disabled:this.disabled,readOnly:this.readOnly,loading:this.loading,value:this.value,name:this.name,onSelectionChange:this.handleSelectionChange,onFocus:this.handleDropdownFocusAndBlur,onBlur:this.handleDropdownFocusAndBlur,required:this.required},p("slot",{key:"21bb6152c67fd767f8a55b7134d1eced8ae0516f",name:"leadingIconDropdown"}),p("slot",{key:"8b06bf5e9ac9f787b74ed6603a37c953fae67fe0",name:"leadingAccessoryDropdown"}),p("slot",{key:"9d653e38ecebdc233614f00a03fdaead3cf17fc7"})))}static get formAssociated(){return!0}get hostElement(){return this}static get watchers(){return{value:[{handleValueChange:0}]}}},[324,"gids-dropdown-field",{label:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],appearance:[513],expanded:[516],readOnly:[516,"readonly"],disabled:[516],loading:[516],inputProps:[16],value:[1025],name:[513],onSelectionChange:[16],required:[516],checkValidity:[64],reportValidity:[64],setCustomValidity:[64]},void 0,{value:[{handleValueChange:0}]}]);function gt(){typeof customElements<"u"&&["gids-dropdown-field","gids-dropdown","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-dropdown-field":customElements.get(e)||customElements.define(e,pt);break;case"gids-dropdown":customElements.get(e)||ct();break;case"gids-field":customElements.get(e)||ft();break;case"gids-input":customElements.get(e)||xe()}}))}gt();const ws=pt,Cs=gt;D.GidsDropdownField=ws,D.defineCustomElement=Cs,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(I,M){typeof exports=="object"&&typeof module<"u"?M(exports):typeof define=="function"&&define.amd?define(["exports"],M):(I=typeof globalThis<"u"?globalThis:I||self,M(I.gidsCoreWebGidsDropdownPicker={}))})(this,(function(I){"use strict";function M(e,t,n){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const o=Object.getOwnPropertyDescriptor(e,t);if(o&&(!n||o.get))return o;e=Object.getPrototypeOf(e)}}var R,st=(e,t)=>{var n;Object.entries((n=t.o.t)!=null?n:{}).map((([s,[o]])=>{if(31&o||32&o){const i=e[s],l=M(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):i!==void 0&&(e[s]=i)}}))},A=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ye=(e,t)=>t in e,T=(e,t)=>(0,console.error)(e,t),W=new Map,be="http://www.w3.org/1999/xlink",nt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],w=typeof window<"u"?window:{},ot=w.HTMLElement||class{},x={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},it=(()=>{var e;let t=!1;try{(e=w.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),ee=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),te=!!ee&&!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable,se=!1,Se=[],we=[],rt=(e,t)=>n=>{e.push(n),se||(se=!0,4&x.i?oe(ne):x.raf(ne))},ke=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){T(n)}e.length=0},ne=()=>{ke(Se),ke(we),(se=Se.length>0)&&x.raf(ne)},oe=e=>Promise.resolve(void 0).then(e),lt=rt(we);function at(){const e=this.attachShadow({mode:"open"});R===void 0&&(R=null),R&&(te?e.adoptedStyleSheets.push(R):e.adoptedStyleSheets=[...e.adoptedStyleSheets,R])}var Ee=e=>{const t=re(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&ie(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!ct(s,B(s),!1).length)}));let n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&re(s,"childNodes").length&&Ee(s)}};function ie(e,t,n){let s,o=0,i=[];for(;o<e.length;o++){if(s=e[o],s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||B(s)===n)&&(i.push(s),n!==void 0))return i;i=[...i,...ie(s.childNodes,t,n)]}return i}var ct=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let o=e;for(;o=o.nextSibling;)B(o)!==t||!n&&o["s-sr"]||s.push(o);return s},xe=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",B=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function re(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var le,j,D=new WeakMap,Ne=e=>"sc-"+e.p,ae=e=>(e=typeof e)=="object"||e==="function",N=(e,t,...n)=>{let s=null,o=null,i=null,l=!1,a=!1;const r=[],d=c=>{for(let h=0;h<c.length;h++)s=c[h],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((l=typeof e!="function"&&!ae(s))&&(s=String(s)),l&&a?r[r.length-1].h+=s:r.push(l?z(null,s):s),a=l)};if(d(n),t){t.key&&(o=t.key),t.name&&(i=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((h=>c[h])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,r,ht);const u=z(e,null);return u.v=t,r.length>0&&(u.m=r),u.$=o,u.j=i,u},z=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),dt={},ht={forEach:(e,t)=>e.map(_e).forEach(t),map:(e,t)=>e.map(_e).map(t).map(ut)},_e=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),ut=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),N(e.vtag,n,...e.vchildren||[])}const t=z(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ce=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let n=!1;for(const o of t){if(n)break;for(const i of e[o])if(typeof i=="string"){n=!0;break}}if(!n)return e;const s={};for(const o of t)s[o]=e[o].map((i=>typeof i=="string"?{[i]:0}:i));return s},Pe=(e,t,n)=>e==null||ae(e)?e:4&t?(n&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,pt=(e,t,n)=>{const s=x.ce(t,n);return e.dispatchEvent(s),s},Oe=(e,t,n,s,o,i)=>{if(n===s)return;let l=ye(e,t),a=t.toLowerCase();if(t==="class"){const r=e.classList,d=$e(n);let u=$e(s);r.remove(...d.filter((c=>c&&!u.includes(c)))),r.add(...u.filter((c=>c&&!d.includes(c))))}else if(t==="style"){for(const r in n)s&&s[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in s)n&&s[r]===n[r]||(r.includes("-")?e.style.setProperty(r,s[r]):e.style[r]=s[r])}else if(t!=="key"){if(t==="ref")s&>(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const r=t.slice(5);let d;{const u=A(e);if(u&&u.o&&u.o.t){const c=u.o.t[r];c&&c[1]&&(d=c[1])}}return d||(d=r.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 r=t.slice(5);try{e[r]=s}catch{}return}{const r=ae(s);if((l||r&&s!==null)&&!o)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?l=!1:n!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}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(be,t):e.removeAttribute(t)):(!l||4&i||o)&&!r&&e.nodeType===1&&(s=s===!0?"":s,d?e.setAttributeNS(be,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),n||s){const r=t.endsWith(Ae);t=t.replace(mt,""),n&&x.rel(e,t,n,r),s&&x.ael(e,t,s,r)}}},ft=/\s/,$e=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ft):[]),Ae="Capture",mt=new RegExp(Ae+"$"),ce=(e,t,n)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,o=e&&e.v||{},i=t.v||{};for(const l of Le(Object.keys(o)))l in i||Oe(s,l,o[l],void 0,n,t.i);for(const l of Le(Object.keys(i)))Oe(s,l,o[l],i[l],n,t.i)};function Le(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var G=!1,q=!1,U=!1,_=!1,de=[],he=[],K=(e,t,n)=>{var s;const o=t.m[n];let i,l,a,r=0;if(G||(U=!0,o.O==="slot"&&(o.i|=o.m?2:1)),o.h!=null)i=o.S=w.document.createTextNode(o.h);else if(1&o.i)i=o.S=w.document.createTextNode(""),ce(null,o,_);else{if(_||(_=o.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(i=o.S=w.document.createElementNS(_?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!G&&2&o.i?"slot-fb":o.O),_&&o.O==="foreignObject"&&(_=!1),ce(null,o,_),o.m){const d=o.O==="template"?i.content:i;for(r=0;r<o.m.length;++r)l=K(e,o,r),l&&d.appendChild(l)}o.O==="svg"?_=!1:i.tagName==="foreignObject"&&(_=!0)}return i["s-hn"]=j,3&o.i&&(i["s-sr"]=!0,i["s-cr"]=le,i["s-sn"]=o.j||"",i["s-rf"]=(s=o.v)==null?void 0:s.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const u=c=>(function(h){const f=[],p=this["s-sn"];h?.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 v=[];for(let g=0;g<S.length;g++){const m=S[g]["s-nr"]||void 0;m&&m.isConnected&&v.push(m)}return v})(b.childNodes)).forEach((S=>{p===B(S)&&f.push(S)})),c?f.filter((S=>S.nodeType===1)):f}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(i),l=e&&e.m&&e.m[n],l&&l.O===o.O&&e.S&&De(e.S)),i},De=e=>{N.i|=1;const t=e.closest(I.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((o=>o["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const o of n?s.reverse():s)o["s-sh"]!=null&&(O(t,o,n??null),o["s-sh"]=void 0,U=!0)}N.i&=-2},Y=(e,t)=>{N.i|=1;const n=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"]===I&&n.push(s)}for(let s=n.length-1;s>=0;s--){const o=n[s];o["s-hn"]!==I&&o["s-ol"]&&(O(H(o).parentNode,o,H(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,U=!0),t&&Y(o,t)}N.i&=-2},Te=(e,t,n,s,o,i)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===I&&(l=l.shadowRoot),n.O==="template"&&(l=l.content);o<=i;++o)s[o]&&(a=K(null,n,o),a&&(s[o].S=a,O(l,a,H(t))))},Ie=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const i=o.S;Me(o),i&&(q=!0,i["s-ol"]?i["s-ol"].remove():Y(i,!0),i.remove())}}},Z=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),H=e=>e&&e["s-ol"]||e,F=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,i=t.m,a=t.O,l=t.h;let r;l==null?(_=a==="svg"||a!=="foreignObject"&&_,a!=="slot"||G||e.j!==t.j&&(t.S["s-sn"]=t.j||"",De(t.S.parentElement)),ce(e,t,_),o!==null&&i!==null?((d,u,c,h,f=!1)=>{let p,b,S=0,v=0,g=0,m=0,E=u.length-1,y=u[0],w=u[E],C=h.length-1,P=h[0],A=h[C];const et=c.O==="template"?d.content:d;for(;S<=E&&v<=C;)if(y==null)y=u[++S];else if(w==null)w=u[--E];else if(P==null)P=h[++v];else if(A==null)A=h[--C];else if(Z(y,P,f))F(y,P,f),y=u[++S],P=h[++v];else if(Z(w,A,f))F(w,A,f),w=u[--E],A=h[--C];else if(Z(y,A,f))y.O!=="slot"&&A.O!=="slot"||Y(y.S.parentNode,!1),F(y,A,f),O(et,y.S,w.S.nextSibling),y=u[++S],A=h[--C];else if(Z(w,P,f))y.O!=="slot"&&A.O!=="slot"||Y(w.S.parentNode,!1),F(w,P,f),O(et,w.S,y.S),w=u[--E],P=h[++v];else{for(g=-1,m=S;m<=E;++m)if(u[m]&&u[m].$!==null&&u[m].$===P.$){g=m;break}g>=0?(b=u[g],b.O!==P.O?p=K(u&&u[v],c,g):(F(b,P,f),u[g]=void 0,p=b.S),P=h[++v]):(p=K(u&&u[v],c,v),P=h[++v]),p&&O(H(y.S).parentNode,p,H(y.S))}S>E?Te(d,h[C+1]==null?null:h[C+1].S,c,h,v,C):v>C&&Ie(u,S,E)})(s,o,t,i,n):i!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,i,0,i.length-1)):!n&&o!==null&&Ie(o,0,o.length-1),_&&a==="svg"&&(_=!1)):(r=s["s-cr"])?r.parentNode.textContent=l:e.h!==l&&(s.data=l)},L=[],je=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const i of o){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const a=i["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(xe(t,a)){let l=L.find((r=>r.k===t));q=!0,t["s-sn"]=t["s-sn"]||a,l?(l.k["s-sh"]=i["s-hn"],l.N=i):(t["s-sh"]=i["s-hn"],L.push({N:i,k:t})),t["s-sr"]&&L.map((r=>{xe(r.k,t["s-sn"])&&(l=L.find((d=>d.k===t)),l&&!r.N&&(r.N=l.N))}))}else L.some((l=>l.k===t))||L.push({k:t})}i.nodeType===1&&je(i)}},Me=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(Me)},ft=(e,t)=>{he.push((()=>e(t)))},O=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(i,a){var l;if(!(a=a||((l=i["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const r=i["s-sn"]=B(i)||"";return{slotNode:ie(re(a,"childNodes"),a.tagName,r)[0],slotName:r}})(t);return o&&!s&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},mt=(e,t,n=!1)=>{var s,o,i,a,l;const r=e.$hostElement$,d=e.o,u=e.M||W(null,null);var c;const h=(c=t)&&c.O===at?t:x(null,null,t);if(I=r.tagName,d.C&&(h.v=h.v||{},d.C.forEach((([f,p])=>{h.v[p]=r[f]}))),n&&h.v)for(const f of Object.keys(h.v))r.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(h.v[f]=r[f]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=r.shadowRoot||r,G=!(!(1&d.i)||128&d.i),le=r["s-cr"],q=!1,F(u,h,n),N.i|=1,U){je(h.S);for(const f of L){const p=f.k;if(!p["s-ol"]&&k.document){const b=k.document.createTextNode("");b["s-nr"]=p,O(p.parentNode,p["s-ol"]=b,p,n)}}for(const f of L){const p=f.k,b=f.N;if(p.nodeType===1&&n&&(p["s-ih"]=(s=p.hidden)!=null&&s),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let g=(o=p["s-ol"])==null?void 0:o.previousSibling;for(;g;){let m=(i=g["s-nr"])!=null?i:null;if(m&&m["s-sn"]===p["s-sn"]&&S===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===p||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}g=g.previousSibling}}if((!v&&S!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==v)&&p!==v){if(O(S,p,v,n),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const g=k.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=p["s-hn"],g["s-sn"]=p["s-sn"],g["s-sh"]=p["s-sh"],g["s-sr"]=p["s-sr"],g["s-ol"]=p["s-ol"],g["s-ol"]["s-nr"]=g,O(p.parentNode,g,p,n),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(a=p["s-ih"])!=null&&a)}p&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else p.nodeType===1&&(p.hidden=!0)}}if(q&&Ee(h.S),N.i&=-2,L.length=0,!G&&!(1&d.i)&&r["s-cr"]){const f=h.S.__childNodes||h.S.childNodes;for(const p of f)if(p["s-hn"]!==I&&!p["s-sh"]){if(n&&p["s-ih"]==null&&(p["s-ih"]=(l=p.hidden)!=null&&l),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const b=k.document.createComment("s-nt-"+p.nodeValue);b["s-sn"]=p["s-sn"],O(p.parentNode,b,p,n),p.parentNode.removeChild(p)}}}le=void 0,de.forEach((f=>f())),de.length=0,he.forEach((f=>f())),he.length=0},Fe=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},ue=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Fe(e,e.R);const n=()=>gt(e,t);if(!t)return it(n);queueMicrotask((()=>{n()}))},gt=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.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 o;return o=z(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),o=Re(o,(()=>z(s,"componentWillRender",void 0,n))),Re(o,(()=>yt(e,s,t)))},Re=(e,t)=>vt(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),vt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",yt=async(e,t,n)=>{var s;const o=e.$hostElement$,i=o["s-rc"];n&&(a=>{const l=a.o,r=a.$hostElement$,d=l.i,u=((c,h)=>{var f,p,b;const S=Ne(h),v=V.get(S);if(!k.document)return S;if(c=c.nodeType===11?c:k.document,v)if(typeof v=="string"){let g,m=D.get(c=c.head||c);if(m||D.set(c,m=new Set),!m.has(S)){g=k.document.createElement("style"),g.textContent=v;const E=(f=N._)!=null?f:(function(){var y,w,C;return(C=(w=(y=k.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?C:void 0})();if(E!=null&&g.setAttribute("nonce",E),!(1&h.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),w=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,w?.parentNode===c?w:null)}else if("host"in c)if(ee){const y=new((p=c.defaultView)!=null?p:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),te?c.adoptedStyleSheets.unshift(y):c.adoptedStyleSheets=[y,...c.adoptedStyleSheets]}else{const y=c.querySelector("style");y?y.textContent=v+y.textContent:c.prepend(g)}else c.append(g);1&h.i&&c.insertBefore(g,null),4&h.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(S)}}else{let g=D.get(c);if(g||D.set(c,g=new Set),!g.has(S)){const m=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let E;if(v.constructor===m.CSSStyleSheet)E=v;else{E=new m.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)E.insertRule(v.cssRules[y].cssText,y)}te?c.adoptedStyleSheets.push(E):c.adoptedStyleSheets=[...c.adoptedStyleSheets,E],g.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),l);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),bt(e,t,o,n),i&&(i.map((a=>a())),o["s-rc"]=void 0);{const a=(s=o["s-p"])!=null?s:[],l=()=>St(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},bt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,mt(e,t,s)}catch(o){M(o,e.$hostElement$)}return null},St=e=>{const t=e.$hostElement$,n=t,s=e.R;z(n,"componentDidRender",void 0,t),64&e.i?z(n,"componentDidUpdate",void 0,t):(e.i|=64,kt(t),z(n,"componentDidLoad",void 0,t),e.L(t),s||wt()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>ue(e,!1))),e.i&=-517},wt=()=>{oe((()=>ht(k,"appload",{detail:{namespace:"gids-core-web"}})))},z=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(o){M(o,s)}},kt=e=>e.classList.add("hydrated"),Be=(e,t,n,s)=>{const o=$(e);if(!o)return;const i=e,a=o.l.get(t),l=o.i,r=i;n=Pe(n,s.t[t][0],!!(64&s.i));const d=Number.isNaN(a)&&Number.isNaN(n);if(n!==a&&!d){if(o.l.set(t,n),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[h,f]]=Object.entries(c);(128&l||1&f)&&(r?r[h](n,a,t):o.T.push((()=>{o.D[h](n,a,t)})))}catch(h){M(h,i)}}))}if(2&l){if(r.componentShouldUpdate&&r.componentShouldUpdate(n,a,t)===!1&&!(16&l))return;16&l||ue(o,!1)}}},Et=(e,t,n)=>{var s,o;const i=e.prototype;64&t.i&&1&n&&st.forEach((a=>{const l=i[a];Object.defineProperty(i,a,{value(...r){var d;const u=$(this),c=this;c?typeof l=="function"&&l.call(c,...r):(d=u?.H)==null||d.then((h=>{const f=h[a];typeof f=="function"&&f.call(h,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Ce(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((s=t.t)!=null?s:{});a.map((([l,[r]])=>{if(31&r||32&r){const{get:d,set:u}=j(i,l)||{};d&&(t.t[l][0]|=2048),u&&(t.t[l][0]|=4096),Object.defineProperty(i,l,{get(){return d?d.apply(this):(c=l,$(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,l,{set(c){const h=$(this);if(h){if(u)return(32&r?this[l]:h.$hostElement$[l])===void 0&&h.l.get(l)&&(c=h.l.get(l)),u.apply(this,[Pe(c,r,!!(64&t.i))]),void Be(this,l,c=32&r?this[l]:h.$hostElement$[l],t);Be(this,l,c,t)}}})}}));{const l=new Map;i.attributeChangedCallback=function(r,d,u){N.jmp((()=>{var c;const h=l.get(r),f=$(this);if(this.hasOwnProperty(h),i.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const g=f?.i;if(f&&g&&!(8&g)&&u!==d){const m=this,E=(c=t.F)==null?void 0:c[r];E?.forEach((y=>{const[[w,C]]=Object.entries(y);m[w]!=null&&(128&g||1&C)&&m[w].call(m,u,d,r)}))}return}const p=a.find((([g])=>g===h)),b=p&&4&p[1][0],S=b&&u===null&&this[h]===void 0;b&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(i,h);S||u==this[h]||v.get&&!v.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((o=t.F)!=null?o:{}),...a.filter((([r,d])=>31&d[0])).map((([r,d])=>{var u;const c=d[1]||r;return l.set(c,r),512&d[0]&&((u=t.C)==null||u.push([r,c])),c}))]))}}return e},xt=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.F=Ce(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,a)=>{const l={i:0,$hostElement$:i,o:a,l:new Map,W:new Map};l.H=new Promise((d=>l.L=d)),i["s-p"]=[],i["s-rc"]=[];const r=l;i.__stencil__getHostRef=()=>r,512&a.i&&tt(i,l)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!$(this))return;this.__hasHostListenerAttached=!0}(i=>{if(!(1&N.i)){const a=$(i);if(!a)return;const l=a.o;if(1&a.i)a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&l.i&&(r=>{if(!k.document)return;const d=r["s-cr"]=k.document.createComment("");d["s-cn"]=!0,O(r,d,r.firstChild)})(i);{let r=i;for(;r=r.parentNode||r.host;)if(r["s-p"]){Fe(a,a.R=r);break}}l.t&&Object.entries(l.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(i,r)){const u=i[r];delete i[r],i[r]=u}})),(async(r,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let p;typeof c.style=="string"&&(p=c.style);const b=Ne(u);V.has(b)||((S,v,g)=>{let m=V.get(S);ee&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,V.set(S,m)})(b,p,!!(1&u.i))}const h=d.R,f=()=>ue(d,!0);h&&h["s-rc"]?h["s-rc"].push(f):f()}catch(h){M(h,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(i,a,l)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{1&N.i||$(i),D.has(i)&&D.delete(i),i.shadowRoot&&D.has(i.shadowRoot)&&D.delete(i.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else rt.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Et(e,n,3)}catch(s){return M(s),e}};function Jt(e){return e}function Ge(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ge(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function J(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ge(e))&&(s&&(s+=" "),s+=t);return s}const Nt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>J("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},n,s)},Symbol.toStringTag,{value:"Module"})),_t=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>J("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"})),Ct=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:n,destructive:s,positive:o,loading:i},a,l)=>J("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":n==="full","gids-button--destructive":s&&!o,"gids-button--positive":o&&!s,"gids-button--icon-only":a,"gids-button--loading":i},l)},Symbol.toStringTag,{value:"Module"})),Q=64,He=10,ze=Q/2-He/2,Pt=Q/2,pe=2*Math.PI*ze,Ot=`0 0 ${Q} ${Q}`,At=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,o=Math.max(0,Math.min(n,e))/n*100,i=(pe*o/100).toFixed(2),a=(pe-parseFloat(i)).toFixed(2);return`${i} ${a}`},centerPosition:Pt,circumference:pe,radius:ze,thickness:He,viewBox:Ot},Symbol.toStringTag,{value:"Module"})),$t=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownPickerClassNames:({expanded:e},t)=>J("gids-dropdown-picker",{"gids-dropdown-picker--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),Ve=Symbol("pathSet"),me="gids-asset-paths-set";class Lt extends EventTarget{#s=new Map;constructor(){super()}#e(t,n){this.#s.set(t,n)}#t(t){return this.#s.get(t)??null}#n=()=>{this.dispatchEvent(new Event(me))};haveAssetPathsBeenSet(){return this.#t(Ve)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(fe,n)}this.#e(Ve,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(me,t,{once:!0}),()=>{this.removeEventListener(me,t)}}}const ge=Symbol.for("GIDS"),Dt=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Tt=e=>{const t=Dt().assetPaths;return t[e]===void 0&&(t[e]=new Lt),t[e]};function ve(){return Tt("@ganpatiinfo/gids-web-shared")}function It(){return ve().haveAssetPathsBeenSet()}function We(e){return ve().getAssetFilePath(e)}function jt(e){return ve().onAssetPathsSet(e)}let Mt=0;const Ft=(e,t="gids")=>e||`${t}-${Mt++}`,qe=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:Rt}=Nt,{calculateStrokeDasharray:Bt,thickness:Ue,radius:Ke,centerPosition:X,viewBox:Gt}=At,Ht=({size:e,indeterminate:t,value:n,max:s,...o})=>{let i;return t||(i={strokeDashArray:Bt(n,s||0),strokeDashoffset:"0"}),x("svg",{class:Rt({size:e,indeterminate:t,value:n}),viewBox:Gt,...o},x("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ke,"stroke-width":Ue}),x("circle",{style:i,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ke,"stroke-width":Ue}))},{getGidsButtonClassNames:zt}=Ct,Vt=({appearance:e,size:t,destructive:n,positive:s,loading:o,width:i,leadingIcon:a,trailingIcon:l,as:r,disabled:d,class:u,forceIconOnly:c=!1,...h},f)=>{const p=r||"button",b=t==="lg"||t===void 0?"md":t;return p!=="button"||"type"in h||(h.type="button"),x(p,{class:zt({appearance:e,size:t,destructive:n,loading:o,width:i,positive:s},c||f.length===0&&qe(a)&&!qe(l),u),disabled:p==="button"?d:void 0,...h},x("span",{class:"gids-button__content"},a,f),o&&x(Ht,{size:b,indeterminate:!0}),l)},Ye={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Ze=new Map;for(const e in Ye)for(const t of Ye[e])Ze.set(t,e);function Wt(e){return Ze.get(e)}function Je(e,t="regular",n){const s=Wt(e);let o=s??"";return n&&s&&(o=n(s)??s),`${o}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:qt}=_t,Ut=({name:e,size:t,appearance:n,alt:s,class:o,titleId:i,src:a,...l})=>{const r=Ft(i);let d=a;return d===void 0&&It()&&(d=Je(e,n,We)),x("svg",{ref:u=>{d===void 0&&jt((()=>{(function(c,h,f){if(!c)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",Je(h,f,We)),c.appendChild(p)})(u,e,n)}))},width:"16",height:"16",class:qt({size:t},o),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:r,...l},s!==""&&x("title",{id:r},s||e),d!==void 0?x("use",{href:d}):null)},{getGidsDropdownPickerClassNames:Kt}=$t,Qe=xt(class extends nt{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="sm",this.idPicker="",this.expanded=!1,this.hasLeadingIcon=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.handleDropdownPickerItemSelect=t=>{const{value:n,title:s,disabled:o,id:i}=t.detail;o||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:i,value:n,title:s,disabled:!1,originalEvent:t}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t.target;if(!(n instanceof Element))return;const s=n.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const o=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")??"";if(typeof o!="string"||o.length===0)return;const i=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";typeof i=="string"&&i.length!==0&&this.applySelection({id:i,value:o,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t})},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleDropdownButtonClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleOutSpaceClickOfDropdownButtonToggle=t=>{this.expanded&&(t.stopPropagation(),this.setExpandedState(!1))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const n=t.key;if(n==="Escape"||n==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);n==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdownPicker"]')}getDropdownButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.clearActive(),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}setExpandedState(e,t){const n=!!e;n&&!this.isInteractive()||this.expanded!==n&&(this.expanded=n,n||(this.clearActive(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerToggle",{bubbles:!0,composed:!0,detail:{expanded:n,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getDropdownButtonControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}render(){const e=this.expanded&&this.isInteractive(),t=Kt({expanded:e}),n=typeof this.idPicker=="string"?this.idPicker:void 0,s=n?`${n}__menu`:void 0;return x("div",{key:"60aba19be894123a4fb11cf8d682c89c1e1dfc9c",class:t,onClick:this.handleOutSpaceClickOfDropdownButtonToggle},x(Vt,{key:"6e691f9fee63c676d7a66d42024a4688730f9503",role:"pickerbox","aria-expanded":e?"true":"false","aria-haspopup":"pickerlistbox","aria-controls":s??"",onClick:this.handleDropdownButtonClickToggle,disabled:this.disabled,value:this.selectedItemTitle??this.value??"",loading:this.loading,appearance:this.appearance,size:this.size},this.hasLeadingIcon?x("slot",{name:"leadingIconDropdownPicker",slot:"leadingIcon"}):x(Ut,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"})),x("div",{key:"b44514baae627324d71f1114c3ba18bc6b946b01",class:"gids-dropdown-picker__menu",id:s,role:"pickerbox",onClick:this.handleMenuClick},x("slot",{key:"1e3b9e592646a1bda41d2cf5bfc8556908c0499f"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}}static get style(){return".gids-dropdown-picker{position:relative}.gids-dropdown-picker__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;max-height:15rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown-picker__menu>*{flex-shrink:0}.gids-dropdown-picker--expanded .gids-dropdown-picker__menu{display:flex}"}},[260,"gids-dropdown-picker",{appearance:[1],size:[1],idPicker:[1,"id-picker"],expanded:[1540],disabled:[516],loading:[516],value:[513],name:[1],onSelectionChange:[16],selectedItemTitle:[32],hasLeadingIcon:[32]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}]);function Xe(){typeof customElements<"u"&&["gids-dropdown-picker"].forEach((e=>{e==="gids-dropdown-picker"&&(customElements.get(e)||customElements.define(e,Qe))}))}Xe();const Yt=Qe,Zt=Xe;T.GidsDropdownPicker=Yt,T.defineCustomElement=Zt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const v=[];for(let g=0;g<S.length;g++){const m=S[g]["s-nr"]||void 0;m&&m.isConnected&&v.push(m)}return v})(b.childNodes)).forEach((S=>{p===B(S)&&f.push(S)})),c?f.filter((S=>S.nodeType===1)):f}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(i),a=e&&e.m&&e.m[n],a&&a.O===o.O&&e.S&&De(e.S)),i},De=e=>{x.i|=1;const t=e.closest(j.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((o=>o["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const o of n?s.reverse():s)o["s-sh"]!=null&&(O(t,o,n??null),o["s-sh"]=void 0,U=!0)}x.i&=-2},Y=(e,t)=>{x.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===j&&n.push(s)}for(let s=n.length-1;s>=0;s--){const o=n[s];o["s-hn"]!==j&&o["s-ol"]&&(O(V(o).parentNode,o,V(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,U=!0),t&&Y(o,t)}x.i&=-2},Ie=(e,t,n,s,o,i)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===j&&(a=a.shadowRoot),n.O==="template"&&(a=a.content);o<=i;++o)s[o]&&(l=K(null,n,o),l&&(s[o].S=l,O(a,l,V(t))))},Te=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const i=o.S;Me(o),i&&(q=!0,i["s-ol"]?i["s-ol"].remove():Y(i,!0),i.remove())}}},Z=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),V=e=>e&&e["s-ol"]||e,F=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,i=t.m,l=t.O,a=t.h;let r;a==null?(_=l==="svg"||l!=="foreignObject"&&_,l!=="slot"||G||e.j!==t.j&&(t.S["s-sn"]=t.j||"",De(t.S.parentElement)),ce(e,t,_),o!==null&&i!==null?((d,u,c,h,f=!1)=>{let p,b,S=0,v=0,g=0,m=0,E=u.length-1,y=u[0],k=u[E],C=h.length-1,P=h[0],$=h[C];const tt=c.O==="template"?d.content:d;for(;S<=E&&v<=C;)if(y==null)y=u[++S];else if(k==null)k=u[--E];else if(P==null)P=h[++v];else if($==null)$=h[--C];else if(Z(y,P,f))F(y,P,f),y=u[++S],P=h[++v];else if(Z(k,$,f))F(k,$,f),k=u[--E],$=h[--C];else if(Z(y,$,f))y.O!=="slot"&&$.O!=="slot"||Y(y.S.parentNode,!1),F(y,$,f),O(tt,y.S,k.S.nextSibling),y=u[++S],$=h[--C];else if(Z(k,P,f))y.O!=="slot"&&$.O!=="slot"||Y(k.S.parentNode,!1),F(k,P,f),O(tt,k.S,y.S),k=u[--E],P=h[++v];else{for(g=-1,m=S;m<=E;++m)if(u[m]&&u[m].$!==null&&u[m].$===P.$){g=m;break}g>=0?(b=u[g],b.O!==P.O?p=K(u&&u[v],c,g):(F(b,P,f),u[g]=void 0,p=b.S),P=h[++v]):(p=K(u&&u[v],c,v),P=h[++v]),p&&O(V(y.S).parentNode,p,V(y.S))}S>E?Ie(d,h[C+1]==null?null:h[C+1].S,c,h,v,C):v>C&&Te(u,S,E)})(s,o,t,i,n):i!==null?(e.h!==null&&(s.textContent=""),Ie(s,null,t,i,0,i.length-1)):!n&&o!==null&&Te(o,0,o.length-1),_&&l==="svg"&&(_=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},L=[],je=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const i of o){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const l=i["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(xe(t,l)){let a=L.find((r=>r.k===t));q=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],L.push({N:i,k:t})),t["s-sr"]&&L.map((r=>{xe(r.k,t["s-sn"])&&(a=L.find((d=>d.k===t)),a&&!r.N&&(r.N=a.N))}))}else L.some((a=>a.k===t))||L.push({k:t})}i.nodeType===1&&je(i)}},Me=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(Me)},gt=(e,t)=>{he.push((()=>e(t)))},O=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(i,l){var a;if(!(l=l||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=i["s-sn"]=B(i)||"";return{slotNode:ie(re(l,"childNodes"),l.tagName,r)[0],slotName:r}})(t);return o&&!s&&o.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},vt=(e,t,n=!1)=>{var s,o,i,l,a;const r=e.$hostElement$,d=e.o,u=e.M||z(null,null);var c;const h=(c=t)&&c.O===dt?t:N(null,null,t);if(j=r.tagName,d.C&&(h.v=h.v||{},d.C.forEach((([f,p])=>{h.v[p]=r[f]}))),n&&h.v)for(const f of Object.keys(h.v))r.hasAttribute(f)&&!["key","ref","style","class"].includes(f)&&(h.v[f]=r[f]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=r.shadowRoot||r,G=!(!(1&d.i)||128&d.i),le=r["s-cr"],q=!1,F(u,h,n),x.i|=1,U){je(h.S);for(const f of L){const p=f.k;if(!p["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=p,O(p.parentNode,p["s-ol"]=b,p,n)}}for(const f of L){const p=f.k,b=f.N;if(p.nodeType===1&&n&&(p["s-ih"]=(s=p.hidden)!=null&&s),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let g=(o=p["s-ol"])==null?void 0:o.previousSibling;for(;g;){let m=(i=g["s-nr"])!=null?i:null;if(m&&m["s-sn"]===p["s-sn"]&&S===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===p||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}g=g.previousSibling}}if((!v&&S!==(p.__parentNode||p.parentNode)||(p.__nextSibling||p.nextSibling)!==v)&&p!==v){if(O(S,p,v,n),p.nodeType===8&&p.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(p.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=p["s-hn"],g["s-sn"]=p["s-sn"],g["s-sh"]=p["s-sh"],g["s-sr"]=p["s-sr"],g["s-ol"]=p["s-ol"],g["s-ol"]["s-nr"]=g,O(p.parentNode,g,p,n),p.parentNode.removeChild(p)}p.nodeType===1&&p.tagName!=="SLOT-FB"&&(p.hidden=(l=p["s-ih"])!=null&&l)}p&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else p.nodeType===1&&(p.hidden=!0)}}if(q&&Ee(h.S),x.i&=-2,L.length=0,!G&&!(1&d.i)&&r["s-cr"]){const f=h.S.__childNodes||h.S.childNodes;for(const p of f)if(p["s-hn"]!==j&&!p["s-sh"]){if(n&&p["s-ih"]==null&&(p["s-ih"]=(a=p.hidden)!=null&&a),p.nodeType===1)p.hidden=!0;else if(p.nodeType===3&&p.nodeValue.trim()){const b=w.document.createComment("s-nt-"+p.nodeValue);b["s-sn"]=p["s-sn"],O(p.parentNode,b,p,n),p.parentNode.removeChild(p)}}}le=void 0,de.forEach((f=>f())),de.length=0,he.forEach((f=>f())),he.length=0},Fe=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},ue=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Fe(e,e.R);const n=()=>yt(e,t);if(!t)return lt(n);queueMicrotask((()=>{n()}))},yt=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.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 o;return o=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),o=Re(o,(()=>H(s,"componentWillRender",void 0,n))),Re(o,(()=>St(e,s,t)))},Re=(e,t)=>bt(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),bt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",St=async(e,t,n)=>{var s;const o=e.$hostElement$,i=o["s-rc"];n&&(l=>{const a=l.o,r=l.$hostElement$,d=a.i,u=((c,h)=>{var f,p,b;const S=Ne(h),v=W.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let g,m=D.get(c=c.head||c);if(m||D.set(c,m=new Set),!m.has(S)){g=w.document.createElement("style"),g.textContent=v;const E=(f=x._)!=null?f:(function(){var y,k,C;return(C=(k=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:k.getAttribute("content"))!=null?C:void 0})();if(E!=null&&g.setAttribute("nonce",E),!(1&h.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),k=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,k?.parentNode===c?k:null)}else if("host"in c)if(ee){const y=new((p=c.defaultView)!=null?p:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),te?c.adoptedStyleSheets.unshift(y):c.adoptedStyleSheets=[y,...c.adoptedStyleSheets]}else{const y=c.querySelector("style");y?y.textContent=v+y.textContent:c.prepend(g)}else c.append(g);1&h.i&&c.insertBefore(g,null),4&h.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(S)}}else{let g=D.get(c);if(g||D.set(c,g=new Set),!g.has(S)){const m=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let E;if(v.constructor===m.CSSStyleSheet)E=v;else{E=new m.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)E.insertRule(v.cssRules[y].cssText,y)}te?c.adoptedStyleSheets.push(E):c.adoptedStyleSheets=[...c.adoptedStyleSheets,E],g.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),wt(e,t,o,n),i&&(i.map((l=>l())),o["s-rc"]=void 0);{const l=(s=o["s-p"])!=null?s:[],a=()=>kt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},wt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,vt(e,t,s)}catch(o){T(o,e.$hostElement$)}return null},kt=e=>{const t=e.$hostElement$,n=t,s=e.R;H(n,"componentDidRender",void 0,t),64&e.i?H(n,"componentDidUpdate",void 0,t):(e.i|=64,xt(t),H(n,"componentDidLoad",void 0,t),e.L(t),s||Et()),e.A&&(e.A(),e.A=void 0),512&e.i&&oe((()=>ue(e,!1))),e.i&=-517},Et=()=>{oe((()=>pt(w,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(o){T(o,s)}},xt=e=>e.classList.add("hydrated"),Be=(e,t,n,s)=>{const o=A(e);if(!o)return;const i=e,l=o.l.get(t),a=o.i,r=i;n=Pe(n,s.t[t][0],!!(64&s.i));const d=Number.isNaN(l)&&Number.isNaN(n);if(n!==l&&!d){if(o.l.set(t,n),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[h,f]]=Object.entries(c);(128&a||1&f)&&(r?r[h](n,l,t):o.T.push((()=>{o.D[h](n,l,t)})))}catch(h){T(h,i)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(n,l,t)===!1&&!(16&a))return;16&a||ue(o,!1)}}},Nt=(e,t,n)=>{var s,o;const i=e.prototype;64&t.i&&1&n&&nt.forEach((l=>{const a=i[l];Object.defineProperty(i,l,{value(...r){var d;const u=A(this),c=this;c?typeof a=="function"&&a.call(c,...r):(d=u?.H)==null||d.then((h=>{const f=h[l];typeof f=="function"&&f.call(h,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Ce(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const l=Object.entries((s=t.t)!=null?s:{});l.map((([a,[r]])=>{if(31&r||32&r){const{get:d,set:u}=M(i,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return d?d.apply(this):(c=a,A(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(c){const h=A(this);if(h){if(u)return(32&r?this[a]:h.$hostElement$[a])===void 0&&h.l.get(a)&&(c=h.l.get(a)),u.apply(this,[Pe(c,r,!!(64&t.i))]),void Be(this,a,c=32&r?this[a]:h.$hostElement$[a],t);Be(this,a,c,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(r,d,u){x.jmp((()=>{var c;const h=a.get(r),f=A(this);if(this.hasOwnProperty(h),i.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const g=f?.i;if(f&&g&&!(8&g)&&u!==d){const m=this,E=(c=t.F)==null?void 0:c[r];E?.forEach((y=>{const[[k,C]]=Object.entries(y);m[k]!=null&&(128&g||1&C)&&m[k].call(m,u,d,r)}))}return}const p=l.find((([g])=>g===h)),b=p&&4&p[1][0],S=b&&u===null&&this[h]===void 0;b&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(i,h);S||u==this[h]||v.get&&!v.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((o=t.F)!=null?o:{}),...l.filter((([r,d])=>31&d[0])).map((([r,d])=>{var u;const c=d[1]||r;return a.set(c,r),512&d[0]&&((u=t.C)==null||u.push([r,c])),c}))]))}}return e},_t=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Ce(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,l)=>{const a={i:0,$hostElement$:i,o:l,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),i["s-p"]=[],i["s-rc"]=[];const r=a;i.__stencil__getHostRef=()=>r,512&l.i&&st(i,a)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const i=A(this);if(!i)return;Ge(this,i,n.W),this.__hasHostListenerAttached=!0}(i=>{if(!(1&x.i)){const l=A(i);if(!l)return;const a=l.o;if(1&l.i)Ge(i,l,a.W),l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&a.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,O(r,d,r.firstChild)})(i);{let r=i;for(;r=r.parentNode||r.host;)if(r["s-p"]){Fe(l,l.R=r);break}}a.t&&Object.entries(a.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(i,r)){const u=i[r];delete i[r],i[r]=u}})),(async(r,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let p;typeof c.style=="string"&&(p=c.style);const b=Ne(u);W.has(b)||((S,v,g)=>{let m=W.get(S);ee&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,W.set(S,m)})(b,p,!!(1&u.i))}const h=d.R,f=()=>ue(d,!0);h&&h["s-rc"]?h["s-rc"].push(f):f()}catch(h){T(h,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(i,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{if(!(1&x.i)){const l=A(i);l?.V&&(l.V.map((a=>a())),l.V=void 0)}D.has(i)&&D.delete(i),i.shadowRoot&&D.has(i.shadowRoot)&&D.delete(i.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else at.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Nt(e,n,3)}catch(s){return T(s),e}},Ge=(e,t,n)=>{n&&w.document&&n.map((([s,o,i])=>{const l=Pt(w.document,e,s),a=Ct(t,i),r=Ot(s);x.ael(l,o,a,r),(t.V=t.V||[]).push((()=>x.rel(l,o,a,r)))}))},Ct=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){T(s,e.$hostElement$)}},Pt=(e,t,n)=>8&n?w:t,Ot=e=>it?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function ss(e){return e}function Ve(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ve(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function J(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const $t=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>J("gids-spinner-control",{"gids-spinner-control--xs":e==="xs","gids-spinner-control--sm":e==="sm","gids-spinner-control--lg":e==="lg","gids-spinner-control--xl":e==="xl","gids-spinner-control--2xl":e==="2xl","gids-spinner-control--determinate":t===!1},n,s)},Symbol.toStringTag,{value:"Module"})),At=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>J("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"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:n,destructive:s,positive:o,loading:i},l,a)=>J("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":n==="full","gids-button--destructive":s&&!o,"gids-button--positive":o&&!s,"gids-button--icon-only":l,"gids-button--loading":i},a)},Symbol.toStringTag,{value:"Module"})),Q=64,He=10,We=Q/2-He/2,Dt=Q/2,pe=2*Math.PI*We,It=`0 0 ${Q} ${Q}`,Tt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,o=Math.max(0,Math.min(n,e))/n*100,i=(pe*o/100).toFixed(2),l=(pe-parseFloat(i)).toFixed(2);return`${i} ${l}`},centerPosition:Dt,circumference:pe,radius:We,thickness:He,viewBox:It},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownPickerClassNames:({expanded:e},t)=>J("gids-dropdown-picker",{"gids-dropdown-picker--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),ze=Symbol("pathSet"),me="gids-asset-paths-set";class Mt extends EventTarget{#s=new Map;constructor(){super()}#e(t,n){this.#s.set(t,n)}#t(t){return this.#s.get(t)??null}#n=()=>{this.dispatchEvent(new Event(me))};haveAssetPathsBeenSet(){return this.#t(ze)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(fe,n)}this.#e(ze,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(me,t,{once:!0}),()=>{this.removeEventListener(me,t)}}}const ge=Symbol.for("GIDS"),Ft=()=>(globalThis[ge]===void 0&&(globalThis[ge]={assetPaths:{}}),globalThis[ge]),Rt=e=>{const t=Ft().assetPaths;return t[e]===void 0&&(t[e]=new Mt),t[e]};function ve(){return Rt("@ganpatiinfo/gids-web-shared")}function Bt(){return ve().haveAssetPathsBeenSet()}function qe(e){return ve().getAssetFilePath(e)}function Gt(e){return ve().onAssetPathsSet(e)}let Vt=0;const Ht=(e,t="gids")=>e||`${t}-${Vt++}`,Ue=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:Wt}=$t,{calculateStrokeDasharray:zt,thickness:Ke,radius:Ye,centerPosition:X,viewBox:qt}=Tt,Ut=({size:e,indeterminate:t,value:n,max:s,...o})=>{let i;return t||(i={strokeDashArray:zt(n,s||0),strokeDashoffset:"0"}),N("svg",{class:Wt({size:e,indeterminate:t,value:n}),viewBox:qt,...o},N("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ye,"stroke-width":Ke}),N("circle",{style:i,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ye,"stroke-width":Ke}))},{getGidsButtonClassNames:Kt}=Lt,Yt=({appearance:e,size:t,destructive:n,positive:s,loading:o,width:i,leadingIcon:l,trailingIcon:a,as:r,disabled:d,class:u,forceIconOnly:c=!1,...h},f)=>{const p=r||"button",b=t==="lg"||t===void 0?"md":t;return p!=="button"||"type"in h||(h.type="button"),N(p,{class:Kt({appearance:e,size:t,destructive:n,loading:o,width:i,positive:s},c||f.length===0&&Ue(l)&&!Ue(a),u),disabled:p==="button"?d:void 0,...h},N("span",{class:"gids-button__content"},l,f),o&&N(Ut,{size:b,indeterminate:!0}),a)},Ze={"icons-other.svg":["accessibility","add","remove","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","in-progress","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","ai","new","draft","pending","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","syncing","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},Je=new Map;for(const e in Ze)for(const t of Ze[e])Je.set(t,e);function Zt(e){return Je.get(e)}function Qe(e,t="regular",n){const s=Zt(e);let o=s??"";return n&&s&&(o=n(s)??s),`${o}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Jt}=At,Qt=({name:e,size:t,appearance:n,alt:s,class:o,titleId:i,src:l,...a})=>{const r=Ht(i);let d=l;return d===void 0&&Bt()&&(d=Qe(e,n,qe)),N("svg",{ref:u=>{d===void 0&&Gt((()=>{(function(c,h,f){if(!c)return;const p=document.createElementNS("http://www.w3.org/2000/svg","use");p.setAttribute("href",Qe(h,f,qe)),c.appendChild(p)})(u,e,n)}))},width:"16",height:"16",class:Jt({size:t},o),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:r,...a},s!==""&&N("title",{id:r},s||e),d!==void 0?N("use",{href:d}):null)},{getGidsDropdownPickerClassNames:Xt}=jt,Xe=_t(class extends ot{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.size="sm",this.idPicker="",this.expanded=!1,this.hasLeadingIcon=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.hasDocumentListeners=!1,this.handleDropdownPickerItemSelect=t=>{const{value:n,title:s,disabled:o,id:i,isPlaceholderItem:l}=t.detail;o||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:i,value:n,title:s,disabled:!1,originalEvent:t,isPlaceholderItem:l}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t.target;if(!(n instanceof Element))return;const s=n.closest(".gids-dropdown-item");if(!s||!this.hostElement.contains(s)||s.hasAttribute("disabled")||s.getAttribute("aria-disabled")==="true")return;const o=s instanceof HTMLButtonElement?s.value:s.getAttribute("value")??"";if(typeof o!="string"||o.length===0)return;const i=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof i!="string"||i.length===0)return;const l=s.getAttribute("is-placeholder-item")??"";this.applySelection({id:i,value:o,title:s.textContent?.trim()??"",disabled:!1,originalEvent:t,isPlaceholderItem:!(!l||l!=="true")})},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleDropdownButtonClickToggle=t=>{t.defaultPrevented||(t.stopPropagation(),this.handleTriggerToggle(t))},this.handleOutSpaceClickOfDropdownButtonToggle=t=>{this.expanded&&(t.stopPropagation(),this.setExpandedState(!1))},this.handleDocumentPointerDown=t=>{t.button!==2&&this.expanded&&((typeof t.composedPath=="function"?t.composedPath():[]).includes(this.hostElement)||this.hostElement.contains(t.target)||this.setExpandedState(!1,t))},this.handleDocumentKeyDown=t=>{if(!this.expanded)return;const n=t.key;if(n==="Escape"||n==="Esc")return t.preventDefault(),void this.setExpandedState(!1,t);n==="Tab"&&this.setExpandedState(!1,t)},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=void 0,this.setExpandedState(!1)}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}connectedCallback(){this.initialValue=this.value,this.attachItemListener(),this.attachDocumentListeners(),this.attachFormListener()}disconnectedCallback(){this.detachItemListener(),this.detachDocumentListeners(),this.detachFormListener()}componentWillLoad(){this.checkSlots()}componentWillUpdate(){this.checkSlots()}checkSlots(){this.hasLeadingIcon=!!this.hostElement.querySelector('[slot="leadingIconDropdownPicker"]')}getDropdownButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleDropdownPickerItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.clearActive(),this.setExpandedState(!1,this.coerceEvent(e.originalEvent)),this.onSelectionChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}setExpandedState(e,t){const n=!!e;n&&!this.isInteractive()||this.expanded!==n&&(this.expanded=n,n||(this.clearActive(),this.syncInputDisplayValue()),this.hostElement.dispatchEvent(new CustomEvent("gidsDropdownPickerToggle",{bubbles:!0,composed:!0,detail:{expanded:n,originalEvent:t}})))}syncInputDisplayValue(){const e=this.getDropdownButtonControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}attachDocumentListeners(){this.hasDocumentListeners||typeof document>"u"||(document.addEventListener("pointerdown",this.handleDocumentPointerDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!0)}detachDocumentListeners(){this.hasDocumentListeners&&typeof document<"u"&&(document.removeEventListener("pointerdown",this.handleDocumentPointerDown),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.hasDocumentListeners=!1)}attachFormListener(){const e=this.hostElement.closest("form");this.patternForm!==e&&(this.patternForm&&this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=e??void 0,this.patternForm?.addEventListener("reset",this.handleFormReset))}detachFormListener(){this.patternForm&&(this.patternForm.removeEventListener("reset",this.handleFormReset),this.patternForm=void 0)}isInteractive(){return!this.disabled}coerceEvent(e){if(typeof Event<"u"&&e!==null)return e instanceof Event?e:void 0}render(){const e=this.expanded&&this.isInteractive(),t=Xt({expanded:e}),n=typeof this.idPicker=="string"?this.idPicker:void 0,s=n?`${n}__menu`:void 0;return N("div",{key:"1ee449ed3c2d93b14e4b2df8d535bd30e580fb0f",class:t,onClick:this.handleOutSpaceClickOfDropdownButtonToggle},N(Yt,{key:"e566f446f656a90c51ff25206d1b56918641904c",role:"pickerbox","aria-expanded":e?"true":"false","aria-haspopup":"pickerlistbox","aria-controls":s??"",onClick:this.handleDropdownButtonClickToggle,disabled:this.disabled,value:this.selectedItemTitle??this.value??"",loading:this.loading,appearance:this.appearance,size:this.size},this.hasLeadingIcon?N("slot",{name:"leadingIconDropdownPicker",slot:"leadingIcon"}):N(Qt,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"})),N("div",{key:"ff00f5d0f0ecd11fd67ba8748f983a0444400c50",class:"gids-dropdown-picker__menu",id:s,role:"pickerbox",onClick:this.handleMenuClick},N("slot",{key:"ea983b061c69295bc6756a44617cc35267d6ce70"})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}}static get style(){return".gids-dropdown-picker{position:relative}.gids-dropdown-picker__menu{position:absolute;inset-inline:0;top:calc(100% + var(--gids-gap-050));z-index:3;display:none;flex-direction:column;align-self:stretch;min-width:var(--gids-width-2-xs);min-height:55px;max-height:15rem;overflow-x:hidden;overflow-y:auto;background-color:var(--gids-elevation-surface-overlay-default);box-shadow:var(--gids-elevation-shadow-overlay);border-radius:var(--gids-border-radius-lg)}.gids-dropdown-picker__menu>*{flex-shrink:0}.gids-dropdown-picker--expanded .gids-dropdown-picker__menu{display:flex}"}},[260,"gids-dropdown-picker",{appearance:[1],size:[1],idPicker:[1,"id-picker"],expanded:[1540],disabled:[516],loading:[516],value:[513],name:[1],onSelectionChange:[16],selectedItemTitle:[32],hasLeadingIcon:[32]},void 0,{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}]}]);function et(){typeof customElements<"u"&&["gids-dropdown-picker"].forEach((e=>{e==="gids-dropdown-picker"&&(customElements.get(e)||customElements.define(e,Xe))}))}et();const es=Xe,ts=et;I.GidsDropdownPicker=es,I.defineCustomElement=ts,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})}));
|