@ganpatiinfo/gids-core-web 10.1.0 → 10.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/index.css +201 -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-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.d.ts +11 -0
- package/dist/gids-tab-item.js +1 -0
- package/dist/gids-tab.d.ts +11 -0
- package/dist/gids-tab.js +1 -0
- package/dist/gids-text-field.js +1 -1
- package/dist/gids-toggle-button.js +1 -1
- package/dist/gids-tooltip.js +1 -1
- package/dist/{p-DfxTsSdZ.js → p-5VIPb1eU.js} +1 -1
- package/dist/{p-Db62Pz3n.js → p-8tOn5SjU.js} +1 -1
- package/dist/{p-V48JyMbP.js → p-B1Jgtjhu.js} +1 -1
- package/dist/{p-mZJdpfOo.js → p-BYDimyG-.js} +1 -1
- package/dist/{p-DPIK2ayL.js → p-BfnzH6wp.js} +1 -1
- package/dist/p-Bj28yqMD.js +1 -0
- package/dist/{p-CW7tw1Fb.js → p-C-cUL-aA.js} +1 -1
- package/dist/{p-DNTv2BQ5.js → p-C7ifjRCE.js} +1 -1
- package/dist/{p-JjN8U9B5.js → p-Ciw-O9qN.js} +1 -1
- package/dist/{p-BpQB6ncp.js → p-DiNad9Px.js} +1 -1
- package/dist/{p-CQH7eAs3.js → p-DoPuGtJd.js} +1 -1
- package/dist/{p-BQ-ZnlnH.js → p-Doi8Yizl.js} +1 -1
- package/dist/{p-BZCJlqVe.js → p-Jdpe4Sgj.js} +1 -1
- package/dist/{p-CP1wz2PI.js → p-bPPm7cuw.js} +1 -1
- package/dist/{p-DoCwI_bx.js → p-qb1aWgjh.js} +1 -1
- package/dist/{p-H1JIMJ2t.js → p-qrjEbv6g.js} +1 -1
- package/dist/{p-Cn3-K5eR.js → p-xITwQAMz.js} +1 -1
- package/dist/types/components/webComponents/GidsTab/GidsTab.d.ts +17 -0
- package/dist/types/components/webComponents/GidsTabItem/GidsTabItem.d.ts +29 -0
- package/dist/types/components.d.ts +123 -2
- package/dist-bundled/es/gids-action-bar.js +4 -4
- 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 +33 -33
- package/dist-bundled/es/gids-chart-legend-item.js +4 -4
- package/dist-bundled/es/gids-chart-legend.js +4 -4
- package/dist-bundled/es/gids-chart.js +6 -6
- package/dist-bundled/es/gids-chevron-button.js +4 -4
- package/dist-bundled/es/gids-dot.js +3 -3
- package/dist-bundled/es/gids-dropdown-field.js +10 -10
- package/dist-bundled/es/gids-dropdown-picker.js +2 -2
- package/dist-bundled/es/gids-dropdown.js +1 -1
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-filter.js +3 -3
- package/dist-bundled/es/gids-icon.js +4 -4
- package/dist-bundled/es/gids-input.js +4 -4
- package/dist-bundled/es/gids-line-chart.js +4 -4
- package/dist-bundled/es/gids-overflow-container.js +9 -9
- package/dist-bundled/es/gids-overlay-provider.js +2 -2
- package/dist-bundled/es/gids-password-field.js +19 -19
- 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 +100 -0
- package/dist-bundled/es/gids-tab.js +63 -0
- package/dist-bundled/es/gids-text-field.js +9 -9
- package/dist-bundled/es/gids-toggle-button.js +4 -4
- package/dist-bundled/es/gids-tooltip.js +4 -4
- package/dist-bundled/es/nonEmpty-B284_5ai.js +4 -0
- package/dist-bundled/es/{p-DfxTsSdZ-C2Afv1lS.js → p-5VIPb1eU-MCAo8JCp.js} +2 -2
- package/dist-bundled/es/{p-Db62Pz3n-DpQjwBYb.js → p-8tOn5SjU-D9rZ28cf.js} +10 -10
- package/dist-bundled/es/{p-V48JyMbP-Bx-0od-Z.js → p-B1Jgtjhu-B_VYp-ZP.js} +7 -7
- package/dist-bundled/es/{p-mZJdpfOo-DicbKil0.js → p-BYDimyG--DBCLrqDJ.js} +6 -6
- package/dist-bundled/es/{p-DPIK2ayL-DPEbctqo.js → p-BfnzH6wp-BfLC7Nak.js} +2 -2
- package/dist-bundled/es/{p-DmLoB2Dn-D-FSoCvI.js → p-Bj28yqMD-Dz1SWSqM.js} +6 -6
- package/dist-bundled/es/{p-CW7tw1Fb-DtJ5TwCU.js → p-C-cUL-aA-2jsvw-Lr.js} +11 -11
- package/dist-bundled/es/{p-DNTv2BQ5-Bwgd30mM.js → p-C7ifjRCE-CRlorwoN.js} +12 -12
- package/dist-bundled/es/{p-JjN8U9B5-GeWjfJBY.js → p-Ciw-O9qN-DkWfirFu.js} +4 -4
- package/dist-bundled/es/{p-BpQB6ncp-C2AWddf-.js → p-DiNad9Px-uOCMHqAq.js} +9 -9
- package/dist-bundled/es/{p-CQH7eAs3-BVowyVGn.js → p-DoPuGtJd-DYlbhh57.js} +2 -2
- package/dist-bundled/es/{p-BQ-ZnlnH-CUVdDHzX.js → p-Doi8Yizl-BszWK5Dq.js} +3 -3
- package/dist-bundled/es/{p-BZCJlqVe-BcSwze-q.js → p-Jdpe4Sgj-acwaxLtK.js} +5 -5
- package/dist-bundled/es/p-UVmSPzTd-6vjXok6h.js +26 -0
- package/dist-bundled/es/{p-CP1wz2PI-DhVAsHFS.js → p-bPPm7cuw-B-dtPJF9.js} +5 -5
- package/dist-bundled/es/{p-DoCwI_bx-BXHlZI7-.js → p-qb1aWgjh-CzmMPIME.js} +6 -6
- package/dist-bundled/es/{p-H1JIMJ2t-DEXp7M4I.js → p-qrjEbv6g-ITSp3ky_.js} +2 -2
- package/dist-bundled/es/{p-Cn3-K5eR-tQ1EOnDF.js → p-xITwQAMz-BMXjOAAQ.js} +12 -12
- 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 +1 -1
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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-field.umd.js +2 -2
- 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 +1 -1
- package/dist-bundled/umd/gids-line-chart.umd.js +1 -1
- 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 +1 -1
- 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 +5 -0
- package/dist-bundled/umd/gids-tab.umd.js +5 -0
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-toggle-button.umd.js +3 -3
- package/dist-bundled/umd/gids-tooltip.umd.js +1 -1
- package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
- package/package.json +20 -4
- package/dist/p-DmLoB2Dn.js +0 -1
- package/dist-bundled/es/p-UVmSPzTd-DiTxS9kW.js +0 -25
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(M,F){typeof exports=="object"&&typeof module<"u"?F(exports):typeof define=="function"&&define.amd?define(["exports"],F):(M=typeof globalThis<"u"?globalThis:M||self,F(M.gidsCoreWebGidsTextField={}))})(this,(function(M){"use strict";function F(e,t,i){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!i||n.get))return n;e=Object.getPrototypeOf(e)}}var G,
|
|
1
|
+
(function(M,F){typeof exports=="object"&&typeof module<"u"?F(exports):typeof define=="function"&&define.amd?define(["exports"],F):(M=typeof globalThis<"u"?globalThis:M||self,F(M.gidsCoreWebGidsTextField={}))})(this,(function(M){"use strict";function F(e,t,i){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const n=Object.getOwnPropertyDescriptor(e,t);if(n&&(!i||n.get))return n;e=Object.getPrototypeOf(e)}}var G,vt=(e,t)=>{var i;Object.entries((i=t.o.t)!=null?i:{}).map((([s,[n]])=>{if(31&n||32&n){const o=e[s],r=F(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)}}))},k=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},we=(e,t)=>t in e,j=(e,t)=>(0,console.error)(e,t),W=new Map,Te="http://www.w3.org/1999/xlink",bt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],x=typeof window<"u"?window:{},ie=x.HTMLElement||class{},T={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,i,s)=>e.addEventListener(t,i,s),rel:(e,t,i,s)=>e.removeEventListener(t,i,s),ce:(e,t)=>new CustomEvent(e,t)},yt=(()=>{var e;let t=!1;try{(e=x.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),ne=(()=>{try{return!!x.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),oe=!!ne&&!!x.document&&Object.getOwnPropertyDescriptor(x.document.adoptedStyleSheets,"length").writable,le=!1,Ee=[],Le=[],St=(e,t)=>i=>{e.push(i),le||(le=!0,4&T.i?ae(re):T.raf(re))},Ne=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){j(i)}e.length=0},re=()=>{Ne(Ee),Ne(Le),(le=Ee.length>0)&&T.raf(re)},ae=e=>Promise.resolve(void 0).then(e),xt=St(Le);function Ct(){const e=this.attachShadow({mode:"open"});G===void 0&&(G=null),G&&(oe?e.adoptedStyleSheets.push(G):e.adoptedStyleSheets=[...e.adoptedStyleSheets,G])}var $e=e=>{const t=ce(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&de(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!wt(s,B(s),!1).length)}));let i=0;for(i=0;i<t.length;i++){const s=t[i];s.nodeType===1&&ce(s,"childNodes").length&&$e(s)}};function de(e,t,i){let s,n=0,o=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(i===void 0||B(s)===i)&&(o.push(s),i!==void 0))return o;o=[...o,...de(s.childNodes,t,i)]}return o}var wt=(e,t,i=!0)=>{const s=[];(i&&e["s-sr"]||!e["s-sr"])&&s.push(e);let n=e;for(;n=n.nextSibling;)B(n)!==t||!i&&n["s-sr"]||s.push(n);return s},ke=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",B=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function ce(e,t){if("__"+t in e){const i=e["__"+t];return typeof i!="function"?i:i.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var ue,P,I=new WeakMap,Oe=e=>"sc-"+e.p,he=e=>(e=typeof e)=="object"||e==="function",_=(e,t,...i)=>{let s=null,n=null,o=null,r=!1,a=!1;const l=[],c=d=>{for(let h=0;h<d.length;h++)s=d[h],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((r=typeof e!="function"&&!he(s))&&(s=String(s)),r&&a?l[l.length-1].h+=s:l.push(r?U(null,s):s),a=r)};if(c(i),t){t.key&&(n=t.key),t.name&&(o=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((h=>d[h])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,Tt);const u=U(e,null);return u.v=t,l.length>0&&(u.m=l),u.$=n,u.j=o,u},U=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Ae={},Tt={forEach:(e,t)=>e.map(Ie).forEach(t),map:(e,t)=>e.map(Ie).map(t).map(Et)},Ie=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Et=e=>{if(typeof e.vtag=="function"){const i={...e.vattrs};return e.vkey&&(i.key=e.vkey),e.vname&&(i.name=e.vname),_(e.vtag,i,...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},Me=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let i=!1;for(const n of t){if(i)break;for(const o of e[n])if(typeof o=="string"){i=!0;break}}if(!i)return e;const s={};for(const n of t)s[n]=e[n].map((o=>typeof o=="string"?{[o]:0}:o));return s},je=(e,t,i)=>e==null||he(e)?e:4&t?(i&&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)=>{const i=e;return{emit:s=>Pe(i,t,{bubbles:!0,composed:!0,cancelable:!0,detail:s})}},Pe=(e,t,i)=>{const s=T.ce(t,i);return e.dispatchEvent(s),s},Fe=(e,t,i,s,n,o)=>{if(i===s)return;let r=we(e,t),a=t.toLowerCase();if(t==="class"){const l=e.classList,c=Ve(i);let u=Ve(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 i)s&&s[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)i&&s[l]===i[l]||(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else if(t!=="key"){if(t==="ref")s&&kt(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=k(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=he(s);if((r||l&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?r=!1:i!=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(Te,t):e.removeAttribute(t)):(!r||4&o||n)&&!l&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(Te,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):we(x,a)?a.slice(2):a[2]+t.slice(3),i||s){const l=t.endsWith(Re);t=t.replace($t,""),i&&T.rel(e,t,i,l),s&&T.ael(e,t,s,l)}}},Nt=/\s/,Ve=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Nt):[]),Re="Capture",$t=new RegExp(Re+"$"),fe=(e,t,i)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},o=t.v||{};for(const r of Ge(Object.keys(n)))r in o||Fe(s,r,n[r],void 0,i,t.i);for(const r of Ge(Object.keys(o)))Fe(s,r,n[r],o[r],i,t.i)};function Ge(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var D=!1,K=!1,Y=!1,E=!1,pe=[],ge=[],J=(e,t,i)=>{var s;const n=t.m[i];let o,r,a,l=0;if(D||(Y=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)o=n.S=x.document.createTextNode(n.h);else if(1&n.i)o=n.S=x.document.createTextNode(""),fe(null,n,E);else{if(E||(E=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(o=n.S=x.document.createElementNS(E?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!D&&2&n.i?"slot-fb":n.O),E&&n.O==="foreignObject"&&(E=!1),fe(null,n,E),n.m){const c=n.O==="template"?o.content:o;for(l=0;l<n.m.length;++l)r=J(e,n,l),r&&c.appendChild(r)}n.O==="svg"?E=!1:o.tagName==="foreignObject"&&(E=!0)}return o["s-hn"]=P,3&n.i&&(o["s-sr"]=!0,o["s-cr"]=ue,o["s-sn"]=n.j||"",o["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(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 S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const b=[];for(let m=0;m<y.length;m++){const g=y[m]["s-nr"]||void 0;g&&g.isConnected&&b.push(g)}return b})(S.childNodes)).forEach((y=>{f===B(y)&&p.push(y)})),d?p.filter((y=>y.nodeType===1)):p}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[i],a&&a.O===n.O&&e.S&&Be(e.S)),o},Be=e=>{T.i|=1;const t=e.closest(P.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&($(t,n,i??null),n["s-sh"]=void 0,Y=!0)}T.i&=-2},X=(e,t)=>{T.i|=1;const i=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&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==P&&n["s-ol"]&&($(q(n).parentNode,n,q(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&X(n,t)}T.i&=-2},De=(e,t,i,s,n,o)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),i.O==="template"&&(a=a.content);n<=o;++n)s[n]&&(r=J(null,i,n),r&&(s[n].S=r,$(a,r,q(t))))},qe=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const o=n.S;ze(n),o&&(K=!0,o["s-ol"]?o["s-ol"].remove():X(o,!0),o.remove())}}},Z=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,V=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,o=t.m,r=t.O,a=t.h;let l;a==null?(E=r==="svg"||r!=="foreignObject"&&E,r!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Be(t.S.parentElement)),fe(e,t,E),n!==null&&o!==null?((c,u,d,h,p=!1)=>{let f,S,y=0,b=0,m=0,g=0,w=u.length-1,v=u[0],C=u[w],L=h.length-1,N=h[0],O=h[L];const _t=d.O==="template"?c.content:c;for(;y<=w&&b<=L;)if(v==null)v=u[++y];else if(C==null)C=u[--w];else if(N==null)N=h[++b];else if(O==null)O=h[--L];else if(Z(v,N,p))V(v,N,p),v=u[++y],N=h[++b];else if(Z(C,O,p))V(C,O,p),C=u[--w],O=h[--L];else if(Z(v,O,p))v.O!=="slot"&&O.O!=="slot"||X(v.S.parentNode,!1),V(v,O,p),$(_t,v.S,C.S.nextSibling),v=u[++y],O=h[--L];else if(Z(C,N,p))v.O!=="slot"&&O.O!=="slot"||X(C.S.parentNode,!1),V(C,N,p),$(_t,C.S,v.S),C=u[--w],N=h[++b];else{for(m=-1,g=y;g<=w;++g)if(u[g]&&u[g].$!==null&&u[g].$===N.$){m=g;break}m>=0?(S=u[m],S.O!==N.O?f=J(u&&u[b],d,m):(V(S,N,p),u[m]=void 0,f=S.S),N=h[++b]):(f=J(u&&u[b],d,b),N=h[++b]),f&&$(q(v.S).parentNode,f,q(v.S))}y>w?De(c,h[L+1]==null?null:h[L+1].S,d,h,b,L):b>L&&qe(u,y,w)})(s,n,t,o,i):o!==null?(e.h!==null&&(s.textContent=""),De(s,null,t,o,0,o.length-1)):!i&&n!==null&&qe(n,0,n.length-1),E&&r==="svg"&&(E=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],He=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const o of n){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const r=o["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(ke(t,r)){let a=A.find((l=>l.k===t));K=!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"],A.push({N:o,k:t})),t["s-sr"]&&A.map((l=>{ke(l.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}o.nodeType===1&&He(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},kt=(e,t)=>{ge.push((()=>e(t)))},$=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(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"]=B(o)||"";return{slotNode:de(ce(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,i):e?.insertBefore(t,i)},Ot=(e,t,i=!1)=>{var s,n,o,r,a;const l=e.$hostElement$,c=e.o,u=e.M||U(null,null);var d;const h=(d=t)&&d.O===Ae?t:_(null,null,t);if(P=l.tagName,c.C&&(h.v=h.v||{},c.C.forEach((([p,f])=>{h.v[f]=l[p]}))),i&&h.v)for(const p of Object.keys(h.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(h.v[p]=l[p]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=l.shadowRoot||l,D=!(!(1&c.i)||128&c.i),ue=l["s-cr"],K=!1,V(u,h,i),T.i|=1,Y){He(h.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,i)}}for(const p of A){const f=p.k,S=p.N;if(f.nodeType===1&&i&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const y=S.parentNode;let b=S.nextSibling;if(b&&b.nodeType===1){let m=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(o=m["s-nr"])!=null?o: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"]){b=g;break}}m=m.previousSibling}}if((!b&&y!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==b)&&f!==b){if($(y,f,b,i),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,i),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(K&&$e(h.S),T.i&=-2,A.length=0,!D&&!(1&c.i)&&l["s-cr"]){const p=h.S.__childNodes||h.S.childNodes;for(const f of p)if(f["s-hn"]!==P&&!f["s-sh"]){if(i&&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,i),f.parentNode.removeChild(f)}}}ue=void 0,pe.forEach((p=>p())),pe.length=0,ge.forEach((p=>p())),ge.length=0},We=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},Q=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);We(e,e.R);const i=()=>At(e,t);if(!t)return xt(i);queueMicrotask((()=>{i()}))},At=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.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=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Ue(n,(()=>H(s,"componentWillRender",void 0,i))),Ue(n,(()=>Mt(e,s,t)))},Ue=(e,t)=>It(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),It=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Mt=async(e,t,i)=>{var s;const n=e.$hostElement$,o=n["s-rc"];i&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,u=((d,h)=>{var p,f,S;const y=Oe(h),b=W.get(y);if(!x.document)return y;if(d=d.nodeType===11?d:x.document,b)if(typeof b=="string"){let m,g=I.get(d=d.head||d);if(g||I.set(d,g=new Set),!g.has(y)){m=x.document.createElement("style"),m.textContent=b;const w=(p=T._)!=null?p:(function(){var v,C,L;return(L=(C=(v=x.document.head)==null?void 0:v.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?L:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&h.i))if(d.nodeName==="HEAD"){const v=d.querySelectorAll("link[rel=preconnect]"),C=v.length>0?v[v.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,C?.parentNode===d?C:null)}else if("host"in d)if(ne){const v=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;v.replaceSync(b),oe?d.adoptedStyleSheets.unshift(v):d.adoptedStyleSheets=[v,...d.adoptedStyleSheets]}else{const v=d.querySelector("style");v?v.textContent=b+v.textContent:d.prepend(m)}else d.append(m);1&h.i&&d.insertBefore(m,null),4&h.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(y)}}else{let m=I.get(d);if(m||I.set(d,m=new Set),!m.has(y)){const g=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(b.constructor===g.CSSStyleSheet)w=b;else{w=new g.CSSStyleSheet;for(let v=0;v<b.cssRules.length;v++)w.insertRule(b.cssRules[v].cssText,v)}oe?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),jt(e,t,n,i),o&&(o.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>Pt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},jt=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Ot(e,t,s)}catch(n){j(n,e.$hostElement$)}return null},Pt=e=>{const t=e.$hostElement$,i=t,s=e.R;H(i,"componentDidRender",void 0,t),64&e.i?H(i,"componentDidUpdate",void 0,t):(e.i|=64,Rt(t),H(i,"componentDidLoad",void 0,t),e.L(t),s||Vt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ae((()=>Q(e,!1))),e.i&=-517},Ft=e=>{var t;{const i=k(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&Q(i,!1),s}},Vt=()=>{ae((()=>Pe(x,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){j(n,s)}},Rt=e=>e.classList.add("hydrated"),Ke=(e,t,i,s)=>{const n=k(e);if(!n)return;const o=e,r=n.l.get(t),a=n.i,l=o;i=je(i,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(i);if(i!==r&&!c){if(n.l.set(t,i),s.F){const u=s.F[t];u&&u.map((d=>{try{const[[h,p]]=Object.entries(d);(128&a||1&p)&&(l?l[h](i,r,t):n.T.push((()=>{n.D[h](i,r,t)})))}catch(h){j(h,o)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(i,r,t)===!1&&!(16&a))return;16&a||Q(n,!1)}}},Gt=(e,t,i)=>{var s,n;const o=e.prototype;64&t.i&&1&i&&vt.forEach((r=>{const a=o[r];Object.defineProperty(o,r,{value(...l){var c;const u=k(this),d=this;d?typeof a=="function"&&a.call(d,...l):(c=u?.H)==null||c.then((h=>{const p=h[r];typeof p=="function"&&p.call(h,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Me(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}=F(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,k(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,a,{set(d){const h=k(this);if(h){if(u)return(32&l?this[a]:h.$hostElement$[a])===void 0&&h.l.get(a)&&(d=h.l.get(a)),u.apply(this,[je(d,l,!!(64&t.i))]),void Ke(this,a,d=32&l?this[a]:h.$hostElement$[a],t);Ke(this,a,d,t)}}})}}));{const a=new Map;o.attributeChangedCallback=function(l,c,u){T.jmp((()=>{var d;const h=a.get(l),p=k(this);if(this.hasOwnProperty(h),o.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const m=p?.i;if(p&&m&&!(8&m)&&u!==c){const g=this,w=(d=t.F)==null?void 0:d[l];w?.forEach((v=>{const[[C,L]]=Object.entries(v);g[C]!=null&&(128&m||1&L)&&g[C].call(g,u,c,l)}))}return}const f=r.find((([m])=>m===h)),S=f&&4&f[1][0],y=S&&u===null&&this[h]===void 0;S&&(u=u!==null&&u!=="false");const b=Object.getOwnPropertyDescriptor(o,h);y||u==this[h]||b.get&&!b.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...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},me=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Me(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,n=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&&bt(o,a)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=k(this);if(!o)return;Ye(this,o,i.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&T.i)){const r=k(o);if(!r)return;const a=r.o;if(1&r.i)Ye(o,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!x.document)return;const c=l["s-cr"]=x.document.createComment("");c["s-cn"]=!0,$(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){We(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 f;typeof d.style=="string"&&(f=d.style);const S=Oe(u);W.has(S)||((y,b,m)=>{let g=W.get(y);ne&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=b:g.replaceSync(b)):g=b,W.set(y,g)})(S,f,!!(1&u.i))}const h=c.R,p=()=>Q(c,!0);h&&h["s-rc"]?h["s-rc"].push(p):p()}catch(h){j(h,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&T.i)){const r=k(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),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ct.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Gt(e,i,3)}catch(s){return j(s),e}},Bt=(e,t)=>t,Ye=(e,t,i)=>{i&&x.document&&i.map((([s,n,o])=>{const r=qt(x.document,e,s),a=Dt(t,o),l=Ht(s);T.ael(r,n,a,l),(t.V=t.V||[]).push((()=>T.rel(r,n,a,l)))}))},Dt=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){j(s,e.$hostElement$)}},qt=(e,t,i)=>8&i?x:t,Ht=e=>yt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function ks(e){return e}const Je=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},zt=/\w/,Wt=e=>e.replace(zt,t=>t.toLocaleUpperCase()),Xe=(e,t)=>typeof e=="function"?e(t):t?Wt(e):e,Ut=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:n})=>{const o=n?n(e):Je(e);if(t==="required")return Xe(s&&s.length>0?s:"(required)",o);if(t==="optional")return Xe(i&&i.length>0?i:"(optional)",o)},isSentence:Je},Symbol.toStringTag,{value:"Module"})),ee=64,Ze=10,Qe=ee/2-Ze/2,Kt=ee/2,_e=2*Math.PI*Qe,Yt=`0 0 ${ee} ${ee}`,Jt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,o=(_e*n/100).toFixed(2),r=(_e-parseFloat(o)).toFixed(2);return`${o} ${r}`},centerPosition:Kt,circumference:_e,radius:Qe,thickness:Ze,viewBox:Yt},Symbol.toStringTag,{value:"Module"})),et=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"}));function tt(e){var t,i,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]&&(i=tt(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function z(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=tt(e))&&(s&&(s+=" "),s+=t);return s}const Xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>z("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>z("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},i,s)},Symbol.toStringTag,{value:"Module"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>z("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"})),es=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>z("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},i)},Symbol.toStringTag,{value:"Module"})),ts=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>z("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:ss}=et,is=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":ss(e)},Symbol.toStringTag,{value:"Module"})),be=Symbol("defaultPath"),st=Symbol("pathSet"),ve="gids-asset-paths-set";class ns extends EventTarget{#t=new Map;constructor(){super()}#e(t,i){this.#t.set(t,i)}#s(t){return this.#t.get(t)??null}#i=()=>{this.dispatchEvent(new Event(ve))};haveAssetPathsBeenSet(){return this.#s(st)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(be,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(be,i)}this.#e(st,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#s(t);if(i===null){const s=this.#s(be);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ve,t,{once:!0}),()=>{this.removeEventListener(ve,t)}}}const ye=Symbol.for("GIDS"),os=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),ls=e=>{const t=os().assetPaths;return t[e]===void 0&&(t[e]=new ns),t[e]};function Se(){return ls("@ganpatiinfo/gids-web-shared")}function rs(){return Se().haveAssetPathsBeenSet()}function it(e){return Se().getAssetFilePath(e)}function as(e){return Se().onAssetPathsSet(e)}let ds=0;const nt=(e,t="gids")=>e||`${t}-${ds++}`,cs=e=>e.type==="hidden",us=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&&!cs(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ot=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let xe=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{lt()})):void 0,lt=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let n=-1,o=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")){o=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:o,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==xe&&(xe&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),xe=t),R.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:o}=i;for(let r=0;r<n;r++)o.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},rt=()=>(ot||(ot=lt()),R),{getIndicatorText:hs}=Ut,{getGidsLabelClassNames:fs}=Xt,ps=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:n,htmlFor:o,labelId:r,class:a,isLabelSentence:l,...c},u)=>{const d=hs({children:u,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:l});return _("div",{class:fs({disabled:e},a),...c},_("label",{htmlFor:o,id:r},u,d&&_("span",{class:"gids-label__field-requirement"},d)),n)},at={"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"]},dt=new Map;for(const e in at)for(const t of at[e])dt.set(t,e);function gs(e){return dt.get(e)}function ct(e,t="regular",i){const s=gs(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:ms}=Qt,te=({name:e,size:t,appearance:i,alt:s,class:n,titleId:o,src:r,...a})=>{const l=nt(o);let c=r;return c===void 0&&rs()&&(c=ct(e,i,it)),_("svg",{ref:u=>{c===void 0&&as((()=>{(function(d,h,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",ct(h,p,it)),d.appendChild(f)})(u,e,i)}))},width:"16",height:"16",class:ms({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&_("title",{id:l},s||e),c!==void 0?_("use",{href:c}):null)},{getGidsDismissButtonClassNames:_s}=es,bs=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:n,label:o,...r})=>_("button",{class:_s({appearance:e,size:t},s),onClick:n,disabled:i,"aria-label":o,...r},_(te,{name:"cross",appearance:"regular"})),{getGidsFieldClassNames:vs}=ts,ys=me(class extends ie{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})??[],i=this._findTextControl(t);this._attachControlElement(i)},this._handleControlValueInput=t=>{if(!this._controlTouched){const i=t.target;i instanceof HTMLInputElement&&(i.type==="checkbox"||i.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=rt();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,i=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(i,"gids-field__status-text");n!=null&&s.push(n)}return _(Ae,{key:"f830ae3da5de21c80d9fd5b7161fa3f2845a82df"},_("div",{key:"8c6c4af1b4ebe897873a49c42975a8730905cf27",class:vs()},_("div",{key:"3afa55c23b729296ff65fb03b501919dcaa420d3",class:"gids-field__header",hidden:!this._hasLabelContent()},_("slot",{key:"6d8c9adf2b04d19a446fdd2707259d931dbc2eb9",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),_("div",{key:"46cc09d9414bb88622f95e7ccffba84b602b25f0",class:"gids-field__count","aria-live":"polite"},this.count)),_("div",{key:"0e6ddf85cf459c53f2cfc5f453cd4fe35e532d9b",class:"gids-field__control"},_("slot",{key:"d2d007d50a5f7001872b368dee5d648a8751c1af",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),_("p",{key:"09e08e474051efd8bb9e526311cd8d3bb14f8671",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?_("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(i),t!==void 0?_("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 i=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&i.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),_(te,{appearance:"filled",size:"sm",alt:"",name:t,class:i.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((i=>{i.addEventListener("input",this._handleControlValueInput),i.addEventListener("change",this._handleControlValueInput),i.addEventListener("blur",this._handleControlBlur,!0),i.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 i=t.elements.namedItem(e.name);if(i instanceof RadioNodeList){const s=Array.from(i).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const i=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(i));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 i=t,s=this._asTextControl(i);if(s!==null)return s;const n=i.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 ut(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,ys))}))}ut();const{getGidsSpinnerControlClassNames:Ss}=Zt,{calculateStrokeDasharray:xs,thickness:ht,radius:ft,centerPosition:se,viewBox:Cs}=Jt,ws=({size:e,indeterminate:t,value:i,max:s,...n})=>{let o;return t||(o={strokeDashArray:xs(i,s||0),strokeDashoffset:"0"}),_("svg",{class:Ss({size:e,indeterminate:t,value:i}),viewBox:Cs,...n},_("circle",{class:"gids-spinner-control__track",cx:se,cy:se,r:ft,"stroke-width":ht}),_("circle",{style:o,class:"gids-spinner-control__progress",cx:se,cy:se,r:ft,"stroke-width":ht}))},Ts=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const i=t.target;i===this.#t||this._isWithinInteractiveElement(i)||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(us(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 _(Bt,{key:"013d4a68291d4a3897246142cd611a2bc442d6a3"},_("slot",{key:"97f0d9030c5061b219cc35c409820b81e3d4098a",name:"leadingIcon"}),this.leadingLabel&&_("span",{key:"2f8726384a877b0bee51579661f66f6e3da811e1",class:"gids-input__label"},this.leadingLabel),_("slot",{key:"4843ddf9a10afba03ec0a552fd61cfddd3470749",name:"leadingAccessory"}),_("input",{key:"657559522ac7908ebb5dc27992cb50eb69d1fbd8",...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}),_("slot",{key:"c80c3ce3bf17f60e8f773b9c2f5dc25dacdf5446",name:"trailingAccessory"}),this.trailingLabel&&_("span",{key:"f9ba8d097b660cdeaeacc0ac1ba970d3fa839fcc",class:"gids-input__label"},this.trailingLabel),_("slot",{key:"35116e82425db12c08580460ac9c84f89faec71e",name:"trailingIcon"}),this.status==="incomplete"&&_(te,{key:"2634986e80dfbbfb98b5a4dd95829e6af3b229a0",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&_(te,{key:"63ab6b357df47d2d96ad6d3d33f22ab7864f395e",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&_(ws,{key:"1eb7af66b5005a6f8dea895c00f100e7cc6e7548",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 pt(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Ts))}))}pt();const{formatCharCount:Es}=et,{inputToGidsFieldStatus:Ls}=is,gt=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=Lt(this,"gidsTextFieldClear"),this.#t=nt(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Ft(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=rt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return _("gids-field",{key:"67703f015d57768e530aff47b206ff6716f35332",disabled:this.disabled,count:Es(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Ls(this.status)},_(ps,{key:"182405668848cdfe3960eef04a7862862fb42117",slot:"label",disabled:this.disabled,info:_("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),_("gids-input",{key:"f625d9ca7001879c392f55e806e7f080d7bb4185",ref:n=>this.#e=n,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},_("slot",{key:"4283d3712a98973ccb96d57b3d6f9fc42a0ff04e",name:"leadingIcon"}),_("slot",{key:"c61b5a4a62ecf2002426d167155fd8687f84b99f",name:"leadingAccessory"}),s&&_(bs,{key:"61d1a7b396fa1a8bacce9ade90a36de46886b3c0",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),_("slot",{key:"b1f35a7a5e7ffc719d86741033fdfc25ee20debc",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function mt(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,gt);break;case"gids-field":customElements.get(e)||ut();break;case"gids-input":customElements.get(e)||pt()}}))}mt();const Ns=gt,$s=mt;M.GidsTextField=Ns,M.defineCustomElement=$s,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const S=this["s-cr"].parentElement;return(S.__childNodes?S.childNodes:(y=>{const v=[];for(let m=0;m<y.length;m++){const g=y[m]["s-nr"]||void 0;g&&g.isConnected&&v.push(g)}return v})(S.childNodes)).forEach((y=>{f===B(y)&&p.push(y)})),d?p.filter((y=>y.nodeType===1)):p}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),a=e&&e.m&&e.m[i],a&&a.O===n.O&&e.S&&Be(e.S)),o},Be=e=>{T.i|=1;const t=e.closest(P.toLowerCase());if(t!=null){const i=Array.from(t.__childNodes||t.childNodes).find((n=>n["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const n of i?s.reverse():s)n["s-sh"]!=null&&($(t,n,i??null),n["s-sh"]=void 0,Y=!0)}T.i&=-2},X=(e,t)=>{T.i|=1;const i=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&&i.push(s)}for(let s=i.length-1;s>=0;s--){const n=i[s];n["s-hn"]!==P&&n["s-ol"]&&($(q(n).parentNode,n,q(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&X(n,t)}T.i&=-2},De=(e,t,i,s,n,o)=>{let r,a=e["s-cr"]&&e["s-cr"].parentNode||e;for(a.shadowRoot&&a.tagName===P&&(a=a.shadowRoot),i.O==="template"&&(a=a.content);n<=o;++n)s[n]&&(r=J(null,i,n),r&&(s[n].S=r,$(a,r,q(t))))},qe=(e,t,i)=>{for(let s=t;s<=i;++s){const n=e[s];if(n){const o=n.S;ze(n),o&&(K=!0,o["s-ol"]?o["s-ol"].remove():X(o,!0),o.remove())}}},Z=(e,t,i=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:i?(i&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),q=e=>e&&e["s-ol"]||e,V=(e,t,i=!1)=>{const s=t.S=e.S,n=e.m,o=t.m,r=t.O,a=t.h;let l;a==null?(E=r==="svg"||r!=="foreignObject"&&E,r!=="slot"||D||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Be(t.S.parentElement)),fe(e,t,E),n!==null&&o!==null?((c,u,d,h,p=!1)=>{let f,S,y=0,v=0,m=0,g=0,w=u.length-1,b=u[0],C=u[w],L=h.length-1,N=h[0],O=h[L];const _t=d.O==="template"?c.content:c;for(;y<=w&&v<=L;)if(b==null)b=u[++y];else if(C==null)C=u[--w];else if(N==null)N=h[++v];else if(O==null)O=h[--L];else if(Z(b,N,p))V(b,N,p),b=u[++y],N=h[++v];else if(Z(C,O,p))V(C,O,p),C=u[--w],O=h[--L];else if(Z(b,O,p))b.O!=="slot"&&O.O!=="slot"||X(b.S.parentNode,!1),V(b,O,p),$(_t,b.S,C.S.nextSibling),b=u[++y],O=h[--L];else if(Z(C,N,p))b.O!=="slot"&&O.O!=="slot"||X(C.S.parentNode,!1),V(C,N,p),$(_t,C.S,b.S),C=u[--w],N=h[++v];else{for(m=-1,g=y;g<=w;++g)if(u[g]&&u[g].$!==null&&u[g].$===N.$){m=g;break}m>=0?(S=u[m],S.O!==N.O?f=J(u&&u[v],d,m):(V(S,N,p),u[m]=void 0,f=S.S),N=h[++v]):(f=J(u&&u[v],d,v),N=h[++v]),f&&$(q(b.S).parentNode,f,q(b.S))}y>w?De(c,h[L+1]==null?null:h[L+1].S,d,h,v,L):v>L&&qe(u,y,w)})(s,n,t,o,i):o!==null?(e.h!==null&&(s.textContent=""),De(s,null,t,o,0,o.length-1)):!i&&n!==null&&qe(n,0,n.length-1),E&&r==="svg"&&(E=!1)):(l=s["s-cr"])?l.parentNode.textContent=a:e.h!==a&&(s.data=a)},A=[],He=e=>{let t,i,s;const n=e.__childNodes||e.childNodes;for(const o of n){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){i=t.parentNode.__childNodes||t.parentNode.childNodes;const r=o["s-sn"];for(s=i.length-1;s>=0;s--)if(t=i[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(ke(t,r)){let a=A.find((l=>l.k===t));K=!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"],A.push({N:o,k:t})),t["s-sr"]&&A.map((l=>{ke(l.k,t["s-sn"])&&(a=A.find((c=>c.k===t)),a&&!l.N&&(l.N=a.N))}))}else A.some((a=>a.k===t))||A.push({k:t})}o.nodeType===1&&He(o)}},ze=e=>{e.v&&e.v.ref&&pe.push((()=>e.v.ref(null))),e.m&&e.m.map(ze)},kt=(e,t)=>{ge.push((()=>e(t)))},$=(e,t,i,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,i);const{slotNode:n}=(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"]=B(o)||"";return{slotNode:de(ce(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,i):e?.insertBefore(t,i)},Ot=(e,t,i=!1)=>{var s,n,o,r,a;const l=e.$hostElement$,c=e.o,u=e.M||U(null,null);var d;const h=(d=t)&&d.O===Ae?t:_(null,null,t);if(P=l.tagName,c.C&&(h.v=h.v||{},c.C.forEach((([p,f])=>{h.v[f]=l[p]}))),i&&h.v)for(const p of Object.keys(h.v))l.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(h.v[p]=l[p]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=l.shadowRoot||l,D=!(!(1&c.i)||128&c.i),ue=l["s-cr"],K=!1,V(u,h,i),T.i|=1,Y){He(h.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,i)}}for(const p of A){const f=p.k,S=p.N;if(f.nodeType===1&&i&&(f["s-ih"]=(s=f.hidden)!=null&&s),S){const y=S.parentNode;let v=S.nextSibling;if(v&&v.nodeType===1){let m=(n=f["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(o=m["s-nr"])!=null?o: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"]){v=g;break}}m=m.previousSibling}}if((!v&&y!==(f.__parentNode||f.parentNode)||(f.__nextSibling||f.nextSibling)!==v)&&f!==v){if($(y,f,v,i),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,i),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(K&&$e(h.S),T.i&=-2,A.length=0,!D&&!(1&c.i)&&l["s-cr"]){const p=h.S.__childNodes||h.S.childNodes;for(const f of p)if(f["s-hn"]!==P&&!f["s-sh"]){if(i&&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,i),f.parentNode.removeChild(f)}}}ue=void 0,pe.forEach((p=>p())),pe.length=0,ge.forEach((p=>p())),ge.length=0},We=(e,t)=>{if(t&&!e.A&&t["s-p"]){const i=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(i-1,1),s()})))}},Q=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);We(e,e.R);const i=()=>At(e,t);if(!t)return xt(i);queueMicrotask((()=>{i()}))},At=(e,t)=>{const i=e.$hostElement$,s=i;if(!s)throw new Error(`Can't render component <${i.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=H(s,t?"componentWillLoad":"componentWillUpdate",void 0,i),n=Ue(n,(()=>H(s,"componentWillRender",void 0,i))),Ue(n,(()=>Mt(e,s,t)))},Ue=(e,t)=>It(e)?e.then(t).catch((i=>{console.error(i),t()})):t(),It=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Mt=async(e,t,i)=>{var s;const n=e.$hostElement$,o=n["s-rc"];i&&(r=>{const a=r.o,l=r.$hostElement$,c=a.i,u=((d,h)=>{var p,f,S;const y=Oe(h),v=W.get(y);if(!x.document)return y;if(d=d.nodeType===11?d:x.document,v)if(typeof v=="string"){let m,g=I.get(d=d.head||d);if(g||I.set(d,g=new Set),!g.has(y)){m=x.document.createElement("style"),m.textContent=v;const w=(p=T._)!=null?p:(function(){var b,C,L;return(L=(C=(b=x.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:C.getAttribute("content"))!=null?L:void 0})();if(w!=null&&m.setAttribute("nonce",w),!(1&h.i))if(d.nodeName==="HEAD"){const b=d.querySelectorAll("link[rel=preconnect]"),C=b.length>0?b[b.length-1].nextSibling:d.querySelector("style");d.insertBefore(m,C?.parentNode===d?C:null)}else if("host"in d)if(ne){const b=new((f=d.defaultView)!=null?f:d.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(v),oe?d.adoptedStyleSheets.unshift(b):d.adoptedStyleSheets=[b,...d.adoptedStyleSheets]}else{const b=d.querySelector("style");b?b.textContent=v+b.textContent:d.prepend(m)}else d.append(m);1&h.i&&d.insertBefore(m,null),4&h.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(y)}}else{let m=I.get(d);if(m||I.set(d,m=new Set),!m.has(y)){const g=(S=d.defaultView)!=null?S:d.ownerDocument.defaultView;let w;if(v.constructor===g.CSSStyleSheet)w=v;else{w=new g.CSSStyleSheet;for(let b=0;b<v.cssRules.length;b++)w.insertRule(v.cssRules[b].cssText,b)}oe?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),jt(e,t,n,i),o&&(o.map((r=>r())),n["s-rc"]=void 0);{const r=(s=n["s-p"])!=null?s:[],a=()=>Pt(e);r.length===0?a():(Promise.all(r).then(a).catch(a),e.i|=4,r.length=0)}},jt=(e,t,i,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Ot(e,t,s)}catch(n){j(n,e.$hostElement$)}return null},Pt=e=>{const t=e.$hostElement$,i=t,s=e.R;H(i,"componentDidRender",void 0,t),64&e.i?H(i,"componentDidUpdate",void 0,t):(e.i|=64,Rt(t),H(i,"componentDidLoad",void 0,t),e.L(t),s||Vt()),e.A&&(e.A(),e.A=void 0),512&e.i&&ae((()=>Q(e,!1))),e.i&=-517},Ft=e=>{var t;{const i=k(e),s=(t=i?.$hostElement$)==null?void 0:t.isConnected;return s&&(18&i.i)==2&&Q(i,!1),s}},Vt=()=>{ae((()=>Pe(x,"appload",{detail:{namespace:"gids-core-web"}})))},H=(e,t,i,s)=>{if(e&&e[t])try{return e[t](i)}catch(n){j(n,s)}},Rt=e=>e.classList.add("hydrated"),Ke=(e,t,i,s)=>{const n=k(e);if(!n)return;const o=e,r=n.l.get(t),a=n.i,l=o;i=je(i,s.t[t][0],!!(64&s.i));const c=Number.isNaN(r)&&Number.isNaN(i);if(i!==r&&!c){if(n.l.set(t,i),s.F){const u=s.F[t];u&&u.map((d=>{try{const[[h,p]]=Object.entries(d);(128&a||1&p)&&(l?l[h](i,r,t):n.T.push((()=>{n.D[h](i,r,t)})))}catch(h){j(h,o)}}))}if(2&a){if(l.componentShouldUpdate&&l.componentShouldUpdate(i,r,t)===!1&&!(16&a))return;16&a||Q(n,!1)}}},Gt=(e,t,i)=>{var s,n;const o=e.prototype;64&t.i&&1&i&&bt.forEach((r=>{const a=o[r];Object.defineProperty(o,r,{value(...l){var c;const u=k(this),d=this;d?typeof a=="function"&&a.call(d,...l):(c=u?.H)==null||c.then((h=>{const p=h[r];typeof p=="function"&&p.call(h,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Me(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}=F(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,k(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,a,{set(d){const h=k(this);if(h){if(u)return(32&l?this[a]:h.$hostElement$[a])===void 0&&h.l.get(a)&&(d=h.l.get(a)),u.apply(this,[je(d,l,!!(64&t.i))]),void Ke(this,a,d=32&l?this[a]:h.$hostElement$[a],t);Ke(this,a,d,t)}}})}}));{const a=new Map;o.attributeChangedCallback=function(l,c,u){T.jmp((()=>{var d;const h=a.get(l),p=k(this);if(this.hasOwnProperty(h),o.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const m=p?.i;if(p&&m&&!(8&m)&&u!==c){const g=this,w=(d=t.F)==null?void 0:d[l];w?.forEach((b=>{const[[C,L]]=Object.entries(b);g[C]!=null&&(128&m||1&L)&&g[C].call(g,u,c,l)}))}return}const f=r.find((([m])=>m===h)),S=f&&4&f[1][0],y=S&&u===null&&this[h]===void 0;S&&(u=u!==null&&u!=="false");const v=Object.getOwnPropertyDescriptor(o,h);y||u==this[h]||v.get&&!v.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...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},me=(e,t)=>{const i={i:t[0],p:t[1]};try{i.t=t[2],i.W=t[3],i.F=Me(e.F),i.P=e.P,i.U=e.U,i.C=[];const s=e.prototype.connectedCallback,n=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&&vt(o,a)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=k(this);if(!o)return;Ye(this,o,i.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&T.i)){const r=k(o);if(!r)return;const a=r.o;if(1&r.i)Ye(o,r,a.W),r?.D||r?.H&&r.H.then((()=>{}));else{r.i|=1,12&a.i&&(l=>{if(!x.document)return;const c=l["s-cr"]=x.document.createComment("");c["s-cn"]=!0,$(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){We(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 f;typeof d.style=="string"&&(f=d.style);const S=Oe(u);W.has(S)||((y,v,m)=>{let g=W.get(y);ne&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=v:g.replaceSync(v)):g=v,W.set(y,g)})(S,f,!!(1&u.i))}const h=c.R,p=()=>Q(c,!0);h&&h["s-rc"]?h["s-rc"].push(p):p()}catch(h){j(h,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&T.i)){const r=k(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),n&&n.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${i.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Ct.call(this,i)}}),Object.defineProperty(e,"is",{value:i.p,configurable:!0}),Gt(e,i,3)}catch(s){return j(s),e}},Bt=(e,t)=>t,Ye=(e,t,i)=>{i&&x.document&&i.map((([s,n,o])=>{const r=qt(x.document,e,s),a=Dt(t,o),l=Ht(s);T.ael(r,n,a,l),(t.V=t.V||[]).push((()=>T.rel(r,n,a,l)))}))},Dt=(e,t)=>i=>{try{e.$hostElement$[t](i)}catch(s){j(s,e.$hostElement$)}},qt=(e,t,i)=>8&i?x:t,Ht=e=>yt?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function ks(e){return e}const Je=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},zt=/\w/,Wt=e=>e.replace(zt,t=>t.toLocaleUpperCase()),Xe=(e,t)=>typeof e=="function"?e(t):t?Wt(e):e,Ut=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:n})=>{const o=n?n(e):Je(e);if(t==="required")return Xe(s&&s.length>0?s:"(required)",o);if(t==="optional")return Xe(i&&i.length>0?i:"(optional)",o)},isSentence:Je},Symbol.toStringTag,{value:"Module"})),ee=64,Ze=10,Qe=ee/2-Ze/2,Kt=ee/2,_e=2*Math.PI*Qe,Yt=`0 0 ${ee} ${ee}`,Jt=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const i=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(i,e))/i*100,o=(_e*n/100).toFixed(2),r=(_e-parseFloat(o)).toFixed(2);return`${o} ${r}`},centerPosition:Kt,circumference:_e,radius:Qe,thickness:Ze,viewBox:Yt},Symbol.toStringTag,{value:"Module"})),et=Object.freeze(Object.defineProperty({__proto__:null,formatCharCount:(e,t)=>{if(!(e===void 0||t===void 0))return`${e} / ${Math.max(t,0)}`},inputToGidsFieldStatus:e=>{switch(e){case"error":return"error";case"success":return"success";default:return"default"}}},Symbol.toStringTag,{value:"Module"}));function tt(e){var t,i,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]&&(i=tt(e[t]))&&(s&&(s+=" "),s+=i)}else for(i in e)e[i]&&(s&&(s+=" "),s+=i);return s}function z(){for(var e,t,i=0,s="",n=arguments.length;i<n;i++)(e=arguments[i])&&(t=tt(e))&&(s&&(s+=" "),s+=t);return s}const Xt=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>z("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Zt=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:i},s)=>z("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},i,s)},Symbol.toStringTag,{value:"Module"})),Qt=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>z("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"})),es=Object.freeze(Object.defineProperty({__proto__:null,getGidsDismissButtonClassNames:({appearance:e,size:t},i)=>z("gids-dismiss-button",{"gids-dismiss-button--sm":t==="sm","gids-dismiss-button--lg":t==="lg","gids-dismiss-button--bold":e==="bold"},i)},Symbol.toStringTag,{value:"Module"})),ts=Object.freeze(Object.defineProperty({__proto__:null,getGidsFieldClassNames:e=>z("gids-field",e)},Symbol.toStringTag,{value:"Module"})),{inputToGidsFieldStatus:ss}=et,is=Object.freeze(Object.defineProperty({__proto__:null,inputToGidsFieldStatus:e=>e==="implicit"||e===void 0?"implicit":ss(e)},Symbol.toStringTag,{value:"Module"})),ve=Symbol("defaultPath"),st=Symbol("pathSet"),be="gids-asset-paths-set";class ns extends EventTarget{#t=new Map;constructor(){super()}#e(t,i){this.#t.set(t,i)}#s(t){return this.#t.get(t)??null}#i=()=>{this.dispatchEvent(new Event(be))};haveAssetPathsBeenSet(){return this.#s(st)!==null}setAssetPaths(t,i){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(ve,t);else{for(const s in t)this.#e(s,t[s]);i&&this.#e(ve,i)}this.#e(st,"true"),setTimeout(this.#i,0)}}getAssetFilePath(t){const i=this.#s(t);if(i===null){const s=this.#s(ve);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return i}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(be,t,{once:!0}),()=>{this.removeEventListener(be,t)}}}const ye=Symbol.for("GIDS"),os=()=>(globalThis[ye]===void 0&&(globalThis[ye]={assetPaths:{}}),globalThis[ye]),ls=e=>{const t=os().assetPaths;return t[e]===void 0&&(t[e]=new ns),t[e]};function Se(){return ls("@ganpatiinfo/gids-web-shared")}function rs(){return Se().haveAssetPathsBeenSet()}function it(e){return Se().getAssetFilePath(e)}function as(e){return Se().onAssetPathsSet(e)}let ds=0;const nt=(e,t="gids")=>e||`${t}-${ds++}`,cs=e=>e.type==="hidden",us=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&&!cs(e)||["AUDIO","VIDEO"].includes(t)&&e.hasAttribute("controls")||["IMG","OBJECT"].includes(t)&&e.hasAttribute("usemap")||e.hasAttribute("tabindex")&&e.tabIndex>-1)},R=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let ot=!1;R&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(R):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let xe=null;const Ce=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{lt()})):void 0,lt=()=>{if(R===void 0)return!1;const e=(()=>{if(R===void 0)return;const t=[];for(let i=0;i<document.styleSheets.length;i++){const s=document.styleSheets.item(i);if(s)try{let n=-1,o=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")){o=r-n+1;break}t.push(a)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:o,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return Ce!==void 0&&t!==xe&&(xe&&Ce.disconnect(),t instanceof Element&&Ce.observe(t,{childList:!0,characterData:!0,subtree:!0}),xe=t),R.replaceSync((i=>i.rules.map((s=>s.cssText)).join(""))(e)),(i=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:o}=i;for(let r=0;r<n;r++)o.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},rt=()=>(ot||(ot=lt()),R),{getIndicatorText:hs}=Ut,{getGidsLabelClassNames:fs}=Xt,ps=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,info:n,htmlFor:o,labelId:r,class:a,isLabelSentence:l,...c},u)=>{const d=hs({children:u,fieldRequirement:t,fieldRequirementOptionalText:i,fieldRequirementRequiredText:s,isLabelSentence:l});return _("div",{class:fs({disabled:e},a),...c},_("label",{htmlFor:o,id:r},u,d&&_("span",{class:"gids-label__field-requirement"},d)),n)},at={"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"]},dt=new Map;for(const e in at)for(const t of at[e])dt.set(t,e);function gs(e){return dt.get(e)}function ct(e,t="regular",i){const s=gs(e);let n=s??"";return i&&s&&(n=i(s)??s),`${n}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:ms}=Qt,te=({name:e,size:t,appearance:i,alt:s,class:n,titleId:o,src:r,...a})=>{const l=nt(o);let c=r;return c===void 0&&rs()&&(c=ct(e,i,it)),_("svg",{ref:u=>{c===void 0&&as((()=>{(function(d,h,p){if(!d)return;const f=document.createElementNS("http://www.w3.org/2000/svg","use");f.setAttribute("href",ct(h,p,it)),d.appendChild(f)})(u,e,i)}))},width:"16",height:"16",class:ms({size:t},n),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...a},s!==""&&_("title",{id:l},s||e),c!==void 0?_("use",{href:c}):null)},{getGidsDismissButtonClassNames:_s}=es,vs=({appearance:e="subtle",size:t="md",disabled:i=!1,class:s,onPressDismiss:n,label:o,...r})=>_("button",{class:_s({appearance:e,size:t},s),onClick:n,disabled:i,"aria-label":o,...r},_(te,{name:"cross",appearance:"regular"})),{getGidsFieldClassNames:bs}=ts,ys=me(class extends ie{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})??[],i=this._findTextControl(t);this._attachControlElement(i)},this._handleControlValueInput=t=>{if(!this._controlTouched){const i=t.target;i instanceof HTMLInputElement&&(i.type==="checkbox"||i.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=rt();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,i=this._getCurrentStatus(),s=["gids-field__status-text"];if(e){const n=this._getStatusModifierClass(i,"gids-field__status-text");n!=null&&s.push(n)}return _(Ae,{key:"55afcede8d0a565f98b1cdd20293c9f885997d6c"},_("div",{key:"4c9ce99475a4c38e5b8c62b2bef588eb48fcec28",class:bs()},_("div",{key:"4c254203e9d4414e59c2564e86119280a7f89186",class:"gids-field__header",hidden:!this._hasLabelContent()},_("slot",{key:"3f8c6df5ac4098e821490edf0699d002ee8ca430",ref:this._setLabelSlot,name:"label",onSlotchange:this._handleControlSlotChange}),_("div",{key:"c2da3ba663158c54514d959e98ad2861fc64bd57",class:"gids-field__count","aria-live":"polite"},this.count)),_("div",{key:"da5091c74fb3df1146b4eecb4d7ee6537a322f32",class:"gids-field__control"},_("slot",{key:"bc49fb537279473305d616f900d5df696d9c2c3c",ref:this._setControlSlot,onSlotchange:this._handleControlSlotChange})),_("p",{key:"326849f878b531e4695368f1f112ce6d36c3ef4d",class:"gids-field__supporting-text",hidden:!this._shouldShowHelperText()},this.helperText),e?_("p",{class:s.join(" "),role:"status","aria-live":"polite"},this._renderStatusIcon(i),t!==void 0?_("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 i=["gids-field__status-icon"],s=this._getStatusModifierClass(e,"gids-field__status-icon");s!=null&&i.push(s);let n=e;return e==="error"&&(n="danger"),e==="success"&&(n="positive"),_(te,{appearance:"filled",size:"sm",alt:"",name:t,class:i.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((i=>{i.addEventListener("input",this._handleControlValueInput),i.addEventListener("change",this._handleControlValueInput),i.addEventListener("blur",this._handleControlBlur,!0),i.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 i=t.elements.namedItem(e.name);if(i instanceof RadioNodeList){const s=Array.from(i).filter((n=>n instanceof HTMLInputElement&&n.type==="radio"&&this._el.contains(n)));if(s.length>0)return s}}if(e.name!=null){const i=`input[type="radio"][name="${CSS.escape(e.name)}"]`,s=Array.from(this._el.querySelectorAll(i));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 i=t,s=this._asTextControl(i);if(s!==null)return s;const n=i.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 ut(){typeof customElements<"u"&&["gids-field"].forEach((e=>{e==="gids-field"&&(customElements.get(e)||customElements.define(e,ys))}))}ut();const{getGidsSpinnerControlClassNames:Ss}=Zt,{calculateStrokeDasharray:xs,thickness:ht,radius:ft,centerPosition:se,viewBox:Cs}=Jt,ws=({size:e,indeterminate:t,value:i,max:s,...n})=>{let o;return t||(o={strokeDashArray:xs(i,s||0),strokeDashoffset:"0"}),_("svg",{class:Ss({size:e,indeterminate:t,value:i}),viewBox:Cs,...n},_("circle",{class:"gids-spinner-control__track",cx:se,cy:se,r:ft,"stroke-width":ht}),_("circle",{style:o,class:"gids-spinner-control__progress",cx:se,cy:se,r:ft,"stroke-width":ht}))},Ts=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.#e={},this._focusInput=t=>{const i=t.target;i===this.#t||this._isWithinInteractiveElement(i)||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(us(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 _(Bt,{key:"94b08611da249786439b37e6ea7961ea3e5ee851"},_("slot",{key:"d334ee7f99214b10ddecafcbc9a8a851723eba89",name:"leadingIcon"}),this.leadingLabel&&_("span",{key:"8c650986f8a51f563f2499d9f68704702d67d3d6",class:"gids-input__label"},this.leadingLabel),_("slot",{key:"d6f6f0f53e0af2b3de306fbb4bda2b4199567060",name:"leadingAccessory"}),_("input",{key:"8429cdabbbc2034cac2d76cc72fa5e40298d5ec7",...this.inputProps,ref:e=>{this.#t=e,this.#e.value!==void 0&&(this.#t.value=this.#e.value,delete this.#e.value),this.#e.defaultValue!==void 0&&(this.#t.defaultValue=this.#e.defaultValue,delete this.#e.defaultValue)},class:"gids-input__control",name:this.name,disabled:this.disabled,readOnly:this.readOnly,required:this.required,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur}),_("slot",{key:"aa7a6d1b0551a88801ef75da893ecf41e1eaafa8",name:"trailingAccessory"}),this.trailingLabel&&_("span",{key:"5f683d6c71ef3802c3749959b921b9046c168437",class:"gids-input__label"},this.trailingLabel),_("slot",{key:"b7d26fe16f35c0147b7b1a34dd41cd0f85ed5ab5",name:"trailingIcon"}),this.status==="incomplete"&&_(te,{key:"66f1da3df7907675feace05c11e2e31e892d6251",name:"warning",appearance:"filled",class:"gids-input__warning-icon"}),this.status==="complete"&&_(te,{key:"3fc74b5623174d2a321a5367854ff180bde2cd9f",name:"positive",appearance:"filled",class:"gids-input__positive-icon"}),this.loading&&_(ws,{key:"ceb78121856acade2513cffcae16170d91a3fb74",size:"md",indeterminate:!0}))}get _el(){return this}},[260,"gids-input",{appearance:[513],defaultValue:[6657,"default-value"],disabled:[516],inputProps:[16],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],name:[513],readOnly:[516,"readonly"],required:[516],status:[513],value:[6145]}]);function pt(){typeof customElements<"u"&&["gids-input"].forEach((e=>{e==="gids-input"&&(customElements.get(e)||customElements.define(e,Ts))}))}pt();const{formatCharCount:Es}=et,{inputToGidsFieldStatus:Ls}=is,gt=me(class extends ie{constructor(e){super(),e!==!1&&this.__registerHost(),this.gidsTextFieldClear=Lt(this,"gidsTextFieldClear"),this.#t=nt(),this._handleDismiss=()=>{const t=this.#e?.querySelector("input.gids-input__control");t&&(t.value="",t.dispatchEvent(new globalThis.Event("input",{bubbles:!0}))),this.value="",this.gidsTextFieldClear.emit()},this._handleInput=t=>{this.value=t.target?.value},this._handleInputFocusAndBlur=t=>{this._el.dispatchEvent(new FocusEvent(t.type,{relatedTarget:t.relatedTarget}))}}_startSlotContentObserver(){this._slotContentObserver=new MutationObserver((()=>{Ft(this)})),this._slotContentObserver.observe(this._el,{childList:!0,subtree:!1,attributes:!0,attributeFilter:["slot"]})}connectedCallback(){const e=rt();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e),this._startSlotContentObserver()}disconnectedCallback(){this._slotContentObserver?.disconnect(),this._slotContentObserver=void 0}#t;#e;render(){const{id:e,...t}=this.inputProps??{},i=e??this.#t,s=this.showClearButton&&this.value!==void 0&&this.value.length>0;return _("gids-field",{key:"951d6052bb8e98950f01a1c204a35904e3a3ee4c",disabled:this.disabled,count:Es(this.value?.length,this.maxLength),helperText:this.helperText,statusText:this.statusText,status:Ls(this.status)},_(ps,{key:"02a0b0308d754a68dd5f1be3cd8dd10b191f32a6",slot:"label",disabled:this.disabled,info:_("slot",{name:"info"}),fieldRequirement:this.fieldRequirement,fieldRequirementOptionalText:this.fieldRequirementOptionalText,fieldRequirementRequiredText:this.fieldRequirementRequiredText,isLabelSentence:this.isLabelSentence,htmlFor:i},this.label),_("gids-input",{key:"9e601808d03998011afd0cef3a683e153ea42f10",ref:n=>this.#e=n,appearance:this.appearance,status:this.status,loading:this.loading,value:this.value,defaultValue:this.defaultValue,name:this.name,required:this.required,disabled:this.disabled,readOnly:this.readOnly,leadingLabel:this.leadingLabel,trailingLabel:this.trailingLabel,onFocus:this._handleInputFocusAndBlur,onBlur:this._handleInputFocusAndBlur,onInput:this._handleInput,inputProps:{...t,type:this.type,id:i,maxLength:this.maxLength}},_("slot",{key:"f519b7683865ec3bc7d6dc02c3a4d3383b62c09a",name:"leadingIcon"}),_("slot",{key:"4241d7a23659bd3f7fe2b54ad3e9fce5b83de649",name:"leadingAccessory"}),s&&_(vs,{key:"35d7868cec672757617bad343a3e700a4a9719c8",label:"clear text",slot:"trailingAccessory",size:"lg",onPressDismiss:this._handleDismiss}),_("slot",{key:"07f1cd892f9eb103110e54f377ed6683da22157d",name:"trailingIcon"})))}get _el(){return this}},[260,"gids-text-field",{label:[513],showClearButton:[516,"show-clear-button"],helperText:[513,"helper-text"],statusText:[513,"status-text"],appearance:[513],status:[513],leadingLabel:[513,"leading-label"],trailingLabel:[513,"trailing-label"],loading:[516],type:[513],name:[513],required:[516],maxLength:[514,"maxlength"],value:[1],defaultValue:[513,"default-value"],disabled:[516],readOnly:[516,"readonly"],inputProps:[16],fieldRequirement:[513,"field-requirement"],fieldRequirementOptionalText:[1,"field-requirement-optional-text"],fieldRequirementRequiredText:[1,"field-requirement-required-text"],isLabelSentence:[16]}]);function mt(){typeof customElements<"u"&&["gids-text-field","gids-field","gids-input"].forEach((e=>{switch(e){case"gids-text-field":customElements.get(e)||customElements.define(e,gt);break;case"gids-field":customElements.get(e)||ut();break;case"gids-input":customElements.get(e)||pt()}}))}mt();const Ns=gt,$s=mt;M.GidsTextField=Ns,M.defineCustomElement=$s,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
(function(P,D){typeof exports=="object"&&typeof module<"u"?D(exports):typeof define=="function"&&define.amd?define(["exports"],D):(P=typeof globalThis<"u"?globalThis:P||self,D(P.gidsCoreWebGidsToggleButton={}))})(this,(function(P){"use strict";function D(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,et=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const l=e[s],i=D(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);i&&Object.defineProperty(e,s,{get(){return i.get.call(this)},set(c){i.set.call(this,c)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):l!==void 0&&(e[s]=l)}}))},A=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},
|
|
1
|
+
(function(P,D){typeof exports=="object"&&typeof module<"u"?D(exports):typeof define=="function"&&define.amd?define(["exports"],D):(P=typeof globalThis<"u"?globalThis:P||self,D(P.gidsCoreWebGidsToggleButton={}))})(this,(function(P){"use strict";function D(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,et=(e,t)=>{var o;Object.entries((o=t.o.t)!=null?o:{}).map((([s,[n]])=>{if(31&n||32&n){const l=e[s],i=D(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);i&&Object.defineProperty(e,s,{get(){return i.get.call(this)},set(c){i.set.call(this,c)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):l!==void 0&&(e[s]=l)}}))},A=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},me=(e,t)=>t in e,L=(e,t)=>(0,console.error)(e,t),z=new Map,ye="http://www.w3.org/1999/xlink",tt=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],w=typeof window<"u"?window:{},st=w.HTMLElement||class{},O={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,o,s)=>e.addEventListener(t,o,s),rel:(e,t,o,s)=>e.removeEventListener(t,o,s),ce:(e,t)=>new CustomEvent(e,t)},ot=(()=>{var e;let t=!1;try{(e=w.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),ee=(()=>{try{return!!w.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),te=!!ee&&!!w.document&&Object.getOwnPropertyDescriptor(w.document.adoptedStyleSheets,"length").writable,se=!1,be=[],ve=[],nt=(e,t)=>o=>{e.push(o),se||(se=!0,4&O.i?ne(oe):O.raf(oe))},Se=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(o){L(o)}e.length=0},oe=()=>{Se(be),Se(ve),(se=be.length>0)&&O.raf(oe)},ne=e=>Promise.resolve(void 0).then(e),lt=nt(ve);function rt(){const e=this.attachShadow({mode:"open"});F===void 0&&(F=null),F&&(te?e.adoptedStyleSheets.push(F):e.adoptedStyleSheets=[...e.adoptedStyleSheets,F])}var we=e=>{const t=re(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&le(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!it(s,V(s),!1).length)}));let o=0;for(o=0;o<t.length;o++){const s=t[o];s.nodeType===1&&re(s,"childNodes").length&&we(s)}};function le(e,t,o){let s,n=0,l=[];for(;n<e.length;n++){if(s=e[n],s["s-sr"]&&(!t||s["s-hn"]===t)&&(o===void 0||V(s)===o)&&(l.push(s),o!==void 0))return l;l=[...l,...le(s.childNodes,t,o)]}return l}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;)V(n)!==t||!o&&n["s-sr"]||s.push(n);return s},Ne=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",V=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function re(e,t){if("__"+t in e){const o=e["__"+t];return typeof o!="function"?o:o.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var ie,M,R=new WeakMap,_e=e=>"sc-"+e.p,ce=e=>(e=typeof e)=="object"||e==="function",$=(e,t,...o)=>{let s=null,n=null,l=null,i=!1,c=!1;const r=[],u=a=>{for(let d=0;d<a.length;d++)s=a[d],Array.isArray(s)?u(s):s!=null&&typeof s!="boolean"&&((i=typeof e!="function"&&!ce(s))&&(s=String(s)),i&&c?r[r.length-1].h+=s:r.push(i?U(null,s):s),c=i)};if(u(o),t){t.key&&(n=t.key),t.name&&(l=t.name);{const a=t.className||t.class;a&&(t.class=typeof a!="object"?a:Object.keys(a).filter((d=>a[d])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,r,ct);const f=U(e,null);return f.v=t,r.length>0&&(f.m=r),f.$=n,f.j=l,f},U=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Oe={},ct={forEach:(e,t)=>e.map($e).forEach(t),map:(e,t)=>e.map($e).map(t).map(at)},$e=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),at=e=>{if(typeof e.vtag=="function"){const o={...e.vattrs};return e.vkey&&(o.key=e.vkey),e.vname&&(o.name=e.vname),$(e.vtag,o,...e.vchildren||[])}const t=U(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},ke=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let o=!1;for(const n of t){if(o)break;for(const l of e[n])if(typeof l=="string"){o=!0;break}}if(!o)return e;const s={};for(const n of t)s[n]=e[n].map((l=>typeof l=="string"?{[l]:0}:l));return s},Ce=(e,t,o)=>e==null||ce(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,dt=(e,t)=>{const o=e;return{emit:s=>je(o,t,{bubbles:!0,composed:!0,cancelable:!0,detail:s})}},je=(e,t,o)=>{const s=O.ce(t,o);return e.dispatchEvent(s),s},xe=(e,t,o,s,n,l)=>{if(o===s)return;let i=me(e,t),c=t.toLowerCase();if(t==="class"){const r=e.classList,u=Ee(o);let f=Ee(s);r.remove(...u.filter((a=>a&&!f.includes(a)))),r.add(...f.filter((a=>a&&!u.includes(a))))}else if(t==="style"){for(const r in o)s&&s[r]!=null||(r.includes("-")?e.style.removeProperty(r):e.style[r]="");for(const r in s)o&&s[r]===o[r]||(r.includes("-")?e.style.setProperty(r,s[r]):e.style[r]=s[r])}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 r=t.slice(5);let u;{const f=A(e);if(f&&f.o&&f.o.t){const a=f.o.t[r];a&&a[1]&&(u=a[1])}}return u||(u=r.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 r=t.slice(5);try{e[r]=s}catch{}return}{const r=ce(s);if((i||r&&s!==null)&&!n)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const f=s??"";t==="list"?i=!1:o!=null&&e[t]===f||(typeof e.__lookupSetter__(t)=="function"?e[t]=f:e.setAttribute(t,f))}}catch{}let u=!1;c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,u=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(u?e.removeAttributeNS(ye,t):e.removeAttribute(t)):(!i||4&l||n)&&!r&&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):me(w,c)?c.slice(2):c[2]+t.slice(3),o||s){const r=t.endsWith(Ae);t=t.replace(ft,""),o&&O.rel(e,t,o,r),s&&O.ael(e,t,s,r)}}},ut=/\s/,Ee=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(ut):[]),Ae="Capture",ft=new RegExp(Ae+"$"),ae=(e,t,o)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,n=e&&e.v||{},l=t.v||{};for(const i of Te(Object.keys(n)))i in l||xe(s,i,n[i],void 0,o,t.i);for(const i of Te(Object.keys(l)))xe(s,i,n[i],l[i],o,t.i)};function Te(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var I=!1,q=!1,Y=!1,k=!1,de=[],ue=[],Z=(e,t,o)=>{var s;const n=t.m[o];let l,i,c,r=0;if(I||(Y=!0,n.O==="slot"&&(n.i|=n.m?2:1)),n.h!=null)l=n.S=w.document.createTextNode(n.h);else if(1&n.i)l=n.S=w.document.createTextNode(""),ae(null,n,k);else{if(k||(k=n.O==="svg"),!w.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=n.S=w.document.createElementNS(k?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!I&&2&n.i?"slot-fb":n.O),k&&n.O==="foreignObject"&&(k=!1),ae(null,n,k),n.m){const u=n.O==="template"?l.content:l;for(r=0;r<n.m.length;++r)i=Z(e,n,r),i&&u.appendChild(i)}n.O==="svg"?k=!1:l.tagName==="foreignObject"&&(k=!0)}return l["s-hn"]=M,3&n.i&&(l["s-sr"]=!0,l["s-cr"]=ie,l["s-sn"]=n.j||"",l["s-rf"]=(s=n.v)==null?void 0:s.ref,(function(u){if(u.assignedElements||u.assignedNodes||!u["s-sr"])return;const f=a=>(function(d){const p=[],h=this["s-sn"];d?.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 v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(S=>{const y=[];for(let g=0;g<S.length;g++){const m=S[g]["s-nr"]||void 0;m&&m.isConnected&&y.push(m)}return y})(v.childNodes)).forEach((S=>{h===V(S)&&p.push(S)})),a?p.filter((S=>S.nodeType===1)):p}).bind(u);u.assignedElements=f(!0),u.assignedNodes=f(!1)})(l),c=e&&e.m&&e.m[o],c&&c.O===n.O&&e.S&&Re(e.S)),l},Re=e=>{O.i|=1;const t=e.closest(M.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&&(x(t,n,o??null),n["s-sh"]=void 0,Y=!0)}O.i&=-2},J=(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"]===M&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==M&&n["s-ol"]&&(x(W(n).parentNode,n,W(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}O.i&=-2},Pe=(e,t,o,s,n,l)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===M&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);n<=l;++n)s[n]&&(i=Z(null,o,n),i&&(s[n].S=i,x(c,i,W(t))))},Le=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;De(n),l&&(q=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(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,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,i=t.O,c=t.h;let r;c==null?(k=i==="svg"||i!=="foreignObject"&&k,i!=="slot"||I||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Re(t.S.parentElement)),ae(e,t,k),n!==null&&l!==null?((u,f,a,d,p=!1)=>{let h,v,S=0,y=0,g=0,m=0,_=f.length-1,b=f[0],N=f[_],C=d.length-1,j=d[0],E=d[C];const Xe=a.O==="template"?u.content:u;for(;S<=_&&y<=C;)if(b==null)b=f[++S];else if(N==null)N=f[--_];else if(j==null)j=d[++y];else if(E==null)E=d[--C];else if(K(b,j,p))H(b,j,p),b=f[++S],j=d[++y];else if(K(N,E,p))H(N,E,p),N=f[--_],E=d[--C];else if(K(b,E,p))b.O!=="slot"&&E.O!=="slot"||J(b.S.parentNode,!1),H(b,E,p),x(Xe,b.S,N.S.nextSibling),b=f[++S],E=d[--C];else if(K(N,j,p))b.O!=="slot"&&E.O!=="slot"||J(N.S.parentNode,!1),H(N,j,p),x(Xe,N.S,b.S),N=f[--_],j=d[++y];else{for(g=-1,m=S;m<=_;++m)if(f[m]&&f[m].$!==null&&f[m].$===j.$){g=m;break}g>=0?(v=f[g],v.O!==j.O?h=Z(f&&f[y],a,g):(H(v,j,p),f[g]=void 0,h=v.S),j=d[++y]):(h=Z(f&&f[y],a,y),j=d[++y]),h&&x(W(b.S).parentNode,h,W(b.S))}S>_?Pe(u,d[C+1]==null?null:d[C+1].S,a,d,y,C):y>C&&Le(f,S,_)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),Pe(s,null,t,l,0,l.length-1)):!o&&n!==null&&Le(n,0,n.length-1),k&&i==="svg"&&(k=!1)):(r=s["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(s.data=c)},T=[],Me=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(Ne(t,i)){let c=T.find((r=>r.k===t));q=!0,t["s-sn"]=t["s-sn"]||i,c?(c.k["s-sh"]=l["s-hn"],c.N=l):(t["s-sh"]=l["s-hn"],T.push({N:l,k:t})),t["s-sr"]&&T.map((r=>{Ne(r.k,t["s-sn"])&&(c=T.find((u=>u.k===t)),c&&!r.N&&(r.N=c.N))}))}else T.some((c=>c.k===t))||T.push({k:t})}l.nodeType===1&&Me(l)}},De=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(De)},ht=(e,t)=>{ue.push((()=>e(t)))},x=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,i){var c;if(!(i=i||((c=l["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=V(l)||"";return{slotNode:le(re(i,"childNodes"),i.tagName,r)[0],slotName:r}})(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)},pt=(e,t,o=!1)=>{var s,n,l,i,c;const r=e.$hostElement$,u=e.o,f=e.M||U(null,null);var a;const d=(a=t)&&a.O===Oe?t:$(null,null,t);if(M=r.tagName,u.C&&(d.v=d.v||{},u.C.forEach((([p,h])=>{d.v[h]=r[p]}))),o&&d.v)for(const p of Object.keys(d.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(d.v[p]=r[p]);if(d.O=null,d.i|=4,e.M=d,d.S=f.S=r.shadowRoot||r,I=!(!(1&u.i)||128&u.i),ie=r["s-cr"],q=!1,H(f,d,o),O.i|=1,Y){Me(d.S);for(const p of T){const h=p.k;if(!h["s-ol"]&&w.document){const v=w.document.createTextNode("");v["s-nr"]=h,x(h.parentNode,h["s-ol"]=v,h,o)}}for(const p of T){const h=p.k,v=p.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),v){const S=v.parentNode;let y=v.nextSibling;if(y&&y.nodeType===1){let g=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;g;){let m=(l=g["s-nr"])!=null?l:null;if(m&&m["s-sn"]===h["s-sn"]&&S===(m.__parentNode||m.parentNode)){for(m=m.nextSibling;m===h||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){y=m;break}}g=g.previousSibling}}if((!y&&S!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==y)&&h!==y){if(x(S,h,y,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const g=w.document.createTextNode(h.nodeValue.replace(/^s-nt-/,""));g["s-hn"]=h["s-hn"],g["s-sn"]=h["s-sn"],g["s-sh"]=h["s-sh"],g["s-sr"]=h["s-sr"],g["s-ol"]=h["s-ol"],g["s-ol"]["s-nr"]=g,x(h.parentNode,g,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else h.nodeType===1&&(h.hidden=!0)}}if(q&&we(d.S),O.i&=-2,T.length=0,!I&&!(1&u.i)&&r["s-cr"]){const p=d.S.__childNodes||d.S.childNodes;for(const h of p)if(h["s-hn"]!==M&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(c=h.hidden)!=null&&c),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const v=w.document.createComment("s-nt-"+h.nodeValue);v["s-sn"]=h["s-sn"],x(h.parentNode,v,h,o),h.parentNode.removeChild(h)}}}ie=void 0,de.forEach((p=>p())),de.length=0,ue.forEach((p=>p())),ue.length=0},He=(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()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);He(e,e.R);const o=()=>mt(e,t);if(!t)return lt(o);queueMicrotask((()=>{o()}))},mt=(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=G(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Be(n,(()=>G(s,"componentWillRender",void 0,o))),Be(n,(()=>yt(e,s,t)))},Be=(e,t)=>gt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),gt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",yt=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(i=>{const c=i.o,r=i.$hostElement$,u=c.i,f=((a,d)=>{var p,h,v;const S=_e(d),y=z.get(S);if(!w.document)return S;if(a=a.nodeType===11?a:w.document,y)if(typeof y=="string"){let g,m=R.get(a=a.head||a);if(m||R.set(a,m=new Set),!m.has(S)){g=w.document.createElement("style"),g.textContent=y;const _=(p=O._)!=null?p:(function(){var b,N,C;return(C=(N=(b=w.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?C:void 0})();if(_!=null&&g.setAttribute("nonce",_),!(1&d.i))if(a.nodeName==="HEAD"){const b=a.querySelectorAll("link[rel=preconnect]"),N=b.length>0?b[b.length-1].nextSibling:a.querySelector("style");a.insertBefore(g,N?.parentNode===a?N:null)}else if("host"in a)if(ee){const b=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(y),te?a.adoptedStyleSheets.unshift(b):a.adoptedStyleSheets=[b,...a.adoptedStyleSheets]}else{const b=a.querySelector("style");b?b.textContent=y+b.textContent:a.prepend(g)}else a.append(g);1&d.i&&a.insertBefore(g,null),4&d.i&&(g.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),m&&m.add(S)}}else{let g=R.get(a);if(g||R.set(a,g=new Set),!g.has(S)){const m=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let _;if(y.constructor===m.CSSStyleSheet)_=y;else{_=new m.CSSStyleSheet;for(let b=0;b<y.cssRules.length;b++)_.insertRule(y.cssRules[b].cssText,b)}te?a.adoptedStyleSheets.push(_):a.adoptedStyleSheets=[...a.adoptedStyleSheets,_],g.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&u&&(r["s-sc"]=f,r.classList.add(f+"-h"))})(e),bt(e,t,n,o),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],c=()=>vt(e);i.length===0?c():(Promise.all(i).then(c).catch(c),e.i|=4,i.length=0)}},bt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,pt(e,t,s)}catch(n){L(n,e.$hostElement$)}return null},vt=e=>{const t=e.$hostElement$,o=t,s=e.R;G(o,"componentDidRender",void 0,t),64&e.i?G(o,"componentDidUpdate",void 0,t):(e.i|=64,wt(t),G(o,"componentDidLoad",void 0,t),e.L(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>fe(e,!1))),e.i&=-517},St=()=>{ne((()=>je(w,"appload",{detail:{namespace:"gids-core-web"}})))},G=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){L(n,s)}},wt=e=>e.classList.add("hydrated"),Fe=(e,t,o,s)=>{const n=A(e);if(!n)return;const l=e,i=n.l.get(t),c=n.i,r=l;o=Ce(o,s.t[t][0],!!(64&s.i));const u=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!u){if(n.l.set(t,o),s.F){const f=s.F[t];f&&f.map((a=>{try{const[[d,p]]=Object.entries(a);(128&c||1&p)&&(r?r[d](o,i,t):n.T.push((()=>{n.D[d](o,i,t)})))}catch(d){L(d,l)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,i,t)===!1&&!(16&c))return;16&c||fe(n,!1)}}},Nt=(e,t,o)=>{var s,n;const l=e.prototype;64&t.i&&1&o&&tt.forEach((i=>{const c=l[i];Object.defineProperty(l,i,{value(...r){var u;const f=A(this),a=this;a?typeof c=="function"&&c.call(a,...r):(u=f?.H)==null||u.then((d=>{const p=d[i];typeof p=="function"&&p.call(d,...r)}))}})}));{e.watchers&&!t.F&&(t.F=ke(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const i=Object.entries((s=t.t)!=null?s:{});i.map((([c,[r]])=>{if(31&r||32&r){const{get:u,set:f}=D(l,c)||{};u&&(t.t[c][0]|=2048),f&&(t.t[c][0]|=4096),Object.defineProperty(l,c,{get(){return u?u.apply(this):(a=c,A(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(l,c,{set(a){const d=A(this);if(d){if(f)return(32&r?this[c]:d.$hostElement$[c])===void 0&&d.l.get(c)&&(a=d.l.get(c)),f.apply(this,[Ce(a,r,!!(64&t.i))]),void Fe(this,c,a=32&r?this[c]:d.$hostElement$[c],t);Fe(this,c,a,t)}}})}}));{const c=new Map;l.attributeChangedCallback=function(r,u,f){O.jmp((()=>{var a;const d=c.get(r),p=A(this);if(this.hasOwnProperty(d),l.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==f)return;if(d==null){const g=p?.i;if(p&&g&&!(8&g)&&f!==u){const m=this,_=(a=t.F)==null?void 0:a[r];_?.forEach((b=>{const[[N,C]]=Object.entries(b);m[N]!=null&&(128&g||1&C)&&m[N].call(m,f,u,r)}))}return}const h=i.find((([g])=>g===d)),v=h&&4&h[1][0],S=v&&f===null&&this[d]===void 0;v&&(f=f!==null&&f!=="false");const y=Object.getOwnPropertyDescriptor(l,d);S||f==this[d]||y.get&&!y.set||(this[d]=f)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([r,u])=>31&u[0])).map((([r,u])=>{var f;const a=u[1]||r;return c.set(a,r),512&u[0]&&((f=t.C)==null||f.push([r,a])),a}))]))}}return e},_t=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=ke(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const c={i:0,$hostElement$:l,o:i,l:new Map,B:new Map};c.H=new Promise((u=>c.L=u)),l["s-p"]=[],l["s-rc"]=[];const r=c;l.__stencil__getHostRef=()=>r,512&i.i&&et(l,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=A(this);if(!l)return;Ve(this,l,o.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&O.i)){const i=A(l);if(!i)return;const c=i.o;if(1&i.i)Ve(l,i,c.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&c.i&&(r=>{if(!w.document)return;const u=r["s-cr"]=w.document.createComment("");u["s-cn"]=!0,x(r,u,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){He(i,i.R=r);break}}c.t&&Object.entries(c.t).map((([r,[u]])=>{if(31&u&&Object.prototype.hasOwnProperty.call(l,r)){const f=l[r];delete l[r],l[r]=f}})),(async(r,u,f)=>{let a;try{if(!(32&u.i)&&(u.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>u.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const v=_e(f);z.has(v)||((S,y,g)=>{let m=z.get(S);ee&&g?(m=m||new CSSStyleSheet,typeof m=="string"?m=y:m.replaceSync(y)):m=y,z.set(S,m)})(v,h,!!(1&f.i))}const d=u.R,p=()=>fe(u,!0);d&&d["s-rc"]?d["s-rc"].push(p):p()}catch(d){L(d,r),u.A&&(u.A(),u.A=void 0),u.L&&u.L(r)}})(l,i,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&O.i)){const i=A(l);i?.V&&(i.V.map((c=>c())),i.V=void 0)}R.has(l)&&R.delete(l),l.shadowRoot&&R.has(l.shadowRoot)&&R.delete(l.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 rt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),Nt(e,o,3)}catch(s){return L(s),e}},Ve=(e,t,o)=>{o&&w.document&&o.map((([s,n,l])=>{const i=$t(w.document,e,s),c=Ot(t,l),r=kt(s);O.ael(i,n,c,r),(t.V=t.V||[]).push((()=>O.rel(i,n,c,r)))}))},Ot=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){L(s,e.$hostElement$)}},$t=(e,t,o)=>8&o?w:t,kt=e=>ot?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Vt(e){return e}function Ie(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=Ie(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function We(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ie(e))&&(s&&(s+=" "),s+=t);return s}const Ct=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:o},s)=>We("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},o,s)},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:o,destructive:s,positive:n,loading:l},i,c)=>We("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":o==="full","gids-button--destructive":s&&!n,"gids-button--positive":n&&!s,"gids-button--icon-only":i,"gids-button--loading":l},c)},Symbol.toStringTag,{value:"Module"})),Q=64,Ge=10,ze=Q/2-Ge/2,xt=Q/2,he=2*Math.PI*ze,Et=`0 0 ${Q} ${Q}`,At=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const o=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(o,e))/o*100,l=(he*n/100).toFixed(2),i=(he-parseFloat(l)).toFixed(2);return`${l} ${i}`},centerPosition:xt,circumference:he,radius:ze,thickness:Ge,viewBox:Et},Symbol.toStringTag,{value:"Module"})),Ue=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:Tt}=Ct,{calculateStrokeDasharray:Rt,thickness:qe,radius:Ye,centerPosition:X,viewBox:Pt}=At,Lt=({size:e,indeterminate:t,value:o,max:s,...n})=>{let l;return t||(l={strokeDashArray:Rt(o,s||0),strokeDashoffset:"0"}),$("svg",{class:Tt({size:e,indeterminate:t,value:o}),viewBox:Pt,...n},$("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ye,"stroke-width":qe}),$("circle",{style:l,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ye,"stroke-width":qe}))},{getGidsButtonClassNames:Mt}=jt,Dt=({appearance:e,size:t,destructive:o,positive:s,loading:n,width:l,leadingIcon:i,trailingIcon:c,as:r,disabled:u,class:f,forceIconOnly:a=!1,...d},p)=>{const h=r||"button",v=t==="lg"||t===void 0?"md":t;return h!=="button"||"type"in d||(d.type="button"),$(h,{class:Mt({appearance:e,size:t,destructive:o,loading:n,width:l,positive:s},a||p.length===0&&Ue(i)&&!Ue(c),f),disabled:h==="button"?u:void 0,...d},$("span",{class:"gids-button__content"},i,p),n&&$(Lt,{size:v,indeterminate:!0}),c)},B=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ze=!1;B&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(B):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let pe=null;const me=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Je()})):void 0,Je=()=>{if(B===void 0)return!1;const e=(()=>{if(B===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,l=0;for(let i=0;i<s.cssRules.length;i++){const c=s.cssRules.item(i);if(c?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(c?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(c)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,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!==pe&&(pe&&me.disconnect(),t instanceof Element&&me.observe(t,{childList:!0,characterData:!0,subtree:!0}),pe=t),B.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=o;for(let i=0;i<n;i++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ht=()=>(Ze||(Ze=Je()),B),Ke=_t(class extends st{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=dt(this,"select"),this._toggle=this._toggle.bind(this)}handleSelctedChange(e){this.selected=e}connectedCallback(){const e=Ht();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=this.selected,this.select?.emit(e),this.selected=this.selected}render(){return $(Oe,{key:"f7fe1215b0945a6d71c23d3644121dd73ff653cf"},$("style",{key:"78195ef784f5f4df916d0a61e9b988233db31fef"},`:host {
|
|
5
|
+
`);const v=this["s-cr"].parentElement;return(v.__childNodes?v.childNodes:(S=>{const y=[];for(let m=0;m<S.length;m++){const g=S[m]["s-nr"]||void 0;g&&g.isConnected&&y.push(g)}return y})(v.childNodes)).forEach((S=>{h===V(S)&&p.push(S)})),a?p.filter((S=>S.nodeType===1)):p}).bind(u);u.assignedElements=f(!0),u.assignedNodes=f(!1)})(l),c=e&&e.m&&e.m[o],c&&c.O===n.O&&e.S&&Re(e.S)),l},Re=e=>{O.i|=1;const t=e.closest(M.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&&(x(t,n,o??null),n["s-sh"]=void 0,Y=!0)}O.i&=-2},J=(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"]===M&&o.push(s)}for(let s=o.length-1;s>=0;s--){const n=o[s];n["s-hn"]!==M&&n["s-ol"]&&(x(W(n).parentNode,n,W(n)),n["s-ol"].remove(),n["s-ol"]=void 0,n["s-sh"]=void 0,Y=!0),t&&J(n,t)}O.i&=-2},Pe=(e,t,o,s,n,l)=>{let i,c=e["s-cr"]&&e["s-cr"].parentNode||e;for(c.shadowRoot&&c.tagName===M&&(c=c.shadowRoot),o.O==="template"&&(c=c.content);n<=l;++n)s[n]&&(i=Z(null,o,n),i&&(s[n].S=i,x(c,i,W(t))))},Le=(e,t,o)=>{for(let s=t;s<=o;++s){const n=e[s];if(n){const l=n.S;De(n),l&&(q=!0,l["s-ol"]?l["s-ol"].remove():J(l,!0),l.remove())}}},K=(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,H=(e,t,o=!1)=>{const s=t.S=e.S,n=e.m,l=t.m,i=t.O,c=t.h;let r;c==null?(k=i==="svg"||i!=="foreignObject"&&k,i!=="slot"||I||e.j!==t.j&&(t.S["s-sn"]=t.j||"",Re(t.S.parentElement)),ae(e,t,k),n!==null&&l!==null?((u,f,a,d,p=!1)=>{let h,v,S=0,y=0,m=0,g=0,_=f.length-1,b=f[0],N=f[_],C=d.length-1,j=d[0],E=d[C];const Xe=a.O==="template"?u.content:u;for(;S<=_&&y<=C;)if(b==null)b=f[++S];else if(N==null)N=f[--_];else if(j==null)j=d[++y];else if(E==null)E=d[--C];else if(K(b,j,p))H(b,j,p),b=f[++S],j=d[++y];else if(K(N,E,p))H(N,E,p),N=f[--_],E=d[--C];else if(K(b,E,p))b.O!=="slot"&&E.O!=="slot"||J(b.S.parentNode,!1),H(b,E,p),x(Xe,b.S,N.S.nextSibling),b=f[++S],E=d[--C];else if(K(N,j,p))b.O!=="slot"&&E.O!=="slot"||J(N.S.parentNode,!1),H(N,j,p),x(Xe,N.S,b.S),N=f[--_],j=d[++y];else{for(m=-1,g=S;g<=_;++g)if(f[g]&&f[g].$!==null&&f[g].$===j.$){m=g;break}m>=0?(v=f[m],v.O!==j.O?h=Z(f&&f[y],a,m):(H(v,j,p),f[m]=void 0,h=v.S),j=d[++y]):(h=Z(f&&f[y],a,y),j=d[++y]),h&&x(W(b.S).parentNode,h,W(b.S))}S>_?Pe(u,d[C+1]==null?null:d[C+1].S,a,d,y,C):y>C&&Le(f,S,_)})(s,n,t,l,o):l!==null?(e.h!==null&&(s.textContent=""),Pe(s,null,t,l,0,l.length-1)):!o&&n!==null&&Le(n,0,n.length-1),k&&i==="svg"&&(k=!1)):(r=s["s-cr"])?r.parentNode.textContent=c:e.h!==c&&(s.data=c)},T=[],Me=e=>{let t,o,s;const n=e.__childNodes||e.childNodes;for(const l of n){if(l["s-sr"]&&(t=l["s-cr"])&&t.parentNode){o=t.parentNode.__childNodes||t.parentNode.childNodes;const i=l["s-sn"];for(s=o.length-1;s>=0;s--)if(t=o[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===l["s-hn"]||t["s-sh"]&&t["s-sh"]===l["s-hn"]))if(Ne(t,i)){let c=T.find((r=>r.k===t));q=!0,t["s-sn"]=t["s-sn"]||i,c?(c.k["s-sh"]=l["s-hn"],c.N=l):(t["s-sh"]=l["s-hn"],T.push({N:l,k:t})),t["s-sr"]&&T.map((r=>{Ne(r.k,t["s-sn"])&&(c=T.find((u=>u.k===t)),c&&!r.N&&(r.N=c.N))}))}else T.some((c=>c.k===t))||T.push({k:t})}l.nodeType===1&&Me(l)}},De=e=>{e.v&&e.v.ref&&de.push((()=>e.v.ref(null))),e.m&&e.m.map(De)},ht=(e,t)=>{ue.push((()=>e(t)))},x=(e,t,o,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,o);const{slotNode:n}=(function(l,i){var c;if(!(i=i||((c=l["s-ol"])==null?void 0:c.parentElement)))return{slotNode:null,slotName:""};const r=l["s-sn"]=V(l)||"";return{slotNode:le(re(i,"childNodes"),i.tagName,r)[0],slotName:r}})(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)},pt=(e,t,o=!1)=>{var s,n,l,i,c;const r=e.$hostElement$,u=e.o,f=e.M||U(null,null);var a;const d=(a=t)&&a.O===Oe?t:$(null,null,t);if(M=r.tagName,u.C&&(d.v=d.v||{},u.C.forEach((([p,h])=>{d.v[h]=r[p]}))),o&&d.v)for(const p of Object.keys(d.v))r.hasAttribute(p)&&!["key","ref","style","class"].includes(p)&&(d.v[p]=r[p]);if(d.O=null,d.i|=4,e.M=d,d.S=f.S=r.shadowRoot||r,I=!(!(1&u.i)||128&u.i),ie=r["s-cr"],q=!1,H(f,d,o),O.i|=1,Y){Me(d.S);for(const p of T){const h=p.k;if(!h["s-ol"]&&w.document){const v=w.document.createTextNode("");v["s-nr"]=h,x(h.parentNode,h["s-ol"]=v,h,o)}}for(const p of T){const h=p.k,v=p.N;if(h.nodeType===1&&o&&(h["s-ih"]=(s=h.hidden)!=null&&s),v){const S=v.parentNode;let y=v.nextSibling;if(y&&y.nodeType===1){let m=(n=h["s-ol"])==null?void 0:n.previousSibling;for(;m;){let g=(l=m["s-nr"])!=null?l:null;if(g&&g["s-sn"]===h["s-sn"]&&S===(g.__parentNode||g.parentNode)){for(g=g.nextSibling;g===h||g?.["s-sr"];)g=g?.nextSibling;if(!g||!g["s-nr"]){y=g;break}}m=m.previousSibling}}if((!y&&S!==(h.__parentNode||h.parentNode)||(h.__nextSibling||h.nextSibling)!==y)&&h!==y){if(x(S,h,y,o),h.nodeType===8&&h.nodeValue.startsWith("s-nt-")){const m=w.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,x(h.parentNode,m,h,o),h.parentNode.removeChild(h)}h.nodeType===1&&h.tagName!=="SLOT-FB"&&(h.hidden=(i=h["s-ih"])!=null&&i)}h&&typeof v["s-rf"]=="function"&&v["s-rf"](v)}else h.nodeType===1&&(h.hidden=!0)}}if(q&&we(d.S),O.i&=-2,T.length=0,!I&&!(1&u.i)&&r["s-cr"]){const p=d.S.__childNodes||d.S.childNodes;for(const h of p)if(h["s-hn"]!==M&&!h["s-sh"]){if(o&&h["s-ih"]==null&&(h["s-ih"]=(c=h.hidden)!=null&&c),h.nodeType===1)h.hidden=!0;else if(h.nodeType===3&&h.nodeValue.trim()){const v=w.document.createComment("s-nt-"+h.nodeValue);v["s-sn"]=h["s-sn"],x(h.parentNode,v,h,o),h.parentNode.removeChild(h)}}}ie=void 0,de.forEach((p=>p())),de.length=0,ue.forEach((p=>p())),ue.length=0},He=(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()})))}},fe=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);He(e,e.R);const o=()=>gt(e,t);if(!t)return lt(o);queueMicrotask((()=>{o()}))},gt=(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=G(s,t?"componentWillLoad":"componentWillUpdate",void 0,o),n=Be(n,(()=>G(s,"componentWillRender",void 0,o))),Be(n,(()=>yt(e,s,t)))},Be=(e,t)=>mt(e)?e.then(t).catch((o=>{console.error(o),t()})):t(),mt=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",yt=async(e,t,o)=>{var s;const n=e.$hostElement$,l=n["s-rc"];o&&(i=>{const c=i.o,r=i.$hostElement$,u=c.i,f=((a,d)=>{var p,h,v;const S=_e(d),y=z.get(S);if(!w.document)return S;if(a=a.nodeType===11?a:w.document,y)if(typeof y=="string"){let m,g=R.get(a=a.head||a);if(g||R.set(a,g=new Set),!g.has(S)){m=w.document.createElement("style"),m.textContent=y;const _=(p=O._)!=null?p:(function(){var b,N,C;return(C=(N=(b=w.document.head)==null?void 0:b.querySelector('meta[name="csp-nonce"]'))==null?void 0:N.getAttribute("content"))!=null?C:void 0})();if(_!=null&&m.setAttribute("nonce",_),!(1&d.i))if(a.nodeName==="HEAD"){const b=a.querySelectorAll("link[rel=preconnect]"),N=b.length>0?b[b.length-1].nextSibling:a.querySelector("style");a.insertBefore(m,N?.parentNode===a?N:null)}else if("host"in a)if(ee){const b=new((h=a.defaultView)!=null?h:a.ownerDocument.defaultView).CSSStyleSheet;b.replaceSync(y),te?a.adoptedStyleSheets.unshift(b):a.adoptedStyleSheets=[b,...a.adoptedStyleSheets]}else{const b=a.querySelector("style");b?b.textContent=y+b.textContent:a.prepend(m)}else a.append(m);1&d.i&&a.insertBefore(m,null),4&d.i&&(m.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),g&&g.add(S)}}else{let m=R.get(a);if(m||R.set(a,m=new Set),!m.has(S)){const g=(v=a.defaultView)!=null?v:a.ownerDocument.defaultView;let _;if(y.constructor===g.CSSStyleSheet)_=y;else{_=new g.CSSStyleSheet;for(let b=0;b<y.cssRules.length;b++)_.insertRule(y.cssRules[b].cssText,b)}te?a.adoptedStyleSheets.push(_):a.adoptedStyleSheets=[...a.adoptedStyleSheets,_],m.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),c);10&u&&(r["s-sc"]=f,r.classList.add(f+"-h"))})(e),bt(e,t,n,o),l&&(l.map((i=>i())),n["s-rc"]=void 0);{const i=(s=n["s-p"])!=null?s:[],c=()=>vt(e);i.length===0?c():(Promise.all(i).then(c).catch(c),e.i|=4,i.length=0)}},bt=(e,t,o,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,pt(e,t,s)}catch(n){L(n,e.$hostElement$)}return null},vt=e=>{const t=e.$hostElement$,o=t,s=e.R;G(o,"componentDidRender",void 0,t),64&e.i?G(o,"componentDidUpdate",void 0,t):(e.i|=64,wt(t),G(o,"componentDidLoad",void 0,t),e.L(t),s||St()),e.A&&(e.A(),e.A=void 0),512&e.i&&ne((()=>fe(e,!1))),e.i&=-517},St=()=>{ne((()=>je(w,"appload",{detail:{namespace:"gids-core-web"}})))},G=(e,t,o,s)=>{if(e&&e[t])try{return e[t](o)}catch(n){L(n,s)}},wt=e=>e.classList.add("hydrated"),Fe=(e,t,o,s)=>{const n=A(e);if(!n)return;const l=e,i=n.l.get(t),c=n.i,r=l;o=Ce(o,s.t[t][0],!!(64&s.i));const u=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!u){if(n.l.set(t,o),s.F){const f=s.F[t];f&&f.map((a=>{try{const[[d,p]]=Object.entries(a);(128&c||1&p)&&(r?r[d](o,i,t):n.T.push((()=>{n.D[d](o,i,t)})))}catch(d){L(d,l)}}))}if(2&c){if(r.componentShouldUpdate&&r.componentShouldUpdate(o,i,t)===!1&&!(16&c))return;16&c||fe(n,!1)}}},Nt=(e,t,o)=>{var s,n;const l=e.prototype;64&t.i&&1&o&&tt.forEach((i=>{const c=l[i];Object.defineProperty(l,i,{value(...r){var u;const f=A(this),a=this;a?typeof c=="function"&&c.call(a,...r):(u=f?.H)==null||u.then((d=>{const p=d[i];typeof p=="function"&&p.call(d,...r)}))}})}));{e.watchers&&!t.F&&(t.F=ke(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const i=Object.entries((s=t.t)!=null?s:{});i.map((([c,[r]])=>{if(31&r||32&r){const{get:u,set:f}=D(l,c)||{};u&&(t.t[c][0]|=2048),f&&(t.t[c][0]|=4096),Object.defineProperty(l,c,{get(){return u?u.apply(this):(a=c,A(this).l.get(a));var a},configurable:!0,enumerable:!0}),Object.defineProperty(l,c,{set(a){const d=A(this);if(d){if(f)return(32&r?this[c]:d.$hostElement$[c])===void 0&&d.l.get(c)&&(a=d.l.get(c)),f.apply(this,[Ce(a,r,!!(64&t.i))]),void Fe(this,c,a=32&r?this[c]:d.$hostElement$[c],t);Fe(this,c,a,t)}}})}}));{const c=new Map;l.attributeChangedCallback=function(r,u,f){O.jmp((()=>{var a;const d=c.get(r),p=A(this);if(this.hasOwnProperty(d),l.hasOwnProperty(d)&&typeof this[d]=="number"&&this[d]==f)return;if(d==null){const m=p?.i;if(p&&m&&!(8&m)&&f!==u){const g=this,_=(a=t.F)==null?void 0:a[r];_?.forEach((b=>{const[[N,C]]=Object.entries(b);g[N]!=null&&(128&m||1&C)&&g[N].call(g,f,u,r)}))}return}const h=i.find((([m])=>m===d)),v=h&&4&h[1][0],S=v&&f===null&&this[d]===void 0;v&&(f=f!==null&&f!=="false");const y=Object.getOwnPropertyDescriptor(l,d);S||f==this[d]||y.get&&!y.set||(this[d]=f)}))},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.F)!=null?n:{}),...i.filter((([r,u])=>31&u[0])).map((([r,u])=>{var f;const a=u[1]||r;return c.set(a,r),512&u[0]&&((f=t.C)==null||f.push([r,a])),a}))]))}}return e},_t=(e,t)=>{const o={i:t[0],p:t[1]};try{o.t=t[2],o.W=t[3],o.F=ke(e.F),o.P=e.P,o.U=e.U,o.C=[];const s=e.prototype.connectedCallback,n=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((l,i)=>{const c={i:0,$hostElement$:l,o:i,l:new Map,B:new Map};c.H=new Promise((u=>c.L=u)),l["s-p"]=[],l["s-rc"]=[];const r=c;l.__stencil__getHostRef=()=>r,512&i.i&&et(l,c)})(this,o)},connectedCallback(){if(!this.__hasHostListenerAttached){const l=A(this);if(!l)return;Ve(this,l,o.W),this.__hasHostListenerAttached=!0}(l=>{if(!(1&O.i)){const i=A(l);if(!i)return;const c=i.o;if(1&i.i)Ve(l,i,c.W),i?.D||i?.H&&i.H.then((()=>{}));else{i.i|=1,12&c.i&&(r=>{if(!w.document)return;const u=r["s-cr"]=w.document.createComment("");u["s-cn"]=!0,x(r,u,r.firstChild)})(l);{let r=l;for(;r=r.parentNode||r.host;)if(r["s-p"]){He(i,i.R=r);break}}c.t&&Object.entries(c.t).map((([r,[u]])=>{if(31&u&&Object.prototype.hasOwnProperty.call(l,r)){const f=l[r];delete l[r],l[r]=f}})),(async(r,u,f)=>{let a;try{if(!(32&u.i)&&(u.i|=32,a=r.constructor,customElements.whenDefined(r.localName).then((()=>u.i|=128)),a&&a.style)){let h;typeof a.style=="string"&&(h=a.style);const v=_e(f);z.has(v)||((S,y,m)=>{let g=z.get(S);ee&&m?(g=g||new CSSStyleSheet,typeof g=="string"?g=y:g.replaceSync(y)):g=y,z.set(S,g)})(v,h,!!(1&f.i))}const d=u.R,p=()=>fe(u,!0);d&&d["s-rc"]?d["s-rc"].push(p):p()}catch(d){L(d,r),u.A&&(u.A(),u.A=void 0),u.L&&u.L(r)}})(l,i,c)}}})(this),s&&s.call(this)},disconnectedCallback(){(async l=>{if(!(1&O.i)){const i=A(l);i?.V&&(i.V.map((c=>c())),i.V=void 0)}R.has(l)&&R.delete(l),l.shadowRoot&&R.has(l.shadowRoot)&&R.delete(l.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 rt.call(this,o)}}),Object.defineProperty(e,"is",{value:o.p,configurable:!0}),Nt(e,o,3)}catch(s){return L(s),e}},Ve=(e,t,o)=>{o&&w.document&&o.map((([s,n,l])=>{const i=$t(w.document,e,s),c=Ot(t,l),r=kt(s);O.ael(i,n,c,r),(t.V=t.V||[]).push((()=>O.rel(i,n,c,r)))}))},Ot=(e,t)=>o=>{try{e.$hostElement$[t](o)}catch(s){L(s,e.$hostElement$)}},$t=(e,t,o)=>8&o?w:t,kt=e=>ot?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Vt(e){return e}function Ie(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=Ie(e[t]))&&(s&&(s+=" "),s+=o)}else for(o in e)e[o]&&(s&&(s+=" "),s+=o);return s}function We(){for(var e,t,o=0,s="",n=arguments.length;o<n;o++)(e=arguments[o])&&(t=Ie(e))&&(s&&(s+=" "),s+=t);return s}const Ct=Object.freeze(Object.defineProperty({__proto__:null,getGidsSpinnerControlClassNames:({size:e,indeterminate:t,value:o},s)=>We("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},o,s)},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,getGidsButtonClassNames:({appearance:e,size:t,width:o,destructive:s,positive:n,loading:l},i,c)=>We("gids-button",{"gids-button--primary":e==="primary","gids-button--subtle":e==="subtle","gids-button--xs":t==="xs","gids-button--sm":t==="sm","gids-button--lg":t==="lg","gids-button--full-width":o==="full","gids-button--destructive":s&&!n,"gids-button--positive":n&&!s,"gids-button--icon-only":i,"gids-button--loading":l},c)},Symbol.toStringTag,{value:"Module"})),Q=64,Ge=10,ze=Q/2-Ge/2,xt=Q/2,he=2*Math.PI*ze,Et=`0 0 ${Q} ${Q}`,At=Object.freeze(Object.defineProperty({__proto__:null,calculateStrokeDasharray:(e=0,t)=>{const o=typeof t=="number"&&t>0?t:1,n=Math.max(0,Math.min(o,e))/o*100,l=(he*n/100).toFixed(2),i=(he-parseFloat(l)).toFixed(2);return`${l} ${i}`},centerPosition:xt,circumference:he,radius:ze,thickness:Ge,viewBox:Et},Symbol.toStringTag,{value:"Module"})),Ue=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getGidsSpinnerControlClassNames:Tt}=Ct,{calculateStrokeDasharray:Rt,thickness:qe,radius:Ye,centerPosition:X,viewBox:Pt}=At,Lt=({size:e,indeterminate:t,value:o,max:s,...n})=>{let l;return t||(l={strokeDashArray:Rt(o,s||0),strokeDashoffset:"0"}),$("svg",{class:Tt({size:e,indeterminate:t,value:o}),viewBox:Pt,...n},$("circle",{class:"gids-spinner-control__track",cx:X,cy:X,r:Ye,"stroke-width":qe}),$("circle",{style:l,class:"gids-spinner-control__progress",cx:X,cy:X,r:Ye,"stroke-width":qe}))},{getGidsButtonClassNames:Mt}=jt,Dt=({appearance:e,size:t,destructive:o,positive:s,loading:n,width:l,leadingIcon:i,trailingIcon:c,as:r,disabled:u,class:f,forceIconOnly:a=!1,...d},p)=>{const h=r||"button",v=t==="lg"||t===void 0?"md":t;return h!=="button"||"type"in d||(d.type="button"),$(h,{class:Mt({appearance:e,size:t,destructive:o,loading:n,width:l,positive:s},a||p.length===0&&Ue(i)&&!Ue(c),f),disabled:h==="button"?u:void 0,...d},$("span",{class:"gids-button__content"},i,p),n&&$(Lt,{size:v,indeterminate:!0}),c)},B=globalThis.CSSStyleSheet!==void 0?new CSSStyleSheet:void 0;let Ze=!1;B&&document.adoptedStyleSheets?document.adoptedStyleSheets.push(B):console.warn("CSSStyleSheet is not defined. Omitting constructed stylesheet behaviour.");let pe=null;const ge=globalThis.MutationObserver!==void 0?new MutationObserver((()=>{Je()})):void 0,Je=()=>{if(B===void 0)return!1;const e=(()=>{if(B===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,l=0;for(let i=0;i<s.cssRules.length;i++){const c=s.cssRules.item(i);if(c?.cssText.startsWith("gids-global-styles-start"))n=i;else if(n>-1){if(c?.cssText.startsWith("gids-global-styles-end")){l=i-n+1;break}t.push(c)}}if(n>-1)return{rulesStartIndex:n,originalRulesCount:l,rules:t,styleSheet:s}}catch(n){if(!(n instanceof DOMException))throw n}}})();if(e!==void 0){const t=e.styleSheet.ownerNode;return ge!==void 0&&t!==pe&&(pe&&ge.disconnect(),t instanceof Element&&ge.observe(t,{childList:!0,characterData:!0,subtree:!0}),pe=t),B.replaceSync((o=>o.rules.map((s=>s.cssText)).join(""))(e)),(o=>{const{rulesStartIndex:s,originalRulesCount:n,styleSheet:l}=o;for(let i=0;i<n;i++)l.deleteRule(s)})(e),!0}return console.warn("refreshConstructedGidsStylesheet: Gids stylesheet is not found in document."),!1},Ht=()=>(Ze||(Ze=Je()),B),Ke=_t(class extends st{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.select=dt(this,"select"),this._toggle=this._toggle.bind(this)}handleSelctedChange(e){this.selected=e}connectedCallback(){const e=Ht();e!==void 0&&this._el.shadowRoot?.adoptedStyleSheets.push(e)}_toggle(){const e=!this.selected;this._el.selected=this.selected,this.select?.emit(e),this.selected=this.selected}render(){return $(Oe,{key:"60cd33c1303b2f0d79c359f79f77c5e0b2055c73"},$("style",{key:"5780343ecee89c7f6df46aebae53895784314a71"},`:host {
|
|
6
6
|
display: ${this.width==="full"?"block":"inline-block"}
|
|
7
|
-
}`),$(Dt,{key:"
|
|
7
|
+
}`),$(Dt,{key:"03705a1d3fb0807af87d6e85083bf424c462f328",appearance:this.appearance,size:this.size,width:this.width,disabled:this.disabled,onClick:this._toggle,"aria-pressed":this.selected?"true":"false",leadingIcon:$("slot",{name:"leadingIcon"}),trailingIcon:$("slot",{name:"trailingIcon"}),forceIconOnly:this._onlyHasLeadingIcon()},$("slot",{key:"05e75b6a46032ddfe7448b81f5ac929105d20383"})))}_onlyHasLeadingIcon(){const e=this._el.childNodes;return e.length===1&&e[0]instanceof window.Element&&e[0].slot==="leadingIcon"}get _el(){return this}static get watchers(){return{selected:[{handleSelctedChange:0}]}}},[257,"gids-toggle-button",{disabled:[516],appearance:[513],size:[513],width:[513],defaultSelected:[516,"default-selected"],selected:[1540]},void 0,{selected:[{handleSelctedChange:0}]}]);function Qe(){typeof customElements<"u"&&["gids-toggle-button"].forEach((e=>{e==="gids-toggle-button"&&(customElements.get(e)||customElements.define(e,Ke))}))}Qe();const Bt=Ke,Ft=Qe;P.GidsToggleButton=Bt,P.defineCustomElement=Ft,Object.defineProperty(P,Symbol.toStringTag,{value:"Module"})}));
|