@ganpatiinfo/gids-core-web 8.2.0 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/index.css +1919 -0
- package/dist/css/index.css.map +1 -1
- package/dist/custom-elements.json +332 -0
- package/dist/gids-activity-gauge.d.ts +11 -0
- package/dist/gids-activity-gauge.js +1 -0
- package/dist/gids-bar-chart.d.ts +11 -0
- package/dist/gids-bar-chart.js +1 -0
- package/dist/gids-calendar-header-panel.d.ts +11 -0
- package/dist/gids-calendar-header-panel.js +1 -0
- package/dist/gids-calendar-month-list.d.ts +11 -0
- package/dist/gids-calendar-month-list.js +1 -0
- package/dist/gids-calendar-year-list.d.ts +11 -0
- package/dist/gids-calendar-year-list.js +1 -0
- package/dist/gids-calendar.d.ts +11 -0
- package/dist/gids-calendar.js +1 -0
- package/dist/gids-chart-legend-item.d.ts +11 -0
- package/dist/gids-chart-legend-item.js +1 -0
- package/dist/gids-chart-legend.d.ts +11 -0
- package/dist/gids-chart-legend.js +1 -0
- package/dist/gids-chart.d.ts +11 -0
- package/dist/gids-chart.js +1 -0
- package/dist/gids-chevron-button.d.ts +11 -0
- package/dist/gids-chevron-button.js +1 -0
- package/dist/gids-dot.d.ts +11 -0
- package/dist/gids-dot.js +1 -0
- package/dist/gids-dropdown-field.d.ts +11 -0
- package/dist/gids-dropdown-field.js +1 -0
- package/dist/gids-dropdown-picker.d.ts +11 -0
- package/dist/gids-dropdown-picker.js +1 -0
- package/dist/gids-dropdown.d.ts +11 -0
- package/dist/gids-dropdown.js +1 -0
- package/dist/gids-field.d.ts +1 -1
- package/dist/gids-field.js +1 -1
- 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 +11 -0
- package/dist/gids-level-gauge.js +1 -0
- package/dist/gids-line-chart.d.ts +11 -0
- package/dist/gids-line-chart.js +1 -0
- 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 +11 -0
- package/dist/gids-pie-chart.js +1 -0
- package/dist/gids-popover.d.ts +11 -0
- package/dist/gids-popover.js +1 -0
- package/dist/gids-progress-circle.d.ts +11 -0
- package/dist/gids-progress-circle.js +1 -0
- 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-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 +11 -0
- package/dist/gids-tooltip.js +1 -0
- package/dist/index.js +1 -1
- package/dist/p-9_mrQ7ac.js +1 -0
- package/dist/p-B81J5HCC.js +1 -0
- package/dist/p-B8kX8Vqv.js +1 -0
- package/dist/p-BFHWXEeg.js +1 -0
- package/dist/p-B_HaXpJZ.js +1 -0
- package/dist/p-BaO-kEWS.js +1 -0
- package/dist/p-BiPAgxAQ.js +1 -0
- package/dist/p-Bmb-HiXg.js +1 -0
- package/dist/{p-veoOgDXg.js → p-BnL97lOW.js} +1 -1
- package/dist/{p-DjvDBWCb.js → p-BvYnawkJ.js} +1 -1
- package/dist/p-CIP0xyhD.js +1 -0
- package/dist/p-CJzporPT.js +1 -0
- package/dist/p-CPSHPtGE.js +1 -0
- package/dist/p-CRngHsR7.js +1 -0
- package/dist/p-Ct3Ixgvf.js +1 -0
- package/dist/p-D93TNeOt.js +1 -0
- package/dist/p-DKsrt7dx.js +1 -0
- package/dist/p-DZWWuJac.js +1 -0
- package/dist/p-D_wcwB7E.js +1 -0
- package/dist/p-Dehss-X0.js +1 -0
- package/dist/{p-Bg3lw2Ae.js → p-DfFqFdmS.js} +1 -1
- package/dist/p-KxRqlvSh.js +1 -0
- package/dist/p-MgTlrSP_.js +1 -0
- package/dist/p-a3JfEYJp.js +1 -0
- package/dist/p-h6alWGT8.js +1 -0
- package/dist/p-quZYWCxU.js +1 -0
- package/dist/p-tyIgTtUC.js +1 -0
- package/dist/p-uqSjmNkw.js +1 -0
- package/dist/types/components/html/GidsButton/GidsButton.d.ts +1 -1
- package/dist/types/components/html/GidsCalendarCell/GidsCalendarCell.d.ts +7 -0
- package/dist/types/components/html/GidsCalendarDayCell/GidsCalendarDayCell.d.ts +4 -0
- package/dist/types/components/html/GidsDropdownItem/GidsDropdownItem.d.ts +9 -0
- package/dist/types/components/html/GidsDropdownMenu/GidsDropdownMenu.d.ts +6 -0
- package/dist/types/components/html/GidsDropdownMenuGroup/GidsDropdownMenuGroup.d.ts +5 -0
- package/dist/types/components/html/GidsEditButton/GidsEditButton.d.ts +7 -0
- package/dist/types/components/html/GidsListItem/GidsListItem.d.ts +11 -0
- package/dist/types/components/html/GidsMenu/GidsMenu.d.ts +6 -0
- package/dist/types/components/html/GidsMenuGroup/GidsMenuGroup.d.ts +5 -0
- package/dist/types/components/html/GidsPageTitle/GidsPageTitle.d.ts +4 -0
- package/dist/types/components/shared/GidsFloatingElementManager.d.ts +57 -0
- package/dist/types/components/shared/GidsFloatingElementTypes.d.ts +4 -0
- package/dist/types/components/webComponents/GidsActivityGauge/GidsActivityGauge.d.ts +23 -0
- package/dist/types/components/webComponents/GidsBarChart/GidsBarChart.d.ts +27 -0
- package/dist/types/components/webComponents/GidsCalendar/GidsCalendar.d.ts +34 -0
- package/dist/types/components/webComponents/GidsCalendarHeaderPanel/GidsCalendarHeaderPanel.d.ts +67 -0
- package/dist/types/components/webComponents/GidsCalendarMonthList/GidsCalendarMonthList.d.ts +26 -0
- package/dist/types/components/webComponents/GidsCalendarYearList/GidsCalendarYearList.d.ts +31 -0
- package/dist/types/components/webComponents/GidsChart/GidsChart.d.ts +19 -0
- package/dist/types/components/webComponents/GidsChartLegend/GidsChartLegend.d.ts +7 -0
- package/dist/types/components/webComponents/GidsChartLegendItem/GidsChartLegendItem.d.ts +9 -0
- package/dist/types/components/webComponents/GidsChevronButton/GidsChevronButton.d.ts +21 -0
- package/dist/types/components/webComponents/GidsDot/GidsDot.d.ts +17 -0
- package/dist/types/components/webComponents/GidsDropdown/GidsDropdown.d.ts +78 -0
- package/dist/types/components/webComponents/GidsDropdownField/GidsDropdownField.d.ts +37 -0
- package/dist/types/components/webComponents/GidsDropdownPicker/GidsDropdownPicker.d.ts +52 -0
- package/dist/types/components/webComponents/GidsLevelGauge/GidsLevelGauge.d.ts +22 -0
- package/dist/types/components/webComponents/GidsLineChart/GidsLineChart.d.ts +27 -0
- package/dist/types/components/webComponents/GidsPieChart/GidsPieChart.d.ts +23 -0
- package/dist/types/components/webComponents/GidsPopover/GidsPopover.d.ts +24 -0
- package/dist/types/components/webComponents/GidsProgressCircle/GidsProgressCircle.d.ts +24 -0
- package/dist/types/components/webComponents/GidsTooltip/GidsTooltip.d.ts +23 -0
- package/dist/types/components.d.ts +1420 -64
- package/dist/types/index.d.ts +2 -0
- package/dist/types/utils/childrenValidityUtils.d.ts +8 -0
- package/dist-bundled/es/gids-activity-gauge.js +6 -0
- package/dist-bundled/es/gids-bar-chart.js +6 -0
- package/dist-bundled/es/gids-calendar-header-panel.js +6 -0
- package/dist-bundled/es/gids-calendar-month-list.js +6 -0
- package/dist-bundled/es/gids-calendar-year-list.js +6 -0
- package/dist-bundled/es/gids-calendar.js +153 -0
- package/dist-bundled/es/gids-chart-legend-item.js +6 -0
- package/dist-bundled/es/gids-chart-legend.js +6 -0
- package/dist-bundled/es/gids-chart.js +108 -0
- package/dist-bundled/es/gids-chevron-button.js +56 -0
- package/dist-bundled/es/gids-dot.js +6 -0
- package/dist-bundled/es/gids-dropdown-field.js +88 -0
- package/dist-bundled/es/gids-dropdown-picker.js +6 -0
- package/dist-bundled/es/gids-dropdown.js +6 -0
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-icon.js +4 -30
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-level-gauge.js +6 -0
- package/dist-bundled/es/gids-line-chart.js +6 -0
- 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 +17 -17
- package/dist-bundled/es/gids-password-field.js +21 -20
- package/dist-bundled/es/gids-pie-chart.js +6 -0
- package/dist-bundled/es/gids-popover.js +110 -0
- package/dist-bundled/es/gids-progress-circle.js +6 -0
- package/dist-bundled/es/gids-scrim.js +7 -7
- package/dist-bundled/es/gids-snackbar.js +1 -1
- package/dist-bundled/es/gids-text-field.js +14 -13
- package/dist-bundled/es/gids-toggle-button.js +8 -8
- package/dist-bundled/es/gids-tooltip.js +66 -0
- package/dist-bundled/es/index.js +33 -19
- package/dist-bundled/es/p-9_mrQ7ac-If6e6cvJ.js +71 -0
- package/dist-bundled/es/p-B81J5HCC-Bkt2yXKi.js +47 -0
- package/dist-bundled/es/p-B8kX8Vqv-trBz4jdS.js +7 -0
- package/dist-bundled/es/p-BFHWXEeg-ByjSjz8i.js +133 -0
- package/dist-bundled/es/p-B_HaXpJZ-a2SDgQ0E.js +37 -0
- package/dist-bundled/es/p-BaO-kEWS-ZITkeP-j.js +241 -0
- package/dist-bundled/es/p-BiPAgxAQ-BtMBQpJY.js +31 -0
- package/dist-bundled/es/p-Bmb-HiXg-MyHWdhpw.js +80 -0
- package/dist-bundled/es/{p-veoOgDXg-DElc87c0.js → p-BnL97lOW-BO0p4EdC.js} +20 -13
- package/dist-bundled/es/{p-DjvDBWCb-C9js0PPL.js → p-BvYnawkJ-DohV9UNG.js} +10 -10
- package/dist-bundled/es/p-CIP0xyhD-D6y5soLj.js +180 -0
- package/dist-bundled/es/p-CJzporPT-I_OdjJsQ.js +92 -0
- package/dist-bundled/es/p-CPSHPtGE-C7baJgXR.js +115 -0
- package/dist-bundled/es/p-CRngHsR7-DL9wz3Z3.js +25 -0
- package/dist-bundled/es/p-Ct3Ixgvf-CNP_PKwP.js +646 -0
- package/dist-bundled/es/p-D93TNeOt-Vvshbux8.js +88 -0
- package/dist-bundled/es/{p-DybsMR13-DpmsG3Q1.js → p-DKsrt7dx-ImYLc4xz.js} +1 -1
- package/dist-bundled/es/p-DZWWuJac-DNQvnHAr.js +15 -0
- package/dist-bundled/es/p-D_wcwB7E-d3jYxfod.js +20 -0
- package/dist-bundled/es/p-Dehss-X0-Di5vMgvd.js +29 -0
- package/dist-bundled/es/{p-Bg3lw2Ae-CkC8nUqv.js → p-DfFqFdmS-DjI2pk-0.js} +6 -6
- package/dist-bundled/es/p-KxRqlvSh-JOFDmT0B.js +25 -0
- package/dist-bundled/es/p-MgTlrSP_-DifRVv94.js +70 -0
- package/dist-bundled/es/p-a3JfEYJp-DyhDK6VZ.js +1128 -0
- package/dist-bundled/es/p-h6alWGT8-CSY2g3c8.js +67 -0
- package/dist-bundled/es/p-quZYWCxU-CPyWW0nv.js +56 -0
- package/dist-bundled/es/p-tyIgTtUC-C8jR4A5G.js +71 -0
- package/dist-bundled/es/p-uqSjmNkw-Cz2T86sC.js +55 -0
- package/dist-bundled/umd/gids-activity-gauge.umd.js +5 -0
- package/dist-bundled/umd/gids-bar-chart.umd.js +13 -0
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +5 -0
- package/dist-bundled/umd/gids-calendar.umd.js +5 -0
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +5 -0
- package/dist-bundled/umd/gids-chart-legend.umd.js +5 -0
- package/dist-bundled/umd/gids-chart.umd.js +13 -0
- package/dist-bundled/umd/gids-chevron-button.umd.js +5 -0
- package/dist-bundled/umd/gids-dot.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown-field.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +5 -0
- package/dist-bundled/umd/gids-dropdown.umd.js +5 -0
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- 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 +5 -0
- package/dist-bundled/umd/gids-line-chart.umd.js +5 -0
- 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 +5 -0
- package/dist-bundled/umd/gids-popover.umd.js +5 -0
- package/dist-bundled/umd/gids-progress-circle.umd.js +5 -0
- 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-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
- package/dist-bundled/umd/gids-tooltip.umd.js +5 -0
- package/dist-bundled/umd/index.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +11 -3
- package/package.json +422 -262
- package/dist/p-CWdkmFbc.js +0 -1
- package/dist/p-DijVkS9b.js +0 -1
- package/dist/p-DybsMR13.js +0 -1
- package/dist/p-ibikYq-w.js +0 -1
- package/dist-bundled/es/p-CWdkmFbc-D89ZE8Mi.js +0 -24
- package/dist-bundled/es/p-DijVkS9b-CtFkEtlE.js +0 -35
- package/dist-bundled/es/p-ibikYq-w-BsGxk8ro.js +0 -635
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(M,R){typeof exports=="object"&&typeof module<"u"?R(exports):typeof define=="function"&&define.amd?define(["exports"],R):(M=typeof globalThis<"u"?globalThis:M||self,R(M.gidsCoreWebGidsField={}))})(this,(function(M){"use strict";function R(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,Xe=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const i=e[s],r=R(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):i!==void 0&&(e[s]=i)}}))},
|
|
1
|
+
(function(M,R){typeof exports=="object"&&typeof module<"u"?R(exports):typeof define=="function"&&define.amd?define(["exports"],R):(M=typeof globalThis<"u"?globalThis:M||self,R(M.gidsCoreWebGidsField={}))})(this,(function(M){"use strict";function R(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,Xe=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const i=e[s],r=R(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):i!==void 0&&(e[s]=i)}}))},O=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},_e=(e,t)=>t in e,V=(e,t)=>(0,console.error)(e,t),W=new Map,ve="http://www.w3.org/1999/xlink",et=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],x=typeof window<"u"?window:{},tt=x.HTMLElement||class{},C={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},Q=(()=>{try{return!!x.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!x.document&&Object.getOwnPropertyDescriptor(x.document.adoptedStyleSheets,"length").writable,ee=!1,ye=[],Se=[],st=(e,t)=>o=>{e.push(o),ee||(ee=!0,4&C.i?se(te):C.raf(te))},be=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){V(o)}e.length=0},te=()=>{be(ye),be(Se),(ee=ye.length>0)&&C.raf(te)},se=e=>Promise.resolve(void 0).then(e),ot=st(Se);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 xe=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=!!it(s,G(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&ne(s,"childNodes").length&&xe(s)}};function oe(e,t,o){let s,n=0,i=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||G(s)===o)&&(i.push(s),o!==void 0))return i;i=[...i,...oe(s.childNodes,t,o)]}return i}var it=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)G(n)!==t||!o&&n["s-sr"]||s.push(n);return s},we=(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 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 ie,P,j=new WeakMap,Ce=e=>"sc-"+e.p,le=e=>(e=typeof e)=="object"||e==="function",E=(e,t,...o)=>{let s=null,n=null,i=null,r=!1,a=!1;const l=[],d=c=>{for(let u=0;u<c.length;u++)s=c[u],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((r=typeof e!="function"&&!le(s))&&(s=String(s)),r&&a?l[l.length-1].h+=s:l.push(r?U(null,s):s),a=r)};if(d(o),t){t.key&&(n=t.key),t.name&&(i=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((u=>c[u])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,lt);const h=U(e,null);return h.v=t,l.length>0&&(h.m=l),h.$=n,h.j=i,h},U=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Ee={},lt={forEach:(e,t)=>e.map(Ne).forEach(t),map:(e,t)=>e.map(Ne).map(t).map(rt)},Ne=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),rt=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),E(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},Te=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 i of e[n])if(typeof i=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((i=>typeof i=="string"?{[i]:0}:i));return s},Le=(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,at=(e,t,o)=>{const s=C.ce(t,o);return e.dispatchEvent(s),s},$e=(e,t,o,s,n,i)=>{if(o===s)return;let r=_e(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,d=ke(o);let h=ke(s);l.remove(...d.filter((c=>c&&!h.includes(c)))),l.add(...h.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 h=O(e);if(h&&h.o&&h.o.t){const c=h.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((r||l&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const h=s??"";t==="list"?r=!1:o!=null&&e[t]===h||(typeof e.__lookupSetter__(t)=="function"?e[t]=h:e.setAttribute(t,h))}}catch{}let d=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,d=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(d?e.removeAttributeNS(ve,t):e.removeAttribute(t)):(!r||4&i||n)&&!l&&e.nodeType===1&&(s=s===!0?"":s,d?e.setAttributeNS(ve,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):_e(x,a)?a.slice(2):a[2]+t.slice(3),o||s){const l=t.endsWith(Oe);t=t.replace(dt,""),o&&C.rel(e,t,o,l),s&&C.ael(e,t,s,l)}}},ct=/\s/,ke=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ct):[]),Oe="Capture",dt=new RegExp(Oe+"$"),re=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},i=t.v||{};for(const r of Ae(Object.keys(n)))r in i||$e(s,r,n[r],void 0,o,t.i);for(const r of Ae(Object.keys(i)))$e(s,r,n[r],i[r],o,t.i)};function Ae(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var D=!1,q=!1,K=!1,N=!1,ae=[],ce=[],Y=(e,t,o)=>{var s;const n=t.m[o];let i,r,a,l=0;if(D||(K=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)i=n.S=x.document.createTextNode(n.h);else if(1&n.i)i=n.S=x.document.createTextNode(""),re(null,n,N);else{if(N||(N=n.O==="svg"),!x.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=n.S=x.document.createElementNS(N?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!D&&2&n.i?"slot-fb":n.O),N&&n.O==="foreignObject"&&(N=!1),re(null,n,N),n.m){const d=n.O==="template"?i.content:i;for(l=0;l<n.m.length;++l)r=Y(e,n,l),r&&d.appendChild(r)}n.O==="svg"?N=!1:i.tagName==="foreignObject"&&(N=!0)}return i["s-hn"]=P,3&n.i&&(i["s-sr"]=!0,i["s-cr"]=ie,i["s-sn"]=n.j||"",i["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const h=c=>(function(u){const p=[],f=this["s-sn"];u?.flatten&&console.error(`
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const _=[];for(let m=0;m<y.length;m++){const p=y[m]["s-nr"]||void 0;p&&p.isConnected&&_.push(p)}return _})(S.childNodes)).forEach((y=>{h===G(y)&&g.push(y)})),d?g.filter((y=>y.nodeType===1)):g}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(i),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),i},je=e=>{C.i|=1;const t=e.closest(P.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&&(L(t,n,o??null),n["s-sh"]=void 0,K=!0)}C.i&=-2},Z=(e,t)=>{C.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"]===P&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==P&&n["s-ol"]&&(L(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)}C.i&=-2},Me=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,L(a,r,B(t))))},Pe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Ie(n),i&&(U=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.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,V=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,i=t.m,r=t.O,a=t.h;let l;a==null?(N=r==="svg"||r!=="foreignObject"&&N,r!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),re(e,t,N),n!==null&&i!==null?((c,u,d,f,g=!1)=>{let h,S,y=0,_=0,m=0,p=0,w=u.length-1,v=u[0],x=u[w],$=f.length-1,T=f[0],O=f[$];const Qe=d.O==="template"?c.content:c;for(;y<=w&&_<=$;)if(v==null)v=u[++y];else if(x==null)x=u[--w];else if(T==null)T=f[++_];else if(O==null)O=f[--$];else if(J(v,T,g))V(v,T,g),v=u[++y],T=f[++_];else if(J(x,O,g))V(x,O,g),x=u[--w],O=f[--$];else if(J(v,O,g))v.O!=="slot"&&O.O!=="slot"||Z(v.S.parentNode,!1),V(v,O,g),L(Qe,v.S,x.S.nextSibling),v=u[++y],O=f[--$];else if(J(x,T,g))v.O!=="slot"&&O.O!=="slot"||Z(x.S.parentNode,!1),V(x,T,g),L(Qe,x.S,v.S),x=u[--w],T=f[++_];else{for(m=-1,p=y;p<=w;++p)if(u[p]&&u[p].$!==null&&u[p].$===T.$){m=p;break}m>=0?(S=u[m],S.O!==T.O?h=Y(u&&u[_],d,m):(V(S,T,g),u[m]=void 0,h=S.S),T=f[++_]):(h=Y(u&&u[_],d,_),T=f[++_]),h&&L(B(v.S).parentNode,h,B(v.S))}y>w?Me(c,f[$+1]==null?null:f[$+1].S,d,f,_,$):_>$&&Pe(u,y,w)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Me(s,null,t,i,0,i.length-1)):!o&&n!==null&&Pe(n,0,n.length-1),N&&r==="svg"&&(N=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},k=[],Re=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const i of n){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(we(t,r)){let a=k.find((l=>l.k===t));U=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],k.push({N:i,k:t})),t["s-sr"]&&k.map((l=>{we(l.k,t["s-sn"])&&(a=k.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else k.some((a=>a.k===t))||k.push({k:t})}i.nodeType===1&&Re(i)}},Ie=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Ie)},ct=(e,t)=>{de.push((()=>e(t)))},L=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(i,r){var a;if(!(r=r||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=i["s-sn"]=G(i)||"";return{slotNode:oe(ne(r,"childNodes"),r.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)},ht=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,c=e.o,u=e.M||q(null,null);var d;const f=(d=t)&&d.O===Ee?t:E(null,null,t);if(P=l.tagName,c._&&(f.v=f.v||{},c._.forEach((([g,h])=>{f.v[h]=l[g]}))),o&&f.v)for(const g of Object.keys(f.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(f.v[g]=l[g]);if(f.O=null,f.i|=4,e.M=f,f.S=u.S=l.shadowRoot||l,D=!(!(1&c.i)||128&c.i),ie=l["s-cr"],U=!1,V(u,f,o),C.i|=1,K){Re(f.S);for(const g of k){const h=g.k;if(!h["s-ol"]&&b.document){const S=b.document.createTextNode("");S["s-nr"]=h,L(h.parentNode,h["s-ol"]=S,h,o)}}for(const g of k){const h=g.k,S=g.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const y=S.parentNode;let _=S.nextSibling;if(_&&_.nodeType===1){let m=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;m;){let p=(i=m["s-nr"])!=null?i:null;if(p&&p["s-sn"]===h["s-sn"]&&y===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===h||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){_=p;break}}m=m.previousSibling}}if((!_&&y!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==_)&&h!==_){if(L(y,h,_,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=b.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));m["s-hn"]=h["s-hn"],m["s-sn"]=h["s-sn"],m["s-sh"]=h["s-sh"],m["s-sr"]=h["s-sr"],m["s-ol"]=h["s-ol"],m["s-ol"]["s-nr"]=m,L(h.parentNode,m,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(r=h["s-ih"])!=null&&r)}h&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else h.nodeType===1&&(h.hidden=!0)}}if(U&&xe(f.S),C.i&=-2,k.length=0,!D&&!(1&c.i)&&l["s-cr"]){const g=f.S.__childNodes||f.S.childNodes;for(const h of g)if(h["s-hn"]!==P&&!h["s-sh"]){if(o&&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=b.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],L(h.parentNode,S,h,o),h.parentNode.removeChild(h)}}}ie=void 0,ae.forEach((g=>g())),ae.length=0,de.forEach((g=>g())),de.length=0},Ve=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},ce=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ve(e,e.C);const o=()=>ut(e,t);if(!t)return st(o);queueMicrotask((()=>{o()}))},ut=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=z(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Fe(n,(()=>z(s,"componentWillRender",void 0,o))),Fe(n,(()=>pt(e,s,t)))},Fe=(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$,i=n["s-rc"];o&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,u=((d,f)=>{var g,h,S;const y=Ce(f),_=W.get(y);if(!b.document)return y;if(d=d.nodeType===11?d:b.document,_)if(typeof _=="string"){let m,p=j.get(d=d.head||d);if(p||j.set(d,p=new Set),!p.has(y)){m=b.document.createElement("style"),m.textContent=_;const w=(g=C.L)!=null?g:(function(){var v,x,$;return($=(x=(v=b.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:x.getAttribute("content"))!=null?$:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&f.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),x=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,x?.parentNode===d?x:null)}else if("host"in d)if(Q){const v=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(_),X?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=_+v.textContent:d.prepend(m)}else d.append(m);1&f.i&&d.insertBefore(m,null),4&f.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(y)}}else{let m=j.get(d);if(m||j.set(d,m=new Set),!m.has(y)){const p=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(_.constructor===p.CSSStyleSheet)w=_;else{w=new p.CSSStyleSheet;for(let v=0;v<_.cssRules.length;v++)w.insertRule(_.cssRules[v].cssText,v)}X?d.adoptedStyleSheets.push(w):d.adoptedStyleSheets=[...d.adoptedStyleSheets,w],m.add(y)}}return y})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),gt(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>mt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},gt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ht(e,t,s)}catch(n){I(n,e.$hostElement$)}return null},mt=e=>{const t=e.$hostElement$,o=t,s=e.C;z(o,"componentDidRender",void 0,t),64&e.i?z(o,"componentDidUpdate",void 0,t):(e.i|=64,vt(t),z(o,"componentDidLoad",void 0,t),e.F(t),s||_t()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>ce(e,!1))),e.i&=-517},_t=()=>{se((()=>rt(b,"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)}},vt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=A(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=$e(o,s.t[t][0]);const c=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!c){if(n.l.set(t,o),s.R){const u=s.R[t];u&&u.map((d=>{try{const[[f,g]]=Object.entries(d);(128&a||1&g)&&(l?l[f](o,r,t):n.T.push((()=>{n.D[f](o,r,t)})))}catch(f){I(f,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||ce(n,!1)}}},yt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Te(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const i=Object.entries((o=t.t)!=null?o:{});i.map((([r,[a]])=>{if(31&a||32&a){const{get:l,set:c}=R(n,r)||{};l&&(t.t[r][0]|=2048),c&&(t.t[r][0]|=4096),Object.defineProperty(n,r,{get(){return l?l.apply(this):(u=r,A(this).l.get(u));var u},configurable:!0,enumerable:!0}),Object.defineProperty(n,r,{set(u){const d=A(this);if(d){if(c)return(32&a?this[r]:d.$hostElement$[r])===void 0&&d.l.get(r)&&(u=d.l.get(r)),c.apply(this,[$e(u,a)]),void He(this,r,u=32&a?this[r]:d.$hostElement$[r],t);He(this,r,u,t)}}})}}));{const r=new Map;n.attributeChangedCallback=function(a,l,c){C.jmp((()=>{var u;const d=r.get(a),f=A(this);if(this.hasOwnProperty(d),n.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==c)return;if(d==null){const _=f?.i;if(f&&_&&!(8&_)&&c!==l){const m=this,p=(u=t.R)==null?void 0:u[a];p?.forEach((w=>{const[[v,x]]=Object.entries(w);m[v]!=null&&(128&_||1&x)&&m[v].call(m,c,l,a)}))}return}const g=i.find((([_])=>_===d)),h=g&&4&g[1][0],S=h&&c===null&&this[d]===void 0;h&&(c=c!==null&&c!=="false");const y=Object.getOwnPropertyDescriptor(n,d);S||c==this[d]||y.get&&!y.set||(this[d]=c)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...i.filter((([a,l])=>31&l[0])).map((([a,l])=>{var c;const u=l[1]||a;return r.set(u,a),512&l[0]&&((c=t._)==null||c.push([a,u])),u}))]))}}return e},St=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Te(e.R),o.H=e.H,o.P=e.P,o._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((i,r)=>{const a={i:0,$hostElement$:i,o:r,l:new Map,U:new Map};a.W=new Promise((c=>a.F=c)),i["s-p"]=[],i["s-rc"]=[];const l=a;i.__stencil__getHostRef=()=>l,512&r.i&&Xe(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!A(this))return;this.__hasHostListenerAttached=!0}(i=>{if(!(1&C.i)){const r=A(i);if(!r)return;const a=r.o;if(1&r.i)r?.D||r?.W&&r.W.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!b.document)return;const c=l["s-cr"]=b.document.createComment("");c["s-cn"]=!0,L(l,c,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ve(r,r.C=l);break}}a.t&&Object.entries(a.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(i,l)){const u=i[l];delete i[l],i[l]=u}})),(async(l,c,u)=>{let d;try{if(!(32&c.i)&&(c.i|=32,d=l.constructor,customElements.whenDefined(l.localName).then((()=>c.i|=128)),d&&d.style)){let h;typeof d.style=="string"&&(h=d.style);const S=Ce(u);W.has(S)||((y,_,m)=>{let p=W.get(y);Q&&m?(p=p||new CSSStyleSheet,typeof p=="string"?p=_:p.replaceSync(_)):p=_,W.set(y,p)})(S,h,!!(1&u.i))}const f=c.C,g=()=>ce(c,!0);f&&f["s-rc"]?f["s-rc"].push(g):g()}catch(f){I(f,l),c.A&&(c.A(),c.A=void 0),c.F&&c.F(l)}})(i,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{1&C.i||A(i),j.has(i)&&j.delete(i),i.shadowRoot&&j.has(i.shadowRoot)&&j.delete(i.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 ot.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),yt(e,o)}catch(s){return I(s),e}};function It(e){return e}function Ge(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=Ge(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function De(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ge(e))&&(s&&(s+=" "),s+=t);return s}const bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>De("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"})),xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>De("gids-field",e)},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),Be=Symbol("pathSet"),ue="gids-asset-paths-set";class wt 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(ue))};haveAssetPathsBeenSet(){return this.#t(Be)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(he,o)}this.#e(Be,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ue,t,{once:!0}),()=>{this.removeEventListener(ue,t)}}}const fe=Symbol.for("GIDS"),Ct=()=>(globalThis[fe]===void 0&&(globalThis[fe]={assetPaths:{}}),globalThis[fe]),Et=e=>{const t=Ct().assetPaths;return t[e]===void 0&&(t[e]=new wt),t[e]};function pe(){return Et("@ganpatiinfo/gids-web-shared")}function Nt(){return pe().haveAssetPathsBeenSet()}function ze(e){return pe().getAssetFilePath(e)}function Tt(e){return pe().onAssetPathsSet(e)}let $t=0;const Lt=(e,t="gids")=>e||`${t}-${$t++}`,We={"icons-other.svg":["accessibility","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","new","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},qe=new Map;for(const e in We)for(const t of We[e])qe.set(t,e);function Ot(e){return qe.get(e)}function Ue(e,t="regular",o){const s=Ot(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:kt}=bt,At=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=Lt(i);let c=r;return c===void 0&&Nt()&&(c=Ue(e,o,ze)),E("svg",{ref:u=>{c===void 0&&Tt((()=>{(function(d,f,g){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",Ue(f,g,ze)),d.appendChild(h)})(u,e,o)}))},width:"16",height:"16",class:kt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&E("title",{id:l},s||e),c!==void 0?E("use",{href:c}):null)},F=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ke=!1;F&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(F):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ge=null;const me=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ye()})):void 0,Ye=()=>{if(F===void 0)return!1;const e=(()=>{if(F===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,i=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){i=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:i,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return me!==void 0&&t!==ge&&(ge&&me.disconnect(),t instanceof Element&&me.observe(t,{childList:!0,characterData:!0,subtree:!0}),ge=t),F.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:i}=o;for(let r=0;r<n;r++)i.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},jt=()=>(Ke||(Ke=Ye()),F),{getGidsFieldClassNames:Mt}=xt,Ze=St(class extends et{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],o=this._findTextControl(t);this._attachControlElement(o)},this._handleControlValueInput=t=>{if(!this._controlTouched){const o=t.target;o instanceof HTMLInputElement&&(o.type==="checkbox"||o.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=jt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,o=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(o,"gids-field__status-text");n!=null&&s.push(n)}return E(Ee,{key:"a8e81000bf235a842ddf98ef3be3ff5a82201b5d"},E("div",{key:"1c940955fd104dd85a5701f553d2ac5a7ddc14c8",class:Mt()},E("div",{key:"62e2a77c0661fc5507fe86d5343f85351895b3e7",class:"gids-field__header",hidden:!this._hasLabelContent()},E("slot",{key:"c94c3346cd083969831905e0d0a7091013d32f3d",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),E("div",{key:"ef4ba969b9ac7be32c9c88260e357661eff68d54",class:"gids-field__count","aria-live":"polite"},this.count)),E("div",{key:"cc2ea221e9c9725193238625f571848879e5c656",class:"gids-field__control"},E("slot",{key:"8530e0748d181e0c3b90e7602545cc67b404ef02",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),E("p",{key:"654ce845b3a9b5bfe3833a8122a05f3158a43fe4",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?E("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(o),t!==void 0?E("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const o=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&o.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),E(At,{appearance:"filled",size:"sm",alt:"",name:t,class:o.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((o=>{o.addEventListener("input",this._handleControlValueInput),o.addEventListener("change",this._handleControlValueInput),o.addEventListener("blur",this._handleControlBlur,!0),o.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const o=t.elements.namedItem(e.name);if(o instanceof RadioNodeList){const s=Array.from(o).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const o=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(o));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const o=t,s=this._asTextControl(o);if(s!==null)return s;const n=o.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function Je(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Ze))}))}Je();const Pt=Ze,Rt=Je;M.GidsField=Pt,M.defineCustomElement=Rt,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const _=[];for(let m=0;m<y.length;m++){const g=y[m]["s-nr"]||void 0;g&&g.isConnected&&_.push(g)}return _})(S.childNodes)).forEach((y=>{f===G(y)&&p.push(y)})),c?p.filter((y=>y.nodeType===1)):p}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(i),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&je(e.S)),i},je=e=>{C.i|=1;const t=e.closest(P.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&($(t,n,o??null),n["s-sh"]=void 0,K=!0)}C.i&=-2},Z=(e,t)=>{C.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"]===P&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==P&&n["s-ol"]&&($(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)}C.i&=-2},Me=(e,t,o,s,n,i)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=i;++n)s[n]&&(r=Y(null,o,n),r&&(s[n].S=r,$(a,r,B(t))))},Pe=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const i=n.S;Ve(n),i&&(q=!0,i["s-ol"]?i["s-ol"].remove():Z(i,!0),i.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,I=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,i=t.m,r=t.O,a=t.h;let l;a==null?(N=r==="svg"||r!=="foreignObject"&&N,r!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),re(e,t,N),n!==null&&i!==null?((d,h,c,u,p=!1)=>{let f,S,y=0,_=0,m=0,g=0,w=h.length-1,v=h[0],b=h[w],T=u.length-1,L=u[0],k=u[T];const Qe=c.O==="template"?d.content:d;for(;y<=w&&_<=T;)if(v==null)v=h[++y];else if(b==null)b=h[--w];else if(L==null)L=u[++_];else if(k==null)k=u[--T];else if(J(v,L,p))I(v,L,p),v=h[++y],L=u[++_];else if(J(b,k,p))I(b,k,p),b=h[--w],k=u[--T];else if(J(v,k,p))v.O!=="slot"&&k.O!=="slot"||Z(v.S.parentNode,!1),I(v,k,p),$(Qe,v.S,b.S.nextSibling),v=h[++y],k=u[--T];else if(J(b,L,p))v.O!=="slot"&&k.O!=="slot"||Z(b.S.parentNode,!1),I(b,L,p),$(Qe,b.S,v.S),b=h[--w],L=u[++_];else{for(m=-1,g=y;g<=w;++g)if(h[g]&&h[g].$!==null&&h[g].$===L.$){m=g;break}m>=0?(S=h[m],S.O!==L.O?f=Y(h&&h[_],c,m):(I(S,L,p),h[m]=void 0,f=S.S),L=u[++_]):(f=Y(h&&h[_],c,_),L=u[++_]),f&&$(B(v.S).parentNode,f,B(v.S))}y>w?Me(d,u[T+1]==null?null:u[T+1].S,c,u,_,T):_>T&&Pe(h,y,w)})(s,n,t,i,o):i!==null?(e.h!==null&&(s.textContent=""),Me(s,null,t,i,0,i.length-1)):!o&&n!==null&&Pe(n,0,n.length-1),N&&r==="svg"&&(N=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],Re=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const i of n){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const r=i["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===i["s-hn"]||t["s-sh"]&&t["s-sh"]===i["s-hn"]))if(we(t,r)){let a=A.find((l=>l.k===t));q=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=i["s-hn"],a.N=i):(t["s-sh"]=i["s-hn"],A.push({N:i,k:t})),t["s-sr"]&&A.map((l=>{we(l.k,t["s-sn"])&&(a=A.find((d=>d.k===t)),a&&!l.N&&(l.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}i.nodeType===1&&Re(i)}},Ve=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Ve)},ht=(e,t)=>{ce.push((()=>e(t)))},$=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(i,r){var a;if(!(r=r||((a=i["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=i["s-sn"]=G(i)||"";return{slotNode:oe(ne(r,"childNodes"),r.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)},ut=(e,t,o=!1)=>{var s,n,i,r,a;const l=e.$hostElement$,d=e.o,h=e.M||U(null,null);var c;const u=(c=t)&&c.O===Ee?t:E(null,null,t);if(P=l.tagName,d.C&&(u.v=u.v||{},d.C.forEach((([p,f])=>{u.v[f]=l[p]}))),o&&u.v)for(const p of Object.keys(u.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(u.v[p]=l[p]);if(u.O=null,u.i|=4,e.M=u,u.S=h.S=l.shadowRoot||l,D=!(!(1&d.i)||128&d.i),ie=l["s-cr"],q=!1,I(h,u,o),C.i|=1,K){Re(u.S);for(const p of A){const f=p.k;if(!f["s-ol"]&&x.document){const S=x.document.createTextNode("");S["s-nr"]=f,$(f.parentNode,f["s-ol"]=S,f,o)}}for(const p of A){const f=p.k,S=p.N;if(f.nodeType===1&&o&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const y=S.parentNode;let _=S.nextSibling;if(_&&_.nodeType===1){let m=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(i=m["s-nr"])!=null?i:null;if(g&&g["s-sn"]===f["s-sn"]&&y===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===f||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){_=g;break}}m=m.previousSibling}}if((!_&&y!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==_)&&f!==_){if($(y,f,_,o),f.nodeType===8&&f.nodeValue.startsWith("s-nt-")){const m=x.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,$(f.parentNode,m,f,o),f.parentNode.removeChild(f)}f.nodeType===1&&f.tagName!=="SLOT-FB"&&(f.hidden=(r=f["s-ih"])!=null&&r)}f&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else f.nodeType===1&&(f.hidden=!0)}}if(q&&xe(u.S),C.i&=-2,A.length=0,!D&&!(1&d.i)&&l["s-cr"]){const p=u.S.__childNodes||u.S.childNodes;for(const f of p)if(f["s-hn"]!==P&&!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 S=x.document.createComment("s-nt-"+f.nodeValue);S["s-sn"]=f["s-sn"],$(f.parentNode,S,f,o),f.parentNode.removeChild(f)}}}ie=void 0,ae.forEach((p=>p())),ae.length=0,ce.forEach((p=>p())),ce.length=0},Ie=(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);Ie(e,e.R);const o=()=>ft(e,t);if(!t)return ot(o);queueMicrotask((()=>{o()}))},ft=(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=Fe(n,(()=>z(s,"componentWillRender",void 0,o))),Fe(n,(()=>gt(e,s,t)))},Fe=(e,t)=>pt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),pt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",gt=async(e,t,o)=>{var s;const n=e.$hostElement$,i=n["s-rc"];o&&(r=>{const a=r.o,l=r.$hostElement$,d=a.i,h=((c,u)=>{var p,f,S;const y=Ce(u),_=W.get(y);if(!x.document)return y;if(c=c.nodeType===11?c:x.document,_)if(typeof _=="string"){let m,g=j.get(c=c.head||c);if(g||j.set(c,g=new Set),!g.has(y)){m=x.document.createElement("style"),m.textContent=_;const w=(p=C._)!=null?p:(function(){var v,b,T;return(T=(b=(v=x.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:b.getAttribute("content"))!=null?T:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&u.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),b=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(m,b?.parentNode===c?b:null)}else if("host"in c)if(Q){const v=new((f=c.defaultView)!=null?f:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(_),X?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=_+v.textContent:c.prepend(m)}else c.append(m);1&u.i&&c.insertBefore(m,null),4&u.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(y)}}else{let m=j.get(c);if(m||j.set(c,m=new Set),!m.has(y)){const g=(S=c.defaultView)!=null?S:c.ownerDocument.defaultView;let w;if(_.constructor===g.CSSStyleSheet)w=_;else{w=new g.CSSStyleSheet;for(let v=0;v<_.cssRules.length;v++)w.insertRule(_.cssRules[v].cssText,v)}X?c.adoptedStyleSheets.push(w):c.adoptedStyleSheets=[...c.adoptedStyleSheets,w],m.add(y)}}return y})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&d&&(l["s-sc"]=h,l.classList.add(h+"-h"))})(e),mt(e,t,n,o),i&&(i.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>_t(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},mt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,ut(e,t,s)}catch(n){V(n,e.$hostElement$)}return null},_t=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((()=>at(x,"appload",{detail:{namespace:"gids-core-web"}})))},z=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){V(n,s)}},yt=e=>e.classList.add("hydrated"),He=(e,t,o,s)=>{const n=O(e);if(!n)return;const i=e,r=n.l.get(t),a=n.i,l=i;o=Le(o,s.t[t][0],!!(64&s.i));const d=Number.isNaN(r)&&Number.isNaN(o);if(o!==r&&!d){if(n.l.set(t,o),s.F){const h=s.F[t];h&&h.map((c=>{try{const[[u,p]]=Object.entries(c);(128&a||1&p)&&(l?l[u](o,r,t):n.T.push((()=>{n.D[u](o,r,t)})))}catch(u){V(u,i)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(o,r,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},St=(e,t,o)=>{var s,n;const i=e.prototype;64&t.i&&1&o&&et.forEach((r=>{const a=i[r];Object.defineProperty(i,r,{value(...l){var d;const h=O(this),c=this;c?typeof a=="function"&&a.call(c,...l):(d=h?.H)==null||d.then((u=>{const p=u[r];typeof p=="function"&&p.call(u,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Te(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,[l]])=>{if(31&l||32&l){const{get:d,set:h}=R(i,a)||{};d&&(t.t[a][0]|=2048),h&&(t.t[a][0]|=4096),Object.defineProperty(i,a,{get(){return d?d.apply(this):(c=a,O(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(i,a,{set(c){const u=O(this);if(u){if(h)return(32&l?this[a]:u.$hostElement$[a])===void 0&&u.l.get(a)&&(c=u.l.get(a)),h.apply(this,[Le(c,l,!!(64&t.i))]),void He(this,a,c=32&l?this[a]:u.$hostElement$[a],t);He(this,a,c,t)}}})}}));{const a=new Map;i.attributeChangedCallback=function(l,d,h){C.jmp((()=>{var c;const u=a.get(l),p=O(this);if(this.hasOwnProperty(u),i.hasOwnProperty(u)&&typeof this[u]=="number"&&this[u]==h)return;if(u==null){const m=p?.i;if(p&&m&&!(8&m)&&h!==d){const g=this,w=(c=t.F)==null?void 0:c[l];w?.forEach((v=>{const[[b,T]]=Object.entries(v);g[b]!=null&&(128&m||1&T)&&g[b].call(g,h,d,l)}))}return}const f=r.find((([m])=>m===u)),S=f&&4&f[1][0],y=S&&h===null&&this[u]===void 0;S&&(h=h!==null&&h!=="false");const _=Object.getOwnPropertyDescriptor(i,u);y||h==this[u]||_.get&&!_.set||(this[u]=h)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...r.filter((([l,d])=>31&d[0])).map((([l,d])=>{var h;const c=d[1]||l;return a.set(c,l),512&d[0]&&((h=t.C)==null||h.push([l,c])),c}))]))}}return e},bt=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.F=Te(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(){((i,r)=>{const a={i:0,$hostElement$:i,o:r,l:new Map,W:new Map};a.H=new Promise((d=>a.L=d)),i["s-p"]=[],i["s-rc"]=[];const l=a;i.__stencil__getHostRef=()=>l,512&r.i&&Xe(i,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!O(this))return;this.__hasHostListenerAttached=!0}(i=>{if(!(1&C.i)){const r=O(i);if(!r)return;const a=r.o;if(1&r.i)r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!x.document)return;const d=l["s-cr"]=x.document.createComment("");d["s-cn"]=!0,$(l,d,l.firstChild)})(i);{let l=i;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ie(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(i,l)){const h=i[l];delete i[l],i[l]=h}})),(async(l,d,h)=>{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 S=Ce(h);W.has(S)||((y,_,m)=>{let g=W.get(y);Q&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=_:g.replaceSync(_)):g=_,W.set(y,g)})(S,f,!!(1&h.i))}const u=d.R,p=()=>de(d,!0);u&&u["s-rc"]?u["s-rc"].push(p):p()}catch(u){V(u,l),d.A&&(d.A(),d.A=void 0),d.L&&d.L(l)}})(i,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async i=>{1&C.i||O(i),j.has(i)&&j.delete(i),i.shadowRoot&&j.has(i.shadowRoot)&&j.delete(i.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}),St(e,o,3)}catch(s){return V(s),e}};function It(e){return e}function Ge(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=Ge(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function De(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ge(e))&&(s&&(s+=" "),s+=t);return s}const xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>De("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"})),wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>De("gids-field",e)},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),Be=Symbol("pathSet"),ue="gids-asset-paths-set";class Ct 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(ue))};haveAssetPathsBeenSet(){return this.#t(Be)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(he,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(he,o)}this.#e(Be,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(he);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ue,t,{once:!0}),()=>{this.removeEventListener(ue,t)}}}const fe=Symbol.for("GIDS"),Et=()=>(globalThis[fe]===void 0&&(globalThis[fe]={assetPaths:{}}),globalThis[fe]),Nt=e=>{const t=Et().assetPaths;return t[e]===void 0&&(t[e]=new Ct),t[e]};function pe(){return Nt("@ganpatiinfo/gids-web-shared")}function Tt(){return pe().haveAssetPathsBeenSet()}function ze(e){return pe().getAssetFilePath(e)}function Lt(e){return pe().onAssetPathsSet(e)}let $t=0;const kt=(e,t="gids")=>e||`${t}-${$t++}`,We={"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"]},Ue=new Map;for(const e in We)for(const t of We[e])Ue.set(t,e);function Ot(e){return Ue.get(e)}function qe(e,t="regular",o){const s=Ot(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:At}=xt,jt=({name:e,size:t,appearance:o,alt:s,class:n,titleId:i,src:r,...a})=>{const l=kt(i);let d=r;return d===void 0&&Tt()&&(d=qe(e,o,ze)),E("svg",{ref:h=>{d===void 0&&Lt((()=>{(function(c,u,p){if(!c)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",qe(u,p,ze)),c.appendChild(f)})(h,e,o)}))},width:"16",height:"16",class:At({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&E("title",{id:l},s||e),d!==void 0?E("use",{href:d}):null)},F=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ke=!1;F&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(F):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ge=null;const me=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Ye()})):void 0,Ye=()=>{if(F===void 0)return!1;const e=(()=>{if(F===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,i=0;for(let r=0;r<s.cssRules.length;r++){const a=s.cssRules.item(r);if(a?.cssText.startsWith("gids-global-styles-start"))n=r;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){i=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:i,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return me!==void 0&&t!==ge&&(ge&&me.disconnect(),t instanceof Element&&me.observe(t,{childList:!0,characterData:!0,subtree:!0}),ge=t),F.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:i}=o;for(let r=0;r<n;r++)i.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Mt=()=>(Ke||(Ke=Ye()),F),{getGidsFieldClassNames:Pt}=wt,Ze=bt(class extends tt{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.status="implicit",this._hasLabel=!1,this._controlListenerTargets=[],this._controlTouched=!1,this._handleLabelSlotChange=()=>{this._hasLabel=(this._labelSlot?.assignedElements()?.length??0)>0},this._setLabelSlot=t=>{this._labelSlot=t??void 0,this._handleLabelSlotChange()},this._setControlSlot=t=>{this._controlSlot=t??void 0,this._handleControlSlotChange()},this._handleControlSlotChange=()=>{const t=this._controlSlot?.assignedNodes({flatten:!0})??[],o=this._findTextControl(t);this._attachControlElement(o)},this._handleControlValueInput=t=>{if(!this._controlTouched){const o=t.target;o instanceof HTMLInputElement&&(o.type==="checkbox"||o.type==="radio")&&(this._controlTouched=!0)}this._updateControlValidationState()},this._handleControlBlur=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleControlInvalid=()=>{this._controlTouched=!0,this._updateControlValidationState()},this._handleFormReset=()=>{this._controlTouched=!1,this._updateControlValidationState()},this._handleFormSubmit=()=>{this._controlTouched=!0,this._updateControlValidationState()}}_handleStatusChange(){this._isImplicitStatus()||this._controlValidationMessage===void 0?this._updateControlValidationState():this._controlValidationMessage=void 0}connectedCallback(){const e=Mt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}componentDidLoad(){setTimeout((()=>{this._handleControlSlotChange(),this._handleLabelSlotChange()}))}async reScanControl(){this._handleControlSlotChange()}disconnectedCallback(){this._detachControlElement(),this._detachFormListeners()}render(){const e=this._hasStatusText(),t=this._controlValidationMessage!==void 0?this._controlValidationMessage:this._shouldRenderExplicitStatusText()?this.statusText:void 0,o=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(o,"gids-field__status-text");n!=null&&s.push(n)}return E(Ee,{key:"98078538f6970b0cf756c7a172e635f3302381b2"},E("div",{key:"6751ea942c38270fce42e025ca17e29a38207028",class:Pt()},E("div",{key:"5c4969bedfd54b42603ff3de69c72bc513aeaeb6",class:"gids-field__header",hidden:!this._hasLabelContent()},E("slot",{key:"9f98f47e3285551c67f7a350d058a55953c88756",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),E("div",{key:"6660ed1c29faf2ca838ba8714dee7feb79257187",class:"gids-field__count","aria-live":"polite"},this.count)),E("div",{key:"ab2bb081db7e8e8caddcc515580e02f32d4c054a",class:"gids-field__control"},E("slot",{key:"5df4538b894f7daedcb03bcab1316c9452e65caf",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),E("p",{key:"d7dce2f4a0b03b056ac8888a918e88b15931c8e5",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?E("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(o),t!==void 0?E("span",null,t):null):null))}_hasLabelContent(){return this._hasLabel}_hasHelperText(){return this._hasText(this.helperText)}_shouldShowHelperText(){return!!this._hasHelperText()&&!this._hasStatusText()}_hasStatusText(){return this._isImplicitStatus()?this._controlValidationMessage!==void 0:this._shouldRenderExplicitStatusText()}_shouldRenderExplicitStatusText(){return!this._isImplicitStatus()&&this.status!=="default"&&this._hasText(this.statusText)}_renderStatusIcon(e){if(!this._hasStatusText())return;const t=this._getStatusIconName(e);if(t===void 0)return;const o=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&o.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),E(jt,{appearance:"filled",size:"sm",alt:"",name:t,class:o.join(" "),style:{"--gidsIcon-color":`var(--gids-color-icon-${n})`}})}_getCurrentStatus(){return this._isImplicitStatus()&&this._controlValidationMessage!=null?"error":this.status??"implicit"}_getStatusIconName(e){if(e!=="implicit")return e==="success"?"positive":e==="error"?"danger":void 0}_isImplicitStatus(){return this.status==="implicit"||this.status===void 0}_hasText(e){return typeof e=="string"&&e.trim().length>0}_getStatusModifierClass(e,t){if(e!=="implicit")return`${t}--${e}`}_attachControlElement(e){if(this._controlElement===e)return this._updateControlValidationState(),void this._attachFormListeners(e?.form??this._el.closest("form"));if(this._detachControlElement(),this._controlElement=e,this._resetControlValidationState(),this._controlListenerTargets=[],e){const t=this._getControlListenerTargets(e);this._controlListenerTargets=t,t.forEach((o=>{o.addEventListener("input",this._handleControlValueInput),o.addEventListener("change",this._handleControlValueInput),o.addEventListener("blur",this._handleControlBlur,!0),o.addEventListener("invalid",this._handleControlInvalid)})),this._attachFormListeners(e.form??this._el.closest("form"))}this._updateControlValidationState()}_detachControlElement(){this._controlListenerTargets.length>0&&(this._controlListenerTargets?.forEach((e=>{e.removeEventListener("input",this._handleControlValueInput),e.removeEventListener("change",this._handleControlValueInput),e.removeEventListener("blur",this._handleControlBlur,!0),e.removeEventListener("invalid",this._handleControlInvalid)})),this._controlListenerTargets=[]),this._controlElement=null,this._resetControlValidationState(),this._detachFormListeners()}_getControlListenerTargets(e){return e instanceof HTMLInputElement&&e.type==="radio"&&e.name!=null?this._getRadioGroupControls(e):[e]}_getRadioGroupControls(e){const t=e.form;if(t&&e.name!=null){const o=t.elements.namedItem(e.name);if(o instanceof RadioNodeList){const s=Array.from(o).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const o=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(o));if(s.length>0)return s}return[e]}_attachFormListeners(e){e!==void 0&&(e!==null?e!==this._formElement&&(this._detachFormListeners(),this._formElement=e,this._formElement.addEventListener("reset",this._handleFormReset),this._formElement.addEventListener("submit",this._handleFormSubmit)):this._detachFormListeners())}_detachFormListeners(){this._formElement&&(this._formElement.removeEventListener("reset",this._handleFormReset),this._formElement.removeEventListener("submit",this._handleFormSubmit),this._formElement=null)}_findTextControl(e){for(const t of e){if(t.nodeType!==Node.ELEMENT_NODE)continue;const o=t,s=this._asTextControl(o);if(s!==null)return s;const n=o.querySelector("input, textarea");if(n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement)return n}return null}_asTextControl(e){return e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement?e:null}_resetControlValidationState(){this._controlTouched=!1,this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}_updateControlValidationState(){if(!this._isImplicitStatus())return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const e=this._controlElement;if(!e||e.disabled)return void(this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0));const t=e.validationMessage?.trim()??"";this._controlTouched&&e.matches(":user-invalid")&&t.length>0?this._controlValidationMessage!==t&&(this._controlValidationMessage=t):this._controlValidationMessage!==void 0&&(this._controlValidationMessage=void 0)}get _el(){return this}static get watchers(){return{status:[{_handleStatusChange:0}]}}static get style(){return".gids-field{display:flex;flex-direction:column;gap:var(--gids-gap-075)}.gids-field__header{display:flex;gap:var(--gids-gap-100);align-items:flex-start}.gids-field__header[hidden]{display:none}.gids-field__count{margin-left:auto;color:var(--gids-color-text-subtle);text-align:right;white-space:nowrap;font-family:var(--gids-typography-label-x-small__font-family);font-size:var(--gids-typography-label-x-small__font-size);font-weight:var(--gids-typography-label-x-small__font-weight);letter-spacing:var(--gids-typography-label-x-small__letter-spacing);line-height:var(--gids-typography-label-x-small__line-height);text-transform:var(--gids-typography-label-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-x-small__font-variant-caps, inherit)}:host([disabled]) .gids-field__count{color:var(--gids-color-text-disabled)}.gids-field__control{display:flex;flex-direction:column;gap:var(--gids-gap-050)}.gids-field__supporting-text,.gids-field__status-text{margin:0;padding-top:var(--gids-padding-vertical-edge-to-element-050);font-family:var(--gids-typography-paragraph-x-small__font-family);font-size:var(--gids-typography-paragraph-x-small__font-size);font-weight:var(--gids-typography-paragraph-x-small__font-weight);letter-spacing:var(--gids-typography-paragraph-x-small__letter-spacing);line-height:var(--gids-typography-paragraph-x-small__line-height);text-transform:var(--gids-typography-paragraph-x-small__text-transform, inherit);font-variant-caps:var(--gids-typography-paragraph-x-small__font-variant-caps, inherit)}.gids-field__supporting-text{color:var(--gids-color-text-subtlest)}.gids-field__status-text{display:flex;align-items:flex-start;gap:var(--gids-gap-050)}.gids-field__status-text .gids-field__status-icon{margin-top:max(0px, -1 * (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-text>span{margin-top:max(0px, (var(--gids-size-160) - var(--gids-typograpy-paragraph-x-small__line-height) * var(--gids-typograpy-paragraph-x-small__font-size)) / 2)}.gids-field__status-icon{flex-shrink:0}.gids-field__status-text--information{color:var(--gids-color-text-information);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--information{--gidsIcon-color:$icon-color}.gids-field__status-text--success{color:var(--gids-color-text-positive);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--success{--gidsIcon-color:$icon-color}.gids-field__status-text--warning{color:var(--gids-color-text-warning);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--warning{--gidsIcon-color:$icon-color}.gids-field__status-text--error{color:var(--gids-color-text-danger);--gids-field-status-icon-color:$icon-color}.gids-field__status-icon--error{--gidsIcon-color:$icon-color}"}},[257,"gids-field",{disabled:[516],count:[513],helperText:[513,"helper-text"],statusText:[513,"status-text"],status:[513],_controlValidationMessage:[32],_hasLabel:[32],reScanControl:[64]},void 0,{status:[{_handleStatusChange:0}]}]);function Je(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,Ze))}))}Je();const Rt=Ze,Vt=Je;M.GidsField=Rt,M.defineCustomElement=Vt,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(T,
|
|
1
|
+
(function(T,L){typeof exports=="object"&&typeof module<"u"?L(exports):typeof define=="function"&&define.amd?define(["exports"],L):(T=typeof globalThis<"u"?globalThis:T||self,L(T.gidsCoreWebGidsIcon={}))})(this,(function(T){"use strict";function L(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 F,Je=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const r=e[s],l=L(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);l&&Object.defineProperty(e,s,{get(){return l.get.call(this)},set(a){l.set.call(this,a)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):r!==void 0&&(e[s]=r)}}))},P=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ve=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),V=new Map,ye="http://www.w3.org/1999/xlink",Qe=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],N=typeof window<"u"?window:{},Xe=N.HTMLElement||class{},O={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},Q=(()=>{try{return!!N.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),X=!!Q&&!!N.document&&Object.getOwnPropertyDescriptor(N.document.adoptedStyleSheets,"length").writable,ee=!1,Se=[],be=[],et=(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){I(o)}e.length=0},te=()=>{we(Se),we(be),(ee=Se.length>0)&&O.raf(te)},se=e=>Promise.resolve(void 0).then(e),tt=et(be);function st(){const e=this.attachShadow({mode:"open"});F===void 0&&(F=null),F&&(X?e.adoptedStyleSheets.push(F):e.adoptedStyleSheets=[...e.adoptedStyleSheets,F])}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=!!ot(s,H(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||H(s)===o)&&(r.push(s),o!==void 0))return r;r=[...r,...oe(s.childNodes,t,o)]}return r}var ot=(e,t,o=!0)=>{const s=[];(o&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)H(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==="",H=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ne(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var re,R,x=new WeakMap,Oe=e=>"sc-"+e.p,ie=e=>(e=typeof e)=="object"||e==="function",M=(e,t,...o)=>{let s=null,n=null,r=null,l=!1,a=!1;const i=[],d=c=>{for(let h=0;h<c.length;h++)s=c[h],Array.isArray(s)?d(s):s!=null&&typeof s!="boolean"&&((l=typeof e!="function"&&!ie(s))&&(s=String(s)),l&&a?i[i.length-1].h+=s:i.push(l?U(null,s):s),a=l)};if(d(o),t){t.key&&(n=t.key),t.name&&(r=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((h=>c[h])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,i,rt);const u=U(e,null);return u.v=t,i.length>0&&(u.m=i),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}),nt={},rt={forEach:(e,t)=>e.map(ke).forEach(t),map:(e,t)=>e.map(ke).map(t).map(it)},ke=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),it=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},Ae=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const r of e[n])if(typeof r=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((r=>typeof r=="string"?{[r]:0}:r));return s},$e=(e,t,o)=>e==null||ie(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,lt=(e,t,o)=>{const s=O.ce(t,o);return e.dispatchEvent(s),s},Ce=(e,t,o,s,n,r)=>{if(o===s)return;let l=ve(e,t),a=t.toLowerCase();if(t==="class"){const i=e.classList,d=Ee(o);let u=Ee(s);i.remove(...d.filter((c=>c&&!u.includes(c)))),i.add(...u.filter((c=>c&&!d.includes(c))))}else if(t==="style"){for(const i in o)s&&s[i]!=null||(i.includes("-")?e.style.removeProperty(i):e.style[i]="");for(const i in s)o&&s[i]===o[i]||(i.includes("-")?e.style.setProperty(i,s[i]):e.style[i]=s[i])}else if(t!=="key"){if(t==="ref")s&&dt(s,e);else if(e.__lookupSetter__(t)||t[0]!=="o"||t[1]!=="n"){if(t[0]==="a"&&t.startsWith("attr:")){const i=t.slice(5);let d;{const u=P(e);if(u&&u.o&&u.o.t){const c=u.o.t[i];c&&c[1]&&(d=c[1])}}return d||(d=i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(d)!==""||e.removeAttribute(d):e.setAttribute(d,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const i=t.slice(5);try{e[i]=s}catch{}return}{const i=ie(s);if((l||i&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?l=!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)):(!l||4&r||n)&&!i&&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(N,a)?a.slice(2):a[2]+t.slice(3),o||s){const i=t.endsWith(Pe);t=t.replace(ct,""),o&&O.rel(e,t,o,i),s&&O.ael(e,t,s,i)}}},at=/\s/,Ee=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(at):[]),Pe="Capture",ct=new RegExp(Pe+"$"),le=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},r=t.v||{};for(const l of je(Object.keys(n)))l in r||Ce(s,l,n[l],void 0,o,t.i);for(const l of je(Object.keys(r)))Ce(s,l,n[l],r[l],o,t.i)};function je(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var B=!1,q=!1,K=!1,k=!1,ae=[],ce=[],Y=(e,t,o)=>{var s;const n=t.m[o];let r,l,a,i=0;if(B||(K=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)r=n.S=N.document.createTextNode(n.h);else if(1&n.i)r=n.S=N.document.createTextNode(""),le(null,n,k);else{if(k||(k=n.O==="svg"),!N.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=N.document.createElementNS(k?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!B&&2&n.i?"slot-fb":n.O),k&&n.O==="foreignObject"&&(k=!1),le(null,n,k),n.m){const d=n.O==="template"?r.content:r;for(i=0;i<n.m.length;++i)l=Y(e,n,i),l&&d.appendChild(l)}n.O==="svg"?k=!1:r.tagName==="foreignObject"&&(k=!0)}return r["s-hn"]=R,3&n.i&&(r["s-sr"]=!0,r["s-cr"]=re,r["s-sn"]=n.j||"",r["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(d){if(d.assignedElements||d.assignedNodes||!d["s-sr"])return;const 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 y=[];for(let g=0;g<S.length;g++){const p=S[g]["s-nr"]||void 0;p&&p.isConnected&&y.push(p)}return y})(b.childNodes)).forEach((S=>{u===W(S)&&m.push(S)})),c?m.filter((S=>S.nodeType===1)):m}).bind(d);d.assignedElements=h(!0),d.assignedNodes=h(!1)})(r),a=e&&e.m&&e.m[o],a&&a.O===n.O&&e.S&&Pe(e.S)),r},Pe=e=>{O.i|=1;const t=e.closest(R.toLowerCase());if(t!=null){const o=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of o?s.reverse():s)n["s-sh"]!=null&&(E(t,n,o??null),n["s-sh"]=void 0,K=!0)}O.i&=-2},Z=(e,t)=>{O.i|=1;const o=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===R&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==R&&n["s-ol"]&&(E(z(n).parentNode,n,z(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,K=!0),t&&Z(n,t)}O.i&=-2},Te=(e,t,o,s,n,r)=>{let l,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===R&&(a=a.shadowRoot),o.O==="template"&&(a=a.content);n<=r;++n)s[n]&&(l=Y(null,o,n),l&&(s[n].S=l,E(a,l,z(t))))},Re=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const r=n.S;Le(n),r&&(U=!0,r["s-ol"]?r["s-ol"].remove():Z(r,!0),r.remove())}}},J=(e,t,o=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:o?(o&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),z=e=>e&&e["s-ol"]||e,D=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,r=t.m,l=t.O,a=t.h;let i;a==null?($=l==="svg"||l!=="foreignObject"&&$,l!=="slot"||B||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Pe(t.S.parentElement)),le(e,t,$),n!==null&&r!==null?((d,h,c,f,m=!1)=>{let u,b,S=0,y=0,g=0,p=0,_=h.length-1,v=h[0],N=h[_],k=f.length-1,A=f[0],C=f[k];const Ze=c.O==="template"?d.content:d;for(;S<=_&&y<=k;)if(v==null)v=h[++S];else if(N==null)N=h[--_];else if(A==null)A=f[++y];else if(C==null)C=f[--k];else if(J(v,A,m))D(v,A,m),v=h[++S],A=f[++y];else if(J(N,C,m))D(N,C,m),N=h[--_],C=f[--k];else if(J(v,C,m))v.O!=="slot"&&C.O!=="slot"||Z(v.S.parentNode,!1),D(v,C,m),E(Ze,v.S,N.S.nextSibling),v=h[++S],C=f[--k];else if(J(N,A,m))v.O!=="slot"&&C.O!=="slot"||Z(N.S.parentNode,!1),D(N,A,m),E(Ze,N.S,v.S),N=h[--_],A=f[++y];else{for(g=-1,p=S;p<=_;++p)if(h[p]&&h[p].$!==null&&h[p].$===A.$){g=p;break}g>=0?(b=h[g],b.O!==A.O?u=Y(h&&h[y],c,g):(D(b,A,m),h[g]=void 0,u=b.S),A=f[++y]):(u=Y(h&&h[y],c,y),A=f[++y]),u&&E(z(v.S).parentNode,u,z(v.S))}S>_?Te(d,f[k+1]==null?null:f[k+1].S,c,f,y,k):y>k&&Re(h,S,_)})(s,n,t,r,o):r!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,r,0,r.length-1)):!o&&n!==null&&Re(n,0,n.length-1),$&&l==="svg"&&($=!1)):(i=s["s-cr"])?i.parentNode.textContent=a:e.h!==a&&(s.data=a)},j=[],Ie=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const r of n){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const l=r["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(_e(t,l)){let a=j.find((i=>i.k===t));U=!0,t["s-sn"]=t["s-sn"]||l,a?(a.k["s-sh"]=r["s-hn"],a.N=r):(t["s-sh"]=r["s-hn"],j.push({N:r,k:t})),t["s-sr"]&&j.map((i=>{_e(i.k,t["s-sn"])&&(a=j.find((d=>d.k===t)),a&&!i.N&&(i.N=a.N))}))}else j.some((a=>a.k===t))||j.push({k:t})}r.nodeType===1&&Ie(r)}},Le=e=>{e.v&&e.v.ref&&ae.push((()=>e.v.ref(null))),e.m&&e.m.map(Le)},ct=(e,t)=>{ce.push((()=>e(t)))},E=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(r,l){var a;if(!(l=l||((a=r["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const i=r["s-sn"]=W(r)||"";return{slotNode:oe(ne(l,"childNodes"),l.tagName,i)[0],slotName:i}})(t);return n&&!s&&n.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,o):e?.insertBefore(t,o)},dt=(e,t,o=!1)=>{var s,n,r,l,a;const i=e.$hostElement$,d=e.o,h=e.M||q(null,null);var c;const f=(c=t)&&c.O===ot?t:M(null,null,t);if(R=i.tagName,d._&&(f.v=f.v||{},d._.forEach((([m,u])=>{f.v[u]=i[m]}))),o&&f.v)for(const m of Object.keys(f.v))i.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(f.v[m]=i[m]);if(f.O=null,f.i|=4,e.M=f,f.S=h.S=i.shadowRoot||i,B=!(!(1&d.i)||128&d.i),re=i["s-cr"],U=!1,D(h,f,o),O.i|=1,K){Ie(f.S);for(const m of j){const u=m.k;if(!u["s-ol"]&&w.document){const b=w.document.createTextNode("");b["s-nr"]=u,E(u.parentNode,u["s-ol"]=b,u,o)}}for(const m of j){const u=m.k,b=m.N;if(u.nodeType===1&&o&&(u["s-ih"]=(s=u.hidden)!=null&&s),b){const S=b.parentNode;let y=b.nextSibling;if(y&&y.nodeType===1){let g=(n=u["s-ol"])==null?void 0:n.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===u["s-sn"]&&S===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===u||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){y=p;break}}g=g.previousSibling}}if((!y&&S!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==y)&&u!==y){if(E(S,u,y,o),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=u["s-hn"],g["s-sn"]=u["s-sn"],g["s-sh"]=u["s-sh"],g["s-sr"]=u["s-sr"],g["s-ol"]=u["s-ol"],g["s-ol"]["s-nr"]=g,E(u.parentNode,g,u,o),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(l=u["s-ih"])!=null&&l)}u&&typeof b["s-rf"]=="function"&&b["s-rf"](b)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&Ne(f.S),O.i&=-2,j.length=0,!B&&!(1&d.i)&&i["s-cr"]){const m=f.S.__childNodes||f.S.childNodes;for(const u of m)if(u["s-hn"]!==R&&!u["s-sh"]){if(o&&u["s-ih"]==null&&(u["s-ih"]=(a=u.hidden)!=null&&a),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const b=w.document.createComment("s-nt-"+u.nodeValue);b["s-sn"]=u["s-sn"],E(u.parentNode,b,u,o),u.parentNode.removeChild(u)}}}re=void 0,ae.forEach((m=>m())),ae.length=0,ce.forEach((m=>m())),ce.length=0},Me=(e,t)=>{if(t&&!e.A&&t["s-p"]){const o=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(o-1,1),s()})))}},de=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.C);const o=()=>ut(e,t);if(!t)return et(o);queueMicrotask((()=>{o()}))},ut=(e,t)=>{const o=e.$hostElement$,s=o;if(!s)throw new Error(`Can't render component <${o.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let n;return n=F(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=De(n,(()=>F(s,"componentWillRender",void 0,o))),De(n,(()=>ft(e,s,t)))},De=(e,t)=>ht(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),ht=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",ft=async(e,t,o)=>{var s;const n=e.$hostElement$,r=n["s-rc"];o&&(l=>{const a=l.o,i=l.$hostElement$,d=a.i,h=((c,f)=>{var m,u,b;const S=Oe(f),y=V.get(S);if(!w.document)return S;if(c=c.nodeType===11?c:w.document,y)if(typeof y=="string"){let g,p=P.get(c=c.head||c);if(p||P.set(c,p=new Set),!p.has(S)){g=w.document.createElement("style"),g.textContent=y;const _=(m=O.L)!=null?m:(function(){var v,N,k;return(k=(N=(v=w.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?k:void 0})();if(_!=null&&g.setAttribute("nonce",_),!(1&f.i))if(c.nodeName==="HEAD"){const v=c.querySelectorAll("link[rel=preconnect]"),N=v.length>0?v[v.length-1].nextSibling:c.querySelector("style");c.insertBefore(g,N?.parentNode===c?N:null)}else if("host"in c)if(Q){const v=new((u=c.defaultView)!=null?u:c.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(y),X?c.adoptedStyleSheets.unshift(v):c.adoptedStyleSheets=[v,...c.adoptedStyleSheets]}else{const v=c.querySelector("style");v?v.textContent=y+v.textContent:c.prepend(g)}else c.append(g);1&f.i&&c.insertBefore(g,null),4&f.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(S)}}else{let g=P.get(c);if(g||P.set(c,g=new Set),!g.has(S)){const p=(b=c.defaultView)!=null?b:c.ownerDocument.defaultView;let _;if(y.constructor===p.CSSStyleSheet)_=y;else{_=new p.CSSStyleSheet;for(let v=0;v<y.cssRules.length;v++)_.insertRule(y.cssRules[v].cssText,v)}X?c.adoptedStyleSheets.push(_):c.adoptedStyleSheets=[...c.adoptedStyleSheets,_],g.add(S)}}return S})(i.shadowRoot?i.shadowRoot:i.getRootNode(),a);10&d&&(i["s-sc"]=h,i.classList.add(h+"-h"))})(e),pt(e,t,n,o),r&&(r.map((l=>l())),n["s-rc"]=void 0);{const l=(s=n["s-p"])!=null?s:[],a=()=>mt(e);l.length===0?a():(Promise.all(l).then(a).catch(a),e.i|=4,l.length=0)}},pt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,dt(e,t,s)}catch(n){L(n,e.$hostElement$)}return null},mt=e=>{const t=e.$hostElement$,o=t,s=e.C;F(o,"componentDidRender",void 0,t),64&e.i?F(o,"componentDidUpdate",void 0,t):(e.i|=64,yt(t),F(o,"componentDidLoad",void 0,t),e.F(t),s||gt()),e.A&&(e.A(),e.A=void 0),512&e.i&&se((()=>de(e,!1))),e.i&=-517},gt=()=>{se((()=>it(w,"appload",{detail:{namespace:"gids-core-web"}})))},F=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){L(n,s)}},yt=e=>e.classList.add("hydrated"),Ge=(e,t,o,s)=>{const n=x(e);if(!n)return;const r=e,l=n.l.get(t),a=n.i,i=r;o=ke(o,s.t[t][0]);const d=Number.isNaN(l)&&Number.isNaN(o);if(o!==l&&!d){if(n.l.set(t,o),s.R){const h=s.R[t];h&&h.map((c=>{try{const[[f,m]]=Object.entries(c);(128&a||1&m)&&(i?i[f](o,l,t):n.T.push((()=>{n.D[f](o,l,t)})))}catch(f){L(f,r)}}))}if(2&a){if(i.componentShouldUpdate&&i.componentShouldUpdate(o,l,t)===!1&&!(16&a))return;16&a||de(n,!1)}}},vt=(e,t)=>{var o,s;const n=e.prototype;{e.watchers&&!t.R&&(t.R=Ae(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const r=Object.entries((o=t.t)!=null?o:{});r.map((([l,[a]])=>{if(31&a||32&a){const{get:i,set:d}=I(n,l)||{};i&&(t.t[l][0]|=2048),d&&(t.t[l][0]|=4096),Object.defineProperty(n,l,{get(){return i?i.apply(this):(h=l,x(this).l.get(h));var h},configurable:!0,enumerable:!0}),Object.defineProperty(n,l,{set(h){const c=x(this);if(c){if(d)return(32&a?this[l]:c.$hostElement$[l])===void 0&&c.l.get(l)&&(h=c.l.get(l)),d.apply(this,[ke(h,a)]),void Ge(this,l,h=32&a?this[l]:c.$hostElement$[l],t);Ge(this,l,h,t)}}})}}));{const l=new Map;n.attributeChangedCallback=function(a,i,d){O.jmp((()=>{var h;const c=l.get(a),f=x(this);if(this.hasOwnProperty(c),n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==d)return;if(c==null){const y=f?.i;if(f&&y&&!(8&y)&&d!==i){const g=this,p=(h=t.R)==null?void 0:h[a];p?.forEach((_=>{const[[v,N]]=Object.entries(_);g[v]!=null&&(128&y||1&N)&&g[v].call(g,d,i,a)}))}return}const m=r.find((([y])=>y===c)),u=m&&4&m[1][0],b=u&&d===null&&this[c]===void 0;u&&(d=d!==null&&d!=="false");const S=Object.getOwnPropertyDescriptor(n,c);b||d==this[c]||S.get&&!S.set||(this[c]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...r.filter((([a,i])=>31&i[0])).map((([a,i])=>{var d;const h=i[1]||a;return l.set(h,a),512&i[0]&&((d=t._)==null||d.push([a,h])),h}))]))}}return e},St=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.R=Ae(e.R),o.H=e.H,o.P=e.P,o._=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,l)=>{const a={i:0,$hostElement$:r,o:l,l:new Map,U:new Map};a.W=new Promise((d=>a.F=d)),r["s-p"]=[],r["s-rc"]=[];const i=a;r.__stencil__getHostRef=()=>i,512&l.i&&Je(r,a)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!x(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&O.i)){const l=x(r);if(!l)return;const a=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&a.i&&(i=>{if(!w.document)return;const d=i["s-cr"]=w.document.createComment("");d["s-cn"]=!0,E(i,d,i.firstChild)})(r);{let i=r;for(;i=i.parentNode||i.host;)if(i["s-p"]){Me(l,l.C=i);break}}a.t&&Object.entries(a.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,i)){const h=r[i];delete r[i],r[i]=h}})),(async(i,d,h)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=i.constructor,customElements.whenDefined(i.localName).then((()=>d.i|=128)),c&&c.style)){let u;typeof c.style=="string"&&(u=c.style);const b=Oe(h);V.has(b)||((S,y,g)=>{let p=V.get(S);Q&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=y:p.replaceSync(y)):p=y,V.set(S,p)})(b,u,!!(1&h.i))}const f=d.C,m=()=>de(d,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()}catch(f){L(f,i),d.A&&(d.A(),d.A=void 0),d.F&&d.F(i)}})(r,l,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&O.i||x(r),P.has(r)&&P.delete(r),r.shadowRoot&&P.has(r.shadowRoot)&&P.delete(r.shadowRoot)})(this),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${o.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else tt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),vt(e,o)}catch(s){return L(s),e}};function It(e){return e}const G=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let He=!1;G&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(G):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let ue=null;const he=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{We()})):void 0,We=()=>{if(G===void 0)return!1;const e=(()=>{if(G===void 0)return;const t=[];for(let o=0;o<document.styleSheets.length;o++){const s=document.styleSheets.item(o);if(s)try{let n=-1,r=0;for(let l=0;l<s.cssRules.length;l++){const a=s.cssRules.item(l);if(a?.cssText.startsWith("gids-global-styles-start"))n=l;else if(n>-1){if(a?.cssText.startsWith("gids-global-styles-end")){r=l-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:r,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return he!==void 0&&t!==ue&&(ue&&he.disconnect(),t instanceof Element&&he.observe(t,{childList:!0,characterData:!0,subtree:!0}),ue=t),G.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:r}=o;for(let l=0;l<n;l++)r.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},bt=()=>(He||(He=We()),G),Be={"icons-other.svg":["accessibility","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","new","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},ze=new Map;for(const e in Be)for(const t of Be[e])ze.set(t,e);function wt(e){return ze.get(e)}function Fe(e,t="regular",o){const s=wt(e);let n=s??"";return o&&s&&(n=o(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}function Ve(e){var t,o,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(t=0;t<n;t++)e[t]&&(o=Ve(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function Nt(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const _t=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Nt("gids-icon",{"gids-icon--xs":e==="xs","gids-icon--sm":e==="sm","gids-icon--md":e==="md","gids-icon--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),qe=Symbol("pathSet"),pe="gids-asset-paths-set";class Ot extends EventTarget{#s=new Map;constructor(){super()}#e(t,o){this.#s.set(t,o)}#t(t){return this.#s.get(t)??null}#o=()=>{this.dispatchEvent(new Event(pe))};haveAssetPathsBeenSet(){return this.#t(qe)!==null}setAssetPaths(t,o){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);o&&this.#e(fe,o)}this.#e(qe,"true"),setTimeout(this.#o,0)}}getAssetFilePath(t){const o=this.#t(t);if(o===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return o}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(pe,t,{once:!0}),()=>{this.removeEventListener(pe,t)}}}const me=Symbol.for("GIDS"),$t=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),At=e=>{const t=$t().assetPaths;return t[e]===void 0&&(t[e]=new Ot),t[e]};function ge(){return At("@ganpatiinfo/gids-web-shared")}function kt(){return ge().haveAssetPathsBeenSet()}function Ue(e){return ge().getAssetFilePath(e)}function Et(e){return ge().onAssetPathsSet(e)}let Ct=0;const jt=(e,t="gids")=>e||`${t}-${Ct++}`,{getGidsIconClassNames:xt}=_t,Pt=({name:e,size:t,appearance:o,alt:s,class:n,titleId:r,src:l,...a})=>{const i=jt(r);let d=l;return d===void 0&&kt()&&(d=Fe(e,o,Ue)),M("svg",{ref:h=>{d===void 0&&Et((()=>{(function(c,f,m){if(!c)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Fe(f,m,Ue)),c.appendChild(u)})(h,e,o)}))},width:"16",height:"16",class:xt({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:i,...a},s!==""&&M("title",{id:i},s||e),d!==void 0?M("use",{href:d}):null)},Ke=St(class extends Qe{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow()}connectedCallback(){const e=bt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}render(){return M(Pt,{key:"55114b6e5f7f440dcb4a892c0a25b234509b884e",name:this.name,size:this.size,appearance:this.appearance,alt:this.alt,titleId:this.titleId})}get _el(){return this}static get style(){return".gids-icon{fill:var(--gidsIcon-color, var(--gids-color-icon-default));width:auto;height:var(--gidsIcon-height, 100%);flex-shrink:0}.gids-icon--xs{--gidsIcon-height:var(--gids-size-120)}.gids-icon--sm{--gidsIcon-height:var(--gids-size-160)}.gids-icon--md{--gidsIcon-height:var(--gids-size-240)}.gids-icon--lg{--gidsIcon-height:var(--gids-size-320)}"}},[1,"gids-icon",{name:[1],size:[1],appearance:[1],alt:[1],titleId:[1,"title-id"]}]);function Ye(){typeof customElements<"u"&&["gids-icon"].forEach((e=>{e==="gids-icon"&&(customElements.get(e)||customElements.define(e,Ke))}))}Ye();const Tt=Ke,Rt=Ye;T.GidsIcon=Tt,T.defineCustomElement=Rt,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
|
|
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"})}));
|
|
@@ -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 B,tt=(e,t)=>{var n;Object.entries((n=t.o.t)!=null?n:{}).map((([s,[o]])=>{if(31&o||32&o){const i=e[s],a=R(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);a&&Object.defineProperty(e,s,{get(){return a.get.call(this)},set(r){a.set.call(this,r)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):i!==void 0&&(e[s]=i)}}))},x=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ve=(e,t)=>t in e,M=(e,t)=>(0,console.error)(e,t),W=new Map,ye="http://www.w3.org/1999/xlink",st=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],_=typeof window<"u"?window:{},nt=_.HTMLElement||class{},A={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)},Q=(()=>{try{return!!_.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),ee=!!Q&&!!_.document&&Object.getOwnPropertyDescriptor(_.document.adoptedStyleSheets,"length").writable,te=!1,be=[],Se=[],ot=(e,t)=>n=>{e.push(n),te||(te=!0,4&A.i?ne(se):A.raf(se))},we=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){M(n)}e.length=0},se=()=>{we(be),we(Se),(te=be.length>0)&&A.raf(se)},ne=e=>Promise.resolve(void 0).then(e),it=ot(Se);function lt(){const e=this.attachShadow({mode:"open"});B===void 0&&(B=null),B&&(ee?e.adoptedStyleSheets.push(B):e.adoptedStyleSheets=[...e.adoptedStyleSheets,B])}var _e=e=>{const t=ie(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 n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&ie(s,"childNodes").length&&_e(s)}};function oe(e,t,n){let s,o=0,i=[];for(;o<e.length;o++){if(s=e[o],s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||F(s)===n)&&(i.push(s),n!==void 0))return i;i=[...i,...oe(s.childNodes,t,n)]}return i}var rt=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let o=e;for(;o=o.nextSibling;)F(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==="",F=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ie(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var le,I,T=new WeakMap,ke=e=>"sc-"+e.p,re=e=>(e=typeof e)=="object"||e==="function",k=(e,t,...n)=>{let s=null,o=null,i=null,a=!1,r=!1;const l=[],u=c=>{for(let f=0;f<c.length;f++)s=c[f],Array.isArray(s)?u(s):s!=null&&typeof s!="boolean"&&((a=typeof e!="function"&&!re(s))&&(s=String(s)),a&&r?l[l.length-1].h+=s:l.push(a?U(null,s):s),r=a)};if(u(n),t){t.key&&(o=t.key),t.name&&(i=t.name);{const c=t.className||t.class;c&&(t.class=typeof c!="object"?c:Object.keys(c).filter((f=>c[f])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,ct);const d=U(e,null);return d.v=t,l.length>0&&(d.m=l),d.$=o,d.j=i,d},U=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),at={},ct={forEach:(e,t)=>e.map(Ae).forEach(t),map:(e,t)=>e.map(Ae).map(t).map(ut)},Ae=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),ut=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),k(e.vtag,n,...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},Ee=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let n=!1;for(const o of t){if(n)break;for(const i of e[o])if(typeof i=="string"){n=!0;break}}if(!n)return e;const s={};for(const o of t)s[o]=e[o].map((i=>typeof i=="string"?{[i]:0}:i));return s},Oe=(e,t,n)=>e==null||re(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,dt=(e,t,n)=>{const s=A.ce(t,n);return e.dispatchEvent(s),s},$e=(e,t,n,s,o,i)=>{if(n===s)return;let a=ve(e,t),r=t.toLowerCase();if(t==="class"){const l=e.classList,u=Ce(n);let d=Ce(s);l.remove(...u.filter((c=>c&&!d.includes(c)))),l.add(...d.filter((c=>c&&!u.includes(c))))}else if(t==="style"){for(const l in n)s&&s[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)n&&s[l]===n[l]||(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else if(t!=="key"){if(t==="ref")s&&pt(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 u;{const d=x(e);if(d&&d.o&&d.o.t){const c=d.o.t[l];c&&c[1]&&(u=c[1])}}return u||(u=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(u)!==""||e.removeAttribute(u):e.setAttribute(u,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=s}catch{}return}{const l=re(s);if((a||l&&s!==null)&&!o)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const d=s??"";t==="list"?a=!1:n!=null&&e[t]===d||(typeof e.__lookupSetter__(t)=="function"?e[t]=d:e.setAttribute(t,d))}}catch{}let u=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,u=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(u?e.removeAttributeNS(ye,t):e.removeAttribute(t)):(!a||4&i||o)&&!l&&e.nodeType===1&&(s=s===!0?"":s,u?e.setAttributeNS(ye,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):ve(_,r)?r.slice(2):r[2]+t.slice(3),n||s){const l=t.endsWith(Pe);t=t.replace(ht,""),n&&A.rel(e,t,n,l),s&&A.ael(e,t,s,l)}}},ft=/\s/,Ce=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ft):[]),Pe="Capture",ht=new RegExp(Pe+"$"),ae=(e,t,n)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,o=e&&e.v||{},i=t.v||{};for(const a of xe(Object.keys(o)))a in i||$e(s,a,o[a],void 0,n,t.i);for(const a of xe(Object.keys(i)))$e(s,a,o[a],i[a],n,t.i)};function xe(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var V=!1,q=!1,z=!1,E=!1,ce=[],ue=[],K=(e,t,n)=>{var s;const o=t.m[n];let i,a,r,l=0;if(V||(z=!0,o.O==="slot"&&(o.i|=o.m?2:1)),o.h!=null)i=o.S=_.document.createTextNode(o.h);else if(1&o.i)i=o.S=_.document.createTextNode(""),ae(null,o,E);else{if(E||(E=o.O==="svg"),!_.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(i=o.S=_.document.createElementNS(E?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!V&&2&o.i?"slot-fb":o.O),E&&o.O==="foreignObject"&&(E=!1),ae(null,o,E),o.m){const u=o.O==="template"?i.content:i;for(l=0;l<o.m.length;++l)a=K(e,o,l),a&&u.appendChild(a)}o.O==="svg"?E=!1:i.tagName==="foreignObject"&&(E=!0)}return i["s-hn"]=I,3&o.i&&(i["s-sr"]=!0,i["s-cr"]=le,i["s-sn"]=o.j||"",i["s-rf"]=(s=o.v)==null?void 0:s.ref,(function(u){if(u.assignedElements||u.assignedNodes||!u["s-sr"])return;const d=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 p=b[g]["s-nr"]||void 0;p&&p.isConnected&&v.push(p)}return v})(S.childNodes)).forEach((b=>{u===V(b)&&m.push(b)})),a?m.filter((b=>b.nodeType===1)):m}).bind(d);d.assignedElements=f(!0),d.assignedNodes=f(!1)})(r),c=e&&e.m&&e.m[n],c&&c.O===o.O&&e.S&&je(e.S)),r},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&&(x(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"]&&(x(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,r)=>{let l,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===I&&(c=c.shadowRoot),n.O==="template"&&(c=c.content);o<=r;++o)s[o]&&(l=K(null,n,o),l&&(s[o].S=l,x(c,l,G(t))))},Le=(e,t,n)=>{for(let s=t;s<=n;++s){const o=e[s];if(o){const r=o.S;Re(o),r&&(U=!0,r["s-ol"]?r["s-ol"].remove():Y(r,!0),r.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,B=(e,t,n=!1)=>{const s=t.S=e.S,o=e.m,r=t.m,l=t.O,c=t.h;let i;c==null?(E=l==="svg"||l!=="foreignObject"&&E,l!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",je(t.S.parentElement)),ae(e,t,E),o!==null&&r!==null?((d,f,a,h,m=!1)=>{let u,S,b=0,v=0,g=0,p=0,k=f.length-1,y=f[0],_=f[k],$=h.length-1,O=h[0],P=h[$];const et=a.O==="template"?d.content:d;for(;b<=k&&v<=$;)if(y==null)y=f[++b];else if(_==null)_=f[--k];else if(O==null)O=h[++v];else if(P==null)P=h[--$];else if(J(y,O,m))B(y,O,m),y=f[++b],O=h[++v];else if(J(_,P,m))B(_,P,m),_=f[--k],P=h[--$];else if(J(y,P,m))y.O!=="slot"&&P.O!=="slot"||Y(y.S.parentNode,!1),B(y,P,m),x(et,y.S,_.S.nextSibling),y=f[++b],P=h[--$];else if(J(_,O,m))y.O!=="slot"&&P.O!=="slot"||Y(_.S.parentNode,!1),B(_,O,m),x(et,_.S,y.S),_=f[--k],O=h[++v];else{for(g=-1,p=b;p<=k;++p)if(f[p]&&f[p].$!==null&&f[p].$===O.$){g=p;break}g>=0?(S=f[g],S.O!==O.O?u=K(f&&f[v],a,g):(B(S,O,m),f[g]=void 0,u=S.S),O=h[++v]):(u=K(f&&f[v],a,v),O=h[++v]),u&&x(G(y.S).parentNode,u,G(y.S))}b>k?Te(d,h[$+1]==null?null:h[$+1].S,a,h,v,$):v>$&&Le(f,b,k)})(s,o,t,r,n):r!==null?(e.h!==null&&(s.textContent=""),Te(s,null,t,r,0,r.length-1)):!n&&o!==null&&Le(o,0,o.length-1),E&&l==="svg"&&(E=!1)):(i=s["s-cr"])?i.parentNode.textContent=c:e.h!==c&&(s.data=c)},C=[],Ie=e=>{let t,n,s;const o=e.__childNodes||e.childNodes;for(const r of o){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const l=r["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===r["s-hn"]||t["s-sh"]&&t["s-sh"]===r["s-hn"]))if(Ne(t,l)){let c=C.find((i=>i.k===t));U=!0,t["s-sn"]=t["s-sn"]||l,c?(c.k["s-sh"]=r["s-hn"],c.N=r):(t["s-sh"]=r["s-hn"],C.push({N:r,k:t})),t["s-sr"]&&C.map((i=>{Ne(i.k,t["s-sn"])&&(c=C.find((d=>d.k===t)),c&&!i.N&&(i.N=c.N))}))}else C.some((c=>c.k===t))||C.push({k:t})}r.nodeType===1&&Ie(r)}},Re=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Re)},ht=(e,t)=>{de.push((()=>e(t)))},x=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:o}=(function(r,l){var c;if(!(l=l||((c=r["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const i=r["s-sn"]=V(r)||"";return{slotNode:oe(re(l,"childNodes"),l.tagName,i)[0],slotName:i}})(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)},pt=(e,t,n=!1)=>{var s,o,r,l,c;const i=e.$hostElement$,d=e.o,f=e.M||q(null,null);var a;const h=(a=t)&&a.O===lt?t:N(null,null,t);if(I=i.tagName,d._&&(h.v=h.v||{},d._.forEach((([m,u])=>{h.v[u]=i[m]}))),n&&h.v)for(const m of Object.keys(h.v))i.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(h.v[m]=i[m]);if(h.O=null,h.i|=4,e.M=h,h.S=f.S=i.shadowRoot||i,F=!(!(1&d.i)||128&d.i),ie=i["s-cr"],U=!1,B(f,h,n),A.i|=1,z){Ie(h.S);for(const m of C){const u=m.k;if(!u["s-ol"]&&w.document){const S=w.document.createTextNode("");S["s-nr"]=u,x(u.parentNode,u["s-ol"]=S,u,n)}}for(const m of C){const u=m.k,S=m.N;if(u.nodeType===1&&n&&(u["s-ih"]=(s=u.hidden)!=null&&s),S){const b=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let g=(o=u["s-ol"])==null?void 0:o.previousSibling;for(;g;){let p=(r=g["s-nr"])!=null?r:null;if(p&&p["s-sn"]===u["s-sn"]&&b===(p.__parentNode||p.parentNode)){for(p=p.nextSibling;p===u||p?.["s-sr"];)p=p?.nextSibling;if(!p||!p["s-nr"]){v=p;break}}g=g.previousSibling}}if((!v&&b!==(u.__parentNode||u.parentNode)||(u.__nextSibling||u.nextSibling)!==v)&&u!==v){if(x(b,u,v,n),u.nodeType===8&&u.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(u.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=u["s-hn"],g["s-sn"]=u["s-sn"],g["s-sh"]=u["s-sh"],g["s-sr"]=u["s-sr"],g["s-ol"]=u["s-ol"],g["s-ol"]["s-nr"]=g,x(u.parentNode,g,u,n),u.parentNode.removeChild(u)}u.nodeType===1&&u.tagName!=="SLOT-FB"&&(u.hidden=(l=u["s-ih"])!=null&&l)}u&&typeof S["s-rf"]=="function"&&S["s-rf"](S)}else u.nodeType===1&&(u.hidden=!0)}}if(U&&_e(h.S),A.i&=-2,C.length=0,!F&&!(1&d.i)&&i["s-cr"]){const m=h.S.__childNodes||h.S.childNodes;for(const u of m)if(u["s-hn"]!==I&&!u["s-sh"]){if(n&&u["s-ih"]==null&&(u["s-ih"]=(c=u.hidden)!=null&&c),u.nodeType===1)u.hidden=!0;else if(u.nodeType===3&&u.nodeValue.trim()){const S=w.document.createComment("s-nt-"+u.nodeValue);S["s-sn"]=u["s-sn"],x(u.parentNode,S,u,n),u.parentNode.removeChild(u)}}}ie=void 0,ce.forEach((m=>m())),ce.length=0,de.forEach((m=>m())),de.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()})))}},ue=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Me(e,e.C);const n=()=>mt(e,t);if(!t)return ot(n);queueMicrotask((()=>{n()}))},mt=(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=Be(o,(()=>H(s,"componentWillRender",void 0,n))),Be(o,(()=>vt(e,s,t)))},Be=(e,t)=>gt(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),gt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",vt=async(e,t,n)=>{var s;const o=e.$hostElement$,r=o["s-rc"];n&&(l=>{const c=l.o,i=l.$hostElement$,d=c.i,f=((a,h)=>{var m,u,S;const b=ke(h),v=W.get(b);if(!w.document)return b;if(a=a.nodeType===11?a:w.document,v)if(typeof v=="string"){let g,p=T.get(a=a.head||a);if(p||T.set(a,p=new Set),!p.has(b)){g=w.document.createElement("style"),g.textContent=v;const k=(m=A.L)!=null?m:(function(){var y,_,$;return($=(_=(y=w.document.head)==null?void 0:y.querySelector('meta[name="csp-nonce"]'))==null?void 0:_.getAttribute("content"))!=null?$:void 0})();if(k!=null&&g.setAttribute("nonce",k),!(1&h.i))if(a.nodeName==="HEAD"){const y=a.querySelectorAll("link[rel=preconnect]"),_=y.length>0?y[y.length-1].nextSibling:a.querySelector("style");a.insertBefore(g,_?.parentNode===a?_:null)}else if("host"in a)if(Q){const y=new((u=a.defaultView)!=null?u:a.ownerDocument.defaultView).CSSStyleSheet;y.replaceSync(v),ee?a.adoptedStyleSheets.unshift(y):a.adoptedStyleSheets=[y,...a.adoptedStyleSheets]}else{const y=a.querySelector("style");y?y.textContent=v+y.textContent:a.prepend(g)}else a.append(g);1&h.i&&a.insertBefore(g,null),4&h.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),p&&p.add(b)}}else{let g=T.get(a);if(g||T.set(a,g=new Set),!g.has(b)){const p=(S=a.defaultView)!=null?S:a.ownerDocument.defaultView;let k;if(v.constructor===p.CSSStyleSheet)k=v;else{k=new p.CSSStyleSheet;for(let y=0;y<v.cssRules.length;y++)k.insertRule(v.cssRules[y].cssText,y)}ee?a.adoptedStyleSheets.push(k):a.adoptedStyleSheets=[...a.adoptedStyleSheets,k],g.add(b)}}return b})(i.shadowRoot?i.shadowRoot:i.getRootNode(),c);10&d&&(i["s-sc"]=f,i.classList.add(f+"-h"))})(e),yt(e,t,o,n),r&&(r.map((l=>l())),o["s-rc"]=void 0);{const l=(s=o["s-p"])!=null?s:[],c=()=>bt(e);l.length===0?c():(Promise.all(l).then(c).catch(c),e.i|=4,l.length=0)}},yt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,pt(e,t,s)}catch(o){M(o,e.$hostElement$)}return null},bt=e=>{const t=e.$hostElement$,n=t,s=e.C;H(n,"componentDidRender",void 0,t),64&e.i?H(n,"componentDidUpdate",void 0,t):(e.i|=64,wt(t),H(n,"componentDidLoad",void 0,t),e.F(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>ue(e,!1))),e.i&=-517},St=()=>{ne((()=>dt(w,"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)}},wt=e=>e.classList.add("hydrated"),De=(e,t,n,s)=>{const o=j(e);if(!o)return;const r=e,l=o.l.get(t),c=o.i,i=r;n=Oe(n,s.t[t][0]);const d=Number.isNaN(l)&&Number.isNaN(n);if(n!==l&&!d){if(o.l.set(t,n),s.R){const f=s.R[t];f&&f.map((a=>{try{const[[h,m]]=Object.entries(a);(128&c||1&m)&&(i?i[h](n,l,t):o.T.push((()=>{o.D[h](n,l,t)})))}catch(h){M(h,r)}}))}if(2&c){if(i.componentShouldUpdate&&i.componentShouldUpdate(n,l,t)===!1&&!(16&c))return;16&c||ue(o,!1)}}},_t=(e,t)=>{var n,s;const o=e.prototype;{e.watchers&&!t.R&&(t.R=Ee(e.watchers)),e.deserializers&&!t.H&&(t.H=e.deserializers),e.serializers&&!t.P&&(t.P=e.serializers);const r=Object.entries((n=t.t)!=null?n:{});r.map((([l,[c]])=>{if(31&c||32&c){const{get:i,set:d}=R(o,l)||{};i&&(t.t[l][0]|=2048),d&&(t.t[l][0]|=4096),Object.defineProperty(o,l,{get(){return i?i.apply(this):(f=l,j(this).l.get(f));var f},configurable:!0,enumerable:!0}),Object.defineProperty(o,l,{set(f){const a=j(this);if(a){if(d)return(32&c?this[l]:a.$hostElement$[l])===void 0&&a.l.get(l)&&(f=a.l.get(l)),d.apply(this,[Oe(f,c)]),void De(this,l,f=32&c?this[l]:a.$hostElement$[l],t);De(this,l,f,t)}}})}}));{const l=new Map;o.attributeChangedCallback=function(c,i,d){A.jmp((()=>{var f;const a=l.get(c),h=j(this);if(this.hasOwnProperty(a),o.hasOwnProperty(a)&&typeof this[a]=="number"&&this[a]==d)return;if(a==null){const v=h?.i;if(h&&v&&!(8&v)&&d!==i){const g=this,p=(f=t.R)==null?void 0:f[c];p?.forEach((k=>{const[[y,_]]=Object.entries(k);g[y]!=null&&(128&v||1&_)&&g[y].call(g,d,i,c)}))}return}const m=r.find((([v])=>v===a)),u=m&&4&m[1][0],S=u&&d===null&&this[a]===void 0;u&&(d=d!==null&&d!=="false");const b=Object.getOwnPropertyDescriptor(o,a);S||d==this[a]||b.get&&!b.set||(this[a]=d)}))},e.observedAttributes=Array.from(new Set([...Object.keys((s=t.R)!=null?s:{}),...r.filter((([c,i])=>31&i[0])).map((([c,i])=>{var d;const f=i[1]||c;return l.set(f,c),512&i[0]&&((d=t._)==null||d.push([c,f])),f}))]))}}return e},Nt=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.R=Ee(e.R),n.H=e.H,n.P=e.P,n._=[];const s=e.prototype.connectedCallback,o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((r,l)=>{const c={i:0,$hostElement$:r,o:l,l:new Map,U:new Map};c.W=new Promise((d=>c.F=d)),r["s-p"]=[],r["s-rc"]=[];const i=c;r.__stencil__getHostRef=()=>i,512&l.i&&tt(r,c)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!j(this))return;this.__hasHostListenerAttached=!0}(r=>{if(!(1&A.i)){const l=j(r);if(!l)return;const c=l.o;if(1&l.i)l?.D||l?.W&&l.W.then((()=>{}));else{l.i|=1,12&c.i&&(i=>{if(!w.document)return;const d=i["s-cr"]=w.document.createComment("");d["s-cn"]=!0,x(i,d,i.firstChild)})(r);{let i=r;for(;i=i.parentNode||i.host;)if(i["s-p"]){Me(l,l.C=i);break}}c.t&&Object.entries(c.t).map((([i,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(r,i)){const f=r[i];delete r[i],r[i]=f}})),(async(i,d,f)=>{let a;try{if(!(32&d.i)&&(d.i|=32,a=i.constructor,customElements.whenDefined(i.localName).then((()=>d.i|=128)),a&&a.style)){let u;typeof a.style=="string"&&(u=a.style);const S=ke(f);W.has(S)||((b,v,g)=>{let p=W.get(b);Q&&g?(p=p||new CSSStyleSheet,typeof p=="string"?p=v:p.replaceSync(v)):p=v,W.set(b,p)})(S,u,!!(1&f.i))}const h=d.C,m=()=>ue(d,!0);h&&h["s-rc"]?h["s-rc"].push(m):m()}catch(h){M(h,i),d.A&&(d.A(),d.A=void 0),d.F&&d.F(i)}})(r,l,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async r=>{1&A.i||j(r),T.has(r)&&T.delete(r),r.shadowRoot&&T.has(r.shadowRoot)&&T.delete(r.shadowRoot)})(this),o&&o.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else rt.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),_t(e,n)}catch(s){return M(s),e}},kt=(e,t)=>t;function zt(e){return e}function Ve(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ve(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function Fe(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const At=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>Fe("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"})),Et=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>Fe("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,Ot=X/2,fe=2*Math.PI*He,$t=`0 0 ${X} ${X}`,xt=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,r=(fe*o/100).toFixed(2),l=(fe-parseFloat(r)).toFixed(2);return`${r} ${l}`},centerPosition:Ot,circumference:fe,radius:He,thickness:Ge,viewBox:$t},Symbol.toStringTag,{value:"Module"})),he=Symbol("defaultPath"),We=Symbol("pathSet"),pe="gids-asset-paths-set";class Pt 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"),Ct=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),jt=e=>{const t=Ct().assetPaths;return t[e]===void 0&&(t[e]=new Pt),t[e]};function ge(){return jt("@ganpatiinfo/gids-web-shared")}function Tt(){return ge().haveAssetPathsBeenSet()}function qe(e){return ge().getAssetFilePath(e)}function Lt(e){return ge().onAssetPathsSet(e)}let It=0;const Rt=(e,t="gids")=>e||`${t}-${It++}`,Mt=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&&!Mt(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},Ue={"icons-other.svg":["accessibility","announcement","approval","archive","audio","backward","banking","battery","bluetooth","bookmark","bulb","calendar","camera","card","cart","chart","chat","cloud","code","compass","desktop","email","emergency","exchange","finance","fingerprint","flag","folder","forward","gift","globe","goals","happy","hashtag","headphones","history","image","insurance","investment","key","link","list","location","lock","map","maximise","microphone","minimise","mobile","moon","network","neutral","new","new-chat","pause","percent","placeholder","play","power","rain","refresh","repeat","sad","save","savings","shield","shuffle","side-navigation","snow","speaker","stop","sun","tablet","temperature","thumbs-down","thumbs-up","travel","trend-down","trend-up","unlock","upset","verified","very-happy","video","volume-down","volume-max","volume-min","volume-mute","volume-up","wallet","wealth","wi-fi","wind"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},ze=new Map;for(const e in Ue)for(const t of Ue[e])ze.set(t,e);function Dt(e){return ze.get(e)}function Ke(e,t="regular",n){const s=Dt(e);let o=s??"";return n&&s&&(o=n(s)??s),`${o}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Vt}=Et,Ye=({name:e,size:t,appearance:n,alt:s,class:o,titleId:r,src:l,...c})=>{const i=Rt(r);let d=l;return d===void 0&&Tt()&&(d=Ke(e,n,qe)),N("svg",{ref:f=>{d===void 0&&Lt((()=>{(function(a,h,m){if(!a)return;const u=document.createElementNS("http://www.w3.org/2000/svg","use");u.setAttribute("href",Ke(h,m,qe)),a.appendChild(u)})(f,e,n)}))},width:"16",height:"16",class:Vt({size:t},o),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:i,...c},s!==""&&N("title",{id:i},s||e),d!==void 0?N("use",{href:d}):null)},{getGidsSpinnerControlClassNames:Ft}=At,{calculateStrokeDasharray:Gt,thickness:Je,radius:Xe,centerPosition:Z,viewBox:Ht}=xt,Wt=({size:e,indeterminate:t,value:n,max:s,...o})=>{let r;return t||(r={strokeDashArray:Gt(n,s||0),strokeDashoffset:"0"}),N("svg",{class:Ft({size:e,indeterminate:t,value:n}),viewBox:Ht,...o},N("circle",{class:"gids-spinner-control__track",cx:Z,cy:Z,r:Xe,"stroke-width":Je}),N("circle",{style:r,class:"gids-spinner-control__progress",cx:Z,cy:Z,r:Xe,"stroke-width":Je}))},Ze=Nt(class extends st{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 N(kt,{key:"5d4e79f168da55c3c8dcb9b005919af697faa2e4"},N("slot",{key:"a7c23b37ceaf94f06e53256b431e98e7a3a32602",name:"leadingIcon"}),this.leadingLabel&&N("span",{key:"0ad81289035ada60d67b1df06fb60f703dc27eed",class:"gids-input__label"},this.leadingLabel),N("slot",{key:"f5870caed190d279a95c688243607dfae8f79d60",name:"leadingAccessory"}),N("input",{key:"38ead647fc9069ed8de93293150134048fd6b4f1",...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}),N("slot",{key:"58ff0f57706d2c9b1e9b41549649c324c60a8f07",name:"trailingAccessory"}),this.trailingLabel&&N("span",{key:"6d400670f8c64f64fbe732e726da4d7569c2c6f3",class:"gids-input__label"},this.trailingLabel),N("slot",{key:"8b20ed8fb9169fd7c0e1415f7bcdf0df03b61534",name:"trailingIcon"}),this.status==="incomplete"&&N(Ye,{key:"f7d4261f5c8faa51601d3fd6c400f4891847f62c",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&N(Ye,{key:"6cbdc56ebc1854d0b4f6db30df670f665a9aff3f",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&N(Wt,{key:"a369d7c3f7e2ac4d631926aefc1a15bf9cbba362",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,Ut=Qe;L.GidsInput=qt,L.defineCustomElement=Ut,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===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"})}));
|