@govtechsg/sgds-web-component 3.6.0 → 3.6.2
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/base/dropdown-element.d.ts +1 -1
- package/base/dropdown-element.js +3 -3
- package/base/dropdown-element.js.map +1 -1
- package/components/Breadcrumb/index.umd.min.js +7 -7
- package/components/Breadcrumb/index.umd.min.js.map +1 -1
- package/components/Checkbox/checkbox.js +1 -1
- package/components/Checkbox/index.umd.min.js +6 -6
- package/components/Checkbox/index.umd.min.js.map +1 -1
- package/components/Checkbox/sgds-checkbox.js +1 -1
- package/components/Checkbox/sgds-checkbox.js.map +1 -1
- package/components/ComboBox/index.umd.min.js +274 -260
- package/components/ComboBox/index.umd.min.js.map +1 -1
- package/components/ComboBox/sgds-combo-box-option.d.ts +0 -3
- package/components/ComboBox/sgds-combo-box-option.js +2 -20
- package/components/ComboBox/sgds-combo-box-option.js.map +1 -1
- package/components/ComboBox/sgds-combo-box.d.ts +4 -0
- package/components/ComboBox/sgds-combo-box.js +79 -24
- package/components/ComboBox/sgds-combo-box.js.map +1 -1
- package/components/Datepicker/index.umd.min.js +2 -2
- package/components/Datepicker/index.umd.min.js.map +1 -1
- package/components/Dropdown/index.umd.min.js +1 -1
- package/components/Dropdown/index.umd.min.js.map +1 -1
- package/components/Footer/index.umd.min.js +1 -1
- package/components/Footer/index.umd.min.js.map +1 -1
- package/components/Input/index.umd.min.js +1 -1
- package/components/Input/index.umd.min.js.map +1 -1
- package/components/Link/index.umd.min.js +9 -9
- package/components/Link/index.umd.min.js.map +1 -1
- package/components/Link/link.js +1 -1
- package/components/Mainnav/index.umd.min.js +1 -1
- package/components/Mainnav/index.umd.min.js.map +1 -1
- package/components/OverflowMenu/index.umd.min.js +1 -1
- package/components/OverflowMenu/index.umd.min.js.map +1 -1
- package/components/QuantityToggle/index.umd.min.js +1 -1
- package/components/QuantityToggle/index.umd.min.js.map +1 -1
- package/components/Radio/index.umd.min.js +6 -6
- package/components/Radio/index.umd.min.js.map +1 -1
- package/components/Radio/radio.js +1 -1
- package/components/Select/index.umd.min.js +1 -1
- package/components/Select/index.umd.min.js.map +1 -1
- package/components/Switch/index.umd.min.js +1 -1
- package/components/Switch/index.umd.min.js.map +1 -1
- package/components/Switch/switch.js +1 -1
- package/components/SystemBanner/index.umd.min.js +5 -1
- package/components/SystemBanner/index.umd.min.js.map +1 -1
- package/components/SystemBanner/sgds-system-banner.js +5 -1
- package/components/SystemBanner/sgds-system-banner.js.map +1 -1
- package/components/Textarea/index.umd.min.js +1 -1
- package/components/Textarea/index.umd.min.js.map +1 -1
- package/components/index.umd.min.js +33 -14
- package/components/index.umd.min.js.map +1 -1
- package/index.umd.min.js +33 -14
- package/index.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/react/base/dropdown-element.cjs.js +3 -3
- package/react/base/dropdown-element.cjs.js.map +1 -1
- package/react/base/dropdown-element.js +3 -3
- package/react/base/dropdown-element.js.map +1 -1
- package/react/components/Checkbox/checkbox.cjs.js +1 -1
- package/react/components/Checkbox/checkbox.js +1 -1
- package/react/components/Checkbox/sgds-checkbox.cjs.js +1 -1
- package/react/components/Checkbox/sgds-checkbox.cjs.js.map +1 -1
- package/react/components/Checkbox/sgds-checkbox.js +1 -1
- package/react/components/Checkbox/sgds-checkbox.js.map +1 -1
- package/react/components/ComboBox/sgds-combo-box-option.cjs.js +2 -20
- package/react/components/ComboBox/sgds-combo-box-option.cjs.js.map +1 -1
- package/react/components/ComboBox/sgds-combo-box-option.js +2 -20
- package/react/components/ComboBox/sgds-combo-box-option.js.map +1 -1
- package/react/components/ComboBox/sgds-combo-box.cjs.js +79 -24
- package/react/components/ComboBox/sgds-combo-box.cjs.js.map +1 -1
- package/react/components/ComboBox/sgds-combo-box.js +79 -24
- package/react/components/ComboBox/sgds-combo-box.js.map +1 -1
- package/react/components/Link/link.cjs.js +1 -1
- package/react/components/Link/link.js +1 -1
- package/react/components/Radio/radio.cjs.js +1 -1
- package/react/components/Radio/radio.js +1 -1
- package/react/components/Switch/switch.cjs.js +1 -1
- package/react/components/Switch/switch.js +1 -1
- package/react/components/SystemBanner/sgds-system-banner.cjs.js +5 -1
- package/react/components/SystemBanner/sgds-system-banner.cjs.js.map +1 -1
- package/react/components/SystemBanner/sgds-system-banner.js +5 -1
- package/react/components/SystemBanner/sgds-system-banner.js.map +1 -1
- package/react/styles/form-check.cjs.js +1 -1
- package/react/styles/form-check.js +1 -1
- package/react/styles/form-text-control.cjs.js +1 -1
- package/react/styles/form-text-control.js +1 -1
- package/styles/form-check.js +1 -1
- package/styles/form-text-control.js +1 -1
|
@@ -78,7 +78,7 @@ function Qe(e){return(t,i)=>{const{slot:l,selector:o}=e??{},n="slot"+(l?`[name=$
|
|
|
78
78
|
* @license
|
|
79
79
|
* Copyright 2020 Google LLC
|
|
80
80
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
81
|
-
*/const dt=()=>new vt;class vt{}const pt=new WeakMap;const ut=it(class extends ht{render(e){return te}update(e,[t]){const i=t!==this._ref;return i&&void 0!==this._ref&&this._updateRefValue(void 0),(i||this._lastElementForRef!==this._element)&&(this._ref=t,this._context=e.options?.host,this._updateRefValue(this._element=e.element)),te}_updateRefValue(e){if(this.isConnected||(e=void 0),"function"==typeof this._ref){const t=this._context??globalThis;let i=pt.get(t);void 0===i&&(i=new WeakMap,pt.set(t,i)),void 0!==i.get(this._ref)&&this._ref.call(this._context,void 0),i.set(this._ref,e),void 0!==e&&this._ref.call(this._context,e)}else this._ref.value=e}get _lastElementForRef(){return"function"==typeof this._ref?pt.get(this._context??globalThis)?.get(this._ref):this._ref?.value}disconnected(){this._lastElementForRef===this._element&&this._updateRefValue(void 0)}reconnected(){this._updateRefValue(this._element)}}),gt=Math.min,wt=Math.max,ft=Math.round,mt=Math.floor,xt=e=>({x:e,y:e}),yt={left:"right",right:"left",bottom:"top",top:"bottom"},Ct={start:"end",end:"start"};function Zt(e,t,i){return wt(e,gt(t,i))}function bt(e,t){return"function"==typeof e?e(t):e}function _t(e){return e.split("-")[0]}function Mt(e){return e.split("-")[1]}function Ht(e){return"x"===e?"y":"x"}function Vt(e){return"y"===e?"height":"width"}const St=new Set(["top","bottom"]);function $t(e){return St.has(_t(e))?"y":"x"}function Bt(e){return Ht($t(e))}function Pt(e,t,i){void 0===i&&(i=!1);const l=Mt(e),o=Bt(e),n=Vt(o);let a="x"===o?l===(i?"end":"start")?"right":"left":"start"===l?"bottom":"top";return t.reference[n]>t.floating[n]&&(a=Rt(a)),[a,Rt(a)]}function At(e){return e.replace(/start|end/g,(e=>Ct[e]))}const Lt=["left","right"],kt=["right","left"],Et=["top","bottom"],Tt=["bottom","top"];function Ot(e,t,i,l){const o=Mt(e);let n=function(e,t,i){switch(e){case"top":case"bottom":return i?t?kt:Lt:t?Lt:kt;case"left":case"right":return t?Et:Tt;default:return[]}}(_t(e),"start"===i,l);return o&&(n=n.map((e=>e+"-"+o)),t&&(n=n.concat(n.map(At)))),n}function Rt(e){return e.replace(/left|right|bottom|top/g,(e=>yt[e]))}function Ut(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Nt(e){const{x:t,y:i,width:l,height:o}=e;return{width:l,height:o,top:i,left:t,right:t+l,bottom:i+o,x:t,y:i}}function zt(e,t,i){let{reference:l,floating:o}=e;const n=$t(t),a=Bt(t),r=Vt(a),s=_t(t),c="y"===n,h=l.x+l.width/2-o.width/2,d=l.y+l.height/2-o.height/2,v=l[r]/2-o[r]/2;let p;switch(s){case"top":p={x:h,y:l.y-o.height};break;case"bottom":p={x:h,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:d};break;case"left":p={x:l.x-o.width,y:d};break;default:p={x:l.x,y:l.y}}switch(Mt(t)){case"start":p[a]-=v*(i&&c?-1:1);break;case"end":p[a]+=v*(i&&c?-1:1)}return p}async function Dt(e,t){var i;void 0===t&&(t={});const{x:l,y:o,platform:n,rects:a,elements:r,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:v=!1,padding:p=0}=bt(t,e),u=Ut(p),g=r[v?"floating"===d?"reference":"floating":d],w=Nt(await n.getClippingRect({element:null==(i=await(null==n.isElement?void 0:n.isElement(g)))||i?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(r.floating)),boundary:c,rootBoundary:h,strategy:s})),f="floating"===d?{x:l,y:o,width:a.floating.width,height:a.floating.height}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(r.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},y=Nt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:f,offsetParent:m,strategy:s}):f);return{top:(w.top-y.top+u.top)/x.y,bottom:(y.bottom-w.bottom+u.bottom)/x.y,left:(w.left-y.left+u.left)/x.x,right:(y.right-w.right+u.right)/x.x}}const It=new Set(["left","top"]);function Wt(){return"undefined"!=typeof window}function Ft(e){return Jt(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function jt(e){var t;return null==(t=(Jt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Jt(e){return!!Wt()&&(e instanceof Node||e instanceof qt(e).Node)}function Kt(e){return!!Wt()&&(e instanceof Element||e instanceof qt(e).Element)}function Yt(e){return!!Wt()&&(e instanceof HTMLElement||e instanceof qt(e).HTMLElement)}function Xt(e){return!(!Wt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot)}const Gt=new Set(["inline","contents"]);function Qt(e){const{overflow:t,overflowX:i,overflowY:l,display:o}=di(e);return/auto|scroll|overlay|hidden|clip/.test(t+l+i)&&!Gt.has(o)}const ei=new Set(["table","td","th"]);function ti(e){return ei.has(Ft(e))}const ii=[":popover-open",":modal"];function li(e){return ii.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const oi=["transform","translate","scale","rotate","perspective"],ni=["transform","translate","scale","rotate","perspective","filter"],ai=["paint","layout","strict","content"];function ri(e){const t=si(),i=Kt(e)?di(e):e;return oi.some((e=>!!i[e]&&"none"!==i[e]))||!!i.containerType&&"normal"!==i.containerType||!t&&!!i.backdropFilter&&"none"!==i.backdropFilter||!t&&!!i.filter&&"none"!==i.filter||ni.some((e=>(i.willChange||"").includes(e)))||ai.some((e=>(i.contain||"").includes(e)))}function si(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ci=new Set(["html","body","#document"]);function hi(e){return ci.has(Ft(e))}function di(e){return qt(e).getComputedStyle(e)}function vi(e){return Kt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pi(e){if("html"===Ft(e))return e;const t=e.assignedSlot||e.parentNode||Xt(e)&&e.host||jt(e);return Xt(t)?t.host:t}function ui(e){const t=pi(e);return hi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yt(t)&&Qt(t)?t:ui(t)}function gi(e,t,i){var l;void 0===t&&(t=[]),void 0===i&&(i=!0);const o=ui(e),n=o===(null==(l=e.ownerDocument)?void 0:l.body),a=qt(o);if(n){const e=wi(a);return t.concat(a,a.visualViewport||[],Qt(o)?o:[],e&&i?gi(e):[])}return t.concat(o,gi(o,[],i))}function wi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fi(e){const t=di(e);let i=parseFloat(t.width)||0,l=parseFloat(t.height)||0;const o=Yt(e),n=o?e.offsetWidth:i,a=o?e.offsetHeight:l,r=ft(i)!==n||ft(l)!==a;return r&&(i=n,l=a),{width:i,height:l,$:r}}function mi(e){return Kt(e)?e:e.contextElement}function xi(e){const t=mi(e);if(!Yt(t))return xt(1);const i=t.getBoundingClientRect(),{width:l,height:o,$:n}=fi(t);let a=(n?ft(i.width):i.width)/l,r=(n?ft(i.height):i.height)/o;return a&&Number.isFinite(a)||(a=1),r&&Number.isFinite(r)||(r=1),{x:a,y:r}}const yi=xt(0);function Ci(e){const t=qt(e);return si()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:yi}function Zi(e,t,i,l){void 0===t&&(t=!1),void 0===i&&(i=!1);const o=e.getBoundingClientRect(),n=mi(e);let a=xt(1);t&&(l?Kt(l)&&(a=xi(l)):a=xi(e));const r=function(e,t,i){return void 0===t&&(t=!1),!(!i||t&&i!==qt(e))&&t}(n,i,l)?Ci(n):xt(0);let s=(o.left+r.x)/a.x,c=(o.top+r.y)/a.y,h=o.width/a.x,d=o.height/a.y;if(n){const e=qt(n),t=l&&Kt(l)?qt(l):l;let i=e,o=wi(i);for(;o&&l&&t!==i;){const e=xi(o),t=o.getBoundingClientRect(),l=di(o),n=t.left+(o.clientLeft+parseFloat(l.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(l.paddingTop))*e.y;s*=e.x,c*=e.y,h*=e.x,d*=e.y,s+=n,c+=a,i=qt(o),o=wi(i)}}return Nt({width:h,height:d,x:s,y:c})}function bi(e,t){const i=vi(e).scrollLeft;return t?t.left+i:Zi(jt(e)).left+i}function _i(e,t){const i=e.getBoundingClientRect();return{x:i.left+t.scrollLeft-bi(e,i),y:i.top+t.scrollTop}}const Mi=25;const Hi=new Set(["absolute","fixed"]);function Vi(e,t,i){let l;if("viewport"===t)l=function(e,t){const i=qt(e),l=jt(e),o=i.visualViewport;let n=l.clientWidth,a=l.clientHeight,r=0,s=0;if(o){n=o.width,a=o.height;const e=si();(!e||e&&"fixed"===t)&&(r=o.offsetLeft,s=o.offsetTop)}const c=bi(l);if(c<=0){const e=l.ownerDocument,t=e.body,i=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(i.marginLeft)+parseFloat(i.marginRight)||0,a=Math.abs(l.clientWidth-t.clientWidth-o);a<=Mi&&(n-=a)}else c<=Mi&&(n+=c);return{width:n,height:a,x:r,y:s}}(e,i);else if("document"===t)l=function(e){const t=jt(e),i=vi(e),l=e.ownerDocument.body,o=wt(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),n=wt(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight);let a=-i.scrollLeft+bi(e);const r=-i.scrollTop;return"rtl"===di(l).direction&&(a+=wt(t.clientWidth,l.clientWidth)-o),{width:o,height:n,x:a,y:r}}(jt(e));else if(Kt(t))l=function(e,t){const i=Zi(e,!0,"fixed"===t),l=i.top+e.clientTop,o=i.left+e.clientLeft,n=Yt(e)?xi(e):xt(1);return{width:e.clientWidth*n.x,height:e.clientHeight*n.y,x:o*n.x,y:l*n.y}}(t,i);else{const i=Ci(e);l={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Nt(l)}function Si(e,t){const i=pi(e);return!(i===t||!Kt(i)||hi(i))&&("fixed"===di(i).position||Si(i,t))}function $i(e,t,i){const l=Yt(t),o=jt(t),n="fixed"===i,a=Zi(e,!0,n,t);let r={scrollLeft:0,scrollTop:0};const s=xt(0);function c(){s.x=bi(o)}if(l||!l&&!n)if(("body"!==Ft(t)||Qt(o))&&(r=vi(t)),l){const e=Zi(t,!0,n,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&c();n&&!l&&o&&c();const h=!o||l||n?xt(0):_i(o,r);return{x:a.left+r.scrollLeft-s.x-h.x,y:a.top+r.scrollTop-s.y-h.y,width:a.width,height:a.height}}function Bi(e){return"static"===di(e).position}function Pi(e,t){if(!Yt(e)||"fixed"===di(e).position)return null;if(t)return t(e);let i=e.offsetParent;return jt(e)===i&&(i=i.ownerDocument.body),i}function Ai(e,t){const i=qt(e);if(li(e))return i;if(!Yt(e)){let t=pi(e);for(;t&&!hi(t);){if(Kt(t)&&!Bi(t))return t;t=pi(t)}return i}let l=Pi(e,t);for(;l&&ti(l)&&Bi(l);)l=Pi(l,t);return l&&hi(l)&&Bi(l)&&!ri(l)?i:l||function(e){let t=pi(e);for(;Yt(t)&&!hi(t);){if(ri(t))return t;if(li(t))return null;t=pi(t)}return null}(e)||i}const Li={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:i,offsetParent:l,strategy:o}=e;const n="fixed"===o,a=jt(l),r=!!t&&li(t.floating);if(l===a||r&&n)return i;let s={scrollLeft:0,scrollTop:0},c=xt(1);const h=xt(0),d=Yt(l);if((d||!d&&!n)&&(("body"!==Ft(l)||Qt(a))&&(s=vi(l)),Yt(l))){const e=Zi(l);c=xi(l),h.x=e.x+l.clientLeft,h.y=e.y+l.clientTop}const v=!a||d||n?xt(0):_i(a,s);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-s.scrollLeft*c.x+h.x+v.x,y:i.y*c.y-s.scrollTop*c.y+h.y+v.y}},getDocumentElement:jt,getClippingRect:function(e){let{element:t,boundary:i,rootBoundary:l,strategy:o}=e;const n=[..."clippingAncestors"===i?li(t)?[]:function(e,t){const i=t.get(e);if(i)return i;let l=gi(e,[],!1).filter((e=>Kt(e)&&"body"!==Ft(e))),o=null;const n="fixed"===di(e).position;let a=n?pi(e):e;for(;Kt(a)&&!hi(a);){const t=di(a),i=ri(a);i||"fixed"!==t.position||(o=null),(n?!i&&!o:!i&&"static"===t.position&&o&&Hi.has(o.position)||Qt(a)&&!i&&Si(e,a))?l=l.filter((e=>e!==a)):o=t,a=pi(a)}return t.set(e,l),l}(t,this._c):[].concat(i),l],a=n[0],r=n.reduce(((e,i)=>{const l=Vi(t,i,o);return e.top=wt(l.top,e.top),e.right=gt(l.right,e.right),e.bottom=gt(l.bottom,e.bottom),e.left=wt(l.left,e.left),e}),Vi(t,a,o));return{width:r.right-r.left,height:r.bottom-r.top,x:r.left,y:r.top}},getOffsetParent:Ai,getElementRects:async function(e){const t=this.getOffsetParent||Ai,i=this.getDimensions,l=await i(e.floating);return{reference:$i(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:i}=fi(e);return{width:t,height:i}},getScale:xi,isElement:Kt,isRTL:function(e){return"rtl"===di(e).direction}};function ki(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ei(e,t,i,l){void 0===l&&(l={});const{ancestorScroll:o=!0,ancestorResize:n=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:r="function"==typeof IntersectionObserver,animationFrame:s=!1}=l,c=mi(e),h=o||n?[...c?gi(c):[],...gi(t)]:[];h.forEach((e=>{o&&e.addEventListener("scroll",i,{passive:!0}),n&&e.addEventListener("resize",i)}));const d=c&&r?function(e,t){let i,l=null;const o=jt(e);function n(){var e;clearTimeout(i),null==(e=l)||e.disconnect(),l=null}return function a(r,s){void 0===r&&(r=!1),void 0===s&&(s=1),n();const c=e.getBoundingClientRect(),{left:h,top:d,width:v,height:p}=c;if(r||t(),!v||!p)return;const u={rootMargin:-mt(d)+"px "+-mt(o.clientWidth-(h+v))+"px "+-mt(o.clientHeight-(d+p))+"px "+-mt(h)+"px",threshold:wt(0,gt(1,s))||1};let g=!0;function w(t){const l=t[0].intersectionRatio;if(l!==s){if(!g)return a();l?a(!1,l):i=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==l||ki(c,e.getBoundingClientRect())||a(),g=!1}try{l=new IntersectionObserver(w,{...u,root:o.ownerDocument})}catch(e){l=new IntersectionObserver(w,u)}l.observe(e)}(!0),n}(c,i):null;let v,p=-1,u=null;a&&(u=new ResizeObserver((e=>{let[l]=e;l&&l.target===c&&u&&(u.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=u)||e.observe(t)}))),i()})),c&&!s&&u.observe(c),u.observe(t));let g=s?Zi(e):null;return s&&function t(){const l=Zi(e);g&&!ki(g,l)&&i();g=l,v=requestAnimationFrame(t)}(),i(),()=>{var e;h.forEach((e=>{o&&e.removeEventListener("scroll",i),n&&e.removeEventListener("resize",i)})),null==d||d(),null==(e=u)||e.disconnect(),u=null,s&&cancelAnimationFrame(v)}}const Ti=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var i,l;const{x:o,y:n,placement:a,middlewareData:r}=t,s=await async function(e,t){const{placement:i,platform:l,elements:o}=e,n=await(null==l.isRTL?void 0:l.isRTL(o.floating)),a=_t(i),r=Mt(i),s="y"===$t(i),c=It.has(a)?-1:1,h=n&&s?-1:1,d=bt(t,e);let{mainAxis:v,crossAxis:p,alignmentAxis:u}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return r&&"number"==typeof u&&(p="end"===r?-1*u:u),s?{x:p*h,y:v*c}:{x:v*c,y:p*h}}(t,e);return a===(null==(i=r.offset)?void 0:i.placement)&&null!=(l=r.arrow)&&l.alignmentOffset?{}:{x:o+s.x,y:n+s.y,data:{...s,placement:a}}}}},Oi=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:l,placement:o}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:r={fn:e=>{let{x:t,y:i}=e;return{x:t,y:i}}},...s}=bt(e,t),c={x:i,y:l},h=await Dt(t,s),d=$t(_t(o)),v=Ht(d);let p=c[v],u=c[d];if(n){const e="y"===v?"bottom":"right";p=Zt(p+h["y"===v?"top":"left"],p,p-h[e])}if(a){const e="y"===d?"bottom":"right";u=Zt(u+h["y"===d?"top":"left"],u,u-h[e])}const g=r.fn({...t,[v]:p,[d]:u});return{...g,data:{x:g.x-i,y:g.y-l,enabled:{[v]:n,[d]:a}}}}}},Ri=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var i,l;const{placement:o,middlewareData:n,rects:a,initialPlacement:r,platform:s,elements:c}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:v,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:g=!0,...w}=bt(e,t);if(null!=(i=n.arrow)&&i.alignmentOffset)return{};const f=_t(o),m=$t(r),x=_t(r)===r,y=await(null==s.isRTL?void 0:s.isRTL(c.floating)),C=v||(x||!g?[Rt(r)]:function(e){const t=Rt(e);return[At(e),t,At(t)]}(r)),Z="none"!==u;!v&&Z&&C.push(...Ot(r,g,u,y));const b=[r,...C],_=await Dt(t,w),M=[];let H=(null==(l=n.flip)?void 0:l.overflows)||[];if(h&&M.push(_[f]),d){const e=Pt(o,a,y);M.push(_[e[0]],_[e[1]])}if(H=[...H,{placement:o,overflows:M}],!M.every((e=>e<=0))){var V,S;const e=((null==(V=n.flip)?void 0:V.index)||0)+1,t=b[e];if(t){if(!("alignment"===d&&m!==$t(t))||H.every((e=>$t(e.placement)!==m||e.overflows[0]>0)))return{data:{index:e,overflows:H},reset:{placement:t}}}let i=null==(S=H.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!i)switch(p){case"bestFit":{var $;const e=null==($=H.filter((e=>{if(Z){const t=$t(e.placement);return t===m||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:$[0];e&&(i=e);break}case"initialPlacement":i=r}if(o!==i)return{reset:{placement:i}}}return{}}}},Ui=(e,t,i)=>{const l=new Map,o={platform:Li,...i},n={...o.platform,_c:l};return(async(e,t,i)=>{const{placement:l="bottom",strategy:o="absolute",middleware:n=[],platform:a}=i,r=n.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:d}=zt(c,l,s),v=l,p={},u=0;for(let i=0;i<r.length;i++){const{name:n,fn:g}=r[i],{x:w,y:f,data:m,reset:x}=await g({x:h,y:d,initialPlacement:l,placement:v,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});h=null!=w?w:h,d=null!=f?f:d,p={...p,[n]:{...p[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(v=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:h,y:d}=zt(c,v,s))),i=-1)}return{x:h,y:d,placement:v,strategy:o,middlewareData:p}})(e,t,{...o,platform:n})};var Ni=Ze`:host{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--sgds-body-color-default);font-family:var(--sgds-font-family-brand);font-size:var(--sgds-font-size-2);font-weight:var(--sgds-font-weight-regular);line-height:var(--sgds-line-height-24);margin:0;*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:disabled{cursor:not-allowed}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}::slotted(a[target=_blank]):after,a[target=_blank]:after{background-color:currentColor;content:"/";display:inline-block;height:var(--sgds-icon-size-lg);margin-left:.25rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;vertical-align:bottom;width:var(--sgds-icon-size-lg)}::slotted(svg){vertical-align:middle}}`;class zi extends De{emit(e,t){const i=new CustomEvent(e,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(i),i}static define(e,t=this,i={}){if(customElements.get(e));else try{customElements.define(e,t,i)}catch(l){customElements.define(e,class extends t{},i)}}constructor(){super(),this.ssr=Boolean(this.shadowRoot),Object.entries(this.constructor.dependencies).forEach((([e,t])=>{this.constructor.define(e,t)}))}firstUpdated(e){var t;super.firstUpdated(e),this.ssr&&(null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("slot").forEach((e=>{e.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))})))}}zi.styles=[Ni],zi.dependencies={},e([Ke({type:Boolean,reflect:!0})],zi.prototype,"ssr",void 0);class Di extends zi{constructor(){super(...arguments),this.myDropdown=dt(),this.dropdownMenuId=function(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}("dropdown-menu","div"),this.noFlip=!1,this.menuAlignRight=!1,this.drop="down",this.floatingOpts={},this.menuIsOpen=!1,this.close="default",this.disabled=!1,this.readonly=!1,this.menuRef=dt(),this._handleKeyboardMenuEvent=e=>{if(!this.readonly)switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.menuIsOpen||this.showMenu();break;case"Escape":this.hideMenu()}},this._handleClickOutOfElement=e=>{this.menuIsOpen&&(e.composedPath().includes(this)||this.hideMenu())}}connectedCallback(){super.connectedCallback(),"inside"!==this.close&&document.addEventListener("click",this._handleClickOutOfElement),this.addEventListener("keydown",this._handleKeyboardMenuEvent)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleClickOutOfElement),this.removeEventListener("keydown",this._handleKeyboardMenuEvent),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0)}firstUpdated(e){super.firstUpdated(e),this.menuIsOpen&&this.updateFloatingPosition()}async showMenu(){this.disabled||this.menuIsOpen||(this.menuIsOpen=!0,this.emit("sgds-show"),await this.updateFloatingPosition(),this.emit("sgds-after-show"),this.myDropdown.value&&this.menuRef.value&&(this._cleanupAutoUpdate=Ei(this.myDropdown.value,this.menuRef.value,(()=>this.updateFloatingPosition()))))}async hideMenu(){this.menuIsOpen&&(this.emit("sgds-hide"),this.menuIsOpen=!1,setTimeout((()=>this.emit("sgds-after-hide")),0),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0))}toggleMenu(){this.menuIsOpen?this.hideMenu():this.showMenu()}mergeMiddleware(e,t){const i=e=>{var t;return(null==e?void 0:e.name)||(null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)},l=t.map(i),o=e.map((e=>{const o=i(e),n=l.indexOf(o);return-1!==n?t[n]:e})).concat(t.filter((t=>!e.some((e=>i(e)===i(t))))));return o}async updateFloatingPosition(){if(!this.myDropdown.value||!this.menuRef.value)return;let e="bottom-start";switch(this.drop){case"up":e=this.menuAlignRight?"top-end":"top-start";break;case"right":e="right-start";break;case"left":e="left-start";break;case"down":e=this.menuAlignRight?"bottom-end":"bottom-start";break;default:e="bottom-start"}const t=[Ti(8),this.noFlip?void 0:Ri(),Oi()].filter(Boolean);let i=t;Array.isArray(this.floatingOpts.middleware)&&this.floatingOpts.middleware.length>0&&(i=this.mergeMiddleware(t,this.floatingOpts.middleware.filter(Boolean)));const l=Object.assign(Object.assign({strategy:"fixed",placement:e},this.floatingOpts),{middleware:i}),{x:o,y:n,strategy:a,placement:r}=await Ui(this.myDropdown.value,this.menuRef.value,l);this.menuRef.value.setAttribute("data-placement",r),Object.assign(this.menuRef.value.style,{position:a,left:`${o}px`,top:`${n}px`})}}e([Ke({type:Boolean,state:!0})],Di.prototype,"noFlip",void 0),e([Ke({type:Boolean,reflect:!0,state:!0})],Di.prototype,"menuAlignRight",void 0),e([Ke({type:String,reflect:!0,state:!0})],Di.prototype,"drop",void 0),e([Ke({type:Object})],Di.prototype,"floatingOpts",void 0),e([Ke({type:Boolean,reflect:!0})],Di.prototype,"menuIsOpen",void 0),e([Ke({type:Boolean,reflect:!0})],Di.prototype,"disabled",void 0),e([Ke({type:Boolean,reflect:!0})],Di.prototype,"readonly",void 0);class Ii extends Di{constructor(){super(...arguments),this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1,this.hidden=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("sgds-hide",this._resetMenu)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sgds-hide",this._resetMenu)}firstUpdated(e){super.firstUpdated(e),this.addEventListener("keydown",this._handleKeyboardMenuItemsEvent)}handleSelectSlot(e){const t=this._getActiveMenuItems(),i=t.indexOf(e.target);this.nextDropdownItemNo=i+1,this.prevDropdownItemNo=i<=0?t.length-1:i-1;e.target.disabled||(this.emit("sgds-select"),"outside"!==this.close&&this.hideMenu())}_resetMenu(){this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1;this._getMenuItems().forEach((e=>{var t;const i=null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.querySelector(".dropdown-item");i&&i.removeAttribute("tabindex")}))}_handleKeyboardMenuItemsEvent(e){if(this.readonly)return;const t=this._getActiveMenuItems();if(0!==t.length)switch(e.key){case"ArrowDown":e.preventDefault(),this._setMenuItem(this.nextDropdownItemNo);break;case"ArrowUp":e.preventDefault(),this._setMenuItem(this.prevDropdownItemNo);break;case"Tab":if(!this.menuIsOpen)return;e.preventDefault(),e.shiftKey?this._setMenuItem(this.prevDropdownItemNo):this._setMenuItem(this.nextDropdownItemNo);break;case"Enter":t.includes(e.target)&&this.handleSelectSlot(e)}}_getMenuItems(){var e,t;if(this.shadowRoot.querySelector("slot#default")){return null===(e=this.shadowRoot.querySelector("slot#default"))||void 0===e?void 0:e.assignedElements({flatten:!0}).filter((e=>!e.classList.contains("empty-menu")&&!e.hasAttribute("hidden")))}if(null===(t=this.menu)||void 0===t?void 0:t.hasChildNodes()){return[...Array.from(this.menu.children)]}return[]}_getActiveMenuItems(){return this._getMenuItems().filter((e=>!e.disabled&&!e.hidden))}_setMenuItem(e){const t=this._getActiveMenuItems();if(0===t.length)return;const i=(e%t.length+t.length)%t.length,l=t[i];this.emit("i-sgds-option-focus",{detail:{option:l}}),this.nextDropdownItemNo=(i+1)%t.length,this.prevDropdownItemNo=(i-1+t.length)%t.length,t.forEach((e=>{const t=e.shadowRoot.querySelector(".dropdown-item");t.setAttribute("tabindex",e===l?"0":"-1"),e===l&&t.focus()}))}}var Wi,Fi;Ii.styles=Di.styles,e([(Wi="ul.dropdown-menu",(e,t,i)=>{const l=e=>{const i=e.renderRoot?.querySelector(Wi)??null;if(null===i&&Fi&&!e.hasUpdated){const e="object"==typeof t?t.name:t;Ge("",`@query'd field ${JSON.stringify(String(e))} with the 'cache' flag set for selector '${Wi}' has been accessed before the first update and returned null. This is expected if the renderRoot tree has not been provided beforehand (e.g. via Declarative Shadow DOM). Therefore the value hasn't been cached.`)}return i};if(Fi){const{get:o,set:n}="object"==typeof t?e:i??(()=>{const e=Symbol(`${String(t)} (@query() cache)`);return{get(){return this[e]},set(t){this[e]=t}}})();return Xe(e,t,{get(){let e=o.call(this);return void 0===e&&(e=l(this),(null!==e||this.hasUpdated)&&n.call(this,e)),e}})}return Xe(e,t,{get(){return l(this)}})})],Ii.prototype,"menu",void 0),e([Ye()],Ii.prototype,"nextDropdownItemNo",void 0),e([Ye()],Ii.prototype,"prevDropdownItemNo",void 0),e([Ke({type:Boolean,reflect:!0})],Ii.prototype,"hidden",void 0);var qi=Ze`:host([menuisopen]) .dropdown-menu{display:block}.dropdown-menu{background-clip:padding-box;background-color:var(--sgds-surface-default);border-radius:var(--sgds-border-radius-md);box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 4px 8px 0 hsla(0,0%,5%,.12);color:var(--sgds-color-default);display:none;list-style:none;margin:0;max-height:var(--sgds-dimension-480);min-width:var(--sgds-dimension-280);overflow-y:auto;padding:var(--sgds-padding-xs) 0;position:absolute;text-align:left;z-index:1050}.nav-tabs .dropdown-menu{border-top-left-radius:0;border-top-right-radius:0;margin-top:calc(var(--sgds-nav-tabs-border-width)*-1)}@media (min-width:512px){.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:768px){.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1024px){.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1280px){.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1440px){.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.sgds.navbar .dropdown-menu.megamenu{left:0;right:0;width:100%}.sgds.combobox>.dropdown-menu{min-width:100%}`,ji=Ze`.dropdown{display:flex;height:inherit;position:relative}`;class Ji extends Ii{constructor(){super(),this.noFlip=!1,this.menuAlignRight=!1,this.drop="down",this.menuRef=ut()}async _handleClick(){this.disabled||this.toggleMenu()}_handleCloseMenu(){const e=this._toggler[0];null==e||e.focus()}async connectedCallback(){super.connectedCallback(),this.addEventListener("sgds-hide",this._handleCloseMenu)}async disconnectedCallback(){this.removeEventListener("sgds-hide",this._handleCloseMenu)}async firstUpdated(e){super.firstUpdated(e),this.menuIsOpen&&await this.showMenu(),this._handleDisabled()}_handleDisabled(){const e=this._toggler[0];e&&(this.disabled?e.setAttribute("disabled","true"):e.hasAttribute("disabled")&&e.removeAttribute("disabled"))}render(){return G`
|
|
81
|
+
*/const dt=()=>new vt;class vt{}const pt=new WeakMap;const ut=it(class extends ht{render(e){return te}update(e,[t]){const i=t!==this._ref;return i&&void 0!==this._ref&&this._updateRefValue(void 0),(i||this._lastElementForRef!==this._element)&&(this._ref=t,this._context=e.options?.host,this._updateRefValue(this._element=e.element)),te}_updateRefValue(e){if(this.isConnected||(e=void 0),"function"==typeof this._ref){const t=this._context??globalThis;let i=pt.get(t);void 0===i&&(i=new WeakMap,pt.set(t,i)),void 0!==i.get(this._ref)&&this._ref.call(this._context,void 0),i.set(this._ref,e),void 0!==e&&this._ref.call(this._context,e)}else this._ref.value=e}get _lastElementForRef(){return"function"==typeof this._ref?pt.get(this._context??globalThis)?.get(this._ref):this._ref?.value}disconnected(){this._lastElementForRef===this._element&&this._updateRefValue(void 0)}reconnected(){this._updateRefValue(this._element)}}),gt=Math.min,wt=Math.max,ft=Math.round,mt=Math.floor,xt=e=>({x:e,y:e}),yt={left:"right",right:"left",bottom:"top",top:"bottom"},Ct={start:"end",end:"start"};function Zt(e,t,i){return wt(e,gt(t,i))}function bt(e,t){return"function"==typeof e?e(t):e}function _t(e){return e.split("-")[0]}function Mt(e){return e.split("-")[1]}function Ht(e){return"x"===e?"y":"x"}function Vt(e){return"y"===e?"height":"width"}const St=new Set(["top","bottom"]);function $t(e){return St.has(_t(e))?"y":"x"}function Bt(e){return Ht($t(e))}function Pt(e,t,i){void 0===i&&(i=!1);const l=Mt(e),o=Bt(e),n=Vt(o);let a="x"===o?l===(i?"end":"start")?"right":"left":"start"===l?"bottom":"top";return t.reference[n]>t.floating[n]&&(a=Rt(a)),[a,Rt(a)]}function At(e){return e.replace(/start|end/g,(e=>Ct[e]))}const Lt=["left","right"],kt=["right","left"],Et=["top","bottom"],Tt=["bottom","top"];function Ot(e,t,i,l){const o=Mt(e);let n=function(e,t,i){switch(e){case"top":case"bottom":return i?t?kt:Lt:t?Lt:kt;case"left":case"right":return t?Et:Tt;default:return[]}}(_t(e),"start"===i,l);return o&&(n=n.map((e=>e+"-"+o)),t&&(n=n.concat(n.map(At)))),n}function Rt(e){return e.replace(/left|right|bottom|top/g,(e=>yt[e]))}function Ut(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Nt(e){const{x:t,y:i,width:l,height:o}=e;return{width:l,height:o,top:i,left:t,right:t+l,bottom:i+o,x:t,y:i}}function zt(e,t,i){let{reference:l,floating:o}=e;const n=$t(t),a=Bt(t),r=Vt(a),s=_t(t),c="y"===n,h=l.x+l.width/2-o.width/2,d=l.y+l.height/2-o.height/2,v=l[r]/2-o[r]/2;let p;switch(s){case"top":p={x:h,y:l.y-o.height};break;case"bottom":p={x:h,y:l.y+l.height};break;case"right":p={x:l.x+l.width,y:d};break;case"left":p={x:l.x-o.width,y:d};break;default:p={x:l.x,y:l.y}}switch(Mt(t)){case"start":p[a]-=v*(i&&c?-1:1);break;case"end":p[a]+=v*(i&&c?-1:1)}return p}async function Dt(e,t){var i;void 0===t&&(t={});const{x:l,y:o,platform:n,rects:a,elements:r,strategy:s}=e,{boundary:c="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:v=!1,padding:p=0}=bt(t,e),u=Ut(p),g=r[v?"floating"===d?"reference":"floating":d],w=Nt(await n.getClippingRect({element:null==(i=await(null==n.isElement?void 0:n.isElement(g)))||i?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(r.floating)),boundary:c,rootBoundary:h,strategy:s})),f="floating"===d?{x:l,y:o,width:a.floating.width,height:a.floating.height}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(r.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},y=Nt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:f,offsetParent:m,strategy:s}):f);return{top:(w.top-y.top+u.top)/x.y,bottom:(y.bottom-w.bottom+u.bottom)/x.y,left:(w.left-y.left+u.left)/x.x,right:(y.right-w.right+u.right)/x.x}}const It=new Set(["left","top"]);function Wt(){return"undefined"!=typeof window}function Ft(e){return Jt(e)?(e.nodeName||"").toLowerCase():"#document"}function qt(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function jt(e){var t;return null==(t=(Jt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Jt(e){return!!Wt()&&(e instanceof Node||e instanceof qt(e).Node)}function Kt(e){return!!Wt()&&(e instanceof Element||e instanceof qt(e).Element)}function Yt(e){return!!Wt()&&(e instanceof HTMLElement||e instanceof qt(e).HTMLElement)}function Xt(e){return!(!Wt()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof qt(e).ShadowRoot)}const Gt=new Set(["inline","contents"]);function Qt(e){const{overflow:t,overflowX:i,overflowY:l,display:o}=di(e);return/auto|scroll|overlay|hidden|clip/.test(t+l+i)&&!Gt.has(o)}const ei=new Set(["table","td","th"]);function ti(e){return ei.has(Ft(e))}const ii=[":popover-open",":modal"];function li(e){return ii.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}const oi=["transform","translate","scale","rotate","perspective"],ni=["transform","translate","scale","rotate","perspective","filter"],ai=["paint","layout","strict","content"];function ri(e){const t=si(),i=Kt(e)?di(e):e;return oi.some((e=>!!i[e]&&"none"!==i[e]))||!!i.containerType&&"normal"!==i.containerType||!t&&!!i.backdropFilter&&"none"!==i.backdropFilter||!t&&!!i.filter&&"none"!==i.filter||ni.some((e=>(i.willChange||"").includes(e)))||ai.some((e=>(i.contain||"").includes(e)))}function si(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const ci=new Set(["html","body","#document"]);function hi(e){return ci.has(Ft(e))}function di(e){return qt(e).getComputedStyle(e)}function vi(e){return Kt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pi(e){if("html"===Ft(e))return e;const t=e.assignedSlot||e.parentNode||Xt(e)&&e.host||jt(e);return Xt(t)?t.host:t}function ui(e){const t=pi(e);return hi(t)?e.ownerDocument?e.ownerDocument.body:e.body:Yt(t)&&Qt(t)?t:ui(t)}function gi(e,t,i){var l;void 0===t&&(t=[]),void 0===i&&(i=!0);const o=ui(e),n=o===(null==(l=e.ownerDocument)?void 0:l.body),a=qt(o);if(n){const e=wi(a);return t.concat(a,a.visualViewport||[],Qt(o)?o:[],e&&i?gi(e):[])}return t.concat(o,gi(o,[],i))}function wi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fi(e){const t=di(e);let i=parseFloat(t.width)||0,l=parseFloat(t.height)||0;const o=Yt(e),n=o?e.offsetWidth:i,a=o?e.offsetHeight:l,r=ft(i)!==n||ft(l)!==a;return r&&(i=n,l=a),{width:i,height:l,$:r}}function mi(e){return Kt(e)?e:e.contextElement}function xi(e){const t=mi(e);if(!Yt(t))return xt(1);const i=t.getBoundingClientRect(),{width:l,height:o,$:n}=fi(t);let a=(n?ft(i.width):i.width)/l,r=(n?ft(i.height):i.height)/o;return a&&Number.isFinite(a)||(a=1),r&&Number.isFinite(r)||(r=1),{x:a,y:r}}const yi=xt(0);function Ci(e){const t=qt(e);return si()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:yi}function Zi(e,t,i,l){void 0===t&&(t=!1),void 0===i&&(i=!1);const o=e.getBoundingClientRect(),n=mi(e);let a=xt(1);t&&(l?Kt(l)&&(a=xi(l)):a=xi(e));const r=function(e,t,i){return void 0===t&&(t=!1),!(!i||t&&i!==qt(e))&&t}(n,i,l)?Ci(n):xt(0);let s=(o.left+r.x)/a.x,c=(o.top+r.y)/a.y,h=o.width/a.x,d=o.height/a.y;if(n){const e=qt(n),t=l&&Kt(l)?qt(l):l;let i=e,o=wi(i);for(;o&&l&&t!==i;){const e=xi(o),t=o.getBoundingClientRect(),l=di(o),n=t.left+(o.clientLeft+parseFloat(l.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(l.paddingTop))*e.y;s*=e.x,c*=e.y,h*=e.x,d*=e.y,s+=n,c+=a,i=qt(o),o=wi(i)}}return Nt({width:h,height:d,x:s,y:c})}function bi(e,t){const i=vi(e).scrollLeft;return t?t.left+i:Zi(jt(e)).left+i}function _i(e,t){const i=e.getBoundingClientRect();return{x:i.left+t.scrollLeft-bi(e,i),y:i.top+t.scrollTop}}const Mi=25;const Hi=new Set(["absolute","fixed"]);function Vi(e,t,i){let l;if("viewport"===t)l=function(e,t){const i=qt(e),l=jt(e),o=i.visualViewport;let n=l.clientWidth,a=l.clientHeight,r=0,s=0;if(o){n=o.width,a=o.height;const e=si();(!e||e&&"fixed"===t)&&(r=o.offsetLeft,s=o.offsetTop)}const c=bi(l);if(c<=0){const e=l.ownerDocument,t=e.body,i=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(i.marginLeft)+parseFloat(i.marginRight)||0,a=Math.abs(l.clientWidth-t.clientWidth-o);a<=Mi&&(n-=a)}else c<=Mi&&(n+=c);return{width:n,height:a,x:r,y:s}}(e,i);else if("document"===t)l=function(e){const t=jt(e),i=vi(e),l=e.ownerDocument.body,o=wt(t.scrollWidth,t.clientWidth,l.scrollWidth,l.clientWidth),n=wt(t.scrollHeight,t.clientHeight,l.scrollHeight,l.clientHeight);let a=-i.scrollLeft+bi(e);const r=-i.scrollTop;return"rtl"===di(l).direction&&(a+=wt(t.clientWidth,l.clientWidth)-o),{width:o,height:n,x:a,y:r}}(jt(e));else if(Kt(t))l=function(e,t){const i=Zi(e,!0,"fixed"===t),l=i.top+e.clientTop,o=i.left+e.clientLeft,n=Yt(e)?xi(e):xt(1);return{width:e.clientWidth*n.x,height:e.clientHeight*n.y,x:o*n.x,y:l*n.y}}(t,i);else{const i=Ci(e);l={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Nt(l)}function Si(e,t){const i=pi(e);return!(i===t||!Kt(i)||hi(i))&&("fixed"===di(i).position||Si(i,t))}function $i(e,t,i){const l=Yt(t),o=jt(t),n="fixed"===i,a=Zi(e,!0,n,t);let r={scrollLeft:0,scrollTop:0};const s=xt(0);function c(){s.x=bi(o)}if(l||!l&&!n)if(("body"!==Ft(t)||Qt(o))&&(r=vi(t)),l){const e=Zi(t,!0,n,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else o&&c();n&&!l&&o&&c();const h=!o||l||n?xt(0):_i(o,r);return{x:a.left+r.scrollLeft-s.x-h.x,y:a.top+r.scrollTop-s.y-h.y,width:a.width,height:a.height}}function Bi(e){return"static"===di(e).position}function Pi(e,t){if(!Yt(e)||"fixed"===di(e).position)return null;if(t)return t(e);let i=e.offsetParent;return jt(e)===i&&(i=i.ownerDocument.body),i}function Ai(e,t){const i=qt(e);if(li(e))return i;if(!Yt(e)){let t=pi(e);for(;t&&!hi(t);){if(Kt(t)&&!Bi(t))return t;t=pi(t)}return i}let l=Pi(e,t);for(;l&&ti(l)&&Bi(l);)l=Pi(l,t);return l&&hi(l)&&Bi(l)&&!ri(l)?i:l||function(e){let t=pi(e);for(;Yt(t)&&!hi(t);){if(ri(t))return t;if(li(t))return null;t=pi(t)}return null}(e)||i}const Li={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:i,offsetParent:l,strategy:o}=e;const n="fixed"===o,a=jt(l),r=!!t&&li(t.floating);if(l===a||r&&n)return i;let s={scrollLeft:0,scrollTop:0},c=xt(1);const h=xt(0),d=Yt(l);if((d||!d&&!n)&&(("body"!==Ft(l)||Qt(a))&&(s=vi(l)),Yt(l))){const e=Zi(l);c=xi(l),h.x=e.x+l.clientLeft,h.y=e.y+l.clientTop}const v=!a||d||n?xt(0):_i(a,s);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-s.scrollLeft*c.x+h.x+v.x,y:i.y*c.y-s.scrollTop*c.y+h.y+v.y}},getDocumentElement:jt,getClippingRect:function(e){let{element:t,boundary:i,rootBoundary:l,strategy:o}=e;const n=[..."clippingAncestors"===i?li(t)?[]:function(e,t){const i=t.get(e);if(i)return i;let l=gi(e,[],!1).filter((e=>Kt(e)&&"body"!==Ft(e))),o=null;const n="fixed"===di(e).position;let a=n?pi(e):e;for(;Kt(a)&&!hi(a);){const t=di(a),i=ri(a);i||"fixed"!==t.position||(o=null),(n?!i&&!o:!i&&"static"===t.position&&o&&Hi.has(o.position)||Qt(a)&&!i&&Si(e,a))?l=l.filter((e=>e!==a)):o=t,a=pi(a)}return t.set(e,l),l}(t,this._c):[].concat(i),l],a=n[0],r=n.reduce(((e,i)=>{const l=Vi(t,i,o);return e.top=wt(l.top,e.top),e.right=gt(l.right,e.right),e.bottom=gt(l.bottom,e.bottom),e.left=wt(l.left,e.left),e}),Vi(t,a,o));return{width:r.right-r.left,height:r.bottom-r.top,x:r.left,y:r.top}},getOffsetParent:Ai,getElementRects:async function(e){const t=this.getOffsetParent||Ai,i=this.getDimensions,l=await i(e.floating);return{reference:$i(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:i}=fi(e);return{width:t,height:i}},getScale:xi,isElement:Kt,isRTL:function(e){return"rtl"===di(e).direction}};function ki(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ei(e,t,i,l){void 0===l&&(l={});const{ancestorScroll:o=!0,ancestorResize:n=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:r="function"==typeof IntersectionObserver,animationFrame:s=!1}=l,c=mi(e),h=o||n?[...c?gi(c):[],...gi(t)]:[];h.forEach((e=>{o&&e.addEventListener("scroll",i,{passive:!0}),n&&e.addEventListener("resize",i)}));const d=c&&r?function(e,t){let i,l=null;const o=jt(e);function n(){var e;clearTimeout(i),null==(e=l)||e.disconnect(),l=null}return function a(r,s){void 0===r&&(r=!1),void 0===s&&(s=1),n();const c=e.getBoundingClientRect(),{left:h,top:d,width:v,height:p}=c;if(r||t(),!v||!p)return;const u={rootMargin:-mt(d)+"px "+-mt(o.clientWidth-(h+v))+"px "+-mt(o.clientHeight-(d+p))+"px "+-mt(h)+"px",threshold:wt(0,gt(1,s))||1};let g=!0;function w(t){const l=t[0].intersectionRatio;if(l!==s){if(!g)return a();l?a(!1,l):i=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==l||ki(c,e.getBoundingClientRect())||a(),g=!1}try{l=new IntersectionObserver(w,{...u,root:o.ownerDocument})}catch(e){l=new IntersectionObserver(w,u)}l.observe(e)}(!0),n}(c,i):null;let v,p=-1,u=null;a&&(u=new ResizeObserver((e=>{let[l]=e;l&&l.target===c&&u&&(u.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=u)||e.observe(t)}))),i()})),c&&!s&&u.observe(c),u.observe(t));let g=s?Zi(e):null;return s&&function t(){const l=Zi(e);g&&!ki(g,l)&&i();g=l,v=requestAnimationFrame(t)}(),i(),()=>{var e;h.forEach((e=>{o&&e.removeEventListener("scroll",i),n&&e.removeEventListener("resize",i)})),null==d||d(),null==(e=u)||e.disconnect(),u=null,s&&cancelAnimationFrame(v)}}const Ti=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var i,l;const{x:o,y:n,placement:a,middlewareData:r}=t,s=await async function(e,t){const{placement:i,platform:l,elements:o}=e,n=await(null==l.isRTL?void 0:l.isRTL(o.floating)),a=_t(i),r=Mt(i),s="y"===$t(i),c=It.has(a)?-1:1,h=n&&s?-1:1,d=bt(t,e);let{mainAxis:v,crossAxis:p,alignmentAxis:u}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return r&&"number"==typeof u&&(p="end"===r?-1*u:u),s?{x:p*h,y:v*c}:{x:v*c,y:p*h}}(t,e);return a===(null==(i=r.offset)?void 0:i.placement)&&null!=(l=r.arrow)&&l.alignmentOffset?{}:{x:o+s.x,y:n+s.y,data:{...s,placement:a}}}}},Oi=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:i,y:l,placement:o}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:r={fn:e=>{let{x:t,y:i}=e;return{x:t,y:i}}},...s}=bt(e,t),c={x:i,y:l},h=await Dt(t,s),d=$t(_t(o)),v=Ht(d);let p=c[v],u=c[d];if(n){const e="y"===v?"bottom":"right";p=Zt(p+h["y"===v?"top":"left"],p,p-h[e])}if(a){const e="y"===d?"bottom":"right";u=Zt(u+h["y"===d?"top":"left"],u,u-h[e])}const g=r.fn({...t,[v]:p,[d]:u});return{...g,data:{x:g.x-i,y:g.y-l,enabled:{[v]:n,[d]:a}}}}}},Ri=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var i,l;const{placement:o,middlewareData:n,rects:a,initialPlacement:r,platform:s,elements:c}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:v,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:g=!0,...w}=bt(e,t);if(null!=(i=n.arrow)&&i.alignmentOffset)return{};const f=_t(o),m=$t(r),x=_t(r)===r,y=await(null==s.isRTL?void 0:s.isRTL(c.floating)),C=v||(x||!g?[Rt(r)]:function(e){const t=Rt(e);return[At(e),t,At(t)]}(r)),Z="none"!==u;!v&&Z&&C.push(...Ot(r,g,u,y));const b=[r,...C],_=await Dt(t,w),M=[];let H=(null==(l=n.flip)?void 0:l.overflows)||[];if(h&&M.push(_[f]),d){const e=Pt(o,a,y);M.push(_[e[0]],_[e[1]])}if(H=[...H,{placement:o,overflows:M}],!M.every((e=>e<=0))){var V,S;const e=((null==(V=n.flip)?void 0:V.index)||0)+1,t=b[e];if(t){if(!("alignment"===d&&m!==$t(t))||H.every((e=>$t(e.placement)!==m||e.overflows[0]>0)))return{data:{index:e,overflows:H},reset:{placement:t}}}let i=null==(S=H.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!i)switch(p){case"bestFit":{var $;const e=null==($=H.filter((e=>{if(Z){const t=$t(e.placement);return t===m||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:$[0];e&&(i=e);break}case"initialPlacement":i=r}if(o!==i)return{reset:{placement:i}}}return{}}}},Ui=(e,t,i)=>{const l=new Map,o={platform:Li,...i},n={...o.platform,_c:l};return(async(e,t,i)=>{const{placement:l="bottom",strategy:o="absolute",middleware:n=[],platform:a}=i,r=n.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:d}=zt(c,l,s),v=l,p={},u=0;for(let i=0;i<r.length;i++){const{name:n,fn:g}=r[i],{x:w,y:f,data:m,reset:x}=await g({x:h,y:d,initialPlacement:l,placement:v,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});h=null!=w?w:h,d=null!=f?f:d,p={...p,[n]:{...p[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(v=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:h,y:d}=zt(c,v,s))),i=-1)}return{x:h,y:d,placement:v,strategy:o,middlewareData:p}})(e,t,{...o,platform:n})};var Ni=Ze`:host{-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--sgds-body-color-default);font-family:var(--sgds-font-family-brand);font-size:var(--sgds-font-size-2);font-weight:var(--sgds-font-weight-regular);line-height:var(--sgds-line-height-24);margin:0;*,:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:disabled{cursor:not-allowed}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}::slotted(a[target=_blank]):after,a[target=_blank]:after{background-color:currentColor;content:"/";display:inline-block;height:var(--sgds-icon-size-lg);margin-left:.25rem;-webkit-mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.774 4.4H9.8a.6.6 0 1 1 0 1.2c-.85 0-1.451 0-1.922.039-.463.038-.745.11-.968.223A2.4 2.4 0 0 0 5.861 6.91c-.113.223-.184.505-.222.968-.039.47-.04 1.072-.04 1.922v4.4c0 .85.001 1.451.04 1.922.038.463.11.745.222.968a2.4 2.4 0 0 0 1.05 1.048c.222.114.504.185.967.223.47.038 1.072.039 1.922.039h4.4c.85 0 1.451 0 1.921-.039.464-.038.746-.11.969-.223a2.4 2.4 0 0 0 1.048-1.048c.113-.223.185-.505.223-.968.038-.47.039-1.072.039-1.922a.6.6 0 1 1 1.2 0v.026c0 .818 0 1.468-.043 1.993-.044.538-.136.996-.35 1.415a3.6 3.6 0 0 1-1.573 1.574c-.42.213-.878.305-1.415.35-.525.042-1.175.042-1.993.042H9.774c-.818 0-1.469 0-1.993-.043-.538-.044-.996-.136-1.415-.35a3.6 3.6 0 0 1-1.574-1.573c-.213-.42-.305-.877-.35-1.415-.042-.525-.042-1.175-.042-1.993V9.774c0-.818 0-1.468.043-1.993.044-.538.136-.996.35-1.415a3.6 3.6 0 0 1 1.573-1.574c.42-.213.877-.305 1.415-.35C8.305 4.4 8.956 4.4 9.774 4.4ZM12.4 5a.6.6 0 0 1 .6-.6h6a.6.6 0 0 1 .6.6v6a.6.6 0 1 1-1.2 0V6.449l-5.976 5.975a.6.6 0 0 1-.848-.848L17.55 5.6H13a.6.6 0 0 1-.6-.6Z' fill='%230E0E0E'/%3E%3C/svg%3E");-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;vertical-align:bottom;width:var(--sgds-icon-size-lg)}::slotted(svg){vertical-align:middle}}`;class zi extends De{emit(e,t){const i=new CustomEvent(e,Object.assign({bubbles:!0,cancelable:!1,composed:!0,detail:{}},t));return this.dispatchEvent(i),i}static define(e,t=this,i={}){if(customElements.get(e));else try{customElements.define(e,t,i)}catch(l){customElements.define(e,class extends t{},i)}}constructor(){super(),this.ssr=Boolean(this.shadowRoot),Object.entries(this.constructor.dependencies).forEach((([e,t])=>{this.constructor.define(e,t)}))}firstUpdated(e){var t;super.firstUpdated(e),this.ssr&&(null===(t=this.shadowRoot)||void 0===t||t.querySelectorAll("slot").forEach((e=>{e.dispatchEvent(new Event("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))})))}}zi.styles=[Ni],zi.dependencies={},e([Ke({type:Boolean,reflect:!0})],zi.prototype,"ssr",void 0);class Di extends zi{constructor(){super(...arguments),this.myDropdown=dt(),this.dropdownMenuId=function(e="",t=""){return`id-${Math.random().toString().substring(2,6)}-sgds-${e}-${t}`}("dropdown-menu","div"),this.noFlip=!1,this.menuAlignRight=!1,this.drop="down",this.floatingOpts={},this.menuIsOpen=!1,this.close="default",this.disabled=!1,this.readonly=!1,this.menuRef=dt(),this._handleKeyboardMenuEvent=e=>{if(!this.readonly)switch(e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.menuIsOpen||this.showMenu();break;case"Escape":this.hideMenu()}},this._handleClickOutOfElement=e=>{this.menuIsOpen&&(e.composedPath().includes(this)||this.hideMenu(!0))}}connectedCallback(){super.connectedCallback(),"inside"!==this.close&&document.addEventListener("click",this._handleClickOutOfElement),this.addEventListener("keydown",this._handleKeyboardMenuEvent)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._handleClickOutOfElement),this.removeEventListener("keydown",this._handleKeyboardMenuEvent),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0)}firstUpdated(e){super.firstUpdated(e),this.menuIsOpen&&this.updateFloatingPosition()}async showMenu(){this.disabled||this.menuIsOpen||(this.menuIsOpen=!0,this.emit("sgds-show"),await this.updateFloatingPosition(),this.emit("sgds-after-show"),this.myDropdown.value&&this.menuRef.value&&(this._cleanupAutoUpdate=Ei(this.myDropdown.value,this.menuRef.value,(()=>this.updateFloatingPosition()))))}async hideMenu(e){this.menuIsOpen&&(this.emit("sgds-hide",{detail:{isOutside:e}}),this.menuIsOpen=!1,setTimeout((()=>this.emit("sgds-after-hide")),0),this._cleanupAutoUpdate&&(this._cleanupAutoUpdate(),this._cleanupAutoUpdate=void 0))}toggleMenu(){this.menuIsOpen?this.hideMenu():this.showMenu()}mergeMiddleware(e,t){const i=e=>{var t;return(null==e?void 0:e.name)||(null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)},l=t.map(i),o=e.map((e=>{const o=i(e),n=l.indexOf(o);return-1!==n?t[n]:e})).concat(t.filter((t=>!e.some((e=>i(e)===i(t))))));return o}async updateFloatingPosition(){if(!this.myDropdown.value||!this.menuRef.value)return;let e="bottom-start";switch(this.drop){case"up":e=this.menuAlignRight?"top-end":"top-start";break;case"right":e="right-start";break;case"left":e="left-start";break;case"down":e=this.menuAlignRight?"bottom-end":"bottom-start";break;default:e="bottom-start"}const t=[Ti(8),this.noFlip?void 0:Ri(),Oi()].filter(Boolean);let i=t;Array.isArray(this.floatingOpts.middleware)&&this.floatingOpts.middleware.length>0&&(i=this.mergeMiddleware(t,this.floatingOpts.middleware.filter(Boolean)));const l=Object.assign(Object.assign({strategy:"fixed",placement:e},this.floatingOpts),{middleware:i}),{x:o,y:n,strategy:a,placement:r}=await Ui(this.myDropdown.value,this.menuRef.value,l);this.menuRef.value.setAttribute("data-placement",r),Object.assign(this.menuRef.value.style,{position:a,left:`${o}px`,top:`${n}px`})}}e([Ke({type:Boolean,state:!0})],Di.prototype,"noFlip",void 0),e([Ke({type:Boolean,reflect:!0,state:!0})],Di.prototype,"menuAlignRight",void 0),e([Ke({type:String,reflect:!0,state:!0})],Di.prototype,"drop",void 0),e([Ke({type:Object})],Di.prototype,"floatingOpts",void 0),e([Ke({type:Boolean,reflect:!0})],Di.prototype,"menuIsOpen",void 0),e([Ke({type:Boolean,reflect:!0})],Di.prototype,"disabled",void 0),e([Ke({type:Boolean,reflect:!0})],Di.prototype,"readonly",void 0);class Ii extends Di{constructor(){super(...arguments),this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1,this.hidden=!1}connectedCallback(){super.connectedCallback(),this.addEventListener("sgds-hide",this._resetMenu)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("sgds-hide",this._resetMenu)}firstUpdated(e){super.firstUpdated(e),this.addEventListener("keydown",this._handleKeyboardMenuItemsEvent)}handleSelectSlot(e){const t=this._getActiveMenuItems(),i=t.indexOf(e.target);this.nextDropdownItemNo=i+1,this.prevDropdownItemNo=i<=0?t.length-1:i-1;e.target.disabled||(this.emit("sgds-select"),"outside"!==this.close&&this.hideMenu())}_resetMenu(){this.nextDropdownItemNo=0,this.prevDropdownItemNo=-1;this._getMenuItems().forEach((e=>{var t;const i=null===(t=null==e?void 0:e.shadowRoot)||void 0===t?void 0:t.querySelector(".dropdown-item");i&&i.removeAttribute("tabindex")}))}_handleKeyboardMenuItemsEvent(e){if(this.readonly)return;const t=this._getActiveMenuItems();if(0!==t.length)switch(e.key){case"ArrowDown":e.preventDefault(),this._setMenuItem(this.nextDropdownItemNo);break;case"ArrowUp":e.preventDefault(),this._setMenuItem(this.prevDropdownItemNo);break;case"Tab":if(!this.menuIsOpen)return;e.preventDefault(),e.shiftKey?this._setMenuItem(this.prevDropdownItemNo):this._setMenuItem(this.nextDropdownItemNo);break;case"Enter":t.includes(e.target)&&this.handleSelectSlot(e)}}_getMenuItems(){var e,t;if(this.shadowRoot.querySelector("slot#default")){return null===(e=this.shadowRoot.querySelector("slot#default"))||void 0===e?void 0:e.assignedElements({flatten:!0}).filter((e=>!e.classList.contains("empty-menu")&&!e.hasAttribute("hidden")))}if(null===(t=this.menu)||void 0===t?void 0:t.hasChildNodes()){return[...Array.from(this.menu.children)]}return[]}_getActiveMenuItems(){return this._getMenuItems().filter((e=>!e.disabled&&!e.hidden))}_setMenuItem(e){const t=this._getActiveMenuItems();if(0===t.length)return;const i=(e%t.length+t.length)%t.length,l=t[i];this.emit("i-sgds-option-focus",{detail:{option:l}}),this.nextDropdownItemNo=(i+1)%t.length,this.prevDropdownItemNo=(i-1+t.length)%t.length,t.forEach((e=>{const t=e.shadowRoot.querySelector(".dropdown-item");t.setAttribute("tabindex",e===l?"0":"-1"),e===l&&t.focus()}))}}var Wi,Fi;Ii.styles=Di.styles,e([(Wi="ul.dropdown-menu",(e,t,i)=>{const l=e=>{const i=e.renderRoot?.querySelector(Wi)??null;if(null===i&&Fi&&!e.hasUpdated){const e="object"==typeof t?t.name:t;Ge("",`@query'd field ${JSON.stringify(String(e))} with the 'cache' flag set for selector '${Wi}' has been accessed before the first update and returned null. This is expected if the renderRoot tree has not been provided beforehand (e.g. via Declarative Shadow DOM). Therefore the value hasn't been cached.`)}return i};if(Fi){const{get:o,set:n}="object"==typeof t?e:i??(()=>{const e=Symbol(`${String(t)} (@query() cache)`);return{get(){return this[e]},set(t){this[e]=t}}})();return Xe(e,t,{get(){let e=o.call(this);return void 0===e&&(e=l(this),(null!==e||this.hasUpdated)&&n.call(this,e)),e}})}return Xe(e,t,{get(){return l(this)}})})],Ii.prototype,"menu",void 0),e([Ye()],Ii.prototype,"nextDropdownItemNo",void 0),e([Ye()],Ii.prototype,"prevDropdownItemNo",void 0),e([Ke({type:Boolean,reflect:!0})],Ii.prototype,"hidden",void 0);var qi=Ze`:host([menuisopen]) .dropdown-menu{display:block}.dropdown-menu{background-clip:padding-box;background-color:var(--sgds-surface-default);border-radius:var(--sgds-border-radius-md);box-shadow:0 0 1px 0 hsla(0,0%,5%,.12),0 4px 8px 0 hsla(0,0%,5%,.12);color:var(--sgds-color-default);display:none;list-style:none;margin:0;max-height:var(--sgds-dimension-480);min-width:var(--sgds-dimension-280);overflow-y:auto;padding:var(--sgds-padding-xs) 0;position:absolute;text-align:left;z-index:1050}.nav-tabs .dropdown-menu{border-top-left-radius:0;border-top-right-radius:0;margin-top:calc(var(--sgds-nav-tabs-border-width)*-1)}@media (min-width:512px){.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:768px){.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1024px){.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1280px){.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}}@media (min-width:1440px){.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.sgds.navbar .dropdown-menu.megamenu{left:0;right:0;width:100%}.sgds.combobox>.dropdown-menu{min-width:100%}`,ji=Ze`.dropdown{display:flex;height:inherit;position:relative}`;class Ji extends Ii{constructor(){super(),this.noFlip=!1,this.menuAlignRight=!1,this.drop="down",this.menuRef=ut()}async _handleClick(){this.disabled||this.toggleMenu()}_handleCloseMenu(){const e=this._toggler[0];null==e||e.focus()}async connectedCallback(){super.connectedCallback(),this.addEventListener("sgds-hide",this._handleCloseMenu)}async disconnectedCallback(){this.removeEventListener("sgds-hide",this._handleCloseMenu)}async firstUpdated(e){super.firstUpdated(e),this.menuIsOpen&&await this.showMenu(),this._handleDisabled()}_handleDisabled(){const e=this._toggler[0];e&&(this.disabled?e.setAttribute("disabled","true"):e.hasAttribute("disabled")&&e.removeAttribute("disabled"))}render(){return G`
|
|
82
82
|
<div class="dropdown">
|
|
83
83
|
<div
|
|
84
84
|
class="toggler-container"
|