@ganpatiinfo/gids-core-web 10.2.0 → 10.3.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 +266 -0
- package/dist/css/index.css.map +1 -1
- package/dist/gids-action-bar.js +1 -1
- package/dist/gids-activity-gauge.js +1 -1
- package/dist/gids-bar-chart.js +1 -1
- package/dist/gids-calendar-header-panel.js +1 -1
- package/dist/gids-calendar-month-list.js +1 -1
- package/dist/gids-calendar-year-list.js +1 -1
- package/dist/gids-calendar.js +1 -1
- package/dist/gids-chart-legend-item.js +1 -1
- package/dist/gids-chart-legend.js +1 -1
- package/dist/gids-chart.js +1 -1
- package/dist/gids-chevron-button.js +1 -1
- package/dist/gids-dot.js +1 -1
- package/dist/gids-dropdown-field.js +1 -1
- package/dist/gids-dropdown-picker.js +1 -1
- package/dist/gids-dropdown.js +1 -1
- package/dist/gids-expansion-body-list-item.d.ts +11 -0
- package/dist/gids-expansion-body-list-item.js +1 -0
- package/dist/gids-expansion-body-list.d.ts +11 -0
- package/dist/gids-expansion-body-list.js +1 -0
- package/dist/gids-expansion-group.d.ts +11 -0
- package/dist/gids-expansion-group.js +1 -0
- package/dist/gids-expansion.d.ts +11 -0
- package/dist/gids-expansion.js +1 -0
- package/dist/gids-field.js +1 -1
- package/dist/gids-filter.js +1 -1
- package/dist/gids-icon.js +1 -1
- package/dist/gids-input.js +1 -1
- package/dist/gids-line-chart.js +1 -1
- package/dist/gids-overflow-container.js +1 -1
- package/dist/gids-overlay-provider.js +1 -1
- package/dist/gids-password-field.js +1 -1
- package/dist/gids-pie-chart.js +1 -1
- package/dist/gids-popover.js +1 -1
- package/dist/gids-scrim.js +1 -1
- package/dist/gids-tab-item.js +1 -1
- package/dist/gids-tab.js +1 -1
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/{p-qrjEbv6g.js → p-2wB6zkno.js} +1 -1
- package/dist/{p-BfnzH6wp.js → p-3Ni1-UuQ.js} +1 -1
- package/dist/{p-C7ifjRCE.js → p-BE2G21MT.js} +1 -1
- package/dist/{p-BYDimyG-.js → p-BQCMjWpK.js} +1 -1
- package/dist/{p-8tOn5SjU.js → p-BeP2XcqY.js} +1 -1
- package/dist/{p-bPPm7cuw.js → p-C2PfO9h9.js} +1 -1
- package/dist/p-C4yEV6pT.js +1 -0
- package/dist/{p-Jdpe4Sgj.js → p-CD_BHkBE.js} +1 -1
- package/dist/p-ChV9xqsO.js +1 -0
- package/dist/{p-C-cUL-aA.js → p-CkydANOS.js} +1 -1
- package/dist/p-Cn-t3SGc.js +1 -0
- package/dist/{p-Doi8Yizl.js → p-DA_atCAU.js} +1 -1
- package/dist/{p-xITwQAMz.js → p-DVVJrKxO.js} +1 -1
- package/dist/{p-Ciw-O9qN.js → p-DfrYaprq.js} +1 -1
- package/dist/{p-DoPuGtJd.js → p-Ditd1zV7.js} +1 -1
- package/dist/p-DlI2raNo.js +1 -0
- package/dist/{p-Bj28yqMD.js → p-KaaOtnwV.js} +1 -1
- package/dist/{p-B1Jgtjhu.js → p-WHI6NO_h.js} +1 -1
- package/dist/{p-5VIPb1eU.js → p-qIkbfIF3.js} +1 -1
- package/dist/types/components/webComponents/GidsExpansion/GidsExpansion.d.ts +24 -0
- package/dist/types/components/webComponents/GidsExpansionBodyList/GidsExpansionBodyList.d.ts +24 -0
- package/dist/types/components/webComponents/GidsExpansionBodyListItem/GidsExpansionBodyListItem.d.ts +38 -0
- package/dist/types/components/webComponents/GidsExpansionGroup/GidsExpansionGroup.d.ts +4 -0
- package/dist/types/components.d.ts +148 -2
- package/dist-bundled/es/gids-action-bar.js +3 -3
- package/dist-bundled/es/gids-activity-gauge.js +1 -1
- package/dist-bundled/es/gids-bar-chart.js +3 -3
- package/dist-bundled/es/gids-calendar-header-panel.js +4 -4
- package/dist-bundled/es/gids-calendar-month-list.js +1 -1
- package/dist-bundled/es/gids-calendar-year-list.js +3 -3
- package/dist-bundled/es/gids-calendar.js +7 -7
- package/dist-bundled/es/gids-chart-legend-item.js +4 -4
- package/dist-bundled/es/gids-chart-legend.js +1 -1
- package/dist-bundled/es/gids-chart.js +46 -46
- package/dist-bundled/es/gids-chevron-button.js +7 -7
- package/dist-bundled/es/gids-dot.js +3 -3
- package/dist-bundled/es/gids-dropdown-field.js +4 -4
- package/dist-bundled/es/gids-dropdown-picker.js +1 -1
- package/dist-bundled/es/gids-dropdown.js +4 -4
- package/dist-bundled/es/gids-expansion-body-list-item.js +6 -0
- package/dist-bundled/es/gids-expansion-body-list.js +78 -0
- package/dist-bundled/es/gids-expansion-group.js +28 -0
- package/dist-bundled/es/gids-expansion.js +90 -0
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-filter.js +4 -4
- package/dist-bundled/es/gids-icon.js +4 -4
- package/dist-bundled/es/gids-input.js +3 -3
- package/dist-bundled/es/gids-line-chart.js +1 -1
- package/dist-bundled/es/gids-overflow-container.js +6 -6
- package/dist-bundled/es/gids-overlay-provider.js +1 -1
- package/dist-bundled/es/gids-password-field.js +7 -7
- package/dist-bundled/es/gids-pie-chart.js +4 -4
- package/dist-bundled/es/gids-popover.js +1 -1
- package/dist-bundled/es/gids-scrim.js +3 -3
- package/dist-bundled/es/gids-tab-item.js +1 -1
- package/dist-bundled/es/gids-tab.js +5 -5
- package/dist-bundled/es/gids-text-field.js +10 -10
- package/dist-bundled/es/gids-toggle-button.js +1 -1
- package/dist-bundled/es/gids-tooltip.js +1 -1
- package/dist-bundled/es/{p-qrjEbv6g-ITSp3ky_.js → p-2wB6zkno-57WAxATm.js} +2 -2
- package/dist-bundled/es/{p-BfnzH6wp-BfLC7Nak.js → p-3Ni1-UuQ-CPn15cat.js} +2 -2
- package/dist-bundled/es/{p-C7ifjRCE-CRlorwoN.js → p-BE2G21MT-WGW-ehxu.js} +9 -9
- package/dist-bundled/es/{p-BYDimyG--DBCLrqDJ.js → p-BQCMjWpK-CLxPNItn.js} +1 -1
- package/dist-bundled/es/{p-8tOn5SjU-D9rZ28cf.js → p-BeP2XcqY-DMXmX4Mc.js} +7 -7
- package/dist-bundled/es/{p-bPPm7cuw-B-dtPJF9.js → p-C2PfO9h9-H_toZwKo.js} +2 -2
- package/dist-bundled/es/{p-DiNad9Px-uOCMHqAq.js → p-C4yEV6pT-8IjLINXB.js} +25 -38
- package/dist-bundled/es/{p-Jdpe4Sgj-acwaxLtK.js → p-CD_BHkBE-DX2546yK.js} +8 -8
- package/dist-bundled/es/p-ChV9xqsO-CJSPCx6p.js +16 -0
- package/dist-bundled/es/{p-C-cUL-aA-2jsvw-Lr.js → p-CkydANOS-CzTX9wng.js} +14 -14
- package/dist-bundled/es/{p-qb1aWgjh-CzmMPIME.js → p-Cn-t3SGc-CwvvOdlK.js} +14 -14
- package/dist-bundled/es/{p-Doi8Yizl-BszWK5Dq.js → p-DA_atCAU-KdxJYYDE.js} +5 -5
- package/dist-bundled/es/{p-xITwQAMz-BMXjOAAQ.js → p-DVVJrKxO-Bdl0HX_u.js} +13 -13
- package/dist-bundled/es/{p-Ciw-O9qN-DkWfirFu.js → p-DfrYaprq-CeZqb0rn.js} +6 -6
- package/dist-bundled/es/{p-DoPuGtJd-DYlbhh57.js → p-Ditd1zV7-DdQjXthS.js} +2 -2
- package/dist-bundled/es/p-DlI2raNo-5V-p1A9Z.js +106 -0
- package/dist-bundled/es/{p-Bj28yqMD-Dz1SWSqM.js → p-KaaOtnwV-D7HTbhvI.js} +10 -10
- package/dist-bundled/es/{p-B1Jgtjhu-B_VYp-ZP.js → p-WHI6NO_h-DHNy0JzV.js} +11 -11
- package/dist-bundled/es/{p-5VIPb1eU-MCAo8JCp.js → p-qIkbfIF3-B7NovGEi.js} +2 -2
- package/dist-bundled/umd/gids-action-bar.umd.js +2 -2
- package/dist-bundled/umd/gids-activity-gauge.umd.js +1 -1
- package/dist-bundled/umd/gids-bar-chart.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +1 -1
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +1 -1
- package/dist-bundled/umd/gids-chart-legend.umd.js +1 -1
- package/dist-bundled/umd/gids-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-chevron-button.umd.js +1 -1
- package/dist-bundled/umd/gids-dot.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +1 -1
- package/dist-bundled/umd/gids-dropdown.umd.js +1 -1
- package/dist-bundled/umd/gids-expansion-body-list-item.umd.js +5 -0
- package/dist-bundled/umd/gids-expansion-body-list.umd.js +5 -0
- package/dist-bundled/umd/gids-expansion-group.umd.js +5 -0
- package/dist-bundled/umd/gids-expansion.umd.js +5 -0
- package/dist-bundled/umd/gids-field.umd.js +1 -1
- package/dist-bundled/umd/gids-filter.umd.js +2 -2
- package/dist-bundled/umd/gids-icon.umd.js +1 -1
- package/dist-bundled/umd/gids-input.umd.js +2 -2
- package/dist-bundled/umd/gids-line-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-overflow-container.umd.js +1 -1
- package/dist-bundled/umd/gids-overlay-provider.umd.js +1 -1
- package/dist-bundled/umd/gids-password-field.umd.js +2 -2
- package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-popover.umd.js +1 -1
- package/dist-bundled/umd/gids-scrim.umd.js +1 -1
- package/dist-bundled/umd/gids-tab-item.umd.js +1 -1
- package/dist-bundled/umd/gids-tab.umd.js +2 -2
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +2 -2
- package/dist-bundled/umd/gids-tooltip.umd.js +1 -1
- package/dist-bundled/umd-complete/gids-core-web.umd.js +9 -9
- package/package.json +36 -4
- package/dist/p-DiNad9Px.js +0 -1
- package/dist/p-qb1aWgjh.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(L,M){typeof exports=="object"&&typeof module<"u"?M(exports):typeof define=="function"&&define.amd?define(["exports"],M):(L=typeof globalThis<"u"?globalThis:L||self,M(L.gidsCoreWebGidsCalendarYearList={}))})(this,(function(L){"use strict";function M(e,t,n){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!n||i.get))return i;e=Object.getPrototypeOf(e)}}var B,it=(e,t)=>{var n;Object.entries((n=t.o.t)!=null?n:{}).map((([s,[i]])=>{if(31&i||32&i){const o=e[s],r=M(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):o!==void 0&&(e[s]=o)}}))},A=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},
|
|
1
|
+
(function(L,M){typeof exports=="object"&&typeof module<"u"?M(exports):typeof define=="function"&&define.amd?define(["exports"],M):(L=typeof globalThis<"u"?globalThis:L||self,M(L.gidsCoreWebGidsCalendarYearList={}))})(this,(function(L){"use strict";function M(e,t,n){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!n||i.get))return i;e=Object.getPrototypeOf(e)}}var B,it=(e,t)=>{var n;Object.entries((n=t.o.t)!=null?n:{}).map((([s,[i]])=>{if(31&i||32&i){const o=e[s],r=M(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):o!==void 0&&(e[s]=o)}}))},A=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},ve=(e,t)=>t in e,G=(e,t)=>(0,console.error)(e,t),z=new Map,Se="http://www.w3.org/1999/xlink",ot=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],N=typeof window<"u"?window:{},lt=N.HTMLElement||class{},O={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)},rt=(()=>{var e;let t=!1;try{(e=N.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),ee=(()=>{try{return!!N.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),te=!!ee&&!!N.document&&Object.getOwnPropertyDescriptor(N.document.adoptedStyleSheets,"length").writable,se=!1,_e=[],we=[],at=(e,t)=>n=>{e.push(n),se||(se=!0,4&O.i?ie(ne):O.raf(ne))},Ne=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){G(n)}e.length=0},ne=()=>{Ne(_e),Ne(we),(se=_e.length>0)&&O.raf(ne)},ie=e=>Promise.resolve(void 0).then(e),dt=at(we);function ct(){const e=this.attachShadow({mode:"open"});B===void 0&&(B=null),B&&(te?e.adoptedStyleSheets.push(B):e.adoptedStyleSheets=[...e.adoptedStyleSheets,B])}var xe=e=>{const t=le(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&oe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!ut(s,R(s),!1).length)}));let n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&le(s,"childNodes").length&&xe(s)}};function oe(e,t,n){let s,i=0,o=[];for(;i<e.length;i++){if(s=e[i],s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||R(s)===n)&&(o.push(s),n!==void 0))return o;o=[...o,...oe(s.childNodes,t,n)]}return o}var ut=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let i=e;for(;i=i.nextSibling;)R(i)!==t||!n&&i["s-sr"]||s.push(i);return s},Ce=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",R=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function le(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var re,Y,I=new WeakMap,$e=e=>"sc-"+e.p,ae=e=>(e=typeof e)=="object"||e==="function",f=(e,t,...n)=>{let s=null,i=null,o=null,r=!1,a=!1;const l=[],c=d=>{for(let p=0;p<d.length;p++)s=d[p],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((r=typeof e!="function"&&!ae(s))&&(s=String(s)),r&&a?l[l.length-1].h+=s:l.push(r?W(null,s):s),a=r)};if(c(n),t){t.key&&(i=t.key),t.name&&(o=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((p=>d[p])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,ht);const u=W(e,null);return u.v=t,l.length>0&&(u.m=l),u.$=i,u.j=o,u},W=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),pt={},ht={forEach:(e,t)=>e.map(Oe).forEach(t),map:(e,t)=>e.map(Oe).map(t).map(ft)},Oe=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),ft=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),f(e.vtag,n,...e.vchildren||[])}const t=W(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 i of t){if(n)break;for(const o of e[i])if(typeof o=="string"){n=!0;break}}if(!n)return e;const s={};for(const i of t)s[i]=e[i].map((o=>typeof o=="string"?{[o]:0}:o));return s},Pe=(e,t,n)=>e==null||ae(e)?e:4&t?(n&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,gt=(e,t,n)=>{const s=O.ce(t,n);return e.dispatchEvent(s),s},ke=(e,t,n,s,i,o)=>{if(n===s)return;let r=ve(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=je(n);let u=je(s);l.remove(...c.filter((d=>d&&!u.includes(d)))),l.add(...u.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const l in 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&&bt(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 c;{const u=A(e);if(u&&u.o&&u.o.t){const d=u.o.t[l];d&&d[1]&&(c=d[1])}}return c||(c=l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(s==null||s===!1?s===!1&&e.getAttribute(c)!==""||e.removeAttribute(c):e.setAttribute(c,s===!0?"":s))}if(t[0]==="p"&&t.startsWith("prop:")){const l=t.slice(5);try{e[l]=s}catch{}return}{const l=ae(s);if((r||l&&s!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?r=!1:n!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(Se,t):e.removeAttribute(t)):(!r||4&o||i)&&!l&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(Se,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),n||s){const l=t.endsWith(Ae);t=t.replace(yt,""),n&&O.rel(e,t,n,l),s&&O.ael(e,t,s,l)}}},mt=/\s/,je=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(mt):[]),Ae="Capture",yt=new RegExp(Ae+"$"),de=(e,t,n)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},o=t.v||{};for(const r of Te(Object.keys(i)))r in o||ke(s,r,i[r],void 0,n,t.i);for(const r of Te(Object.keys(o)))ke(s,r,i[r],o[r],n,t.i)};function Te(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var F=!1,q=!1,U=!1,E=!1,ce=[],ue=[],K=(e,t,n)=>{var s;const i=t.m[n];let o,r,a,l=0;if(F||(U=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)o=i.S=N.document.createTextNode(i.h);else if(1&i.i)o=i.S=N.document.createTextNode(""),de(null,i,E);else{if(E||(E=i.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(o=i.S=N.document.createElementNS(E?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!F&&2&i.i?"slot-fb":i.O),E&&i.O==="foreignObject"&&(E=!1),de(null,i,E),i.m){const c=i.O==="template"?o.content:o;for(l=0;l<i.m.length;++l)r=K(e,i,l),r&&c.appendChild(r)}i.O==="svg"?E=!1:o.tagName==="foreignObject"&&(E=!0)}return o["s-hn"]=Y,3&i.i&&(o["s-sr"]=!0,o["s-cr"]=re,o["s-sn"]=i.j||"",o["s-rf"]=(s=i.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(function(p){const g=[],h=this["s-sn"];p?.flatten&&console.error(`
|
|
2
2
|
Flattening is not supported for Stencil non-shadow slots.
|
|
3
3
|
You can use \`.childNodes\` to nested slot fallback content.
|
|
4
4
|
If you have a particular use case, please open an issue on the Stencil repo.
|
|
5
|
-
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(_=>{const v=[];for(let y=0;y<_.length;y++){const m=_[y]["s-nr"]||void 0;m&&m.isConnected&&v.push(m)}return v})(S.childNodes)).forEach((_=>{h===R(_)&&g.push(_)})),d?g.filter((_=>_.nodeType===1)):g}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[n],a&&a.O===i.O&&e.S&&Ie(e.S)),o},Ie=e=>{O.i|=1;const t=e.closest(Y.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const i of n?s.reverse():s)i["s-sh"]!=null&&(j(t,i,n??null),i["s-sh"]=void 0,U=!0)}O.i&=-2},Z=(e,t)=>{O.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"]===Y&&n.push(s)}for(let s=n.length-1;s>=0;s--){const i=n[s];i["s-hn"]!==Y&&i["s-ol"]&&(j(H(i).parentNode,i,H(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,U=!0),t&&Z(i,t)}O.i&=-2},Le=(e,t,n,s,i,o)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===Y&&(a=a.shadowRoot),n.O==="template"&&(a=a.content);i<=o;++i)s[i]&&(r=K(null,n,i),r&&(s[i].S=r,j(a,r,H(t))))},Ge=(e,t,n)=>{for(let s=t;s<=n;++s){const i=e[s];if(i){const o=i.S;Me(i),o&&(q=!0,o["s-ol"]?o["s-ol"].remove():Z(o,!0),o.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.$),H=e=>e&&e["s-ol"]||e,D=(e,t,n=!1)=>{const s=t.S=e.S,i=e.m,o=t.m,r=t.O,a=t.h;let l;a==null?(E=r==="svg"||r!=="foreignObject"&&E,r!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ie(t.S.parentElement)),de(e,t,E),i!==null&&o!==null?((c,u,d,p,g=!1)=>{let h,S,_=0,v=0,y=0,m=0,C=u.length-1,b=u[0],w=u[C],$=p.length-1,x=p[0],k=p[$];const nt=d.O==="template"?c.content:c;for(;_<=C&&v<=$;)if(b==null)b=u[++_];else if(w==null)w=u[--C];else if(x==null)x=p[++v];else if(k==null)k=p[--$];else if(J(b,x,g))D(b,x,g),b=u[++_],x=p[++v];else if(J(w,k,g))D(w,k,g),w=u[--C],k=p[--$];else if(J(b,k,g))b.O!=="slot"&&k.O!=="slot"||Z(b.S.parentNode,!1),D(b,k,g),j(nt,b.S,w.S.nextSibling),b=u[++_],k=p[--$];else if(J(w,x,g))b.O!=="slot"&&k.O!=="slot"||Z(w.S.parentNode,!1),D(w,x,g),j(nt,w.S,b.S),w=u[--C],x=p[++v];else{for(y=-1,m=_;m<=C;++m)if(u[m]&&u[m].$!==null&&u[m].$===x.$){y=m;break}y>=0?(S=u[y],S.O!==x.O?h=K(u&&u[v],d,y):(D(S,x,g),u[y]=void 0,h=S.S),x=p[++v]):(h=K(u&&u[v],d,v),x=p[++v]),h&&j(H(b.S).parentNode,h,H(b.S))}_>C?Le(c,p[$+1]==null?null:p[$+1].S,d,p,v,$):v>$&&Ge(u,_,C)})(s,i,t,o,n):o!==null?(e.h!==null&&(s.textContent=""),Le(s,null,t,o,0,o.length-1)):!n&&i!==null&&Ge(i,0,i.length-1),E&&r==="svg"&&(E=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},T=[],Ye=e=>{let t,n,s;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const r=o["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Ce(t,r)){let a=T.find((l=>l.k===t));q=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=o["s-hn"],a.N=o):(t["s-sh"]=o["s-hn"],T.push({N:o,k:t})),t["s-sr"]&&T.map((l=>{Ce(l.k,t["s-sn"])&&(a=T.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else T.some((a=>a.k===t))||T.push({k:t})}o.nodeType===1&&Ye(o)}},Me=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Me)},vt=(e,t)=>{ue.push((()=>e(t)))},j=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:i}=(function(o,r){var a;if(!(r=r||((a=o["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=R(o)||"";return{slotNode:oe(le(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return i&&!s&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},bt=(e,t,n=!1)=>{var s,i,o,r,a;const l=e.$hostElement$,c=e.o,u=e.M||W(null,null);var d;const p=(d=t)&&d.O===pt?t:f(null,null,t);if(Y=l.tagName,c.C&&(p.v=p.v||{},c.C.forEach((([g,h])=>{p.v[h]=l[g]}))),n&&p.v)for(const g of Object.keys(p.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(p.v[g]=l[g]);if(p.O=null,p.i|=4,e.M=p,p.S=u.S=l.shadowRoot||l,F=!(!(1&c.i)||128&c.i),re=l["s-cr"],q=!1,D(u,p,n),O.i|=1,U){Ye(p.S);for(const g of T){const h=g.k;if(!h["s-ol"]&&N.document){const S=N.document.createTextNode("");S["s-nr"]=h,j(h.parentNode,h["s-ol"]=S,h,n)}}for(const g of T){const h=g.k,S=g.N;if(h.nodeType===1&&n&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const _=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let y=(i=h["s-ol"])==null?void 0:i.previousSibling;for(;y;){let m=(o=y["s-nr"])!=null?o:null;if(m&&m["s-sn"]===h["s-sn"]&&_===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===h||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){v=m;break}}y=y.previousSibling}}if((!v&&_!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==v)&&h!==v){if(j(_,h,v,n),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=N.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,j(h.parentNode,y,h,n),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(q&&xe(p.S),O.i&=-2,T.length=0,!F&&!(1&c.i)&&l["s-cr"]){const g=p.S.__childNodes||p.S.childNodes;for(const h of g)if(h["s-hn"]!==Y&&!h["s-sh"]){if(n&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=N.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],j(h.parentNode,S,h,n),h.parentNode.removeChild(h)}}}re=void 0,ce.forEach((g=>g())),ce.length=0,ue.forEach((g=>g())),ue.length=0},De=(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()})))}},pe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);De(e,e.R);const n=()=>St(e,t);if(!t)return dt(n);queueMicrotask((()=>{n()}))},St=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=V(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=Be(i,(()=>V(s,"componentWillRender",void 0,n))),Be(i,(()=>wt(e,s,t)))},Be=(e,t)=>_t(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),_t=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",wt=async(e,t,n)=>{var s;const i=e.$hostElement$,o=i["s-rc"];n&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,u=((d,p)=>{var g,h,S;const _=$e(p),v=z.get(_);if(!N.document)return _;if(d=d.nodeType===11?d:N.document,v)if(typeof v=="string"){let y,m=I.get(d=d.head||d);if(m||I.set(d,m=new Set),!m.has(_)){y=N.document.createElement("style"),y.textContent=v;const C=(g=O._)!=null?g:(function(){var b,w,$;return($=(w=(b=N.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?$:void 0})();if(C!=null&&y.setAttribute("nonce",C),!(1&p.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),w=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(y,w?.parentNode===d?w:null)}else if("host"in d)if(ee){const b=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(v),te?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=v+b.textContent:d.prepend(y)}else d.append(y);1&p.i&&d.insertBefore(y,null),4&p.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(_)}}else{let y=I.get(d);if(y||I.set(d,y=new Set),!y.has(_)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let C;if(v.constructor===m.CSSStyleSheet)C=v;else{C=new m.CSSStyleSheet;for(let b=0;b<v.cssRules.length;b++)C.insertRule(v.cssRules[b].cssText,b)}te?d.adoptedStyleSheets.push(C):d.adoptedStyleSheets=[...d.adoptedStyleSheets,C],y.add(_)}}return _})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),Nt(e,t,i,n),o&&(o.map((r=>r())),i["s-rc"]=void 0);{const r=(s=i["s-p"])!=null?s:[],a=()=>xt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Nt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,bt(e,t,s)}catch(i){G(i,e.$hostElement$)}return null},xt=e=>{const t=e.$hostElement$,n=t,s=e.R;V(n,"componentDidRender",void 0,t),64&e.i?V(n,"componentDidUpdate",void 0,t):(e.i|=64,$t(t),V(n,"componentDidLoad",void 0,t),e.L(t),s||Ct()),e.A&&(e.A(),e.A=void 0),512&e.i&&ie((()=>pe(e,!1))),e.i&=-517},Ct=()=>{ie((()=>gt(N,"appload",{detail:{namespace:"gids-core-web"}})))},V=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(i){G(i,s)}},$t=e=>e.classList.add("hydrated"),Re=(e,t,n,s)=>{const i=A(e);if(!i)return;const o=e,r=i.l.get(t),a=i.i,l=o;n=Pe(n,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(n);if(n!==r&&!c){if(i.l.set(t,n),s.F){const u=s.F[t];u&&u.map((d=>{try{const[[p,g]]=Object.entries(d);(128&a||1&g)&&(l?l[p](n,r,t):i.T.push((()=>{i.D[p](n,r,t)})))}catch(p){G(p,o)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,r,t)===!1&&!(16&a))return;16&a||pe(i,!1)}}},Ot=(e,t,n)=>{var s,i;const o=e.prototype;64&t.i&&1&n&&ot.forEach((r=>{const a=o[r];Object.defineProperty(o,r,{value(...l){var c;const u=A(this),d=this;d?typeof a=="function"&&a.call(d,...l):(c=u?.H)==null||c.then((p=>{const g=p[r];typeof g=="function"&&g.call(p,...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 r=Object.entries((s=t.t)!=null?s:{});r.map((([a,[l]])=>{if(31&l||32&l){const{get:c,set:u}=M(o,a)||{};c&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(o,a,{get(){return c?c.apply(this):(d=a,A(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,a,{set(d){const p=A(this);if(p){if(u)return(32&l?this[a]:p.$hostElement$[a])===void 0&&p.l.get(a)&&(d=p.l.get(a)),u.apply(this,[Pe(d,l,!!(64&t.i))]),void Re(this,a,d=32&l?this[a]:p.$hostElement$[a],t);Re(this,a,d,t)}}})}}));{const a=new Map;o.attributeChangedCallback=function(l,c,u){O.jmp((()=>{var d;const p=a.get(l),g=A(this);if(this.hasOwnProperty(p),o.hasOwnProperty(p)&&typeof this[p]=="number"&&this[p]==u)return;if(p==null){const y=g?.i;if(g&&y&&!(8&y)&&u!==c){const m=this,C=(d=t.F)==null?void 0:d[l];C?.forEach((b=>{const[[w,$]]=Object.entries(b);m[w]!=null&&(128&y||1&$)&&m[w].call(m,u,c,l)}))}return}const h=r.find((([y])=>y===p)),S=h&&4&h[1][0],_=S&&u===null&&this[p]===void 0;S&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(o,p);_||u==this[p]||v.get&&!v.set||(this[p]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...r.filter((([l,c])=>31&c[0])).map((([l,c])=>{var u;const d=c[1]||l;return a.set(d,l),512&c[0]&&((u=t.C)==null||u.push([l,d])),d}))]))}}return e},Et=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Ee(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,r)=>{const a={i:0,$hostElement$:o,o:r,l:new Map,B:new Map};a.H=new Promise((c=>a.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=a;o.__stencil__getHostRef=()=>l,512&r.i&&it(o,a)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=A(this);if(!o)return;He(this,o,n.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&O.i)){const r=A(o);if(!r)return;const a=r.o;if(1&r.i)He(o,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!N.document)return;const c=l["s-cr"]=N.document.createComment("");c["s-cn"]=!0,j(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){De(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const u=o[l];delete o[l],o[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=$e(u);z.has(S)||((_,v,y)=>{let m=z.get(_);ee&&y?(m=m||new CSSStyleSheet,typeof m=="string"?m=v:m.replaceSync(v)):m=v,z.set(_,m)})(S,h,!!(1&u.i))}const p=c.R,g=()=>pe(c,!0);p&&p["s-rc"]?p["s-rc"].push(g):g()}catch(p){G(p,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{if(!(1&O.i)){const r=A(o);r?.V&&(r.V.map((a=>a())),r.V=void 0)}I.has(o)&&I.delete(o),o.shadowRoot&&I.has(o.shadowRoot)&&I.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ct.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Ot(e,n,3)}catch(s){return G(s),e}},Fe=(e,t)=>t,He=(e,t,n)=>{n&&N.document&&n.map((([s,i,o])=>{const r=kt(N.document,e,s),a=Pt(t,o),l=jt(s);O.ael(r,i,a,l),(t.V=t.V||[]).push((()=>O.rel(r,i,a,l)))}))},Pt=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){G(s,e.$hostElement$)}},kt=(e,t,n)=>8&n?N:t,jt=e=>rt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function js(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 i=e.length;for(t=0;t<i;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 P(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const At=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>P("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Tt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>P("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"})),It=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>P("gids-spinner",{"gids-spinner--xs":e==="xs","gids-spinner--sm":e==="sm","gids-spinner--lg":e==="lg","gids-spinner--xl":e==="xl","gids-spinner--2xl":e==="2xl"},t)},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>P("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"})),Gt=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:n}=e,s=typeof t=="string"&&t.trim().length>0,i=typeof n=="string"&&n.trim().length>0;return{hasLabel:s,hasSupportingText:i}}},Symbol.toStringTag,{value:"Module"})),Q=64,ze=10,We=Q/2-ze/2,Yt=Q/2,he=2*Math.PI*We,Mt=`0 0 ${Q} ${Q}`,Dt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(n,e))/n*100,o=(he*i/100).toFixed(2),r=(he-parseFloat(o)).toFixed(2);return`${o} ${r}`},centerPosition:Yt,circumference:he,radius:We,thickness:ze,viewBox:Mt},Symbol.toStringTag,{value:"Module"})),Bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonGroupClassNames:({layout:e},t)=>P("gids-button-group",{"gids-button-group--scroll":e==="scroll"},t)},Symbol.toStringTag,{value:"Module"})),Rt=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeadingClassNames:e=>P("gids-heading",e),getGidsHeadingSupportingTextTypographyClass:e=>e&&e.toString()!==""&&e!=="(none)"?`gids-typography-${e}`:""},Symbol.toStringTag,{value:"Module"})),Ft=Object.freeze(Object.defineProperty({__proto__:null,getGidsEditButtonClassNames:({size:e},t)=>P("gids-edit-button",{"gids-edit-button--xs":e==="xs","gids-edit-button--sm":e==="sm","gids-edit-button--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Ht=Object.freeze(Object.defineProperty({__proto__:null,getGidsListItemClassNames:({disabled:e,selected:t},n)=>P("gids-list-item",{"gids-list-item--selected":t,"gids-list-item--disabled":e},n)},Symbol.toStringTag,{value:"Module"})),Vt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownItemClassNames:e=>P("gids-dropdown-item",e)},Symbol.toStringTag,{value:"Module"})),zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuClassNames:e=>P("gids-dropdown-menu",e)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuGroupClassNames:({type:e},t)=>P("gids-dropdown-menu-group",{"gids-dropdown-menu-group--default":e==="default","gids-dropdown-menu-group--no-options":e==="no-options","gids-dropdown-menu-group--loading":e==="loading"},t)},Symbol.toStringTag,{value:"Module"})),qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarYearListClassNames:e=>P("gids-calendar-year-list",e),getGidsCalendarYearListYears:({startYear:e,endYear:t})=>{const n=[];let s=1;for(let i=e;i<=t;i+=1)n.push({id:`${s}_${i}`,title:`${i}`,value:i}),s=s+1;return n},isValidFourDigitYear:e=>{const t=e.toString().trim();if(!/^\d{4}$/.test(t))return!1;const s=parseInt(t,10);return s>=1e3&&s<=9999}},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),qe=Symbol("pathSet"),ge="gids-asset-paths-set";class Ut extends EventTarget{#s=new Map;constructor(){super()}#e(t,n){this.#s.set(t,n)}#t(t){return this.#s.get(t)??null}#n=()=>{this.dispatchEvent(new Event(ge))};haveAssetPathsBeenSet(){return this.#t(qe)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(fe,n)}this.#e(qe,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ge,t,{once:!0}),()=>{this.removeEventListener(ge,t)}}}const me=Symbol.for("GIDS"),Kt=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),Zt=e=>{const t=Kt().assetPaths;return t[e]===void 0&&(t[e]=new Ut),t[e]};function ye(){return Zt("@ganpatiinfo/gids-web-shared")}function Jt(){return ye().haveAssetPathsBeenSet()}function Ue(e){return ye().getAssetFilePath(e)}function Qt(e){return ye().onAssetPathsSet(e)}let Xt=0;const es=(e,t="gids")=>e||`${t}-${Xt++}`,{getGidsSpinnerControlClassNames:ts}=Tt,{calculateStrokeDasharray:ss,thickness:Ke,radius:Ze,centerPosition:X,viewBox:ns}=Dt,is=({size:e,indeterminate:t,value:n,max:s,...i})=>{let o;return t||(o={strokeDashArray:ss(n,s||0),strokeDashoffset:"0"}),f("svg",{class:ts({size:e,indeterminate:t,value:n}),viewBox:ns,...i},f("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ze,"stroke-width":Ke}),f("circle",{style:o,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ze,"stroke-width":Ke}))},{getGidsSpinnerClassNames:os}=It,{getElementVisibility:ls}=Gt,rs=({label:e,supportingText:t,size:n,indeterminate:s,value:i,max:o,class:r,...a})=>{const{hasLabel:l,hasSupportingText:c}=ls({label:e,supportingText:t});return f("span",{class:os({size:n},r),...a},f(is,{size:n,indeterminate:s,value:i,max:o}),l&&f("span",{class:"gids-spinner__label"},e),c&&f("span",{class:"gids-spinner__supporting-text"},t))},Je={"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"]},Qe=new Map;for(const e in Je)for(const t of Je[e])Qe.set(t,e);function as(e){return Qe.get(e)}function Xe(e,t="regular",n){const s=as(e);let i=s??"";return n&&s&&(i=n(s)??s),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:ds}=Lt,ve=({name:e,size:t,appearance:n,alt:s,class:i,titleId:o,src:r,...a})=>{const l=es(o);let c=r;return c===void 0&&Jt()&&(c=Xe(e,n,Ue)),f("svg",{ref:u=>{c===void 0&&Qt((()=>{(function(d,p,g){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",Xe(p,g,Ue)),d.appendChild(h)})(u,e,n)}))},width:"16",height:"16",class:ds({size:t},i),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&f("title",{id:l},s||e),c!==void 0?f("use",{href:c}):null)},{getGidsButtonGroupClassNames:cs}=Bt,us=({layout:e,class:t},n)=>f("span",{class:cs({layout:e},t)},n),{getGidsDropdownMenuGroupClassNames:ps}=Wt,hs=({type:e="no-options",supportingText:t="No options",class:n,...s},i)=>f("div",{class:ps({type:e},n),...s},e==="loading"?f(rs,{indeterminate:!0,size:"md"}):null,e==="no-options"?f("span",null,t):null,e==="default"&&i!=null?i:null),{getGidsHeadingClassNames:fs,getGidsHeadingSupportingTextTypographyClass:gs}=Rt,ms=({heading:e,supportingText:t,level:n="section",children:s,supportingTextTypography:i,class:o})=>f("div",{class:fs(o)},f("div",{class:"gids-heading__content-container"},e!=null&&e!==""?typeof e=="string"?e!==""?f("span",{class:n==="section"?"gids-heading__heading-text-section":"gids-heading__heading-text-group"},e):null:e:null,t!=null&&t!==""?typeof t=="string"?t!==""?f("span",{class:`${n==="section"?"gids-heading__supporting-text-section":"gids-heading__supporting-text-group"} ${gs(i)}`},t):null:t:null),s?f(us,{layout:"wrap"},s):null),{getGidsDropdownMenuClassNames:ys}=zt,vs=({sectionLabel:e,class:t,...n},s)=>f("div",{class:ys(t),...n},e!=null&&e!==""?f(ms,{supportingText:e,supportingTextTypography:"eyebrow-medium"}):null,s!=null?f("div",{class:"gids-dropdown-menu__children"},s):null),{getGidsEditButtonClassNames:bs}=Ft,Ss=({disabled:e,children:t,size:n="md",editButtonType:s="add",onPressEditButton:i,class:o,...r})=>f("button",{class:bs({size:n},o),...r,onClick:i,disabled:e},s==="custom"&&t?f("div",null,t):s==="add"?f("div",{class:e?"gids-edit-button__add gids-edit-button__disabled":"gids-edit-button__add"},f(ve,{name:"add",appearance:"filled",size:n})):s==="remove"?f("div",{class:e?"gids-edit-button__remove gids-edit-button__disabled":"gids-edit-button__remove"},f(ve,{appearance:"filled",name:"remove",size:n})):void 0),{getGidsDividerClassNames:_s}=At,ws=({orientation:e})=>f("hr",{class:_s({orientation:e})}),{getGidsListItemClassNames:Ns}=Ht,xs=({id:e,value:t,index:n,defaultSelected:s,disabled:i,selected:o,editButton:r,onPressEditButton:a,onPressListItem:l,leadingAccessory:c,leadingSupport:u,leadingParagraph:d,trailingContent:p,trailingAccessory:g,trailingSupport:h,trailingParagraph:S,divider:_,role:v="list-item-option",isPlaceholderItem:y,class:m,...C},b)=>{const w=o||s;return f("button",{type:"button",id:e,class:Ns({selected:w,disabled:i},m),role:v,"aria-selected":w?"true":"false",disabled:i,value:(()=>{if(typeof t=="string"&&t.trim()!=="")return t;const $=b;return $?(Array.isArray($)?$:[$]).map((x=>typeof x=="string"||typeof x=="number"?String(x):x&&typeof x=="object"&&"text"in x?x.text??"":"")).join("").trim():""})(),tabIndex:n,onClick:$=>{const x=$.currentTarget;if(!x||$.defaultPrevented||x.disabled)return;const k=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:n,defaultSelected:s,isPlaceholderItem:y}});l?.(k)},"is-placeholder-item":y?"true":"false",...C},f("div",{class:"gids-list-item__main-container"},r==null||r==="none"||i?null:f(Ss,{size:"md",editButtonType:r,onPressEditButton:a}),c!=null?f("div",{class:i?"gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__leading-accessory-container"},c):null,f("div",{class:"gids-list-item__middle-content-container"},f("div",{class:"gids-list-item__leading-content-container"},f(Fe,null,b!=null?f("span",{class:i?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},b):null,f("div",{class:"gids-list-item__leading-support-content"},u!=null?typeof u=="string"?f("p",{class:i?"gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-supporting-text"},u):u:null,d!=null?typeof d=="string"?f("p",{class:i?"gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-paragraph-text"},d):d:null))),f("div",{class:"gids-list-item__trailing-content-container"},f(Fe,null,p!=null?typeof p=="string"?f("span",{class:i?"gids-list-item__trailing-content-label gids-list-item__text-content-disabled":"gids-list-item__trailing-content-label"},p):p:null,f("div",{class:"gids-list-item__trailing-support-content"},h!=null?typeof h=="string"?f("p",{class:i?"gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-supporting-text"},h):h:null,S!=null?typeof S=="string"?f("p",{class:i?"gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-paragraph-text"},S):S:null)))),w?f("div",{class:i?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},f(ve,{name:"checkmark",size:"md",appearance:"regular"})):null,w||g==null?null:f("div",{class:i?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},g)),_&&!w?f("div",{class:"gids-list-item__divider"},f(ws,{orientation:"horizontal"})):null)},{getGidsDropdownItemClassNames:Cs}=Vt,$s=({id:e,title:t,class:n,selected:s=!1,disabled:i=!1,role:o="list-item-option",value:r,name:a,onPressDropdownItem:l,index:c,defaultSelected:u,leadingAccessory:d,divider:p,isPlaceholderItem:g,...h})=>{const S=Cs(typeof n=="string"?n:void 0);return f(xs,{id:e,index:c??0,defaultSelected:u,selected:s,disabled:i,role:o,value:r,name:a,leadingAccessory:d,class:S,onPressListItem:_=>{if(_.defaultPrevented)return;const v=new CustomEvent("onPressDropdownItem",{bubbles:!0,composed:!0,detail:{id:e,title:t,value:r,disabled:i,selectedIndex:c,defaultSelected:u,isPlaceholderItem:g}});l?.(v)},divider:p,isPlaceholderItem:g,...h},t)},{getGidsCalendarYearListClassNames:Os,getGidsCalendarYearListYears:Es,isValidFourDigitYear:et}=qt,tt=Et(class extends lt{constructor(e){super(),e!==!1&&this.__registerHost(),this.type="default",this.disabledIndices=[],this.divider=!1,this.newStartYear=new Date().getFullYear(),this.newEndYear=new Date().getFullYear()+100,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.handleCalendarMenuItemSelect=t=>{const{title:n,value:s,selectedIndex:i,disabled:o,id:r}=t.detail;o||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:r,year:Number(s),disabled:!1,selectedIndex:i,startYear:this.newStartYear,endYear:this.newEndYear}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t?.detail;this.applySelection({id:n.id,year:Number(n.value),disabled:!1,selectedIndex:n.selectedIndex,startYear:this.newStartYear,endYear:this.newEndYear})},this.yearsList=()=>Es({startYear:this.newStartYear,endYear:this.newEndYear}),this.getSelectedItem=()=>{const t=this.selectedYear,n=this.yearsList(),s=n.findIndex((o=>o.value===t));let i;return s!=null&&s!==-1&&(i=n[s]),{foundItem:i,foundIndex:s}},this.isItemSelected=t=>{const{foundIndex:n}=this.getSelectedItem();return n===t}}connectedCallback(){this.attachItemListener(),this.handleStartAndEndYear()}disconnectedCallback(){this.detachItemListener()}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!1)}handleStartAndEndYear(){const e=this.startYear,t=this.endYear;return this.newStartYear=e&&e>0&&et(e)?e:new Date().getFullYear(),this.newEndYear=t&&t>0&&et(t)?t:this.newStartYear+100,{newStartYear:this.newStartYear,newEndYear:this.newEndYear}}applySelection(e){this.clearActive(),this.onSelectionYearChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarYearChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}render(){const e=Os();return f("div",{key:"bfcd01860c33d9e76df2050ea70a1f3b2bfaf46c",class:e},f(hs,{key:"159e5afcf58334206f70bd5dde34d9d4aa8373f7",type:this.type,supportingText:this.noOptionsText},f(vs,{key:"8ba8e9441574b35f00faad1ccf151cdd543dab90",sectionLabel:"Years"},this.yearsList().map(((t,n)=>{const s=`${n+1}`,i=this.disabledIndices?.includes(t.value);return f($s,{title:t.title,value:`${t.value}`,key:`${n.toString()}`,index:n,id:s,selected:this.isItemSelected(n),onPressDropdownItem:this.handleMenuClick,disabled:i,divider:this.divider,isPlaceholderItem:!1})})))))}get hostElement(){return this}},[0,"gids-calendar-year-list",{type:[1],noOptionsText:[1,"no-options-text"],disabledIndices:[16],divider:[4],selectedYear:[2,"selected-year"],startYear:[2,"start-year"],endYear:[2,"end-year"],onSelectionYearChange:[16],newStartYear:[32],newEndYear:[32]}]);function st(){typeof customElements<"u"&&["gids-calendar-year-list"].forEach((e=>{e==="gids-calendar-year-list"&&(customElements.get(e)||customElements.define(e,tt))}))}st();const Ps=tt,ks=st;L.GidsCalendarYearList=Ps,L.defineCustomElement=ks,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(_=>{const b=[];for(let y=0;y<_.length;y++){const m=_[y]["s-nr"]||void 0;m&&m.isConnected&&b.push(m)}return b})(S.childNodes)).forEach((_=>{h===R(_)&&g.push(_)})),d?g.filter((_=>_.nodeType===1)):g}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[n],a&&a.O===i.O&&e.S&&Ie(e.S)),o},Ie=e=>{O.i|=1;const t=e.closest(Y.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const i of n?s.reverse():s)i["s-sh"]!=null&&(j(t,i,n??null),i["s-sh"]=void 0,U=!0)}O.i&=-2},Z=(e,t)=>{O.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"]===Y&&n.push(s)}for(let s=n.length-1;s>=0;s--){const i=n[s];i["s-hn"]!==Y&&i["s-ol"]&&(j(H(i).parentNode,i,H(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,U=!0),t&&Z(i,t)}O.i&=-2},Le=(e,t,n,s,i,o)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===Y&&(a=a.shadowRoot),n.O==="template"&&(a=a.content);i<=o;++i)s[i]&&(r=K(null,n,i),r&&(s[i].S=r,j(a,r,H(t))))},Ge=(e,t,n)=>{for(let s=t;s<=n;++s){const i=e[s];if(i){const o=i.S;Me(i),o&&(q=!0,o["s-ol"]?o["s-ol"].remove():Z(o,!0),o.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.$),H=e=>e&&e["s-ol"]||e,D=(e,t,n=!1)=>{const s=t.S=e.S,i=e.m,o=t.m,r=t.O,a=t.h;let l;a==null?(E=r==="svg"||r!=="foreignObject"&&E,r!=="slot"||F||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Ie(t.S.parentElement)),de(e,t,E),i!==null&&o!==null?((c,u,d,p,g=!1)=>{let h,S,_=0,b=0,y=0,m=0,C=u.length-1,v=u[0],w=u[C],$=p.length-1,x=p[0],k=p[$];const nt=d.O==="template"?c.content:c;for(;_<=C&&b<=$;)if(v==null)v=u[++_];else if(w==null)w=u[--C];else if(x==null)x=p[++b];else if(k==null)k=p[--$];else if(J(v,x,g))D(v,x,g),v=u[++_],x=p[++b];else if(J(w,k,g))D(w,k,g),w=u[--C],k=p[--$];else if(J(v,k,g))v.O!=="slot"&&k.O!=="slot"||Z(v.S.parentNode,!1),D(v,k,g),j(nt,v.S,w.S.nextSibling),v=u[++_],k=p[--$];else if(J(w,x,g))v.O!=="slot"&&k.O!=="slot"||Z(w.S.parentNode,!1),D(w,x,g),j(nt,w.S,v.S),w=u[--C],x=p[++b];else{for(y=-1,m=_;m<=C;++m)if(u[m]&&u[m].$!==null&&u[m].$===x.$){y=m;break}y>=0?(S=u[y],S.O!==x.O?h=K(u&&u[b],d,y):(D(S,x,g),u[y]=void 0,h=S.S),x=p[++b]):(h=K(u&&u[b],d,b),x=p[++b]),h&&j(H(v.S).parentNode,h,H(v.S))}_>C?Le(c,p[$+1]==null?null:p[$+1].S,d,p,b,$):b>$&&Ge(u,_,C)})(s,i,t,o,n):o!==null?(e.h!==null&&(s.textContent=""),Le(s,null,t,o,0,o.length-1)):!n&&i!==null&&Ge(i,0,i.length-1),E&&r==="svg"&&(E=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},T=[],Ye=e=>{let t,n,s;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const r=o["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Ce(t,r)){let a=T.find((l=>l.k===t));q=!0,t["s-sn"]=t["s-sn"]||r,a?(a.k["s-sh"]=o["s-hn"],a.N=o):(t["s-sh"]=o["s-hn"],T.push({N:o,k:t})),t["s-sr"]&&T.map((l=>{Ce(l.k,t["s-sn"])&&(a=T.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else T.some((a=>a.k===t))||T.push({k:t})}o.nodeType===1&&Ye(o)}},Me=e=>{e.v&&e.v.ref&&ce.push((()=>e.v.ref(null))),e.m&&e.m.map(Me)},bt=(e,t)=>{ue.push((()=>e(t)))},j=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:i}=(function(o,r){var a;if(!(r=r||((a=o["s-ol"])==null?void 0:a.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=R(o)||"";return{slotNode:oe(le(r,"childNodes"),r.tagName,l)[0],slotName:l}})(t);return i&&!s&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},vt=(e,t,n=!1)=>{var s,i,o,r,a;const l=e.$hostElement$,c=e.o,u=e.M||W(null,null);var d;const p=(d=t)&&d.O===pt?t:f(null,null,t);if(Y=l.tagName,c.C&&(p.v=p.v||{},c.C.forEach((([g,h])=>{p.v[h]=l[g]}))),n&&p.v)for(const g of Object.keys(p.v))l.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(p.v[g]=l[g]);if(p.O=null,p.i|=4,e.M=p,p.S=u.S=l.shadowRoot||l,F=!(!(1&c.i)||128&c.i),re=l["s-cr"],q=!1,D(u,p,n),O.i|=1,U){Ye(p.S);for(const g of T){const h=g.k;if(!h["s-ol"]&&N.document){const S=N.document.createTextNode("");S["s-nr"]=h,j(h.parentNode,h["s-ol"]=S,h,n)}}for(const g of T){const h=g.k,S=g.N;if(h.nodeType===1&&n&&(h["s-ih"]=(s=h.hidden)!=null&&s),S){const _=S.parentNode;let b=S.nextSibling;if(b&&b.nodeType===1){let y=(i=h["s-ol"])==null?void 0:i.previousSibling;for(;y;){let m=(o=y["s-nr"])!=null?o:null;if(m&&m["s-sn"]===h["s-sn"]&&_===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===h||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){b=m;break}}y=y.previousSibling}}if((!b&&_!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==b)&&h!==b){if(j(_,h,b,n),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const y=N.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));y["s-hn"]=h["s-hn"],y["s-sn"]=h["s-sn"],y["s-sh"]=h["s-sh"],y["s-sr"]=h["s-sr"],y["s-ol"]=h["s-ol"],y["s-ol"]["s-nr"]=y,j(h.parentNode,y,h,n),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(q&&xe(p.S),O.i&=-2,T.length=0,!F&&!(1&c.i)&&l["s-cr"]){const g=p.S.__childNodes||p.S.childNodes;for(const h of g)if(h["s-hn"]!==Y&&!h["s-sh"]){if(n&&h["s-ih"]==null&&(h["s-ih"]=(a=h.hidden)!=null&&a),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const S=N.document.createComment("s-nt-"+h.nodeValue);S["s-sn"]=h["s-sn"],j(h.parentNode,S,h,n),h.parentNode.removeChild(h)}}}re=void 0,ce.forEach((g=>g())),ce.length=0,ue.forEach((g=>g())),ue.length=0},De=(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()})))}},pe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);De(e,e.R);const n=()=>St(e,t);if(!t)return dt(n);queueMicrotask((()=>{n()}))},St=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=V(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=Be(i,(()=>V(s,"componentWillRender",void 0,n))),Be(i,(()=>wt(e,s,t)))},Be=(e,t)=>_t(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),_t=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",wt=async(e,t,n)=>{var s;const i=e.$hostElement$,o=i["s-rc"];n&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,u=((d,p)=>{var g,h,S;const _=$e(p),b=z.get(_);if(!N.document)return _;if(d=d.nodeType===11?d:N.document,b)if(typeof b=="string"){let y,m=I.get(d=d.head||d);if(m||I.set(d,m=new Set),!m.has(_)){y=N.document.createElement("style"),y.textContent=b;const C=(g=O._)!=null?g:(function(){var v,w,$;return($=(w=(v=N.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?$:void 0})();if(C!=null&&y.setAttribute("nonce",C),!(1&p.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),w=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(y,w?.parentNode===d?w:null)}else if("host"in d)if(ee){const v=new((h=d.defaultView)!=null?h:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(b),te?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=b+v.textContent:d.prepend(y)}else d.append(y);1&p.i&&d.insertBefore(y,null),4&p.i&&(y.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(_)}}else{let y=I.get(d);if(y||I.set(d,y=new Set),!y.has(_)){const m=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let C;if(b.constructor===m.CSSStyleSheet)C=b;else{C=new m.CSSStyleSheet;for(let v=0;v<b.cssRules.length;v++)C.insertRule(b.cssRules[v].cssText,v)}te?d.adoptedStyleSheets.push(C):d.adoptedStyleSheets=[...d.adoptedStyleSheets,C],y.add(_)}}return _})(l.shadowRoot?l.shadowRoot:l.getRootNode(),a);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),Nt(e,t,i,n),o&&(o.map((r=>r())),i["s-rc"]=void 0);{const r=(s=i["s-p"])!=null?s:[],a=()=>xt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},Nt=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,vt(e,t,s)}catch(i){G(i,e.$hostElement$)}return null},xt=e=>{const t=e.$hostElement$,n=t,s=e.R;V(n,"componentDidRender",void 0,t),64&e.i?V(n,"componentDidUpdate",void 0,t):(e.i|=64,$t(t),V(n,"componentDidLoad",void 0,t),e.L(t),s||Ct()),e.A&&(e.A(),e.A=void 0),512&e.i&&ie((()=>pe(e,!1))),e.i&=-517},Ct=()=>{ie((()=>gt(N,"appload",{detail:{namespace:"gids-core-web"}})))},V=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(i){G(i,s)}},$t=e=>e.classList.add("hydrated"),Re=(e,t,n,s)=>{const i=A(e);if(!i)return;const o=e,r=i.l.get(t),a=i.i,l=o;n=Pe(n,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(n);if(n!==r&&!c){if(i.l.set(t,n),s.F){const u=s.F[t];u&&u.map((d=>{try{const[[p,g]]=Object.entries(d);(128&a||1&g)&&(l?l[p](n,r,t):i.T.push((()=>{i.D[p](n,r,t)})))}catch(p){G(p,o)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,r,t)===!1&&!(16&a))return;16&a||pe(i,!1)}}},Ot=(e,t,n)=>{var s,i;const o=e.prototype;64&t.i&&1&n&&ot.forEach((r=>{const a=o[r];Object.defineProperty(o,r,{value(...l){var c;const u=A(this),d=this;d?typeof a=="function"&&a.call(d,...l):(c=u?.H)==null||c.then((p=>{const g=p[r];typeof g=="function"&&g.call(p,...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 r=Object.entries((s=t.t)!=null?s:{});r.map((([a,[l]])=>{if(31&l||32&l){const{get:c,set:u}=M(o,a)||{};c&&(t.t[a][0]|=2048),u&&(t.t[a][0]|=4096),Object.defineProperty(o,a,{get(){return c?c.apply(this):(d=a,A(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,a,{set(d){const p=A(this);if(p){if(u)return(32&l?this[a]:p.$hostElement$[a])===void 0&&p.l.get(a)&&(d=p.l.get(a)),u.apply(this,[Pe(d,l,!!(64&t.i))]),void Re(this,a,d=32&l?this[a]:p.$hostElement$[a],t);Re(this,a,d,t)}}})}}));{const a=new Map;o.attributeChangedCallback=function(l,c,u){O.jmp((()=>{var d;const p=a.get(l),g=A(this);if(this.hasOwnProperty(p),o.hasOwnProperty(p)&&typeof this[p]=="number"&&this[p]==u)return;if(p==null){const y=g?.i;if(g&&y&&!(8&y)&&u!==c){const m=this,C=(d=t.F)==null?void 0:d[l];C?.forEach((v=>{const[[w,$]]=Object.entries(v);m[w]!=null&&(128&y||1&$)&&m[w].call(m,u,c,l)}))}return}const h=r.find((([y])=>y===p)),S=h&&4&h[1][0],_=S&&u===null&&this[p]===void 0;S&&(u=u!==null&&u!=="false");const b=Object.getOwnPropertyDescriptor(o,p);_||u==this[p]||b.get&&!b.set||(this[p]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...r.filter((([l,c])=>31&c[0])).map((([l,c])=>{var u;const d=c[1]||l;return a.set(d,l),512&c[0]&&((u=t.C)==null||u.push([l,d])),d}))]))}}return e},Et=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Ee(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,r)=>{const a={i:0,$hostElement$:o,o:r,l:new Map,B:new Map};a.H=new Promise((c=>a.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=a;o.__stencil__getHostRef=()=>l,512&r.i&&it(o,a)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=A(this);if(!o)return;He(this,o,n.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&O.i)){const r=A(o);if(!r)return;const a=r.o;if(1&r.i)He(o,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!N.document)return;const c=l["s-cr"]=N.document.createComment("");c["s-cn"]=!0,j(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){De(r,r.R=l);break}}a.t&&Object.entries(a.t).map((([l,[c]])=>{if(31&c&&Object.prototype.hasOwnProperty.call(o,l)){const u=o[l];delete o[l],o[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=$e(u);z.has(S)||((_,b,y)=>{let m=z.get(_);ee&&y?(m=m||new CSSStyleSheet,typeof m=="string"?m=b:m.replaceSync(b)):m=b,z.set(_,m)})(S,h,!!(1&u.i))}const p=c.R,g=()=>pe(c,!0);p&&p["s-rc"]?p["s-rc"].push(g):g()}catch(p){G(p,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,r,a)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{if(!(1&O.i)){const r=A(o);r?.V&&(r.V.map((a=>a())),r.V=void 0)}I.has(o)&&I.delete(o),o.shadowRoot&&I.has(o.shadowRoot)&&I.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else ct.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),Ot(e,n,3)}catch(s){return G(s),e}},Fe=(e,t)=>t,He=(e,t,n)=>{n&&N.document&&n.map((([s,i,o])=>{const r=kt(N.document,e,s),a=Pt(t,o),l=jt(s);O.ael(r,i,a,l),(t.V=t.V||[]).push((()=>O.rel(r,i,a,l)))}))},Pt=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){G(s,e.$hostElement$)}},kt=(e,t,n)=>8&n?N:t,jt=e=>rt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function js(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 i=e.length;for(t=0;t<i;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 P(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Ve(e))&&(s&&(s+=" "),s+=t);return s}const At=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>P("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),Tt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:n},s)=>P("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"})),It=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerClassNames:({size:e},t)=>P("gids-spinner",{"gids-spinner--xs":e==="xs","gids-spinner--sm":e==="sm","gids-spinner--lg":e==="lg","gids-spinner--xl":e==="xl","gids-spinner--2xl":e==="2xl"},t)},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>P("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"})),Gt=Object.freeze(Object.defineProperty({__proto__:null,getElementVisibility:e=>{const{label:t,supportingText:n}=e,s=typeof t=="string"&&t.trim().length>0,i=typeof n=="string"&&n.trim().length>0;return{hasLabel:s,hasSupportingText:i}}},Symbol.toStringTag,{value:"Module"})),Q=64,ze=10,We=Q/2-ze/2,Yt=Q/2,he=2*Math.PI*We,Mt=`0 0 ${Q} ${Q}`,Dt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const n=typeof t=="number"&&t>0?t:1,i=Math.max(0,Math.min(n,e))/n*100,o=(he*i/100).toFixed(2),r=(he-parseFloat(o)).toFixed(2);return`${o} ${r}`},centerPosition:Yt,circumference:he,radius:We,thickness:ze,viewBox:Mt},Symbol.toStringTag,{value:"Module"})),Bt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonGroupClassNames:({layout:e},t)=>P("gids-button-group",{"gids-button-group--scroll":e==="scroll"},t)},Symbol.toStringTag,{value:"Module"})),Rt=Object.freeze(Object.defineProperty({__proto__:null,getGidsHeadingClassNames:e=>P("gids-heading",e),getGidsHeadingSupportingTextTypographyClass:e=>e&&e.toString()!==""&&e!=="(none)"?`gids-typography-${e}`:""},Symbol.toStringTag,{value:"Module"})),Ft=Object.freeze(Object.defineProperty({__proto__:null,getGidsEditButtonClassNames:({size:e},t)=>P("gids-edit-button",{"gids-edit-button--xs":e==="xs","gids-edit-button--sm":e==="sm","gids-edit-button--lg":e==="lg"},t)},Symbol.toStringTag,{value:"Module"})),Ht=Object.freeze(Object.defineProperty({__proto__:null,getGidsListItemClassNames:({disabled:e,selected:t},n)=>P("gids-list-item",{"gids-list-item--selected":t,"gids-list-item--disabled":e},n)},Symbol.toStringTag,{value:"Module"})),Vt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownItemClassNames:e=>P("gids-dropdown-item",e)},Symbol.toStringTag,{value:"Module"})),zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuClassNames:e=>P("gids-dropdown-menu",e)},Symbol.toStringTag,{value:"Module"})),Wt=Object.freeze(Object.defineProperty({__proto__:null,getGidsDropdownMenuGroupClassNames:({type:e},t)=>P("gids-dropdown-menu-group",{"gids-dropdown-menu-group--default":e==="default","gids-dropdown-menu-group--no-options":e==="no-options","gids-dropdown-menu-group--loading":e==="loading"},t)},Symbol.toStringTag,{value:"Module"})),qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsCalendarYearListClassNames:e=>P("gids-calendar-year-list",e),getGidsCalendarYearListYears:({startYear:e,endYear:t})=>{const n=[];let s=1;for(let i=e;i<=t;i+=1)n.push({id:`${s}_${i}`,title:`${i}`,value:i}),s=s+1;return n},isValidFourDigitYear:e=>{const t=e.toString().trim();if(!/^\d{4}$/.test(t))return!1;const s=parseInt(t,10);return s>=1e3&&s<=9999}},Symbol.toStringTag,{value:"Module"})),fe=Symbol("defaultPath"),qe=Symbol("pathSet"),ge="gids-asset-paths-set";class Ut extends EventTarget{#s=new Map;constructor(){super()}#e(t,n){this.#s.set(t,n)}#t(t){return this.#s.get(t)??null}#n=()=>{this.dispatchEvent(new Event(ge))};haveAssetPathsBeenSet(){return this.#t(qe)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(fe,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(fe,n)}this.#e(qe,"true"),setTimeout(this.#n,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(fe);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ge,t,{once:!0}),()=>{this.removeEventListener(ge,t)}}}const me=Symbol.for("GIDS"),Kt=()=>(globalThis[me]===void 0&&(globalThis[me]={assetPaths:{}}),globalThis[me]),Zt=e=>{const t=Kt().assetPaths;return t[e]===void 0&&(t[e]=new Ut),t[e]};function ye(){return Zt("@ganpatiinfo/gids-web-shared")}function Jt(){return ye().haveAssetPathsBeenSet()}function Ue(e){return ye().getAssetFilePath(e)}function Qt(e){return ye().onAssetPathsSet(e)}let Xt=0;const es=(e,t="gids")=>e||`${t}-${Xt++}`,{getGidsSpinnerControlClassNames:ts}=Tt,{calculateStrokeDasharray:ss,thickness:Ke,radius:Ze,centerPosition:X,viewBox:ns}=Dt,is=({size:e,indeterminate:t,value:n,max:s,...i})=>{let o;return t||(o={strokeDashArray:ss(n,s||0),strokeDashoffset:"0"}),f("svg",{class:ts({size:e,indeterminate:t,value:n}),viewBox:ns,...i},f("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ze,"stroke-width":Ke}),f("circle",{style:o,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ze,"stroke-width":Ke}))},{getGidsSpinnerClassNames:os}=It,{getElementVisibility:ls}=Gt,rs=({label:e,supportingText:t,size:n,indeterminate:s,value:i,max:o,class:r,...a})=>{const{hasLabel:l,hasSupportingText:c}=ls({label:e,supportingText:t});return f("span",{class:os({size:n},r),...a},f(is,{size:n,indeterminate:s,value:i,max:o}),l&&f("span",{class:"gids-spinner__label"},e),c&&f("span",{class:"gids-spinner__supporting-text"},t))},Je={"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"]},Qe=new Map;for(const e in Je)for(const t of Je[e])Qe.set(t,e);function as(e){return Qe.get(e)}function Xe(e,t="regular",n){const s=as(e);let i=s??"";return n&&s&&(i=n(s)??s),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:ds}=Lt,be=({name:e,size:t,appearance:n,alt:s,class:i,titleId:o,src:r,...a})=>{const l=es(o);let c=r;return c===void 0&&Jt()&&(c=Xe(e,n,Ue)),f("svg",{ref:u=>{c===void 0&&Qt((()=>{(function(d,p,g){if(!d)return;const h=document.createElementNS("http://www.w3.org/2000/svg","use");h.setAttribute("href",Xe(p,g,Ue)),d.appendChild(h)})(u,e,n)}))},width:"16",height:"16",class:ds({size:t},i),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&f("title",{id:l},s||e),c!==void 0?f("use",{href:c}):null)},{getGidsButtonGroupClassNames:cs}=Bt,us=({layout:e,class:t},n)=>f("span",{class:cs({layout:e},t)},n),{getGidsDropdownMenuGroupClassNames:ps}=Wt,hs=({type:e="no-options",supportingText:t="No options",class:n,...s},i)=>f("div",{class:ps({type:e},n),...s},e==="loading"?f(rs,{indeterminate:!0,size:"md"}):null,e==="no-options"?f("span",null,t):null,e==="default"&&i!=null?i:null),{getGidsHeadingClassNames:fs,getGidsHeadingSupportingTextTypographyClass:gs}=Rt,ms=({heading:e,supportingText:t,level:n="section",children:s,supportingTextTypography:i,class:o})=>f("div",{class:fs(o)},f("div",{class:"gids-heading__content-container"},e!=null&&e!==""?typeof e=="string"?e!==""?f("span",{class:n==="section"?"gids-heading__heading-text-section":"gids-heading__heading-text-group"},e):null:e:null,t!=null&&t!==""?typeof t=="string"?t!==""?f("span",{class:`${n==="section"?"gids-heading__supporting-text-section":"gids-heading__supporting-text-group"} ${gs(i)}`},t):null:t:null),s?f(us,{layout:"wrap"},s):null),{getGidsDropdownMenuClassNames:ys}=zt,bs=({sectionLabel:e,class:t,...n},s)=>f("div",{class:ys(t),...n},e!=null&&e!==""?f(ms,{supportingText:e,supportingTextTypography:"eyebrow-medium"}):null,s!=null?f("div",{class:"gids-dropdown-menu__children"},s):null),{getGidsEditButtonClassNames:vs}=Ft,Ss=({disabled:e,children:t,size:n="md",editButtonType:s="add",onPressEditButton:i,class:o,...r})=>f("button",{class:vs({size:n},o),...r,onClick:i,disabled:e},s==="custom"&&t?f("div",null,t):s==="add"?f("div",{class:e?"gids-edit-button__add gids-edit-button__disabled":"gids-edit-button__add"},f(be,{name:"add",appearance:"filled",size:n})):s==="remove"?f("div",{class:e?"gids-edit-button__remove gids-edit-button__disabled":"gids-edit-button__remove"},f(be,{appearance:"filled",name:"remove",size:n})):void 0),{getGidsDividerClassNames:_s}=At,ws=({orientation:e})=>f("hr",{class:_s({orientation:e})}),{getGidsListItemClassNames:Ns}=Ht,xs=({id:e,value:t,index:n,defaultSelected:s,disabled:i,selected:o,editButton:r,onPressEditButton:a,onPressListItem:l,leadingAccessory:c,leadingSupport:u,leadingParagraph:d,trailingContent:p,trailingAccessory:g,trailingSupport:h,trailingParagraph:S,divider:_,role:b="list-item-option",isPlaceholderItem:y,class:m,...C},v)=>{const w=o||s;return f("button",{type:"button",id:e,class:Ns({selected:w,disabled:i},m),role:b,"aria-selected":w?"true":"false",disabled:i,value:(()=>{if(typeof t=="string"&&t.trim()!=="")return t;const $=v;return $?(Array.isArray($)?$:[$]).map((x=>typeof x=="string"||typeof x=="number"?String(x):x&&typeof x=="object"&&"text"in x?x.text??"":"")).join("").trim():""})(),tabIndex:n,onClick:$=>{const x=$.currentTarget;if(!x||$.defaultPrevented||x.disabled)return;const k=new CustomEvent("onPressListItem",{bubbles:!0,composed:!0,detail:{selectedIndex:n,defaultSelected:s,isPlaceholderItem:y}});l?.(k)},"is-placeholder-item":y?"true":"false",...C},f("div",{class:"gids-list-item__main-container"},r==null||r==="none"||i?null:f(Ss,{size:"md",editButtonType:r,onPressEditButton:a}),c!=null?f("div",{class:i?"gids-list-item__leading-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__leading-accessory-container"},c):null,f("div",{class:"gids-list-item__middle-content-container"},f("div",{class:"gids-list-item__leading-content-container"},f(Fe,null,v!=null?f("span",{class:i?"gids-list-item__leading-content-label gids-list-item__text-content-disabled":"gids-list-item__leading-content-label"},v):null,f("div",{class:"gids-list-item__leading-support-content"},u!=null?typeof u=="string"?f("p",{class:i?"gids-list-item__leading-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-supporting-text"},u):u:null,d!=null?typeof d=="string"?f("p",{class:i?"gids-list-item__leading-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__leading-content-paragraph-text"},d):d:null))),f("div",{class:"gids-list-item__trailing-content-container"},f(Fe,null,p!=null?typeof p=="string"?f("span",{class:i?"gids-list-item__trailing-content-label gids-list-item__text-content-disabled":"gids-list-item__trailing-content-label"},p):p:null,f("div",{class:"gids-list-item__trailing-support-content"},h!=null?typeof h=="string"?f("p",{class:i?"gids-list-item__trailing-content-supporting-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-supporting-text"},h):h:null,S!=null?typeof S=="string"?f("p",{class:i?"gids-list-item__trailing-content-paragraph-text gids-list-item__text-content-disabled":"gids-list-item__trailing-content-paragraph-text"},S):S:null)))),w?f("div",{class:i?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},f(be,{name:"checkmark",size:"md",appearance:"regular"})):null,w||g==null?null:f("div",{class:i?"gids-list-item__trailing-accessory-container gids-list-item__accessory-content-disabled":"gids-list-item__trailing-accessory-container"},g)),_&&!w?f("div",{class:"gids-list-item__divider"},f(ws,{orientation:"horizontal"})):null)},{getGidsDropdownItemClassNames:Cs}=Vt,$s=({id:e,title:t,class:n,selected:s=!1,disabled:i=!1,role:o="list-item-option",value:r,name:a,onPressDropdownItem:l,index:c,defaultSelected:u,leadingAccessory:d,divider:p,isPlaceholderItem:g,...h})=>{const S=Cs(typeof n=="string"?n:void 0);return f(xs,{id:e,index:c??0,defaultSelected:u,selected:s,disabled:i,role:o,value:r,name:a,leadingAccessory:d,class:S,onPressListItem:_=>{if(_.defaultPrevented)return;const b=new CustomEvent("onPressDropdownItem",{bubbles:!0,composed:!0,detail:{id:e,title:t,value:r,disabled:i,selectedIndex:c,defaultSelected:u,isPlaceholderItem:g}});l?.(b)},divider:p,isPlaceholderItem:g,...h},t)},{getGidsCalendarYearListClassNames:Os,getGidsCalendarYearListYears:Es,isValidFourDigitYear:et}=qt,tt=Et(class extends lt{constructor(e){super(),e!==!1&&this.__registerHost(),this.type="default",this.disabledIndices=[],this.divider=!1,this.newStartYear=new Date().getFullYear(),this.newEndYear=new Date().getFullYear()+100,this.hasItemListener=!1,this.suppressNextMenuClickSelection=!1,this.handleCalendarMenuItemSelect=t=>{const{title:n,value:s,selectedIndex:i,disabled:o,id:r}=t.detail;o||typeof n!="string"||(this.suppressNextMenuClickSelection=!0,queueMicrotask((()=>{this.suppressNextMenuClickSelection=!1})),this.applySelection({id:r,year:Number(s),disabled:!1,selectedIndex:i,startYear:this.newStartYear,endYear:this.newEndYear}))},this.handleMenuClick=t=>{if(this.suppressNextMenuClickSelection)return;const n=t?.detail;this.applySelection({id:n.id,year:Number(n.value),disabled:!1,selectedIndex:n.selectedIndex,startYear:this.newStartYear,endYear:this.newEndYear})},this.yearsList=()=>Es({startYear:this.newStartYear,endYear:this.newEndYear}),this.getSelectedItem=()=>{const t=this.selectedYear,n=this.yearsList(),s=n.findIndex((o=>o.value===t));let i;return s!=null&&s!==-1&&(i=n[s]),{foundItem:i,foundIndex:s}},this.isItemSelected=t=>{const{foundIndex:n}=this.getSelectedItem();return n===t}}connectedCallback(){this.attachItemListener(),this.handleStartAndEndYear()}disconnectedCallback(){this.detachItemListener()}getItemElements(){return Array.from(this.hostElement.querySelectorAll(".gids-dropdown-item"))}attachItemListener(){this.hasItemListener||(this.hostElement.addEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!0)}detachItemListener(){this.hasItemListener&&(this.hostElement.removeEventListener("onPressDropdownItem",this.handleCalendarMenuItemSelect),this.hasItemListener=!1)}handleStartAndEndYear(){const e=this.startYear,t=this.endYear;return this.newStartYear=e&&e>0&&et(e)?e:new Date().getFullYear(),this.newEndYear=t&&t>0&&et(t)?t:this.newStartYear+100,{newStartYear:this.newStartYear,newEndYear:this.newEndYear}}applySelection(e){this.clearActive(),this.onSelectionYearChange?.(e),this.hostElement.dispatchEvent(new CustomEvent("gidsCalendarYearChange",{bubbles:!0,composed:!0,detail:e}))}clearActive(){this.getItemElements().forEach((e=>e.classList.remove("gids-dropdown-item--active")))}render(){const e=Os();return f("div",{key:"437079d36b448c67c91fd2bb32bee64b6f57520d",class:e},f(hs,{key:"2bddf92e842bbc64b382d62a9f35a238496ce9c7",type:this.type,supportingText:this.noOptionsText},f(bs,{key:"272a885760064e8c6979d2acd895df5babda30c9",sectionLabel:"Years"},this.yearsList().map(((t,n)=>{const s=`${n+1}`,i=this.disabledIndices?.includes(t.value);return f($s,{title:t.title,value:`${t.value}`,key:`${n.toString()}`,index:n,id:s,selected:this.isItemSelected(n),onPressDropdownItem:this.handleMenuClick,disabled:i,divider:this.divider,isPlaceholderItem:!1})})))))}get hostElement(){return this}},[0,"gids-calendar-year-list",{type:[1],noOptionsText:[1,"no-options-text"],disabledIndices:[16],divider:[4],selectedYear:[2,"selected-year"],startYear:[2,"start-year"],endYear:[2,"end-year"],onSelectionYearChange:[16],newStartYear:[32],newEndYear:[32]}]);function st(){typeof customElements<"u"&&["gids-calendar-year-list"].forEach((e=>{e==="gids-calendar-year-list"&&(customElements.get(e)||customElements.define(e,tt))}))}st();const Ps=tt,ks=st;L.GidsCalendarYearList=Ps,L.defineCustomElement=ks,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
|