@ganpatiinfo/gids-core-web 21.0.0 → 22.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gids-header-navigation.js +1 -1
- package/dist-bundled/es/gids-action-bar.js +5 -5
- package/dist-bundled/es/gids-activity-gauge.js +1 -1
- package/dist-bundled/es/gids-advanced-tooltip.js +1 -1
- package/dist-bundled/es/gids-bar-chart.js +1 -1
- package/dist-bundled/es/gids-calendar-header-panel.js +1 -1
- package/dist-bundled/es/gids-calendar-month-list.js +1 -1
- package/dist-bundled/es/gids-calendar-year-list.js +1 -1
- package/dist-bundled/es/gids-calendar.js +6 -6
- package/dist-bundled/es/gids-carousel.js +1 -1
- package/dist-bundled/es/gids-chart-legend-item.js +1 -1
- package/dist-bundled/es/gids-chart.js +6 -6
- package/dist-bundled/es/gids-chevron-button.js +1 -1
- package/dist-bundled/es/gids-dot.js +1 -1
- package/dist-bundled/es/gids-dropdown-field.js +4 -4
- package/dist-bundled/es/gids-dropdown-picker.js +1 -1
- package/dist-bundled/es/gids-dropdown.js +1 -1
- package/dist-bundled/es/gids-expansion.js +1 -1
- package/dist-bundled/es/gids-field.js +1 -1
- package/dist-bundled/es/gids-filter.js +1 -1
- package/dist-bundled/es/gids-header-navigation-item.js +1 -1
- package/dist-bundled/es/gids-header-navigation.js +48 -61
- package/dist-bundled/es/gids-icon.js +1 -1
- package/dist-bundled/es/gids-input.js +1 -1
- package/dist-bundled/es/gids-line-chart.js +1 -1
- package/dist-bundled/es/gids-md-table.js +1 -1
- package/dist-bundled/es/gids-overlay-provider.js +1 -1
- package/dist-bundled/es/gids-password-field.js +4 -4
- package/dist-bundled/es/gids-pie-chart.js +1 -1
- package/dist-bundled/es/gids-profile-menu-header.js +1 -1
- package/dist-bundled/es/gids-profile-menu.js +1 -1
- package/dist-bundled/es/gids-profile.js +3 -3
- package/dist-bundled/es/gids-sidebar-item.js +1 -1
- package/dist-bundled/es/gids-sidebar-menu.js +1 -1
- package/dist-bundled/es/gids-sidebar.js +3 -3
- package/dist-bundled/es/gids-text-field.js +4 -4
- package/dist-bundled/es/gids-transfer-list.js +3 -3
- package/dist-bundled/es/{p--kh67-_Z-BBhYy4ZX.js → p--kh67-_Z-B-vf_gng.js} +3 -3
- package/dist-bundled/es/{p-B2flLE0s-UXdlvRVr.js → p-B2flLE0s-SMg7vg1a.js} +1 -1
- package/dist-bundled/es/{p-BAqWcL0K-DRjKDzoa.js → p-BAqWcL0K-DNkV1R_C.js} +1 -1
- package/dist-bundled/es/{p-BCbovLBE-DfkhIEts.js → p-BCbovLBE-CDxKiOtS.js} +1 -1
- package/dist-bundled/es/{p-BIxBMTG9-Bs6G0Wvv.js → p-BIxBMTG9-Ctr342ff.js} +2 -2
- package/dist-bundled/es/{p-BQT5yy5L-DhdgFXTM.js → p-BQT5yy5L-C1C_zTi-.js} +1 -1
- package/dist-bundled/es/{p-B_FEFM5I-WvEFe7I_.js → p-B_FEFM5I-JoBieRfG.js} +1 -1
- package/dist-bundled/es/{p-B_St7yaX-Dq9UwiaA.js → p-B_St7yaX-Da4DWjGh.js} +3 -3
- package/dist-bundled/es/{p-CAjDiWIc-BieYBjHk.js → p-CAjDiWIc-C9dOa7FT.js} +1 -1
- package/dist-bundled/es/{p-CV1-78HB-DGkn3SPO.js → p-CV1-78HB-C0k_l_CT.js} +1 -1
- package/dist-bundled/es/{p-D0RJMGGj-DSjGfUhB.js → p-D0RJMGGj-BflZ9l8y.js} +1 -1
- package/dist-bundled/es/{p-DKSnGphd-EpxzqjUA.js → p-DKSnGphd-CZSPfB-N.js} +3 -3
- package/dist-bundled/es/{p-DLRj-mUX-B_ACFGx6.js → p-DLRj-mUX-BapdQYpI.js} +1 -1
- package/dist-bundled/es/{p-DMxvWIj1-DPw-ITMY.js → p-DMxvWIj1-BxbvrlFL.js} +1 -1
- package/dist-bundled/es/{p-DZ1ZcTMe-tnPOECry.js → p-DZ1ZcTMe-W8kofPko.js} +1 -1
- package/dist-bundled/es/{p-Do_VlNHg-_g7lcvwR.js → p-Do_VlNHg-Ck03dQOR.js} +1 -1
- package/dist-bundled/es/{p-DrxfD2yZ-Juydw__6.js → p-DrxfD2yZ-Cetyr3S9.js} +2 -2
- package/dist-bundled/es/{p-Ds5IzXj3-BC_F0-JJ.js → p-Ds5IzXj3-B2o0ML2C.js} +2 -2
- package/dist-bundled/es/{p-DzOOjiNH-Wm7KbI3O.js → p-DzOOjiNH-CqI4E-mj.js} +1 -1
- package/dist-bundled/es/{p-E13ycS5K-D-yK6pqz.js → p-E13ycS5K-BBDydae3.js} +1 -1
- package/dist-bundled/es/{p-TfH966_e-tyxLyzL3.js → p-TfH966_e-BzZRV8Rj.js} +4 -4
- package/dist-bundled/es/{p-_W77iniK-DZ9pVDuI.js → p-_W77iniK-ChKfEOp3.js} +1 -1
- package/dist-bundled/es/{p-bfWlRsx_-B9hzkHIt.js → p-bfWlRsx_-CNZjBYOE.js} +2 -2
- package/dist-bundled/es/p-iQRr_fAH-Dvv1n8QD.js +1650 -0
- package/dist-bundled/es/{p-kWyyLyT3-DhHcKhR9.js → p-kWyyLyT3-VhX9LNzT.js} +2 -2
- package/dist-bundled/es/{p-mv_7K1EM-lPgJqpPI.js → p-mv_7K1EM-U3yKC45e.js} +1 -1
- package/dist-bundled/es/{p-tEbUT3n3-CWq8ErgN.js → p-tEbUT3n3-Byef6fQN.js} +2 -2
- package/dist-bundled/umd/gids-action-bar.umd.js +3 -3
- package/dist-bundled/umd/gids-activity-gauge.umd.js +2 -2
- package/dist-bundled/umd/gids-advanced-tooltip.umd.js +2 -2
- package/dist-bundled/umd/gids-bar-chart.umd.js +8 -8
- package/dist-bundled/umd/gids-calendar-header-panel.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-month-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar-year-list.umd.js +2 -2
- package/dist-bundled/umd/gids-calendar.umd.js +2 -2
- package/dist-bundled/umd/gids-carousel.umd.js +2 -2
- package/dist-bundled/umd/gids-chart-legend-item.umd.js +2 -2
- package/dist-bundled/umd/gids-chart.umd.js +5 -5
- package/dist-bundled/umd/gids-chevron-button.umd.js +2 -2
- package/dist-bundled/umd/gids-dot.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-field.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown-picker.umd.js +2 -2
- package/dist-bundled/umd/gids-dropdown.umd.js +2 -2
- package/dist-bundled/umd/gids-expansion.umd.js +2 -2
- package/dist-bundled/umd/gids-field.umd.js +2 -2
- package/dist-bundled/umd/gids-filter.umd.js +3 -3
- package/dist-bundled/umd/gids-header-navigation-item.umd.js +2 -2
- package/dist-bundled/umd/gids-header-navigation.umd.js +2 -2
- package/dist-bundled/umd/gids-icon.umd.js +2 -2
- package/dist-bundled/umd/gids-input.umd.js +2 -2
- package/dist-bundled/umd/gids-line-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-md-table.umd.js +2 -2
- package/dist-bundled/umd/gids-overlay-provider.umd.js +2 -2
- package/dist-bundled/umd/gids-password-field.umd.js +2 -2
- package/dist-bundled/umd/gids-pie-chart.umd.js +2 -2
- package/dist-bundled/umd/gids-profile-menu-header.umd.js +2 -2
- package/dist-bundled/umd/gids-profile-menu.umd.js +2 -2
- package/dist-bundled/umd/gids-profile.umd.js +2 -2
- package/dist-bundled/umd/gids-sidebar-item.umd.js +2 -2
- package/dist-bundled/umd/gids-sidebar-menu.umd.js +2 -2
- package/dist-bundled/umd/gids-sidebar.umd.js +2 -2
- package/dist-bundled/umd/gids-text-field.umd.js +2 -2
- package/dist-bundled/umd/gids-transfer-list.umd.js +2 -2
- package/dist-bundled/umd-complete/gids-core-web.umd.js +4 -4
- package/package.json +5 -5
- package/dist-bundled/es/p-iQRr_fAH-ClfWEu03.js +0 -198
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(se,
|
|
1
|
+
(function(se,ce){typeof exports=="object"&&typeof module<"u"?ce(exports):typeof define=="function"&&define.amd?define(["exports"],ce):(se=typeof globalThis<"u"?globalThis:se||self,ce(se.gidsCoreWebGidsSidebar={}))})(this,(function(se){"use strict";function ce(e,t,n){const s=typeof HTMLElement<"u"?HTMLElement.prototype:null;for(;e&&e!==s;){const i=Object.getOwnPropertyDescriptor(e,t);if(i&&(!n||i.get))return i;e=Object.getPrototypeOf(e)}}var be,Ln=(e,t)=>{var n;Object.entries((n=t.o.t)!=null?n:{}).map((([s,[i]])=>{if(31&i||32&i){const o=e[s],a=ce(Object.getPrototypeOf(e),s,!0)||Object.getOwnPropertyDescriptor(e,s);a&&Object.defineProperty(e,s,{get(){return a.get.call(this)},set(r){a.set.call(this,r)},configurable:!0,enumerable:!0}),t.l.has(s)?e[s]=t.l.get(s):o!==void 0&&(e[s]=o)}}))},H=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},kt=(e,t)=>t in e,ie=(e,t)=>(0,console.error)(e,t),Ee=new Map,Et="http://www.w3.org/1999/xlink",Fn=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],E=typeof window<"u"?window:{},ye=E.HTMLElement||class{},A={i:0,u:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},jn=(()=>{var e;let t=!1;try{(e=E.document)==null||e.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch{}return t})(),He=(()=>{try{return!!E.document.adoptedStyleSheets&&(new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function")}catch{}return!1})(),Be=!!He&&!!E.document&&Object.getOwnPropertyDescriptor(E.document.adoptedStyleSheets,"length").writable,Ue=!1,Mt=[],At=[],zn=(e,t)=>n=>{e.push(n),Ue||(Ue=!0,4&A.i?Ke(Ye):A.raf(Ye))},Pt=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(n){ie(n)}e.length=0},Ye=()=>{Pt(Mt),Pt(At),(Ue=Mt.length>0)&&A.raf(Ye)},Ke=e=>Promise.resolve(void 0).then(e),qn=zn(At);function Wn(){const e=this.attachShadow({mode:"open"});be===void 0&&(be=null),be&&(Be?e.adoptedStyleSheets.push(be):e.adoptedStyleSheets=[...e.adoptedStyleSheets,be])}var _t=e=>{const t=Ze(e,"childNodes");e.tagName&&e.tagName.includes("-")&&e["s-cr"]&&e.tagName!=="SLOT-FB"&&Xe(t,e.tagName).forEach((s=>{s.nodeType===1&&s.tagName==="SLOT-FB"&&(s.hidden=!!Gn(s,we(s),!1).length)}));let n=0;for(n=0;n<t.length;n++){const s=t[n];s.nodeType===1&&Ze(s,"childNodes").length&&_t(s)}};function Xe(e,t,n){let s,i=0,o=[];for(;i<e.length;i++){if(s=e[i],s["s-sr"]&&(!t||s["s-hn"]===t)&&(n===void 0||we(s)===n)&&(o.push(s),n!==void 0))return o;o=[...o,...Xe(s.childNodes,t,n)]}return o}var Gn=(e,t,n=!0)=>{const s=[];(n&&e["s-sr"]||!e["s-sr"])&&s.push(e);let i=e;for(;i=i.nextSibling;)we(i)!==t||!n&&i["s-sr"]||s.push(i);return s},Tt=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t||t==="",we=e=>typeof e["s-sn"]=="string"?e["s-sn"]:e.nodeType===1&&e.getAttribute("slot")||void 0;function Ze(e,t){if("__"+t in e){const n=e["__"+t];return typeof n!="function"?n:n.bind(e)}return typeof e[t]!="function"?e[t]:e[t].bind(e)}var Je,oe,Z=new WeakMap,Ot=e=>"sc-"+e.p,Qe=e=>(e=typeof e)=="object"||e==="function",w=(e,t,...n)=>{let s=null,i=null,o=null,a=!1,r=!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"&&((a=typeof e!="function"&&!Qe(s))&&(s=String(s)),a&&r?l[l.length-1].h+=s:l.push(a?Me(null,s):s),r=a)};if(c(n),t){t.key&&(i=t.key),t.name&&(o=t.name);{const d=t.className||t.class;d&&(t.class=typeof d!="object"?d:Object.keys(d).filter((h=>d[h])).join(" "))}}if(typeof e=="function")return e(t===null?{}:t,l,Vn);const u=Me(e,null);return u.v=t,l.length>0&&(u.m=l),u.$=i,u.j=o,u},Me=(e,t)=>({i:0,O:e,h:t??null,S:null,m:null,v:null,$:null,j:null}),Ae={},Vn={forEach:(e,t)=>e.map(Nt).forEach(t),map:(e,t)=>e.map(Nt).map(t).map(Hn)},Nt=e=>({vattrs:e.v,vchildren:e.m,vkey:e.$,vname:e.j,vtag:e.O,vtext:e.h}),Hn=e=>{if(typeof e.vtag=="function"){const n={...e.vattrs};return e.vkey&&(n.key=e.vkey),e.vname&&(n.name=e.vname),w(e.vtag,n,...e.vchildren||[])}const t=Me(e.vtag,e.vtext);return t.v=e.vattrs,t.m=e.vchildren,t.$=e.vkey,t.j=e.vname,t},Dt=e=>{if(!e)return;const t=Object.keys(e);if(t.length===0)return;let n=!1;for(const i of t){if(n)break;for(const o of e[i])if(typeof o=="string"){n=!0;break}}if(!n)return e;const s={};for(const i of t)s[i]=e[i].map((o=>typeof o=="string"?{[o]:0}:o));return s},$t=(e,t,n)=>e==null||Qe(e)?e:4&t?(n&&typeof e=="string"||e!=="false")&&(e===""||!!e):2&t?typeof e=="string"?parseFloat(e):typeof e=="number"?e:NaN:1&t?String(e):e,Bn=(e,t,n)=>{const s=A.ce(t,n);return e.dispatchEvent(s),s},Rt=(e,t,n,s,i,o)=>{if(n===s)return;let a=kt(e,t),r=t.toLowerCase();if(t==="class"){const l=e.classList,c=Lt(n);let u=Lt(s);l.remove(...c.filter((d=>d&&!u.includes(d)))),l.add(...u.filter((d=>d&&!c.includes(d))))}else if(t==="style"){for(const l in n)s&&s[l]!=null||(l.includes("-")?e.style.removeProperty(l):e.style[l]="");for(const l in s)n&&s[l]===n[l]||(l.includes("-")?e.style.setProperty(l,s[l]):e.style[l]=s[l])}else if(t!=="key"){if(t==="ref")s&&Kn(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=H(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=Qe(s);if((a||l&&s!==null)&&!i)try{if(e.tagName.includes("-"))e[t]!==s&&(e[t]=s);else{const u=s??"";t==="list"?a=!1:n!=null&&e[t]===u||(typeof e.__lookupSetter__(t)=="function"?e[t]=u:e.setAttribute(t,u))}}catch{}let c=!1;r!==(r=r.replace(/^xlink\:?/,""))&&(t=r,c=!0),s==null||s===!1?s===!1&&e.getAttribute(t)!==""||(c?e.removeAttributeNS(Et,t):e.removeAttribute(t)):(!a||4&o||i)&&!l&&e.nodeType===1&&(s=s===!0?"":s,c?e.setAttributeNS(Et,t,s):e.setAttribute(t,s))}}else if(t=t[2]==="-"?t.slice(3):kt(E,r)?r.slice(2):r[2]+t.slice(3),n||s){const l=t.endsWith(Ft);t=t.replace(Yn,""),n&&A.rel(e,t,n,l),s&&A.ael(e,t,s,l)}}},Un=/\s/,Lt=e=>(typeof e=="object"&&e&&"baseVal"in e&&(e=e.baseVal),e&&typeof e=="string"?e.split(Un):[]),Ft="Capture",Yn=new RegExp(Ft+"$"),et=(e,t,n)=>{const s=t.S.nodeType===11&&t.S.host?t.S.host:t.S,i=e&&e.v||{},o=t.v||{};for(const a of jt(Object.keys(i)))a in o||Rt(s,a,i[a],void 0,n,t.i);for(const a of jt(Object.keys(o)))Rt(s,a,i[a],o[a],n,t.i)};function jt(e){return e.includes("ref")?[...e.filter((t=>t!=="ref")),"ref"]:e}var ve=!1,Pe=!1,_e=!1,T=!1,tt=[],nt=[],Te=(e,t,n)=>{var s;const i=t.m[n];let o,a,r,l=0;if(ve||(_e=!0,i.O==="slot"&&(i.i|=i.m?2:1)),i.h!=null)o=i.S=E.document.createTextNode(i.h);else if(1&i.i)o=i.S=E.document.createTextNode(""),et(null,i,T);else{if(T||(T=i.O==="svg"),!E.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=i.S=E.document.createElementNS(T?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",!ve&&2&i.i?"slot-fb":i.O),T&&i.O==="foreignObject"&&(T=!1),et(null,i,T),i.m){const c=i.O==="template"?o.content:o;for(l=0;l<i.m.length;++l)a=Te(e,i,l),a&&c.appendChild(a)}i.O==="svg"?T=!1:o.tagName==="foreignObject"&&(T=!0)}return o["s-hn"]=oe,3&i.i&&(o["s-sr"]=!0,o["s-cr"]=Je,o["s-sn"]=i.j||"",o["s-rf"]=(s=i.v)==null?void 0:s.ref,(function(c){if(c.assignedElements||c.assignedNodes||!c["s-sr"])return;const u=d=>(function(h){const m=[],g=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 y=this["s-cr"].parentElement;return(y.__childNodes?y.childNodes:(S=>{const f=[];for(let p=0;p<S.length;p++){const b=S[p]["s-nr"]||void 0;b&&b.isConnected&&f.push(b)}return f})(y.childNodes)).forEach((S=>{m===ve(S)&&g.push(S)})),c?g.filter((S=>S.nodeType===1)):g}).bind(d);d.assignedElements=u(!0),d.assignedNodes=u(!1)})(o),l=e&&e.m&&e.m[n],l&&l.O===i.O&&e.S&&zt(e.S)),o},zt=e=>{P.i|=1;const t=e.closest(oe.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const i of n?s.reverse():s)i["s-sh"]!=null&&(R(t,i,n??null),i["s-sh"]=void 0,Te=!0)}P.i&=-2},Ne=(e,t)=>{P.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===oe&&n.push(s)}for(let s=n.length-1;s>=0;s--){const i=n[s];i["s-hn"]!==oe&&i["s-ol"]&&(R(Ie(i).parentNode,i,Ie(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,Te=!0),t&&Ne(i,t)}P.i&=-2},Wt=(e,t,n,s,i,o)=>{let a,l=e["s-cr"]&&e["s-cr"].parentNode||e;for(l.shadowRoot&&l.tagName===oe&&(l=l.shadowRoot),n.O==="template"&&(l=l.content);i<=o;++i)s[i]&&(a=Oe(null,n,i),a&&(s[i].S=a,R(l,a,Ie(t))))},Gt=(e,t,n)=>{for(let s=t;s<=n;++s){const i=e[s];if(i){const o=i.S;Ht(i),o&&(_e=!0,o["s-ol"]?o["s-ol"].remove():Ne(o,!0),o.remove())}}},ke=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),Ie=e=>e&&e["s-ol"]||e,ce=(e,t,n=!1)=>{const s=t.S=e.S,i=e.m,o=t.m,a=t.O,l=t.h;let r;l==null?(O=a==="svg"||a!=="foreignObject"&&O,a!=="slot"||Se||e.j!==t.j&&(t.S["s-sn"]=t.j||"",zt(t.S.parentElement)),et(e,t,O),i!==null&&o!==null?((d,u,c,h,g=!1)=>{let m,y,S=0,f=0,p=0,b=0,C=u.length-1,I=u[0],w=u[C],x=h.length-1,E=h[0],A=h[x];const _=c.O==="template"?d.content:d;for(;S<=C&&f<=x;)if(I==null)I=u[++S];else if(w==null)w=u[--C];else if(E==null)E=h[++f];else if(A==null)A=h[--x];else if(ke(I,E,g))ce(I,E,g),I=u[++S],E=h[++f];else if(ke(w,A,g))ce(w,A,g),w=u[--C],A=h[--x];else if(ke(I,A,g))I.O!=="slot"&&A.O!=="slot"||Ne(I.S.parentNode,!1),ce(I,A,g),R(_,I.S,w.S.nextSibling),I=u[++S],A=h[--x];else if(ke(w,E,g))I.O!=="slot"&&A.O!=="slot"||Ne(w.S.parentNode,!1),ce(w,E,g),R(_,w.S,I.S),w=u[--C],E=h[++f];else{for(p=-1,b=S;b<=C;++b)if(u[b]&&u[b].$!==null&&u[b].$===E.$){p=b;break}p>=0?(y=u[p],y.O!==E.O?m=Oe(u&&u[f],c,p):(ce(y,E,g),u[p]=void 0,m=y.S),E=h[++f]):(m=Oe(u&&u[f],c,f),E=h[++f]),m&&R(Ie(I.S).parentNode,m,Ie(I.S))}S>C?Wt(d,h[x+1]==null?null:h[x+1].S,c,h,f,x):f>x&&Gt(u,S,C)})(s,i,t,o,n):o!==null?(e.h!==null&&(s.textContent=""),Wt(s,null,t,o,0,o.length-1)):!n&&i!==null&&Gt(i,0,i.length-1),O&&a==="svg"&&(O=!1)):(r=s["s-cr"])?r.parentNode.textContent=l:e.h!==l&&(s.data=l)},q=[],Vt=e=>{let t,n,s;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Ot(t,a)){let l=q.find((r=>r.k===t));_e=!0,t["s-sn"]=t["s-sn"]||a,l?(l.k["s-sh"]=o["s-hn"],l.N=o):(t["s-sh"]=o["s-hn"],q.push({N:o,k:t})),t["s-sr"]&&q.map((r=>{Ot(r.k,t["s-sn"])&&(l=q.find((d=>d.k===t)),l&&!r.N&&(r.N=l.N))}))}else q.some((l=>l.k===t))||q.push({k:t})}o.nodeType===1&&Vt(o)}},Ht=e=>{e.v&&e.v.ref&&tt.push((()=>e.v.ref(null))),e.m&&e.m.map(Ht)},Kn=(e,t)=>{nt.push((()=>e(t)))},R=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:i}=(function(o,a){var l;if(!(a=a||((l=o["s-ol"])==null?void 0:l.parentElement)))return{slotNode:null,slotName:""};const r=o["s-sn"]=ve(o)||"";return{slotNode:Xe(Ze(a,"childNodes"),a.tagName,r)[0],slotName:r}})(t);return i&&!s&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},Xn=(e,t,n=!1)=>{var s,i,o,a,l;const r=e.$hostElement$,d=e.o,u=e.M||Ae(null,null);var c;const h=(c=t)&&c.O===Pe?t:v(null,null,t);if(oe=r.tagName,d.C&&(h.v=h.v||{},d.C.forEach((([g,m])=>{h.v[m]=r[g]}))),n&&h.v)for(const g of Object.keys(h.v))r.hasAttribute(g)&&!["key","ref","style","class"].includes(g)&&(h.v[g]=r[g]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=r.shadowRoot||r,Se=!(!(1&d.i)||128&d.i),Je=r["s-cr"],_e=!1,ce(u,h,n),P.i|=1,Te){Vt(h.S);for(const g of q){const m=g.k;if(!m["s-ol"]&&M.document){const y=M.document.createTextNode("");y["s-nr"]=m,R(m.parentNode,m["s-ol"]=y,m,n)}}for(const g of q){const m=g.k,y=g.N;if(m.nodeType===1&&n&&(m["s-ih"]=(s=m.hidden)!=null&&s),y){const S=y.parentNode;let f=y.nextSibling;if(f&&f.nodeType===1){let p=(i=m["s-ol"])==null?void 0:i.previousSibling;for(;p;){let b=(o=p["s-nr"])!=null?o:null;if(b&&b["s-sn"]===m["s-sn"]&&S===(b.__parentNode||b.parentNode)){for(b=b.nextSibling;b===m||b?.["s-sr"];)b=b?.nextSibling;if(!b||!b["s-nr"]){f=b;break}}p=p.previousSibling}}if((!f&&S!==(m.__parentNode||m.parentNode)||(m.__nextSibling||m.nextSibling)!==f)&&m!==f){if(R(S,m,f,n),m.nodeType===8&&m.nodeValue.startsWith("s-nt-")){const p=M.document.createTextNode(m.nodeValue.replace(/^s-nt-/,""));p["s-hn"]=m["s-hn"],p["s-sn"]=m["s-sn"],p["s-sh"]=m["s-sh"],p["s-sr"]=m["s-sr"],p["s-ol"]=m["s-ol"],p["s-ol"]["s-nr"]=p,R(m.parentNode,p,m,n),m.parentNode.removeChild(m)}m.nodeType===1&&m.tagName!=="SLOT-FB"&&(m.hidden=(a=m["s-ih"])!=null&&a)}m&&typeof y["s-rf"]=="function"&&y["s-rf"](y)}else m.nodeType===1&&(m.hidden=!0)}}if(_e&&Tt(h.S),P.i&=-2,q.length=0,!Se&&!(1&d.i)&&r["s-cr"]){const g=h.S.__childNodes||h.S.childNodes;for(const m of g)if(m["s-hn"]!==oe&&!m["s-sh"]){if(n&&m["s-ih"]==null&&(m["s-ih"]=(l=m.hidden)!=null&&l),m.nodeType===1)m.hidden=!0;else if(m.nodeType===3&&m.nodeValue.trim()){const y=M.document.createComment("s-nt-"+m.nodeValue);y["s-sn"]=m["s-sn"],R(m.parentNode,y,m,n),m.parentNode.removeChild(m)}}}Je=void 0,tt.forEach((g=>g())),tt.length=0,nt.forEach((g=>g())),nt.length=0},Bt=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},st=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Bt(e,e.R);const n=()=>Zn(e,t);if(!t)return Wn(n);queueMicrotask((()=>{n()}))},Zn=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=we(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=qt(i,(()=>we(s,"componentWillRender",void 0,n))),qt(i,(()=>Qn(e,s,t)))},qt=(e,t)=>Jn(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),Jn=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Qn=async(e,t,n)=>{var s;const i=e.$hostElement$,o=i["s-rc"];n&&(a=>{const l=a.o,r=a.$hostElement$,d=l.i,u=((c,h)=>{var g,m,y;const S=Nt(h),f=Me.get(S);if(!M.document)return S;if(c=c.nodeType===11?c:M.document,f)if(typeof f=="string"){let p,b=Z.get(c=c.head||c);if(b||Z.set(c,b=new Set),!b.has(S)){p=M.document.createElement("style"),p.textContent=f;const C=(g=P._)!=null?g:(function(){var I,w,x;return(x=(w=(I=M.document.head)==null?void 0:I.querySelector('meta[name="csp-nonce"]'))==null?void 0:w.getAttribute("content"))!=null?x:void 0})();if(C!=null&&p.setAttribute("nonce",C),!(1&h.i))if(c.nodeName==="HEAD"){const I=c.querySelectorAll("link[rel=preconnect]"),w=I.length>0?I[I.length-1].nextSibling:c.querySelector("style");c.insertBefore(p,w?.parentNode===c?w:null)}else if("host"in c)if(Be){const I=new((m=c.defaultView)!=null?m:c.ownerDocument.defaultView).CSSStyleSheet;I.replaceSync(f),qe?c.adoptedStyleSheets.unshift(I):c.adoptedStyleSheets=[I,...c.adoptedStyleSheets]}else{const I=c.querySelector("style");I?I.textContent=f+I.textContent:c.prepend(p)}else c.append(p);1&h.i&&c.insertBefore(p,null),4&h.i&&(p.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),b&&b.add(S)}}else{let p=Z.get(c);if(p||Z.set(c,p=new Set),!p.has(S)){const b=(y=c.defaultView)!=null?y:c.ownerDocument.defaultView;let C;if(f.constructor===b.CSSStyleSheet)C=f;else{C=new b.CSSStyleSheet;for(let I=0;I<f.cssRules.length;I++)C.insertRule(f.cssRules[I].cssText,I)}qe?c.adoptedStyleSheets.push(C):c.adoptedStyleSheets=[...c.adoptedStyleSheets,C],p.add(S)}}return S})(r.shadowRoot?r.shadowRoot:r.getRootNode(),l);10&d&&(r["s-sc"]=u,r.classList.add(u+"-h"))})(e),es(e,t,i,n),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(s=i["s-p"])!=null?s:[],l=()=>ts(e);a.length===0?l():(Promise.all(a).then(l).catch(l),e.i|=4,a.length=0)}},es=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Xn(e,t,s)}catch(i){ie(i,e.$hostElement$)}return null},ts=e=>{const t=e.$hostElement$,n=t,s=e.R;we(n,"componentDidRender",void 0,t),64&e.i?we(n,"componentDidUpdate",void 0,t):(e.i|=64,ss(t),we(n,"componentDidLoad",void 0,t),e.L(t),s||ns()),e.A&&(e.A(),e.A=void 0),512&e.i&&Ke((()=>st(e,!1))),e.i&=-517},ns=()=>{Ke((()=>qn(M,"appload",{detail:{namespace:"gids-core-web"}})))},we=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(i){ie(i,s)}},ss=e=>e.classList.add("hydrated"),Ut=(e,t,n,s)=>{const i=B(e);if(!i)return;const o=e,a=i.l.get(t),l=i.i,r=o;n=$t(n,s.t[t][0],!!(64&s.i));const d=Number.isNaN(a)&&Number.isNaN(n);if(n!==a&&!d){if(i.l.set(t,n),s.F){const u=s.F[t];u&&u.map((c=>{try{const[[h,g]]=Object.entries(c);(128&l||1&g)&&(r?r[h](n,a,t):i.T.push((()=>{i.D[h](n,a,t)})))}catch(h){ie(h,o)}}))}if(2&l){if(r.componentShouldUpdate&&r.componentShouldUpdate(n,a,t)===!1&&!(16&l))return;16&l||st(i,!1)}}},is=(e,t,n)=>{var s,i;const o=e.prototype;64&t.i&&1&n&&Fn.forEach((a=>{const l=o[a];Object.defineProperty(o,a,{value(...r){var d;const u=B(this),c=this;c?typeof l=="function"&&l.call(c,...r):(d=u?.H)==null||d.then((h=>{const g=h[a];typeof g=="function"&&g.call(h,...r)}))}})}));{e.watchers&&!t.F&&(t.F=Dt(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((s=t.t)!=null?s:{});a.map((([l,[r]])=>{if(31&r||32&r){const{get:d,set:u}=de(o,l)||{};d&&(t.t[l][0]|=2048),u&&(t.t[l][0]|=4096),Object.defineProperty(o,l,{get(){return d?d.apply(this):(c=l,B(this).l.get(c));var c},configurable:!0,enumerable:!0}),Object.defineProperty(o,l,{set(c){const h=B(this);if(h){if(u)return(32&r?this[l]:h.$hostElement$[l])===void 0&&h.l.get(l)&&(c=h.l.get(l)),u.apply(this,[$t(c,r,!!(64&t.i))]),void Ut(this,l,c=32&r?this[l]:h.$hostElement$[l],t);Ut(this,l,c,t)}}})}}));{const l=new Map;o.attributeChangedCallback=function(r,d,u){P.jmp((()=>{var c;const h=l.get(r),g=B(this);if(this.hasOwnProperty(h),o.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const p=g?.i;if(g&&p&&!(8&p)&&u!==d){const b=this,C=(c=t.F)==null?void 0:c[r];C?.forEach((I=>{const[[w,x]]=Object.entries(I);b[w]!=null&&(128&p||1&x)&&b[w].call(b,u,d,r)}))}return}const m=a.find((([p])=>p===h)),y=m&&4&m[1][0],S=y&&u===null&&this[h]===void 0;y&&(u=u!==null&&u!=="false");const f=Object.getOwnPropertyDescriptor(o,h);S||u==this[h]||f.get&&!f.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...a.filter((([r,d])=>31&d[0])).map((([r,d])=>{var u;const c=d[1]||r;return l.set(c,r),512&d[0]&&((u=t.C)==null||u.push([r,c])),c}))]))}}return e},De=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Dt(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const l={i:0,$hostElement$:o,o:a,l:new Map,B:new Map};l.H=new Promise((d=>l.L=d)),o["s-p"]=[],o["s-rc"]=[];const r=l;o.__stencil__getHostRef=()=>r,512&a.i&&Ln(o,l)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=B(this);if(!o)return;Yt(this,o,n.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&P.i)){const a=B(o);if(!a)return;const l=a.o;if(1&a.i)Yt(o,a,l.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&l.i&&(r=>{if(!M.document)return;const d=r["s-cr"]=M.document.createComment("");d["s-cn"]=!0,R(r,d,r.firstChild)})(o);{let r=o;for(;r=r.parentNode||r.host;)if(r["s-p"]){Bt(a,a.R=r);break}}l.t&&Object.entries(l.t).map((([r,[d]])=>{if(31&d&&Object.prototype.hasOwnProperty.call(o,r)){const u=o[r];delete o[r],o[r]=u}})),(async(r,d,u)=>{let c;try{if(!(32&d.i)&&(d.i|=32,c=r.constructor,customElements.whenDefined(r.localName).then((()=>d.i|=128)),c&&c.style)){let m;typeof c.style=="string"&&(m=c.style);const y=Nt(u);Me.has(y)||((S,f,p)=>{let b=Me.get(S);Be&&p?(b=b||new CSSStyleSheet,typeof b=="string"?b=f:b.replaceSync(f)):b=f,Me.set(S,b)})(y,m,!!(1&u.i))}const h=d.R,g=()=>st(d,!0);h&&h["s-rc"]?h["s-rc"].push(g):g()}catch(h){ie(h,r),d.A&&(d.A(),d.A=void 0),d.L&&d.L(r)}})(o,a,l)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{if(!(1&P.i)){const a=B(o);a?.V&&(a.V.map((l=>l())),a.V=void 0)}Z.has(o)&&Z.delete(o),o.shadowRoot&&Z.has(o.shadowRoot)&&Z.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Gn.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),is(e,n,3)}catch(s){return ie(s),e}},os=(e,t)=>t,Yt=(e,t,n)=>{n&&M.document&&n.map((([s,i,o])=>{const a=ls(M.document,e,s),l=as(t,o),r=rs(s);P.ael(a,i,l,r),(t.V=t.V||[]).push((()=>P.rel(a,i,l,r)))}))},as=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){ie(s,e.$hostElement$)}},ls=(e,t,n)=>8&n?M:t,rs=e=>jn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ji(e){return e}function Kt(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Kt(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function N(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Kt(e))&&(s&&(s+=" "),s+=t);return s}const $e=99,ds=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>$e?`${$e}+`:e.toString(),maxCount:$e,shouldIncludeA11yText:(e,t,n)=>e==="dot"||t!==void 0&&t>$e||n},Symbol.toStringTag,{value:"Module"})),Xt=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},cs=/\w/,us=e=>e.replace(cs,t=>t.toLocaleUpperCase()),Zt=(e,t)=>typeof e=="function"?e(t):t?us(e):e,hs=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,isLabelSentence:i})=>{const o=i?i(e):Xt(e);if(t==="required")return Zt(s&&s.length>0?s:"(required)",o);if(t==="optional")return Zt(n&&n.length>0?n:"(optional)",o)},isSentence:Xt},Symbol.toStringTag,{value:"Module"})),ms=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:n},s)=>N("gids-badge",{"gids-badge--danger":e==="danger","gids-badge--positive":e==="positive","gids-badge--warning":e==="warning","gids-badge--inverse":e==="inverse"},{"gids-badge--dot":t==="dot"},{"gids-badge--outline":n},s)},Symbol.toStringTag,{value:"Module"})),gs=Object.freeze(Object.defineProperty({__proto__:null,getGidsCheckboxControlClassNames:e=>N("gids-checkbox-control",e)},Symbol.toStringTag,{value:"Module"})),fs=Object.freeze(Object.defineProperty({__proto__:null,getGidsCheckboxClassNames:e=>N("gids-checkbox",e)},Symbol.toStringTag,{value:"Module"})),ps=Object.freeze(Object.defineProperty({__proto__:null,getGidsDisplaTagClassNames:({size:e,appearance:t,color:n},s)=>N("gids-display-tag",{"gids-display-tag--xsmall":e==="xs","gids-display-tag--small":e==="sm","gids-display-tag--large":e==="lg","gids-display-tag--accent-1":t==="subtle"&&n==="accent-1","gids-display-tag--accent-2":t==="subtle"&&n==="accent-2","gids-display-tag--accent-3":t==="subtle"&&n==="accent-3","gids-display-tag--accent-4":t==="subtle"&&n==="accent-4","gids-display-tag--accent-5":t==="subtle"&&n==="accent-5","gids-display-tag--bold-accent-1":t==="bold"&&n==="accent-1","gids-display-tag--bold-accent-2":t==="bold"&&n==="accent-2","gids-display-tag--bold-accent-3":t==="bold"&&n==="accent-3","gids-display-tag--bold-accent-4":t==="bold"&&n==="accent-4","gids-display-tag--bold-accent-5":t==="bold"&&n==="accent-5"},s)},Symbol.toStringTag,{value:"Module"})),bs=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>N("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),ys=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>N("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"})),vs=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>N("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),Ss=Object.freeze(Object.defineProperty({__proto__:null,getGidsRadioControlClassNames:e=>N("gids-radio-control",e)},Symbol.toStringTag,{value:"Module"})),Is=Object.freeze(Object.defineProperty({__proto__:null,getGidsRadioClassNames:e=>N("gids-radio",e)},Symbol.toStringTag,{value:"Module"})),ws=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarItemClassNames:e=>N("gids-sidebar-item",e)},Symbol.toStringTag,{value:"Module"})),Cs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarMenuItemClassNames:({selected:e,appearance:t,selectionAppearance:n},s)=>N("gids-sidebar-menu-item",{"gids-sidebar-menu-item--appearance-primary":t==="primary"&&!e,"gids-sidebar-menu-item--appearance-subtle":t==="subtle"&&!e,"gids-sidebar-menu-item--appearance-positive":t==="positive"&&!e,"gids-sidebar-menu-item--appearance-danger":t==="danger"&&!e,"gids-sidebar-menu-item--appearance-information":t==="information"&&!e,"gids-sidebar-menu-item--appearance-warning":t==="warning"&&!e,"gids-sidebar-menu-item--selection-appearance-default":n==="default"&&e,"gids-sidebar-menu-item--selection-appearance-primary":n==="primary"&&e,"gids-sidebar-menu-item--selection-appearance-subtle":n==="subtle"&&e,"gids-sidebar-menu-item--selection-appearance-positive":n==="positive"&&e,"gids-sidebar-menu-item--selection-appearance-danger":n==="danger"&&e,"gids-sidebar-menu-item--selection-appearance-information":n==="information"&&e,"gids-sidebar-menu-item--selection-appearance-warning":n==="warning"&&e},s)},Symbol.toStringTag,{value:"Module"})),xs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarMenuClassNames:e=>N("gids-sidebar-menu",e)},Symbol.toStringTag,{value:"Module"})),Es=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarClassNames:({appearance:e,height:t},n)=>N("gids-sidebar",{"gids-sidebar--appearance-subtle":e==="subtle","gids-sidebar--appearance-primary":e==="primary","gids-sidebar--height-full":t==="full"},n)},Symbol.toStringTag,{value:"Module"})),Ms=Object.freeze(Object.defineProperty({__proto__:null,getGidsStatusTagClassNames:({appearance:e,size:t,type:n},s)=>N("gids-status-tag",{"gids-status-tag--subtle":e==="subtle","gids-status-tag--bold":e==="bold","gids-status-tag--xs":t==="xs","gids-status-tag--md":t==="md","gids-status-tag--lg":t==="lg","gids-status-tag--subtlest-new":n==="new"&&e==="subtlest","gids-status-tag--subtlest-archived":n==="archived"&&e==="subtlest","gids-status-tag--subtlest-cancelled":n==="cancelled"&&e==="subtlest","gids-status-tag--subtlest-draft":n==="draft"&&e==="subtlest","gids-status-tag--subtlest-failed":n==="failed"&&e==="subtlest","gids-status-tag--subtlest-in-progress":n==="in-progress"&&e==="subtlest","gids-status-tag--subtlest-information":n==="information"&&e==="subtlest","gids-status-tag--subtlest-not-started":n==="not-started"&&e==="subtlest","gids-status-tag--subtlest-paused":n==="paused"&&e==="subtlest","gids-status-tag--subtlest-pending":n==="pending"&&e==="subtlest","gids-status-tag--subtlest-scheduled":n==="scheduled"&&e==="subtlest","gids-status-tag--subtlest-success":n==="success"&&e==="subtlest","gids-status-tag--subtlest-synced":n==="synced"&&e==="subtlest","gids-status-tag--subtlest-syncing":n==="syncing"&&e==="subtlest","gids-status-tag--subtlest-unknown":n==="unknown"&&e==="subtlest","gids-status-tag--subtlest-verified":n==="verified"&&e==="subtlest","gids-status-tag--subtlest-warning":n==="warning"&&e==="subtlest","gids-status-tag--subtle-new":n==="new"&&e==="subtle","gids-status-tag--subtle-archived":n==="archived"&&e==="subtle","gids-status-tag--subtle-cancelled":n==="cancelled"&&e==="subtle","gids-status-tag--subtle-draft":n==="draft"&&e==="subtle","gids-status-tag--subtle-failed":n==="failed"&&e==="subtle","gids-status-tag--subtle-in-progress":n==="in-progress"&&e==="subtle","gids-status-tag--subtle-information":n==="information"&&e==="subtle","gids-status-tag--subtle-not-started":n==="not-started"&&e==="subtle","gids-status-tag--subtle-paused":n==="paused"&&e==="subtle","gids-status-tag--subtle-pending":n==="pending"&&e==="subtle","gids-status-tag--subtle-scheduled":n==="scheduled"&&e==="subtle","gids-status-tag--subtle-success":n==="success"&&e==="subtle","gids-status-tag--subtle-synced":n==="synced"&&e==="subtle","gids-status-tag--subtle-syncing":n==="syncing"&&e==="subtle","gids-status-tag--subtle-unknown":n==="unknown"&&e==="subtle","gids-status-tag--subtle-verified":n==="verified"&&e==="subtle","gids-status-tag--subtle-warning":n==="warning"&&e==="subtle","gids-status-tag--bold-new":n==="new"&&e==="bold","gids-status-tag--bold-archived":n==="archived"&&e==="bold","gids-status-tag--bold-cancelled":n==="cancelled"&&e==="bold","gids-status-tag--bold-draft":n==="draft"&&e==="bold","gids-status-tag--bold-failed":n==="failed"&&e==="bold","gids-status-tag--bold-in-progress":n==="in-progress"&&e==="bold","gids-status-tag--bold-information":n==="information"&&e==="bold","gids-status-tag--bold-not-started":n==="not-started"&&e==="bold","gids-status-tag--bold-paused":n==="paused"&&e==="bold","gids-status-tag--bold-pending":n==="pending"&&e==="bold","gids-status-tag--bold-scheduled":n==="scheduled"&&e==="bold","gids-status-tag--bold-success":n==="success"&&e==="bold","gids-status-tag--bold-synced":n==="synced"&&e==="bold","gids-status-tag--bold-syncing":n==="syncing"&&e==="bold","gids-status-tag--bold-unknown":n==="unknown"&&e==="bold","gids-status-tag--bold-verified":n==="verified"&&e==="bold","gids-status-tag--bold-warning":n==="warning"&&e==="bold"},s),getStatusTagIconName:e=>{if(!e)return"new";switch(e){case"archived":return"archive";case"cancelled":return"cross";case"draft":return"draft";case"failed":return"danger";case"in-progress":return"in-progress";case"information":return"information";case"not-started":return"new";case"paused":return"pause";case"pending":return"pending";case"scheduled":return"time";case"success":return"positive";case"synced":return"syncing";case"syncing":return"syncing";case"unknown":return"question";case"verified":return"verified";case"warning":return"warning";default:return"new"}},getStatusTagText:e=>e?e.split("-").map((s,i)=>i===0&&s?s.charAt(0).toUpperCase()+s.slice(1):s).join(" "):void 0},Symbol.toStringTag,{value:"Module"})),it=Symbol("defaultPath"),Jt=Symbol("pathSet"),ot="gids-asset-paths-set";class As extends EventTarget{#n=new Map;constructor(){super()}#e(t,n){this.#n.set(t,n)}#t(t){return this.#n.get(t)??null}#s=()=>{this.dispatchEvent(new Event(ot))};haveAssetPathsBeenSet(){return this.#t(Jt)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(it,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(it,n)}this.#e(Jt,"true"),setTimeout(this.#s,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(it);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ot,t,{once:!0}),()=>{this.removeEventListener(ot,t)}}}const at=Symbol.for("GIDS"),Ps=()=>(globalThis[at]===void 0&&(globalThis[at]={assetPaths:{}}),globalThis[at]),_s=e=>{const t=Ps().assetPaths;return t[e]===void 0&&(t[e]=new As),t[e]};function lt(){return _s("@ganpatiinfo/gids-web-shared")}function Ts(){return lt().haveAssetPathsBeenSet()}function Qt(e){return lt().getAssetFilePath(e)}function Os(e){return lt().onAssetPathsSet(e)}let Ns=0;const rt=(e,t="gids")=>e||`${t}-${Ns++}`,en=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getDisplayContent:tn,shouldIncludeA11yText:ks}=ds,{getGidsBadgeClassNames:Ds}=ms,nn=({appearance:e,type:t,count:n,accessibleText:s,outline:i,class:o,...a})=>{const l=ks(t,n,en(s));return v("span",{class:Ds({appearance:e,type:t,outline:i},o),...a},l&&v("span",{class:"gids-visually-hidden"},en(s)?s:n),t==="notification"?l?v("span",{"aria-hidden":"true"},tn(n,s)):tn(n,s):null)},{getGidsDisplaTagClassNames:$s}=ps,sn=({label:e,appearance:t="subtle",color:n,size:s="md",icon:i,class:o,...a})=>v("span",{class:$s({size:s,appearance:t,color:n},o),...a},i,e),on={"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","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},an=new Map;for(const e in on)for(const t of on[e])an.set(t,e);function Rs(e){return an.get(e)}function ln(e,t="regular",n){const s=Rs(e);let i=s??"";return n&&s&&(i=n(s)??s),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Ls}=ys,J=({name:e,size:t,appearance:n,alt:s,class:i,titleId:o,src:a,...l})=>{const r=rt(o);let d=a;return d===void 0&&Ts()&&(d=ln(e,n,Qt)),v("svg",{ref:u=>{d===void 0&&Os((()=>{(function(c,h,g){if(!c)return;const m=document.createElementNS("http://www.w3.org/2000/svg","use");m.setAttribute("href",ln(h,g,Qt)),c.appendChild(m)})(u,e,n)}))},width:"16",height:"16",class:Ls({size:t},i),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:r,...l},s!==""&&v("title",{id:r},s||e),d!==void 0?v("use",{href:d}):null)},{getGidsCheckboxControlClassNames:Fs}=gs,js=({checked:e,defaultChecked:t,disabled:n,indeterminate:s,inputId:i,name:o,value:a,required:l,onChange:r,class:d,...u})=>v("span",{class:Fs(d),...u},v("input",{class:"gids-checkbox-control__input",type:"checkbox",disabled:n,checked:e,defaultChecked:t,required:l,indeterminate:s,value:a,id:i,name:o,onChange:r}),v(J,{class:"gids-checkbox-control__check",name:"checkmark",alt:"",size:"sm"}),v(J,{class:"gids-checkbox-control__minus",name:"minus",alt:"",size:"sm"})),{getIndicatorText:zs}=hs,{getGidsLabelClassNames:Ws}=vs,rn=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,info:i,htmlFor:o,labelId:a,class:l,isLabelSentence:r,...d},u)=>{const c=zs({children:u,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,isLabelSentence:r});return v("div",{class:Ws({disabled:e},l),...d},v("label",{htmlFor:o,id:a},u,c&&v("span",{class:"gids-label__field-requirement"},c)),i)},Q=Math.min,k=Math.max,Re=Math.round,Le=Math.floor,W=e=>({x:e,y:e}),Gs={left:"right",right:"left",bottom:"top",top:"bottom"};function dt(e,t,n){return k(e,Q(t,n))}function ue(e,t){return typeof e=="function"?e(t):e}function ee(e){return e.split("-")[0]}function he(e){return e.split("-")[1]}function dn(e){return e==="x"?"y":"x"}function ct(e){return e==="y"?"height":"width"}function U(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ut(e){return dn(U(e))}function Vs(e,t,n){n===void 0&&(n=!1);const s=he(e),i=ut(e),o=ct(i);let a=i==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Fe(a)),[a,Fe(a)]}function Hs(e){const t=Fe(e);return[ht(e),t,ht(t)]}function ht(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const cn=["left","right"],un=["right","left"],Bs=["top","bottom"],qs=["bottom","top"];function Us(e,t,n){switch(e){case"top":case"bottom":return n?t?un:cn:t?cn:un;case"left":case"right":return t?Bs:qs;default:return[]}}function Ys(e,t,n,s){const i=he(e);let o=Us(ee(e),n==="start",s);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(ht)))),o}function Fe(e){const t=ee(e);return Gs[t]+e.slice(t.length)}function Ks(e){return{top:0,right:0,bottom:0,left:0,...e}}function hn(e){return typeof e!="number"?Ks(e):{top:e,right:e,bottom:e,left:e}}function je(e){const{x:t,y:n,width:s,height:i}=e;return{width:s,height:i,top:n,left:t,right:t+s,bottom:n+i,x:t,y:n}}function mn(e,t,n){let{reference:s,floating:i}=e;const o=U(t),a=ut(t),l=ct(a),r=ee(t),d=o==="y",u=s.x+s.width/2-i.width/2,c=s.y+s.height/2-i.height/2,h=s[l]/2-i[l]/2;let g;switch(r){case"top":g={x:u,y:s.y-i.height};break;case"bottom":g={x:u,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:c};break;case"left":g={x:s.x-i.width,y:c};break;default:g={x:s.x,y:s.y}}switch(he(t)){case"start":g[a]-=h*(n&&d?-1:1);break;case"end":g[a]+=h*(n&&d?-1:1);break}return g}async function Xs(e,t){var n;t===void 0&&(t={});const{x:s,y:i,platform:o,rects:a,elements:l,strategy:r}=e,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:c="floating",altBoundary:h=!1,padding:g=0}=ue(t,e),m=hn(g),S=l[h?c==="floating"?"reference":"floating":c],f=je(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(S)))==null||n?S:S.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:r})),p=c==="floating"?{x:s,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),C=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},I=je(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:p,offsetParent:b,strategy:r}):p);return{top:(f.top-I.top+m.top)/C.y,bottom:(I.bottom-f.bottom+m.bottom)/C.y,left:(f.left-I.left+m.left)/C.x,right:(I.right-f.right+m.right)/C.x}}const Zs=50,Js=async(e,t,n)=>{const{placement:s="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=a.detectOverflow?a:{...a,detectOverflow:Xs},r=await(a.isRTL==null?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:c}=mn(d,s,r),h=s,g=0;const m={};for(let y=0;y<o.length;y++){const S=o[y];if(!S)continue;const{name:f,fn:p}=S,{x:b,y:C,data:I,reset:w}=await p({x:u,y:c,initialPlacement:s,placement:h,strategy:i,middlewareData:m,rects:d,platform:l,elements:{reference:e,floating:t}});u=b??u,c=C??c,m[f]={...m[f],...I},w&&g<Zs&&(g++,typeof w=="object"&&(w.placement&&(h=w.placement),w.rects&&(d=w.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:u,y:c}=mn(d,h,r)),y=-1)}return{x:u,y:c,placement:h,strategy:i,middlewareData:m}},Qs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:i,rects:o,platform:a,elements:l,middlewareData:r}=t,{element:d,padding:u=0}=ue(e,t)||{};if(d==null)return{};const c=hn(u),h={x:n,y:s},g=ut(i),m=ct(g),y=await a.getDimensions(d),S=g==="y",f=S?"top":"left",p=S?"bottom":"right",b=S?"clientHeight":"clientWidth",C=o.reference[m]+o.reference[g]-h[g]-o.floating[m],I=h[g]-o.reference[g],w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(d));let x=w?w[b]:0;(!x||!await(a.isElement==null?void 0:a.isElement(w)))&&(x=l.floating[b]||o.floating[m]);const E=C/2-I/2,A=x/2-y[m]/2-1,_=Q(c[f],A),V=Q(c[p],A),$=_,H=x-y[m]-V,T=x/2-y[m]/2+E,K=dt($,T,H),X=!r.arrow&&he(i)!=null&&T!==K&&o.reference[m]/2-(T<$?_:V)-y[m]/2<0,j=X?T<$?T-$:T-H:0;return{[g]:h[g]+j,data:{[g]:K,centerOffset:T-K-j,...X&&{alignmentOffset:j}},reset:X}}}),ei=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:r,elements:d}=t,{mainAxis:u=!0,crossAxis:c=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:y=!0,...S}=ue(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const f=ee(i),p=U(l),b=ee(l)===l,C=await(r.isRTL==null?void 0:r.isRTL(d.floating)),I=h||(b||!y?[Fe(l)]:Hs(l)),w=m!=="none";!h&&w&&I.push(...Ys(l,y,m,C));const x=[l,...I],E=await r.detectOverflow(t,S),A=[];let _=((s=o.flip)==null?void 0:s.overflows)||[];if(u&&A.push(E[f]),c){const T=Vs(i,a,C);A.push(E[T[0]],E[T[1]])}if(_=[..._,{placement:i,overflows:A}],!A.every(T=>T<=0)){var V,$;const T=(((V=o.flip)==null?void 0:V.index)||0)+1,K=x[T];if(K&&(!(c==="alignment"?p!==U(K):!1)||_.every(z=>U(z.placement)===p?z.overflows[0]>0:!0)))return{data:{index:T,overflows:_},reset:{placement:K}};let X=($=_.filter(j=>j.overflows[0]<=0).sort((j,z)=>j.overflows[1]-z.overflows[1])[0])==null?void 0:$.placement;if(!X)switch(g){case"bestFit":{var H;const j=(H=_.filter(z=>{if(w){const ne=U(z.placement);return ne===p||ne==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(ne=>ne>0).reduce((ne,Zi)=>ne+Zi,0)]).sort((z,ne)=>z[1]-ne[1])[0])==null?void 0:H[0];j&&(X=j);break}case"initialPlacement":X=l;break}if(i!==X)return{reset:{placement:X}}}return{}}}},ti=new Set(["left","top"]);async function ni(e,t){const{placement:n,platform:s,elements:i}=e,o=await(s.isRTL==null?void 0:s.isRTL(i.floating)),a=ee(n),l=he(n),r=U(n)==="y",d=ti.has(a)?-1:1,u=o&&r?-1:1,c=ue(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:m}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return l&&typeof m=="number"&&(g=l==="end"?m*-1:m),r?{x:g*u,y:h*d}:{x:h*d,y:g*u}}const si=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:i,y:o,placement:a,middlewareData:l}=t,r=await ni(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(s=l.arrow)!=null&&s.alignmentOffset?{}:{x:i+r.x,y:o+r.y,data:{...r,placement:a}}}}},ii=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:r={fn:f=>{let{x:p,y:b}=f;return{x:p,y:b}}},...d}=ue(e,t),u={x:n,y:s},c=await o.detectOverflow(t,d),h=U(ee(i)),g=dn(h);let m=u[g],y=u[h];if(a){const f=g==="y"?"top":"left",p=g==="y"?"bottom":"right",b=m+c[f],C=m-c[p];m=dt(b,m,C)}if(l){const f=h==="y"?"top":"left",p=h==="y"?"bottom":"right",b=y+c[f],C=y-c[p];y=dt(b,y,C)}const S=r.fn({...t,[g]:m,[h]:y});return{...S,data:{x:S.x-n,y:S.y-s,enabled:{[g]:a,[h]:l}}}}}},oi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:i,rects:o,platform:a,elements:l}=t,{apply:r=()=>{},...d}=ue(e,t),u=await a.detectOverflow(t,d),c=ee(i),h=he(i),g=U(i)==="y",{width:m,height:y}=o.floating;let S,f;c==="top"||c==="bottom"?(S=c,f=h===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(f=c,S=h==="end"?"top":"bottom");const p=y-u.top-u.bottom,b=m-u.left-u.right,C=Q(y-u[S],p),I=Q(m-u[f],b),w=!t.middlewareData.shift;let x=C,E=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(E=b),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(x=p),w&&!h){const _=k(u.left,0),V=k(u.right,0),$=k(u.top,0),H=k(u.bottom,0);g?E=m-2*(_!==0||V!==0?_+V:k(u.left,u.right)):x=y-2*($!==0||H!==0?$+H:k(u.top,u.bottom))}await r({...t,availableWidth:E,availableHeight:x});const A=await a.getDimensions(l.floating);return m!==A.width||y!==A.height?{reset:{rects:!0}}:{}}}};function ze(){return typeof window<"u"}function me(e){return gn(e)?(e.nodeName||"").toLowerCase():"#document"}function D(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function G(e){var t;return(t=(gn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gn(e){return ze()?e instanceof Node||e instanceof D(e).Node:!1}function L(e){return ze()?e instanceof Element||e instanceof D(e).Element:!1}function Y(e){return ze()?e instanceof HTMLElement||e instanceof D(e).HTMLElement:!1}function fn(e){return!ze()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof D(e).ShadowRoot}function Ce(e){const{overflow:t,overflowX:n,overflowY:s,display:i}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&i!=="inline"&&i!=="contents"}function ai(e){return/^(table|td|th)$/.test(me(e))}function We(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const li=/transform|translate|scale|rotate|perspective|filter/,ri=/paint|layout|strict|content/,ae=e=>!!e&&e!=="none";let mt;function gt(e){const t=L(e)?F(e):e;return ae(t.transform)||ae(t.translate)||ae(t.scale)||ae(t.rotate)||ae(t.perspective)||!ft()&&(ae(t.backdropFilter)||ae(t.filter))||li.test(t.willChange||"")||ri.test(t.contain||"")}function di(e){let t=te(e);for(;Y(t)&&!ge(t);){if(gt(t))return t;if(We(t))return null;t=te(t)}return null}function ft(){return mt==null&&(mt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),mt}function ge(e){return/^(html|body|#document)$/.test(me(e))}function F(e){return D(e).getComputedStyle(e)}function Ge(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function te(e){if(me(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fn(e)&&e.host||G(e);return fn(t)?t.host:t}function pn(e){const t=te(e);return ge(t)?e.ownerDocument?e.ownerDocument.body:e.body:Y(t)&&Ce(t)?t:pn(t)}function xe(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=pn(e),o=i===((s=e.ownerDocument)==null?void 0:s.body),a=D(i);if(o){const l=pt(a);return t.concat(a,a.visualViewport||[],Ce(i)?i:[],l&&n?xe(l):[])}else return t.concat(i,xe(i,[],n))}function pt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bn(e){const t=F(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const i=Y(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:s,l=Re(n)!==o||Re(s)!==a;return l&&(n=o,s=a),{width:n,height:s,$:l}}function bt(e){return L(e)?e:e.contextElement}function fe(e){const t=bt(e);if(!Y(t))return W(1);const n=t.getBoundingClientRect(),{width:s,height:i,$:o}=bn(t);let a=(o?Re(n.width):n.width)/s,l=(o?Re(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const ci=W(0);function yn(e){const t=D(e);return!ft()||!t.visualViewport?ci:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ui(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==D(e)?!1:t}function le(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=bt(e);let a=W(1);t&&(s?L(s)&&(a=fe(s)):a=fe(e));const l=ui(o,n,s)?yn(o):W(0);let r=(i.left+l.x)/a.x,d=(i.top+l.y)/a.y,u=i.width/a.x,c=i.height/a.y;if(o){const h=D(o),g=s&&L(s)?D(s):s;let m=h,y=pt(m);for(;y&&s&&g!==m;){const S=fe(y),f=y.getBoundingClientRect(),p=F(y),b=f.left+(y.clientLeft+parseFloat(p.paddingLeft))*S.x,C=f.top+(y.clientTop+parseFloat(p.paddingTop))*S.y;r*=S.x,d*=S.y,u*=S.x,c*=S.y,r+=b,d+=C,m=D(y),y=pt(m)}}return je({width:u,height:c,x:r,y:d})}function Ve(e,t){const n=Ge(e).scrollLeft;return t?t.left+n:le(G(e)).left+n}function vn(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-Ve(e,n),i=n.top+t.scrollTop;return{x:s,y:i}}function hi(e){let{elements:t,rect:n,offsetParent:s,strategy:i}=e;const o=i==="fixed",a=G(s),l=t?We(t.floating):!1;if(s===a||l&&o)return n;let r={scrollLeft:0,scrollTop:0},d=W(1);const u=W(0),c=Y(s);if((c||!c&&!o)&&((me(s)!=="body"||Ce(a))&&(r=Ge(s)),c)){const g=le(s);d=fe(s),u.x=g.x+s.clientLeft,u.y=g.y+s.clientTop}const h=a&&!c&&!o?vn(a,r):W(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-r.scrollLeft*d.x+u.x+h.x,y:n.y*d.y-r.scrollTop*d.y+u.y+h.y}}function mi(e){return Array.from(e.getClientRects())}function gi(e){const t=G(e),n=Ge(e),s=e.ownerDocument.body,i=k(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),o=k(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let a=-n.scrollLeft+Ve(e);const l=-n.scrollTop;return F(s).direction==="rtl"&&(a+=k(t.clientWidth,s.clientWidth)-i),{width:i,height:o,x:a,y:l}}const Sn=25;function fi(e,t){const n=D(e),s=G(e),i=n.visualViewport;let o=s.clientWidth,a=s.clientHeight,l=0,r=0;if(i){o=i.width,a=i.height;const u=ft();(!u||u&&t==="fixed")&&(l=i.offsetLeft,r=i.offsetTop)}const d=Ve(s);if(d<=0){const u=s.ownerDocument,c=u.body,h=getComputedStyle(c),g=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,m=Math.abs(s.clientWidth-c.clientWidth-g);m<=Sn&&(o-=m)}else d<=Sn&&(o+=d);return{width:o,height:a,x:l,y:r}}function pi(e,t){const n=le(e,!0,t==="fixed"),s=n.top+e.clientTop,i=n.left+e.clientLeft,o=Y(e)?fe(e):W(1),a=e.clientWidth*o.x,l=e.clientHeight*o.y,r=i*o.x,d=s*o.y;return{width:a,height:l,x:r,y:d}}function In(e,t,n){let s;if(t==="viewport")s=fi(e,n);else if(t==="document")s=gi(G(e));else if(L(t))s=pi(t,n);else{const i=yn(e);s={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return je(s)}function wn(e,t){const n=te(e);return n===t||!L(n)||ge(n)?!1:F(n).position==="fixed"||wn(n,t)}function bi(e,t){const n=t.get(e);if(n)return n;let s=xe(e,[],!1).filter(l=>L(l)&&me(l)!=="body"),i=null;const o=F(e).position==="fixed";let a=o?te(e):e;for(;L(a)&&!ge(a);){const l=F(a),r=gt(a);!r&&l.position==="fixed"&&(i=null),(o?!r&&!i:!r&&l.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Ce(a)&&!r&&wn(e,a))?s=s.filter(u=>u!==a):i=l,a=te(a)}return t.set(e,s),s}function yi(e){let{element:t,boundary:n,rootBoundary:s,strategy:i}=e;const a=[...n==="clippingAncestors"?We(t)?[]:bi(t,this._c):[].concat(n),s],l=In(t,a[0],i);let r=l.top,d=l.right,u=l.bottom,c=l.left;for(let h=1;h<a.length;h++){const g=In(t,a[h],i);r=k(g.top,r),d=Q(g.right,d),u=Q(g.bottom,u),c=k(g.left,c)}return{width:d-c,height:u-r,x:c,y:r}}function vi(e){const{width:t,height:n}=bn(e);return{width:t,height:n}}function Si(e,t,n){const s=Y(t),i=G(t),o=n==="fixed",a=le(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const r=W(0);function d(){r.x=Ve(i)}if(s||!s&&!o)if((me(t)!=="body"||Ce(i))&&(l=Ge(t)),s){const g=le(t,!0,o,t);r.x=g.x+t.clientLeft,r.y=g.y+t.clientTop}else i&&d();o&&!s&&i&&d();const u=i&&!s&&!o?vn(i,l):W(0),c=a.left+l.scrollLeft-r.x-u.x,h=a.top+l.scrollTop-r.y-u.y;return{x:c,y:h,width:a.width,height:a.height}}function yt(e){return F(e).position==="static"}function Cn(e,t){if(!Y(e)||F(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return G(e)===n&&(n=n.ownerDocument.body),n}function xn(e,t){const n=D(e);if(We(e))return n;if(!Y(e)){let i=te(e);for(;i&&!ge(i);){if(L(i)&&!yt(i))return i;i=te(i)}return n}let s=Cn(e,t);for(;s&&ai(s)&&yt(s);)s=Cn(s,t);return s&&ge(s)&&yt(s)&&!gt(s)?n:s||di(e)||n}const Ii=async function(e){const t=this.getOffsetParent||xn,n=this.getDimensions,s=await n(e.floating);return{reference:Si(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function wi(e){return F(e).direction==="rtl"}const vt={convertOffsetParentRelativeRectToViewportRelativeRect:hi,getDocumentElement:G,getClippingRect:yi,getOffsetParent:xn,getElementRects:Ii,getClientRects:mi,getDimensions:vi,getScale:fe,isElement:L,isRTL:wi};function En(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ci(e,t){let n=null,s;const i=G(e);function o(){var l;clearTimeout(s),(l=n)==null||l.disconnect(),n=null}function a(l,r){l===void 0&&(l=!1),r===void 0&&(r=1),o();const d=e.getBoundingClientRect(),{left:u,top:c,width:h,height:g}=d;if(l||t(),!h||!g)return;const m=Le(c),y=Le(i.clientWidth-(u+h)),S=Le(i.clientHeight-(c+g)),f=Le(u),b={rootMargin:-m+"px "+-y+"px "+-S+"px "+-f+"px",threshold:k(0,Q(1,r))||1};let C=!0;function I(w){const x=w[0].intersectionRatio;if(x!==r){if(!C)return a();x?a(!1,x):s=setTimeout(()=>{a(!1,1e-7)},1e3)}x===1&&!En(d,e.getBoundingClientRect())&&a(),C=!1}try{n=new IntersectionObserver(I,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(I,b)}n.observe(e)}return a(!0),o}function xi(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:r=!1}=s,d=bt(e),u=i||o?[...d?xe(d):[],...t?xe(t):[]]:[];u.forEach(f=>{i&&f.addEventListener("scroll",n,{passive:!0}),o&&f.addEventListener("resize",n)});const c=d&&l?Ci(d,n):null;let h=-1,g=null;a&&(g=new ResizeObserver(f=>{let[p]=f;p&&p.target===d&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=g)==null||b.observe(t)})),n()}),d&&!r&&g.observe(d),t&&g.observe(t));let m,y=r?le(e):null;r&&S();function S(){const f=le(e);y&&!En(y,f)&&n(),y=f,m=requestAnimationFrame(S)}return n(),()=>{var f;u.forEach(p=>{i&&p.removeEventListener("scroll",n),o&&p.removeEventListener("resize",n)}),c?.(),(f=g)==null||f.disconnect(),g=null,r&&cancelAnimationFrame(m)}}const Ei=si,Mi=ii,Ai=ei,Mn=oi,Pi=Qs,_i=(e,t,n)=>{const s=new Map,i={platform:vt,...n},o={...i.platform,_c:s};return Js(e,t,{...i,platform:o})};function An(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const Ti=/transform|translate|scale|rotate|perspective|filter/,Oi=/paint|layout|strict|content/,re=e=>!!e&&e!=="none";let St;function Ni(e){const t=(n=e,typeof window<"u"&&(n instanceof Element||n instanceof An(n).Element)?An(s=e).getComputedStyle(s):e);var n,s;return re(t.transform)||re(t.translate)||re(t.scale)||re(t.rotate)||re(t.perspective)||(St==null&&(St=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!St&&(re(t.backdropFilter)||re(t.filter)))||Ti.test(t.willChange||"")||Oi.test(t.contain||"")}function ki(e){return(function(t){for(let n=t;n;n=It(n))if(n instanceof Element&&getComputedStyle(n).display==="none")return null;for(let n=It(t);n;n=It(n)){if(!(n instanceof Element))continue;const s=getComputedStyle(n);if(s.display!=="contents"&&(s.position!=="static"||Ni(s)||n.tagName==="BODY"))return n}return null})(e)}function It(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}var Ee;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover",e.FLYOUT_PANEL="flyout-panel"})(Ee||(Ee={}));const pe=class pe{constructor(t,n){this.el=t,this.config=n,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=n.placement,this.cleanup=null}getRootElement(){return this.el.shadowRoot??this.el}initialize(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250;const t=this.getRootElement();this.floatingElement=t.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?t.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElement?this.config.getAnchorElement(t):this.el.shadowRoot?this.config.getAnchorElementFromSlot(this.el.shadowRoot):null,this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&(this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=xi(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=this.config.offset??this.offset,n=[Ei(t)],s=this.config.lockToMainAxis??!1,i=this.config.constrainPlacements,o=i&&i.length>0?i.includes(this.config.placement)?this.config.placement:i[0]:this.config.placement,a=Ai(i&&i.length>0?{mainAxis:!0,crossAxis:!1,padding:t,fallbackPlacements:i.filter((d=>d!==o)),fallbackAxisSideDirection:"none"}:{mainAxis:!0,crossAxis:!s&&"alignment",fallbackAxisSideDirection:"end",padding:t}),l=this.config.elementType===Ee.POPOVER,r=Mi({padding:t,mainAxis:this.config.constrainToViewportHeight||this.config.elementType===Ee.TOOLTIP||l&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.matchReferenceWidth&&n.push(Mn({apply({elements:d,rects:u}){Object.assign(d.floating.style,{width:`${u.reference.width}px`})}})),o?.includes("-")?n.push(a,r):n.push(r,a),this.config.constrainToViewportHeight&&n.push(Mn({padding:t,apply:({availableHeight:d,elements:u})=>{const c=Array.from(u.floating.children).find((h=>h!==this.arrowEl));c instanceof HTMLElement&&Object.assign(c.style,{maxHeight:`${Math.max(0,d)}px`,overflowY:"auto",overflowX:"hidden"})}})),this.config.showArrow!==!1&&this.arrowEl&&n.push(Pi({element:this.arrowEl,padding:t})),_i(this.anchorElement,this.floatingElement,{placement:o,strategy:"fixed",middleware:n,platform:{...vt,getOffsetParent:d=>vt.getOffsetParent(d,ki)}}).then((({x:d,y:u,middlewareData:c,placement:h})=>{if(l){const S=h.startsWith("left")||h.startsWith("right"),f=h.startsWith("top")||h.startsWith("bottom"),p=this.isAnchorInViewport(),b=!!f||(S?p:this.popoverMainAxisEnabled);if(b!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=b,void this.updatePosition()}this.currentPlacement=h,Object.assign(this.floatingElement.style,{left:`${d}px`,top:`${u}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const g=h.split("-")[0]??"bottom",m={top:"bottom",right:"left",bottom:"top",left:"right"}[g],{arrowZIndex:y}=this.normalizeFloatingElementStacking();if(c.arrow&&this.arrowEl){const S=this.arrowEl.offsetWidth,{x:f,y:p}=c.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(g)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(g)?" 0":""}`,Object.assign(this.arrowEl.style,{left:f!==null?`${f}px`:"",top:p!==null?`${p}px`:"",right:"",bottom:"",[m]:-S/2+"px",transform:"rotate(45deg)",zIndex:`${y}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement&&this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),n=Number.parseInt(t,10),s=Number.isNaN(n)?-1:n-1,i=Number.isNaN(n)?s+1:n;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((o=>{if(!(o instanceof HTMLElement)||o===this.arrowEl)return;const a=o.style.zIndex||(window.getComputedStyle?.(o).zIndex??""),l=Number.parseInt(a,10),r=window.getComputedStyle?.(o).position??"";(a===""||a==="auto"||Number.isNaN(l)||l<i)&&(o.style.zIndex=`${i}`,r!==""&&r!=="static"||(o.style.position="relative"))})),{contentZIndex:i,arrowZIndex:s}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),pe.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=pe.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),pe.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),n=window.innerHeight||document.documentElement?.clientHeight||0,s=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=n-i&&t.right>=0&&t.left<=s}};pe.currentFloatingElements=new Map;let wt=pe;const Di=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.constrainPlacements=["bottom","top"],this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const n=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!n&&this.floatingElementManager.isVisible()?this.onFlyoutPanelShow():n&&!this.floatingElementManager.isVisible()&&this.onFlyoutPanelHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onFlyoutPanelHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onFlyoutPanelHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new wt(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#flyout-panel",showArrow:!1,visibilityClass:"gids-flyout-panel--visible",elementType:Ee.FLYOUT_PANEL,constrainPlacements:this?.constrainPlacements??["bottom","top"],constrainToViewportHeight:!0,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onFlyoutPanelShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onFlyoutPanelHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#flyout-panel");if(!e)return;const t=[],n=_n(e);t.push(...n);const s=this._el.shadowRoot?.querySelector("slot:not([name])");s&&s.assignedElements({flatten:!0}).forEach((i=>{const o=_n(i);t.push(...o)})),this.focusableElements=t.sort(((i,o)=>{const a=i.compareDocumentPosition(o),l=!!(a&Node.DOCUMENT_POSITION_FOLLOWING),r=!!(a&Node.DOCUMENT_POSITION_PRECEDING);return l?-1:r?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];let s=document.activeElement;if(s===this._el){const o=this._el.shadowRoot?.activeElement;o!==null&&(s=o)}const i=this.focusableElements.indexOf(s)!==-1;e.shiftKey?s!==t&&i||(e.preventDefault(),n&&n.focus()):s!==n&&i||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}constrainPlacementsChanged(e){this.floatingElementManager?.updateConfig({constrainPlacements:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}openFlyoutPanel(e){e&&e.stopPropagation(),this.floatingElementManager.isVisible()||(this.floatingElementManager.show(),this.onFlyoutPanelShow())}closeFlyoutPanel(e){e&&e.stopPropagation(),this.floatingElementManager.isVisible()&&(this.floatingElementManager.hide(),this.onFlyoutPanelHide())}render(){return v(os,{key:"ad79cb0c6c6f36d2d6926233dd10d1de053fa405"},v("slot",{key:"97333353f6deda3222ccdcee1a7c9a42900204f5",name:"anchor"}),v("div",{key:"805d139b92080862e60dad9591908f4c9af42dd3",id:"flyout-panel",part:"flyout-panel",role:"dialog","aria-modal":"true",tabindex:"-1"},v("div",{key:"522bae9ac93bbb12e3d3f820a477c81b768ddff3"},v("slot",{key:"3c3601c973866e9d6ccb7aaeb686e0659b54ea50"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-flyout-panel{--gidsFlyoutPanel-background:var(--gids-elevation-surface-overlay-default);--gidsFlyoutPanel-text-color:var(--gids-color-text-default);--gidsFlyoutPanel-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsFlyoutPanel-border-radius:var(--gids-border-radius-lg);--gidsFlyoutPanel-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsFlyoutPanel-background)}[part=flyout-panel]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsFlyoutPanel-background);color:var(--gidsFlyoutPanel-text-color);border-radius:var(--gidsFlyoutPanel-border-radius);box-shadow:var(--gidsFlyoutPanel-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=flyout-panel]:focus{outline:none}[part=flyout-panel].gids-flyout-panel--visible{pointer-events:initial;opacity:1}"}},[257,"gids-flyout-panel",{htmlFor:[513,"for"],placement:[513],constrainPlacements:[16],openFlyoutPanel:[64],closeFlyoutPanel:[64]},void 0,{placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}]}]),Pn=e=>{if(!(e instanceof ye)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const n=e.tabIndex;e.tabIndex=-1,e.focus();const s=document.activeElement===e;return e.tabIndex=n,s&&e.blur(),s}catch{return!1}},_n=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>Pn(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),n=[];Pn(e)&&n.push(e);let s=t.nextNode();for(;s!==null;)n.push(s),s=t.nextNode();return n};function He(){typeof customElements<"u"&&["gids-flyout-panel"].forEach((e=>{e==="gids-flyout-panel"&&(customElements.get(e)||customElements.define(e,Di))}))}He();const{getGidsStatusTagClassNames:$i,getStatusTagIconName:Ri,getStatusTagText:Li}=Ms,Tn=({type:e="new",appearance:t="subtlest",size:n="sm",class:s})=>v("div",{class:$i({type:e,size:n,appearance:t},s)},v(J,{name:Ri(e),appearance:"filled"}),v("label",null,Li(e))),{getGidsCheckboxClassNames:Fi}=fs,On=({fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,info:s,labelId:i,checked:o,defaultChecked:a,disabled:l,indeterminate:r,inputId:d,name:u,value:c,required:h,onChange:g,class:m,...y},S)=>{const f=d??rt();return v("div",{class:Fi(m),...y},v(js,{checked:o,defaultChecked:a,disabled:l,indeterminate:r,inputId:f,name:u,value:c,required:h,onChange:g}),v(rn,{disabled:l,fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,labelId:i,htmlFor:f,info:s},S))},{getGidsRadioControlClassNames:ji}=Ss,zi=({checked:e,defaultChecked:t,disabled:n,inputId:s,name:i,value:o,onChange:a,class:l,...r})=>v("span",{class:ji(l),...r},v("input",{class:"gids-radio-control__input",type:"radio",disabled:n,checked:e,defaultChecked:t,value:o,id:s,name:i,onChange:a}),v("span",{class:"gids-radio-control__check"})),{getGidsRadioClassNames:Wi}=Is,Nn=({fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,info:s,labelId:i,checked:o,defaultChecked:a,disabled:l,inputId:r,name:d,value:u,onChange:c,class:h,...g},m)=>{const y=r??rt();return v("div",{class:Wi(h),...g},v(zi,{checked:o,defaultChecked:a,disabled:l,inputId:y,name:d,value:u,onChange:c}),v(rn,{disabled:l,fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,labelId:i,htmlFor:y,info:s},m))},{getGidsSidebarMenuItemClassNames:Gi}=Cs,kn=({id:e="sidebar-menu-item",appearance:t="default",selectionAppearance:n="subtle",leadingLabel:s,leadingSupportingText:i,trailingLabel:o,trailingSupportingText:a,leadingIcon:l,trailingIcon:r,leadingAccessory:d,trailingAccessory:u,selected:c,disabled:h,onPressSidebarMenuItem:g,class:m})=>{const y=s&&s!=="",S=i&&i!=="",f=o&&o!=="",p=a&&a!=="",b=y||S,C=f||p,I=b||C;return v("button",{type:"button",id:e,"data-appearance":t,"data-selected":c?"true":"false",disabled:h,class:Gi({selected:c,appearance:t,selectionAppearance:n},m),onClick:w=>{g&&g({originalEvent:w,sidebarMenuItemId:e,selected:!c})}},l||d?v("div",{class:"gids-sidebar-menu-item__leading-accessory-content"},l,d):void 0,I?v("div",{class:"gids-sidebar-menu-item__content"},b?v("div",{class:"gids-sidebar-menu-item__leading-content"},y?v("span",{class:"gids-sidebar-menu-item__label-content"},s):void 0,S?v("p",{class:"gids-sidebar-menu-item__support-content"},i):void 0):void 0,C?v("div",{class:"gids-sidebar-menu-item__trailing-content"},f?v("span",{class:"gids-sidebar-menu-item__label-content"},o):void 0,p?v("p",{class:"gids-sidebar-menu-item__support-content"},a):void 0):void 0):void 0,r||u?v("div",{class:"gids-sidebar-menu-item__trailing-accessory-content"},u,r):void 0)},{getGidsSidebarMenuClassNames:Vi}=xs,Hi=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.id="sidebar-menu",this.sidebarMenuItemAppearance="subtle",this.sidebarMenuItemSelectionAppearance="default",this.placement="right-end",this.constrainPlacements=["bottom","left","right","left-start","left-end","right-start","right-end","top"],this.selectedSectionIdState=void 0,this.selectedItemIdState=void 0,this.onSidebarMenuItemPress=({menuItem:t,itemIndex:n,sectionIndex:s,event:i})=>{if(t){const o=(this?.menuData??[])[s];(o?.menuItems??[]).length>0&&!this.isMenuItemSelected({sectionId:o?.sectionId,itemId:t.id})&&(this.selectedSectionIdState=o?.sectionId,this.selectedItemIdState=t.id,this.onSidebarMenuChange&&this.onSidebarMenuChange({originalEvent:i?.originalEvent,sidebarMenuItemId:i.sidebarMenuItemId,selected:i?.selected,sidebarMenuItemSectionId:o?.sectionId??"",sidebarMenuItemSectionIndex:s,sidebarMenuItemIndex:n,sidebarMenuId:this.id}))}this.flyoutPanelElement?.closeFlyoutPanel()},this.isMenuItemSelected=({sectionId:t,itemId:n})=>{const s=this?.selectedSectionIdState,i=this?.selectedItemIdState;return s===t&&i===n},this.isValidMenu=()=>!!(this?.menuData&&this.menuData.length>0&&this.menuData[0]?.menuItems&&this.menuData[0].menuItems.length>0),this.renderAccessory=({accessoryType:t,accessory:n})=>{switch(t){case"badge":return v(nn,{...n?.badgeProps});case"display-tag":return v(sn,{...n?.displayTagProps,label:n?.displayTagProps?.label??"",color:n?.displayTagProps?.color??"accent-1",icon:n?.displayTagProps?.iconName?v(J,{name:n.displayTagProps.iconName,appearance:n?.displayTagProps?.iconAppearance??"regular",size:n?.displayTagProps?.iconSize??"md",alt:n?.displayTagProps?.iconAlt}):void 0});case"status-tag":return v(Tn,{...n?.statusTagProps});case"checkbox":return v(On,{checked:n?.checkboxProps?.checked,disabled:n?.checkboxProps?.disabled,indeterminate:n?.checkboxProps?.indeterminate},n?.checkboxProps?.label);case"radio":return v(Nn,{checked:n?.radioProps?.checked,disabled:n?.radioProps?.disabled},n?.radioProps?.label);default:return}},this.renderIcon=t=>t?.name?v(J,{name:t.name,appearance:t?.appearance??"regular",size:t?.size??"md",alt:t?.alt}):void 0}idChanged(e){this.id=e}sidebarMenuItemAppearanceChanged(e){this.sidebarMenuItemAppearance=e}sidebarMenuItemSelectionAppearanceChanged(e){this.sidebarMenuItemSelectionAppearance=e}selectedSectionIdChanged(e){this.selectedSectionId=e,this.selectedSectionIdState=e}selectedItemIdChanged(e){this.selectedItemId=e,this.selectedItemIdState=e}placementChanged(e){this.placement=e}constrainPlacementsChanged(e){this.constrainPlacements=e}htmlForChanged(e){this.htmlFor=e}menuDataChanged(e){this.menuData=e}connectedCallback(){this.selectedSectionIdState=this.selectedSectionId,this.selectedItemIdState=this.selectedItemId}componentDidRender(){this.flyoutPanelElement=this.hostElement.querySelector("gids-flyout-panel")??void 0}render(){const e=this.id,t=this?.sidebarMenuItemAppearance??"subtle",n=this?.sidebarMenuItemSelectionAppearance??"default",s=this?.placement??"right",i=this?.constrainPlacements&&this.constrainPlacements.length>0?this.constrainPlacements:["bottom","left","right","top","left-start","left-end","right-start","right-end"],o=this.htmlFor,a=this?.menuData??[],l=this.isValidMenu(),r=Vi();return v(Pe,{key:"18caea43f2a18e876e094176ee144ece86e0eeec",id:e,class:r},l?v("gids-flyout-panel",{htmlFor:o,constrainPlacements:i,placement:s},a.map(((d,u)=>{const c=d?.sectionLabel,h=d?.menuItems??[];return v("div",{key:`${u+1}`,class:"gids-sidebar-menu__container"},c&&c!==""?v("h3",null,c):void 0,v("div",{class:"gids-sidebar-menu__item-container"},h.map(((g,m)=>{const{leadingAccessoryType:y,leadingAccessory:S,trailingAccessoryType:f,trailingAccessory:p,leadingIconProps:b,trailingIconProps:C,...I}=g;return v(kn,{key:`${m+1}`,...I,id:g.id,appearance:t,selectionAppearance:n,selected:this.isMenuItemSelected({sectionId:d?.sectionId,itemId:g.id}),leadingAccessory:this.renderAccessory({accessoryType:y,accessory:S}),trailingAccessory:this.renderAccessory({accessoryType:f,accessory:p}),leadingIcon:this.renderIcon(b),trailingIcon:this.renderIcon(C),onPressSidebarMenuItem:w=>this.onSidebarMenuItemPress({menuItem:g,sectionIndex:u,itemIndex:m,event:w})})}))))}))):void 0)}get hostElement(){return this}static get watchers(){return{id:[{idChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}],menuData:[{menuDataChanged:0}]}}static get style(){return".gids-sidebar-menu__container{display:flex;flex-direction:column;gap:var(--gids-gap-200);width:100%;padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-200)}.gids-sidebar-menu__item-container{display:flex;flex-direction:column;gap:var(--gids-gap-150)}"}},[0,"gids-sidebar-menu",{id:[1],sidebarMenuItemAppearance:[1,"sidebar-menu-item-appearance"],sidebarMenuItemSelectionAppearance:[1,"sidebar-menu-item-selection-appearance"],selectedSectionId:[1,"selected-section-id"],selectedItemId:[1,"selected-item-id"],placement:[1],constrainPlacements:[16],htmlFor:[1,"html-for"],menuData:[16],onSidebarMenuChange:[16],selectedSectionIdState:[32],selectedItemIdState:[32]},void 0,{id:[{idChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}],menuData:[{menuDataChanged:0}]}]);function Ct(){typeof customElements<"u"&&["gids-sidebar-menu","gids-flyout-panel"].forEach((e=>{switch(e){case"gids-sidebar-menu":customElements.get(e)||customElements.define(e,Hi);break;case"gids-flyout-panel":customElements.get(e)||He()}}))}Ct();const{getGidsDividerClassNames:Bi}=bs,xt=({orientation:e})=>v("hr",{class:Bi({orientation:e})}),{getGidsSidebarItemClassNames:qi}=ws,Ui=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.selectionAppearance="default",this.menuId="sidebar-menu-item",this.menuPlacement="right-end",this.menuConstrainPlacements=["bottom","left","right","top","left-start","left-end","right-start","right-end"],this.menuData=[],this.sidebarMenuItemAppearance="subtle",this.sidebarMenuItemSelectionAppearance="default",this.selectedMenuItemSectionIdState=void 0,this.selectedMenuItemIdState=void 0,this.selectedState=!1,this.onSidebarMenuItemPress=({event:t})=>{this.isNavigatable()&&!this.isSidebarItemSelected()&&(this.selectedState=!0,this.firePressEvents({originalEvent:t?.originalEvent,sidebarItemId:this.id,hasMenu:!1,menuLength:0,sidebarMenuItemSectionId:void 0,sidebarMenuItemSectionIndex:void 0,sidebarMenuItemIndex:void 0,sidebarMenuId:void 0,sidebarMenuItemId:void 0,selected:!0}))},this.onChangeSidebarMenu=({event:t})=>{t&&t?.originalEvent?.stopPropagation();const n=this?.menuData??[];this.isMenuItemSelected({selectedMenuSectionId:t?.sidebarMenuItemSectionId,selectedMenuItemId:t?.sidebarMenuItemId,selectedMenuId:this?.menuId??void 0})||(this.selectedMenuItemSectionIdState=t?.sidebarMenuItemSectionId,this.selectedMenuItemIdState=t?.sidebarMenuItemId,this.selectedState=!0,this.firePressEvents({originalEvent:t?.originalEvent,sidebarItemId:this.id,hasMenu:!0,menuLength:n.length,sidebarMenuItemSectionId:t?.sidebarMenuItemSectionId,sidebarMenuItemSectionIndex:t?.sidebarMenuItemSectionIndex,sidebarMenuItemIndex:t?.sidebarMenuItemIndex,sidebarMenuId:t?.sidebarMenuId,sidebarMenuItemId:t?.sidebarMenuItemId,selected:!0}))},this.firePressEvents=t=>{this.onPressSidebarItem&&this.onPressSidebarItem(t)},this.isSidebarItemSelected=()=>this?.selectedState??!1,this.isMenuItemSelected=({selectedMenuId:t,selectedMenuSectionId:n,selectedMenuItemId:s})=>(this?.selectedMenuItemSectionIdState??void 0)===n&&(this?.selectedMenuItemIdState??void 0)===s&&(this?.menuId??void 0)===t,this.hasMenu=()=>{const t=this?.menuData??[];return!!(t.length>0&&t[0]?.menuItems&&t[0].menuItems.length>0&&t[0].menuItems[0]?.id)},this.isNavigatable=()=>!this.hasMenu()}idChanged(e){this.id=e}appearanceChanged(e){this.appearance=e}selectionAppearanceChanged(e){this.selectionAppearance=e}leadingLabelChanged(e){this.leadingLabel=e}leadingSupportingTextChanged(e){this.leadingSupportingText=e}trailingLabelChanged(e){this.trailingLabel=e}trailingSupportingTextChanged(e){this.trailingSupportingText=e}selectedChanged(e){this.selected=e,this.selectedState=e}disabledChanged(e){this.disabled=e}menuIdChanged(e){this.menuId=e}menuPlacementChanged(e){this.menuPlacement=e}menuConstrainPlacementsChanged(e){this.menuConstrainPlacements=e}menuDataChanged(e){this.menuData=e}sidebarMenuItemAppearanceChanged(e){this.sidebarMenuItemAppearance=e}sidebarMenuItemSelectionAppearanceChanged(e){this.sidebarMenuItemSelectionAppearance=e}selectedMenuItemSectionIdChanged(e){this.selectedMenuItemSectionId=e,this.selectedMenuItemSectionIdState=e}selectedMenuItemIdChanged(e){this.selectedMenuItemId=e,this.selectedMenuItemIdState=e}connectedCallback(){this.selectedMenuItemSectionIdState=this.selectedMenuItemSectionId,this.selectedMenuItemIdState=this.selectedMenuItemId,this.selectedState=this.selected}render(){const e=this.id,t=this?.appearance??"subtle",n=this?.selectionAppearance??"default",s=this?.leadingLabel,i=this?.leadingSupportingText,o=this?.trailingLabel,a=this?.trailingSupportingText,l=this?.disabled??!1,r=this?.selectedState??!1,d=this?.menuId??"sidebar-menu-item",u=this?.menuPlacement??"right",c=this?.menuConstrainPlacements&&this.menuConstrainPlacements.length>0?this.menuConstrainPlacements:["bottom","left","right","top","left-start","left-end","right-start","right-end"],h=this?.menuData??[],g=this?.sidebarMenuItemAppearance??"subtle",m=this?.sidebarMenuItemSelectionAppearance??"default",y=this?.selectedMenuItemSectionIdState??void 0,S=this?.selectedMenuItemIdState??void 0,f=this.hasMenu(),p=qi();return v(Pe,{key:"4df994cd92995f0a1053593ec83e2b97f45fe52d",id:e,class:p},v(kn,{key:"458143794740850d76cbf686bc82efb40afc4a8f",id:e,appearance:t,selectionAppearance:n,leadingLabel:s,leadingSupportingText:i,trailingLabel:o,trailingSupportingText:a,selected:r,disabled:l,leadingIcon:v("slot",{name:"sidebarItemLeadingIcon"}),leadingAccessory:v("slot",{name:"sidebarItemLeadingAccessory"}),trailingAccessory:v("slot",{name:"sidebarItemTrailingAccessory"}),trailingIcon:f?v(J,{name:"chevron-right",size:"md",appearance:"regular",alt:""}):void 0,onPressSidebarMenuItem:b=>this.onSidebarMenuItemPress({event:b})}),f?v("div",{class:"gids-sidebar-item__menu-container"},v("gids-sidebar-menu",{htmlFor:e,menuData:h,id:d,placement:u,constrainPlacements:c,sidebarMenuItemAppearance:g,sidebarMenuItemSelectionAppearance:m,selectedSectionId:y,selectedItemId:S,onSidebarMenuChange:b=>this.onChangeSidebarMenu({event:b})})):void 0)}get hostElement(){return this}static get watchers(){return{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],leadingLabel:[{leadingLabelChanged:0}],leadingSupportingText:[{leadingSupportingTextChanged:0}],trailingLabel:[{trailingLabelChanged:0}],trailingSupportingText:[{trailingSupportingTextChanged:0}],selected:[{selectedChanged:0}],disabled:[{disabledChanged:0}],menuId:[{menuIdChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],menuData:[{menuDataChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}]}}static get style(){return".gids-sidebar-item{display:flex;flex-direction:column;width:100%}.gids-sidebar-item__menu-container{display:flex;flex-direction:column;width:100%}"}},[260,"gids-sidebar-item",{id:[1],appearance:[1],selectionAppearance:[1,"selection-appearance"],leadingLabel:[1,"leading-label"],leadingSupportingText:[1,"leading-supporting-text"],trailingLabel:[1,"trailing-label"],trailingSupportingText:[1,"trailing-supporting-text"],selected:[4],disabled:[4],menuId:[1,"menu-id"],menuPlacement:[1,"menu-placement"],menuConstrainPlacements:[16],menuData:[16],sidebarMenuItemAppearance:[1,"sidebar-menu-item-appearance"],sidebarMenuItemSelectionAppearance:[1,"sidebar-menu-item-selection-appearance"],selectedMenuItemSectionId:[1,"selected-menu-item-section-id"],selectedMenuItemId:[1,"selected-menu-item-id"],onPressSidebarMenuItem:[16],onPressSidebarItem:[16],selectedMenuItemSectionIdState:[32],selectedMenuItemIdState:[32],selectedState:[32]},void 0,{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],leadingLabel:[{leadingLabelChanged:0}],leadingSupportingText:[{leadingSupportingTextChanged:0}],trailingLabel:[{trailingLabelChanged:0}],trailingSupportingText:[{trailingSupportingTextChanged:0}],selected:[{selectedChanged:0}],disabled:[{disabledChanged:0}],menuId:[{menuIdChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],menuData:[{menuDataChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}]}]);function Dn(){typeof customElements<"u"&&["gids-sidebar-item","gids-flyout-panel","gids-sidebar-menu"].forEach((e=>{switch(e){case"gids-sidebar-item":customElements.get(e)||customElements.define(e,Ui);break;case"gids-flyout-panel":customElements.get(e)||He();break;case"gids-sidebar-menu":customElements.get(e)||Ct()}}))}Dn();const{getGidsSidebarClassNames:Yi}=Es,$n=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.id="sidebar",this.appearance="default",this.sidebarItemAppearance="subtle",this.sidebarItemSelectionAppearance="default",this.sidebarMenuItemAppearance="subtle",this.sidebarMenuItemSelectionAppearance="default",this.height="intrinsic",this.sectionDividers=!0,this.itemDividers=!1,this.headerDivider=!0,this.menuPlacement="right-end",this.menuConstrainPlacements=["right-end","left-end","left","right","right-start","left-start"],this.listData=[],this.selectedMenuItemSectionIdState=void 0,this.selectedMenuItemIdState=void 0,this.selectedSectionIdState=void 0,this.selectedItemIdState=void 0,this.hasHeaderContent=!1,this.onSidebarItemPress=({event:t,sectionId:n,sectionIndex:s,itemIndex:i})=>{this.selectedSectionIdState=n,this.selectedItemIdState=t?.sidebarItemId??void 0,this.selectedMenuItemSectionIdState=t?.sidebarMenuItemSectionId??void 0,this.selectedMenuItemIdState=t?.sidebarMenuItemId??void 0,this.onSidebarChange&&this.onSidebarChange({...t,originalEvent:t?.originalEvent,sidebarSectionId:n,sidebarSectionIndex:s,sidebarItemIndex:i})},this.hasMenu=t=>{const n=t?.menuData??[];if(n.length<=0)return!1;const s=n[0]?.menuItems??[];return s.length<=0?!1:!!s[0]?.id},this.sidebarMenuItemSelected=({listItem:t,listItemSectionId:n})=>{if(n===this.selectedSectionIdState&&t.id===this.selectedItemIdState){const s=(t?.menuData??[]).find((i=>i?.sectionId===this?.selectedMenuItemSectionIdState));if(s){const i=s?.menuItems??[];return!!(i.length>0&&i.find((o=>o.id===this?.selectedMenuItemIdState)))}return!1}return!1},this.sidebarItemSelected=({listItem:t,listItemSectionId:n})=>this.hasMenu(t)?this.sidebarMenuItemSelected({listItem:t,listItemSectionId:n}):n===this.selectedSectionIdState&&t.id===this.selectedItemIdState,this.renderAccessory=({accessoryType:t,accessory:n,slotName:s})=>{switch(t){case"badge":return v(nn,{...n?.badgeProps,slot:s});case"display-tag":return v(sn,{...n?.displayTagProps,label:n?.displayTagProps?.label??"",color:n?.displayTagProps?.color??"accent-1",slot:s,icon:n?.displayTagProps?.iconName?v(J,{name:n.displayTagProps.iconName,appearance:n?.displayTagProps?.iconAppearance??"regular",size:n?.displayTagProps?.iconSize??"md",alt:n?.displayTagProps?.iconAlt}):void 0});case"status-tag":return v(Tn,{...n?.statusTagProps,slot:s});case"checkbox":return v(On,{checked:n?.checkboxProps?.checked,disabled:n?.checkboxProps?.disabled,indeterminate:n?.checkboxProps?.indeterminate,slot:s},n?.checkboxProps?.label);case"radio":return v(Nn,{checked:n?.radioProps?.checked,disabled:n?.radioProps?.disabled,slot:s},n?.radioProps?.label);default:return}},this.renderIcon=t=>t?.name?v(J,{name:t.name,appearance:t?.appearance??"regular",size:t?.size??"md",alt:t?.alt,slot:"sidebarItemLeadingIcon"}):void 0}idChanged(e){this.id=e}appearanceChanged(e){this.appearance=e}sidebarItemAppearanceChanged(e){this.sidebarItemAppearance=e}sidebarItemSelectionAppearanceChanged(e){this.sidebarItemSelectionAppearance=e}sidebarMenuItemAppearanceChanged(e){this.sidebarMenuItemAppearance=e}sidebarMenuItemSelectionAppearanceChanged(e){this.sidebarMenuItemSelectionAppearance=e}selectedSectionIdChanged(e){this.selectedSectionId=e,this.selectedSectionIdState=e}selectedItemIdChanged(e){this.selectedItemId=e,this.selectedItemIdState=e}selectedMenuItemSectionIdChanged(e){this.selectedMenuItemSectionId=e,this.selectedMenuItemSectionIdState=e}selectedMenuItemIdChanged(e){this.selectedMenuItemId=e,this.selectedMenuItemIdState=e}heightChanged(e){this.height=e}sectionDividersChanged(e){this.sectionDividers=e}itemDividersChanged(e){this.itemDividers=e}menuPlacementChanged(e){this.menuPlacement=e}menuConstrainPlacementsChanged(e){this.menuConstrainPlacements=e}listDataChanged(e){this.listData=e}connectedCallback(){this.selectedMenuItemSectionIdState=this.selectedMenuItemSectionId,this.selectedMenuItemIdState=this.selectedMenuItemId,this.selectedSectionIdState=this.selectedSectionId,this.selectedItemIdState=this.selectedItemId,this.hasHeaderContent=Array.from(this.hostElement.childNodes).some((e=>e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&(e.textContent?.trim().length??0)>0))}render(){const e=this.id,t=this?.appearance??"default",n=this?.sidebarItemAppearance??"subtle",s=this?.sidebarItemSelectionAppearance??"default",i=this?.sidebarMenuItemAppearance??"subtle",o=this?.sidebarMenuItemSelectionAppearance??"default",a=this?.height??"intrinsic",l=this?.menuPlacement??"right-end",r=this?.menuConstrainPlacements&&this.menuConstrainPlacements.length>0?this.menuConstrainPlacements:["right-end","left-end","left","right","right-start","left-start"],d=this?.listData??[],u=this?.sectionDividers??!0,c=this?.itemDividers??!1,h=this?.headerDivider??!0,g=this?.selectedMenuItemSectionIdState??void 0,m=this?.selectedMenuItemIdState??void 0,y=this.hasHeaderContent,S=Yi({appearance:t,height:a});return v(Pe,{key:"0b48c64fd20c4197854d539e83fead2de42b2817",class:S,id:e,"data-appearance":t},y?v("div",{class:"gids-sidebar__header-container"},v("slot",null),y&&h?v(xt,null):void 0):void 0,d.map(((f,p)=>{const b=f?.lisItems??[],C=f?.listSectionLabel,I=f?.listSectionId;return v("div",{key:`${p+1}-${I}`,class:"gids-sidebar__list-section-container"},C?v("h4",null,C):void 0,b.map(((w,x)=>{const E=`${x+1}-${p+1}-${w.id}`,{leadingAccessoryType:A,leadingAccessory:_,trailingAccessoryType:V,trailingAccessory:$,leadingIconProps:H,...T}=w;return v("div",{class:"gids-sidebar__item-container"},v("gids-sidebar-item",{...T,key:E,id:w.id,appearance:n,selectionAppearance:s,sidebarMenuItemAppearance:i,sidebarMenuItemSelectionAppearance:o,menuPlacement:l,menuConstrainPlacements:r,menuData:w?.menuData??[],menuId:w?.menuId,leadingLabel:w?.leadingLabel,leadingSupportingText:w?.leadingSupportingText,trailingLabel:w?.trailingLabel,trailingSupportingText:w?.trailingSupportingText,disabled:w?.disabled,selectedMenuItemSectionId:g,selectedMenuItemId:m,selected:this.sidebarItemSelected({listItem:w,listItemSectionId:I}),onPressSidebarItem:K=>this.onSidebarItemPress({event:K,sectionId:I,sectionIndex:p,itemIndex:x})},this.renderAccessory({accessoryType:A,accessory:_,slotName:"sidebarItemLeadingAccessory"}),this.renderIcon(H),this.renderAccessory({accessoryType:V,accessory:$,slotName:"sidebarItemTrailingAccessory"})),c&&x<b.length-1?v(xt,null):void 0)})),u&&p<d.length-1?v("div",{class:"gids-sidebar__section-divider-container"},v(xt,null)):void 0)})))}get hostElement(){return this}static get watchers(){return{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],sidebarItemAppearance:[{sidebarItemAppearanceChanged:0}],sidebarItemSelectionAppearance:[{sidebarItemSelectionAppearanceChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}],height:[{heightChanged:0}],sectionDividers:[{sectionDividersChanged:0}],itemDividers:[{itemDividersChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],listData:[{listDataChanged:0}]}}static get style(){return".gids-sidebar{display:flex;flex-direction:column;gap:var(--gids-gap-300);padding:var(--gids-padding-vertical-edge-to-element-250) var(--gids-padding-horizontal-edge-to-element-300);background-color:var(--gids-color-background-canvas);border-radius:var(--gids-border-radius-lg);border:var(--gids-border-width-thin) solid var(--gids-color-border-default)}.gids-sidebar__header-container{display:flex;flex-direction:column;width:100%;gap:var(--gids-gap-400)}.gids-sidebar__list-section-container{display:flex;flex-direction:column;gap:var(--gids-gap-150)}.gids-sidebar__list-section-container h4{margin:0;color:var(--gids-color-text-subtlest)}.gids-sidebar__item-container{display:flex;flex-direction:column;width:100%;gap:var(--gids-gap-200)}.gids-sidebar__section-divider-container{display:flex;flex-direction:column;width:100%;padding:var(--gids-padding-vertical-edge-to-element-250) 0}.gids-sidebar--appearance-subtle{background-color:transparent}.gids-sidebar--appearance-primary{background-color:var(--gids-color-background-brand-subtlest-default)}.gids-sidebar--height-full{height:100vh !important;overflow-x:hidden;overflow-y:auto}"}},[260,"gids-sidebar",{id:[1],appearance:[1],sidebarItemAppearance:[1,"sidebar-item-appearance"],sidebarItemSelectionAppearance:[1,"sidebar-item-selection-appearance"],sidebarMenuItemAppearance:[1,"sidebar-menu-item-appearance"],sidebarMenuItemSelectionAppearance:[1,"sidebar-menu-item-selection-appearance"],selectedSectionId:[1,"selected-section-id"],selectedItemId:[1,"selected-item-id"],selectedMenuItemId:[1,"selected-menu-item-id"],selectedMenuItemSectionId:[1,"selected-menu-item-section-id"],height:[1],sectionDividers:[4,"section-dividers"],itemDividers:[4,"item-dividers"],headerDivider:[4,"header-divider"],menuPlacement:[1,"menu-placement"],menuConstrainPlacements:[16],listData:[16],onSidebarChange:[16],selectedMenuItemSectionIdState:[32],selectedMenuItemIdState:[32],selectedSectionIdState:[32],selectedItemIdState:[32],hasHeaderContent:[32]},void 0,{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],sidebarItemAppearance:[{sidebarItemAppearanceChanged:0}],sidebarItemSelectionAppearance:[{sidebarItemSelectionAppearanceChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}],height:[{heightChanged:0}],sectionDividers:[{sectionDividersChanged:0}],itemDividers:[{itemDividersChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],listData:[{listDataChanged:0}]}]);function Rn(){typeof customElements<"u"&&["gids-sidebar","gids-flyout-panel","gids-sidebar-item","gids-sidebar-menu"].forEach((e=>{switch(e){case"gids-sidebar":customElements.get(e)||customElements.define(e,$n);break;case"gids-flyout-panel":customElements.get(e)||He();break;case"gids-sidebar-item":customElements.get(e)||Dn();break;case"gids-sidebar-menu":customElements.get(e)||Ct()}}))}Rn();const Ki=$n,Xi=Rn;se.GidsSidebar=Ki,se.defineCustomElement=Xi,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})}));
|
|
5
|
+
`);const y=this["s-cr"].parentElement;return(y.__childNodes?y.childNodes:(v=>{const p=[];for(let f=0;f<v.length;f++){const b=v[f]["s-nr"]||void 0;b&&b.isConnected&&p.push(b)}return p})(y.childNodes)).forEach((v=>{g===we(v)&&m.push(v)})),d?m.filter((v=>v.nodeType===1)):m}).bind(c);c.assignedElements=u(!0),c.assignedNodes=u(!1)})(o),r=e&&e.m&&e.m[n],r&&r.O===i.O&&e.S&&zt(e.S)),o},zt=e=>{A.i|=1;const t=e.closest(oe.toLowerCase());if(t!=null){const n=Array.from(t.__childNodes||t.childNodes).find((i=>i["s-cr"])),s=Array.from(e.__childNodes||e.childNodes);for(const i of n?s.reverse():s)i["s-sh"]!=null&&(R(t,i,n??null),i["s-sh"]=void 0,_e=!0)}A.i&=-2},Oe=(e,t)=>{A.i|=1;const n=Array.from(e.__childNodes||e.childNodes);if(e["s-sr"]){let s=e;for(;s=s.nextSibling;)s&&s["s-sn"]===e["s-sn"]&&s["s-sh"]===oe&&n.push(s)}for(let s=n.length-1;s>=0;s--){const i=n[s];i["s-hn"]!==oe&&i["s-ol"]&&(R(Se(i).parentNode,i,Se(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,_e=!0),t&&Oe(i,t)}A.i&=-2},qt=(e,t,n,s,i,o)=>{let a,r=e["s-cr"]&&e["s-cr"].parentNode||e;for(r.shadowRoot&&r.tagName===oe&&(r=r.shadowRoot),n.O==="template"&&(r=r.content);i<=o;++i)s[i]&&(a=Te(null,n,i),a&&(s[i].S=a,R(r,a,Se(t))))},Wt=(e,t,n)=>{for(let s=t;s<=n;++s){const i=e[s];if(i){const o=i.S;Vt(i),o&&(Pe=!0,o["s-ol"]?o["s-ol"].remove():Oe(o,!0),o.remove())}}},Ne=(e,t,n=!1)=>e.O===t.O&&(e.O==="slot"?e.j===t.j:n?(n&&!e.$&&t.$&&(e.$=t.$),!0):e.$===t.$),Se=e=>e&&e["s-ol"]||e,de=(e,t,n=!1)=>{const s=t.S=e.S,i=e.m,o=t.m,a=t.O,r=t.h;let l;r==null?(T=a==="svg"||a!=="foreignObject"&&T,a!=="slot"||ve||e.j!==t.j&&(t.S["s-sn"]=t.j||"",zt(t.S.parentElement)),et(e,t,T),i!==null&&o!==null?((c,u,d,h,m=!1)=>{let g,y,v=0,p=0,f=0,b=0,x=u.length-1,S=u[0],I=u[x],C=h.length-1,k=h[0],M=h[C];const P=d.O==="template"?c.content:c;for(;v<=x&&p<=C;)if(S==null)S=u[++v];else if(I==null)I=u[--x];else if(k==null)k=h[++p];else if(M==null)M=h[--C];else if(Ne(S,k,m))de(S,k,m),S=u[++v],k=h[++p];else if(Ne(I,M,m))de(I,M,m),I=u[--x],M=h[--C];else if(Ne(S,M,m))S.O!=="slot"&&M.O!=="slot"||Oe(S.S.parentNode,!1),de(S,M,m),R(P,S.S,I.S.nextSibling),S=u[++v],M=h[--C];else if(Ne(I,k,m))S.O!=="slot"&&M.O!=="slot"||Oe(I.S.parentNode,!1),de(I,k,m),R(P,I.S,S.S),I=u[--x],k=h[++p];else{for(f=-1,b=v;b<=x;++b)if(u[b]&&u[b].$!==null&&u[b].$===k.$){f=b;break}f>=0?(y=u[f],y.O!==k.O?g=Te(u&&u[p],d,f):(de(y,k,m),u[f]=void 0,g=y.S),k=h[++p]):(g=Te(u&&u[p],d,p),k=h[++p]),g&&R(Se(S.S).parentNode,g,Se(S.S))}v>x?qt(c,h[C+1]==null?null:h[C+1].S,d,h,p,C):p>C&&Wt(u,v,x)})(s,i,t,o,n):o!==null?(e.h!==null&&(s.textContent=""),qt(s,null,t,o,0,o.length-1)):!n&&i!==null&&Wt(i,0,i.length-1),T&&a==="svg"&&(T=!1)):(l=s["s-cr"])?l.parentNode.textContent=r:e.h!==r&&(s.data=r)},B=[],Gt=e=>{let t,n,s;const i=e.__childNodes||e.childNodes;for(const o of i){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.__childNodes||t.parentNode.childNodes;const a=o["s-sn"];for(s=n.length-1;s>=0;s--)if(t=n[s],!(t["s-cn"]||t["s-nr"]||t["s-hn"]===o["s-hn"]||t["s-sh"]&&t["s-sh"]===o["s-hn"]))if(Tt(t,a)){let r=B.find((l=>l.k===t));Pe=!0,t["s-sn"]=t["s-sn"]||a,r?(r.k["s-sh"]=o["s-hn"],r.N=o):(t["s-sh"]=o["s-hn"],B.push({N:o,k:t})),t["s-sr"]&&B.map((l=>{Tt(l.k,t["s-sn"])&&(r=B.find((c=>c.k===t)),r&&!l.N&&(l.N=r.N))}))}else B.some((r=>r.k===t))||B.push({k:t})}o.nodeType===1&&Gt(o)}},Vt=e=>{e.v&&e.v.ref&&tt.push((()=>e.v.ref(null))),e.m&&e.m.map(Vt)},Kn=(e,t)=>{nt.push((()=>e(t)))},R=(e,t,n,s)=>{if(typeof t["s-sn"]=="string"){e.insertBefore(t,n);const{slotNode:i}=(function(o,a){var r;if(!(a=a||((r=o["s-ol"])==null?void 0:r.parentElement)))return{slotNode:null,slotName:""};const l=o["s-sn"]=we(o)||"";return{slotNode:Xe(Ze(a,"childNodes"),a.tagName,l)[0],slotName:l}})(t);return i&&!s&&i.dispatchEvent(new CustomEvent("slotchange",{bubbles:!1,cancelable:!1,composed:!1})),t}return e.__insertBefore?e.__insertBefore(t,n):e?.insertBefore(t,n)},Xn=(e,t,n=!1)=>{var s,i,o,a,r;const l=e.$hostElement$,c=e.o,u=e.M||Me(null,null);var d;const h=(d=t)&&d.O===Ae?t:w(null,null,t);if(oe=l.tagName,c.C&&(h.v=h.v||{},c.C.forEach((([m,g])=>{h.v[g]=l[m]}))),n&&h.v)for(const m of Object.keys(h.v))l.hasAttribute(m)&&!["key","ref","style","class"].includes(m)&&(h.v[m]=l[m]);if(h.O=null,h.i|=4,e.M=h,h.S=u.S=l.shadowRoot||l,ve=!(!(1&c.i)||128&c.i),Je=l["s-cr"],Pe=!1,de(u,h,n),A.i|=1,_e){Gt(h.S);for(const m of B){const g=m.k;if(!g["s-ol"]&&E.document){const y=E.document.createTextNode("");y["s-nr"]=g,R(g.parentNode,g["s-ol"]=y,g,n)}}for(const m of B){const g=m.k,y=m.N;if(g.nodeType===1&&n&&(g["s-ih"]=(s=g.hidden)!=null&&s),y){const v=y.parentNode;let p=y.nextSibling;if(p&&p.nodeType===1){let f=(i=g["s-ol"])==null?void 0:i.previousSibling;for(;f;){let b=(o=f["s-nr"])!=null?o:null;if(b&&b["s-sn"]===g["s-sn"]&&v===(b.__parentNode||b.parentNode)){for(b=b.nextSibling;b===g||b?.["s-sr"];)b=b?.nextSibling;if(!b||!b["s-nr"]){p=b;break}}f=f.previousSibling}}if((!p&&v!==(g.__parentNode||g.parentNode)||(g.__nextSibling||g.nextSibling)!==p)&&g!==p){if(R(v,g,p,n),g.nodeType===8&&g.nodeValue.startsWith("s-nt-")){const f=E.document.createTextNode(g.nodeValue.replace(/^s-nt-/,""));f["s-hn"]=g["s-hn"],f["s-sn"]=g["s-sn"],f["s-sh"]=g["s-sh"],f["s-sr"]=g["s-sr"],f["s-ol"]=g["s-ol"],f["s-ol"]["s-nr"]=f,R(g.parentNode,f,g,n),g.parentNode.removeChild(g)}g.nodeType===1&&g.tagName!=="SLOT-FB"&&(g.hidden=(a=g["s-ih"])!=null&&a)}g&&typeof y["s-rf"]=="function"&&y["s-rf"](y)}else g.nodeType===1&&(g.hidden=!0)}}if(Pe&&_t(h.S),A.i&=-2,B.length=0,!ve&&!(1&c.i)&&l["s-cr"]){const m=h.S.__childNodes||h.S.childNodes;for(const g of m)if(g["s-hn"]!==oe&&!g["s-sh"]){if(n&&g["s-ih"]==null&&(g["s-ih"]=(r=g.hidden)!=null&&r),g.nodeType===1)g.hidden=!0;else if(g.nodeType===3&&g.nodeValue.trim()){const y=E.document.createComment("s-nt-"+g.nodeValue);y["s-sn"]=g["s-sn"],R(g.parentNode,y,g,n),g.parentNode.removeChild(g)}}}Je=void 0,tt.forEach((m=>m())),tt.length=0,nt.forEach((m=>m())),nt.length=0},Ht=(e,t)=>{if(t&&!e.A&&t["s-p"]){const n=t["s-p"].push(new Promise((s=>e.A=()=>{t["s-p"].splice(n-1,1),s()})))}},st=(e,t)=>{if(e.i|=16,4&e.i)return void(e.i|=512);Ht(e,e.R);const n=()=>Zn(e,t);if(!t)return qn(n);queueMicrotask((()=>{n()}))},Zn=(e,t)=>{const n=e.$hostElement$,s=n;if(!s)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let i;return i=Ie(s,t?"componentWillLoad":"componentWillUpdate",void 0,n),i=Bt(i,(()=>Ie(s,"componentWillRender",void 0,n))),Bt(i,(()=>Qn(e,s,t)))},Bt=(e,t)=>Jn(e)?e.then(t).catch((n=>{console.error(n),t()})):t(),Jn=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Qn=async(e,t,n)=>{var s;const i=e.$hostElement$,o=i["s-rc"];n&&(a=>{const r=a.o,l=a.$hostElement$,c=r.i,u=((d,h)=>{var m,g,y;const v=Ot(h),p=Ee.get(v);if(!E.document)return v;if(d=d.nodeType===11?d:E.document,p)if(typeof p=="string"){let f,b=Z.get(d=d.head||d);if(b||Z.set(d,b=new Set),!b.has(v)){f=E.document.createElement("style"),f.textContent=p;const x=(m=A._)!=null?m:(function(){var S,I,C;return(C=(I=(S=E.document.head)==null?void 0:S.querySelector('meta[name="csp-nonce"]'))==null?void 0:I.getAttribute("content"))!=null?C:void 0})();if(x!=null&&f.setAttribute("nonce",x),!(1&h.i))if(d.nodeName==="HEAD"){const S=d.querySelectorAll("link[rel=preconnect]"),I=S.length>0?S[S.length-1].nextSibling:d.querySelector("style");d.insertBefore(f,I?.parentNode===d?I:null)}else if("host"in d)if(He){const S=new((g=d.defaultView)!=null?g:d.ownerDocument.defaultView).CSSStyleSheet;S.replaceSync(p),Be?d.adoptedStyleSheets.unshift(S):d.adoptedStyleSheets=[S,...d.adoptedStyleSheets]}else{const S=d.querySelector("style");S?S.textContent=p+S.textContent:d.prepend(f)}else d.append(f);1&h.i&&d.insertBefore(f,null),4&h.i&&(f.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),b&&b.add(v)}}else{let f=Z.get(d);if(f||Z.set(d,f=new Set),!f.has(v)){const b=(y=d.defaultView)!=null?y:d.ownerDocument.defaultView;let x;if(p.constructor===b.CSSStyleSheet)x=p;else{x=new b.CSSStyleSheet;for(let S=0;S<p.cssRules.length;S++)x.insertRule(p.cssRules[S].cssText,S)}Be?d.adoptedStyleSheets.push(x):d.adoptedStyleSheets=[...d.adoptedStyleSheets,x],f.add(v)}}return v})(l.shadowRoot?l.shadowRoot:l.getRootNode(),r);10&c&&(l["s-sc"]=u,l.classList.add(u+"-h"))})(e),es(e,t,i,n),o&&(o.map((a=>a())),i["s-rc"]=void 0);{const a=(s=i["s-p"])!=null?s:[],r=()=>ts(e);a.length===0?r():(Promise.all(a).then(r).catch(r),e.i|=4,a.length=0)}},es=(e,t,n,s)=>{try{t=t.render(),e.i&=-17,e.i|=2,Xn(e,t,s)}catch(i){ie(i,e.$hostElement$)}return null},ts=e=>{const t=e.$hostElement$,n=t,s=e.R;Ie(n,"componentDidRender",void 0,t),64&e.i?Ie(n,"componentDidUpdate",void 0,t):(e.i|=64,ss(t),Ie(n,"componentDidLoad",void 0,t),e.L(t),s||ns()),e.A&&(e.A(),e.A=void 0),512&e.i&&Ke((()=>st(e,!1))),e.i&=-517},ns=()=>{Ke((()=>Bn(E,"appload",{detail:{namespace:"gids-core-web"}})))},Ie=(e,t,n,s)=>{if(e&&e[t])try{return e[t](n)}catch(i){ie(i,s)}},ss=e=>e.classList.add("hydrated"),Ut=(e,t,n,s)=>{const i=H(e);if(!i)return;const o=e,a=i.l.get(t),r=i.i,l=o;n=$t(n,s.t[t][0],!!(64&s.i));const c=Number.isNaN(a)&&Number.isNaN(n);if(n!==a&&!c){if(i.l.set(t,n),s.F){const u=s.F[t];u&&u.map((d=>{try{const[[h,m]]=Object.entries(d);(128&r||1&m)&&(l?l[h](n,a,t):i.T.push((()=>{i.D[h](n,a,t)})))}catch(h){ie(h,o)}}))}if(2&r){if(l.componentShouldUpdate&&l.componentShouldUpdate(n,a,t)===!1&&!(16&r))return;16&r||st(i,!1)}}},is=(e,t,n)=>{var s,i;const o=e.prototype;64&t.i&&1&n&&Fn.forEach((a=>{const r=o[a];Object.defineProperty(o,a,{value(...l){var c;const u=H(this),d=this;d?typeof r=="function"&&r.call(d,...l):(c=u?.H)==null||c.then((h=>{const m=h[a];typeof m=="function"&&m.call(h,...l)}))}})}));{e.watchers&&!t.F&&(t.F=Dt(e.watchers)),e.deserializers&&!t.P&&(t.P=e.deserializers),e.serializers&&!t.U&&(t.U=e.serializers);const a=Object.entries((s=t.t)!=null?s:{});a.map((([r,[l]])=>{if(31&l||32&l){const{get:c,set:u}=ce(o,r)||{};c&&(t.t[r][0]|=2048),u&&(t.t[r][0]|=4096),Object.defineProperty(o,r,{get(){return c?c.apply(this):(d=r,H(this).l.get(d));var d},configurable:!0,enumerable:!0}),Object.defineProperty(o,r,{set(d){const h=H(this);if(h){if(u)return(32&l?this[r]:h.$hostElement$[r])===void 0&&h.l.get(r)&&(d=h.l.get(r)),u.apply(this,[$t(d,l,!!(64&t.i))]),void Ut(this,r,d=32&l?this[r]:h.$hostElement$[r],t);Ut(this,r,d,t)}}})}}));{const r=new Map;o.attributeChangedCallback=function(l,c,u){A.jmp((()=>{var d;const h=r.get(l),m=H(this);if(this.hasOwnProperty(h),o.hasOwnProperty(h)&&typeof this[h]=="number"&&this[h]==u)return;if(h==null){const f=m?.i;if(m&&f&&!(8&f)&&u!==c){const b=this,x=(d=t.F)==null?void 0:d[l];x?.forEach((S=>{const[[I,C]]=Object.entries(S);b[I]!=null&&(128&f||1&C)&&b[I].call(b,u,c,l)}))}return}const g=a.find((([f])=>f===h)),y=g&&4&g[1][0],v=y&&u===null&&this[h]===void 0;y&&(u=u!==null&&u!=="false");const p=Object.getOwnPropertyDescriptor(o,h);v||u==this[h]||p.get&&!p.set||(this[h]=u)}))},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.F)!=null?i:{}),...a.filter((([l,c])=>31&c[0])).map((([l,c])=>{var u;const d=c[1]||l;return r.set(d,l),512&c[0]&&((u=t.C)==null||u.push([l,d])),d}))]))}}return e},De=(e,t)=>{const n={i:t[0],p:t[1]};try{n.t=t[2],n.W=t[3],n.F=Dt(e.F),n.P=e.P,n.U=e.U,n.C=[];const s=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__hasHostListenerAttached:!1,__registerHost(){((o,a)=>{const r={i:0,$hostElement$:o,o:a,l:new Map,B:new Map};r.H=new Promise((c=>r.L=c)),o["s-p"]=[],o["s-rc"]=[];const l=r;o.__stencil__getHostRef=()=>l,512&a.i&&Ln(o,r)})(this,n)},connectedCallback(){if(!this.__hasHostListenerAttached){const o=H(this);if(!o)return;Yt(this,o,n.W),this.__hasHostListenerAttached=!0}(o=>{if(!(1&A.i)){const a=H(o);if(!a)return;const r=a.o;if(1&a.i)Yt(o,a,r.W),a?.D||a?.H&&a.H.then((()=>{}));else{a.i|=1,12&r.i&&(l=>{if(!E.document)return;const c=l["s-cr"]=E.document.createComment("");c["s-cn"]=!0,R(l,c,l.firstChild)})(o);{let l=o;for(;l=l.parentNode||l.host;)if(l["s-p"]){Ht(a,a.R=l);break}}r.t&&Object.entries(r.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 g;typeof d.style=="string"&&(g=d.style);const y=Ot(u);Ee.has(y)||((v,p,f)=>{let b=Ee.get(v);He&&f?(b=b||new CSSStyleSheet,typeof b=="string"?b=p:b.replaceSync(p)):b=p,Ee.set(v,b)})(y,g,!!(1&u.i))}const h=c.R,m=()=>st(c,!0);h&&h["s-rc"]?h["s-rc"].push(m):m()}catch(h){ie(h,l),c.A&&(c.A(),c.A=void 0),c.L&&c.L(l)}})(o,a,r)}}})(this),s&&s.call(this)},disconnectedCallback(){(async o=>{if(!(1&A.i)){const a=H(o);a?.V&&(a.V.map((r=>r())),a.V=void 0)}Z.has(o)&&Z.delete(o),o.shadowRoot&&Z.has(o.shadowRoot)&&Z.delete(o.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if(this.shadowRoot.mode!=="open")throw new Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else Wn.call(this,n)}}),Object.defineProperty(e,"is",{value:n.p,configurable:!0}),is(e,n,3)}catch(s){return ie(s),e}},os=(e,t)=>t,Yt=(e,t,n)=>{n&&E.document&&n.map((([s,i,o])=>{const a=rs(E.document,e,s),r=as(t,o),l=ls(s);A.ael(a,i,r,l),(t.V=t.V||[]).push((()=>A.rel(a,i,r,l)))}))},as=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(s){ie(s,e.$hostElement$)}},rs=(e,t,n)=>8&n?E:t,ls=e=>jn?{passive:!!(1&e),capture:!!(2&e)}:!!(2&e);function Ji(e){return e}function Kt(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Kt(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function O(){for(var e,t,n=0,s="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Kt(e))&&(s&&(s+=" "),s+=t);return s}const $e=99,cs=Object.freeze(Object.defineProperty({__proto__:null,getDisplayContent:(e,t)=>e===void 0?t??"":e>$e?`${$e}+`:e.toString(),maxCount:$e,shouldIncludeA11yText:(e,t,n)=>e==="dot"||t!==void 0&&t>$e||n},Symbol.toStringTag,{value:"Module"})),Xt=e=>{const t=Array.isArray(e)?e[e.length-1]:e;return typeof t=="string"&&t.trim().endsWith(".")},ds=/\w/,us=e=>e.replace(ds,t=>t.toLocaleUpperCase()),Zt=(e,t)=>typeof e=="function"?e(t):t?us(e):e,hs=Object.freeze(Object.defineProperty({__proto__:null,getIndicatorText:({children:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,isLabelSentence:i})=>{const o=i?i(e):Xt(e);if(t==="required")return Zt(s&&s.length>0?s:"(required)",o);if(t==="optional")return Zt(n&&n.length>0?n:"(optional)",o)},isSentence:Xt},Symbol.toStringTag,{value:"Module"})),gs=Object.freeze(Object.defineProperty({__proto__:null,getGidsBadgeClassNames:({appearance:e,type:t,outline:n},s)=>O("gids-badge",{"gids-badge--danger":e==="danger","gids-badge--positive":e==="positive","gids-badge--warning":e==="warning","gids-badge--inverse":e==="inverse"},{"gids-badge--dot":t==="dot"},{"gids-badge--outline":n},s)},Symbol.toStringTag,{value:"Module"})),ms=Object.freeze(Object.defineProperty({__proto__:null,getGidsCheckboxControlClassNames:e=>O("gids-checkbox-control",e)},Symbol.toStringTag,{value:"Module"})),ps=Object.freeze(Object.defineProperty({__proto__:null,getGidsCheckboxClassNames:e=>O("gids-checkbox",e)},Symbol.toStringTag,{value:"Module"})),fs=Object.freeze(Object.defineProperty({__proto__:null,getGidsDisplaTagClassNames:({size:e,appearance:t,color:n},s)=>O("gids-display-tag",{"gids-display-tag--xsmall":e==="xs","gids-display-tag--small":e==="sm","gids-display-tag--large":e==="lg","gids-display-tag--accent-1":t==="subtle"&&n==="accent-1","gids-display-tag--accent-2":t==="subtle"&&n==="accent-2","gids-display-tag--accent-3":t==="subtle"&&n==="accent-3","gids-display-tag--accent-4":t==="subtle"&&n==="accent-4","gids-display-tag--accent-5":t==="subtle"&&n==="accent-5","gids-display-tag--bold-accent-1":t==="bold"&&n==="accent-1","gids-display-tag--bold-accent-2":t==="bold"&&n==="accent-2","gids-display-tag--bold-accent-3":t==="bold"&&n==="accent-3","gids-display-tag--bold-accent-4":t==="bold"&&n==="accent-4","gids-display-tag--bold-accent-5":t==="bold"&&n==="accent-5"},s)},Symbol.toStringTag,{value:"Module"})),bs=Object.freeze(Object.defineProperty({__proto__:null,getGidsDividerClassNames:({orientation:e},t)=>O("gids-divider",{"gids-divider--vertical":e==="vertical"},t)},Symbol.toStringTag,{value:"Module"})),ys=Object.freeze(Object.defineProperty({__proto__:null,getGidsIconClassNames:({size:e},t)=>O("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"})),ws=Object.freeze(Object.defineProperty({__proto__:null,getGidsLabelClassNames:({disabled:e},t)=>O("gids-label",{"gids-label--disabled":e},t)},Symbol.toStringTag,{value:"Module"})),vs=Object.freeze(Object.defineProperty({__proto__:null,getGidsRadioControlClassNames:e=>O("gids-radio-control",e)},Symbol.toStringTag,{value:"Module"})),Ss=Object.freeze(Object.defineProperty({__proto__:null,getGidsRadioClassNames:e=>O("gids-radio",e)},Symbol.toStringTag,{value:"Module"})),Is=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarItemClassNames:e=>O("gids-sidebar-item",e)},Symbol.toStringTag,{value:"Module"})),xs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarMenuItemClassNames:({selected:e,appearance:t,selectionAppearance:n},s)=>O("gids-sidebar-menu-item",{"gids-sidebar-menu-item--appearance-primary":t==="primary"&&!e,"gids-sidebar-menu-item--appearance-subtle":t==="subtle"&&!e,"gids-sidebar-menu-item--appearance-positive":t==="positive"&&!e,"gids-sidebar-menu-item--appearance-danger":t==="danger"&&!e,"gids-sidebar-menu-item--appearance-information":t==="information"&&!e,"gids-sidebar-menu-item--appearance-warning":t==="warning"&&!e,"gids-sidebar-menu-item--selection-appearance-default":n==="default"&&e,"gids-sidebar-menu-item--selection-appearance-primary":n==="primary"&&e,"gids-sidebar-menu-item--selection-appearance-subtle":n==="subtle"&&e,"gids-sidebar-menu-item--selection-appearance-positive":n==="positive"&&e,"gids-sidebar-menu-item--selection-appearance-danger":n==="danger"&&e,"gids-sidebar-menu-item--selection-appearance-information":n==="information"&&e,"gids-sidebar-menu-item--selection-appearance-warning":n==="warning"&&e},s)},Symbol.toStringTag,{value:"Module"})),Cs=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarMenuClassNames:e=>O("gids-sidebar-menu",e)},Symbol.toStringTag,{value:"Module"})),ks=Object.freeze(Object.defineProperty({__proto__:null,getGidsSidebarClassNames:({appearance:e,height:t},n)=>O("gids-sidebar",{"gids-sidebar--appearance-subtle":e==="subtle","gids-sidebar--appearance-primary":e==="primary","gids-sidebar--height-full":t==="full"},n)},Symbol.toStringTag,{value:"Module"})),Es=Object.freeze(Object.defineProperty({__proto__:null,getGidsStatusTagClassNames:({appearance:e,size:t,type:n},s)=>O("gids-status-tag",{"gids-status-tag--subtle":e==="subtle","gids-status-tag--bold":e==="bold","gids-status-tag--xs":t==="xs","gids-status-tag--md":t==="md","gids-status-tag--lg":t==="lg","gids-status-tag--subtlest-new":n==="new"&&e==="subtlest","gids-status-tag--subtlest-archived":n==="archived"&&e==="subtlest","gids-status-tag--subtlest-cancelled":n==="cancelled"&&e==="subtlest","gids-status-tag--subtlest-draft":n==="draft"&&e==="subtlest","gids-status-tag--subtlest-failed":n==="failed"&&e==="subtlest","gids-status-tag--subtlest-in-progress":n==="in-progress"&&e==="subtlest","gids-status-tag--subtlest-information":n==="information"&&e==="subtlest","gids-status-tag--subtlest-not-started":n==="not-started"&&e==="subtlest","gids-status-tag--subtlest-paused":n==="paused"&&e==="subtlest","gids-status-tag--subtlest-pending":n==="pending"&&e==="subtlest","gids-status-tag--subtlest-scheduled":n==="scheduled"&&e==="subtlest","gids-status-tag--subtlest-success":n==="success"&&e==="subtlest","gids-status-tag--subtlest-synced":n==="synced"&&e==="subtlest","gids-status-tag--subtlest-syncing":n==="syncing"&&e==="subtlest","gids-status-tag--subtlest-unknown":n==="unknown"&&e==="subtlest","gids-status-tag--subtlest-verified":n==="verified"&&e==="subtlest","gids-status-tag--subtlest-warning":n==="warning"&&e==="subtlest","gids-status-tag--subtle-new":n==="new"&&e==="subtle","gids-status-tag--subtle-archived":n==="archived"&&e==="subtle","gids-status-tag--subtle-cancelled":n==="cancelled"&&e==="subtle","gids-status-tag--subtle-draft":n==="draft"&&e==="subtle","gids-status-tag--subtle-failed":n==="failed"&&e==="subtle","gids-status-tag--subtle-in-progress":n==="in-progress"&&e==="subtle","gids-status-tag--subtle-information":n==="information"&&e==="subtle","gids-status-tag--subtle-not-started":n==="not-started"&&e==="subtle","gids-status-tag--subtle-paused":n==="paused"&&e==="subtle","gids-status-tag--subtle-pending":n==="pending"&&e==="subtle","gids-status-tag--subtle-scheduled":n==="scheduled"&&e==="subtle","gids-status-tag--subtle-success":n==="success"&&e==="subtle","gids-status-tag--subtle-synced":n==="synced"&&e==="subtle","gids-status-tag--subtle-syncing":n==="syncing"&&e==="subtle","gids-status-tag--subtle-unknown":n==="unknown"&&e==="subtle","gids-status-tag--subtle-verified":n==="verified"&&e==="subtle","gids-status-tag--subtle-warning":n==="warning"&&e==="subtle","gids-status-tag--bold-new":n==="new"&&e==="bold","gids-status-tag--bold-archived":n==="archived"&&e==="bold","gids-status-tag--bold-cancelled":n==="cancelled"&&e==="bold","gids-status-tag--bold-draft":n==="draft"&&e==="bold","gids-status-tag--bold-failed":n==="failed"&&e==="bold","gids-status-tag--bold-in-progress":n==="in-progress"&&e==="bold","gids-status-tag--bold-information":n==="information"&&e==="bold","gids-status-tag--bold-not-started":n==="not-started"&&e==="bold","gids-status-tag--bold-paused":n==="paused"&&e==="bold","gids-status-tag--bold-pending":n==="pending"&&e==="bold","gids-status-tag--bold-scheduled":n==="scheduled"&&e==="bold","gids-status-tag--bold-success":n==="success"&&e==="bold","gids-status-tag--bold-synced":n==="synced"&&e==="bold","gids-status-tag--bold-syncing":n==="syncing"&&e==="bold","gids-status-tag--bold-unknown":n==="unknown"&&e==="bold","gids-status-tag--bold-verified":n==="verified"&&e==="bold","gids-status-tag--bold-warning":n==="warning"&&e==="bold"},s),getStatusTagIconName:e=>{if(!e)return"new";switch(e){case"archived":return"archive";case"cancelled":return"cross";case"draft":return"draft";case"failed":return"danger";case"in-progress":return"in-progress";case"information":return"information";case"not-started":return"new";case"paused":return"pause";case"pending":return"pending";case"scheduled":return"time";case"success":return"positive";case"synced":return"syncing";case"syncing":return"syncing";case"unknown":return"question";case"verified":return"verified";case"warning":return"warning";default:return"new"}},getStatusTagText:e=>e?e.split("-").map((s,i)=>i===0&&s?s.charAt(0).toUpperCase()+s.slice(1):s).join(" "):void 0},Symbol.toStringTag,{value:"Module"})),it=Symbol("defaultPath"),Jt=Symbol("pathSet"),ot="gids-asset-paths-set";class Ms extends EventTarget{#n=new Map;constructor(){super()}#e(t,n){this.#n.set(t,n)}#t(t){return this.#n.get(t)??null}#s=()=>{this.dispatchEvent(new Event(ot))};haveAssetPathsBeenSet(){return this.#t(Jt)!==null}setAssetPaths(t,n){if(!this.haveAssetPathsBeenSet()){if(typeof t=="string")this.#e(it,t);else{for(const s in t)this.#e(s,t[s]);n&&this.#e(it,n)}this.#e(Jt,"true"),setTimeout(this.#s,0)}}getAssetFilePath(t){const n=this.#t(t);if(n===null){const s=this.#t(it);if(s!==null)return`${s}${s.endsWith("/")?"":"/"}${t}`}return n}onAssetPathsSet(t){if(!this.haveAssetPathsBeenSet())return this.addEventListener(ot,t,{once:!0}),()=>{this.removeEventListener(ot,t)}}}const at=Symbol.for("GIDS"),As=()=>(globalThis[at]===void 0&&(globalThis[at]={assetPaths:{}}),globalThis[at]),Ps=e=>{const t=As().assetPaths;return t[e]===void 0&&(t[e]=new Ms),t[e]};function rt(){return Ps("@ganpatiinfo/gids-web-shared")}function _s(){return rt().haveAssetPathsBeenSet()}function Qt(e){return rt().getAssetFilePath(e)}function Ts(e){return rt().onAssetPathsSet(e)}let Os=0;const lt=(e,t="gids")=>e||`${t}-${Os++}`,en=e=>e!==void 0&&(!Array.isArray(e)||e.length>0),{getDisplayContent:tn,shouldIncludeA11yText:Ns}=cs,{getGidsBadgeClassNames:Ds}=gs,nn=({appearance:e,type:t,count:n,accessibleText:s,outline:i,class:o,...a})=>{const r=Ns(t,n,en(s));return w("span",{class:Ds({appearance:e,type:t,outline:i},o),...a},r&&w("span",{class:"gids-visually-hidden"},en(s)?s:n),t==="notification"?r?w("span",{"aria-hidden":"true"},tn(n,s)):tn(n,s):null)},{getGidsDisplaTagClassNames:$s}=fs,sn=({label:e,appearance:t="subtle",color:n,size:s="md",icon:i,class:o,...a})=>w("span",{class:$s({size:s,appearance:t,color:n},o),...a},i,e),on={"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","acorn","address-book","address-book-tabs","air-traffic-control","airplane","airplane-in-flight","airplane-landing","airplane-takeoff","airplane-taxiing","airplane-tilt","airplay","alarm","alien","align-bottom","align-bottom-simple","align-center-horizontal","align-center-horizontal-simple","align-center-vertical","align-center-vertical-simple","align-left","align-left-simple","align-right","align-right-simple","align-top","align-top-simple","amazon-logo","ambulance","anchor","anchor-simple","android-logo","angle","angular-logo","aperture","app-store-logo","app-window","apple-logo","apple-podcasts-logo","approximate-equals","armchair","arrow-arc-left","arrow-arc-right","arrow-bend-double-up-left","arrow-bend-double-up-right","arrow-bend-down-left","arrow-bend-down-right","arrow-bend-left-down","arrow-bend-left-up","arrow-bend-right-down","arrow-bend-right-up","arrow-bend-up-left","arrow-bend-up-right","arrow-circle-down","arrow-circle-down-left","arrow-circle-down-right","arrow-circle-left","arrow-circle-right","arrow-circle-up","arrow-circle-up-left","arrow-circle-up-right","arrow-clockwise","arrow-counter-clockwise","arrow-down-left","arrow-down-right","arrow-elbow-down-left","arrow-elbow-down-right","arrow-elbow-left","arrow-elbow-left-down","arrow-elbow-left-up","arrow-elbow-right","arrow-elbow-right-down","arrow-elbow-right-up","arrow-elbow-up-left","arrow-elbow-up-right","arrow-fat-down","arrow-fat-left","arrow-fat-line-down","arrow-fat-line-left","arrow-fat-line-right","arrow-fat-line-up","arrow-fat-lines-down","arrow-fat-lines-left","arrow-fat-lines-right","arrow-fat-lines-up","arrow-fat-right","arrow-fat-up","arrow-line-down","arrow-line-down-left","arrow-line-down-right","arrow-line-left","arrow-line-right","arrow-line-up","arrow-line-up-left","arrow-line-up-right","arrow-square-down","arrow-square-down-left","arrow-square-down-right","arrow-square-in","arrow-square-left","arrow-square-out","arrow-square-right","arrow-square-up","arrow-square-up-left","arrow-square-up-right","arrow-u-down-left","arrow-u-down-right","arrow-u-left-down","arrow-u-left-up","arrow-u-right-down","arrow-u-right-up","arrow-u-up-left","arrow-u-up-right","arrow-up-left","arrow-up-right","arrows-clockwise","arrows-counter-clockwise","arrows-down-up","arrows-horizontal","arrows-in","arrows-in-cardinal","arrows-in-line-horizontal","arrows-in-line-vertical","arrows-in-simple","arrows-left-right","arrows-merge","arrows-out","arrows-out-cardinal","arrows-out-line-horizontal","arrows-out-line-vertical","arrows-out-simple","arrows-split","arrows-vertical","article","article-medium","article-ny-times","asclepius","asterisk","asterisk-simple","at","atom","avocado","axe","baby","baby-carriage","backpack","backspace","bag","bag-simple","balloon","bandaids","bank","barbell","barcode","barn","barricade","baseball","baseball-cap","baseball-helmet","basket","basketball","bathtub","battery-charging","battery-charging-vertical","battery-empty","battery-full","battery-high","battery-low","battery-medium","battery-plus","battery-plus-vertical","battery-vertical-empty","battery-vertical-full","battery-vertical-high","battery-vertical-low","battery-vertical-medium","battery-warning","battery-warning-vertical","beach-ball","beanie","bed","beer-bottle","beer-stein","behance-logo","bell","bell-ringing","bell-simple","bell-simple-ringing","bell-simple-slash","bell-simple-z","bell-slash","bell-z","belt","bezier-curve","bicycle","binary","binoculars","biohazard","bird","blueprint","bluetooth-connected","bluetooth-slash","bluetooth-x","boat","bomb","bone","book","book-bookmark","book-open","book-open-text","book-open-user","bookmark-simple","bookmarks","bookmarks-simple","books","boot","boules","bounding-box","bowl-food","bowl-steam","bowling-ball","box-arrow-down","box-arrow-up","boxing-glove","brackets-angle","brackets-curly","brackets-round","brackets-square","brain","brandy","bread","bridge","briefcase","briefcase-metal","broadcast","broom","browser","browsers","bug","bug-beetle","bug-droid","building","building-apartment","building-office","buildings","bulldozer","bus","butterfly","cable-car","cactus","cake","calculator","calendar-blank","calendar-check","calendar-dot","calendar-dots","calendar-heart","calendar-minus","calendar-plus","calendar-slash","calendar-star","calendar-x","call-bell","camera-plus","camera-rotate","camera-slash","campfire","car","car-battery","car-profile","car-simple","cardholder","cards","cards-three","caret-circle-double-down","caret-circle-double-left","caret-circle-double-right","caret-circle-double-up","caret-circle-down","caret-circle-left","caret-circle-right","caret-circle-up","caret-circle-up-down","caret-double-down","caret-double-left","caret-double-right","caret-double-up","caret-down","caret-left","caret-line-down","caret-line-left","caret-line-right","caret-line-up","caret-right","caret-up","caret-up-down","carrot","cash-register","cassette-tape","castle-turret","cat","cell-signal-full","cell-signal-high","cell-signal-low","cell-signal-medium","cell-signal-none","cell-signal-slash","cell-signal-x","cell-tower","certificate","chair","chalkboard","chalkboard-simple","chalkboard-teacher","champagne","charging-station","chart-bar","chart-bar-horizontal","chart-donut","chart-line","chart-line-down","chart-line-up","chart-pie","chart-pie-slice","chart-polar","chart-scatter","chat-centered","chat-centered-dots","chat-centered-slash","chat-centered-text","chat-circle","chat-circle-dots","chat-circle-slash","chat-circle-text","chat-dots","chat-slash","chat-teardrop","chat-teardrop-dots","chat-teardrop-slash","chat-teardrop-text","chat-text","chats","chats-circle","chats-teardrop","check","check-circle","check-fat","check-square","check-square-offset","checkerboard","checks","cheers","cheese","chef-hat","cherries","church","cigarette","cigarette-slash","circle","circle-dashed","circle-half","circle-half-tilt","circle-notch","circles-four","circles-three","circles-three-plus","circuitry","city","clipboard","clipboard-text","clock","clock-afternoon","clock-clockwise","clock-countdown","clock-counter-clockwise","clock-user","closed-captioning","cloud-arrow-down","cloud-arrow-up","cloud-check","cloud-fog","cloud-lightning","cloud-moon","cloud-rain","cloud-slash","cloud-snow","cloud-sun","cloud-warning","cloud-x","clover","club","coat-hanger","coda-logo","code-block","code-simple","codepen-logo","codesandbox-logo","coffee","coffee-bean","coin","coin-vertical","coins","columns","columns-plus-left","columns-plus-right","command","compass-rose","compass-tool","computer-tower","confetti","contactless-payment","control","cookie","cooking-pot","copy-simple","copyleft","copyright","corners-in","corners-out","couch","court-basketball","cow","cowboy-hat","cpu","crane","crane-tower","credit-card","cricket","crop","crosshair","crosshair-simple","crown","crown-cross","crown-simple","cube","cube-focus","cube-transparent","currency-btc","currency-circle-dollar","currency-cny","currency-dollar","currency-dollar-simple","currency-eth","currency-eur","currency-gbp","currency-inr","currency-jpy","currency-krw","currency-kzt","currency-ngn","currency-rub","cursor","cursor-click","cursor-text","cylinder","database","desk","desktop-tower","detective","dev-to-logo","device-mobile","device-mobile-camera","device-mobile-slash","device-mobile-speaker","device-rotate","device-tablet","device-tablet-camera","device-tablet-speaker","devices","diamond","diamonds-four","dice-five","dice-four","dice-one","dice-six","dice-three","dice-two","disc","disco-ball","discord-logo","divide","dna","dog","door","door-open","dot","dot-outline","dots-nine","dots-six","dots-six-vertical","dots-three","dots-three-circle","dots-three-circle-vertical","dots-three-outline","dots-three-outline-vertical","dots-three-vertical","download-simple","dress","dresser","dribbble-logo","drone","drop","drop-half","drop-half-bottom","drop-simple","drop-slash","dropbox-logo","ear","ear-slash","egg","egg-crack","eject","eject-simple","elevator","empty","engine","envelope","envelope-open","envelope-simple","envelope-simple-open","equalizer","equals","eraser","escalator-down","escalator-up","exam","exclamation-mark","exclude","exclude-square","export","eye-closed","eye-slash","eyedropper","eyedropper-sample","eyeglasses","eyes","face-mask","facebook-logo","factory","faders","faders-horizontal","fallout-shelter","fan","farm","fast-forward","fast-forward-circle","feather","fediverse-logo","figma-logo","file","file-archive","file-arrow-down","file-arrow-up","file-audio","file-c","file-c-sharp","file-cloud","file-code","file-cpp","file-css","file-csv","file-dashed","file-doc","file-html","file-image","file-ini","file-jpg","file-js","file-jsx","file-lock","file-magnifying-glass","file-md","file-minus","file-pdf","file-plus","file-png","file-ppt","file-py","file-rs","file-sql","file-svg","file-text","file-ts","file-tsx","file-txt","file-video","file-vue","file-x","file-xls","file-zip","files","film-reel","film-script","film-slate","film-strip","fingerprint-simple","finn-the-human","fire","fire-extinguisher","fire-simple","fire-truck","first-aid","first-aid-kit","fish","fish-simple","flag-banner","flag-banner-fold","flag-checkered","flag-pennant","flame","flashlight","flask","flip-horizontal","flip-vertical","floppy-disk","floppy-disk-back","flow-arrow","flower","flower-lotus","flower-tulip","flying-saucer","folder-dashed","folder-lock","folder-minus","folder-open","folder-plus","folder-simple","folder-simple-dashed","folder-simple-lock","folder-simple-minus","folder-simple-plus","folder-simple-star","folder-simple-user","folder-star","folder-user","folders","football","football-helmet","footprints","fork-knife","four-k","frame-corners","framer-logo","function","funnel","funnel-simple","funnel-simple-x","funnel-x","game-controller","garage","gas-can","gas-pump","gauge","gavel","gear","gear-fine","gear-six","gender-female","gender-intersex","gender-male","gender-neuter","gender-nonbinary","gender-transgender","ghost","gif","git-branch","git-commit","git-diff","git-fork","git-merge","git-pull-request","github-logo","gitlab-logo","gitlab-logo-simple","globe-hemisphere-east","globe-hemisphere-west","globe-simple","globe-simple-x","globe-stand","globe-x","goggles","golf","goodreads-logo","google-cardboard-logo","google-chrome-logo","google-drive-logo","google-logo","google-photos-logo","google-play-logo","google-podcasts-logo","gps","gps-fix","gps-slash","gradient","graduation-cap","grains","grains-slash","graph","graphics-card","greater-than","greater-than-or-equal","grid-four","grid-nine","guitar","hair-dryer","hamburger","hammer","hand","hand-arrow-down","hand-arrow-up","hand-coins","hand-deposit","hand-eye","hand-fist","hand-grabbing","hand-heart","hand-palm","hand-peace","hand-pointing","hand-soap","hand-swipe-left","hand-swipe-right","hand-tap","hand-waving","hand-withdraw","handbag","handbag-simple","hands-clapping","hands-praying","handshake","hard-drive","hard-drives","hard-hat","hash","hash-straight","head-circuit","headlights","headset","heart","heart-break","heart-half","heart-straight","heart-straight-break","heartbeat","hexagon","high-definition","high-heel","highlighter","highlighter-circle","hockey","hoodie","horse","hospital","hourglass","hourglass-high","hourglass-low","hourglass-medium","hourglass-simple","hourglass-simple-high","hourglass-simple-low","hourglass-simple-medium","house","house-line","house-simple","hurricane","ice-cream","identification-badge","identification-card","image-broken","image-square","images","images-square","infinity","info","instagram-logo","intersect","intersect-square","intersect-three","intersection","invoice","island","jar","jar-label","jeep","joystick","kanban","key-return","keyboard","keyhole","knife","ladder","ladder-simple","lamp","lamp-pendant","laptop","lasso","lastfm-logo","layout","leaf","lectern","lego","lego-smiley","less-than","less-than-or-equal","letter-circle-h","letter-circle-p","letter-circle-v","lifebuoy","lightbulb","lightbulb-filament","lighthouse","lightning","lightning-a","lightning-slash","line-segment","line-segments","line-vertical","link-break","link-simple","link-simple-break","link-simple-horizontal","link-simple-horizontal-break","linkedin-logo","linktree-logo","linux-logo","list-bullets","list-checks","list-dashes","list-heart","list-magnifying-glass","list-numbers","list-plus","list-star","lock-key","lock-key-open","lock-laminated","lock-laminated-open","lock-open","lock-simple","lock-simple-open","lockers","log","magic-wand","magnet","magnet-straight","magnifying-glass","magnifying-glass-minus","magnifying-glass-plus","mailbox","map-pin","map-pin-area","map-pin-line","map-pin-plus","map-pin-simple","map-pin-simple-area","map-pin-simple-line","map-trifold","markdown-logo","marker-circle","martini","mask-happy","mask-sad","mastodon-logo","math-operations","matrix-logo","medal","medal-military","medium-logo","megaphone","megaphone-simple","member-of","memory","messenger-logo","meta-logo","meteor","metronome","microphone-slash","microphone-stage","microscope","microsoft-excel-logo","microsoft-outlook-logo","microsoft-powerpoint-logo","microsoft-teams-logo","microsoft-word-logo","minus-circle","minus-square","money","money-wavy","monitor","monitor-arrow-up","monitor-play","moon-stars","moped","moped-front","mosque","motorcycle","mountains","mouse","mouse-left-click","mouse-middle-click","mouse-right-click","mouse-scroll","mouse-simple","music-note","music-note-simple","music-notes","music-notes-minus","music-notes-plus","music-notes-simple","navigation-arrow","needle","network-slash","network-x","newspaper","newspaper-clipping","not-equals","not-member-of","not-subset-of","not-superset-of","notches","note","note-blank","note-pencil","notebook","notepad","notification","notion-logo","nuclear-plant","number-circle-eight","number-circle-five","number-circle-four","number-circle-nine","number-circle-one","number-circle-seven","number-circle-six","number-circle-three","number-circle-two","number-circle-zero","number-eight","number-five","number-four","number-nine","number-one","number-seven","number-six","number-square-eight","number-square-five","number-square-four","number-square-nine","number-square-one","number-square-seven","number-square-six","number-square-three","number-square-two","number-square-zero","number-three","number-two","number-zero","numpad","nut","ny-times-logo","octagon","office-chair","onigiri","open-ai-logo","option","orange","orange-slice","oven","package","paint-brush","paint-brush-broad","paint-brush-household","paint-bucket","paint-roller","palette","panorama","pants","paper-plane","paper-plane-right","paper-plane-tilt","paperclip","paperclip-horizontal","parachute","paragraph","parallelogram","park","password","path","patreon-logo","pause-circle","paw-print","paypal-logo","peace","pen","pen-nib","pen-nib-straight","pencil","pencil-circle","pencil-line","pencil-ruler","pencil-simple","pencil-simple-line","pencil-simple-slash","pencil-slash","pentagon","pentagram","pepper","person","person-arms-spread","person-simple","person-simple-bike","person-simple-circle","person-simple-hike","person-simple-run","person-simple-ski","person-simple-snowboard","person-simple-swim","person-simple-tai-chi","person-simple-throw","person-simple-walk","perspective","phone-call","phone-disconnect","phone-incoming","phone-list","phone-outgoing","phone-pause","phone-plus","phone-slash","phone-transfer","phone-x","phosphor-logo","pi","piano-keys","picnic-table","picture-in-picture","piggy-bank","pill","ping-pong","pint-glass","pinterest-logo","pinwheel","pipe","pipe-wrench","pix-logo","pizza","planet","plant","play-circle","play-pause","playlist","plug","plug-charging","plugs","plugs-connected","plus-circle","plus-minus","plus-square","poker-chip","police-car","polygon","popcorn","popsicle","potted-plant","prescription","presentation","presentation-chart","prohibit","prohibit-inset","projector-screen","projector-screen-chart","pulse","push-pin","push-pin-simple","push-pin-simple-slash","push-pin-slash","puzzle-piece","qr-code","question-mark","queue","quotes","rabbit","racquet","radical","radio","radio-button","radioactive","rainbow","rainbow-cloud","ranking","read-cv-logo","receipt","receipt-x","record","rectangle","rectangle-dashed","recycle","reddit-logo","repeat-once","replit-logo","resize","rewind","rewind-circle","road-horizon","robot","rocket","rocket-launch","rows","rows-plus-bottom","rows-plus-top","rss","rss-simple","rug","ruler","sailboat","scales","scan","scan-smiley","scissors","scooter","screencast","screwdriver","scribble","scribble-loop","scroll","seal","seal-check","seal-percent","seal-question","seal-warning","seat","seatbelt","security-camera","selection","selection-all","selection-background","selection-foreground","selection-inverse","selection-plus","selection-slash","shapes","share-fat","share-network","shield-check","shield-checkered","shield-chevron","shield-plus","shield-slash","shield-star","shield-warning","shipping-container","shirt-folded","shooting-star","shopping-bag","shopping-bag-open","shopping-cart","shopping-cart-simple","shovel","shower","shrimp","shuffle-angular","shuffle-simple","sidebar","sidebar-simple","sigma","sign-in","sign-out","signature","signpost","sim-card","siren","sketch-logo","skip-back","skip-back-circle","skip-forward","skip-forward-circle","skull","skype-logo","slack-logo","sliders","sliders-horizontal","slideshow","smiley","smiley-angry","smiley-blank","smiley-meh","smiley-melting","smiley-nervous","smiley-sad","smiley-sticker","smiley-wink","smiley-x-eyes","snapchat-logo","sneaker","sneaker-move","snowflake","soccer-ball","sock","solar-panel","solar-roof","sort-ascending","sort-descending","soundcloud-logo","spade","sparkle","speaker-hifi","speaker-high","speaker-low","speaker-none","speaker-simple-high","speaker-simple-low","speaker-simple-none","speaker-simple-slash","speaker-simple-x","speaker-slash","speaker-x","speedometer","sphere","spinner","spinner-ball","spinner-gap","spiral","split-horizontal","split-vertical","spotify-logo","spray-bottle","square","square-half","square-half-bottom","square-logo","square-split-horizontal","square-split-vertical","squares-four","stack","stack-minus","stack-overflow-logo","stack-plus","stack-simple","stairs","stamp","standard-definition","star-and-crescent","star-four","star-half","star-of-david","steam-logo","steering-wheel","steps","stethoscope","sticker","stool","stop-circle","storefront","strategy","stripe-logo","student","subset-of","subset-proper-of","subtitles","subtitles-slash","subtract","subtract-square","subway","suitcase","suitcase-rolling","suitcase-simple","sun-dim","sun-horizon","sunglasses","superset-of","superset-proper-of","swap","swatches","swimming-pool","sword","synagogue","syringe","t-shirt","table","tabs","tag","tag-chevron","tag-simple","target","taxi","tea-bag","telegram-logo","television","television-simple","tennis-ball","tent","terminal","terminal-window","test-tube","text-a-underline","text-aa","text-align-center","text-align-justify","text-align-left","text-align-right","text-b","text-columns","text-h","text-h-five","text-h-four","text-h-one","text-h-six","text-h-three","text-h-two","text-indent","text-italic","text-outdent","text-strikethrough","text-subscript","text-superscript","text-t","text-t-slash","text-underline","textbox","thermometer","thermometer-cold","thermometer-hot","thermometer-simple","threads-logo","three-d","ticket","tidal-logo","tiktok-logo","tilde","timer","tip-jar","tipi","tire","toggle-left","toggle-right","toilet","toilet-paper","toolbox","tooth","tornado","tote","tote-simple","towel","tractor","trademark","trademark-registered","traffic-cone","traffic-sign","traffic-signal","train","train-regional","train-simple","tram","translate","trash","trash-simple","tray","tray-arrow-down","tray-arrow-up","treasure-chest","tree","tree-evergreen","tree-palm","tree-structure","tree-view","triangle","triangle-dashed","trolley","trolley-suitcase","trophy","truck","truck-trailer","tumblr-logo","twitch-logo","twitter-logo","umbrella","umbrella-simple","union","unite","unite-square","upload-simple","usb","user-check","user-circle","user-circle-check","user-circle-dashed","user-circle-gear","user-circle-minus","user-circle-plus","user-focus","user-gear","user-list","user-minus","user-plus","user-rectangle","user-sound","user-square","user-switch","users-four","users-three","van","vault","vector-three","vector-two","vibrate","video-camera","video-camera-slash","video-conference","vignette","vinyl-record","virtual-reality","virus","visor","voicemail","volleyball","wall","warehouse","warning-circle","warning-diamond","warning-octagon","washing-machine","watch","wave-sawtooth","wave-sine","wave-square","wave-triangle","waveform","waveform-slash","waves","webcam","webcam-slash","webhooks-logo","wechat-logo","whatsapp-logo","wheelchair","wheelchair-motion","wifi-high","wifi-low","wifi-medium","wifi-none","wifi-slash","wifi-x","windmill","windows-logo","wine","wrench","x","x-circle","x-logo","x-square","yarn","yin-yang","youtube-logo"],"icons-core.svg":["arrow-down","arrow-left","arrow-right","arrow-up","attachment","checkmark","chevron-down","chevron-horizontal","chevron-left","chevron-right","chevron-up","chevron-vertical","copy","cross","danger","dashboard","delete","document","download","drag","edit","external","eye","filter","grid","hide","home","information","log-in","log-out","menu","minus","more","notifications","options","phone","plus","positive","printer","question","search","select","select-all","send","settings","share","star","time","upload","user","users","warning"]},an=new Map;for(const e in on)for(const t of on[e])an.set(t,e);function Rs(e){return an.get(e)}function rn(e,t="regular",n){const s=Rs(e);let i=s??"";return n&&s&&(i=n(s)??s),`${i}#${e}${t==="filled"?"--filled":""}`}const{getGidsIconClassNames:Ls}=ys,J=({name:e,size:t,appearance:n,alt:s,class:i,titleId:o,src:a,...r})=>{const l=lt(o);let c=a;return c===void 0&&_s()&&(c=rn(e,n,Qt)),w("svg",{ref:u=>{c===void 0&&Ts((()=>{(function(d,h,m){if(!d)return;const g=document.createElementNS("http://www.w3.org/2000/svg","use");g.setAttribute("href",rn(h,m,Qt)),d.appendChild(g)})(u,e,n)}))},width:"16",height:"16",class:Ls({size:t},i),role:"img","aria-hidden":s===""?"true":void 0,"aria-labelledby":s===""?void 0:l,...r},s!==""&&w("title",{id:l},s||e),c!==void 0?w("use",{href:c}):null)},{getGidsCheckboxControlClassNames:Fs}=ms,js=({checked:e,defaultChecked:t,disabled:n,indeterminate:s,inputId:i,name:o,value:a,required:r,onChange:l,class:c,...u})=>w("span",{class:Fs(c),...u},w("input",{class:"gids-checkbox-control__input",type:"checkbox",disabled:n,checked:e,defaultChecked:t,required:r,indeterminate:s,value:a,id:i,name:o,onChange:l}),w(J,{class:"gids-checkbox-control__check",name:"checkmark",alt:"",size:"sm"}),w(J,{class:"gids-checkbox-control__minus",name:"minus",alt:"",size:"sm"})),{getIndicatorText:zs}=hs,{getGidsLabelClassNames:qs}=ws,ln=({disabled:e,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,info:i,htmlFor:o,labelId:a,class:r,isLabelSentence:l,...c},u)=>{const d=zs({children:u,fieldRequirement:t,fieldRequirementOptionalText:n,fieldRequirementRequiredText:s,isLabelSentence:l});return w("div",{class:qs({disabled:e},r),...c},w("label",{htmlFor:o,id:a},u,d&&w("span",{class:"gids-label__field-requirement"},d)),i)},Q=Math.min,N=Math.max,Re=Math.round,Le=Math.floor,q=e=>({x:e,y:e}),Ws={left:"right",right:"left",bottom:"top",top:"bottom"};function ct(e,t,n){return N(e,Q(t,n))}function ue(e,t){return typeof e=="function"?e(t):e}function ee(e){return e.split("-")[0]}function he(e){return e.split("-")[1]}function cn(e){return e==="x"?"y":"x"}function dt(e){return e==="y"?"height":"width"}function U(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ut(e){return cn(U(e))}function Gs(e,t,n){n===void 0&&(n=!1);const s=he(e),i=ut(e),o=dt(i);let a=i==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Fe(a)),[a,Fe(a)]}function Vs(e){const t=Fe(e);return[ht(e),t,ht(t)]}function ht(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const dn=["left","right"],un=["right","left"],Hs=["top","bottom"],Bs=["bottom","top"];function Us(e,t,n){switch(e){case"top":case"bottom":return n?t?un:dn:t?dn:un;case"left":case"right":return t?Hs:Bs;default:return[]}}function Ys(e,t,n,s){const i=he(e);let o=Us(ee(e),n==="start",s);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(ht)))),o}function Fe(e){const t=ee(e);return Ws[t]+e.slice(t.length)}function Ks(e){return{top:0,right:0,bottom:0,left:0,...e}}function hn(e){return typeof e!="number"?Ks(e):{top:e,right:e,bottom:e,left:e}}function je(e){const{x:t,y:n,width:s,height:i}=e;return{width:s,height:i,top:n,left:t,right:t+s,bottom:n+i,x:t,y:n}}function gn(e,t,n){let{reference:s,floating:i}=e;const o=U(t),a=ut(t),r=dt(a),l=ee(t),c=o==="y",u=s.x+s.width/2-i.width/2,d=s.y+s.height/2-i.height/2,h=s[r]/2-i[r]/2;let m;switch(l){case"top":m={x:u,y:s.y-i.height};break;case"bottom":m={x:u,y:s.y+s.height};break;case"right":m={x:s.x+s.width,y:d};break;case"left":m={x:s.x-i.width,y:d};break;default:m={x:s.x,y:s.y}}switch(he(t)){case"start":m[a]-=h*(n&&c?-1:1);break;case"end":m[a]+=h*(n&&c?-1:1);break}return m}async function Xs(e,t){var n;t===void 0&&(t={});const{x:s,y:i,platform:o,rects:a,elements:r,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=ue(t,e),g=hn(m),v=r[h?d==="floating"?"reference":"floating":d],p=je(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(v)))==null||n?v:v.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(r.floating)),boundary:c,rootBoundary:u,strategy:l})),f=d==="floating"?{x:s,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await(o.getOffsetParent==null?void 0:o.getOffsetParent(r.floating)),x=await(o.isElement==null?void 0:o.isElement(b))?await(o.getScale==null?void 0:o.getScale(b))||{x:1,y:1}:{x:1,y:1},S=je(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:f,offsetParent:b,strategy:l}):f);return{top:(p.top-S.top+g.top)/x.y,bottom:(S.bottom-p.bottom+g.bottom)/x.y,left:(p.left-S.left+g.left)/x.x,right:(S.right-p.right+g.right)/x.x}}const Zs=50,Js=async(e,t,n)=>{const{placement:s="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,r=a.detectOverflow?a:{...a,detectOverflow:Xs},l=await(a.isRTL==null?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=gn(c,s,l),h=s,m=0;const g={};for(let y=0;y<o.length;y++){const v=o[y];if(!v)continue;const{name:p,fn:f}=v,{x:b,y:x,data:S,reset:I}=await f({x:u,y:d,initialPlacement:s,placement:h,strategy:i,middlewareData:g,rects:c,platform:r,elements:{reference:e,floating:t}});u=b??u,d=x??d,g[p]={...g[p],...S},I&&m<Zs&&(m++,typeof I=="object"&&(I.placement&&(h=I.placement),I.rects&&(c=I.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:u,y:d}=gn(c,h,l)),y=-1)}return{x:u,y:d,placement:h,strategy:i,middlewareData:g}},Qs=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:i,rects:o,platform:a,elements:r,middlewareData:l}=t,{element:c,padding:u=0}=ue(e,t)||{};if(c==null)return{};const d=hn(u),h={x:n,y:s},m=ut(i),g=dt(m),y=await a.getDimensions(c),v=m==="y",p=v?"top":"left",f=v?"bottom":"right",b=v?"clientHeight":"clientWidth",x=o.reference[g]+o.reference[m]-h[m]-o.floating[g],S=h[m]-o.reference[m],I=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c));let C=I?I[b]:0;(!C||!await(a.isElement==null?void 0:a.isElement(I)))&&(C=r.floating[b]||o.floating[g]);const k=x/2-S/2,M=C/2-y[g]/2-1,P=Q(d[p],M),G=Q(d[f],M),$=P,V=C-y[g]-G,_=C/2-y[g]/2+k,K=ct($,_,V),X=!l.arrow&&he(i)!=null&&_!==K&&o.reference[g]/2-(_<$?P:G)-y[g]/2<0,j=X?_<$?_-$:_-V:0;return{[m]:h[m]+j,data:{[m]:K,centerOffset:_-K-j,...X&&{alignmentOffset:j}},reset:X}}}),ei=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:i,middlewareData:o,rects:a,initialPlacement:r,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...v}=ue(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const p=ee(i),f=U(r),b=ee(r)===r,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=h||(b||!y?[Fe(r)]:Vs(r)),I=g!=="none";!h&&I&&S.push(...Ys(r,y,g,x));const C=[r,...S],k=await l.detectOverflow(t,v),M=[];let P=((s=o.flip)==null?void 0:s.overflows)||[];if(u&&M.push(k[p]),d){const _=Gs(i,a,x);M.push(k[_[0]],k[_[1]])}if(P=[...P,{placement:i,overflows:M}],!M.every(_=>_<=0)){var G,$;const _=(((G=o.flip)==null?void 0:G.index)||0)+1,K=C[_];if(K&&(!(d==="alignment"?f!==U(K):!1)||P.every(z=>U(z.placement)===f?z.overflows[0]>0:!0)))return{data:{index:_,overflows:P},reset:{placement:K}};let X=($=P.filter(j=>j.overflows[0]<=0).sort((j,z)=>j.overflows[1]-z.overflows[1])[0])==null?void 0:$.placement;if(!X)switch(m){case"bestFit":{var V;const j=(V=P.filter(z=>{if(I){const ne=U(z.placement);return ne===f||ne==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(ne=>ne>0).reduce((ne,Zi)=>ne+Zi,0)]).sort((z,ne)=>z[1]-ne[1])[0])==null?void 0:V[0];j&&(X=j);break}case"initialPlacement":X=r;break}if(i!==X)return{reset:{placement:X}}}return{}}}},ti=new Set(["left","top"]);async function ni(e,t){const{placement:n,platform:s,elements:i}=e,o=await(s.isRTL==null?void 0:s.isRTL(i.floating)),a=ee(n),r=he(n),l=U(n)==="y",c=ti.has(a)?-1:1,u=o&&l?-1:1,d=ue(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return r&&typeof g=="number"&&(m=r==="end"?g*-1:g),l?{x:m*u,y:h*c}:{x:h*c,y:m*u}}const si=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:i,y:o,placement:a,middlewareData:r}=t,l=await ni(t,e);return a===((n=r.offset)==null?void 0:n.placement)&&(s=r.arrow)!=null&&s.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},ii=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:r=!1,limiter:l={fn:p=>{let{x:f,y:b}=p;return{x:f,y:b}}},...c}=ue(e,t),u={x:n,y:s},d=await o.detectOverflow(t,c),h=U(ee(i)),m=cn(h);let g=u[m],y=u[h];if(a){const p=m==="y"?"top":"left",f=m==="y"?"bottom":"right",b=g+d[p],x=g-d[f];g=ct(b,g,x)}if(r){const p=h==="y"?"top":"left",f=h==="y"?"bottom":"right",b=y+d[p],x=y-d[f];y=ct(b,y,x)}const v=l.fn({...t,[m]:g,[h]:y});return{...v,data:{x:v.x-n,y:v.y-s,enabled:{[m]:a,[h]:r}}}}}},oi=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:i,rects:o,platform:a,elements:r}=t,{apply:l=()=>{},...c}=ue(e,t),u=await a.detectOverflow(t,c),d=ee(i),h=he(i),m=U(i)==="y",{width:g,height:y}=o.floating;let v,p;d==="top"||d==="bottom"?(v=d,p=h===(await(a.isRTL==null?void 0:a.isRTL(r.floating))?"start":"end")?"left":"right"):(p=d,v=h==="end"?"top":"bottom");const f=y-u.top-u.bottom,b=g-u.left-u.right,x=Q(y-u[v],f),S=Q(g-u[p],b),I=!t.middlewareData.shift;let C=x,k=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=b),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(C=f),I&&!h){const P=N(u.left,0),G=N(u.right,0),$=N(u.top,0),V=N(u.bottom,0);m?k=g-2*(P!==0||G!==0?P+G:N(u.left,u.right)):C=y-2*($!==0||V!==0?$+V:N(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:C});const M=await a.getDimensions(r.floating);return g!==M.width||y!==M.height?{reset:{rects:!0}}:{}}}};function ze(){return typeof window<"u"}function ge(e){return mn(e)?(e.nodeName||"").toLowerCase():"#document"}function D(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){var t;return(t=(mn(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mn(e){return ze()?e instanceof Node||e instanceof D(e).Node:!1}function L(e){return ze()?e instanceof Element||e instanceof D(e).Element:!1}function Y(e){return ze()?e instanceof HTMLElement||e instanceof D(e).HTMLElement:!1}function pn(e){return!ze()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof D(e).ShadowRoot}function xe(e){const{overflow:t,overflowX:n,overflowY:s,display:i}=F(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&i!=="inline"&&i!=="contents"}function ai(e){return/^(table|td|th)$/.test(ge(e))}function qe(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ri=/transform|translate|scale|rotate|perspective|filter/,li=/paint|layout|strict|content/,ae=e=>!!e&&e!=="none";let gt;function mt(e){const t=L(e)?F(e):e;return ae(t.transform)||ae(t.translate)||ae(t.scale)||ae(t.rotate)||ae(t.perspective)||!pt()&&(ae(t.backdropFilter)||ae(t.filter))||ri.test(t.willChange||"")||li.test(t.contain||"")}function ci(e){let t=te(e);for(;Y(t)&&!me(t);){if(mt(t))return t;if(qe(t))return null;t=te(t)}return null}function pt(){return gt==null&&(gt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),gt}function me(e){return/^(html|body|#document)$/.test(ge(e))}function F(e){return D(e).getComputedStyle(e)}function We(e){return L(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function te(e){if(ge(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pn(e)&&e.host||W(e);return pn(t)?t.host:t}function fn(e){const t=te(e);return me(t)?e.ownerDocument?e.ownerDocument.body:e.body:Y(t)&&xe(t)?t:fn(t)}function Ce(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=fn(e),o=i===((s=e.ownerDocument)==null?void 0:s.body),a=D(i);if(o){const r=ft(a);return t.concat(a,a.visualViewport||[],xe(i)?i:[],r&&n?Ce(r):[])}else return t.concat(i,Ce(i,[],n))}function ft(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function bn(e){const t=F(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const i=Y(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:s,r=Re(n)!==o||Re(s)!==a;return r&&(n=o,s=a),{width:n,height:s,$:r}}function bt(e){return L(e)?e:e.contextElement}function pe(e){const t=bt(e);if(!Y(t))return q(1);const n=t.getBoundingClientRect(),{width:s,height:i,$:o}=bn(t);let a=(o?Re(n.width):n.width)/s,r=(o?Re(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!r||!Number.isFinite(r))&&(r=1),{x:a,y:r}}const di=q(0);function yn(e){const t=D(e);return!pt()||!t.visualViewport?di:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ui(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==D(e)?!1:t}function re(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=bt(e);let a=q(1);t&&(s?L(s)&&(a=pe(s)):a=pe(e));const r=ui(o,n,s)?yn(o):q(0);let l=(i.left+r.x)/a.x,c=(i.top+r.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const h=D(o),m=s&&L(s)?D(s):s;let g=h,y=ft(g);for(;y&&s&&m!==g;){const v=pe(y),p=y.getBoundingClientRect(),f=F(y),b=p.left+(y.clientLeft+parseFloat(f.paddingLeft))*v.x,x=p.top+(y.clientTop+parseFloat(f.paddingTop))*v.y;l*=v.x,c*=v.y,u*=v.x,d*=v.y,l+=b,c+=x,g=D(y),y=ft(g)}}return je({width:u,height:d,x:l,y:c})}function Ge(e,t){const n=We(e).scrollLeft;return t?t.left+n:re(W(e)).left+n}function wn(e,t){const n=e.getBoundingClientRect(),s=n.left+t.scrollLeft-Ge(e,n),i=n.top+t.scrollTop;return{x:s,y:i}}function hi(e){let{elements:t,rect:n,offsetParent:s,strategy:i}=e;const o=i==="fixed",a=W(s),r=t?qe(t.floating):!1;if(s===a||r&&o)return n;let l={scrollLeft:0,scrollTop:0},c=q(1);const u=q(0),d=Y(s);if((d||!d&&!o)&&((ge(s)!=="body"||xe(a))&&(l=We(s)),d)){const m=re(s);c=pe(s),u.x=m.x+s.clientLeft,u.y=m.y+s.clientTop}const h=a&&!d&&!o?wn(a,l):q(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+h.x,y:n.y*c.y-l.scrollTop*c.y+u.y+h.y}}function gi(e){return Array.from(e.getClientRects())}function mi(e){const t=W(e),n=We(e),s=e.ownerDocument.body,i=N(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),o=N(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let a=-n.scrollLeft+Ge(e);const r=-n.scrollTop;return F(s).direction==="rtl"&&(a+=N(t.clientWidth,s.clientWidth)-i),{width:i,height:o,x:a,y:r}}const vn=25;function pi(e,t){const n=D(e),s=W(e),i=n.visualViewport;let o=s.clientWidth,a=s.clientHeight,r=0,l=0;if(i){o=i.width,a=i.height;const u=pt();(!u||u&&t==="fixed")&&(r=i.offsetLeft,l=i.offsetTop)}const c=Ge(s);if(c<=0){const u=s.ownerDocument,d=u.body,h=getComputedStyle(d),m=u.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,g=Math.abs(s.clientWidth-d.clientWidth-m);g<=vn&&(o-=g)}else c<=vn&&(o+=c);return{width:o,height:a,x:r,y:l}}function fi(e,t){const n=re(e,!0,t==="fixed"),s=n.top+e.clientTop,i=n.left+e.clientLeft,o=Y(e)?pe(e):q(1),a=e.clientWidth*o.x,r=e.clientHeight*o.y,l=i*o.x,c=s*o.y;return{width:a,height:r,x:l,y:c}}function Sn(e,t,n){let s;if(t==="viewport")s=pi(e,n);else if(t==="document")s=mi(W(e));else if(L(t))s=fi(t,n);else{const i=yn(e);s={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return je(s)}function In(e,t){const n=te(e);return n===t||!L(n)||me(n)?!1:F(n).position==="fixed"||In(n,t)}function bi(e,t){const n=t.get(e);if(n)return n;let s=Ce(e,[],!1).filter(r=>L(r)&&ge(r)!=="body"),i=null;const o=F(e).position==="fixed";let a=o?te(e):e;for(;L(a)&&!me(a);){const r=F(a),l=mt(a);!l&&r.position==="fixed"&&(i=null),(o?!l&&!i:!l&&r.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||xe(a)&&!l&&In(e,a))?s=s.filter(u=>u!==a):i=r,a=te(a)}return t.set(e,s),s}function yi(e){let{element:t,boundary:n,rootBoundary:s,strategy:i}=e;const a=[...n==="clippingAncestors"?qe(t)?[]:bi(t,this._c):[].concat(n),s],r=Sn(t,a[0],i);let l=r.top,c=r.right,u=r.bottom,d=r.left;for(let h=1;h<a.length;h++){const m=Sn(t,a[h],i);l=N(m.top,l),c=Q(m.right,c),u=Q(m.bottom,u),d=N(m.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function wi(e){const{width:t,height:n}=bn(e);return{width:t,height:n}}function vi(e,t,n){const s=Y(t),i=W(t),o=n==="fixed",a=re(e,!0,o,t);let r={scrollLeft:0,scrollTop:0};const l=q(0);function c(){l.x=Ge(i)}if(s||!s&&!o)if((ge(t)!=="body"||xe(i))&&(r=We(t)),s){const m=re(t,!0,o,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else i&&c();o&&!s&&i&&c();const u=i&&!s&&!o?wn(i,r):q(0),d=a.left+r.scrollLeft-l.x-u.x,h=a.top+r.scrollTop-l.y-u.y;return{x:d,y:h,width:a.width,height:a.height}}function yt(e){return F(e).position==="static"}function xn(e,t){if(!Y(e)||F(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return W(e)===n&&(n=n.ownerDocument.body),n}function Cn(e,t){const n=D(e);if(qe(e))return n;if(!Y(e)){let i=te(e);for(;i&&!me(i);){if(L(i)&&!yt(i))return i;i=te(i)}return n}let s=xn(e,t);for(;s&&ai(s)&&yt(s);)s=xn(s,t);return s&&me(s)&&yt(s)&&!mt(s)?n:s||ci(e)||n}const Si=async function(e){const t=this.getOffsetParent||Cn,n=this.getDimensions,s=await n(e.floating);return{reference:vi(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function Ii(e){return F(e).direction==="rtl"}const wt={convertOffsetParentRelativeRectToViewportRelativeRect:hi,getDocumentElement:W,getClippingRect:yi,getOffsetParent:Cn,getElementRects:Si,getClientRects:gi,getDimensions:wi,getScale:pe,isElement:L,isRTL:Ii};function kn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function xi(e,t){let n=null,s;const i=W(e);function o(){var r;clearTimeout(s),(r=n)==null||r.disconnect(),n=null}function a(r,l){r===void 0&&(r=!1),l===void 0&&(l=1),o();const c=e.getBoundingClientRect(),{left:u,top:d,width:h,height:m}=c;if(r||t(),!h||!m)return;const g=Le(d),y=Le(i.clientWidth-(u+h)),v=Le(i.clientHeight-(d+m)),p=Le(u),b={rootMargin:-g+"px "+-y+"px "+-v+"px "+-p+"px",threshold:N(0,Q(1,l))||1};let x=!0;function S(I){const C=I[0].intersectionRatio;if(C!==l){if(!x)return a();C?a(!1,C):s=setTimeout(()=>{a(!1,1e-7)},1e3)}C===1&&!kn(c,e.getBoundingClientRect())&&a(),x=!1}try{n=new IntersectionObserver(S,{...b,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,b)}n.observe(e)}return a(!0),o}function Ci(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:l=!1}=s,c=bt(e),u=i||o?[...c?Ce(c):[],...t?Ce(t):[]]:[];u.forEach(p=>{i&&p.addEventListener("scroll",n,{passive:!0}),o&&p.addEventListener("resize",n)});const d=c&&r?xi(c,n):null;let h=-1,m=null;a&&(m=new ResizeObserver(p=>{let[f]=p;f&&f.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),c&&!l&&m.observe(c),t&&m.observe(t));let g,y=l?re(e):null;l&&v();function v(){const p=re(e);y&&!kn(y,p)&&n(),y=p,g=requestAnimationFrame(v)}return n(),()=>{var p;u.forEach(f=>{i&&f.removeEventListener("scroll",n),o&&f.removeEventListener("resize",n)}),d?.(),(p=m)==null||p.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const ki=si,Ei=ii,Mi=ei,En=oi,Ai=Qs,Pi=(e,t,n)=>{const s=new Map,i={platform:wt,...n},o={...i.platform,_c:s};return Js(e,t,{...i,platform:o})};function Mn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}const _i=/transform|translate|scale|rotate|perspective|filter/,Ti=/paint|layout|strict|content/,le=e=>!!e&&e!=="none";let vt;function Oi(e){const t=(n=e,typeof window<"u"&&(n instanceof Element||n instanceof Mn(n).Element)?Mn(s=e).getComputedStyle(s):e);var n,s;return le(t.transform)||le(t.translate)||le(t.scale)||le(t.rotate)||le(t.perspective)||(vt==null&&(vt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),!vt&&(le(t.backdropFilter)||le(t.filter)))||_i.test(t.willChange||"")||Ti.test(t.contain||"")}function Ni(e){return(function(t){for(let n=t;n;n=St(n))if(n instanceof Element&&getComputedStyle(n).display==="none")return null;for(let n=St(t);n;n=St(n)){if(!(n instanceof Element))continue;const s=getComputedStyle(n);if(s.display!=="contents"&&(s.position!=="static"||Oi(s)||n.tagName==="BODY"))return n}return null})(e)}function St(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}var ke;(function(e){e.TOOLTIP="tooltip",e.POPOVER="popover",e.FLYOUT_PANEL="flyout-panel"})(ke||(ke={}));const fe=class fe{constructor(t,n){this.el=t,this.config=n,this.offset=10,this.timeDelayBeforeFadingOut=50,this.popoverMainAxisEnabled=!0,this.currentPlacement=n.placement,this.cleanup=null}getRootElement(){return this.el.shadowRoot??this.el}initialize(){this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250;const t=this.getRootElement();this.floatingElement=t.querySelector(this.config.floatingElementSelector),this.floatingElement&&this.applyViewportMaxWidth(),this.arrowEl=this.config.showArrow!==!1&&this.config.arrowElementSelector?t.querySelector(this.config.arrowElementSelector):null,this.anchorElement=this.config.htmlFor?.length>0?document.getElementById(this.config.htmlFor):this.config.getAnchorElement?this.config.getAnchorElement(t):this.el.shadowRoot?this.config.getAnchorElementFromSlot(this.el.shadowRoot):null,this.anchorElement?this.setupPositioning():console.warn("Could not determine the element associated with this floating element."+(this.config.htmlFor?.length>0?`Element with id=${this.config.htmlFor} could not be found on the DOM.`:""))}getAnchorElement(){return this.anchorElement}updateConfig(t){this.config={...this.config,...t},"showWithoutDelay"in t&&(this.timeBeforeElementShows=this.config.showWithoutDelay?50:500,this.timeOfAnimation=this.config.showWithoutDelay?50:250),this.forceUpdate()}getConfig(){return this.config}getCurrentPlacement(){return this.currentPlacement||this.config.placement}reposition(){this.forceUpdate()}forceUpdate(){this.anchorElement&&this.floatingElement&&this.updatePosition()}setupPositioning(){this.anchorElement&&this.updatePosition()}setupAutoUpdate(){!this.cleanup&&this.anchorElement&&(this.cleanup=Ci(this.anchorElement,this.floatingElement,(()=>{this.updatePosition()}),{ancestorScroll:!0,ancestorResize:!1,elementResize:!0,layoutShift:!0,animationFrame:!1}))}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}updatePosition(){if(!this.anchorElement)return;const t=this.config.offset??this.offset,n=[ki(t)],s=this.config.lockToMainAxis??!1,i=this.config.constrainPlacements,o=i&&i.length>0?i.includes(this.config.placement)?this.config.placement:i[0]:this.config.placement,a=Mi(i&&i.length>0?{mainAxis:!0,crossAxis:!1,padding:t,fallbackPlacements:i.filter((c=>c!==o)),fallbackAxisSideDirection:"none"}:{mainAxis:!0,crossAxis:!s&&"alignment",fallbackAxisSideDirection:"end",padding:t}),r=this.config.elementType===ke.POPOVER,l=Ei({padding:t,mainAxis:this.config.constrainToViewportHeight||this.config.elementType===ke.TOOLTIP||r&&this.popoverMainAxisEnabled,crossAxis:!1});this.config.matchReferenceWidth&&n.push(En({apply({elements:c,rects:u}){Object.assign(c.floating.style,{width:`${u.reference.width}px`})}})),o?.includes("-")?n.push(a,l):n.push(l,a),this.config.constrainToViewportHeight&&n.push(En({padding:t,apply:({availableHeight:c,elements:u})=>{const d=Array.from(u.floating.children).find((h=>h!==this.arrowEl));d instanceof HTMLElement&&Object.assign(d.style,{maxHeight:`${Math.max(0,c)}px`,overflowY:"auto",overflowX:"hidden"})}})),this.config.showArrow!==!1&&this.arrowEl&&n.push(Ai({element:this.arrowEl,padding:t})),Pi(this.anchorElement,this.floatingElement,{placement:o,strategy:"fixed",middleware:n,platform:{...wt,getOffsetParent:c=>wt.getOffsetParent(c,Ni)}}).then((({x:c,y:u,middlewareData:d,placement:h})=>{if(r){const v=h.startsWith("left")||h.startsWith("right"),p=h.startsWith("top")||h.startsWith("bottom"),f=this.isAnchorInViewport(),b=!!p||(v?f:this.popoverMainAxisEnabled);if(b!==this.popoverMainAxisEnabled)return this.popoverMainAxisEnabled=b,void this.updatePosition()}this.currentPlacement=h,Object.assign(this.floatingElement.style,{left:`${c}px`,top:`${u}px`,position:"fixed",transition:`opacity ${this.timeOfAnimation}ms ease`});const m=h.split("-")[0]??"bottom",g={top:"bottom",right:"left",bottom:"top",left:"right"}[m],{arrowZIndex:y}=this.normalizeFloatingElementStacking();if(d.arrow&&this.arrowEl){const v=this.arrowEl.offsetWidth,{x:p,y:f}=d.arrow;this.arrowEl.style.borderRadius=`${["left","right"].includes(m)?"0 ":""}var(--gidsFloatingElement-tip-border-radius, 2px)${["top","bottom"].includes(m)?" 0":""}`,Object.assign(this.arrowEl.style,{left:p!==null?`${p}px`:"",top:f!==null?`${f}px`:"",right:"",bottom:"",[g]:-v/2+"px",transform:"rotate(45deg)",zIndex:`${y}`,background:"var(--gidsFloatingElement-background)"})}}))}applyViewportMaxWidth(){const t=`calc(100vw - ${2*this.offset}px)`;this.floatingElement&&this.floatingElement?.style.maxWidth!==t&&(this.floatingElement.style.maxWidth=t)}normalizeFloatingElementStacking(){const t=this.floatingElement.style.zIndex||(window.getComputedStyle?.(this.floatingElement).zIndex??""),n=Number.parseInt(t,10),s=Number.isNaN(n)?-1:n-1,i=Number.isNaN(n)?s+1:n;return Number.isNaN(i)||(this.floatingElement.style.zIndex=`${i}`),Array.from(this.floatingElement.children).forEach((o=>{if(!(o instanceof HTMLElement)||o===this.arrowEl)return;const a=o.style.zIndex||(window.getComputedStyle?.(o).zIndex??""),r=Number.parseInt(a,10),l=window.getComputedStyle?.(o).position??"";(a===""||a==="auto"||Number.isNaN(r)||r<i)&&(o.style.zIndex=`${i}`,l!==""&&l!=="static"||(o.style.position="relative"))})),{contentZIndex:i,arrowZIndex:s}}hideFloatingElement(){this.floatingElement.classList.remove(this.config.visibilityClass),fe.currentFloatingElements.delete(this.config.elementType)}showFloatingElement(){const t=fe.currentFloatingElements.get(this.config.elementType);t&&t.hideFloatingElement(),this.floatingElement.classList.add(this.config.visibilityClass),fe.currentFloatingElements.set(this.config.elementType,this)}isVisible(){return this.floatingElement.classList.contains(this.config.visibilityClass)}show(){this.setupAutoUpdate(),this.showFloatingElement()}hide(){this.cleanupAutoUpdate(),this.hideFloatingElement()}toggle(){this.isVisible()?this.hide():this.show()}showAfterDelay(){clearTimeout(this.hoverOutTimeout),this.hoverTimeout=setTimeout((()=>{this.show()}),this.timeBeforeElementShows)}hideAfterDelay(){clearTimeout(this.hoverTimeout),this.hoverOutTimeout=setTimeout((()=>{this.hide()}),this.timeDelayBeforeFadingOut)}cancelDelayedActions(){clearTimeout(this.hoverTimeout),clearTimeout(this.hoverOutTimeout)}destroy(){this.cleanupAutoUpdate(),this.cancelDelayedActions()}isAnchorInViewport(){if(!(this.anchorElement&&this.anchorElement instanceof Element))return!1;const t=this.anchorElement.getBoundingClientRect(),n=window.innerHeight||document.documentElement?.clientHeight||0,s=window.innerWidth||document.documentElement?.clientWidth||0,i=t.height/2+2*this.offset;return t.bottom>=i&&t.top<=n-i&&t.right>=0&&t.left<=s}};fe.currentFloatingElements=new Map;let It=fe;const Di=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.__attachShadow(),this.placement="bottom",this.constrainPlacements=["bottom","top"],this.previouslyFocusedElement=null,this.focusableElements=[],this.handleToggleEvent=t=>{t.stopPropagation();const n=this.floatingElementManager.isVisible();this.floatingElementManager.toggle(),!n&&this.floatingElementManager.isVisible()?this.onFlyoutPanelShow():n&&!this.floatingElementManager.isVisible()&&this.onFlyoutPanelHide()},this.handleDocumentClick=t=>{this.floatingElementManager.isVisible()&&!this._el.contains(t.target)&&(this.floatingElementManager.hide(),this.onFlyoutPanelHide())},this.handleKeyDown=t=>{if(this.floatingElementManager.isVisible())return t.key==="Escape"?(t.preventDefault(),this.floatingElementManager.hide(),void this.onFlyoutPanelHide()):void(t.key==="Tab"&&this.trapFocus(t))}}componentDidLoad(){this.floatingElementManager=new It(this._el,{htmlFor:this.htmlFor,placement:this.placement,showWithoutDelay:!0,floatingElementSelector:"#flyout-panel",showArrow:!1,visibilityClass:"gids-flyout-panel--visible",elementType:ke.FLYOUT_PANEL,constrainPlacements:this?.constrainPlacements??["bottom","top"],constrainToViewportHeight:!0,getAnchorElementFromSlot:e=>e.querySelector('slot[name="anchor"]')?.assignedElements()[0]||null}),this.floatingElementManager.initialize(),this.setupEventListeners()}setupEventListeners(){const e=this.floatingElementManager.getAnchorElement();e&&(e.addEventListener("click",this.handleToggleEvent),document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleKeyDown))}onFlyoutPanelShow(){this.previouslyFocusedElement=document.activeElement,this.updateFocusableElements(),setTimeout((()=>{this.focusableElements.length>0&&this.focusableElements[0]&&this.focusableElements[0].focus()}),50)}onFlyoutPanelHide(){this.previouslyFocusedElement&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=null)}updateFocusableElements(){const e=this._el.shadowRoot?.querySelector("#flyout-panel");if(!e)return;const t=[],n=Pn(e);t.push(...n);const s=this._el.shadowRoot?.querySelector("slot:not([name])");s&&s.assignedElements({flatten:!0}).forEach((i=>{const o=Pn(i);t.push(...o)})),this.focusableElements=t.sort(((i,o)=>{const a=i.compareDocumentPosition(o),r=!!(a&Node.DOCUMENT_POSITION_FOLLOWING),l=!!(a&Node.DOCUMENT_POSITION_PRECEDING);return r?-1:l?1:0}))}trapFocus(e){if(this.focusableElements.length===0)return;const t=this.focusableElements[0],n=this.focusableElements[this.focusableElements.length-1];let s=document.activeElement;if(s===this._el){const o=this._el.shadowRoot?.activeElement;o!==null&&(s=o)}const i=this.focusableElements.indexOf(s)!==-1;e.shiftKey?s!==t&&i||(e.preventDefault(),n&&n.focus()):s!==n&&i||(e.preventDefault(),t&&t.focus())}placementChanged(e){this.floatingElementManager?.updateConfig({placement:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}constrainPlacementsChanged(e){this.floatingElementManager?.updateConfig({constrainPlacements:e}),this.floatingElementManager?.isVisible()&&this.floatingElementManager?.reposition()}htmlForChanged(e){this.floatingElementManager?.updateConfig({htmlFor:e}),this.cleanupEventListeners(),this.floatingElementManager?.initialize(),this.setupEventListeners()}cleanupEventListeners(){const e=this.floatingElementManager?.getAnchorElement();e&&e.removeEventListener("click",this.handleToggleEvent),document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleKeyDown)}openFlyoutPanel(e){e&&e.stopPropagation(),this.floatingElementManager.isVisible()||(this.floatingElementManager.show(),this.onFlyoutPanelShow())}closeFlyoutPanel(e){e&&e.stopPropagation(),this.floatingElementManager.isVisible()&&(this.floatingElementManager.hide(),this.onFlyoutPanelHide())}render(){return w(os,{key:"ad79cb0c6c6f36d2d6926233dd10d1de053fa405"},w("slot",{key:"97333353f6deda3222ccdcee1a7c9a42900204f5",name:"anchor"}),w("div",{key:"805d139b92080862e60dad9591908f4c9af42dd3",id:"flyout-panel",part:"flyout-panel",role:"dialog","aria-modal":"true",tabindex:"-1"},w("div",{key:"522bae9ac93bbb12e3d3f820a477c81b768ddff3"},w("slot",{key:"3c3601c973866e9d6ccb7aaeb686e0659b54ea50"}))))}disconnectedCallback(){this.cleanupEventListeners(),this.floatingElementManager?.destroy()}get _el(){return this}static get watchers(){return{placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}]}}static get style(){return"gids-flyout-panel{--gidsFlyoutPanel-background:var(--gids-elevation-surface-overlay-default);--gidsFlyoutPanel-text-color:var(--gids-color-text-default);--gidsFlyoutPanel-padding:var(--gids-padding-vertical-edge-to-element-200) var(--gids-padding-horizontal-edge-to-element-300);--gidsFlyoutPanel-border-radius:var(--gids-border-radius-lg);--gidsFlyoutPanel-shadow:var(--gids-elevation-shadow-overlay);--gidsFloatingElement-background:var(--gidsFlyoutPanel-background)}[part=flyout-panel]{font-family:var(--gids-typography-label-small__font-family);font-size:var(--gids-typography-label-small__font-size);font-weight:var(--gids-typography-label-small__font-weight);letter-spacing:var(--gids-typography-label-small__letter-spacing);line-height:var(--gids-typography-label-small__line-height);text-transform:var(--gids-typography-label-small__text-transform, inherit);font-variant-caps:var(--gids-typography-label-small__font-variant-caps, inherit);position:absolute;display:inline-block;background-color:var(--gidsFlyoutPanel-background);color:var(--gidsFlyoutPanel-text-color);border-radius:var(--gidsFlyoutPanel-border-radius);box-shadow:var(--gidsFlyoutPanel-shadow);z-index:1000;opacity:0;pointer-events:none;outline:none}[part=flyout-panel]:focus{outline:none}[part=flyout-panel].gids-flyout-panel--visible{pointer-events:initial;opacity:1}"}},[257,"gids-flyout-panel",{htmlFor:[513,"for"],placement:[513],constrainPlacements:[16],openFlyoutPanel:[64],closeFlyoutPanel:[64]},void 0,{placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}]}]),An=e=>{if(!(e instanceof ye)||e.tabIndex===-1||e.hasAttribute("disabled"))return!1;const t=getComputedStyle(e);if(t.display==="none"||t.visibility==="hidden"||e.hidden)return!1;try{const n=e.tabIndex;e.tabIndex=-1,e.focus();const s=document.activeElement===e;return e.tabIndex=n,s&&e.blur(),s}catch{return!1}},Pn=e=>{const t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>An(i)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}),n=[];An(e)&&n.push(e);let s=t.nextNode();for(;s!==null;)n.push(s),s=t.nextNode();return n};function Ve(){typeof customElements<"u"&&["gids-flyout-panel"].forEach((e=>{e==="gids-flyout-panel"&&(customElements.get(e)||customElements.define(e,Di))}))}Ve();const{getGidsStatusTagClassNames:$i,getStatusTagIconName:Ri,getStatusTagText:Li}=Es,_n=({type:e="new",appearance:t="subtlest",size:n="sm",class:s})=>w("div",{class:$i({type:e,size:n,appearance:t},s)},w(J,{name:Ri(e),appearance:"filled"}),w("label",null,Li(e))),{getGidsCheckboxClassNames:Fi}=ps,Tn=({fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,info:s,labelId:i,checked:o,defaultChecked:a,disabled:r,indeterminate:l,inputId:c,name:u,value:d,required:h,onChange:m,class:g,...y},v)=>{const p=c??lt();return w("div",{class:Fi(g),...y},w(js,{checked:o,defaultChecked:a,disabled:r,indeterminate:l,inputId:p,name:u,value:d,required:h,onChange:m}),w(ln,{disabled:r,fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,labelId:i,htmlFor:p,info:s},v))},{getGidsRadioControlClassNames:ji}=vs,zi=({checked:e,defaultChecked:t,disabled:n,inputId:s,name:i,value:o,onChange:a,class:r,...l})=>w("span",{class:ji(r),...l},w("input",{class:"gids-radio-control__input",type:"radio",disabled:n,checked:e,defaultChecked:t,value:o,id:s,name:i,onChange:a}),w("span",{class:"gids-radio-control__check"})),{getGidsRadioClassNames:qi}=Ss,On=({fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,info:s,labelId:i,checked:o,defaultChecked:a,disabled:r,inputId:l,name:c,value:u,onChange:d,class:h,...m},g)=>{const y=l??lt();return w("div",{class:qi(h),...m},w(zi,{checked:o,defaultChecked:a,disabled:r,inputId:y,name:c,value:u,onChange:d}),w(ln,{disabled:r,fieldRequirement:e,fieldRequirementOptionalText:t,fieldRequirementRequiredText:n,labelId:i,htmlFor:y,info:s},g))},{getGidsSidebarMenuItemClassNames:Wi}=xs,Nn=({id:e="sidebar-menu-item",appearance:t="default",selectionAppearance:n="subtle",leadingLabel:s,leadingSupportingText:i,trailingLabel:o,trailingSupportingText:a,leadingIcon:r,trailingIcon:l,leadingAccessory:c,trailingAccessory:u,selected:d,disabled:h,onPressSidebarMenuItem:m,class:g})=>{const y=s&&s!=="",v=i&&i!=="",p=o&&o!=="",f=a&&a!=="",b=y||v,x=p||f,S=b||x;return w("button",{type:"button",id:e,"data-appearance":t,"data-selected":d?"true":"false",disabled:h,class:Wi({selected:d,appearance:t,selectionAppearance:n},g),onClick:I=>{m&&m({originalEvent:I,sidebarMenuItemId:e,selected:!d})}},r||c?w("div",{class:"gids-sidebar-menu-item__leading-accessory-content"},r,c):void 0,S?w("div",{class:"gids-sidebar-menu-item__content"},b?w("div",{class:"gids-sidebar-menu-item__leading-content"},y?w("span",{class:"gids-sidebar-menu-item__label-content"},s):void 0,v?w("p",{class:"gids-sidebar-menu-item__support-content"},i):void 0):void 0,x?w("div",{class:"gids-sidebar-menu-item__trailing-content"},p?w("span",{class:"gids-sidebar-menu-item__label-content"},o):void 0,f?w("p",{class:"gids-sidebar-menu-item__support-content"},a):void 0):void 0):void 0,l||u?w("div",{class:"gids-sidebar-menu-item__trailing-accessory-content"},u,l):void 0)},{getGidsSidebarMenuClassNames:Gi}=Cs,Vi=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.id="sidebar-menu",this.sidebarMenuItemAppearance="subtle",this.sidebarMenuItemSelectionAppearance="default",this.placement="right-end",this.constrainPlacements=["bottom","left","right","left-start","left-end","right-start","right-end","top"],this.selectedSectionIdState=void 0,this.selectedItemIdState=void 0,this.onSidebarMenuItemPress=({menuItem:t,itemIndex:n,sectionIndex:s,event:i})=>{if(t){const o=(this?.menuData??[])[s];(o?.menuItems??[]).length>0&&!this.isMenuItemSelected({sectionId:o?.sectionId,itemId:t.id})&&(this.selectedSectionIdState=o?.sectionId,this.selectedItemIdState=t.id,this.onSidebarMenuChange&&this.onSidebarMenuChange({originalEvent:i?.originalEvent,sidebarMenuItemId:i.sidebarMenuItemId,selected:i?.selected,sidebarMenuItemSectionId:o?.sectionId??"",sidebarMenuItemSectionIndex:s,sidebarMenuItemIndex:n,sidebarMenuId:this.id}))}this.flyoutPanelElement?.closeFlyoutPanel()},this.isMenuItemSelected=({sectionId:t,itemId:n})=>{const s=this?.selectedSectionIdState,i=this?.selectedItemIdState;return s===t&&i===n},this.isValidMenu=()=>!!(this?.menuData&&this.menuData.length>0&&this.menuData[0]?.menuItems&&this.menuData[0].menuItems.length>0),this.renderAccessory=({accessoryType:t,accessory:n})=>{switch(t){case"badge":return w(nn,{...n?.badgeProps});case"display-tag":return w(sn,{...n?.displayTagProps,label:n?.displayTagProps?.label??"",color:n?.displayTagProps?.color??"accent-1",icon:n?.displayTagProps?.iconName?w(J,{name:n.displayTagProps.iconName,appearance:n?.displayTagProps?.iconAppearance??"regular",size:n?.displayTagProps?.iconSize??"md",alt:n?.displayTagProps?.iconAlt}):void 0});case"status-tag":return w(_n,{...n?.statusTagProps});case"checkbox":return w(Tn,{checked:n?.checkboxProps?.checked,disabled:n?.checkboxProps?.disabled,indeterminate:n?.checkboxProps?.indeterminate},n?.checkboxProps?.label);case"radio":return w(On,{checked:n?.radioProps?.checked,disabled:n?.radioProps?.disabled},n?.radioProps?.label);default:return}},this.renderIcon=t=>t?.name?w(J,{name:t.name,appearance:t?.appearance??"regular",size:t?.size??"md",alt:t?.alt}):void 0}idChanged(e){this.id=e}sidebarMenuItemAppearanceChanged(e){this.sidebarMenuItemAppearance=e}sidebarMenuItemSelectionAppearanceChanged(e){this.sidebarMenuItemSelectionAppearance=e}selectedSectionIdChanged(e){this.selectedSectionId=e,this.selectedSectionIdState=e}selectedItemIdChanged(e){this.selectedItemId=e,this.selectedItemIdState=e}placementChanged(e){this.placement=e}constrainPlacementsChanged(e){this.constrainPlacements=e}htmlForChanged(e){this.htmlFor=e}menuDataChanged(e){this.menuData=e}connectedCallback(){this.selectedSectionIdState=this.selectedSectionId,this.selectedItemIdState=this.selectedItemId}componentDidRender(){this.flyoutPanelElement=this.hostElement.querySelector("gids-flyout-panel")??void 0}render(){const e=this.id,t=this?.sidebarMenuItemAppearance??"subtle",n=this?.sidebarMenuItemSelectionAppearance??"default",s=this?.placement??"right",i=this?.constrainPlacements&&this.constrainPlacements.length>0?this.constrainPlacements:["bottom","left","right","top","left-start","left-end","right-start","right-end"],o=this.htmlFor,a=this?.menuData??[],r=this.isValidMenu(),l=Gi();return w(Ae,{key:"18caea43f2a18e876e094176ee144ece86e0eeec",id:e,class:l},r?w("gids-flyout-panel",{htmlFor:o,constrainPlacements:i,placement:s},a.map(((c,u)=>{const d=c?.sectionLabel,h=c?.menuItems??[];return w("div",{key:`${u+1}`,class:"gids-sidebar-menu__container"},d&&d!==""?w("h3",null,d):void 0,w("div",{class:"gids-sidebar-menu__item-container"},h.map(((m,g)=>{const{leadingAccessoryType:y,leadingAccessory:v,trailingAccessoryType:p,trailingAccessory:f,leadingIconProps:b,trailingIconProps:x,...S}=m;return w(Nn,{key:`${g+1}`,...S,id:m.id,appearance:t,selectionAppearance:n,selected:this.isMenuItemSelected({sectionId:c?.sectionId,itemId:m.id}),leadingAccessory:this.renderAccessory({accessoryType:y,accessory:v}),trailingAccessory:this.renderAccessory({accessoryType:p,accessory:f}),leadingIcon:this.renderIcon(b),trailingIcon:this.renderIcon(x),onPressSidebarMenuItem:I=>this.onSidebarMenuItemPress({menuItem:m,sectionIndex:u,itemIndex:g,event:I})})}))))}))):void 0)}get hostElement(){return this}static get watchers(){return{id:[{idChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}],menuData:[{menuDataChanged:0}]}}static get style(){return".gids-sidebar-menu__container{display:flex;flex-direction:column;gap:var(--gids-gap-200);width:100%;padding:var(--gids-padding-vertical-edge-to-element-150) var(--gids-padding-horizontal-edge-to-element-200)}.gids-sidebar-menu__item-container{display:flex;flex-direction:column;gap:var(--gids-gap-150)}"}},[0,"gids-sidebar-menu",{id:[1],sidebarMenuItemAppearance:[1,"sidebar-menu-item-appearance"],sidebarMenuItemSelectionAppearance:[1,"sidebar-menu-item-selection-appearance"],selectedSectionId:[1,"selected-section-id"],selectedItemId:[1,"selected-item-id"],placement:[1],constrainPlacements:[16],htmlFor:[1,"html-for"],menuData:[16],onSidebarMenuChange:[16],selectedSectionIdState:[32],selectedItemIdState:[32]},void 0,{id:[{idChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],placement:[{placementChanged:0}],constrainPlacements:[{constrainPlacementsChanged:0}],htmlFor:[{htmlForChanged:0}],menuData:[{menuDataChanged:0}]}]);function xt(){typeof customElements<"u"&&["gids-sidebar-menu","gids-flyout-panel"].forEach((e=>{switch(e){case"gids-sidebar-menu":customElements.get(e)||customElements.define(e,Vi);break;case"gids-flyout-panel":customElements.get(e)||Ve()}}))}xt();const{getGidsDividerClassNames:Hi}=bs,Ct=({orientation:e})=>w("hr",{class:Hi({orientation:e})}),{getGidsSidebarItemClassNames:Bi}=Is,Ui=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.appearance="subtle",this.selectionAppearance="default",this.menuId="sidebar-menu-item",this.menuPlacement="right-end",this.menuConstrainPlacements=["bottom","left","right","top","left-start","left-end","right-start","right-end"],this.menuData=[],this.sidebarMenuItemAppearance="subtle",this.sidebarMenuItemSelectionAppearance="default",this.selectedMenuItemSectionIdState=void 0,this.selectedMenuItemIdState=void 0,this.selectedState=!1,this.onSidebarMenuItemPress=({event:t})=>{this.isNavigatable()&&!this.isSidebarItemSelected()&&(this.selectedState=!0,this.firePressEvents({originalEvent:t?.originalEvent,sidebarItemId:this.id,hasMenu:!1,menuLength:0,sidebarMenuItemSectionId:void 0,sidebarMenuItemSectionIndex:void 0,sidebarMenuItemIndex:void 0,sidebarMenuId:void 0,sidebarMenuItemId:void 0,selected:!0}))},this.onChangeSidebarMenu=({event:t})=>{t&&t?.originalEvent?.stopPropagation();const n=this?.menuData??[];this.isMenuItemSelected({selectedMenuSectionId:t?.sidebarMenuItemSectionId,selectedMenuItemId:t?.sidebarMenuItemId,selectedMenuId:this?.menuId??void 0})||(this.selectedMenuItemSectionIdState=t?.sidebarMenuItemSectionId,this.selectedMenuItemIdState=t?.sidebarMenuItemId,this.selectedState=!0,this.firePressEvents({originalEvent:t?.originalEvent,sidebarItemId:this.id,hasMenu:!0,menuLength:n.length,sidebarMenuItemSectionId:t?.sidebarMenuItemSectionId,sidebarMenuItemSectionIndex:t?.sidebarMenuItemSectionIndex,sidebarMenuItemIndex:t?.sidebarMenuItemIndex,sidebarMenuId:t?.sidebarMenuId,sidebarMenuItemId:t?.sidebarMenuItemId,selected:!0}))},this.firePressEvents=t=>{this.onPressSidebarItem&&this.onPressSidebarItem(t)},this.isSidebarItemSelected=()=>this?.selectedState??!1,this.isMenuItemSelected=({selectedMenuId:t,selectedMenuSectionId:n,selectedMenuItemId:s})=>(this?.selectedMenuItemSectionIdState??void 0)===n&&(this?.selectedMenuItemIdState??void 0)===s&&(this?.menuId??void 0)===t,this.hasMenu=()=>{const t=this?.menuData??[];return!!(t.length>0&&t[0]?.menuItems&&t[0].menuItems.length>0&&t[0].menuItems[0]?.id)},this.isNavigatable=()=>!this.hasMenu()}idChanged(e){this.id=e}appearanceChanged(e){this.appearance=e}selectionAppearanceChanged(e){this.selectionAppearance=e}leadingLabelChanged(e){this.leadingLabel=e}leadingSupportingTextChanged(e){this.leadingSupportingText=e}trailingLabelChanged(e){this.trailingLabel=e}trailingSupportingTextChanged(e){this.trailingSupportingText=e}selectedChanged(e){this.selected=e,this.selectedState=e}disabledChanged(e){this.disabled=e}menuIdChanged(e){this.menuId=e}menuPlacementChanged(e){this.menuPlacement=e}menuConstrainPlacementsChanged(e){this.menuConstrainPlacements=e}menuDataChanged(e){this.menuData=e}sidebarMenuItemAppearanceChanged(e){this.sidebarMenuItemAppearance=e}sidebarMenuItemSelectionAppearanceChanged(e){this.sidebarMenuItemSelectionAppearance=e}selectedMenuItemSectionIdChanged(e){this.selectedMenuItemSectionId=e,this.selectedMenuItemSectionIdState=e}selectedMenuItemIdChanged(e){this.selectedMenuItemId=e,this.selectedMenuItemIdState=e}connectedCallback(){this.selectedMenuItemSectionIdState=this.selectedMenuItemSectionId,this.selectedMenuItemIdState=this.selectedMenuItemId,this.selectedState=this.selected}render(){const e=this.id,t=this?.appearance??"subtle",n=this?.selectionAppearance??"default",s=this?.leadingLabel,i=this?.leadingSupportingText,o=this?.trailingLabel,a=this?.trailingSupportingText,r=this?.disabled??!1,l=this?.selectedState??!1,c=this?.menuId??"sidebar-menu-item",u=this?.menuPlacement??"right",d=this?.menuConstrainPlacements&&this.menuConstrainPlacements.length>0?this.menuConstrainPlacements:["bottom","left","right","top","left-start","left-end","right-start","right-end"],h=this?.menuData??[],m=this?.sidebarMenuItemAppearance??"subtle",g=this?.sidebarMenuItemSelectionAppearance??"default",y=this?.selectedMenuItemSectionIdState??void 0,v=this?.selectedMenuItemIdState??void 0,p=this.hasMenu(),f=Bi();return w(Ae,{key:"4df994cd92995f0a1053593ec83e2b97f45fe52d",id:e,class:f},w(Nn,{key:"458143794740850d76cbf686bc82efb40afc4a8f",id:e,appearance:t,selectionAppearance:n,leadingLabel:s,leadingSupportingText:i,trailingLabel:o,trailingSupportingText:a,selected:l,disabled:r,leadingIcon:w("slot",{name:"sidebarItemLeadingIcon"}),leadingAccessory:w("slot",{name:"sidebarItemLeadingAccessory"}),trailingAccessory:w("slot",{name:"sidebarItemTrailingAccessory"}),trailingIcon:p?w(J,{name:"chevron-right",size:"md",appearance:"regular",alt:""}):void 0,onPressSidebarMenuItem:b=>this.onSidebarMenuItemPress({event:b})}),p?w("div",{class:"gids-sidebar-item__menu-container"},w("gids-sidebar-menu",{htmlFor:e,menuData:h,id:c,placement:u,constrainPlacements:d,sidebarMenuItemAppearance:m,sidebarMenuItemSelectionAppearance:g,selectedSectionId:y,selectedItemId:v,onSidebarMenuChange:b=>this.onChangeSidebarMenu({event:b})})):void 0)}get hostElement(){return this}static get watchers(){return{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],leadingLabel:[{leadingLabelChanged:0}],leadingSupportingText:[{leadingSupportingTextChanged:0}],trailingLabel:[{trailingLabelChanged:0}],trailingSupportingText:[{trailingSupportingTextChanged:0}],selected:[{selectedChanged:0}],disabled:[{disabledChanged:0}],menuId:[{menuIdChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],menuData:[{menuDataChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}]}}static get style(){return".gids-sidebar-item{display:flex;flex-direction:column;width:100%}.gids-sidebar-item__menu-container{display:flex;flex-direction:column;width:100%}"}},[260,"gids-sidebar-item",{id:[1],appearance:[1],selectionAppearance:[1,"selection-appearance"],leadingLabel:[1,"leading-label"],leadingSupportingText:[1,"leading-supporting-text"],trailingLabel:[1,"trailing-label"],trailingSupportingText:[1,"trailing-supporting-text"],selected:[4],disabled:[4],menuId:[1,"menu-id"],menuPlacement:[1,"menu-placement"],menuConstrainPlacements:[16],menuData:[16],sidebarMenuItemAppearance:[1,"sidebar-menu-item-appearance"],sidebarMenuItemSelectionAppearance:[1,"sidebar-menu-item-selection-appearance"],selectedMenuItemSectionId:[1,"selected-menu-item-section-id"],selectedMenuItemId:[1,"selected-menu-item-id"],onPressSidebarMenuItem:[16],onPressSidebarItem:[16],selectedMenuItemSectionIdState:[32],selectedMenuItemIdState:[32],selectedState:[32]},void 0,{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],selectionAppearance:[{selectionAppearanceChanged:0}],leadingLabel:[{leadingLabelChanged:0}],leadingSupportingText:[{leadingSupportingTextChanged:0}],trailingLabel:[{trailingLabelChanged:0}],trailingSupportingText:[{trailingSupportingTextChanged:0}],selected:[{selectedChanged:0}],disabled:[{disabledChanged:0}],menuId:[{menuIdChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],menuData:[{menuDataChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}]}]);function Dn(){typeof customElements<"u"&&["gids-sidebar-item","gids-flyout-panel","gids-sidebar-menu"].forEach((e=>{switch(e){case"gids-sidebar-item":customElements.get(e)||customElements.define(e,Ui);break;case"gids-flyout-panel":customElements.get(e)||Ve();break;case"gids-sidebar-menu":customElements.get(e)||xt()}}))}Dn();const{getGidsSidebarClassNames:Yi}=ks,$n=De(class extends ye{constructor(e){super(),e!==!1&&this.__registerHost(),this.id="sidebar",this.appearance="default",this.sidebarItemAppearance="subtle",this.sidebarItemSelectionAppearance="default",this.sidebarMenuItemAppearance="subtle",this.sidebarMenuItemSelectionAppearance="default",this.height="intrinsic",this.sectionDividers=!0,this.itemDividers=!1,this.headerDivider=!0,this.menuPlacement="right-end",this.menuConstrainPlacements=["right-end","left-end","left","right","right-start","left-start"],this.listData=[],this.selectedMenuItemSectionIdState=void 0,this.selectedMenuItemIdState=void 0,this.selectedSectionIdState=void 0,this.selectedItemIdState=void 0,this.hasHeaderContent=!1,this.onSidebarItemPress=({event:t,sectionId:n,sectionIndex:s,itemIndex:i})=>{this.selectedSectionIdState=n,this.selectedItemIdState=t?.sidebarItemId??void 0,this.selectedMenuItemSectionIdState=t?.sidebarMenuItemSectionId??void 0,this.selectedMenuItemIdState=t?.sidebarMenuItemId??void 0,this.onSidebarChange&&this.onSidebarChange({...t,originalEvent:t?.originalEvent,sidebarSectionId:n,sidebarSectionIndex:s,sidebarItemIndex:i})},this.hasMenu=t=>{const n=t?.menuData??[];if(n.length<=0)return!1;const s=n[0]?.menuItems??[];return s.length<=0?!1:!!s[0]?.id},this.sidebarMenuItemSelected=({listItem:t,listItemSectionId:n})=>{if(n===this.selectedSectionIdState&&t.id===this.selectedItemIdState){const s=(t?.menuData??[]).find((i=>i?.sectionId===this?.selectedMenuItemSectionIdState));if(s){const i=s?.menuItems??[];return!!(i.length>0&&i.find((o=>o.id===this?.selectedMenuItemIdState)))}return!1}return!1},this.sidebarItemSelected=({listItem:t,listItemSectionId:n})=>this.hasMenu(t)?this.sidebarMenuItemSelected({listItem:t,listItemSectionId:n}):n===this.selectedSectionIdState&&t.id===this.selectedItemIdState,this.renderAccessory=({accessoryType:t,accessory:n,slotName:s})=>{switch(t){case"badge":return w(nn,{...n?.badgeProps,slot:s});case"display-tag":return w(sn,{...n?.displayTagProps,label:n?.displayTagProps?.label??"",color:n?.displayTagProps?.color??"accent-1",slot:s,icon:n?.displayTagProps?.iconName?w(J,{name:n.displayTagProps.iconName,appearance:n?.displayTagProps?.iconAppearance??"regular",size:n?.displayTagProps?.iconSize??"md",alt:n?.displayTagProps?.iconAlt}):void 0});case"status-tag":return w(_n,{...n?.statusTagProps,slot:s});case"checkbox":return w(Tn,{checked:n?.checkboxProps?.checked,disabled:n?.checkboxProps?.disabled,indeterminate:n?.checkboxProps?.indeterminate,slot:s},n?.checkboxProps?.label);case"radio":return w(On,{checked:n?.radioProps?.checked,disabled:n?.radioProps?.disabled,slot:s},n?.radioProps?.label);default:return}},this.renderIcon=t=>t?.name?w(J,{name:t.name,appearance:t?.appearance??"regular",size:t?.size??"md",alt:t?.alt,slot:"sidebarItemLeadingIcon"}):void 0}idChanged(e){this.id=e}appearanceChanged(e){this.appearance=e}sidebarItemAppearanceChanged(e){this.sidebarItemAppearance=e}sidebarItemSelectionAppearanceChanged(e){this.sidebarItemSelectionAppearance=e}sidebarMenuItemAppearanceChanged(e){this.sidebarMenuItemAppearance=e}sidebarMenuItemSelectionAppearanceChanged(e){this.sidebarMenuItemSelectionAppearance=e}selectedSectionIdChanged(e){this.selectedSectionId=e,this.selectedSectionIdState=e}selectedItemIdChanged(e){this.selectedItemId=e,this.selectedItemIdState=e}selectedMenuItemSectionIdChanged(e){this.selectedMenuItemSectionId=e,this.selectedMenuItemSectionIdState=e}selectedMenuItemIdChanged(e){this.selectedMenuItemId=e,this.selectedMenuItemIdState=e}heightChanged(e){this.height=e}sectionDividersChanged(e){this.sectionDividers=e}itemDividersChanged(e){this.itemDividers=e}menuPlacementChanged(e){this.menuPlacement=e}menuConstrainPlacementsChanged(e){this.menuConstrainPlacements=e}listDataChanged(e){this.listData=e}connectedCallback(){this.selectedMenuItemSectionIdState=this.selectedMenuItemSectionId,this.selectedMenuItemIdState=this.selectedMenuItemId,this.selectedSectionIdState=this.selectedSectionId,this.selectedItemIdState=this.selectedItemId,this.hasHeaderContent=Array.from(this.hostElement.childNodes).some((e=>e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&(e.textContent?.trim().length??0)>0))}render(){const e=this.id,t=this?.appearance??"default",n=this?.sidebarItemAppearance??"subtle",s=this?.sidebarItemSelectionAppearance??"default",i=this?.sidebarMenuItemAppearance??"subtle",o=this?.sidebarMenuItemSelectionAppearance??"default",a=this?.height??"intrinsic",r=this?.menuPlacement??"right-end",l=this?.menuConstrainPlacements&&this.menuConstrainPlacements.length>0?this.menuConstrainPlacements:["right-end","left-end","left","right","right-start","left-start"],c=this?.listData??[],u=this?.sectionDividers??!0,d=this?.itemDividers??!1,h=this?.headerDivider??!0,m=this?.selectedMenuItemSectionIdState??void 0,g=this?.selectedMenuItemIdState??void 0,y=this.hasHeaderContent,v=Yi({appearance:t,height:a});return w(Ae,{key:"0b48c64fd20c4197854d539e83fead2de42b2817",class:v,id:e,"data-appearance":t},y?w("div",{class:"gids-sidebar__header-container"},w("slot",null),y&&h?w(Ct,null):void 0):void 0,c.map(((p,f)=>{const b=p?.lisItems??[],x=p?.listSectionLabel,S=p?.listSectionId;return w("div",{key:`${f+1}-${S}`,class:"gids-sidebar__list-section-container"},x?w("h4",null,x):void 0,b.map(((I,C)=>{const k=`${C+1}-${f+1}-${I.id}`,{leadingAccessoryType:M,leadingAccessory:P,trailingAccessoryType:G,trailingAccessory:$,leadingIconProps:V,..._}=I;return w("div",{class:"gids-sidebar__item-container"},w("gids-sidebar-item",{..._,key:k,id:I.id,appearance:n,selectionAppearance:s,sidebarMenuItemAppearance:i,sidebarMenuItemSelectionAppearance:o,menuPlacement:r,menuConstrainPlacements:l,menuData:I?.menuData??[],menuId:I?.menuId,leadingLabel:I?.leadingLabel,leadingSupportingText:I?.leadingSupportingText,trailingLabel:I?.trailingLabel,trailingSupportingText:I?.trailingSupportingText,disabled:I?.disabled,selectedMenuItemSectionId:m,selectedMenuItemId:g,selected:this.sidebarItemSelected({listItem:I,listItemSectionId:S}),onPressSidebarItem:K=>this.onSidebarItemPress({event:K,sectionId:S,sectionIndex:f,itemIndex:C})},this.renderAccessory({accessoryType:M,accessory:P,slotName:"sidebarItemLeadingAccessory"}),this.renderIcon(V),this.renderAccessory({accessoryType:G,accessory:$,slotName:"sidebarItemTrailingAccessory"})),d&&C<b.length-1?w(Ct,null):void 0)})),u&&f<c.length-1?w("div",{class:"gids-sidebar__section-divider-container"},w(Ct,null)):void 0)})))}get hostElement(){return this}static get watchers(){return{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],sidebarItemAppearance:[{sidebarItemAppearanceChanged:0}],sidebarItemSelectionAppearance:[{sidebarItemSelectionAppearanceChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}],height:[{heightChanged:0}],sectionDividers:[{sectionDividersChanged:0}],itemDividers:[{itemDividersChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],listData:[{listDataChanged:0}]}}static get style(){return".gids-sidebar{display:flex;flex-direction:column;gap:var(--gids-gap-300);padding:var(--gids-padding-vertical-edge-to-element-250) var(--gids-padding-horizontal-edge-to-element-300);background-color:var(--gids-color-background-canvas);border-radius:var(--gids-border-radius-lg);border:var(--gids-border-width-thin) solid var(--gids-color-border-default)}.gids-sidebar__header-container{display:flex;flex-direction:column;width:100%;gap:var(--gids-gap-400)}.gids-sidebar__list-section-container{display:flex;flex-direction:column;gap:var(--gids-gap-150)}.gids-sidebar__list-section-container h4{margin:0;color:var(--gids-color-text-subtlest)}.gids-sidebar__item-container{display:flex;flex-direction:column;width:100%;gap:var(--gids-gap-200)}.gids-sidebar__section-divider-container{display:flex;flex-direction:column;width:100%;padding:var(--gids-padding-vertical-edge-to-element-250) 0}.gids-sidebar--appearance-subtle{background-color:transparent}.gids-sidebar--appearance-primary{background-color:var(--gids-color-background-brand-subtlest-default)}.gids-sidebar--height-full{height:100vh !important;overflow-x:hidden;overflow-y:auto}"}},[260,"gids-sidebar",{id:[1],appearance:[1],sidebarItemAppearance:[1,"sidebar-item-appearance"],sidebarItemSelectionAppearance:[1,"sidebar-item-selection-appearance"],sidebarMenuItemAppearance:[1,"sidebar-menu-item-appearance"],sidebarMenuItemSelectionAppearance:[1,"sidebar-menu-item-selection-appearance"],selectedSectionId:[1,"selected-section-id"],selectedItemId:[1,"selected-item-id"],selectedMenuItemId:[1,"selected-menu-item-id"],selectedMenuItemSectionId:[1,"selected-menu-item-section-id"],height:[1],sectionDividers:[4,"section-dividers"],itemDividers:[4,"item-dividers"],headerDivider:[4,"header-divider"],menuPlacement:[1,"menu-placement"],menuConstrainPlacements:[16],listData:[16],onSidebarChange:[16],selectedMenuItemSectionIdState:[32],selectedMenuItemIdState:[32],selectedSectionIdState:[32],selectedItemIdState:[32],hasHeaderContent:[32]},void 0,{id:[{idChanged:0}],appearance:[{appearanceChanged:0}],sidebarItemAppearance:[{sidebarItemAppearanceChanged:0}],sidebarItemSelectionAppearance:[{sidebarItemSelectionAppearanceChanged:0}],sidebarMenuItemAppearance:[{sidebarMenuItemAppearanceChanged:0}],sidebarMenuItemSelectionAppearance:[{sidebarMenuItemSelectionAppearanceChanged:0}],selectedSectionId:[{selectedSectionIdChanged:0}],selectedItemId:[{selectedItemIdChanged:0}],selectedMenuItemSectionId:[{selectedMenuItemSectionIdChanged:0}],selectedMenuItemId:[{selectedMenuItemIdChanged:0}],height:[{heightChanged:0}],sectionDividers:[{sectionDividersChanged:0}],itemDividers:[{itemDividersChanged:0}],menuPlacement:[{menuPlacementChanged:0}],menuConstrainPlacements:[{menuConstrainPlacementsChanged:0}],listData:[{listDataChanged:0}]}]);function Rn(){typeof customElements<"u"&&["gids-sidebar","gids-flyout-panel","gids-sidebar-item","gids-sidebar-menu"].forEach((e=>{switch(e){case"gids-sidebar":customElements.get(e)||customElements.define(e,$n);break;case"gids-flyout-panel":customElements.get(e)||Ve();break;case"gids-sidebar-item":customElements.get(e)||Dn();break;case"gids-sidebar-menu":customElements.get(e)||xt()}}))}Rn();const Ki=$n,Xi=Rn;se.GidsSidebar=Ki,se.defineCustomElement=Xi,Object.defineProperty(se,Symbol.toStringTag,{value:"Module"})}));
|