@momentum-design/components 0.121.6 → 0.121.7
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/browser/index.js +3 -3
- package/dist/browser/index.js.map +2 -2
- package/dist/components/popover/popover.component.d.ts +5 -5
- package/dist/components/popover/popover.component.js +24 -17
- package/dist/components/popover/popover.constants.d.ts +1 -1
- package/dist/components/popover/popover.constants.js +1 -1
- package/dist/custom-elements.json +30 -30
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -2534,7 +2534,7 @@
|
|
|
2534
2534
|
}
|
|
2535
2535
|
}
|
|
2536
2536
|
`],Qu=OE;var yo=class extends Bt(q){constructor(){super(...arguments);this.checked=!1;this.readonly=!1;this.softDisabled=!1}render(){return _` <slot></slot>
|
|
2537
|
-
<span part="radio-icon" class="radio-icon"></span>`}};yo.styles=[...q.styles,...Qu],p([u({type:Boolean,reflect:!0})],yo.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],yo.prototype,"readonly",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],yo.prototype,"softDisabled",2);var Rc=yo;var Ju=z.constructTagName("staticradio");Rc.register(Ju);var PE=Rc;Lc.register(Il);var DE=Lc;var Fr=Math.min,_e=Math.max,La=Math.round,Ra=Math.floor,Tr=n=>({x:n,y:n}),$E={left:"right",right:"left",bottom:"top",top:"bottom"},FE={start:"end",end:"start"};function kl(n,o,t){return _e(n,Fr(o,t))}function Eo(n,o){return typeof n=="function"?n(o):n}function li(n){return n.split("-")[0]}function To(n){return n.split("-")[1]}function Mc(n){return n==="x"?"y":"x"}function wl(n){return n==="y"?"height":"width"}var VE=new Set(["top","bottom"]);function Vr(n){return VE.has(li(n))?"y":"x"}function Nl(n){return Mc(Vr(n))}function rf(n,o,t){t===void 0&&(t=!1);let i=To(n),a=Nl(n),d=wl(a),m=a==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(m=Na(m)),[m,Na(m)]}function of(n){let o=Na(n);return[Cl(n),o,Cl(o)]}function Cl(n){return n.replace(/start|end/g,o=>FE[o])}var tf=["left","right"],ef=["right","left"],zE=["top","bottom"],BE=["bottom","top"];function UE(n,o,t){switch(n){case"top":case"bottom":return t?o?ef:tf:o?tf:ef;case"left":case"right":return o?zE:BE;default:return[]}}function sf(n,o,t,i){let a=To(n),d=UE(li(n),t==="start",i);return a&&(d=d.map(m=>m+"-"+a),o&&(d=d.concat(d.map(Cl)))),d}function Na(n){return n.replace(/left|right|bottom|top/g,o=>$E[o])}function HE(n){return{top:0,right:0,bottom:0,left:0,...n}}function Oc(n){return typeof n!="number"?HE(n):{top:n,right:n,bottom:n,left:n}}function xo(n){let{x:o,y:t,width:i,height:a}=n;return{width:i,height:a,top:t,left:o,right:o+i,bottom:t+a,x:o,y:t}}function af(n,o,t){let{reference:i,floating:a}=n,d=Vr(o),m=Nl(o),b=wl(m),C=li(o),L=d==="y",W=i.x+i.width/2-a.width/2,K=i.y+i.height/2-a.height/2,rt=i[b]/2-a[b]/2,X;switch(C){case"top":X={x:W,y:i.y-a.height};break;case"bottom":X={x:W,y:i.y+i.height};break;case"right":X={x:i.x+i.width,y:K};break;case"left":X={x:i.x-a.width,y:K};break;default:X={x:i.x,y:i.y}}switch(To(o)){case"start":X[m]-=rt*(t&&L?-1:1);break;case"end":X[m]+=rt*(t&&L?-1:1);break}return X}var nf=async(n,o,t)=>{let{placement:i="bottom",strategy:a="absolute",middleware:d=[],platform:m}=t,b=d.filter(Boolean),C=await(m.isRTL==null?void 0:m.isRTL(o)),L=await m.getElementRects({reference:n,floating:o,strategy:a}),{x:W,y:K}=af(L,i,C),rt=i,X={},et=0;for(let lt=0;lt<b.length;lt++){let{name:dt,fn:gt}=b[lt],{x:At,y:Nt,data:jt,reset:Vt}=await gt({x:W,y:K,initialPlacement:i,placement:rt,strategy:a,middlewareData:X,rects:L,platform:m,elements:{reference:n,floating:o}});W=At!=null?At:W,K=Nt!=null?Nt:K,X={...X,[dt]:{...X[dt],...jt}},Vt&&et<=50&&(et++,typeof Vt=="object"&&(Vt.placement&&(rt=Vt.placement),Vt.rects&&(L=Vt.rects===!0?await m.getElementRects({reference:n,floating:o,strategy:a}):Vt.rects),{x:W,y:K}=af(L,rt,C)),lt=-1)}return{x:W,y:K,placement:rt,strategy:a,middlewareData:X}};async function Ll(n,o){var t;o===void 0&&(o={});let{x:i,y:a,platform:d,rects:m,elements:b,strategy:C}=n,{boundary:L="clippingAncestors",rootBoundary:W="viewport",elementContext:K="floating",altBoundary:rt=!1,padding:X=0}=Eo(o,n),et=Oc(X),dt=b[rt?K==="floating"?"reference":"floating":K],gt=xo(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(dt)))==null||t?dt:dt.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(b.floating)),boundary:L,rootBoundary:W,strategy:C})),At=K==="floating"?{x:i,y:a,width:m.floating.width,height:m.floating.height}:m.reference,Nt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(b.floating)),jt=await(d.isElement==null?void 0:d.isElement(Nt))?await(d.getScale==null?void 0:d.getScale(Nt))||{x:1,y:1}:{x:1,y:1},Vt=xo(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:At,offsetParent:Nt,strategy:C}):At);return{top:(gt.top-Vt.top+et.top)/jt.y,bottom:(Vt.bottom-gt.bottom+et.bottom)/jt.y,left:(gt.left-Vt.left+et.left)/jt.x,right:(Vt.right-gt.right+et.right)/jt.x}}var lf=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:i,placement:a,rects:d,platform:m,elements:b,middlewareData:C}=o,{element:L,padding:W=0}=Eo(n,o)||{};if(L==null)return{};let K=Oc(W),rt={x:t,y:i},X=Nl(a),et=wl(X),lt=await m.getDimensions(L),dt=X==="y",gt=dt?"top":"left",At=dt?"bottom":"right",Nt=dt?"clientHeight":"clientWidth",jt=d.reference[et]+d.reference[X]-rt[X]-d.floating[et],Vt=rt[X]-d.reference[X],Ut=await(m.getOffsetParent==null?void 0:m.getOffsetParent(L)),Zt=Ut?Ut[Nt]:0;(!Zt||!await(m.isElement==null?void 0:m.isElement(Ut)))&&(Zt=b.floating[Nt]||d.floating[et]);let ne=jt/2-Vt/2,ur=Zt/2-lt[et]/2-1,ke=Fr(K[gt],ur),Xe=Fr(K[At],ur),fr=ke,vr=Zt-lt[et]-Xe,Ct=Zt/2-lt[et]/2+ne,me=kl(fr,Ct,vr),Ze=!C.arrow&&To(a)!=null&&Ct!==me&&d.reference[et]/2-(Ct<fr?ke:Xe)-lt[et]/2<0,Qe=Ze?Ct<fr?Ct-fr:Ct-vr:0;return{[X]:rt[X]+Qe,data:{[X]:me,centerOffset:Ct-me-Qe,...Ze&&{alignmentOffset:Qe}},reset:Ze}}});var df=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,i;let{placement:a,middlewareData:d,rects:m,initialPlacement:b,platform:C,elements:L}=o,{mainAxis:W=!0,crossAxis:K=!0,fallbackPlacements:rt,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:et="none",flipAlignment:lt=!0,...dt}=Eo(n,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let gt=li(a),At=Vr(b),Nt=li(b)===b,jt=await(C.isRTL==null?void 0:C.isRTL(L.floating)),Vt=rt||(Nt||!lt?[Na(b)]:of(b)),Ut=et!=="none";!rt&&Ut&&Vt.push(...sf(b,lt,et,jt));let Zt=[b,...Vt],ne=await Ll(o,dt),ur=[],ke=((i=d.flip)==null?void 0:i.overflows)||[];if(W&&ur.push(ne[gt]),K){let Ct=rf(a,m,jt);ur.push(ne[Ct[0]],ne[Ct[1]])}if(ke=[...ke,{placement:a,overflows:ur}],!ur.every(Ct=>Ct<=0)){var Xe,fr;let Ct=(((Xe=d.flip)==null?void 0:Xe.index)||0)+1,me=Zt[Ct];if(me&&(!(K==="alignment"?At!==Vr(me):!1)||ke.every(Je=>Je.overflows[0]>0&&Vr(Je.placement)===At)))return{data:{index:Ct,overflows:ke},reset:{placement:me}};let Ze=(fr=ke.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:fr.placement;if(!Ze)switch(X){case"bestFit":{var vr;let Qe=(vr=ke.filter(Je=>{if(Ut){let tr=Vr(Je.placement);return tr===At||tr==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(tr=>tr>0).reduce((tr,pn)=>tr+pn,0)]).sort((Je,tr)=>Je[1]-tr[1])[0])==null?void 0:vr[0];Qe&&(Ze=Qe);break}case"initialPlacement":Ze=b;break}if(a!==Ze)return{reset:{placement:Ze}}}return{}}}};var GE=new Set(["left","top"]);async function YE(n,o){let{placement:t,platform:i,elements:a}=n,d=await(i.isRTL==null?void 0:i.isRTL(a.floating)),m=li(t),b=To(t),C=Vr(t)==="y",L=GE.has(m)?-1:1,W=d&&C?-1:1,K=Eo(o,n),{mainAxis:rt,crossAxis:X,alignmentAxis:et}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return b&&typeof et=="number"&&(X=b==="end"?et*-1:et),C?{x:X*W,y:rt*L}:{x:rt*L,y:X*W}}var cf=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,i;let{x:a,y:d,placement:m,middlewareData:b}=o,C=await YE(o,n);return m===((t=b.offset)==null?void 0:t.placement)&&(i=b.arrow)!=null&&i.alignmentOffset?{}:{x:a+C.x,y:d+C.y,data:{...C,placement:m}}}}},hf=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:i,placement:a}=o,{mainAxis:d=!0,crossAxis:m=!1,limiter:b={fn:dt=>{let{x:gt,y:At}=dt;return{x:gt,y:At}}},...C}=Eo(n,o),L={x:t,y:i},W=await Ll(o,C),K=Vr(li(a)),rt=Mc(K),X=L[rt],et=L[K];if(d){let dt=rt==="y"?"top":"left",gt=rt==="y"?"bottom":"right",At=X+W[dt],Nt=X-W[gt];X=kl(At,X,Nt)}if(m){let dt=K==="y"?"top":"left",gt=K==="y"?"bottom":"right",At=et+W[dt],Nt=et-W[gt];et=kl(At,et,Nt)}let lt=b.fn({...o,[rt]:X,[K]:et});return{...lt,data:{x:lt.x-t,y:lt.y-i,enabled:{[rt]:d,[K]:m}}}}}};var pf=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,i;let{placement:a,rects:d,platform:m,elements:b}=o,{apply:C=()=>{},...L}=Eo(n,o),W=await Ll(o,L),K=li(a),rt=To(a),X=Vr(a)==="y",{width:et,height:lt}=d.floating,dt,gt;K==="top"||K==="bottom"?(dt=K,gt=rt===(await(m.isRTL==null?void 0:m.isRTL(b.floating))?"start":"end")?"left":"right"):(gt=K,dt=rt==="end"?"top":"bottom");let At=lt-W.top-W.bottom,Nt=et-W.left-W.right,jt=Fr(lt-W[dt],At),Vt=Fr(et-W[gt],Nt),Ut=!o.middlewareData.shift,Zt=jt,ne=Vt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=Nt),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(Zt=At),Ut&&!rt){let ke=_e(W.left,0),Xe=_e(W.right,0),fr=_e(W.top,0),vr=_e(W.bottom,0);X?ne=et-2*(ke!==0||Xe!==0?ke+Xe:_e(W.left,W.right)):Zt=lt-2*(fr!==0||vr!==0?fr+vr:_e(W.top,W.bottom))}await C({...o,availableWidth:ne,availableHeight:Zt});let ur=await m.getDimensions(b.floating);return et!==ur.width||lt!==ur.height?{reset:{rects:!0}}:{}}}};function Rl(){return typeof window<"u"}function Ao(n){return uf(n)?(n.nodeName||"").toLowerCase():"#document"}function Fe(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function xr(n){var o;return(o=(uf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function uf(n){return Rl()?n instanceof Node||n instanceof Fe(n).Node:!1}function nr(n){return Rl()?n instanceof Element||n instanceof Fe(n).Element:!1}function Ar(n){return Rl()?n instanceof HTMLElement||n instanceof Fe(n).HTMLElement:!1}function mf(n){return!Rl()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Fe(n).ShadowRoot}var WE=new Set(["inline","contents"]);function ys(n){let{overflow:o,overflowX:t,overflowY:i,display:a}=lr(n);return/auto|scroll|overlay|hidden|clip/.test(o+i+t)&&!WE.has(a)}var jE=new Set(["table","td","th"]);function ff(n){return jE.has(Ao(n))}var qE=[":popover-open",":modal"];function Ma(n){return qE.some(o=>{try{return n.matches(o)}catch{return!1}})}var KE=["transform","translate","scale","rotate","perspective"],XE=["transform","translate","scale","rotate","perspective","filter"],ZE=["paint","layout","strict","content"];function Ml(n){let o=Ol(),t=nr(n)?lr(n):n;return KE.some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||XE.some(i=>(t.willChange||"").includes(i))||ZE.some(i=>(t.contain||"").includes(i))}function vf(n){let o=di(n);for(;Ar(o)&&!So(o);){if(Ml(o))return o;if(Ma(o))return null;o=di(o)}return null}function Ol(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var QE=new Set(["html","body","#document"]);function So(n){return QE.has(Ao(n))}function lr(n){return Fe(n).getComputedStyle(n)}function Oa(n){return nr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function di(n){if(Ao(n)==="html")return n;let o=n.assignedSlot||n.parentNode||mf(n)&&n.host||xr(n);return mf(o)?o.host:o}function gf(n){let o=di(n);return So(o)?n.ownerDocument?n.ownerDocument.body:n.body:Ar(o)&&ys(o)?o:gf(o)}function bs(n,o,t){var i;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=gf(n),d=a===((i=n.ownerDocument)==null?void 0:i.body),m=Fe(a);if(d){let b=Pl(m);return o.concat(m,m.visualViewport||[],ys(a)?a:[],b&&t?bs(b):[])}return o.concat(a,bs(a,[],t))}function Pl(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Ef(n){let o=lr(n),t=parseFloat(o.width)||0,i=parseFloat(o.height)||0,a=Ar(n),d=a?n.offsetWidth:t,m=a?n.offsetHeight:i,b=La(t)!==d||La(i)!==m;return b&&(t=d,i=m),{width:t,height:i,$:b}}function Dc(n){return nr(n)?n:n.contextElement}function Es(n){let o=Dc(n);if(!Ar(o))return Tr(1);let t=o.getBoundingClientRect(),{width:i,height:a,$:d}=Ef(o),m=(d?La(t.width):t.width)/i,b=(d?La(t.height):t.height)/a;return(!m||!Number.isFinite(m))&&(m=1),(!b||!Number.isFinite(b))&&(b=1),{x:m,y:b}}var JE=Tr(0);function Tf(n){let o=Fe(n);return!Ol()||!o.visualViewport?JE:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function tT(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==Fe(n)?!1:o}function _o(n,o,t,i){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=n.getBoundingClientRect(),d=Dc(n),m=Tr(1);o&&(i?nr(i)&&(m=Es(i)):m=Es(n));let b=tT(d,t,i)?Tf(d):Tr(0),C=(a.left+b.x)/m.x,L=(a.top+b.y)/m.y,W=a.width/m.x,K=a.height/m.y;if(d){let rt=Fe(d),X=i&&nr(i)?Fe(i):i,et=rt,lt=Pl(et);for(;lt&&i&&X!==et;){let dt=Es(lt),gt=lt.getBoundingClientRect(),At=lr(lt),Nt=gt.left+(lt.clientLeft+parseFloat(At.paddingLeft))*dt.x,jt=gt.top+(lt.clientTop+parseFloat(At.paddingTop))*dt.y;C*=dt.x,L*=dt.y,W*=dt.x,K*=dt.y,C+=Nt,L+=jt,et=Fe(lt),lt=Pl(et)}}return xo({width:W,height:K,x:C,y:L})}function $c(n,o){let t=Oa(n).scrollLeft;return o?o.left+t:_o(xr(n)).left+t}function xf(n,o,t){t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=i.left+o.scrollLeft-(t?0:$c(n,i)),d=i.top+o.scrollTop;return{x:a,y:d}}function eT(n){let{elements:o,rect:t,offsetParent:i,strategy:a}=n,d=a==="fixed",m=xr(i),b=o?Ma(o.floating):!1;if(i===m||b&&d)return t;let C={scrollLeft:0,scrollTop:0},L=Tr(1),W=Tr(0),K=Ar(i);if((K||!K&&!d)&&((Ao(i)!=="body"||ys(m))&&(C=Oa(i)),Ar(i))){let X=_o(i);L=Es(i),W.x=X.x+i.clientLeft,W.y=X.y+i.clientTop}let rt=m&&!K&&!d?xf(m,C,!0):Tr(0);return{width:t.width*L.x,height:t.height*L.y,x:t.x*L.x-C.scrollLeft*L.x+W.x+rt.x,y:t.y*L.y-C.scrollTop*L.y+W.y+rt.y}}function rT(n){return Array.from(n.getClientRects())}function iT(n){let o=xr(n),t=Oa(n),i=n.ownerDocument.body,a=_e(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),d=_e(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),m=-t.scrollLeft+$c(n),b=-t.scrollTop;return lr(i).direction==="rtl"&&(m+=_e(o.clientWidth,i.clientWidth)-a),{width:a,height:d,x:m,y:b}}function oT(n,o){let t=Fe(n),i=xr(n),a=t.visualViewport,d=i.clientWidth,m=i.clientHeight,b=0,C=0;if(a){d=a.width,m=a.height;let L=Ol();(!L||L&&o==="fixed")&&(b=a.offsetLeft,C=a.offsetTop)}return{width:d,height:m,x:b,y:C}}var sT=new Set(["absolute","fixed"]);function aT(n,o){let t=_o(n,!0,o==="fixed"),i=t.top+n.clientTop,a=t.left+n.clientLeft,d=Ar(n)?Es(n):Tr(1),m=n.clientWidth*d.x,b=n.clientHeight*d.y,C=a*d.x,L=i*d.y;return{width:m,height:b,x:C,y:L}}function bf(n,o,t){let i;if(o==="viewport")i=oT(n,t);else if(o==="document")i=iT(xr(n));else if(nr(o))i=aT(o,t);else{let a=Tf(n);i={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return xo(i)}function Af(n,o){let t=di(n);return t===o||!nr(t)||So(t)?!1:lr(t).position==="fixed"||Af(t,o)}function nT(n,o){let t=o.get(n);if(t)return t;let i=bs(n,[],!1).filter(b=>nr(b)&&Ao(b)!=="body"),a=null,d=lr(n).position==="fixed",m=d?di(n):n;for(;nr(m)&&!So(m);){let b=lr(m),C=Ml(m);!C&&b.position==="fixed"&&(a=null),(d?!C&&!a:!C&&b.position==="static"&&!!a&&sT.has(a.position)||ys(m)&&!C&&Af(n,m))?i=i.filter(W=>W!==m):a=b,m=di(m)}return o.set(n,i),i}function lT(n){let{element:o,boundary:t,rootBoundary:i,strategy:a}=n,m=[...t==="clippingAncestors"?Ma(o)?[]:nT(o,this._c):[].concat(t),i],b=m[0],C=m.reduce((L,W)=>{let K=bf(o,W,a);return L.top=_e(K.top,L.top),L.right=Fr(K.right,L.right),L.bottom=Fr(K.bottom,L.bottom),L.left=_e(K.left,L.left),L},bf(o,b,a));return{width:C.right-C.left,height:C.bottom-C.top,x:C.left,y:C.top}}function dT(n){let{width:o,height:t}=Ef(n);return{width:o,height:t}}function cT(n,o,t){let i=Ar(o),a=xr(o),d=t==="fixed",m=_o(n,!0,d,o),b={scrollLeft:0,scrollTop:0},C=Tr(0);function L(){C.x=$c(a)}if(i||!i&&!d)if((Ao(o)!=="body"||ys(a))&&(b=Oa(o)),i){let X=_o(o,!0,d,o);C.x=X.x+o.clientLeft,C.y=X.y+o.clientTop}else a&&L();d&&!i&&a&&L();let W=a&&!i&&!d?xf(a,b):Tr(0),K=m.left+b.scrollLeft-C.x-W.x,rt=m.top+b.scrollTop-C.y-W.y;return{x:K,y:rt,width:m.width,height:m.height}}function Pc(n){return lr(n).position==="static"}function yf(n,o){if(!Ar(n)||lr(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return xr(n)===t&&(t=t.ownerDocument.body),t}function Sf(n,o){let t=Fe(n);if(Ma(n))return t;if(!Ar(n)){let a=di(n);for(;a&&!So(a);){if(nr(a)&&!Pc(a))return a;a=di(a)}return t}let i=yf(n,o);for(;i&&ff(i)&&Pc(i);)i=yf(i,o);return i&&So(i)&&Pc(i)&&!Ml(i)?t:i||vf(n)||t}var hT=async function(n){let o=this.getOffsetParent||Sf,t=this.getDimensions,i=await t(n.floating);return{reference:cT(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function pT(n){return lr(n).direction==="rtl"}var mT={convertOffsetParentRelativeRectToViewportRelativeRect:eT,getDocumentElement:xr,getClippingRect:lT,getOffsetParent:Sf,getElementRects:hT,getClientRects:rT,getDimensions:dT,getScale:Es,isElement:nr,isRTL:pT};function _f(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function uT(n,o){let t=null,i,a=xr(n);function d(){var b;clearTimeout(i),(b=t)==null||b.disconnect(),t=null}function m(b,C){b===void 0&&(b=!1),C===void 0&&(C=1),d();let L=n.getBoundingClientRect(),{left:W,top:K,width:rt,height:X}=L;if(b||o(),!rt||!X)return;let et=Ra(K),lt=Ra(a.clientWidth-(W+rt)),dt=Ra(a.clientHeight-(K+X)),gt=Ra(W),Nt={rootMargin:-et+"px "+-lt+"px "+-dt+"px "+-gt+"px",threshold:_e(0,Fr(1,C))||1},jt=!0;function Vt(Ut){let Zt=Ut[0].intersectionRatio;if(Zt!==C){if(!jt)return m();Zt?m(!1,Zt):i=setTimeout(()=>{m(!1,1e-7)},1e3)}Zt===1&&!_f(L,n.getBoundingClientRect())&&m(),jt=!1}try{t=new IntersectionObserver(Vt,{...Nt,root:a.ownerDocument})}catch{t=new IntersectionObserver(Vt,Nt)}t.observe(n)}return m(!0),d}function If(n,o,t,i){i===void 0&&(i={});let{ancestorScroll:a=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:b=typeof IntersectionObserver=="function",animationFrame:C=!1}=i,L=Dc(n),W=a||d?[...L?bs(L):[],...bs(o)]:[];W.forEach(gt=>{a&>.addEventListener("scroll",t,{passive:!0}),d&>.addEventListener("resize",t)});let K=L&&b?uT(L,t):null,rt=-1,X=null;m&&(X=new ResizeObserver(gt=>{let[At]=gt;At&&At.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(rt),rt=requestAnimationFrame(()=>{var Nt;(Nt=X)==null||Nt.observe(o)})),t()}),L&&!C&&X.observe(L),X.observe(o));let et,lt=C?_o(n):null;C&&dt();function dt(){let gt=_o(n);lt&&!_f(lt,gt)&&t(),lt=gt,et=requestAnimationFrame(dt)}return t(),()=>{var gt;W.forEach(At=>{a&&At.removeEventListener("scroll",t),d&&At.removeEventListener("resize",t)}),K==null||K(),(gt=X)==null||gt.disconnect(),X=null,C&&cancelAnimationFrame(et)}}var Cf=cf;var kf=hf,wf=df,Nf=pf;var Lf=lf;var Rf=(n,o,t)=>{let i=new Map,a={platform:mT,...t},d={...a.platform,_c:i};return nf(n,o,{...a,platform:d})};var Mf=z.constructTagName("popover"),wt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},ci={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Io={TONAL:"tonal",CONTRAST:"contrast"},fT={ABSOLUTE:"absolute",FIXED:"fixed"},_t={PLACEMENT:wt.BOTTOM,TRIGGER:ci.CLICK,COLOR:Io.TONAL,STRATEGY:fT.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:"viewport",BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:tt.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_CLOSED:!0,IS_BACKDROP_INVISIBLE:!0};var hi=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var Fc=class{constructor(){this.stack=[]}push(o){this.stack.push(o)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(t=>t!==o)}has(o){return this.stack.includes(o)}clear(){this.stack=[]}},Ie=new Fc;var vT=B`
|
|
2537
|
+
<span part="radio-icon" class="radio-icon"></span>`}};yo.styles=[...q.styles,...Qu],p([u({type:Boolean,reflect:!0})],yo.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],yo.prototype,"readonly",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],yo.prototype,"softDisabled",2);var Rc=yo;var Ju=z.constructTagName("staticradio");Rc.register(Ju);var PE=Rc;Lc.register(Il);var DE=Lc;var Fr=Math.min,_e=Math.max,La=Math.round,Ra=Math.floor,Tr=n=>({x:n,y:n}),$E={left:"right",right:"left",bottom:"top",top:"bottom"},FE={start:"end",end:"start"};function kl(n,o,t){return _e(n,Fr(o,t))}function Eo(n,o){return typeof n=="function"?n(o):n}function li(n){return n.split("-")[0]}function To(n){return n.split("-")[1]}function Mc(n){return n==="x"?"y":"x"}function wl(n){return n==="y"?"height":"width"}var VE=new Set(["top","bottom"]);function Vr(n){return VE.has(li(n))?"y":"x"}function Nl(n){return Mc(Vr(n))}function rf(n,o,t){t===void 0&&(t=!1);let i=To(n),a=Nl(n),d=wl(a),m=a==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(m=Na(m)),[m,Na(m)]}function of(n){let o=Na(n);return[Cl(n),o,Cl(o)]}function Cl(n){return n.replace(/start|end/g,o=>FE[o])}var tf=["left","right"],ef=["right","left"],zE=["top","bottom"],BE=["bottom","top"];function UE(n,o,t){switch(n){case"top":case"bottom":return t?o?ef:tf:o?tf:ef;case"left":case"right":return o?zE:BE;default:return[]}}function sf(n,o,t,i){let a=To(n),d=UE(li(n),t==="start",i);return a&&(d=d.map(m=>m+"-"+a),o&&(d=d.concat(d.map(Cl)))),d}function Na(n){return n.replace(/left|right|bottom|top/g,o=>$E[o])}function HE(n){return{top:0,right:0,bottom:0,left:0,...n}}function Oc(n){return typeof n!="number"?HE(n):{top:n,right:n,bottom:n,left:n}}function xo(n){let{x:o,y:t,width:i,height:a}=n;return{width:i,height:a,top:t,left:o,right:o+i,bottom:t+a,x:o,y:t}}function af(n,o,t){let{reference:i,floating:a}=n,d=Vr(o),m=Nl(o),b=wl(m),C=li(o),L=d==="y",W=i.x+i.width/2-a.width/2,K=i.y+i.height/2-a.height/2,rt=i[b]/2-a[b]/2,X;switch(C){case"top":X={x:W,y:i.y-a.height};break;case"bottom":X={x:W,y:i.y+i.height};break;case"right":X={x:i.x+i.width,y:K};break;case"left":X={x:i.x-a.width,y:K};break;default:X={x:i.x,y:i.y}}switch(To(o)){case"start":X[m]-=rt*(t&&L?-1:1);break;case"end":X[m]+=rt*(t&&L?-1:1);break}return X}var nf=async(n,o,t)=>{let{placement:i="bottom",strategy:a="absolute",middleware:d=[],platform:m}=t,b=d.filter(Boolean),C=await(m.isRTL==null?void 0:m.isRTL(o)),L=await m.getElementRects({reference:n,floating:o,strategy:a}),{x:W,y:K}=af(L,i,C),rt=i,X={},et=0;for(let lt=0;lt<b.length;lt++){let{name:dt,fn:gt}=b[lt],{x:At,y:Nt,data:jt,reset:Vt}=await gt({x:W,y:K,initialPlacement:i,placement:rt,strategy:a,middlewareData:X,rects:L,platform:m,elements:{reference:n,floating:o}});W=At!=null?At:W,K=Nt!=null?Nt:K,X={...X,[dt]:{...X[dt],...jt}},Vt&&et<=50&&(et++,typeof Vt=="object"&&(Vt.placement&&(rt=Vt.placement),Vt.rects&&(L=Vt.rects===!0?await m.getElementRects({reference:n,floating:o,strategy:a}):Vt.rects),{x:W,y:K}=af(L,rt,C)),lt=-1)}return{x:W,y:K,placement:rt,strategy:a,middlewareData:X}};async function Ll(n,o){var t;o===void 0&&(o={});let{x:i,y:a,platform:d,rects:m,elements:b,strategy:C}=n,{boundary:L="clippingAncestors",rootBoundary:W="viewport",elementContext:K="floating",altBoundary:rt=!1,padding:X=0}=Eo(o,n),et=Oc(X),dt=b[rt?K==="floating"?"reference":"floating":K],gt=xo(await d.getClippingRect({element:(t=await(d.isElement==null?void 0:d.isElement(dt)))==null||t?dt:dt.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(b.floating)),boundary:L,rootBoundary:W,strategy:C})),At=K==="floating"?{x:i,y:a,width:m.floating.width,height:m.floating.height}:m.reference,Nt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(b.floating)),jt=await(d.isElement==null?void 0:d.isElement(Nt))?await(d.getScale==null?void 0:d.getScale(Nt))||{x:1,y:1}:{x:1,y:1},Vt=xo(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:At,offsetParent:Nt,strategy:C}):At);return{top:(gt.top-Vt.top+et.top)/jt.y,bottom:(Vt.bottom-gt.bottom+et.bottom)/jt.y,left:(gt.left-Vt.left+et.left)/jt.x,right:(Vt.right-gt.right+et.right)/jt.x}}var lf=n=>({name:"arrow",options:n,async fn(o){let{x:t,y:i,placement:a,rects:d,platform:m,elements:b,middlewareData:C}=o,{element:L,padding:W=0}=Eo(n,o)||{};if(L==null)return{};let K=Oc(W),rt={x:t,y:i},X=Nl(a),et=wl(X),lt=await m.getDimensions(L),dt=X==="y",gt=dt?"top":"left",At=dt?"bottom":"right",Nt=dt?"clientHeight":"clientWidth",jt=d.reference[et]+d.reference[X]-rt[X]-d.floating[et],Vt=rt[X]-d.reference[X],Ut=await(m.getOffsetParent==null?void 0:m.getOffsetParent(L)),Zt=Ut?Ut[Nt]:0;(!Zt||!await(m.isElement==null?void 0:m.isElement(Ut)))&&(Zt=b.floating[Nt]||d.floating[et]);let ne=jt/2-Vt/2,ur=Zt/2-lt[et]/2-1,ke=Fr(K[gt],ur),Xe=Fr(K[At],ur),fr=ke,vr=Zt-lt[et]-Xe,Ct=Zt/2-lt[et]/2+ne,me=kl(fr,Ct,vr),Ze=!C.arrow&&To(a)!=null&&Ct!==me&&d.reference[et]/2-(Ct<fr?ke:Xe)-lt[et]/2<0,Qe=Ze?Ct<fr?Ct-fr:Ct-vr:0;return{[X]:rt[X]+Qe,data:{[X]:me,centerOffset:Ct-me-Qe,...Ze&&{alignmentOffset:Qe}},reset:Ze}}});var df=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(o){var t,i;let{placement:a,middlewareData:d,rects:m,initialPlacement:b,platform:C,elements:L}=o,{mainAxis:W=!0,crossAxis:K=!0,fallbackPlacements:rt,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:et="none",flipAlignment:lt=!0,...dt}=Eo(n,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let gt=li(a),At=Vr(b),Nt=li(b)===b,jt=await(C.isRTL==null?void 0:C.isRTL(L.floating)),Vt=rt||(Nt||!lt?[Na(b)]:of(b)),Ut=et!=="none";!rt&&Ut&&Vt.push(...sf(b,lt,et,jt));let Zt=[b,...Vt],ne=await Ll(o,dt),ur=[],ke=((i=d.flip)==null?void 0:i.overflows)||[];if(W&&ur.push(ne[gt]),K){let Ct=rf(a,m,jt);ur.push(ne[Ct[0]],ne[Ct[1]])}if(ke=[...ke,{placement:a,overflows:ur}],!ur.every(Ct=>Ct<=0)){var Xe,fr;let Ct=(((Xe=d.flip)==null?void 0:Xe.index)||0)+1,me=Zt[Ct];if(me&&(!(K==="alignment"?At!==Vr(me):!1)||ke.every(Je=>Je.overflows[0]>0&&Vr(Je.placement)===At)))return{data:{index:Ct,overflows:ke},reset:{placement:me}};let Ze=(fr=ke.filter(Qe=>Qe.overflows[0]<=0).sort((Qe,Je)=>Qe.overflows[1]-Je.overflows[1])[0])==null?void 0:fr.placement;if(!Ze)switch(X){case"bestFit":{var vr;let Qe=(vr=ke.filter(Je=>{if(Ut){let tr=Vr(Je.placement);return tr===At||tr==="y"}return!0}).map(Je=>[Je.placement,Je.overflows.filter(tr=>tr>0).reduce((tr,pn)=>tr+pn,0)]).sort((Je,tr)=>Je[1]-tr[1])[0])==null?void 0:vr[0];Qe&&(Ze=Qe);break}case"initialPlacement":Ze=b;break}if(a!==Ze)return{reset:{placement:Ze}}}return{}}}};var GE=new Set(["left","top"]);async function YE(n,o){let{placement:t,platform:i,elements:a}=n,d=await(i.isRTL==null?void 0:i.isRTL(a.floating)),m=li(t),b=To(t),C=Vr(t)==="y",L=GE.has(m)?-1:1,W=d&&C?-1:1,K=Eo(o,n),{mainAxis:rt,crossAxis:X,alignmentAxis:et}=typeof K=="number"?{mainAxis:K,crossAxis:0,alignmentAxis:null}:{mainAxis:K.mainAxis||0,crossAxis:K.crossAxis||0,alignmentAxis:K.alignmentAxis};return b&&typeof et=="number"&&(X=b==="end"?et*-1:et),C?{x:X*W,y:rt*L}:{x:rt*L,y:X*W}}var cf=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(o){var t,i;let{x:a,y:d,placement:m,middlewareData:b}=o,C=await YE(o,n);return m===((t=b.offset)==null?void 0:t.placement)&&(i=b.arrow)!=null&&i.alignmentOffset?{}:{x:a+C.x,y:d+C.y,data:{...C,placement:m}}}}},hf=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(o){let{x:t,y:i,placement:a}=o,{mainAxis:d=!0,crossAxis:m=!1,limiter:b={fn:dt=>{let{x:gt,y:At}=dt;return{x:gt,y:At}}},...C}=Eo(n,o),L={x:t,y:i},W=await Ll(o,C),K=Vr(li(a)),rt=Mc(K),X=L[rt],et=L[K];if(d){let dt=rt==="y"?"top":"left",gt=rt==="y"?"bottom":"right",At=X+W[dt],Nt=X-W[gt];X=kl(At,X,Nt)}if(m){let dt=K==="y"?"top":"left",gt=K==="y"?"bottom":"right",At=et+W[dt],Nt=et-W[gt];et=kl(At,et,Nt)}let lt=b.fn({...o,[rt]:X,[K]:et});return{...lt,data:{x:lt.x-t,y:lt.y-i,enabled:{[rt]:d,[K]:m}}}}}};var pf=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(o){var t,i;let{placement:a,rects:d,platform:m,elements:b}=o,{apply:C=()=>{},...L}=Eo(n,o),W=await Ll(o,L),K=li(a),rt=To(a),X=Vr(a)==="y",{width:et,height:lt}=d.floating,dt,gt;K==="top"||K==="bottom"?(dt=K,gt=rt===(await(m.isRTL==null?void 0:m.isRTL(b.floating))?"start":"end")?"left":"right"):(gt=K,dt=rt==="end"?"top":"bottom");let At=lt-W.top-W.bottom,Nt=et-W.left-W.right,jt=Fr(lt-W[dt],At),Vt=Fr(et-W[gt],Nt),Ut=!o.middlewareData.shift,Zt=jt,ne=Vt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=Nt),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(Zt=At),Ut&&!rt){let ke=_e(W.left,0),Xe=_e(W.right,0),fr=_e(W.top,0),vr=_e(W.bottom,0);X?ne=et-2*(ke!==0||Xe!==0?ke+Xe:_e(W.left,W.right)):Zt=lt-2*(fr!==0||vr!==0?fr+vr:_e(W.top,W.bottom))}await C({...o,availableWidth:ne,availableHeight:Zt});let ur=await m.getDimensions(b.floating);return et!==ur.width||lt!==ur.height?{reset:{rects:!0}}:{}}}};function Rl(){return typeof window<"u"}function Ao(n){return uf(n)?(n.nodeName||"").toLowerCase():"#document"}function Fe(n){var o;return(n==null||(o=n.ownerDocument)==null?void 0:o.defaultView)||window}function xr(n){var o;return(o=(uf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function uf(n){return Rl()?n instanceof Node||n instanceof Fe(n).Node:!1}function nr(n){return Rl()?n instanceof Element||n instanceof Fe(n).Element:!1}function Ar(n){return Rl()?n instanceof HTMLElement||n instanceof Fe(n).HTMLElement:!1}function mf(n){return!Rl()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Fe(n).ShadowRoot}var WE=new Set(["inline","contents"]);function ys(n){let{overflow:o,overflowX:t,overflowY:i,display:a}=lr(n);return/auto|scroll|overlay|hidden|clip/.test(o+i+t)&&!WE.has(a)}var jE=new Set(["table","td","th"]);function ff(n){return jE.has(Ao(n))}var qE=[":popover-open",":modal"];function Ma(n){return qE.some(o=>{try{return n.matches(o)}catch{return!1}})}var KE=["transform","translate","scale","rotate","perspective"],XE=["transform","translate","scale","rotate","perspective","filter"],ZE=["paint","layout","strict","content"];function Ml(n){let o=Ol(),t=nr(n)?lr(n):n;return KE.some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!o&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!o&&(t.filter?t.filter!=="none":!1)||XE.some(i=>(t.willChange||"").includes(i))||ZE.some(i=>(t.contain||"").includes(i))}function vf(n){let o=di(n);for(;Ar(o)&&!So(o);){if(Ml(o))return o;if(Ma(o))return null;o=di(o)}return null}function Ol(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var QE=new Set(["html","body","#document"]);function So(n){return QE.has(Ao(n))}function lr(n){return Fe(n).getComputedStyle(n)}function Oa(n){return nr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function di(n){if(Ao(n)==="html")return n;let o=n.assignedSlot||n.parentNode||mf(n)&&n.host||xr(n);return mf(o)?o.host:o}function gf(n){let o=di(n);return So(o)?n.ownerDocument?n.ownerDocument.body:n.body:Ar(o)&&ys(o)?o:gf(o)}function bs(n,o,t){var i;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=gf(n),d=a===((i=n.ownerDocument)==null?void 0:i.body),m=Fe(a);if(d){let b=Pl(m);return o.concat(m,m.visualViewport||[],ys(a)?a:[],b&&t?bs(b):[])}return o.concat(a,bs(a,[],t))}function Pl(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Ef(n){let o=lr(n),t=parseFloat(o.width)||0,i=parseFloat(o.height)||0,a=Ar(n),d=a?n.offsetWidth:t,m=a?n.offsetHeight:i,b=La(t)!==d||La(i)!==m;return b&&(t=d,i=m),{width:t,height:i,$:b}}function Dc(n){return nr(n)?n:n.contextElement}function Es(n){let o=Dc(n);if(!Ar(o))return Tr(1);let t=o.getBoundingClientRect(),{width:i,height:a,$:d}=Ef(o),m=(d?La(t.width):t.width)/i,b=(d?La(t.height):t.height)/a;return(!m||!Number.isFinite(m))&&(m=1),(!b||!Number.isFinite(b))&&(b=1),{x:m,y:b}}var JE=Tr(0);function Tf(n){let o=Fe(n);return!Ol()||!o.visualViewport?JE:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function tT(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==Fe(n)?!1:o}function _o(n,o,t,i){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=n.getBoundingClientRect(),d=Dc(n),m=Tr(1);o&&(i?nr(i)&&(m=Es(i)):m=Es(n));let b=tT(d,t,i)?Tf(d):Tr(0),C=(a.left+b.x)/m.x,L=(a.top+b.y)/m.y,W=a.width/m.x,K=a.height/m.y;if(d){let rt=Fe(d),X=i&&nr(i)?Fe(i):i,et=rt,lt=Pl(et);for(;lt&&i&&X!==et;){let dt=Es(lt),gt=lt.getBoundingClientRect(),At=lr(lt),Nt=gt.left+(lt.clientLeft+parseFloat(At.paddingLeft))*dt.x,jt=gt.top+(lt.clientTop+parseFloat(At.paddingTop))*dt.y;C*=dt.x,L*=dt.y,W*=dt.x,K*=dt.y,C+=Nt,L+=jt,et=Fe(lt),lt=Pl(et)}}return xo({width:W,height:K,x:C,y:L})}function $c(n,o){let t=Oa(n).scrollLeft;return o?o.left+t:_o(xr(n)).left+t}function xf(n,o,t){t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=i.left+o.scrollLeft-(t?0:$c(n,i)),d=i.top+o.scrollTop;return{x:a,y:d}}function eT(n){let{elements:o,rect:t,offsetParent:i,strategy:a}=n,d=a==="fixed",m=xr(i),b=o?Ma(o.floating):!1;if(i===m||b&&d)return t;let C={scrollLeft:0,scrollTop:0},L=Tr(1),W=Tr(0),K=Ar(i);if((K||!K&&!d)&&((Ao(i)!=="body"||ys(m))&&(C=Oa(i)),Ar(i))){let X=_o(i);L=Es(i),W.x=X.x+i.clientLeft,W.y=X.y+i.clientTop}let rt=m&&!K&&!d?xf(m,C,!0):Tr(0);return{width:t.width*L.x,height:t.height*L.y,x:t.x*L.x-C.scrollLeft*L.x+W.x+rt.x,y:t.y*L.y-C.scrollTop*L.y+W.y+rt.y}}function rT(n){return Array.from(n.getClientRects())}function iT(n){let o=xr(n),t=Oa(n),i=n.ownerDocument.body,a=_e(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),d=_e(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),m=-t.scrollLeft+$c(n),b=-t.scrollTop;return lr(i).direction==="rtl"&&(m+=_e(o.clientWidth,i.clientWidth)-a),{width:a,height:d,x:m,y:b}}function oT(n,o){let t=Fe(n),i=xr(n),a=t.visualViewport,d=i.clientWidth,m=i.clientHeight,b=0,C=0;if(a){d=a.width,m=a.height;let L=Ol();(!L||L&&o==="fixed")&&(b=a.offsetLeft,C=a.offsetTop)}return{width:d,height:m,x:b,y:C}}var sT=new Set(["absolute","fixed"]);function aT(n,o){let t=_o(n,!0,o==="fixed"),i=t.top+n.clientTop,a=t.left+n.clientLeft,d=Ar(n)?Es(n):Tr(1),m=n.clientWidth*d.x,b=n.clientHeight*d.y,C=a*d.x,L=i*d.y;return{width:m,height:b,x:C,y:L}}function bf(n,o,t){let i;if(o==="viewport")i=oT(n,t);else if(o==="document")i=iT(xr(n));else if(nr(o))i=aT(o,t);else{let a=Tf(n);i={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return xo(i)}function Af(n,o){let t=di(n);return t===o||!nr(t)||So(t)?!1:lr(t).position==="fixed"||Af(t,o)}function nT(n,o){let t=o.get(n);if(t)return t;let i=bs(n,[],!1).filter(b=>nr(b)&&Ao(b)!=="body"),a=null,d=lr(n).position==="fixed",m=d?di(n):n;for(;nr(m)&&!So(m);){let b=lr(m),C=Ml(m);!C&&b.position==="fixed"&&(a=null),(d?!C&&!a:!C&&b.position==="static"&&!!a&&sT.has(a.position)||ys(m)&&!C&&Af(n,m))?i=i.filter(W=>W!==m):a=b,m=di(m)}return o.set(n,i),i}function lT(n){let{element:o,boundary:t,rootBoundary:i,strategy:a}=n,m=[...t==="clippingAncestors"?Ma(o)?[]:nT(o,this._c):[].concat(t),i],b=m[0],C=m.reduce((L,W)=>{let K=bf(o,W,a);return L.top=_e(K.top,L.top),L.right=Fr(K.right,L.right),L.bottom=Fr(K.bottom,L.bottom),L.left=_e(K.left,L.left),L},bf(o,b,a));return{width:C.right-C.left,height:C.bottom-C.top,x:C.left,y:C.top}}function dT(n){let{width:o,height:t}=Ef(n);return{width:o,height:t}}function cT(n,o,t){let i=Ar(o),a=xr(o),d=t==="fixed",m=_o(n,!0,d,o),b={scrollLeft:0,scrollTop:0},C=Tr(0);function L(){C.x=$c(a)}if(i||!i&&!d)if((Ao(o)!=="body"||ys(a))&&(b=Oa(o)),i){let X=_o(o,!0,d,o);C.x=X.x+o.clientLeft,C.y=X.y+o.clientTop}else a&&L();d&&!i&&a&&L();let W=a&&!i&&!d?xf(a,b):Tr(0),K=m.left+b.scrollLeft-C.x-W.x,rt=m.top+b.scrollTop-C.y-W.y;return{x:K,y:rt,width:m.width,height:m.height}}function Pc(n){return lr(n).position==="static"}function yf(n,o){if(!Ar(n)||lr(n).position==="fixed")return null;if(o)return o(n);let t=n.offsetParent;return xr(n)===t&&(t=t.ownerDocument.body),t}function Sf(n,o){let t=Fe(n);if(Ma(n))return t;if(!Ar(n)){let a=di(n);for(;a&&!So(a);){if(nr(a)&&!Pc(a))return a;a=di(a)}return t}let i=yf(n,o);for(;i&&ff(i)&&Pc(i);)i=yf(i,o);return i&&So(i)&&Pc(i)&&!Ml(i)?t:i||vf(n)||t}var hT=async function(n){let o=this.getOffsetParent||Sf,t=this.getDimensions,i=await t(n.floating);return{reference:cT(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function pT(n){return lr(n).direction==="rtl"}var mT={convertOffsetParentRelativeRectToViewportRelativeRect:eT,getDocumentElement:xr,getClippingRect:lT,getOffsetParent:Sf,getElementRects:hT,getClientRects:rT,getDimensions:dT,getScale:Es,isElement:nr,isRTL:pT};function _f(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function uT(n,o){let t=null,i,a=xr(n);function d(){var b;clearTimeout(i),(b=t)==null||b.disconnect(),t=null}function m(b,C){b===void 0&&(b=!1),C===void 0&&(C=1),d();let L=n.getBoundingClientRect(),{left:W,top:K,width:rt,height:X}=L;if(b||o(),!rt||!X)return;let et=Ra(K),lt=Ra(a.clientWidth-(W+rt)),dt=Ra(a.clientHeight-(K+X)),gt=Ra(W),Nt={rootMargin:-et+"px "+-lt+"px "+-dt+"px "+-gt+"px",threshold:_e(0,Fr(1,C))||1},jt=!0;function Vt(Ut){let Zt=Ut[0].intersectionRatio;if(Zt!==C){if(!jt)return m();Zt?m(!1,Zt):i=setTimeout(()=>{m(!1,1e-7)},1e3)}Zt===1&&!_f(L,n.getBoundingClientRect())&&m(),jt=!1}try{t=new IntersectionObserver(Vt,{...Nt,root:a.ownerDocument})}catch{t=new IntersectionObserver(Vt,Nt)}t.observe(n)}return m(!0),d}function If(n,o,t,i){i===void 0&&(i={});let{ancestorScroll:a=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:b=typeof IntersectionObserver=="function",animationFrame:C=!1}=i,L=Dc(n),W=a||d?[...L?bs(L):[],...bs(o)]:[];W.forEach(gt=>{a&>.addEventListener("scroll",t,{passive:!0}),d&>.addEventListener("resize",t)});let K=L&&b?uT(L,t):null,rt=-1,X=null;m&&(X=new ResizeObserver(gt=>{let[At]=gt;At&&At.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(rt),rt=requestAnimationFrame(()=>{var Nt;(Nt=X)==null||Nt.observe(o)})),t()}),L&&!C&&X.observe(L),X.observe(o));let et,lt=C?_o(n):null;C&&dt();function dt(){let gt=_o(n);lt&&!_f(lt,gt)&&t(),lt=gt,et=requestAnimationFrame(dt)}return t(),()=>{var gt;W.forEach(At=>{a&&At.removeEventListener("scroll",t),d&&At.removeEventListener("resize",t)}),K==null||K(),(gt=X)==null||gt.disconnect(),X=null,C&&cancelAnimationFrame(et)}}var Cf=cf;var kf=hf,wf=df,Nf=pf;var Lf=lf;var Rf=(n,o,t)=>{let i=new Map,a={platform:mT,...t},d={...a.platform,_c:i};return nf(n,o,{...a,platform:d})};var Mf=z.constructTagName("popover"),wt={LEFT_START:"left-start",LEFT:"left",LEFT_END:"left-end",RIGHT_START:"right-start",RIGHT:"right",RIGHT_END:"right-end",TOP_START:"top-start",TOP:"top",TOP_END:"top-end",BOTTOM_START:"bottom-start",BOTTOM:"bottom",BOTTOM_END:"bottom-end"},ci={CLICK:"click",MOUSEENTER:"mouseenter",FOCUSIN:"focusin",MANUAL:"manual"},Io={TONAL:"tonal",CONTRAST:"contrast"},fT={ABSOLUTE:"absolute",FIXED:"fixed"},_t={PLACEMENT:wt.BOTTOM,TRIGGER:ci.CLICK,COLOR:Io.TONAL,STRATEGY:fT.ABSOLUTE,OFFSET:4,BOUNDARY:"clippingAncestors",BOUNDARY_ROOT:"viewport",BOUNDARY_PADDING:0,VISIBLE:!1,ARROW:!1,CLOSE_BUTTON:!1,FOCUS_TRAP:!1,INTERACTIVE:!1,PREVENT_SCROLL:!1,HIDE_ON_ESCAPE:!1,HIDE_ON_BLUR:!1,HIDE_ON_CLICK_OUTSIDE:!1,FOCUS_BACK:!1,BACKDROP:!1,FLIP:!0,SIZE:!1,DELAY:"0,0",ROLE:tt.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0};var hi=class{static dispatchPopoverEvent(o,t){t.dispatchEvent(new CustomEvent(o,{detail:{show:t.visible},composed:!0,bubbles:!0}))}static onShowPopover(o){this.dispatchPopoverEvent("shown",o)}static onHidePopover(o){this.dispatchPopoverEvent("hidden",o)}static onCreatedPopover(o){this.dispatchPopoverEvent("created",o)}static onDestroyedPopover(o){this.dispatchPopoverEvent("destroyed",o)}static onEscapeKeyPressed(o){this.dispatchPopoverEvent("closebyescape",o)}static onClickOutside(o){this.dispatchPopoverEvent("closebyoutsideclick",o)}};var Fc=class{constructor(){this.stack=[]}push(o){this.stack.push(o)}pop(){return this.stack.pop()}peek(){return this.stack[this.stack.length-1]}remove(o){this.stack=this.stack.filter(t=>t!==o)}has(o){return this.stack.includes(o)}clear(){this.stack=[]}},Ie=new Fc;var vT=B`
|
|
2538
2538
|
:host {
|
|
2539
2539
|
--mdc-popover-arrow-border-radius: 0.1875rem;
|
|
2540
2540
|
--mdc-popover-arrow-border: 0.0625rem solid var(--mds-color-theme-outline-secondary-normal);
|
|
@@ -2656,7 +2656,7 @@
|
|
|
2656
2656
|
border-top-right-radius: var(--mdc-popover-arrow-border-radius);
|
|
2657
2657
|
border-bottom-left-radius: 100%;
|
|
2658
2658
|
}
|
|
2659
|
-
`,Of=[vT];var $l=z.constructTagName("popoverportal"),Dl=class extends q{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Fl=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(i=>{let a=parseInt(i,10);if(Number.isNaN(a)||a<0)throw new Error(`Invalid delay value: ${i}`);return a});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let i=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,a=this.popover.offsetHeight||0,d=this.popover.offsetWidth||0;if(t)switch(o.split("-")[0]){case"top":t.style.height=i,t.style.bottom=`calc(-1 * (${i}))`,t.style.left="50%",t.style.width=`${d}px`;break;case"left":t.style.height=`${a}px`,t.style.width=i,t.style.right=`calc(-1.5 * (${i}))`;break;case"right":t.style.height=`${a}px`,t.style.width=i,t.style.left=`calc(-0.5 * (${i}))`;break;case"bottom":default:t.style.height=i,t.style.top=`calc(-1 * (${i}))`,t.style.left="50%",t.style.width=`${d}px`;break}}setupAppendTo(){var o,t;if(this.popover.appendTo){let i=document.getElementById(this.popover.appendTo);i&&!Array.from(i.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement($l),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),i.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,i;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((i=this.popover.triggerElement)==null?void 0:i.id)||""))}updateAriaModal(){this.popover.role===tt.DIALOG||this.popover.role===tt.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,i;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(i=this.popover.triggerElement)==null||i.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var W;if(!this.popover.arrowElement)return;let i=t.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[i],{x:d,y:m}=o,b=this.popover.arrowElement.getBoundingClientRect(),C=(W=this.popover.arrowElement.offsetParent)==null?void 0:W.getBoundingClientRect();if(!this.arrowPixelChange){let K=C!=null&&C[a]?12-Math.abs(b[a]-C[a]):0;Math.round(K)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let L=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",i),Object.assign(this.popover.arrowElement.style,{left:d!=null?`${d}px`:"",top:m!=null?`${m}px`:"",[a]:`${-this.popover.arrowElement.offsetHeight/2-L}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var It=class extends ml(dl(ll(q))){constructor(){super();this.id="";this.triggerID="";this.trigger=_t.TRIGGER;this.placement=_t.PLACEMENT;this.color=_t.COLOR;this.visible=_t.VISIBLE;this.offset=_t.OFFSET;this.boundary=_t.BOUNDARY;this.boundaryRoot=_t.BOUNDARY_ROOT;this.focusTrap=_t.FOCUS_TRAP;this.preventScroll=_t.PREVENT_SCROLL;this.showArrow=_t.ARROW;this.closeButton=_t.CLOSE_BUTTON;this.interactive=_t.INTERACTIVE;this.delay=_t.DELAY;this.hideOnEscape=_t.HIDE_ON_ESCAPE;this.propagateEventOnEscape=_t.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=_t.HIDE_ON_BLUR;this.hideOnOutsideClick=_t.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=_t.FOCUS_BACK;this.backdrop=_t.BACKDROP;this.isBackdropInvisible=_t.IS_BACKDROP_INVISIBLE;this.flip=_t.FLIP;this.size=_t.SIZE;this.zIndex=_t.Z_INDEX;this.closeButtonAriaLabel=null;this.strategy=_t.STRATEGY;this.role=_t.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=_t.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipClosed=_t.KEEP_CONNECTED_TOOLTIP_CLOSED;this.arrowElement=null;this.hoverTimer=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.parseTrigger=()=>{var d;let a=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(m=>Object.values(ci).includes(m)).length>0?this.trigger:_t.TRIGGER;a==="mouseenter"&&(this.interactive?a="mouseenter click":a="mouseenter focusin"),this.trigger=a};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown,{capture:!0})),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(Ie.peek()!==this)return;let i=t.composedPath(),a=this.contains(t.target)||i.includes(this.triggerElement)||i.includes(this),d=this.backdropElement?i.includes(this.backdropElement):!1;(!a||d)&&(this.hide(),hi.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),hi.onEscapeKeyPressed(this))};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{this.isEventFromTrigger(t)&&(this.isHovered||this.hide())};this.handleFocusIn=t=>{var i;this.isEventFromTrigger(t)&&((i=this.triggerElement)!=null&&i.matches(":focus-visible")||this.isHovered)&&this.show()};this.startCloseDelay=()=>{this.interactive?this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.hoverTimer&&(window.clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.show=()=>{this.visible||this.shouldSuppressOpening||(this.cancelCloseDelay(),this.openDelay>0?setTimeout(()=>{this.visible=!0},this.openDelay):this.visible=!0)};this.hide=()=>{this.closeDelay?setTimeout(()=>{this.visible=!1},this.closeDelay):this.visible=!1};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let i=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),a=this.boundaryRoot,d=[kf({boundary:i,rootBoundary:a,padding:this.boundaryPadding})],m=this.offset;if(this.flip&&d.push(wf({boundary:i,rootBoundary:a})),this.size){let b=L=>{this.style.setProperty("--mdc-popover-internal-available-height",`${L}px`)},C=this.renderRoot.querySelector('[part="popover-content"]');d.push(Nf({boundary:i,rootBoundary:a,apply({availableHeight:L}){C&&(Object.assign(C.style,{maxHeight:`${L}px`,overflowY:"auto"}),b(L))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let b=this.arrowElement.offsetHeight,C=Math.sqrt(2*b**2)/2;m+=C,d.push(Lf({element:this.arrowElement,padding:12}))}d.push(Cf(m)),this.floatingUICleanupFunction=If(t,this,async()=>{let{triggerElement:b}=this;if(!b)return;let C=this.adjustPlacementForRtl(this.placement),{x:L,y:W,middlewareData:K,placement:rt}=await Rf(b,this,{placement:C,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(L,W),K.arrow&&this.arrowElement&&this.utils.updateArrowStyle(K.arrow,rt),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(rt)})};this.utils=new Fl(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(i=>i!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),hi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.style.zIndex=`${this.zIndex}`,this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,i;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(i=this.floatingUICleanupFunction)==null||i.call(this),this.cancelCloseDelay(),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),hi.onDestroyedPopover(this),Ie.remove(this)}async updated(t){if(super.updated(t),t.has("visible")){let i=t.get("visible")||!1;await this.isOpenUpdated(i,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(wt).includes(this.placement)?this.placement:_t.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Io).includes(this.color)?this.color:_t.COLOR),t.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(t,i){var d,m;let{triggerElement:a}=this;t===i||!a||(i&&!this.shouldSuppressOpening?(Ie.peek()!==this&&Ie.push(this),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(a)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(a.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var b,C;this.interactive&&this.focusTrap&&((b=this.activateFocusTrap)==null||b.call(this),(C=this.setInitialFocus)==null||C.call(this))},0),hi.onShowPopover(this)):(Ie.peek()===this&&Ie.pop(),(d=this.floatingUICleanupFunction)==null||d.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(a),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(a.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(m=this.deactivateFocusTrap)==null||m.call(this),this.focusBackToTrigger&&(a==null||a.focus()),this.keepConnectedTooltipClosed&&this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),hi.onHidePopover(this)))}isEventFromTrigger(t){var i;return this.triggerID?t.composed?t.composedPath().some(a=>(a==null?void 0:a.id)===this.triggerID):((i=t.target)==null?void 0:i.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case wt.LEFT:return wt.RIGHT;case wt.LEFT_START:return wt.RIGHT_START;case wt.LEFT_END:return wt.RIGHT_END;case wt.RIGHT:return wt.LEFT;case wt.RIGHT_START:return wt.LEFT_START;case wt.RIGHT_END:return wt.LEFT_END;default:return t}}render(){return _`
|
|
2659
|
+
`,Of=[vT];var $l=z.constructTagName("popoverportal"),Dl=class extends q{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var Fl=class{constructor(o){this.portalElement=null;this.disconnectAfterAppendTo=!1;this.arrowPixelChange=!1;this.popover=o}setupDelay(){try{let[o,t]=this.popover.delay.split(",").map(i=>{let a=parseInt(i,10);if(Number.isNaN(a)||a<0)throw new Error(`Invalid delay value: ${i}`);return a});return[o,t]}catch{return this.popover.delay="0,0",[0,0]}}setupHoverBridge(o){let t=this.popover.renderRoot.querySelector('div[part="popover-hover-bridge"]');Object.assign(t.style,{top:"",left:"",right:"",bottom:""});let i=`calc(${this.popover.showArrow?"0.75rem + ":""}${this.popover.offset}px)`,a=this.popover.offsetHeight||0,d=this.popover.offsetWidth||0;if(t)switch(o.split("-")[0]){case"top":t.style.height=i,t.style.bottom=`calc(-1 * (${i}))`,t.style.left="50%",t.style.width=`${d}px`;break;case"left":t.style.height=`${a}px`,t.style.width=i,t.style.right=`calc(-1.5 * (${i}))`;break;case"right":t.style.height=`${a}px`,t.style.width=i,t.style.left=`calc(-0.5 * (${i}))`;break;case"bottom":default:t.style.height=i,t.style.top=`calc(-1 * (${i}))`,t.style.left="50%",t.style.width=`${d}px`;break}}setupAppendTo(){var o,t;if(this.popover.appendTo){let i=document.getElementById(this.popover.appendTo);i&&!Array.from(i.children).includes(this.popover)&&(this.disconnectAfterAppendTo=!0,this.portalElement=document.createElement($l),this.portalElement.onDisconnect=()=>{this.popover.remove(),this.portalElement=null},(t=(o=this.popover.parentElement)==null?void 0:o.appendChild)==null||t.call(o,this.portalElement),i.appendChild(this.popover))}}cleanupAppendTo(){!this.disconnectAfterAppendTo&&this.portalElement&&this.portalElement.remove(),this.disconnectAfterAppendTo=!1}updateAriaLabels(){var o,t,i;this.popover.interactive&&this.popover.role&&(this.popover.ariaLabel||(this.popover.ariaLabel=((o=this.popover.triggerElement)==null?void 0:o.ariaLabel)||((t=this.popover.triggerElement)==null?void 0:t.textContent)||""),this.popover.ariaLabelledby||(this.popover.ariaLabelledby=((i=this.popover.triggerElement)==null?void 0:i.id)||""))}updateAriaModal(){this.popover.role===tt.DIALOG||this.popover.role===tt.ALERTDIALOG?this.popover.setAttribute("aria-modal","true"):this.popover.removeAttribute("aria-modal")}updateAriaExpandedAttribute(){var o,t,i;this.popover.disableAriaExpanded||((o=this.popover.triggerElement)==null||o.setAttribute("aria-expanded",`${this.popover.visible}`),(i=this.popover.triggerElement)==null||i.setAttribute("aria-haspopup",((t=this.popover.triggerElement)==null?void 0:t.getAttribute("aria-haspopup"))||this.popover.role||"dialog"))}updateArrowStyle(o,t){var W;if(!this.popover.arrowElement)return;let i=t.split("-")[0],a={top:"bottom",right:"left",bottom:"top",left:"right"}[i],{x:d,y:m}=o,b=this.popover.arrowElement.getBoundingClientRect(),C=(W=this.popover.arrowElement.offsetParent)==null?void 0:W.getBoundingClientRect();if(!this.arrowPixelChange){let K=C!=null&&C[a]?12-Math.abs(b[a]-C[a]):0;Math.round(K)===1?this.arrowPixelChange=!0:this.arrowPixelChange=!1}let L=this.arrowPixelChange?.5:0;this.popover.arrowElement.setAttribute("data-side",i),Object.assign(this.popover.arrowElement.style,{left:d!=null?`${d}px`:"",top:m!=null?`${m}px`:"",[a]:`${-this.popover.arrowElement.offsetHeight/2-L}px`})}updatePopoverStyle(o,t){Object.assign(this.popover.style,{left:`${o}px`,top:`${t}px`})}};var It=class extends ml(dl(ll(q))){constructor(){super();this.id="";this.triggerID="";this.trigger=_t.TRIGGER;this.placement=_t.PLACEMENT;this.color=_t.COLOR;this.visible=_t.VISIBLE;this.offset=_t.OFFSET;this.boundary=_t.BOUNDARY;this.boundaryRoot=_t.BOUNDARY_ROOT;this.focusTrap=_t.FOCUS_TRAP;this.preventScroll=_t.PREVENT_SCROLL;this.showArrow=_t.ARROW;this.closeButton=_t.CLOSE_BUTTON;this.interactive=_t.INTERACTIVE;this.delay=_t.DELAY;this.hideOnEscape=_t.HIDE_ON_ESCAPE;this.propagateEventOnEscape=_t.PROPAGATE_EVENT_ON_ESCAPE;this.hideOnBlur=_t.HIDE_ON_BLUR;this.hideOnOutsideClick=_t.HIDE_ON_CLICK_OUTSIDE;this.focusBackToTrigger=_t.FOCUS_BACK;this.backdrop=_t.BACKDROP;this.isBackdropInvisible=_t.IS_BACKDROP_INVISIBLE;this.flip=_t.FLIP;this.size=_t.SIZE;this.zIndex=_t.Z_INDEX;this.closeButtonAriaLabel=null;this.strategy=_t.STRATEGY;this.role=_t.ROLE;this.ariaLabelledby=null;this.ariaDescribedby=null;this.disableAriaExpanded=_t.DISABLE_ARIA_EXPANDED;this.keepConnectedTooltipOpen=_t.KEEP_CONNECTED_TOOLTIP_OPEN;this.arrowElement=null;this.hoverTimer=null;this.isHovered=!1;this.openDelay=0;this.closeDelay=0;this.floatingUICleanupFunction=null;this.shouldSuppressOpening=!1;this.parseTrigger=()=>{var d;let a=(((d=this.trigger)==null?void 0:d.split(" "))||[]).filter(m=>Object.values(ci).includes(m)).length>0?this.trigger:_t.TRIGGER;a==="mouseenter"&&(this.interactive?a="mouseenter click":a="mouseenter focusin"),this.trigger=a};this.setupTriggerListeners=()=>{if(this.trigger.includes("click")&&document.addEventListener("click",this.togglePopoverVisible,{capture:!0}),this.trigger.includes("mouseenter")){let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.addEventListener("mouseenter",this.show),document.addEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.addEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.addEventListener("mouseenter",this.cancelCloseDelay),this.addEventListener("mouseleave",this.startCloseDelay)}this.trigger.includes("focusin")&&(document.addEventListener("focusin",this.handleFocusIn,{capture:!0}),this.interactive||document.addEventListener("focusout",this.handleFocusOut,{capture:!0}))};this.removeTriggerListeners=()=>{document.removeEventListener("click",this.togglePopoverVisible,{capture:!0});let t=this.renderRoot.querySelector('div[part="popover-hover-bridge"]');t==null||t.removeEventListener("mouseenter",this.show),document.removeEventListener("mouseenter",this.handleMouseEnter,{capture:!0}),document.removeEventListener("mouseleave",this.handleMouseLeave,{capture:!0}),this.removeEventListener("mouseenter",this.cancelCloseDelay),this.removeEventListener("mouseleave",this.startCloseDelay),document.removeEventListener("focusin",this.handleFocusIn,{capture:!0}),document.removeEventListener("focusout",this.handleFocusOut,{capture:!0})};this.removeAllListeners=()=>{this.removeTriggerListeners(),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown,{capture:!0})),this.hideOnBlur&&this.removeEventListener("focusout",this.onPopoverFocusOut)};this.onOutsidePopoverClick=t=>{if(Ie.peek()!==this)return;let i=t.composedPath(),a=this.contains(t.target)||i.includes(this.triggerElement)||i.includes(this),d=this.backdropElement?i.includes(this.backdropElement):!1;(!a||d)&&(this.hide(),hi.onClickOutside(this))};this.onEscapeKeydown=t=>{!this.visible||t.code!=="Escape"||(this.propagateEventOnEscape||t.stopPropagation(),t.preventDefault(),this.hide(),hi.onEscapeKeyPressed(this))};this.onPopoverFocusOut=t=>{this.contains(t.relatedTarget)||this.hide()};this.handleMouseEnter=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!0,this.show())};this.handleMouseLeave=t=>{this.isEventFromTrigger(t)&&(this.isHovered=!1,this.startCloseDelay())};this.handleFocusOut=t=>{this.isEventFromTrigger(t)&&(this.isHovered||this.hide())};this.handleFocusIn=t=>{var i;this.isEventFromTrigger(t)&&((i=this.triggerElement)!=null&&i.matches(":focus-visible")||this.isHovered)&&this.show()};this.startCloseDelay=()=>{this.interactive?this.hoverTimer=window.setTimeout(()=>{this.visible=!1},this.closeDelay):this.hide()};this.cancelCloseDelay=()=>{this.hoverTimer&&(window.clearTimeout(this.hoverTimer),this.hoverTimer=null)};this.show=()=>{this.visible||this.shouldSuppressOpening||(this.cancelCloseDelay(),this.openDelay>0?setTimeout(()=>{this.visible=!0},this.openDelay):this.visible=!0)};this.hide=()=>{this.closeDelay?setTimeout(()=>{this.visible=!1},this.closeDelay):this.visible=!1};this.togglePopoverVisible=t=>{this.isEventFromTrigger(t)&&(this.visible?this.hide():this.show())};this.positionPopover=()=>{let{triggerElement:t}=this;if(!t)return;let i=!this.boundary||this.boundary==="clippingAncestors"?"clippingAncestors":Array.from(document.querySelectorAll(this.boundary)),a=this.boundaryRoot,d=[kf({boundary:i,rootBoundary:a,padding:this.boundaryPadding})],m=this.offset;if(this.flip&&d.push(wf({boundary:i,rootBoundary:a})),this.size){let b=L=>{this.style.setProperty("--mdc-popover-internal-available-height",`${L}px`)},C=this.renderRoot.querySelector('[part="popover-content"]');d.push(Nf({boundary:i,rootBoundary:a,apply({availableHeight:L}){C&&(Object.assign(C.style,{maxHeight:`${L}px`,overflowY:"auto"}),b(L))},padding:50}))}if(this.showArrow&&(this.arrowElement=this.renderRoot.querySelector('div[part="popover-arrow"]'),this.arrowElement)){let b=this.arrowElement.offsetHeight,C=Math.sqrt(2*b**2)/2;m+=C,d.push(Lf({element:this.arrowElement,padding:12}))}d.push(Cf(m)),this.floatingUICleanupFunction=If(t,this,async()=>{let{triggerElement:b}=this;if(!b)return;let C=this.adjustPlacementForRtl(this.placement),{x:L,y:W,middlewareData:K,placement:rt}=await Rf(b,this,{placement:C,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(L,W),K.arrow&&this.arrowElement&&this.utils.updateArrowStyle(K.arrow,rt),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(rt)})};this.utils=new Fl(this),this.parseTrigger(),[this.openDelay,this.closeDelay]=this.utils.setupDelay()}get connectedTooltip(){let t=this.getRootNode().querySelectorAll(`mdc-tooltip[triggerID="${this.triggerID}"]`);return Array.from(t).find(i=>i!==this)}get triggerElement(){return this.getRootNode().querySelector(`[id="${this.triggerID}"]`)}async firstUpdated(t){super.firstUpdated(t),hi.onCreatedPopover(this)}connectedCallback(){super.connectedCallback(),this.style.zIndex=`${this.zIndex}`,this.utils.setupAppendTo(),this.setupTriggerListeners()}async disconnectedCallback(){var t,i;super.disconnectedCallback(),this.removeAllListeners(),(t=this.deactivateFocusTrap)==null||t.call(this),this.deactivatePreventScroll(),this.moveElementBackAfterBackdropRemoval(this.triggerElement),this.removeBackdrop(),(i=this.floatingUICleanupFunction)==null||i.call(this),this.cancelCloseDelay(),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),this.utils.cleanupAppendTo(),hi.onDestroyedPopover(this),Ie.remove(this)}async updated(t){if(super.updated(t),t.has("visible")){let i=t.get("visible")||!1;await this.isOpenUpdated(i,this.visible),this.utils.updateAriaExpandedAttribute()}t.has("trigger")&&(this.parseTrigger(),this.removeTriggerListeners(),this.setupTriggerListeners()),t.has("placement")&&this.setAttribute("placement",Object.values(wt).includes(this.placement)?this.placement:_t.PLACEMENT),t.has("delay")&&([this.openDelay,this.closeDelay]=this.utils.setupDelay()),t.has("color")&&this.setAttribute("color",Object.values(Io).includes(this.color)?this.color:_t.COLOR),t.has("zIndex")&&this.setAttribute("z-index",`${this.zIndex}`),t.has("appendTo")&&(this.appendTo?this.utils.setupAppendTo():this.utils.cleanupAppendTo()),(t.has("interactive")||t.has("aria-label")||t.has("aria-labelledby"))&&this.utils.updateAriaLabels(),t.has("role")&&(this.role===""&&(this.role=null),this.utils.updateAriaModal()),t.has("disableAriaExpanded")&&this.utils.updateAriaExpandedAttribute(),t.has("focusTrap")&&!this.focusTrap&&this.visible&&this.deactivateFocusTrap(),t.has("preventScroll")&&(!this.preventScroll&&this.visible?this.deactivatePreventScroll():this.preventScroll&&this.visible&&this.activatePreventScroll())}async isOpenUpdated(t,i){var d,m;let{triggerElement:a}=this;t===i||!a||(i&&!this.shouldSuppressOpening?(Ie.peek()!==this&&Ie.push(this),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.visible=!1,this.connectedTooltip.shouldSuppressOpening=!0),this.backdrop&&!this.backdropElement&&(this.createBackdrop("popover"),this.keepElementAboveBackdrop(a)),this.positionPopover(),this.hideOnBlur&&(this.addEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(a.style.pointerEvents="none")),this.hideOnEscape&&(this.addEventListener("keydown",this.onEscapeKeydown),document.addEventListener("keydown",this.onEscapeKeydown)),this.activatePreventScroll(),this.hideOnOutsideClick&&document.addEventListener("click",this.onOutsidePopoverClick,{capture:!0}),setTimeout(()=>{var b,C;this.interactive&&this.focusTrap&&((b=this.activateFocusTrap)==null||b.call(this),(C=this.setInitialFocus)==null||C.call(this))},0),hi.onShowPopover(this)):(Ie.peek()===this&&Ie.pop(),(d=this.floatingUICleanupFunction)==null||d.call(this),this.backdrop&&(this.moveElementBackAfterBackdropRemoval(a),this.removeBackdrop()),this.hideOnBlur&&(this.removeEventListener("focusout",this.onPopoverFocusOut),this.trigger==="click"&&(a.style.pointerEvents="")),this.hideOnOutsideClick&&document.removeEventListener("click",this.onOutsidePopoverClick,{capture:!0}),this.hideOnEscape&&(this.removeEventListener("keydown",this.onEscapeKeydown),document.removeEventListener("keydown",this.onEscapeKeydown)),this.deactivatePreventScroll(),(m=this.deactivateFocusTrap)==null||m.call(this),this.focusBackToTrigger&&(a==null||a.focus()),this.keepConnectedTooltipOpen||this.connectedTooltip&&(this.connectedTooltip.shouldSuppressOpening=!1),hi.onHidePopover(this)))}isEventFromTrigger(t){var i;return this.triggerID?t.composed?t.composedPath().some(a=>(a==null?void 0:a.id)===this.triggerID):((i=t.target)==null?void 0:i.id)===this.triggerID:!1}isRtl(){return window.getComputedStyle(this).direction==="rtl"}adjustPlacementForRtl(t){if(!this.isRtl())return t;switch(t){case wt.LEFT:return wt.RIGHT;case wt.LEFT_START:return wt.RIGHT_START;case wt.LEFT_END:return wt.RIGHT_END;case wt.RIGHT:return wt.LEFT;case wt.RIGHT_START:return wt.LEFT_START;case wt.RIGHT_END:return wt.LEFT_END;default:return t}}render(){return _`
|
|
2660
2660
|
<div part="popover-hover-bridge"></div>
|
|
2661
2661
|
${this.closeButton?_` <mdc-button
|
|
2662
2662
|
part="popover-close"
|
|
@@ -2670,7 +2670,7 @@
|
|
|
2670
2670
|
<div part="popover-content">
|
|
2671
2671
|
<slot></slot>
|
|
2672
2672
|
</div>
|
|
2673
|
-
`}};It.styles=[...q.styles,...Of],p([u({type:String,reflect:!0})],It.prototype,"id",2),p([u({type:String,reflect:!0})],It.prototype,"triggerID",2),p([u({type:String,reflect:!0})],It.prototype,"trigger",2),p([u({type:String,reflect:!0})],It.prototype,"placement",2),p([u({type:String,reflect:!0})],It.prototype,"color",2),p([u({type:Boolean,reflect:!0})],It.prototype,"visible",2),p([u({type:Number,reflect:!0})],It.prototype,"offset",2),p([u({type:String,reflect:!0,attribute:"boundary"})],It.prototype,"boundary",2),p([u({type:String,reflect:!0,attribute:"boundary-root"})],It.prototype,"boundaryRoot",2),p([u({type:Number,reflect:!0,attribute:"boundary-padding"})],It.prototype,"boundaryPadding",2),p([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],It.prototype,"focusTrap",2),p([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],It.prototype,"preventScroll",2),p([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],It.prototype,"showArrow",2),p([u({type:Boolean,reflect:!0,attribute:"close-button"})],It.prototype,"closeButton",2),p([u({type:Boolean,reflect:!0})],It.prototype,"interactive",2),p([u({type:String,reflect:!0})],It.prototype,"delay",2),p([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],It.prototype,"hideOnEscape",2),p([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],It.prototype,"propagateEventOnEscape",2),p([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],It.prototype,"hideOnBlur",2),p([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],It.prototype,"hideOnOutsideClick",2),p([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],It.prototype,"focusBackToTrigger",2),p([u({type:Boolean,reflect:!0})],It.prototype,"backdrop",2),p([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],It.prototype,"backdropAppendTo",2),p([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],It.prototype,"isBackdropInvisible",2),p([u({type:Boolean,reflect:!0})],It.prototype,"flip",2),p([u({type:Boolean,reflect:!0})],It.prototype,"size",2),p([u({type:Number,reflect:!0,attribute:"z-index"})],It.prototype,"zIndex",2),p([u({type:String,reflect:!0,attribute:"append-to"})],It.prototype,"appendTo",2),p([u({type:String,attribute:"close-button-aria-label",reflect:!0})],It.prototype,"closeButtonAriaLabel",2),p([u({type:String,reflect:!0})],It.prototype,"strategy",2),p([u({type:String,reflect:!0})],It.prototype,"role",2),p([u({type:String,reflect:!0,attribute:"aria-labelledby"})],It.prototype,"ariaLabelledby",2),p([u({type:String,reflect:!0,attribute:"aria-describedby"})],It.prototype,"ariaDescribedby",2),p([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],It.prototype,"disableAriaExpanded",2),p([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-
|
|
2673
|
+
`}};It.styles=[...q.styles,...Of],p([u({type:String,reflect:!0})],It.prototype,"id",2),p([u({type:String,reflect:!0})],It.prototype,"triggerID",2),p([u({type:String,reflect:!0})],It.prototype,"trigger",2),p([u({type:String,reflect:!0})],It.prototype,"placement",2),p([u({type:String,reflect:!0})],It.prototype,"color",2),p([u({type:Boolean,reflect:!0})],It.prototype,"visible",2),p([u({type:Number,reflect:!0})],It.prototype,"offset",2),p([u({type:String,reflect:!0,attribute:"boundary"})],It.prototype,"boundary",2),p([u({type:String,reflect:!0,attribute:"boundary-root"})],It.prototype,"boundaryRoot",2),p([u({type:Number,reflect:!0,attribute:"boundary-padding"})],It.prototype,"boundaryPadding",2),p([u({type:Boolean,reflect:!0,attribute:"focus-trap"})],It.prototype,"focusTrap",2),p([u({type:Boolean,reflect:!0,attribute:"prevent-scroll"})],It.prototype,"preventScroll",2),p([u({type:Boolean,reflect:!0,attribute:"show-arrow"})],It.prototype,"showArrow",2),p([u({type:Boolean,reflect:!0,attribute:"close-button"})],It.prototype,"closeButton",2),p([u({type:Boolean,reflect:!0})],It.prototype,"interactive",2),p([u({type:String,reflect:!0})],It.prototype,"delay",2),p([u({type:Boolean,reflect:!0,attribute:"hide-on-escape"})],It.prototype,"hideOnEscape",2),p([u({type:Boolean,reflect:!0,attribute:"propagate-event-on-escape"})],It.prototype,"propagateEventOnEscape",2),p([u({type:Boolean,reflect:!0,attribute:"hide-on-blur"})],It.prototype,"hideOnBlur",2),p([u({type:Boolean,reflect:!0,attribute:"hide-on-outside-click"})],It.prototype,"hideOnOutsideClick",2),p([u({type:Boolean,reflect:!0,attribute:"focus-back-to-trigger"})],It.prototype,"focusBackToTrigger",2),p([u({type:Boolean,reflect:!0})],It.prototype,"backdrop",2),p([u({type:String,reflect:!0,attribute:"backdrop-append-to"})],It.prototype,"backdropAppendTo",2),p([u({type:Boolean,reflect:!0,attribute:"is-backdrop-invisible"})],It.prototype,"isBackdropInvisible",2),p([u({type:Boolean,reflect:!0})],It.prototype,"flip",2),p([u({type:Boolean,reflect:!0})],It.prototype,"size",2),p([u({type:Number,reflect:!0,attribute:"z-index"})],It.prototype,"zIndex",2),p([u({type:String,reflect:!0,attribute:"append-to"})],It.prototype,"appendTo",2),p([u({type:String,attribute:"close-button-aria-label",reflect:!0})],It.prototype,"closeButtonAriaLabel",2),p([u({type:String,reflect:!0})],It.prototype,"strategy",2),p([u({type:String,reflect:!0})],It.prototype,"role",2),p([u({type:String,reflect:!0,attribute:"aria-labelledby"})],It.prototype,"ariaLabelledby",2),p([u({type:String,reflect:!0,attribute:"aria-describedby"})],It.prototype,"ariaDescribedby",2),p([u({type:Boolean,reflect:!0,attribute:"disable-aria-expanded"})],It.prototype,"disableAriaExpanded",2),p([u({type:Boolean,reflect:!0,attribute:"keep-connected-tooltip-open"})],It.prototype,"keepConnectedTooltipOpen",2);var Ve=It;var Pf=z.constructTagName("toggletip"),Co={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:wt.TOP,CLICK:ci.CLICK,SHOW_ARROW:!0};var gT=B`
|
|
2674
2674
|
:host {
|
|
2675
2675
|
--mdc-toggletip-max-width: 400px;
|
|
2676
2676
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|