@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
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
(function(F,L){typeof exports=="object"&&typeof module<"u"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(F=typeof globalThis<"u"?globalThis:F||self,L(F.gidsCoreWebGidsFilter={}))})(this,(function(F){"use strict";function L(e,t,n){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!n||i.get))return i;e=Object.getPrototypeOf(e)}}var B,ft=(e,t)=>{var n;Object.entries((n=t.o.t)!=null?n:{}).map((([s,[i]])=>{if(31&i||32&i){const l=e[s],r=L(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);r&&Object.defineProperty(e,s,{get(){return r.get.call(this)},set(a){r.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):l!==void 0&&(e[s]=l)}}))},O=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},we=(e,t)=>t in e,M=(e,t)=>(0,console.error)(e,t),W=new Map,xe="http://www.w3.org/1999/xlink",pt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],w=typeof window<"u"?window:{},_e=w.HTMLElement||class{},N={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)},gt=(()=>{var e;let t=!1;try{(e=w.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),te=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),se=!!te&&!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable,ne=!1,Ee=[],Ne=[],mt=(e,t)=>n=>{e.push(n),ne||(ne=!0,4&N.i?le(ie):N.raf(ie))},ke=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){M(n)}e.length=0},ie=()=>{ke(Ee),ke(Ne),(ne=Ee.length>0)&&N.raf(ie)},le=e=>Promise.resolve(void 0).then(e),yt=mt(Ne);function vt(){const e=this.attachShadow({mode:"open"});B===void 0&&(B=null),B&&(se?e.adoptedStyleSheets.push(B):e.adoptedStyleSheets=[...e.adoptedStyleSheets,B])}var Ce=e=>{const t=re(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!bt(s,G(s),!1).length)}));let n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&re(s,"childNodes").length&&Ce(s)}};function oe(e,t,n){let s,i=0,l=[];for(;i<e.length;i++){if(s=e[i],s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||G(s)===n)&&(l.push(s),n!==void 0))return l;l=[...l,...oe(s.childNodes,t,n)]}return l}var bt=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let i=e;for(;i=i.nextSibling;)G(i)!==t||!n&&i["s-sr"]||s.push(i);return s},Ie=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",G=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 ae,j,P=new WeakMap,Te=e=>"sc-"+e.p,de=e=>(e=typeof e)=="object"||e==="function",x=(e,t,...n)=>{let s=null,i=null,l=null,r=!1,a=!1;const o=[],c=d=>{for(let u=0;u<d.length;u++)s=d[u],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((r=typeof e!="function"&&!de(s))&&(s=String(s)),r&&a?o[o.length-1].h+=s:o.push(r?q(null,s):s),a=r)};if(c(n),t){t.key&&(i=t.key),t.name&&(l=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,o,St);const h=q(e,null);return h.v=t,o.length>0&&(h.m=o),h.$=i,h.j=l,h},q=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),$e={},St={forEach:(e,t)=>e.map(Oe).forEach(t),map:(e,t)=>e.map(Oe).map(t).map(wt)},Oe=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),wt=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),x(e.vtag,n,...e.vchildren||[])}const t=q(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ae=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let n=!1;for(const i of t){if(n)break;for(const l of e[i])if(typeof l=="string"){n=!0;break}}if(!n)return e;const s={};for(const i of t)s[i]=e[i].map((l=>typeof l=="string"?{[l]:0}:l));return s},Pe=(e,t,n)=>e==null||de(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,xt=(e,t)=>{const n=e;return{emit:s=>Fe(n,t,{bubbles:!0,composed:!0,cancelable:!0,detail:s})}},Fe=(e,t,n)=>{const s=N.ce(t,n);return e.dispatchEvent(s),s},Me=(e,t,n,s,i,l)=>{if(n===s)return;let r=we(e,t),a=t.toLowerCase();if(t==="class"){const o=e.classList,c=je(n);let h=je(s);o.remove(...c.filter((d=>d&&!h.includes(d)))),o.add(...h.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const o in n)s&&s[o]!=null||(o.includes("-")?e.style.removeProperty(o):e.style[o]="");for(const o in s)n&&s[o]===n[o]||(o.includes("-")?e.style.setProperty(o,s[o]):e.style[o]=s[o])}else if(t!=="key"){if(t==="ref")s&&Nt(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const o=t.slice(5);let c;{const h=O(e);if(h&&h.o&&h.o.t){const d=h.o.t[o];d&&d[1]&&(c=d[1])}}return c||(c=o.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const o=t.slice(5);try{e[o]=s}catch{}return}{const o=de(s);if((r||o&&s!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const h=s??"";t==="list"?r=!1:n!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(xe,t):e.removeAttribute(t)):(!r||4&l||i)&&!o&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(xe,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):we(w,a)?a.slice(2):a[2]+t.slice(3),n||s){const o=t.endsWith(Le);t=t.replace(Et,""),n&&N.rel(e,t,n,o),s&&N.ael(e,t,s,o)}}},_t=/\s/,je=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(_t):[]),Le="Capture",Et=new RegExp(Le+"$"),ce=(e,t,n)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},l=t.v||{};for(const r of Re(Object.keys(i)))r in l||Me(s,r,i[r],void 0,n,t.i);for(const r of Re(Object.keys(l)))Me(s,r,i[r],l[r],n,t.i)};function Re(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var H=!1,U=!1,K=!1,k=!1,he=[],ue=[],Y=(e,t,n)=>{var s;const i=t.m[n];let l,r,a,o=0;if(H||(K=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)l=i.S=w.document.createTextNode(i.h);else if(1&i.i)l=i.S=w.document.createTextNode(""),ce(null,i,k);else{if(k||(k=i.O==="svg"),!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=i.S=w.document.createElementNS(k?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!H&&2&i.i?"slot-fb":i.O),k&&i.O==="foreignObject"&&(k=!1),ce(null,i,k),i.m){const c=i.O==="template"?l.content:l;for(o=0;o<i.m.length;++o)r=Y(e,i,o),r&&c.appendChild(r)}i.O==="svg"?k=!1:l.tagName==="foreignObject"&&(k=!0)}return l["s-hn"]=j,3&i.i&&(l["s-sr"]=!0,l["s-cr"]=ae,l["s-sn"]=i.j||"",l["s-rf"]=(s=i.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const h=d=>(function(u){const p=[],f=this["s-sn"];u?.flatten&&console.error(`
|
|
2
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
3
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
+
`);const b=this["s-cr"].parentElement;return(b.__childNodes?b.childNodes:(S=>{const y=[];for(let m=0;m<S.length;m++){const g=S[m]["s-nr"]||void 0;g&&g.isConnected&&y.push(g)}return y})(b.childNodes)).forEach((S=>{f===G(S)&&p.push(S)})),d?p.filter((S=>S.nodeType===1)):p}).bind(c);c.assignedElements=h(!0),c.assignedNodes=h(!1)})(l),a=e&&e.m&&e.m[n],a&&a.O===i.O&&e.S&&De(e.S)),l},De=e=>{N.i|=1;const t=e.closest(j.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,K=!0)}N.i&=-2},X=(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"]===j&&n.push(s)}for(let s=n.length-1;s>=0;s--){const i=n[s];i["s-hn"]!==j&&i["s-ol"]&&(T(V(i).parentNode,i,V(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,K=!0),t&&X(i,t)}N.i&=-2},Be=(e,t,n,s,i,l)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===j&&(a=a.shadowRoot),n.O==="template"&&(a=a.content);i<=l;++i)s[i]&&(r=Y(null,n,i),r&&(s[i].S=r,T(a,r,V(t))))},Ge=(e,t,n)=>{for(let s=t;s<=n;++s){const i=e[s];if(i){const l=i.S;Ve(i),l&&(U=!0,l["s-ol"]?l["s-ol"].remove():X(l,!0),l.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,R=(e,t,n=!1)=>{const s=t.S=e.S,i=e.m,l=t.m,r=t.O,a=t.h;let o;a==null?(k=r==="svg"||r!=="foreignObject"&&k,r!=="slot"||H||e.j!==t.j&&(t.S["s-sn"]=t.j||"",De(t.S.parentElement)),ce(e,t,k),i!==null&&l!==null?((c,h,d,u,p=!1)=>{let f,b,S=0,y=0,m=0,g=0,E=h.length-1,v=h[0],_=h[E],C=u.length-1,I=u[0],$=u[C];const ut=d.O==="template"?c.content:c;for(;S<=E&&y<=C;)if(v==null)v=h[++S];else if(_==null)_=h[--E];else if(I==null)I=u[++y];else if($==null)$=u[--C];else if(Z(v,I,p))R(v,I,p),v=h[++S],I=u[++y];else if(Z(_,$,p))R(_,$,p),_=h[--E],$=u[--C];else if(Z(v,$,p))v.O!=="slot"&&$.O!=="slot"||X(v.S.parentNode,!1),R(v,$,p),T(ut,v.S,_.S.nextSibling),v=h[++S],$=u[--C];else if(Z(_,I,p))v.O!=="slot"&&$.O!=="slot"||X(_.S.parentNode,!1),R(_,I,p),T(ut,_.S,v.S),_=h[--E],I=u[++y];else{for(m=-1,g=S;g<=E;++g)if(h[g]&&h[g].$!==null&&h[g].$===I.$){m=g;break}m>=0?(b=h[m],b.O!==I.O?f=Y(h&&h[y],d,m):(R(b,I,p),h[m]=void 0,f=b.S),I=u[++y]):(f=Y(h&&h[y],d,y),I=u[++y]),f&&T(V(v.S).parentNode,f,V(v.S))}S>E?Be(c,u[C+1]==null?null:u[C+1].S,d,u,y,C):y>C&&Ge(h,S,E)})(s,i,t,l,n):l!==null?(e.h!==null&&(s.textContent=""),Be(s,null,t,l,0,l.length-1)):!n&&i!==null&&Ge(i,0,i.length-1),k&&r==="svg"&&(k=!1)):(o=s["s-cr"])?o.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],He=e=>{let t,n,s;const i=e.__childNodes||e.childNodes;for(const l of i){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const r=l["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(Ie(t,r)){let a=A.find((o=>o.k===t));U=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=l["s-hn"],a.N=l):(t["s-sh"]=l["s-hn"],A.push({N:l,k:t})),t["s-sr"]&&A.map((o=>{Ie(o.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!o.N&&(o.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}l.nodeType===1&&He(l)}},Ve=e=>{e.v&&e.v.ref&&he.push((()=>e.v.ref(null))),e.m&&e.m.map(Ve)},Nt=(e,t)=>{ue.push((()=>e(t)))},T=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:i}=(function(l,r){var a;if(!(r=r||((a=l["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const o=l["s-sn"]=G(l)||"";return{slotNode:oe(re(r,"childNodes"),r.tagName,o)[0],slotName:o}})(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)},kt=(e,t,n=!1)=>{var s,i,l,r,a;const o=e.$hostElement$,c=e.o,h=e.M||q(null,null);var d;const u=(d=t)&&d.O===$e?t:x(null,null,t);if(j=o.tagName,c.C&&(u.v=u.v||{},c.C.forEach((([p,f])=>{u.v[f]=o[p]}))),n&&u.v)for(const p of Object.keys(u.v))o.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(u.v[p]=o[p]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=o.shadowRoot||o,H=!(!(1&c.i)||128&c.i),ae=o["s-cr"],U=!1,R(h,u,n),N.i|=1,K){He(u.S);for(const p of A){const f=p.k;if(!f["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=f,T(f.parentNode,f["s-ol"]=b,f,n)}}for(const p of A){const f=p.k,b=p.N;if(f.nodeType===1&&n&&(f["s-ih"]=(s=f.hidden)!=null&&s),b){const S=b.parentNode;let y=b.nextSibling;if(y&&y.nodeType===1){let m=(i=f["s-ol"])==null?void 0:i.previousSibling;for(;m;){let g=(l=m["s-nr"])!=null?l:null;if(g&&g["s-sn"]===f["s-sn"]&&S===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){y=g;break}}m=m.previousSibling}}if((!y&&S!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==y)&&f!==y){if(T(S,f,y,n),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=w.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=f["s-hn"],m["s-sn"]=f["s-sn"],m["s-sh"]=f["s-sh"],m["s-sr"]=f["s-sr"],m["s-ol"]=f["s-ol"],m["s-ol"]["s-nr"]=m,T(f.parentNode,m,f,n),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(r=f["s-ih"])!=null&&r)}f&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else f.nodeType===1&&(f.hidden=!0)}}if(U&&Ce(u.S),N.i&=-2,A.length=0,!H&&!(1&c.i)&&o["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const f of p)if(f["s-hn"]!==j&&!f["s-sh"]){if(n&&f["s-ih"]==null&&(f["s-ih"]=(a=f.hidden)!=null&&a),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const b=w.document.createComment("s-nt-"+f.nodeValue);b["s-sn"]=f["s-sn"],T(f.parentNode,b,f,n),f.parentNode.removeChild(f)}}}ae=void 0,he.forEach((p=>p())),he.length=0,ue.forEach((p=>p())),ue.length=0},ze=(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()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);ze(e,e.R);const n=()=>Ct(e,t);if(!t)return yt(n);queueMicrotask((()=>{n()}))},Ct=(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=We(i,(()=>z(s,"componentWillRender",void 0,n))),We(i,(()=>Tt(e,s,t)))},We=(e,t)=>It(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),It=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Tt=async(e,t,n)=>{var s;const i=e.$hostElement$,l=i["s-rc"];n&&(r=>{const a=r.o,o=r.$hostElement$,c=a.i,h=((d,u)=>{var p,f,b;const S=Te(u),y=W.get(S);if(!w.document)return S;if(d=d.nodeType===11?d:w.document,y)if(typeof y=="string"){let m,g=P.get(d=d.head||d);if(g||P.set(d,g=new Set),!g.has(S)){m=w.document.createElement("style"),m.textContent=y;const E=(p=N._)!=null?p:(function(){var v,_,C;return(C=(_=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?C:void 0})();if(E!=null&&m.setAttribute("nonce",E),!(1&u.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),_=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,_?.parentNode===d?_:null)}else if("host"in d)if(te){const v=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),se?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=y+v.textContent:d.prepend(m)}else d.append(m);1&u.i&&d.insertBefore(m,null),4&u.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(S)}}else{let m=P.get(d);if(m||P.set(d,m=new Set),!m.has(S)){const g=(b=d.defaultView)!=null?b:d.ownerDocument.defaultView;let E;if(y.constructor===g.CSSStyleSheet)E=y;else{E=new g.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)E.insertRule(y.cssRules[v].cssText,v)}se?d.adoptedStyleSheets.push(E):d.adoptedStyleSheets=[...d.adoptedStyleSheets,E],m.add(S)}}return S})(o.shadowRoot?o.shadowRoot:o.getRootNode(),a);10&c&&(o["s-sc"]=h,o.classList.add(h+"-h"))})(e),$t(e,t,i,n),l&&(l.map((r=>r())),i["s-rc"]=void 0);{const r=(s=i["s-p"])!=null?s:[],a=()=>Ot(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},$t=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,kt(e,t,s)}catch(i){M(i,e.$hostElement$)}return null},Ot=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,Pt(t),z(n,"componentDidLoad",void 0,t),e.L(t),s||At()),e.A&&(e.A(),e.A=void 0),512&e.i&&le((()=>fe(e,!1))),e.i&=-517},At=()=>{le((()=>Fe(w,"appload",{detail:{namespace:"gids-core-web"}})))},z=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(i){M(i,s)}},Pt=e=>e.classList.add("hydrated"),qe=(e,t,n,s)=>{const i=O(e);if(!i)return;const l=e,r=i.l.get(t),a=i.i,o=l;n=Pe(n,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(n);if(n!==r&&!c){if(i.l.set(t,n),s.F){const h=s.F[t];h&&h.map((d=>{try{const[[u,p]]=Object.entries(d);(128&a||1&p)&&(o?o[u](n,r,t):i.T.push((()=>{i.D[u](n,r,t)})))}catch(u){M(u,l)}}))}if(2&a){if(o.componentShouldUpdate&&o.componentShouldUpdate(n,r,t)===!1&&!(16&a))return;16&a||fe(i,!1)}}},Ft=(e,t,n)=>{var s,i;const l=e.prototype;64&t.i&&1&n&&pt.forEach((r=>{const a=l[r];Object.defineProperty(l,r,{value(...o){var c;const h=O(this),d=this;d?typeof a=="function"&&a.call(d,...o):(c=h?.H)==null||c.then((u=>{const p=u[r];typeof p=="function"&&p.call(u,...o)}))}})}));{e.watchers&&!t.F&&(t.F=Ae(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const r=Object.entries((s=t.t)!=null?s:{});r.map((([a,[o]])=>{if(31&o||32&o){const{get:c,set:h}=L(l,a)||{};c&&(t.t[a][0]|=2048),h&&(t.t[a][0]|=4096),Object.defineProperty(l,a,{get(){return c?c.apply(this):(d=a,O(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(l,a,{set(d){const u=O(this);if(u){if(h)return(32&o?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(d=u.l.get(a)),h.apply(this,[Pe(d,o,!!(64&t.i))]),void qe(this,a,d=32&o?this[a]:u.$hostElement$[a],t);qe(this,a,d,t)}}})}}));{const a=new Map;l.attributeChangedCallback=function(o,c,h){N.jmp((()=>{var d;const u=a.get(o),p=O(this);if(this.hasOwnProperty(u),l.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const m=p?.i;if(p&&m&&!(8&m)&&h!==c){const g=this,E=(d=t.F)==null?void 0:d[o];E?.forEach((v=>{const[[_,C]]=Object.entries(v);g[_]!=null&&(128&m||1&C)&&g[_].call(g,h,c,o)}))}return}const f=r.find((([m])=>m===u)),b=f&&4&f[1][0],S=b&&h===null&&this[u]===void 0;b&&(h=h!==null&&h!=="false");const y=Object.getOwnPropertyDescriptor(l,u);S||h==this[u]||y.get&&!y.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...r.filter((([o,c])=>31&c[0])).map((([o,c])=>{var h;const d=c[1]||o;return a.set(d,o),512&c[0]&&((h=t.C)==null||h.push([o,d])),d}))]))}}return e},Ue=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Ae(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(){((l,r)=>{const a={i:0,$hostElement$:l,o:r,l:new Map,B:new Map};a.H=new Promise((c=>a.L=c)),l["s-p"]=[],l["s-rc"]=[];const o=a;l.__stencil__getHostRef=()=>o,512&r.i&&ft(l,a)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=O(this);if(!l)return;Ke(this,l,n.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&N.i)){const r=O(l);if(!r)return;const a=r.o;if(1&r.i)Ke(l,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(o=>{if(!w.document)return;const c=o["s-cr"]=w.document.createComment("");c["s-cn"]=!0,T(o,c,o.firstChild)})(l);{let o=l;for(;o=o.parentNode||o.host;)if(o["s-p"]){ze(r,r.R=o);break}}a.t&&Object.entries(a.t).map((([o,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(l,o)){const h=l[o];delete l[o],l[o]=h}})),(async(o,c,h)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=o.constructor,customElements.whenDefined(o.localName).then((()=>c.i|=128)),d&&d.style)){let f;typeof d.style=="string"&&(f=d.style);const b=Te(h);W.has(b)||((S,y,m)=>{let g=W.get(S);te&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=y:g.replaceSync(y)):g=y,W.set(S,g)})(b,f,!!(1&h.i))}const u=c.R,p=()=>fe(c,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){M(u,o),c.A&&(c.A(),c.A=void 0),c.L&&c.L(o)}})(l,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&N.i)){const r=O(l);r?.V&&(r.V.map((a=>a())),r.V=void 0)}P.has(l)&&P.delete(l),l.shadowRoot&&P.has(l.shadowRoot)&&P.delete(l.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 vt.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Ft(e,n,3)}catch(s){return M(s),e}},Ke=(e,t,n)=>{n&&w.document&&n.map((([s,i,l])=>{const r=jt(w.document,e,s),a=Mt(t,l),o=Lt(s);N.ael(r,i,a,o),(t.V=t.V||[]).push((()=>N.rel(r,i,a,o)))}))},Mt=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){M(s,e.$hostElement$)}},jt=(e,t,n)=>8&n?w:t,Lt=e=>gt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function hs(e){return e}function Ye(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=Ye(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=Ye(e))&&(s&&(s+=" "),s+=t);return s}const Rt=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"})),Dt=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"})),Bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:n,destructive:s,positive:i,loading:l},r,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&&!i,"gids-button--positive":i&&!s,"gids-button--icon-only":r,"gids-button--loading":l},a)},Symbol.toStringTag,{value:"Module"})),Q=64,Xe=10,Ze=Q/2-Xe/2,Gt=Q/2,pe=2*Math.PI*Ze,Ht=`0 0 ${Q} ${Q}`,Vt=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,l=(pe*i/100).toFixed(2),r=(pe-parseFloat(l)).toFixed(2);return`${l} ${r}`},centerPosition:Gt,circumference:pe,radius:Ze,thickness:Xe,viewBox:Ht},Symbol.toStringTag,{value:"Module"})),zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFilterClassNames:({expanded:e},t)=>J("gids-filter",{"gids-filter--expanded":e},t)},Symbol.toStringTag,{value:"Module"})),ge=Symbol("defaultPath"),Je=Symbol("pathSet"),me="gids-asset-paths-set";class Wt 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(Je)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ge,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(ge,n)}this.#e(Je,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(ge);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 ye=Symbol.for("GIDS"),qt=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),Ut=e=>{const t=qt().assetPaths;return t[e]===void 0&&(t[e]=new Wt),t[e]};function ve(){return Ut("@ganpatiinfo/gids-web-shared")}function Kt(){return ve().haveAssetPathsBeenSet()}function Qe(e){return ve().getAssetFilePath(e)}function Yt(e){return ve().onAssetPathsSet(e)}let Xt=0;const Zt=(e,t="gids")=>e||`${t}-${Xt++}`,et=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),tt={"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"]},st=new Map;for(const e in tt)for(const t of tt[e])st.set(t,e);function Jt(e){return st.get(e)}function nt(e,t="regular",n){const s=Jt(e);let i=s??"";return n&&s&&(i=n(s)??s),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Qt}=Dt,it=({name:e,size:t,appearance:n,alt:s,class:i,titleId:l,src:r,...a})=>{const o=Zt(l);let c=r;return c===void 0&&Kt()&&(c=nt(e,n,Qe)),x("svg",{ref:h=>{c===void 0&&Yt((()=>{(function(d,u,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",nt(u,p,Qe)),d.appendChild(f)})(h,e,n)}))},width:"16",height:"16",class:Qt({size:t},i),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:o,...a},s!==""&&x("title",{id:o},s||e),c!==void 0?x("use",{href:c}):null)},{getGidsSpinnerControlClassNames:es}=Rt,{calculateStrokeDasharray:ts,thickness:lt,radius:ot,centerPosition:ee,viewBox:ss}=Vt,ns=({size:e,indeterminate:t,value:n,max:s,...i})=>{let l;return t||(l={strokeDashArray:ts(n,s||0),strokeDashoffset:"0"}),x("svg",{class:es({size:e,indeterminate:t,value:n}),viewBox:ss,...i},x("circle",{class:"gids-spinner-control__track",cx:ee,cy:ee,r:ot,"stroke-width":lt}),x("circle",{style:l,class:"gids-spinner-control__progress",cx:ee,cy:ee,r:ot,"stroke-width":lt}))},{getGidsButtonClassNames:is}=Bt,ls=({appearance:e,size:t,destructive:n,positive:s,loading:i,width:l,leadingIcon:r,trailingIcon:a,as:o,disabled:c,class:h,forceIconOnly:d=!1,...u},p)=>{const f=o||"button",b=t==="lg"||t===void 0?"md":t;return f!=="button"||"type"in u||(u.type="button"),x(f,{class:is({appearance:e,size:t,destructive:n,loading:i,width:l,positive:s},d||p.length===0&&et(r)&&!et(a),h),disabled:f==="button"?c:void 0,...u},x("span",{class:"gids-button__content"},r,p),i&&x(ns,{size:b,indeterminate:!0}),a)},D=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let rt=!1;D&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(D):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let be=null;const Se=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{at()})):void 0,at=()=>{if(D===void 0)return!1;const e=(()=>{if(D===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,l=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))i=r;else if(i>-1){if(a?.cssText.startsWith("gids-global-styles-end")){l=r-i+1;break}t.push(a)}}if(i>-1)return{rulesStartIndex:i,originalRulesCount:l,rules:t,styleSheet:s}}catch(i){if(!(i instanceof DOMException))throw i}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Se!==void 0&&t!==be&&(be&&Se.disconnect(),t instanceof Element&&Se.observe(t,{childList:!0,characterData:!0,subtree:!0}),be=t),D.replaceSync((n=>n.rules.map((s=>s.cssText)).join(""))(e)),(n=>{const{rulesStartIndex:s,originalRulesCount:i,styleSheet:l}=n;for(let r=0;r<i;r++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},os=()=>(rt||(rt=at()),D),rs=Ue(class extends _e{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=xt(this,"select"),this._toggle=this._toggle.bind(this)}handleSelctedChange(e){this.selected=e}connectedCallback(){const e=os();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=this.selected,this.select?.emit(e),this.selected=this.selected}render(){return x($e,{key:"60cd33c1303b2f0d79c359f79f77c5e0b2055c73"},x("style",{key:"5780343ecee89c7f6df46aebae53895784314a71"},`:host {
|
|
6
|
+
display: ${this.width==="full"?"block":"inline-block"}
|
|
7
|
+
}`),x(ls,{key:"03705a1d3fb0807af87d6e85083bf424c462f328",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:x("slot",{name:"leadingIcon"}),trailingIcon:x("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},x("slot",{key:"05e75b6a46032ddfe7448b81f5ac929105d20383"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}static get watchers(){return{selected:[{handleSelctedChange:0}]}}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[1540]},void 0,{selected:[{handleSelctedChange:0}]}]);function dt(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,rs))}))}dt();const{getGidsFilterClassNames:as}=zt,ct=Ue(class extends _e{constructor(e){super(),e!==!1&&this.__registerHost(),this.expanded=!1,this.type="none",this.filterItemType="primary",this.filterSelected=!1,this.filterDefaultSelected=!1,this.disabled=!1,this.size="sm",this.loading=!1,this.filterIndex=0,this.hasSlottedMenu=!1,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.handleFilterPickerItemSelect=t=>{const{value:n,title:s,disabled:i,id:l,selectedIndex:r,isPlaceholderItem:a,defaultSelected:o}=t.detail;i||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:l,filterId:this?.filterId,value:n,title:s,disabled:!1,selectedFilterMenuIndex:r,defaultSelected:o,filterType:this.type,filterItemType:this.filterItemType,filterTitle:s,filterIndex:this.filterIndex,hasFilterMenu:!0,originalEvent:t,filterSelected:!a,isPlaceholderItem:a||!1}))},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 l=s instanceof HTMLButtonElement?s.id:s.getAttribute("id")??"";if(typeof l!="string"||l.length===0)return;const r=s instanceof HTMLButtonElement?s.tabIndex:s.getAttribute("tabIndex")??"",a=s.getAttribute("is-placeholder-item")??"",o=s.querySelector(".gids-dropdown-item__label")||s.querySelector("span"),c=o?o.textContent?.trim():s.firstChild?.textContent?.trim()||i,h=!(!a||a!=="true");this.applySelection({id:l,filterId:this.filterId,value:i,title:c,disabled:!1,selectedFilterMenuIndex:Number(r),defaultSelected:this.filterDefaultSelected,filterType:this.type,filterItemType:this.filterItemType,filterTitle:c,filterIndex:this.filterIndex,hasFilterMenu:!0,originalEvent:t,filterSelected:!h,isPlaceholderItem:h})},this.handleTriggerToggle=t=>{this.isInteractive()&&this.setExpandedState(!this.expanded,t)},this.handleFilterButtonClickToggle=t=>{if(!t.defaultPrevented)if(t.stopPropagation(),this.isMenuToggler())this.handleTriggerToggle(t);else{this.filterSelected=t.detail,t?.detail===!1&&this.handleFormReset(),this.applySelection({id:"1",filterId:this.filterId,value:this.value,title:this.value,disabled:this.disabled,selectedFilterMenuIndex:void 0,filterType:this.type,filterItemType:this.filterItemType,filterTitle:this.value,filterIndex:this.filterIndex,originalEvent:t,filterSelected:t.detail,hasFilterMenu:!1,isPlaceholderItem:!1});const n={expanded:!1,originalEvent:t};this.onToggle?.(n)}},this.handleFormReset=()=>{this.value=this.initialValue,this.selectedItemTitle=this.initialValue,this.filterSelected=!1,this.isMenuToggler()?this.setExpandedState(!1):this.expanded=!1},this.setFilterDropdownPosition=()=>{if(!this.hostElement)return;const t=this.hostElement.querySelector(".gids-filter__menu");if(!t)return;const n=window.innerWidth/2,s=this.hostElement.getBoundingClientRect();s.left+s.width/2>n?t.classList.add("gids-filter__menu--align-right"):t.classList.remove("gids-filter__menu--align-right")}}handleExpandedChange(e){e&&!this.isInteractive()&&(this.expanded=!1)}handleInteractivityChange(){!this.isInteractive()&&this.expanded&&this.setExpandedState(!1)}handleFilterTypeChange(e){this.type=e}handleFilterSelectedChange(e){this.filterSelected=e}connectedCallback(){this.attachItemListener(),this.attachFormListener()}componentDidLoad(){this.initialValue=this.value,this.evaluateSlottedMenuExistence()}disconnectedCallback(){this.detachItemListener(),this.detachFormListener()}getFilterButtonControl(){return this.hostElement.querySelector(".gids-button")}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}evaluateSlottedMenuExistence(){const e=this.hostElement.querySelector(".gids-filter__menu");if(!e)return void(this.hasSlottedMenu=!1);const t=Array.from(e.childNodes).filter((n=>n.nodeType!==Node.COMMENT_NODE&&!(n.nodeType===Node.TEXT_NODE&&!n.textContent?.trim())));this.hasSlottedMenu=t.length>0}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleFilterPickerItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleFilterPickerItemSelect),this.hasItemListener=!1)}applySelection(e){this.value=e.value,this.selectedItemTitle=typeof e.title=="string"?e.title:void 0,this.clearActive(),this.isMenuToggler()?this.setExpandedState(!1,this.coerceEvent(e.originalEvent)):this.expanded=!1,this.onFilterMenuItemChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsFilterPickerChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}setExpandedState(e,t){const n=!!e;if(this.setFilterDropdownPosition(),n&&!this.isInteractive()||this.expanded===n)return;this.expanded=n,n||(this.clearActive(),this.syncFilterDisplayValue());const s={expanded:n,originalEvent:t};this.onToggle?.(s)}syncFilterDisplayValue(){const e=this.getFilterButtonControl();e&&e.value!==(this.selectedItemTitle??"")&&(e.value=this.selectedItemTitle??"")}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}isMenuToggler(){return(this.type==="none"||this.type==="more")&&this.hasSlottedMenu}handleWindowClick(e){this.expanded&&(e.composedPath().includes(this.hostElement)||this.setExpandedState(!1,e))}render(){const e=this.expanded&&this.isInteractive(),t=as({expanded:e}),n=this.isMenuToggler(),s=typeof this.filterPickerId=="string"?this.filterPickerId:void 0,i=s?`${s}__menu`:void 0,l=this.selectedItemTitle??this.value??"",r=this.type==="more",a=this.type==="all",o=this.type==="none";return x("div",{key:"77922291f6dbfc4aaf21bb866adb8786ea9bb907",class:t,"aria-control":i??""},x("gids-toggle-button",{key:"9b3383507aae162b8faa7b8468213dda4dd55dde",id:s,name:this.name,expanded:e,value:l,disabled:this.disabled,size:this.size,loading:this.loading,tabIndex:this.filterIndex,defaultSelected:this.filterDefaultSelected,selected:this.filterSelected||this.filterDefaultSelected,onSelect:this.handleFilterButtonClickToggle},r||a?x(it,{name:r?"options":"filter",size:this.size,appearance:"regular",alt:"",slot:"leadingIcon"}):void 0,o||a?l:void 0,n&&!r?x(it,{name:"chevron-down",size:this.size,appearance:"regular",alt:"",slot:"trailingIcon"}):void 0),x("div",{key:"634d8f924dd3252fa912a518dabdcba31b79c5e2",class:"gids-filter__menu",id:i,role:"pickerbox",onClick:this.handleMenuClick},x("slot",{key:"eec317eac8d11f3021a553b59c1a030aa5135e7d",onSlotchange:()=>this.evaluateSlottedMenuExistence()})))}get hostElement(){return this}static get watchers(){return{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],type:[{handleFilterTypeChange:0}],filterSelected:[{handleFilterSelectedChange:0}]}}static get style(){return".gids-filter{position:relative}.gids-filter__menu{position:absolute;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);left:0;right:auto}.gids-filter__menu--align-right{left:auto !important;right:0 !important}.gids-filter__menu>*{flex-shrink:0}.gids-filter--expanded .gids-filter__menu{display:flex}"}},[260,"gids-filter",{name:[1],filterId:[1,"filter-id"],filterPickerId:[1,"filter-picker-id"],expanded:[4],type:[1],filterItemType:[1,"filter-item-type"],value:[1],filterSelected:[1540,"filter-selected"],filterDefaultSelected:[4,"filter-default-selected"],disabled:[4],size:[1],loading:[4],filterIndex:[2,"filter-index"],onFilterMenuItemChange:[16],onToggle:[16],selectedItemTitle:[32],hasSlottedMenu:[32]},[[8,"click","handleWindowClick"]],{expanded:[{handleExpandedChange:0}],disabled:[{handleInteractivityChange:0}],type:[{handleFilterTypeChange:0}],filterSelected:[{handleFilterSelectedChange:0}]}]);function ht(){typeof customElements<"u"&&["gids-filter","gids-toggle-button"].forEach((e=>{switch(e){case"gids-filter":customElements.get(e)||customElements.define(e,ct);break;case"gids-toggle-button":customElements.get(e)||dt()}}))}ht();const ds=ct,cs=ht;F.GidsFilter=ds,F.defineCustomElement=cs,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(T,
|
|
1
|
+
(function(T,I){typeof exports=="object"&&typeof module<"u"?I(exports):typeof define=="function"&&define.amd?define(["exports"],I):(T=typeof globalThis<"u"?globalThis:T||self,I(T.gidsCoreWebGidsIcon={}))})(this,(function(T){"use strict";function I(e,t,o){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!o||n.get))return n;e=Object.getPrototypeOf(e)}}var H,Qe=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const r=e[s],i=I(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);i&&Object.defineProperty(e,s,{get(){return i.get.call(this)},set(a){i.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):r!==void 0&&(e[s]=r)}}))},j=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ve=(e,t)=>t in e,R=(e,t)=>(0,console.error)(e,t),z=new Map,ye="http://www.w3.org/1999/xlink",Xe=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],w=typeof window<"u"?window:{},et=w.HTMLElement||class{},O={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},tt=(()=>{var e;let t=!1;try{(e=w.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),Q=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable,ee=!1,Se=[],be=[],st=(e,t)=>o=>{e.push(o),ee||(ee=!0,4&O.i?se(te):O.raf(te))},we=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){R(o)}e.length=0},te=()=>{we(Se),we(be),(ee=Se.length>0)&&O.raf(te)},se=e=>Promise.resolve(void 0).then(e),ot=st(be);function nt(){const e=this.attachShadow({mode:"open"});H===void 0&&(H=null),H&&(X?e.adoptedStyleSheets.push(H):e.adoptedStyleSheets=[...e.adoptedStyleSheets,H])}var Ne=e=>{const t=ne(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!rt(s,F(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&ne(s,"childNodes").length&&Ne(s)}};function oe(e,t,o){let s,n=0,r=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||F(s)===o)&&(r.push(s),o!==void 0))return r;r=[...r,...oe(s.childNodes,t,o)]}return r}var rt=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)F(n)!==t||!o&&n["s-sr"]||s.push(n);return s},_e=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",F=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ne(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var re,L,x=new WeakMap,Oe=e=>"sc-"+e.p,le=e=>(e=typeof e)=="object"||e==="function",M=(e,t,...o)=>{let s=null,n=null,r=null,i=!1,a=!1;const l=[],d=c=>{for(let h=0;h<c.length;h++)s=c[h],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!le(s))&&(s=String(s)),i&&a?l[l.length-1].h+=s:l.push(i?U(null,s):s),a=i)};if(d(o),t){t.key&&(n=t.key),t.name&&(r=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((h=>c[h])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,it);const u=U(e,null);return u.v=t,l.length>0&&(u.m=l),u.$=n,u.j=r,u},U=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),lt={},it={forEach:(e,t)=>e.map($e).forEach(t),map:(e,t)=>e.map($e).map(t).map(at)},$e=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),at=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),M(e.vtag,o,...e.vchildren||[])}const t=U(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},ke=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const r of e[n])if(typeof r=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((r=>typeof r=="string"?{[r]:0}:r));return s},Ae=(e,t,o)=>e==null||le(e)?e:4&t?(o&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,ct=(e,t,o)=>{const s=O.ce(t,o);return e.dispatchEvent(s),s},Ee=(e,t,o,s,n,r)=>{if(o===s)return;let i=ve(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,d=Ce(o);let u=Ce(s);l.remove(...d.filter((c=>c&&!u.includes(c)))),l.add(...u.filter((c=>c&&!d.includes(c))))}else if(t==="style"){for(const l in o)s&&s[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)o&&s[l]===o[l]||(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else if(t!=="key"){if(t==="ref")s&&ht(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const l=t.slice(5);let d;{const u=j(e);if(u&&u.o&&u.o.t){const c=u.o.t[l];c&&c[1]&&(d=c[1])}}return d||(d=l.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 l=t.slice(5);try{e[l]=s}catch{}return}{const l=le(s);if((i||l&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?i=!1:o!=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(ye,t):e.removeAttribute(t)):(!i||4&r||n)&&!l&&e.nodeType===1&&(s=s===!0?"":s,d?e.setAttributeNS(ye,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):ve(w,a)?a.slice(2):a[2]+t.slice(3),o||s){const l=t.endsWith(je);t=t.replace(ut,""),o&&O.rel(e,t,o,l),s&&O.ael(e,t,s,l)}}},dt=/\s/,Ce=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(dt):[]),je="Capture",ut=new RegExp(je+"$"),ie=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},r=t.v||{};for(const i of Pe(Object.keys(n)))i in r||Ee(s,i,n[i],void 0,o,t.i);for(const i of Pe(Object.keys(r)))Ee(s,i,n[i],r[i],o,t.i)};function Pe(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var W=!1,q=!1,K=!1,$=!1,ae=[],ce=[],Y=(e,t,o)=>{var s;const n=t.m[o];let r,i,a,l=0;if(W||(K=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)r=n.S=w.document.createTextNode(n.h);else if(1&n.i)r=n.S=w.document.createTextNode(""),ie(null,n,$);else{if($||($=n.O==="svg"),!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(r=n.S=w.document.createElementNS($?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!W&&2&n.i?"slot-fb":n.O),$&&n.O==="foreignObject"&&($=!1),ie(null,n,$),n.m){const d=n.O==="template"?r.content:r;for(l=0;l<n.m.length;++l)i=Y(e,n,l),i&&d.appendChild(i)}n.O==="svg"?$=!1:r.tagName==="foreignObject"&&($=!0)}return r["s-hn"]=L,3&n.i&&(r["s-sr"]=!0,r["s-cr"]=re,r["s-sn"]=n.j||"",r["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const u=c=>(function(h){const p=[],f=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=>{f===H(S)&&p.push(S)})),c?p.filter((S=>S.nodeType===1)):p}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(r),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&xe(e.S)),r},xe=e=>{O.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(C(t,n,o??null),n["s-sh"]=void 0,K=!0)}O.i&=-2},Z=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===R&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==R&&n["s-ol"]&&(C(W(n).parentNode,n,W(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}O.i&=-2},Te=(e,t,o,s,n,r)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===R&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=r;++n)s[n]&&(l=Y(null,o,n),l&&(s[n].S=l,C(a,l,W(t))))},Re=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Ie(n),r&&(q=!0,r["s-ol"]?r["s-ol"].remove():Z(r,!0),r.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),W=e=>e&&e["s-ol"]||e,D=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,l=t.O,a=t.h;let i;a==null?(k=l==="svg"||l!=="foreignObject"&&k,l!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",xe(t.S.parentElement)),le(e,t,k),n!==null&&r!==null?((d,u,c,h,p=!1)=>{let f,b,S=0,v=0,g=0,m=0,_=u.length-1,y=u[0],w=u[_],A=h.length-1,$=h[0],E=h[A];const Ze=c.O==="template"?d.content:d;for(;S<=_&&v<=A;)if(y==null)y=u[++S];else if(w==null)w=u[--_];else if($==null)$=h[++v];else if(E==null)E=h[--A];else if(J(y,$,p))D(y,$,p),y=u[++S],$=h[++v];else if(J(w,E,p))D(w,E,p),w=u[--_],E=h[--A];else if(J(y,E,p))y.O!=="slot"&&E.O!=="slot"||Z(y.S.parentNode,!1),D(y,E,p),C(Ze,y.S,w.S.nextSibling),y=u[++S],E=h[--A];else if(J(w,$,p))y.O!=="slot"&&E.O!=="slot"||Z(w.S.parentNode,!1),D(w,$,p),C(Ze,w.S,y.S),w=u[--_],$=h[++v];else{for(g=-1,m=S;m<=_;++m)if(u[m]&&u[m].$!==null&&u[m].$===$.$){g=m;break}g>=0?(b=u[g],b.O!==$.O?f=Y(u&&u[v],c,g):(D(b,$,p),u[g]=void 0,f=b.S),$=h[++v]):(f=Y(u&&u[v],c,v),$=h[++v]),f&&C(W(y.S).parentNode,f,W(y.S))}S>_?Te(d,h[A+1]==null?null:h[A+1].S,c,h,v,A):v>A&&Re(u,S,_)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,r,0,r.length-1)):!o&&n!==null&&Re(n,0,n.length-1),k&&l==="svg"&&(k=!1)):(i=s["s-cr"])?i.parentNode.textContent=a:e.h!==a&&(s.data=a)},j=[],Le=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const l=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(_e(t,l)){let a=j.find((i=>i.k===t));q=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],j.push({N:r,k:t})),t["s-sr"]&&j.map((i=>{_e(i.k,t["s-sn"])&&(a=j.find((d=>d.k===t)),a&&!i.N&&(i.N=a.N))}))}else j.some((a=>a.k===t))||j.push({k:t})}r.nodeType===1&&Le(r)}},Ie=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Ie)},dt=(e,t)=>{ce.push((()=>e(t)))},C=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,l){var a;if(!(l=l||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const i=r["s-sn"]=H(r)||"";return{slotNode:oe(ne(l,"childNodes"),l.tagName,i)[0],slotName:i}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},ut=(e,t,o=!1)=>{var s,n,r,l,a;const i=e.$hostElement$,d=e.o,u=e.M||U(null,null);var c;const h=(c=t)&&c.O===nt?t:M(null,null,t);if(R=i.tagName,d.C&&(h.v=h.v||{},d.C.forEach((([p,f])=>{h.v[f]=i[p]}))),o&&h.v)for(const p of Object.keys(h.v))i.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(h.v[p]=i[p]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=i.shadowRoot||i,B=!(!(1&d.i)||128&d.i),re=i["s-cr"],q=!1,D(u,h,o),O.i|=1,K){Le(h.S);for(const p of j){const f=p.k;if(!f["s-ol"]&&N.document){const b=N.document.createTextNode("");b["s-nr"]=f,C(f.parentNode,f["s-ol"]=b,f,o)}}for(const p of j){const f=p.k,b=p.N;if(f.nodeType===1&&o&&(f["s-ih"]=(s=f.hidden)!=null&&s),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let g=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;g;){let m=(r=g["s-nr"])!=null?r:null;if(m&&m["s-sn"]===f["s-sn"]&&S===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===f||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}g=g.previousSibling}}if((!v&&S!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if(C(S,f,v,o),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const g=N.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=f["s-hn"],g["s-sn"]=f["s-sn"],g["s-sh"]=f["s-sh"],g["s-sr"]=f["s-sr"],g["s-ol"]=f["s-ol"],g["s-ol"]["s-nr"]=g,C(f.parentNode,g,f,o),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(l=f["s-ih"])!=null&&l)}f&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else f.nodeType===1&&(f.hidden=!0)}}if(q&&Ne(h.S),O.i&=-2,j.length=0,!B&&!(1&d.i)&&i["s-cr"]){const p=h.S.__childNodes||h.S.childNodes;for(const f of p)if(f["s-hn"]!==R&&!f["s-sh"]){if(o&&f["s-ih"]==null&&(f["s-ih"]=(a=f.hidden)!=null&&a),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const b=N.document.createComment("s-nt-"+f.nodeValue);b["s-sn"]=f["s-sn"],C(f.parentNode,b,f,o),f.parentNode.removeChild(f)}}}re=void 0,ae.forEach((p=>p())),ae.length=0,ce.forEach((p=>p())),ce.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.R);const o=()=>ht(e,t);if(!t)return tt(o);queueMicrotask((()=>{o()}))},ht=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=z(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=De(n,(()=>z(s,"componentWillRender",void 0,o))),De(n,(()=>pt(e,s,t)))},De=(e,t)=>ft(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),ft=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",pt=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(l=>{const a=l.o,i=l.$hostElement$,d=a.i,u=((c,h)=>{var p,f,b;const S=Oe(h),v=V.get(S);if(!N.document)return S;if(c=c.nodeType===11?c:N.document,v)if(typeof v=="string"){let g,m=x.get(c=c.head||c);if(m||x.set(c,m=new Set),!m.has(S)){g=N.document.createElement("style"),g.textContent=v;const _=(p=O._)!=null?p:(function(){var y,w,A;return(A=(w=(y=N.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?A:void 0})();if(_!=null&&g.setAttribute("nonce",_),!(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(Q){const y=new((f=c.defaultView)!=null?f:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),X?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=x.get(c);if(g||x.set(c,g=new Set),!g.has(S)){const m=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let _;if(v.constructor===m.CSSStyleSheet)_=v;else{_=new m.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)_.insertRule(v.cssRules[y].cssText,y)}X?c.adoptedStyleSheets.push(_):c.adoptedStyleSheets=[...c.adoptedStyleSheets,_],g.add(S)}}return S})(i.shadowRoot?i.shadowRoot:i.getRootNode(),a);10&d&&(i["s-sc"]=u,i.classList.add(u+"-h"))})(e),mt(e,t,n,o),r&&(r.map((l=>l())),n["s-rc"]=void 0);{const l=(s=n["s-p"])!=null?s:[],a=()=>gt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},mt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ut(e,t,s)}catch(n){I(n,e.$hostElement$)}return null},gt=e=>{const t=e.$hostElement$,o=t,s=e.R;z(o,"componentDidRender",void 0,t),64&e.i?z(o,"componentDidUpdate",void 0,t):(e.i|=64,yt(t),z(o,"componentDidLoad",void 0,t),e.L(t),s||vt()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},vt=()=>{se((()=>lt(N,"appload",{detail:{namespace:"gids-core-web"}})))},z=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){I(n,s)}},yt=e=>e.classList.add("hydrated"),Ge=(e,t,o,s)=>{const n=P(e);if(!n)return;const r=e,l=n.l.get(t),a=n.i,i=r;o=$e(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(l)&&Number.isNaN(o);if(o!==l&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[h,p]]=Object.entries(c);(128&a||1&p)&&(i?i[h](o,l,t):n.T.push((()=>{n.D[h](o,l,t)})))}catch(h){I(h,r)}}))}if(2&a){if(i.componentShouldUpdate&&i.componentShouldUpdate(o,l,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},St=(e,t,o)=>{var s,n;const r=e.prototype;64&t.i&&1&o&&Qe.forEach((l=>{const a=r[l];Object.defineProperty(r,l,{value(...i){var d;const u=P(this),c=this;c?typeof a=="function"&&a.call(c,...i):(d=u?.H)==null||d.then((h=>{const p=h[l];typeof p=="function"&&p.call(h,...i)}))}})}));{e.watchers&&!t.F&&(t.F=Ae(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,[i]])=>{if(31&i||32&i){const{get:d,set:u}=L(r,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(r,a,{get(){return d?d.apply(this):(c=a,P(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(r,a,{set(c){const h=P(this);if(h){if(u)return(32&i?this[a]:h.$hostElement$[a])===void 0&&h.l.get(a)&&(c=h.l.get(a)),u.apply(this,[$e(c,i,!!(64&t.i))]),void Ge(this,a,c=32&i?this[a]:h.$hostElement$[a],t);Ge(this,a,c,t)}}})}}));{const a=new Map;r.attributeChangedCallback=function(i,d,u){O.jmp((()=>{var c;const h=a.get(i),p=P(this);if(this.hasOwnProperty(h),r.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const g=p?.i;if(p&&g&&!(8&g)&&u!==d){const m=this,_=(c=t.F)==null?void 0:c[i];_?.forEach((y=>{const[[w,A]]=Object.entries(y);m[w]!=null&&(128&g||1&A)&&m[w].call(m,u,d,i)}))}return}const f=l.find((([g])=>g===h)),b=f&&4&f[1][0],S=b&&u===null&&this[h]===void 0;b&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(r,h);S||u==this[h]||v.get&&!v.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...l.filter((([i,d])=>31&d[0])).map((([i,d])=>{var u;const c=d[1]||i;return a.set(c,i),512&d[0]&&((u=t.C)==null||u.push([i,c])),c}))]))}}return e},bt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.F=Ae(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,l)=>{const a={i:0,$hostElement$:r,o:l,l:new Map,W:new Map};a.H=new Promise((d=>a.L=d)),r["s-p"]=[],r["s-rc"]=[];const i=a;r.__stencil__getHostRef=()=>i,512&l.i&&Je(r,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!P(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const l=P(r);if(!l)return;const a=l.o;if(1&l.i)l?.D||l?.H&&l.H.then((()=>{}));else{l.i|=1,12&a.i&&(i=>{if(!N.document)return;const d=i["s-cr"]=N.document.createComment("");d["s-cn"]=!0,C(i,d,i.firstChild)})(r);{let i=r;for(;i=i.parentNode||i.host;)if(i["s-p"]){Me(l,l.R=i);break}}a.t&&Object.entries(a.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,i)){const u=r[i];delete r[i],r[i]=u}})),(async(i,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=i.constructor,customElements.whenDefined(i.localName).then((()=>d.i|=128)),c&&c.style)){let f;typeof c.style=="string"&&(f=c.style);const b=Oe(u);V.has(b)||((S,v,g)=>{let m=V.get(S);Q&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,V.set(S,m)})(b,f,!!(1&u.i))}const h=d.R,p=()=>de(d,!0);h&&h["s-rc"]?h["s-rc"].push(p):p()}catch(h){I(h,i),d.A&&(d.A(),d.A=void 0),d.L&&d.L(i)}})(r,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&O.i||P(r),x.has(r)&&x.delete(r),r.shadowRoot&&x.has(r.shadowRoot)&&x.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else st.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),St(e,o,3)}catch(s){return I(s),e}};function It(e){return e}const G=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Fe=!1;G&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(G):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{He()})):void 0,He=()=>{if(G===void 0)return!1;const e=(()=>{if(G===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,r=0;for(let l=0;l<s.cssRules.length;l++){const a=s.cssRules.item(l);if(a?.cssText.startsWith("gids-global-styles-start"))n=l;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){r=l-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:r,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return he!==void 0&&t!==ue&&(ue&&he.disconnect(),t instanceof Element&&he.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),G.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:r}=o;for(let l=0;l<n;l++)r.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},wt=()=>(Fe||(Fe=He()),G),Be={"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"]},We=new Map;for(const e in Be)for(const t of Be[e])We.set(t,e);function Nt(e){return We.get(e)}function ze(e,t="regular",o){const s=Nt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}function Ve(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Ve(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function _t(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const Ot=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>_t("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),Ue=Symbol("pathSet"),pe="gids-asset-paths-set";class kt extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#t(Ue)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(fe,o)}this.#e(Ue,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const me=Symbol.for("GIDS"),At=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),$t=e=>{const t=At().assetPaths;return t[e]===void 0&&(t[e]=new kt),t[e]};function ge(){return $t("@ganpatiinfo/gids-web-shared")}function Ct(){return ge().haveAssetPathsBeenSet()}function qe(e){return ge().getAssetFilePath(e)}function Et(e){return ge().onAssetPathsSet(e)}let Pt=0;const jt=(e,t="gids")=>e||`${t}-${Pt++}`,{getGidsIconClassNames:xt}=Ot,Tt=({name:e,size:t,appearance:o,alt:s,class:n,titleId:r,src:l,...a})=>{const i=jt(r);let d=l;return d===void 0&&Ct()&&(d=ze(e,o,qe)),M("svg",{ref:u=>{d===void 0&&Et((()=>{(function(c,h,p){if(!c)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",ze(h,p,qe)),c.appendChild(f)})(u,e,o)}))},width:"16",height:"16",class:xt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:i,...a},s!==""&&M("title",{id:i},s||e),d!==void 0?M("use",{href:d}):null)},Ke=bt(class extends Xe{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=wt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return M(Tt,{key:"7c74510543b6eae79c31fbf55124ad4e37f64c63",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function Ye(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Ke))}))}Ye();const Rt=Ke,Lt=Ye;T.GidsIcon=Rt,T.defineCustomElement=Lt,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=>{f===F(S)&&p.push(S)})),c?p.filter((S=>S.nodeType===1)):p}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(r),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&xe(e.S)),r},xe=e=>{O.i|=1;const t=e.closest(L.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(E(t,n,o??null),n["s-sh"]=void 0,K=!0)}O.i&=-2},Z=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===L&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==L&&n["s-ol"]&&(E(B(n).parentNode,n,B(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}O.i&=-2},Te=(e,t,o,s,n,r)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===L&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=r;++n)s[n]&&(i=Y(null,o,n),i&&(s[n].S=i,E(a,i,B(t))))},Re=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Ie(n),r&&(q=!0,r["s-ol"]?r["s-ol"].remove():Z(r,!0),r.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),B=e=>e&&e["s-ol"]||e,D=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,i=t.O,a=t.h;let l;a==null?($=i==="svg"||i!=="foreignObject"&&$,i!=="slot"||W||e.j!==t.j&&(t.S["s-sn"]=t.j||"",xe(t.S.parentElement)),ie(e,t,$),n!==null&&r!==null?((d,u,c,h,p=!1)=>{let f,b,S=0,v=0,g=0,m=0,_=u.length-1,y=u[0],N=u[_],k=h.length-1,A=h[0],C=h[k];const Je=c.O==="template"?d.content:d;for(;S<=_&&v<=k;)if(y==null)y=u[++S];else if(N==null)N=u[--_];else if(A==null)A=h[++v];else if(C==null)C=h[--k];else if(J(y,A,p))D(y,A,p),y=u[++S],A=h[++v];else if(J(N,C,p))D(N,C,p),N=u[--_],C=h[--k];else if(J(y,C,p))y.O!=="slot"&&C.O!=="slot"||Z(y.S.parentNode,!1),D(y,C,p),E(Je,y.S,N.S.nextSibling),y=u[++S],C=h[--k];else if(J(N,A,p))y.O!=="slot"&&C.O!=="slot"||Z(N.S.parentNode,!1),D(N,A,p),E(Je,N.S,y.S),N=u[--_],A=h[++v];else{for(g=-1,m=S;m<=_;++m)if(u[m]&&u[m].$!==null&&u[m].$===A.$){g=m;break}g>=0?(b=u[g],b.O!==A.O?f=Y(u&&u[v],c,g):(D(b,A,p),u[g]=void 0,f=b.S),A=h[++v]):(f=Y(u&&u[v],c,v),A=h[++v]),f&&E(B(y.S).parentNode,f,B(y.S))}S>_?Te(d,h[k+1]==null?null:h[k+1].S,c,h,v,k):v>k&&Re(u,S,_)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,r,0,r.length-1)):!o&&n!==null&&Re(n,0,n.length-1),$&&i==="svg"&&($=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},P=[],Le=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(_e(t,i)){let a=P.find((l=>l.k===t));q=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],P.push({N:r,k:t})),t["s-sr"]&&P.map((l=>{_e(l.k,t["s-sn"])&&(a=P.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else P.some((a=>a.k===t))||P.push({k:t})}r.nodeType===1&&Le(r)}},Ie=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Ie)},ht=(e,t)=>{ce.push((()=>e(t)))},E=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,i){var a;if(!(i=i||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=r["s-sn"]=F(r)||"";return{slotNode:oe(ne(i,"childNodes"),i.tagName,l)[0],slotName:l}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},ft=(e,t,o=!1)=>{var s,n,r,i,a;const l=e.$hostElement$,d=e.o,u=e.M||U(null,null);var c;const h=(c=t)&&c.O===lt?t:M(null,null,t);if(L=l.tagName,d.C&&(h.v=h.v||{},d.C.forEach((([p,f])=>{h.v[f]=l[p]}))),o&&h.v)for(const p of Object.keys(h.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(h.v[p]=l[p]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=l.shadowRoot||l,W=!(!(1&d.i)||128&d.i),re=l["s-cr"],q=!1,D(u,h,o),O.i|=1,K){Le(h.S);for(const p of P){const f=p.k;if(!f["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=f,E(f.parentNode,f["s-ol"]=b,f,o)}}for(const p of P){const f=p.k,b=p.N;if(f.nodeType===1&&o&&(f["s-ih"]=(s=f.hidden)!=null&&s),b){const S=b.parentNode;let v=b.nextSibling;if(v&&v.nodeType===1){let g=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;g;){let m=(r=g["s-nr"])!=null?r:null;if(m&&m["s-sn"]===f["s-sn"]&&S===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===f||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}g=g.previousSibling}}if((!v&&S!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if(E(S,f,v,o),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(f.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=f["s-hn"],g["s-sn"]=f["s-sn"],g["s-sh"]=f["s-sh"],g["s-sr"]=f["s-sr"],g["s-ol"]=f["s-ol"],g["s-ol"]["s-nr"]=g,E(f.parentNode,g,f,o),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(i=f["s-ih"])!=null&&i)}f&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else f.nodeType===1&&(f.hidden=!0)}}if(q&&Ne(h.S),O.i&=-2,P.length=0,!W&&!(1&d.i)&&l["s-cr"]){const p=h.S.__childNodes||h.S.childNodes;for(const f of p)if(f["s-hn"]!==L&&!f["s-sh"]){if(o&&f["s-ih"]==null&&(f["s-ih"]=(a=f.hidden)!=null&&a),f.nodeType===1)f.hidden=!0;else if(f.nodeType===3&&f.nodeValue.trim()){const b=w.document.createComment("s-nt-"+f.nodeValue);b["s-sn"]=f["s-sn"],E(f.parentNode,b,f,o),f.parentNode.removeChild(f)}}}re=void 0,ae.forEach((p=>p())),ae.length=0,ce.forEach((p=>p())),ce.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.R);const o=()=>pt(e,t);if(!t)return ot(o);queueMicrotask((()=>{o()}))},pt=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=V(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=De(n,(()=>V(s,"componentWillRender",void 0,o))),De(n,(()=>gt(e,s,t)))},De=(e,t)=>mt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),mt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",gt=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(i=>{const a=i.o,l=i.$hostElement$,d=a.i,u=((c,h)=>{var p,f,b;const S=Oe(h),v=z.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let g,m=x.get(c=c.head||c);if(m||x.set(c,m=new Set),!m.has(S)){g=w.document.createElement("style"),g.textContent=v;const _=(p=O._)!=null?p:(function(){var y,N,k;return(k=(N=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?k:void 0})();if(_!=null&&g.setAttribute("nonce",_),!(1&h.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),N=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,N?.parentNode===c?N:null)}else if("host"in c)if(Q){const y=new((f=c.defaultView)!=null?f:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),X?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=x.get(c);if(g||x.set(c,g=new Set),!g.has(S)){const m=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let _;if(v.constructor===m.CSSStyleSheet)_=v;else{_=new m.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)_.insertRule(v.cssRules[y].cssText,y)}X?c.adoptedStyleSheets.push(_):c.adoptedStyleSheets=[...c.adoptedStyleSheets,_],g.add(S)}}return S})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),vt(e,t,n,o),r&&(r.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],a=()=>yt(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},vt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ft(e,t,s)}catch(n){R(n,e.$hostElement$)}return null},yt=e=>{const t=e.$hostElement$,o=t,s=e.R;V(o,"componentDidRender",void 0,t),64&e.i?V(o,"componentDidUpdate",void 0,t):(e.i|=64,bt(t),V(o,"componentDidLoad",void 0,t),e.L(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},St=()=>{se((()=>ct(w,"appload",{detail:{namespace:"gids-core-web"}})))},V=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){R(n,s)}},bt=e=>e.classList.add("hydrated"),Ge=(e,t,o,s)=>{const n=j(e);if(!n)return;const r=e,i=n.l.get(t),a=n.i,l=r;o=Ae(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!d){if(n.l.set(t,o),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[h,p]]=Object.entries(c);(128&a||1&p)&&(l?l[h](o,i,t):n.T.push((()=>{n.D[h](o,i,t)})))}catch(h){R(h,r)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,i,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},wt=(e,t,o)=>{var s,n;const r=e.prototype;64&t.i&&1&o&&Xe.forEach((i=>{const a=r[i];Object.defineProperty(r,i,{value(...l){var d;const u=j(this),c=this;c?typeof a=="function"&&a.call(c,...l):(d=u?.H)==null||d.then((h=>{const p=h[i];typeof p=="function"&&p.call(h,...l)}))}})}));{e.watchers&&!t.F&&(t.F=ke(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const i=Object.entries((s=t.t)!=null?s:{});i.map((([a,[l]])=>{if(31&l||32&l){const{get:d,set:u}=I(r,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(r,a,{get(){return d?d.apply(this):(c=a,j(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(r,a,{set(c){const h=j(this);if(h){if(u)return(32&l?this[a]:h.$hostElement$[a])===void 0&&h.l.get(a)&&(c=h.l.get(a)),u.apply(this,[Ae(c,l,!!(64&t.i))]),void Ge(this,a,c=32&l?this[a]:h.$hostElement$[a],t);Ge(this,a,c,t)}}})}}));{const a=new Map;r.attributeChangedCallback=function(l,d,u){O.jmp((()=>{var c;const h=a.get(l),p=j(this);if(this.hasOwnProperty(h),r.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const g=p?.i;if(p&&g&&!(8&g)&&u!==d){const m=this,_=(c=t.F)==null?void 0:c[l];_?.forEach((y=>{const[[N,k]]=Object.entries(y);m[N]!=null&&(128&g||1&k)&&m[N].call(m,u,d,l)}))}return}const f=i.find((([g])=>g===h)),b=f&&4&f[1][0],S=b&&u===null&&this[h]===void 0;b&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(r,h);S||u==this[h]||v.get&&!v.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([l,d])=>31&d[0])).map((([l,d])=>{var u;const c=d[1]||l;return a.set(c,l),512&d[0]&&((u=t.C)==null||u.push([l,c])),c}))]))}}return e},Nt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=ke(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,i)=>{const a={i:0,$hostElement$:r,o:i,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),r["s-p"]=[],r["s-rc"]=[];const l=a;r.__stencil__getHostRef=()=>l,512&i.i&&Qe(r,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const r=j(this);if(!r)return;He(this,r,o.W),this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const i=j(r);if(!i)return;const a=i.o;if(1&i.i)He(r,i,a.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&a.i&&(l=>{if(!w.document)return;const d=l["s-cr"]=w.document.createComment("");d["s-cn"]=!0,E(l,d,l.firstChild)})(r);{let l=r;for(;l=l.parentNode||l.host;)if(l["s-p"]){Me(i,i.R=l);break}}a.t&&Object.entries(a.t).map((([l,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,l)){const u=r[l];delete r[l],r[l]=u}})),(async(l,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=l.constructor,customElements.whenDefined(l.localName).then((()=>d.i|=128)),c&&c.style)){let f;typeof c.style=="string"&&(f=c.style);const b=Oe(u);z.has(b)||((S,v,g)=>{let m=z.get(S);Q&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,z.set(S,m)})(b,f,!!(1&u.i))}const h=d.R,p=()=>de(d,!0);h&&h["s-rc"]?h["s-rc"].push(p):p()}catch(h){R(h,l),d.A&&(d.A(),d.A=void 0),d.L&&d.L(l)}})(r,i,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{if(!(1&O.i)){const i=j(r);i?.V&&(i.V.map((a=>a())),i.V=void 0)}x.has(r)&&x.delete(r),r.shadowRoot&&x.has(r.shadowRoot)&&x.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else nt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),wt(e,o,3)}catch(s){return R(s),e}},He=(e,t,o)=>{o&&w.document&&o.map((([s,n,r])=>{const i=Ot(w.document,e,s),a=_t(t,r),l=$t(s);O.ael(i,n,a,l),(t.V=t.V||[]).push((()=>O.rel(i,n,a,l)))}))},_t=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){R(s,e.$hostElement$)}},Ot=(e,t,o)=>8&o?w:t,$t=e=>tt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ft(e){return e}const G=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Fe=!1;G&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(G):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{We()})):void 0,We=()=>{if(G===void 0)return!1;const e=(()=>{if(G===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,r=0;for(let i=0;i<s.cssRules.length;i++){const a=s.cssRules.item(i);if(a?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){r=i-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:r,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return he!==void 0&&t!==ue&&(ue&&he.disconnect(),t instanceof Element&&he.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),G.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:r}=o;for(let i=0;i<n;i++)r.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},kt=()=>(Fe||(Fe=We()),G),Be={"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"]},Ve=new Map;for(const e in Be)for(const t of Be[e])Ve.set(t,e);function At(e){return Ve.get(e)}function ze(e,t="regular",o){const s=At(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}function Ue(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Ue(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Et(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ue(e))&&(s&&(s+=" "),s+=t);return s}const Ct=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Et("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),qe=Symbol("pathSet"),pe="gids-asset-paths-set";class jt extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#t(qe)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(fe,o)}this.#e(qe,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const me=Symbol.for("GIDS"),Pt=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),xt=e=>{const t=Pt().assetPaths;return t[e]===void 0&&(t[e]=new jt),t[e]};function ge(){return xt("@ganpatiinfo/gids-web-shared")}function Tt(){return ge().haveAssetPathsBeenSet()}function Ke(e){return ge().getAssetFilePath(e)}function Rt(e){return ge().onAssetPathsSet(e)}let Lt=0;const It=(e,t="gids")=>e||`${t}-${Lt++}`,{getGidsIconClassNames:Mt}=Ct,Dt=({name:e,size:t,appearance:o,alt:s,class:n,titleId:r,src:i,...a})=>{const l=It(r);let d=i;return d===void 0&&Tt()&&(d=ze(e,o,Ke)),M("svg",{ref:u=>{d===void 0&&Rt((()=>{(function(c,h,p){if(!c)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",ze(h,p,Ke)),c.appendChild(f)})(u,e,o)}))},width:"16",height:"16",class:Mt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&M("title",{id:l},s||e),d!==void 0?M("use",{href:d}):null)},Ye=Nt(class extends et{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=kt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return M(Dt,{key:"cb54fb7ca0ded77690f44cbf794b2e192cf9c681",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{color:var(--gidsIcon-color, var(--gids-color-icon-default));fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function Ze(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Ye))}))}Ze();const Gt=Ye,Ht=Ze;T.GidsIcon=Gt,T.defineCustomElement=Ht,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(L,R){typeof exports=="object"&&typeof module<"u"?R(exports):typeof define=="function"&&define.amd?define(["exports"],R):(L=typeof globalThis<"u"?globalThis:L||self,R(L.gidsCoreWebGidsInput={}))})(this,(function(L){"use strict";function R(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
|
|
1
|
+
(function(L,R){typeof exports=="object"&&typeof module<"u"?R(exports):typeof define=="function"&&define.amd?define(["exports"],R):(L=typeof globalThis<"u"?globalThis:L||self,R(L.gidsCoreWebGidsInput={}))})(this,(function(L){"use strict";function R(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 D,st=(e,t)=>{var n;Object.entries((n=t.o.t)!=null?n:{}).map((([s,[o]])=>{if(31&o||32&o){const l=e[s],i=R(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);i&&Object.defineProperty(e,s,{get(){return i.get.call(this)},set(a){i.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):l!==void 0&&(e[s]=l)}}))},x=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ve=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),W=new Map,ye="http://www.w3.org/1999/xlink",nt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],w=typeof window<"u"?window:{},ot=w.HTMLElement||class{},E={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)},lt=(()=>{var e;let t=!1;try{(e=w.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),Q=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),ee=!!Q&&!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable,te=!1,be=[],Se=[],rt=(e,t)=>n=>{e.push(n),te||(te=!0,4&E.i?ne(se):E.raf(se))},we=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){I(n)}e.length=0},se=()=>{we(be),we(Se),(te=be.length>0)&&E.raf(se)},ne=e=>Promise.resolve(void 0).then(e),it=rt(Se);function at(){const e=this.attachShadow({mode:"open"});D===void 0&&(D=null),D&&(ee?e.adoptedStyleSheets.push(D):e.adoptedStyleSheets=[...e.adoptedStyleSheets,D])}var _e=e=>{const t=le(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!ct(s,B(s),!1).length)}));let n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&le(s,"childNodes").length&&_e(s)}};function oe(e,t,n){let s,o=0,l=[];for(;o<e.length;o++){if(s=e[o],s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||B(s)===n)&&(l.push(s),n!==void 0))return l;l=[...l,...oe(s.childNodes,t,n)]}return l}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},Ne=(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 le(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 re,M,T=new WeakMap,ke=e=>"sc-"+e.p,ie=e=>(e=typeof e)=="object"||e==="function",k=(e,t,...n)=>{let s=null,o=null,l=null,i=!1,a=!1;const r=[],d=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!ie(s))&&(s=String(s)),i&&a?r[r.length-1].h+=s:r.push(i?q(null,s):s),a=i)};if(d(n),t){t.key&&(o=t.key),t.name&&(l=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((f=>c[f])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,r,ut);const u=q(e,null);return u.v=t,r.length>0&&(u.m=r),u.$=o,u.j=l,u},q=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),dt={},ut={forEach:(e,t)=>e.map(Ee).forEach(t),map:(e,t)=>e.map(Ee).map(t).map(ft)},Ee=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),ft=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),k(e.vtag,n,...e.vchildren||[])}const t=q(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Ae=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let n=!1;for(const o of t){if(n)break;for(const l of e[o])if(typeof l=="string"){n=!0;break}}if(!n)return e;const s={};for(const o of t)s[o]=e[o].map((l=>typeof l=="string"?{[l]:0}:l));return s},Oe=(e,t,n)=>e==null||ie(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,ht=(e,t,n)=>{const s=E.ce(t,n);return e.dispatchEvent(s),s},$e=(e,t,n,s,o,l)=>{if(n===s)return;let i=ve(e,t),a=t.toLowerCase();if(t==="class"){const r=e.classList,d=Pe(n);let u=Pe(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=x(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=ie(s);if((i||r&&s!==null)&&!o)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?i=!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(ye,t):e.removeAttribute(t)):(!i||4&l||o)&&!r&&e.nodeType===1&&(s=s===!0?"":s,d?e.setAttributeNS(ye,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):ve(w,a)?a.slice(2):a[2]+t.slice(3),n||s){const r=t.endsWith(Ce);t=t.replace(mt,""),n&&E.rel(e,t,n,r),s&&E.ael(e,t,s,r)}}},pt=/\s/,Pe=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(pt):[]),Ce="Capture",mt=new RegExp(Ce+"$"),ae=(e,t,n)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,o=e&&e.v||{},l=t.v||{};for(const i of xe(Object.keys(o)))i in l||$e(s,i,o[i],void 0,n,t.i);for(const i of xe(Object.keys(l)))$e(s,i,o[i],l[i],n,t.i)};function xe(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var F=!1,U=!1,z=!1,A=!1,ce=[],de=[],K=(e,t,n)=>{var s;const o=t.m[n];let l,i,a,r=0;if(F||(z=!0,o.O==="slot"&&(o.i|=o.m?2:1)),o.h!=null)l=o.S=w.document.createTextNode(o.h);else if(1&o.i)l=o.S=w.document.createTextNode(""),ae(null,o,A);else{if(A||(A=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(l=o.S=w.document.createElementNS(A?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!F&&2&o.i?"slot-fb":o.O),A&&o.O==="foreignObject"&&(A=!1),ae(null,o,A),o.m){const d=o.O==="template"?l.content:l;for(r=0;r<o.m.length;++r)i=K(e,o,r),i&&d.appendChild(i)}o.O==="svg"?A=!1:l.tagName==="foreignObject"&&(A=!0)}return l["s-hn"]=M,3&o.i&&(l["s-sr"]=!0,l["s-cr"]=re,l["s-sn"]=o.j||"",l["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(f){const p=[],h=this["s-sn"];f?.flatten&&console.error(`
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const v=[];for(let g=0;g<b.length;g++){const m=b[g]["s-nr"]||void 0;m&&m.isConnected&&v.push(m)}return v})(S.childNodes)).forEach((b=>{h===F(b)&&p.push(b)})),c?p.filter((b=>b.nodeType===1)):p}).bind(u);u.assignedElements=d(!0),u.assignedNodes=d(!1)})(i),r=e&&e.m&&e.m[n],r&&r.O===o.O&&e.S&&je(e.S)),i},je=e=>{A.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&&(C(t,o,n??null),o["s-sh"]=void 0,z=!0)}A.i&=-2},Y=(e,t)=>{A.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"]&&(C(G(o).parentNode,o,G(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,z=!0),t&&Y(o,t)}A.i&=-2},Te=(e,t,n,s,o,i)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===I&&(r=r.shadowRoot),n.O==="template"&&(r=r.content);o<=i;++o)s[o]&&(a=K(null,n,o),a&&(s[o].S=a,C(r,a,G(t))))},Le=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const i=o.S;Re(o),i&&(q=!0,i["s-ol"]?i["s-ol"].remove():Y(i,!0),i.remove())}}},J=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,D=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,i=t.m,a=t.O,r=t.h;let l;r==null?(E=a==="svg"||a!=="foreignObject"&&E,a!=="slot"||V||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),ae(e,t,E),o!==null&&i!==null?((u,d,c,f,p=!1)=>{let h,S,b=0,v=0,g=0,m=0,N=d.length-1,y=d[0],w=d[N],O=f.length-1,$=f[0],P=f[O];const et=c.O==="template"?u.content:u;for(;b<=N&&v<=O;)if(y==null)y=d[++b];else if(w==null)w=d[--N];else if($==null)$=f[++v];else if(P==null)P=f[--O];else if(J(y,$,p))D(y,$,p),y=d[++b],$=f[++v];else if(J(w,P,p))D(w,P,p),w=d[--N],P=f[--O];else if(J(y,P,p))y.O!=="slot"&&P.O!=="slot"||Y(y.S.parentNode,!1),D(y,P,p),C(et,y.S,w.S.nextSibling),y=d[++b],P=f[--O];else if(J(w,$,p))y.O!=="slot"&&P.O!=="slot"||Y(w.S.parentNode,!1),D(w,$,p),C(et,w.S,y.S),w=d[--N],$=f[++v];else{for(g=-1,m=b;m<=N;++m)if(d[m]&&d[m].$!==null&&d[m].$===$.$){g=m;break}g>=0?(S=d[g],S.O!==$.O?h=K(d&&d[v],c,g):(D(S,$,p),d[g]=void 0,h=S.S),$=f[++v]):(h=K(d&&d[v],c,v),$=f[++v]),h&&C(G(y.S).parentNode,h,G(y.S))}b>N?Te(u,f[O+1]==null?null:f[O+1].S,c,f,v,O):v>O&&Le(d,b,N)})(s,o,t,i,n):i!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,i,0,i.length-1)):!n&&o!==null&&Le(o,0,o.length-1),E&&a==="svg"&&(E=!1)):(l=s["s-cr"])?l.parentNode.textContent=r:e.h!==r&&(s.data=r)},j=[],Ie=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(Ne(t,a)){let r=j.find((l=>l.k===t));q=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=i["s-hn"],r.N=i):(t["s-sh"]=i["s-hn"],j.push({N:i,k:t})),t["s-sr"]&&j.map((l=>{Ne(l.k,t["s-sn"])&&(r=j.find((u=>u.k===t)),r&&!l.N&&(l.N=r.N))}))}else j.some((r=>r.k===t))||j.push({k:t})}i.nodeType===1&&Ie(i)}},Re=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Re)},pt=(e,t)=>{ue.push((()=>e(t)))},C=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(i,a){var r;if(!(a=a||((r=i["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const l=i["s-sn"]=F(i)||"";return{slotNode:oe(ie(a,"childNodes"),a.tagName,l)[0],slotName:l}})(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,r;const l=e.$hostElement$,u=e.o,d=e.M||U(null,null);var c;const f=(c=t)&&c.O===at?t:k(null,null,t);if(I=l.tagName,u.C&&(f.v=f.v||{},u.C.forEach((([p,h])=>{f.v[h]=l[p]}))),n&&f.v)for(const p of Object.keys(f.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(f.v[p]=l[p]);if(f.O=null,f.i|=4,e.M=f,f.S=d.S=l.shadowRoot||l,V=!(!(1&u.i)||128&u.i),le=l["s-cr"],q=!1,D(d,f,n),A.i|=1,z){Ie(f.S);for(const p of j){const h=p.k;if(!h["s-ol"]&&_.document){const S=_.document.createTextNode("");S["s-nr"]=h,C(h.parentNode,h["s-ol"]=S,h,n)}}for(const p of j){const h=p.k,S=p.N;if(h.nodeType===1&&n&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let g=(o=h["s-ol"])==null?void 0:o.previousSibling;for(;g;){let m=(i=g["s-nr"])!=null?i:null;if(m&&m["s-sn"]===h["s-sn"]&&b===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===h||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}g=g.previousSibling}}if((!v&&b!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==v)&&h!==v){if(C(b,h,v,n),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const g=_.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=h["s-hn"],g["s-sn"]=h["s-sn"],g["s-sh"]=h["s-sh"],g["s-sr"]=h["s-sr"],g["s-ol"]=h["s-ol"],g["s-ol"]["s-nr"]=g,C(h.parentNode,g,h,n),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(a=h["s-ih"])!=null&&a)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(q&&_e(f.S),A.i&=-2,j.length=0,!V&&!(1&u.i)&&l["s-cr"]){const p=f.S.__childNodes||f.S.childNodes;for(const h of p)if(h["s-hn"]!==I&&!h["s-sh"]){if(n&&h["s-ih"]==null&&(h["s-ih"]=(r=h.hidden)!=null&&r),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=_.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],C(h.parentNode,S,h,n),h.parentNode.removeChild(h)}}}le=void 0,ce.forEach((p=>p())),ce.length=0,ue.forEach((p=>p())),ue.length=0},Me=(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()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(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=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),o=De(o,(()=>H(s,"componentWillRender",void 0,n))),De(o,(()=>yt(e,s,t)))},De=(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 r=a.o,l=a.$hostElement$,u=r.i,d=((c,f)=>{var p,h,S;const b=ke(f),v=W.get(b);if(!_.document)return b;if(c=c.nodeType===11?c:_.document,v)if(typeof v=="string"){let g,m=T.get(c=c.head||c);if(m||T.set(c,m=new Set),!m.has(b)){g=_.document.createElement("style"),g.textContent=v;const N=(p=A._)!=null?p:(function(){var y,w,O;return(O=(w=(y=_.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?O:void 0})();if(N!=null&&g.setAttribute("nonce",N),!(1&f.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(Q){const y=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),ee?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&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(b)}}else{let g=T.get(c);if(g||T.set(c,g=new Set),!g.has(b)){const m=(S=c.defaultView)!=null?S:c.ownerDocument.defaultView;let N;if(v.constructor===m.CSSStyleSheet)N=v;else{N=new m.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)N.insertRule(v.cssRules[y].cssText,y)}ee?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],g.add(b)}}return b})(l.shadowRoot?l.shadowRoot:l.getRootNode(),r);10&u&&(l["s-sc"]=d,l.classList.add(d+"-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:[],r=()=>St(e);a.length===0?r():(Promise.all(a).then(r).catch(r),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;H(n,"componentDidRender",void 0,t),64&e.i?H(n,"componentDidUpdate",void 0,t):(e.i|=64,_t(t),H(n,"componentDidLoad",void 0,t),e.L(t),s||wt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>de(e,!1))),e.i&=-517},wt=()=>{ne((()=>dt(_,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(o){M(o,s)}},_t=e=>e.classList.add("hydrated"),Be=(e,t,n,s)=>{const o=x(e);if(!o)return;const i=e,a=o.l.get(t),r=o.i,l=i;n=Oe(n,s.t[t][0],!!(64&s.i));const u=Number.isNaN(a)&&Number.isNaN(n);if(n!==a&&!u){if(o.l.set(t,n),s.F){const d=s.F[t];d&&d.map((c=>{try{const[[f,p]]=Object.entries(c);(128&r||1&p)&&(l?l[f](n,a,t):o.T.push((()=>{o.D[f](n,a,t)})))}catch(f){M(f,i)}}))}if(2&r){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,a,t)===!1&&!(16&r))return;16&r||de(o,!1)}}},Nt=(e,t,n)=>{var s,o;const i=e.prototype;64&t.i&&1&n&&st.forEach((a=>{const r=i[a];Object.defineProperty(i,a,{value(...l){var u;const d=x(this),c=this;c?typeof r=="function"&&r.call(c,...l):(u=d?.H)==null||u.then((f=>{const p=f[a];typeof p=="function"&&p.call(f,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Ee(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:u,set:d}=R(i,r)||{};u&&(t.t[r][0]|=2048),d&&(t.t[r][0]|=4096),Object.defineProperty(i,r,{get(){return u?u.apply(this):(c=r,x(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,r,{set(c){const f=x(this);if(f){if(d)return(32&l?this[r]:f.$hostElement$[r])===void 0&&f.l.get(r)&&(c=f.l.get(r)),d.apply(this,[Oe(c,l,!!(64&t.i))]),void Be(this,r,c=32&l?this[r]:f.$hostElement$[r],t);Be(this,r,c,t)}}})}}));{const r=new Map;i.attributeChangedCallback=function(l,u,d){A.jmp((()=>{var c;const f=r.get(l),p=x(this);if(this.hasOwnProperty(f),i.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==d)return;if(f==null){const g=p?.i;if(p&&g&&!(8&g)&&d!==u){const m=this,N=(c=t.F)==null?void 0:c[l];N?.forEach((y=>{const[[w,O]]=Object.entries(y);m[w]!=null&&(128&g||1&O)&&m[w].call(m,d,u,l)}))}return}const h=a.find((([g])=>g===f)),S=h&&4&h[1][0],b=S&&d===null&&this[f]===void 0;S&&(d=d!==null&&d!=="false");const v=Object.getOwnPropertyDescriptor(i,f);b||d==this[f]||v.get&&!v.set||(this[f]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((o=t.F)!=null?o:{}),...a.filter((([l,u])=>31&u[0])).map((([l,u])=>{var d;const c=u[1]||l;return r.set(c,l),512&u[0]&&((d=t.C)==null||d.push([l,c])),c}))]))}}return e},kt=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.F=Ee(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 r={i:0,$hostElement$:i,o:a,l:new Map,W:new Map};r.H=new Promise((u=>r.L=u)),i["s-p"]=[],i["s-rc"]=[];const l=r;i.__stencil__getHostRef=()=>l,512&a.i&&tt(i,r)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!x(this))return;this.__hasHostListenerAttached=!0}(i=>{if(!(1&A.i)){const a=x(i);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(!_.document)return;const u=l["s-cr"]=_.document.createComment("");u["s-cn"]=!0,C(l,u,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Me(a,a.R=l);break}}r.t&&Object.entries(r.t).map((([l,[u]])=>{if(31&u&&Object.prototype.hasOwnProperty.call(i,l)){const d=i[l];delete i[l],i[l]=d}})),(async(l,u,d)=>{let c;try{if(!(32&u.i)&&(u.i|=32,c=l.constructor,customElements.whenDefined(l.localName).then((()=>u.i|=128)),c&&c.style)){let h;typeof c.style=="string"&&(h=c.style);const S=ke(d);W.has(S)||((b,v,g)=>{let m=W.get(b);Q&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,W.set(b,m)})(S,h,!!(1&d.i))}const f=u.R,p=()=>de(u,!0);f&&f["s-rc"]?f["s-rc"].push(p):p()}catch(f){M(f,l),u.A&&(u.A(),u.A=void 0),u.L&&u.L(l)}})(i,a,r)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{1&A.i||x(i),T.has(i)&&T.delete(i),i.shadowRoot&&T.has(i.shadowRoot)&&T.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 lt.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Nt(e,n,3)}catch(s){return M(s),e}},At=(e,t)=>t;function Kt(e){return e}function Fe(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=Fe(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Ve(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fe(e))&&(s&&(s+=" "),s+=t);return s}const Et=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>Ve("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"})),Ot=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Ve("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"})),X=64,Ge=10,He=X/2-Ge/2,$t=X/2,fe=2*Math.PI*He,Ct=`0 0 ${X} ${X}`,Pt=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=(fe*o/100).toFixed(2),a=(fe-parseFloat(i)).toFixed(2);return`${i} ${a}`},centerPosition:$t,circumference:fe,radius:He,thickness:Ge,viewBox:Ct},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),We=Symbol("pathSet"),pe="gids-asset-paths-set";class xt extends EventTarget{#t=new Map;constructor(){super()}#e(t,n){this.#t.set(t,n)}#s(t){return this.#t.get(t)??null}#n=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#s(We)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(he,n)}this.#e(We,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#s(t);if(n===null){const s=this.#s(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const me=Symbol.for("GIDS"),jt=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),Tt=e=>{const t=jt().assetPaths;return t[e]===void 0&&(t[e]=new xt),t[e]};function ge(){return Tt("@ganpatiinfo/gids-web-shared")}function Lt(){return ge().haveAssetPathsBeenSet()}function Ue(e){return ge().getAssetFilePath(e)}function It(e){return ge().onAssetPathsSet(e)}let Rt=0;const Mt=(e,t="gids")=>e||`${t}-${Rt++}`,Dt=e=>e.type==="hidden",Bt=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&&!Dt(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},qe={"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 qe)for(const t of qe[e])ze.set(t,e);function Ft(e){return ze.get(e)}function Ke(e,t="regular",n){const s=Ft(e);let o=s??"";return n&&s&&(o=n(s)??s),`${o}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Vt}=Ot,Ye=({name:e,size:t,appearance:n,alt:s,class:o,titleId:i,src:a,...r})=>{const l=Mt(i);let u=a;return u===void 0&&Lt()&&(u=Ke(e,n,Ue)),k("svg",{ref:d=>{u===void 0&&It((()=>{(function(c,f,p){if(!c)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",Ke(f,p,Ue)),c.appendChild(h)})(d,e,n)}))},width:"16",height:"16",class:Vt({size:t},o),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...r},s!==""&&k("title",{id:l},s||e),u!==void 0?k("use",{href:u}):null)},{getGidsSpinnerControlClassNames:Gt}=Et,{calculateStrokeDasharray:Ht,thickness:Je,radius:Xe,centerPosition:Z,viewBox:Wt}=Pt,Ut=({size:e,indeterminate:t,value:n,max:s,...o})=>{let i;return t||(i={strokeDashArray:Ht(n,s||0),strokeDashoffset:"0"}),k("svg",{class:Gt({size:e,indeterminate:t,value:n}),viewBox:Wt,...o},k("circle",{class:"gids-spinner-control__track",cx:Z,cy:Z,r:Xe,"stroke-width":Je}),k("circle",{style:i,class:"gids-spinner-control__progress",cx:Z,cy:Z,r:Xe,"stroke-width":Je}))},Ze=kt(class extends nt{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const n=t.target;n===this.#t||this._isWithinInteractiveElement(n)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(Bt(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 k(At,{key:"8cfc78682bffd38298aaa5bc8fe63bc996f17586"},k("slot",{key:"5e5c57234e3e531b0d095597e021ab3d4756173d",name:"leadingIcon"}),this.leadingLabel&&k("span",{key:"5d0fc2c8a8716806891347f30ba961db61e1cf91",class:"gids-input__label"},this.leadingLabel),k("slot",{key:"881161160b2e933479c7af0a63846c0f86c7bbfe",name:"leadingAccessory"}),k("input",{key:"f0db6b63f0aa4a1a778743620753184ff0a7086a",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),k("slot",{key:"5bb8549e6aa491b7ebbf56bce66bab6f386f98fe",name:"trailingAccessory"}),this.trailingLabel&&k("span",{key:"3ef3319efd5512bbd370e314724820a539e342f9",class:"gids-input__label"},this.trailingLabel),k("slot",{key:"22dcea487ee58e5df65a5b88d3f7ce7bcc32f828",name:"trailingIcon"}),this.status==="incomplete"&&k(Ye,{key:"808723d08c4e8a1533652d6c20fd7f8ff0e98275",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&k(Ye,{key:"10c61d22cb2a4fa56dc0de3025cfc07c1268f91e",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&k(Ut,{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 Qe(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Ze))}))}Qe();const qt=Ze,zt=Qe;L.GidsInput=qt,L.defineCustomElement=zt,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(b=>{const v=[];for(let g=0;g<b.length;g++){const m=b[g]["s-nr"]||void 0;m&&m.isConnected&&v.push(m)}return v})(S.childNodes)).forEach((b=>{h===B(b)&&p.push(b)})),c?p.filter((b=>b.nodeType===1)):p}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(l),a=e&&e.m&&e.m[n],a&&a.O===o.O&&e.S&&je(e.S)),l},je=e=>{E.i|=1;const t=e.closest(M.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&&(P(t,o,n??null),o["s-sh"]=void 0,z=!0)}E.i&=-2},Y=(e,t)=>{E.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"]===M&&n.push(s)}for(let s=n.length-1;s>=0;s--){const o=n[s];o["s-hn"]!==M&&o["s-ol"]&&(P(G(o).parentNode,o,G(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,z=!0),t&&Y(o,t)}E.i&=-2},Te=(e,t,n,s,o,l)=>{let i,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===M&&(a=a.shadowRoot),n.O==="template"&&(a=a.content);o<=l;++o)s[o]&&(i=K(null,n,o),i&&(s[o].S=i,P(a,i,G(t))))},Le=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const l=o.S;Me(o),l&&(U=!0,l["s-ol"]?l["s-ol"].remove():Y(l,!0),l.remove())}}},J=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),G=e=>e&&e["s-ol"]||e,V=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,l=t.m,i=t.O,a=t.h;let r;a==null?(A=i==="svg"||i!=="foreignObject"&&A,i!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),ae(e,t,A),o!==null&&l!==null?((d,u,c,f,p=!1)=>{let h,S,b=0,v=0,g=0,m=0,N=u.length-1,y=u[0],_=u[N],O=f.length-1,$=f[0],C=f[O];const tt=c.O==="template"?d.content:d;for(;b<=N&&v<=O;)if(y==null)y=u[++b];else if(_==null)_=u[--N];else if($==null)$=f[++v];else if(C==null)C=f[--O];else if(J(y,$,p))V(y,$,p),y=u[++b],$=f[++v];else if(J(_,C,p))V(_,C,p),_=u[--N],C=f[--O];else if(J(y,C,p))y.O!=="slot"&&C.O!=="slot"||Y(y.S.parentNode,!1),V(y,C,p),P(tt,y.S,_.S.nextSibling),y=u[++b],C=f[--O];else if(J(_,$,p))y.O!=="slot"&&C.O!=="slot"||Y(_.S.parentNode,!1),V(_,$,p),P(tt,_.S,y.S),_=u[--N],$=f[++v];else{for(g=-1,m=b;m<=N;++m)if(u[m]&&u[m].$!==null&&u[m].$===$.$){g=m;break}g>=0?(S=u[g],S.O!==$.O?h=K(u&&u[v],c,g):(V(S,$,p),u[g]=void 0,h=S.S),$=f[++v]):(h=K(u&&u[v],c,v),$=f[++v]),h&&P(G(y.S).parentNode,h,G(y.S))}b>N?Te(d,f[O+1]==null?null:f[O+1].S,c,f,v,O):v>O&&Le(u,b,N)})(s,o,t,l,n):l!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,l,0,l.length-1)):!n&&o!==null&&Le(o,0,o.length-1),A&&i==="svg"&&(A=!1)):(r=s["s-cr"])?r.parentNode.textContent=a:e.h!==a&&(s.data=a)},j=[],Ie=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const l of o){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(Ne(t,i)){let a=j.find((r=>r.k===t));U=!0,t["s-sn"]=t["s-sn"]||i,a?(a.k["s-sh"]=l["s-hn"],a.N=l):(t["s-sh"]=l["s-hn"],j.push({N:l,k:t})),t["s-sr"]&&j.map((r=>{Ne(r.k,t["s-sn"])&&(a=j.find((d=>d.k===t)),a&&!r.N&&(r.N=a.N))}))}else j.some((a=>a.k===t))||j.push({k:t})}l.nodeType===1&&Ie(l)}},Me=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Me)},gt=(e,t)=>{de.push((()=>e(t)))},P=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(l,i){var a;if(!(i=i||((a=l["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=B(l)||"";return{slotNode:oe(le(i,"childNodes"),i.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,l,i,a;const r=e.$hostElement$,d=e.o,u=e.M||q(null,null);var c;const f=(c=t)&&c.O===dt?t:k(null,null,t);if(M=r.tagName,d.C&&(f.v=f.v||{},d.C.forEach((([p,h])=>{f.v[h]=r[p]}))),n&&f.v)for(const p of Object.keys(f.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(f.v[p]=r[p]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=r.shadowRoot||r,F=!(!(1&d.i)||128&d.i),re=r["s-cr"],U=!1,V(u,f,n),E.i|=1,z){Ie(f.S);for(const p of j){const h=p.k;if(!h["s-ol"]&&w.document){const S=w.document.createTextNode("");S["s-nr"]=h,P(h.parentNode,h["s-ol"]=S,h,n)}}for(const p of j){const h=p.k,S=p.N;if(h.nodeType===1&&n&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let g=(o=h["s-ol"])==null?void 0:o.previousSibling;for(;g;){let m=(l=g["s-nr"])!=null?l:null;if(m&&m["s-sn"]===h["s-sn"]&&b===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===h||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}g=g.previousSibling}}if((!v&&b!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==v)&&h!==v){if(P(b,h,v,n),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=h["s-hn"],g["s-sn"]=h["s-sn"],g["s-sh"]=h["s-sh"],g["s-sr"]=h["s-sr"],g["s-ol"]=h["s-ol"],g["s-ol"]["s-nr"]=g,P(h.parentNode,g,h,n),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(U&&_e(f.S),E.i&=-2,j.length=0,!F&&!(1&d.i)&&r["s-cr"]){const p=f.S.__childNodes||f.S.childNodes;for(const h of p)if(h["s-hn"]!==M&&!h["s-sh"]){if(n&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=w.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],P(h.parentNode,S,h,n),h.parentNode.removeChild(h)}}}re=void 0,ce.forEach((p=>p())),ce.length=0,de.forEach((p=>p())),de.length=0},Re=(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);Re(e,e.R);const n=()=>yt(e,t);if(!t)return it(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=Ve(o,(()=>H(s,"componentWillRender",void 0,n))),Ve(o,(()=>St(e,s,t)))},Ve=(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$,l=o["s-rc"];n&&(i=>{const a=i.o,r=i.$hostElement$,d=a.i,u=((c,f)=>{var p,h,S;const b=ke(f),v=W.get(b);if(!w.document)return b;if(c=c.nodeType===11?c:w.document,v)if(typeof v=="string"){let g,m=T.get(c=c.head||c);if(m||T.set(c,m=new Set),!m.has(b)){g=w.document.createElement("style"),g.textContent=v;const N=(p=E._)!=null?p:(function(){var y,_,O;return(O=(_=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?O:void 0})();if(N!=null&&g.setAttribute("nonce",N),!(1&f.i))if(c.nodeName==="HEAD"){const y=c.querySelectorAll("link[rel=preconnect]"),_=y.length>0?y[y.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,_?.parentNode===c?_:null)}else if("host"in c)if(Q){const y=new((h=c.defaultView)!=null?h:c.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),ee?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&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(b)}}else{let g=T.get(c);if(g||T.set(c,g=new Set),!g.has(b)){const m=(S=c.defaultView)!=null?S:c.ownerDocument.defaultView;let N;if(v.constructor===m.CSSStyleSheet)N=v;else{N=new m.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)N.insertRule(v.cssRules[y].cssText,y)}ee?c.adoptedStyleSheets.push(N):c.adoptedStyleSheets=[...c.adoptedStyleSheets,N],g.add(b)}}return b})(r.shadowRoot?r.shadowRoot:r.getRootNode(),a);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),wt(e,t,o,n),l&&(l.map((i=>i())),o["s-rc"]=void 0);{const i=(s=o["s-p"])!=null?s:[],a=()=>_t(e);i.length===0?a():(Promise.all(i).then(a).catch(a),e.i|=4,i.length=0)}},wt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,vt(e,t,s)}catch(o){I(o,e.$hostElement$)}return null},_t=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,kt(t),H(n,"componentDidLoad",void 0,t),e.L(t),s||Nt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>ue(e,!1))),e.i&=-517},Nt=()=>{ne((()=>ht(w,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(o){I(o,s)}},kt=e=>e.classList.add("hydrated"),De=(e,t,n,s)=>{const o=x(e);if(!o)return;const l=e,i=o.l.get(t),a=o.i,r=l;n=Oe(n,s.t[t][0],!!(64&s.i));const d=Number.isNaN(i)&&Number.isNaN(n);if(n!==i&&!d){if(o.l.set(t,n),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[f,p]]=Object.entries(c);(128&a||1&p)&&(r?r[f](n,i,t):o.T.push((()=>{o.D[f](n,i,t)})))}catch(f){I(f,l)}}))}if(2&a){if(r.componentShouldUpdate&&r.componentShouldUpdate(n,i,t)===!1&&!(16&a))return;16&a||ue(o,!1)}}},Et=(e,t,n)=>{var s,o;const l=e.prototype;64&t.i&&1&n&&nt.forEach((i=>{const a=l[i];Object.defineProperty(l,i,{value(...r){var d;const u=x(this),c=this;c?typeof a=="function"&&a.call(c,...r):(d=u?.H)==null||d.then((f=>{const p=f[i];typeof p=="function"&&p.call(f,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Ae(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const i=Object.entries((s=t.t)!=null?s:{});i.map((([a,[r]])=>{if(31&r||32&r){const{get:d,set:u}=R(l,a)||{};d&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(l,a,{get(){return d?d.apply(this):(c=a,x(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(l,a,{set(c){const f=x(this);if(f){if(u)return(32&r?this[a]:f.$hostElement$[a])===void 0&&f.l.get(a)&&(c=f.l.get(a)),u.apply(this,[Oe(c,r,!!(64&t.i))]),void De(this,a,c=32&r?this[a]:f.$hostElement$[a],t);De(this,a,c,t)}}})}}));{const a=new Map;l.attributeChangedCallback=function(r,d,u){E.jmp((()=>{var c;const f=a.get(r),p=x(this);if(this.hasOwnProperty(f),l.hasOwnProperty(f)&&typeof this[f]=="number"&&this[f]==u)return;if(f==null){const g=p?.i;if(p&&g&&!(8&g)&&u!==d){const m=this,N=(c=t.F)==null?void 0:c[r];N?.forEach((y=>{const[[_,O]]=Object.entries(y);m[_]!=null&&(128&g||1&O)&&m[_].call(m,u,d,r)}))}return}const h=i.find((([g])=>g===f)),S=h&&4&h[1][0],b=S&&u===null&&this[f]===void 0;S&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(l,f);b||u==this[f]||v.get&&!v.set||(this[f]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((o=t.F)!=null?o:{}),...i.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},At=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Ae(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(){((l,i)=>{const a={i:0,$hostElement$:l,o:i,l:new Map,B:new Map};a.H=new Promise((d=>a.L=d)),l["s-p"]=[],l["s-rc"]=[];const r=a;l.__stencil__getHostRef=()=>r,512&i.i&&st(l,a)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=x(this);if(!l)return;Be(this,l,n.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&E.i)){const i=x(l);if(!i)return;const a=i.o;if(1&i.i)Be(l,i,a.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&a.i&&(r=>{if(!w.document)return;const d=r["s-cr"]=w.document.createComment("");d["s-cn"]=!0,P(r,d,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){Re(i,i.R=r);break}}a.t&&Object.entries(a.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(l,r)){const u=l[r];delete l[r],l[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 h;typeof c.style=="string"&&(h=c.style);const S=ke(u);W.has(S)||((b,v,g)=>{let m=W.get(b);Q&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,W.set(b,m)})(S,h,!!(1&u.i))}const f=d.R,p=()=>ue(d,!0);f&&f["s-rc"]?f["s-rc"].push(p):p()}catch(f){I(f,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(l,i,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&E.i)){const i=x(l);i?.V&&(i.V.map((a=>a())),i.V=void 0)}T.has(l)&&T.delete(l),l.shadowRoot&&T.has(l.shadowRoot)&&T.delete(l.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}),Et(e,n,3)}catch(s){return I(s),e}},Ot=(e,t)=>t,Be=(e,t,n)=>{n&&w.document&&n.map((([s,o,l])=>{const i=Pt(w.document,e,s),a=$t(t,l),r=Ct(s);E.ael(i,o,a,r),(t.V=t.V||[]).push((()=>E.rel(i,o,a,r)))}))},$t=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){I(s,e.$hostElement$)}},Pt=(e,t,n)=>8&n?w:t,Ct=e=>lt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Qt(e){return e}function Fe(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=Fe(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Ge(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fe(e))&&(s&&(s+=" "),s+=t);return s}const xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>Ge("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"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Ge("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"})),X=64,He=10,We=X/2-He/2,Tt=X/2,fe=2*Math.PI*We,Lt=`0 0 ${X} ${X}`,It=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,l=(fe*o/100).toFixed(2),i=(fe-parseFloat(l)).toFixed(2);return`${l} ${i}`},centerPosition:Tt,circumference:fe,radius:We,thickness:He,viewBox:Lt},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),qe=Symbol("pathSet"),pe="gids-asset-paths-set";class Mt extends EventTarget{#t=new Map;constructor(){super()}#e(t,n){this.#t.set(t,n)}#s(t){return this.#t.get(t)??null}#n=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#s(qe)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(he,n)}this.#e(qe,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#s(t);if(n===null){const s=this.#s(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const me=Symbol.for("GIDS"),Rt=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),Vt=e=>{const t=Rt().assetPaths;return t[e]===void 0&&(t[e]=new Mt),t[e]};function ge(){return Vt("@ganpatiinfo/gids-web-shared")}function Dt(){return ge().haveAssetPathsBeenSet()}function Ue(e){return ge().getAssetFilePath(e)}function Bt(e){return ge().onAssetPathsSet(e)}let Ft=0;const Gt=(e,t="gids")=>e||`${t}-${Ft++}`,Ht=e=>e.type==="hidden",Wt=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&&!Ht(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},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"]},Ke=new Map;for(const e in ze)for(const t of ze[e])Ke.set(t,e);function qt(e){return Ke.get(e)}function Ye(e,t="regular",n){const s=qt(e);let o=s??"";return n&&s&&(o=n(s)??s),`${o}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Ut}=jt,Je=({name:e,size:t,appearance:n,alt:s,class:o,titleId:l,src:i,...a})=>{const r=Gt(l);let d=i;return d===void 0&&Dt()&&(d=Ye(e,n,Ue)),k("svg",{ref:u=>{d===void 0&&Bt((()=>{(function(c,f,p){if(!c)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",Ye(f,p,Ue)),c.appendChild(h)})(u,e,n)}))},width:"16",height:"16",class:Ut({size:t},o),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:r,...a},s!==""&&k("title",{id:r},s||e),d!==void 0?k("use",{href:d}):null)},{getGidsSpinnerControlClassNames:zt}=xt,{calculateStrokeDasharray:Kt,thickness:Xe,radius:Ze,centerPosition:Z,viewBox:Yt}=It,Jt=({size:e,indeterminate:t,value:n,max:s,...o})=>{let l;return t||(l={strokeDashArray:Kt(n,s||0),strokeDashoffset:"0"}),k("svg",{class:zt({size:e,indeterminate:t,value:n}),viewBox:Yt,...o},k("circle",{class:"gids-spinner-control__track",cx:Z,cy:Z,r:Ze,"stroke-width":Xe}),k("circle",{style:l,class:"gids-spinner-control__progress",cx:Z,cy:Z,r:Ze,"stroke-width":Xe}))},Qe=At(class extends ot{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const n=t.target;n===this.#t||this._isWithinInteractiveElement(n)||this.#t?.focus()},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}get defaultValue(){return this.#t?.defaultValue??this.#e.defaultValue??""}set defaultValue(e){this.#t?this.#t.defaultValue=e:this.#e.defaultValue=e}get value(){return this.#t?.value??this.#e.value??this.#e.defaultValue??""}set value(e){this.#t?this.#t.value=e:this.#e.value=e}#t;#e;_isWithinInteractiveElement(e){if(e===null||e===this._el||!this._el.contains(e))return!1;if(Wt(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 k(Ot,{key:"94b08611da249786439b37e6ea7961ea3e5ee851"},k("slot",{key:"d334ee7f99214b10ddecafcbc9a8a851723eba89",name:"leadingIcon"}),this.leadingLabel&&k("span",{key:"8c650986f8a51f563f2499d9f68704702d67d3d6",class:"gids-input__label"},this.leadingLabel),k("slot",{key:"d6f6f0f53e0af2b3de306fbb4bda2b4199567060",name:"leadingAccessory"}),k("input",{key:"8429cdabbbc2034cac2d76cc72fa5e40298d5ec7",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),k("slot",{key:"aa7a6d1b0551a88801ef75da893ecf41e1eaafa8",name:"trailingAccessory"}),this.trailingLabel&&k("span",{key:"5f683d6c71ef3802c3749959b921b9046c168437",class:"gids-input__label"},this.trailingLabel),k("slot",{key:"b7d26fe16f35c0147b7b1a34dd41cd0f85ed5ab5",name:"trailingIcon"}),this.status==="incomplete"&&k(Je,{key:"66f1da3df7907675feace05c11e2e31e892d6251",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&k(Je,{key:"3fc74b5623174d2a321a5367854ff180bde2cd9f",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&k(Jt,{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 et(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Qe))}))}et();const Xt=Qe,Zt=et;L.GidsInput=Xt,L.defineCustomElement=Zt,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
|