@momentum-design/components 0.122.4 → 0.122.6
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 +7 -0
- package/dist/components/popover/popover.component.js +13 -0
- package/dist/components/popover/popover.constants.d.ts +1 -0
- package/dist/components/popover/popover.constants.js +1 -0
- package/dist/components/tablist/tablist.types.d.ts +5 -4
- package/dist/custom-elements.json +132 -0
- package/dist/index.d.ts +2 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -2534,7 +2534,7 @@
|
|
|
2534
2534
|
}
|
|
2535
2535
|
}
|
|
2536
2536
|
`],of=BE;var xo=class extends Bt(K){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>`}};xo.styles=[...K.styles,...of],p([u({type:Boolean,reflect:!0})],xo.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],xo.prototype,"readonly",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],xo.prototype,"softDisabled",2);var Pc=xo;var sf=V.constructTagName("staticradio");Pc.register(sf);var UE=Pc;Oc.register(kl);var GE=Oc;var Fr=Math.min,_e=Math.max,Oa=Math.round,Pa=Math.floor,Tr=n=>({x:n,y:n}),HE={left:"right",right:"left",bottom:"top",top:"bottom"},YE={start:"end",end:"start"};function Nl(n,o,t){return _e(n,Fr(o,t))}function Ao(n,o){return typeof n=="function"?n(o):n}function li(n){return n.split("-")[0]}function So(n){return n.split("-")[1]}function Dc(n){return n==="x"?"y":"x"}function Ll(n){return n==="y"?"height":"width"}var WE=new Set(["top","bottom"]);function Vr(n){return WE.has(li(n))?"y":"x"}function Rl(n){return Dc(Vr(n))}function lf(n,o,t){t===void 0&&(t=!1);let i=So(n),a=Rl(n),d=Ll(a),m=a==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(m=Ma(m)),[m,Ma(m)]}function df(n){let o=Ma(n);return[wl(n),o,wl(o)]}function wl(n){return n.replace(/start|end/g,o=>YE[o])}var af=["left","right"],nf=["right","left"],jE=["top","bottom"],KE=["bottom","top"];function qE(n,o,t){switch(n){case"top":case"bottom":return t?o?nf:af:o?af:nf;case"left":case"right":return o?jE:KE;default:return[]}}function cf(n,o,t,i){let a=So(n),d=qE(li(n),t==="start",i);return a&&(d=d.map(m=>m+"-"+a),o&&(d=d.concat(d.map(wl)))),d}function Ma(n){return n.replace(/left|right|bottom|top/g,o=>HE[o])}function XE(n){return{top:0,right:0,bottom:0,left:0,...n}}function $c(n){return typeof n!="number"?XE(n):{top:n,right:n,bottom:n,left:n}}function _o(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 hf(n,o,t){let{reference:i,floating:a}=n,d=Vr(o),m=Rl(o),b=Ll(m),C=li(o),L=d==="y",W=i.x+i.width/2-a.width/2,q=i.y+i.height/2-a.height/2,it=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:q};break;case"left":X={x:i.x-a.width,y:q};break;default:X={x:i.x,y:i.y}}switch(So(o)){case"start":X[m]-=it*(t&&L?-1:1);break;case"end":X[m]+=it*(t&&L?-1:1);break}return X}var pf=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:q}=hf(L,i,C),it=i,X={},rt=0;for(let lt=0;lt<b.length;lt++){let{name:dt,fn:gt}=b[lt],{x:At,y:Lt,data:jt,reset:Vt}=await gt({x:W,y:q,initialPlacement:i,placement:it,strategy:a,middlewareData:X,rects:L,platform:m,elements:{reference:n,floating:o}});W=At!=null?At:W,q=Lt!=null?Lt:q,X={...X,[dt]:{...X[dt],...jt}},Vt&&rt<=50&&(rt++,typeof Vt=="object"&&(Vt.placement&&(it=Vt.placement),Vt.rects&&(L=Vt.rects===!0?await m.getElementRects({reference:n,floating:o,strategy:a}):Vt.rects),{x:W,y:q}=hf(L,it,C)),lt=-1)}return{x:W,y:q,placement:it,strategy:a,middlewareData:X}};async function Ml(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:q="floating",altBoundary:it=!1,padding:X=0}=Ao(o,n),rt=$c(X),dt=b[it?q==="floating"?"reference":"floating":q],gt=_o(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=q==="floating"?{x:i,y:a,width:m.floating.width,height:m.floating.height}:m.reference,Lt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(b.floating)),jt=await(d.isElement==null?void 0:d.isElement(Lt))?await(d.getScale==null?void 0:d.getScale(Lt))||{x:1,y:1}:{x:1,y:1},Vt=_o(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:At,offsetParent:Lt,strategy:C}):At);return{top:(gt.top-Vt.top+rt.top)/jt.y,bottom:(Vt.bottom-gt.bottom+rt.bottom)/jt.y,left:(gt.left-Vt.left+rt.left)/jt.x,right:(Vt.right-gt.right+rt.right)/jt.x}}var mf=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}=Ao(n,o)||{};if(L==null)return{};let q=$c(W),it={x:t,y:i},X=Rl(a),rt=Ll(X),lt=await m.getDimensions(L),dt=X==="y",gt=dt?"top":"left",At=dt?"bottom":"right",Lt=dt?"clientHeight":"clientWidth",jt=d.reference[rt]+d.reference[X]-it[X]-d.floating[rt],Vt=it[X]-d.reference[X],Ut=await(m.getOffsetParent==null?void 0:m.getOffsetParent(L)),Zt=Ut?Ut[Lt]:0;(!Zt||!await(m.isElement==null?void 0:m.isElement(Ut)))&&(Zt=b.floating[Lt]||d.floating[rt]);let ne=jt/2-Vt/2,ur=Zt/2-lt[rt]/2-1,ke=Fr(q[gt],ur),Xe=Fr(q[At],ur),fr=ke,vr=Zt-lt[rt]-Xe,Ct=Zt/2-lt[rt]/2+ne,me=Nl(fr,Ct,vr),Ze=!C.arrow&&So(a)!=null&&Ct!==me&&d.reference[rt]/2-(Ct<fr?ke:Xe)-lt[rt]/2<0,Qe=Ze?Ct<fr?Ct-fr:Ct-vr:0;return{[X]:it[X]+Qe,data:{[X]:me,centerOffset:Ct-me-Qe,...Ze&&{alignmentOffset:Qe}},reset:Ze}}});var uf=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:q=!0,fallbackPlacements:it,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:rt="none",flipAlignment:lt=!0,...dt}=Ao(n,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let gt=li(a),At=Vr(b),Lt=li(b)===b,jt=await(C.isRTL==null?void 0:C.isRTL(L.floating)),Vt=it||(Lt||!lt?[Ma(b)]:df(b)),Ut=rt!=="none";!it&&Ut&&Vt.push(...cf(b,lt,rt,jt));let Zt=[b,...Vt],ne=await Ml(o,dt),ur=[],ke=((i=d.flip)==null?void 0:i.overflows)||[];if(W&&ur.push(ne[gt]),q){let Ct=lf(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&&(!(q==="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,un)=>tr+un,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 ZE=new Set(["left","top"]);async function QE(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=So(t),C=Vr(t)==="y",L=ZE.has(m)?-1:1,W=d&&C?-1:1,q=Ao(o,n),{mainAxis:it,crossAxis:X,alignmentAxis:rt}=typeof q=="number"?{mainAxis:q,crossAxis:0,alignmentAxis:null}:{mainAxis:q.mainAxis||0,crossAxis:q.crossAxis||0,alignmentAxis:q.alignmentAxis};return b&&typeof rt=="number"&&(X=b==="end"?rt*-1:rt),C?{x:X*W,y:it*L}:{x:it*L,y:X*W}}var ff=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 QE(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}}}}},vf=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}=Ao(n,o),L={x:t,y:i},W=await Ml(o,C),q=Vr(li(a)),it=Dc(q),X=L[it],rt=L[q];if(d){let dt=it==="y"?"top":"left",gt=it==="y"?"bottom":"right",At=X+W[dt],Lt=X-W[gt];X=Nl(At,X,Lt)}if(m){let dt=q==="y"?"top":"left",gt=q==="y"?"bottom":"right",At=rt+W[dt],Lt=rt-W[gt];rt=Nl(At,rt,Lt)}let lt=b.fn({...o,[it]:X,[q]:rt});return{...lt,data:{x:lt.x-t,y:lt.y-i,enabled:{[it]:d,[q]:m}}}}}};var gf=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}=Ao(n,o),W=await Ml(o,L),q=li(a),it=So(a),X=Vr(a)==="y",{width:rt,height:lt}=d.floating,dt,gt;q==="top"||q==="bottom"?(dt=q,gt=it===(await(m.isRTL==null?void 0:m.isRTL(b.floating))?"start":"end")?"left":"right"):(gt=q,dt=it==="end"?"top":"bottom");let At=lt-W.top-W.bottom,Lt=rt-W.left-W.right,jt=Fr(lt-W[dt],At),Vt=Fr(rt-W[gt],Lt),Ut=!o.middlewareData.shift,Zt=jt,ne=Vt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=Lt),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(Zt=At),Ut&&!it){let ke=_e(W.left,0),Xe=_e(W.right,0),fr=_e(W.top,0),vr=_e(W.bottom,0);X?ne=rt-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 rt!==ur.width||lt!==ur.height?{reset:{rects:!0}}:{}}}};function Ol(){return typeof window<"u"}function Io(n){return yf(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=(yf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function yf(n){return Ol()?n instanceof Node||n instanceof Fe(n).Node:!1}function nr(n){return Ol()?n instanceof Element||n instanceof Fe(n).Element:!1}function Ar(n){return Ol()?n instanceof HTMLElement||n instanceof Fe(n).HTMLElement:!1}function bf(n){return!Ol()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Fe(n).ShadowRoot}var JE=new Set(["inline","contents"]);function As(n){let{overflow:o,overflowX:t,overflowY:i,display:a}=lr(n);return/auto|scroll|overlay|hidden|clip/.test(o+i+t)&&!JE.has(a)}var tT=new Set(["table","td","th"]);function Ef(n){return tT.has(Io(n))}var eT=[":popover-open",":modal"];function Da(n){return eT.some(o=>{try{return n.matches(o)}catch{return!1}})}var rT=["transform","translate","scale","rotate","perspective"],iT=["transform","translate","scale","rotate","perspective","filter"],oT=["paint","layout","strict","content"];function Pl(n){let o=Dl(),t=nr(n)?lr(n):n;return rT.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)||iT.some(i=>(t.willChange||"").includes(i))||oT.some(i=>(t.contain||"").includes(i))}function Tf(n){let o=di(n);for(;Ar(o)&&!Co(o);){if(Pl(o))return o;if(Da(o))return null;o=di(o)}return null}function Dl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var sT=new Set(["html","body","#document"]);function Co(n){return sT.has(Io(n))}function lr(n){return Fe(n).getComputedStyle(n)}function $a(n){return nr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function di(n){if(Io(n)==="html")return n;let o=n.assignedSlot||n.parentNode||bf(n)&&n.host||xr(n);return bf(o)?o.host:o}function xf(n){let o=di(n);return Co(o)?n.ownerDocument?n.ownerDocument.body:n.body:Ar(o)&&As(o)?o:xf(o)}function xs(n,o,t){var i;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=xf(n),d=a===((i=n.ownerDocument)==null?void 0:i.body),m=Fe(a);if(d){let b=$l(m);return o.concat(m,m.visualViewport||[],As(a)?a:[],b&&t?xs(b):[])}return o.concat(a,xs(a,[],t))}function $l(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function _f(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=Oa(t)!==d||Oa(i)!==m;return b&&(t=d,i=m),{width:t,height:i,$:b}}function Vc(n){return nr(n)?n:n.contextElement}function Ss(n){let o=Vc(n);if(!Ar(o))return Tr(1);let t=o.getBoundingClientRect(),{width:i,height:a,$:d}=_f(o),m=(d?Oa(t.width):t.width)/i,b=(d?Oa(t.height):t.height)/a;return(!m||!Number.isFinite(m))&&(m=1),(!b||!Number.isFinite(b))&&(b=1),{x:m,y:b}}var aT=Tr(0);function If(n){let o=Fe(n);return!Dl()||!o.visualViewport?aT:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function nT(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==Fe(n)?!1:o}function ko(n,o,t,i){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=n.getBoundingClientRect(),d=Vc(n),m=Tr(1);o&&(i?nr(i)&&(m=Ss(i)):m=Ss(n));let b=nT(d,t,i)?If(d):Tr(0),C=(a.left+b.x)/m.x,L=(a.top+b.y)/m.y,W=a.width/m.x,q=a.height/m.y;if(d){let it=Fe(d),X=i&&nr(i)?Fe(i):i,rt=it,lt=$l(rt);for(;lt&&i&&X!==rt;){let dt=Ss(lt),gt=lt.getBoundingClientRect(),At=lr(lt),Lt=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,q*=dt.y,C+=Lt,L+=jt,rt=Fe(lt),lt=$l(rt)}}return _o({width:W,height:q,x:C,y:L})}function zc(n,o){let t=$a(n).scrollLeft;return o?o.left+t:ko(xr(n)).left+t}function Cf(n,o,t){t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=i.left+o.scrollLeft-(t?0:zc(n,i)),d=i.top+o.scrollTop;return{x:a,y:d}}function lT(n){let{elements:o,rect:t,offsetParent:i,strategy:a}=n,d=a==="fixed",m=xr(i),b=o?Da(o.floating):!1;if(i===m||b&&d)return t;let C={scrollLeft:0,scrollTop:0},L=Tr(1),W=Tr(0),q=Ar(i);if((q||!q&&!d)&&((Io(i)!=="body"||As(m))&&(C=$a(i)),Ar(i))){let X=ko(i);L=Ss(i),W.x=X.x+i.clientLeft,W.y=X.y+i.clientTop}let it=m&&!q&&!d?Cf(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+it.x,y:t.y*L.y-C.scrollTop*L.y+W.y+it.y}}function dT(n){return Array.from(n.getClientRects())}function cT(n){let o=xr(n),t=$a(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+zc(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 hT(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=Dl();(!L||L&&o==="fixed")&&(b=a.offsetLeft,C=a.offsetTop)}return{width:d,height:m,x:b,y:C}}var pT=new Set(["absolute","fixed"]);function mT(n,o){let t=ko(n,!0,o==="fixed"),i=t.top+n.clientTop,a=t.left+n.clientLeft,d=Ar(n)?Ss(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 Af(n,o,t){let i;if(o==="viewport")i=hT(n,t);else if(o==="document")i=cT(xr(n));else if(nr(o))i=mT(o,t);else{let a=If(n);i={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return _o(i)}function kf(n,o){let t=di(n);return t===o||!nr(t)||Co(t)?!1:lr(t).position==="fixed"||kf(t,o)}function uT(n,o){let t=o.get(n);if(t)return t;let i=xs(n,[],!1).filter(b=>nr(b)&&Io(b)!=="body"),a=null,d=lr(n).position==="fixed",m=d?di(n):n;for(;nr(m)&&!Co(m);){let b=lr(m),C=Pl(m);!C&&b.position==="fixed"&&(a=null),(d?!C&&!a:!C&&b.position==="static"&&!!a&&pT.has(a.position)||As(m)&&!C&&kf(n,m))?i=i.filter(W=>W!==m):a=b,m=di(m)}return o.set(n,i),i}function fT(n){let{element:o,boundary:t,rootBoundary:i,strategy:a}=n,m=[...t==="clippingAncestors"?Da(o)?[]:uT(o,this._c):[].concat(t),i],b=m[0],C=m.reduce((L,W)=>{let q=Af(o,W,a);return L.top=_e(q.top,L.top),L.right=Fr(q.right,L.right),L.bottom=Fr(q.bottom,L.bottom),L.left=_e(q.left,L.left),L},Af(o,b,a));return{width:C.right-C.left,height:C.bottom-C.top,x:C.left,y:C.top}}function vT(n){let{width:o,height:t}=_f(n);return{width:o,height:t}}function gT(n,o,t){let i=Ar(o),a=xr(o),d=t==="fixed",m=ko(n,!0,d,o),b={scrollLeft:0,scrollTop:0},C=Tr(0);function L(){C.x=zc(a)}if(i||!i&&!d)if((Io(o)!=="body"||As(a))&&(b=$a(o)),i){let X=ko(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?Cf(a,b):Tr(0),q=m.left+b.scrollLeft-C.x-W.x,it=m.top+b.scrollTop-C.y-W.y;return{x:q,y:it,width:m.width,height:m.height}}function Fc(n){return lr(n).position==="static"}function Sf(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 wf(n,o){let t=Fe(n);if(Da(n))return t;if(!Ar(n)){let a=di(n);for(;a&&!Co(a);){if(nr(a)&&!Fc(a))return a;a=di(a)}return t}let i=Sf(n,o);for(;i&&Ef(i)&&Fc(i);)i=Sf(i,o);return i&&Co(i)&&Fc(i)&&!Pl(i)?t:i||Tf(n)||t}var bT=async function(n){let o=this.getOffsetParent||wf,t=this.getDimensions,i=await t(n.floating);return{reference:gT(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function yT(n){return lr(n).direction==="rtl"}var ET={convertOffsetParentRelativeRectToViewportRelativeRect:lT,getDocumentElement:xr,getClippingRect:fT,getOffsetParent:wf,getElementRects:bT,getClientRects:dT,getDimensions:vT,getScale:Ss,isElement:nr,isRTL:yT};function Nf(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function TT(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:q,width:it,height:X}=L;if(b||o(),!it||!X)return;let rt=Pa(q),lt=Pa(a.clientWidth-(W+it)),dt=Pa(a.clientHeight-(q+X)),gt=Pa(W),Lt={rootMargin:-rt+"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&&!Nf(L,n.getBoundingClientRect())&&m(),jt=!1}try{t=new IntersectionObserver(Vt,{...Lt,root:a.ownerDocument})}catch{t=new IntersectionObserver(Vt,Lt)}t.observe(n)}return m(!0),d}function Lf(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=Vc(n),W=a||d?[...L?xs(L):[],...xs(o)]:[];W.forEach(gt=>{a&>.addEventListener("scroll",t,{passive:!0}),d&>.addEventListener("resize",t)});let q=L&&b?TT(L,t):null,it=-1,X=null;m&&(X=new ResizeObserver(gt=>{let[At]=gt;At&&At.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(it),it=requestAnimationFrame(()=>{var Lt;(Lt=X)==null||Lt.observe(o)})),t()}),L&&!C&&X.observe(L),X.observe(o));let rt,lt=C?ko(n):null;C&&dt();function dt(){let gt=ko(n);lt&&!Nf(lt,gt)&&t(),lt=gt,rt=requestAnimationFrame(dt)}return t(),()=>{var gt;W.forEach(At=>{a&&At.removeEventListener("scroll",t),d&&At.removeEventListener("resize",t)}),q==null||q(),(gt=X)==null||gt.disconnect(),X=null,C&&cancelAnimationFrame(rt)}}var Rf=ff;var Mf=vf,Of=uf,Pf=gf;var Df=mf;var $f=(n,o,t)=>{let i=new Map,a={platform:ET,...t},d={...a.platform,_c:i};return pf(n,o,{...a,platform:d})};var Ff=V.constructTagName("popover"),kt={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"},wo={TONAL:"tonal",CONTRAST:"contrast"},xT={ABSOLUTE:"absolute",FIXED:"fixed"},_t={PLACEMENT:kt.BOTTOM,TRIGGER:ci.CLICK,COLOR:wo.TONAL,STRATEGY:xT.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:et.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 Bc=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 Bc;var AT=B`
|
|
2537
|
+
<span part="radio-icon" class="radio-icon"></span>`}};xo.styles=[...K.styles,...of],p([u({type:Boolean,reflect:!0})],xo.prototype,"checked",2),p([u({type:Boolean,reflect:!0})],xo.prototype,"readonly",2),p([u({type:Boolean,attribute:"soft-disabled",reflect:!0})],xo.prototype,"softDisabled",2);var Pc=xo;var sf=V.constructTagName("staticradio");Pc.register(sf);var UE=Pc;Oc.register(kl);var GE=Oc;var Fr=Math.min,_e=Math.max,Oa=Math.round,Pa=Math.floor,Tr=n=>({x:n,y:n}),HE={left:"right",right:"left",bottom:"top",top:"bottom"},YE={start:"end",end:"start"};function Nl(n,o,t){return _e(n,Fr(o,t))}function Ao(n,o){return typeof n=="function"?n(o):n}function li(n){return n.split("-")[0]}function So(n){return n.split("-")[1]}function Dc(n){return n==="x"?"y":"x"}function Ll(n){return n==="y"?"height":"width"}var WE=new Set(["top","bottom"]);function Vr(n){return WE.has(li(n))?"y":"x"}function Rl(n){return Dc(Vr(n))}function lf(n,o,t){t===void 0&&(t=!1);let i=So(n),a=Rl(n),d=Ll(a),m=a==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[d]>o.floating[d]&&(m=Ma(m)),[m,Ma(m)]}function df(n){let o=Ma(n);return[wl(n),o,wl(o)]}function wl(n){return n.replace(/start|end/g,o=>YE[o])}var af=["left","right"],nf=["right","left"],jE=["top","bottom"],KE=["bottom","top"];function qE(n,o,t){switch(n){case"top":case"bottom":return t?o?nf:af:o?af:nf;case"left":case"right":return o?jE:KE;default:return[]}}function cf(n,o,t,i){let a=So(n),d=qE(li(n),t==="start",i);return a&&(d=d.map(m=>m+"-"+a),o&&(d=d.concat(d.map(wl)))),d}function Ma(n){return n.replace(/left|right|bottom|top/g,o=>HE[o])}function XE(n){return{top:0,right:0,bottom:0,left:0,...n}}function $c(n){return typeof n!="number"?XE(n):{top:n,right:n,bottom:n,left:n}}function _o(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 hf(n,o,t){let{reference:i,floating:a}=n,d=Vr(o),m=Rl(o),b=Ll(m),C=li(o),L=d==="y",W=i.x+i.width/2-a.width/2,q=i.y+i.height/2-a.height/2,it=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:q};break;case"left":X={x:i.x-a.width,y:q};break;default:X={x:i.x,y:i.y}}switch(So(o)){case"start":X[m]-=it*(t&&L?-1:1);break;case"end":X[m]+=it*(t&&L?-1:1);break}return X}var pf=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:q}=hf(L,i,C),it=i,X={},rt=0;for(let lt=0;lt<b.length;lt++){let{name:dt,fn:gt}=b[lt],{x:At,y:Lt,data:jt,reset:Vt}=await gt({x:W,y:q,initialPlacement:i,placement:it,strategy:a,middlewareData:X,rects:L,platform:m,elements:{reference:n,floating:o}});W=At!=null?At:W,q=Lt!=null?Lt:q,X={...X,[dt]:{...X[dt],...jt}},Vt&&rt<=50&&(rt++,typeof Vt=="object"&&(Vt.placement&&(it=Vt.placement),Vt.rects&&(L=Vt.rects===!0?await m.getElementRects({reference:n,floating:o,strategy:a}):Vt.rects),{x:W,y:q}=hf(L,it,C)),lt=-1)}return{x:W,y:q,placement:it,strategy:a,middlewareData:X}};async function Ml(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:q="floating",altBoundary:it=!1,padding:X=0}=Ao(o,n),rt=$c(X),dt=b[it?q==="floating"?"reference":"floating":q],gt=_o(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=q==="floating"?{x:i,y:a,width:m.floating.width,height:m.floating.height}:m.reference,Lt=await(d.getOffsetParent==null?void 0:d.getOffsetParent(b.floating)),jt=await(d.isElement==null?void 0:d.isElement(Lt))?await(d.getScale==null?void 0:d.getScale(Lt))||{x:1,y:1}:{x:1,y:1},Vt=_o(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:b,rect:At,offsetParent:Lt,strategy:C}):At);return{top:(gt.top-Vt.top+rt.top)/jt.y,bottom:(Vt.bottom-gt.bottom+rt.bottom)/jt.y,left:(gt.left-Vt.left+rt.left)/jt.x,right:(Vt.right-gt.right+rt.right)/jt.x}}var mf=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}=Ao(n,o)||{};if(L==null)return{};let q=$c(W),it={x:t,y:i},X=Rl(a),rt=Ll(X),lt=await m.getDimensions(L),dt=X==="y",gt=dt?"top":"left",At=dt?"bottom":"right",Lt=dt?"clientHeight":"clientWidth",jt=d.reference[rt]+d.reference[X]-it[X]-d.floating[rt],Vt=it[X]-d.reference[X],Ut=await(m.getOffsetParent==null?void 0:m.getOffsetParent(L)),Zt=Ut?Ut[Lt]:0;(!Zt||!await(m.isElement==null?void 0:m.isElement(Ut)))&&(Zt=b.floating[Lt]||d.floating[rt]);let ne=jt/2-Vt/2,ur=Zt/2-lt[rt]/2-1,ke=Fr(q[gt],ur),Xe=Fr(q[At],ur),fr=ke,vr=Zt-lt[rt]-Xe,Ct=Zt/2-lt[rt]/2+ne,me=Nl(fr,Ct,vr),Ze=!C.arrow&&So(a)!=null&&Ct!==me&&d.reference[rt]/2-(Ct<fr?ke:Xe)-lt[rt]/2<0,Qe=Ze?Ct<fr?Ct-fr:Ct-vr:0;return{[X]:it[X]+Qe,data:{[X]:me,centerOffset:Ct-me-Qe,...Ze&&{alignmentOffset:Qe}},reset:Ze}}});var uf=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:q=!0,fallbackPlacements:it,fallbackStrategy:X="bestFit",fallbackAxisSideDirection:rt="none",flipAlignment:lt=!0,...dt}=Ao(n,o);if((t=d.arrow)!=null&&t.alignmentOffset)return{};let gt=li(a),At=Vr(b),Lt=li(b)===b,jt=await(C.isRTL==null?void 0:C.isRTL(L.floating)),Vt=it||(Lt||!lt?[Ma(b)]:df(b)),Ut=rt!=="none";!it&&Ut&&Vt.push(...cf(b,lt,rt,jt));let Zt=[b,...Vt],ne=await Ml(o,dt),ur=[],ke=((i=d.flip)==null?void 0:i.overflows)||[];if(W&&ur.push(ne[gt]),q){let Ct=lf(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&&(!(q==="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,un)=>tr+un,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 ZE=new Set(["left","top"]);async function QE(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=So(t),C=Vr(t)==="y",L=ZE.has(m)?-1:1,W=d&&C?-1:1,q=Ao(o,n),{mainAxis:it,crossAxis:X,alignmentAxis:rt}=typeof q=="number"?{mainAxis:q,crossAxis:0,alignmentAxis:null}:{mainAxis:q.mainAxis||0,crossAxis:q.crossAxis||0,alignmentAxis:q.alignmentAxis};return b&&typeof rt=="number"&&(X=b==="end"?rt*-1:rt),C?{x:X*W,y:it*L}:{x:it*L,y:X*W}}var ff=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 QE(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}}}}},vf=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}=Ao(n,o),L={x:t,y:i},W=await Ml(o,C),q=Vr(li(a)),it=Dc(q),X=L[it],rt=L[q];if(d){let dt=it==="y"?"top":"left",gt=it==="y"?"bottom":"right",At=X+W[dt],Lt=X-W[gt];X=Nl(At,X,Lt)}if(m){let dt=q==="y"?"top":"left",gt=q==="y"?"bottom":"right",At=rt+W[dt],Lt=rt-W[gt];rt=Nl(At,rt,Lt)}let lt=b.fn({...o,[it]:X,[q]:rt});return{...lt,data:{x:lt.x-t,y:lt.y-i,enabled:{[it]:d,[q]:m}}}}}};var gf=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}=Ao(n,o),W=await Ml(o,L),q=li(a),it=So(a),X=Vr(a)==="y",{width:rt,height:lt}=d.floating,dt,gt;q==="top"||q==="bottom"?(dt=q,gt=it===(await(m.isRTL==null?void 0:m.isRTL(b.floating))?"start":"end")?"left":"right"):(gt=q,dt=it==="end"?"top":"bottom");let At=lt-W.top-W.bottom,Lt=rt-W.left-W.right,jt=Fr(lt-W[dt],At),Vt=Fr(rt-W[gt],Lt),Ut=!o.middlewareData.shift,Zt=jt,ne=Vt;if((t=o.middlewareData.shift)!=null&&t.enabled.x&&(ne=Lt),(i=o.middlewareData.shift)!=null&&i.enabled.y&&(Zt=At),Ut&&!it){let ke=_e(W.left,0),Xe=_e(W.right,0),fr=_e(W.top,0),vr=_e(W.bottom,0);X?ne=rt-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 rt!==ur.width||lt!==ur.height?{reset:{rects:!0}}:{}}}};function Ol(){return typeof window<"u"}function Io(n){return yf(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=(yf(n)?n.ownerDocument:n.document)||window.document)==null?void 0:o.documentElement}function yf(n){return Ol()?n instanceof Node||n instanceof Fe(n).Node:!1}function nr(n){return Ol()?n instanceof Element||n instanceof Fe(n).Element:!1}function Ar(n){return Ol()?n instanceof HTMLElement||n instanceof Fe(n).HTMLElement:!1}function bf(n){return!Ol()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Fe(n).ShadowRoot}var JE=new Set(["inline","contents"]);function As(n){let{overflow:o,overflowX:t,overflowY:i,display:a}=lr(n);return/auto|scroll|overlay|hidden|clip/.test(o+i+t)&&!JE.has(a)}var tT=new Set(["table","td","th"]);function Ef(n){return tT.has(Io(n))}var eT=[":popover-open",":modal"];function Da(n){return eT.some(o=>{try{return n.matches(o)}catch{return!1}})}var rT=["transform","translate","scale","rotate","perspective"],iT=["transform","translate","scale","rotate","perspective","filter"],oT=["paint","layout","strict","content"];function Pl(n){let o=Dl(),t=nr(n)?lr(n):n;return rT.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)||iT.some(i=>(t.willChange||"").includes(i))||oT.some(i=>(t.contain||"").includes(i))}function Tf(n){let o=di(n);for(;Ar(o)&&!Co(o);){if(Pl(o))return o;if(Da(o))return null;o=di(o)}return null}function Dl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var sT=new Set(["html","body","#document"]);function Co(n){return sT.has(Io(n))}function lr(n){return Fe(n).getComputedStyle(n)}function $a(n){return nr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function di(n){if(Io(n)==="html")return n;let o=n.assignedSlot||n.parentNode||bf(n)&&n.host||xr(n);return bf(o)?o.host:o}function xf(n){let o=di(n);return Co(o)?n.ownerDocument?n.ownerDocument.body:n.body:Ar(o)&&As(o)?o:xf(o)}function xs(n,o,t){var i;o===void 0&&(o=[]),t===void 0&&(t=!0);let a=xf(n),d=a===((i=n.ownerDocument)==null?void 0:i.body),m=Fe(a);if(d){let b=$l(m);return o.concat(m,m.visualViewport||[],As(a)?a:[],b&&t?xs(b):[])}return o.concat(a,xs(a,[],t))}function $l(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function _f(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=Oa(t)!==d||Oa(i)!==m;return b&&(t=d,i=m),{width:t,height:i,$:b}}function Vc(n){return nr(n)?n:n.contextElement}function Ss(n){let o=Vc(n);if(!Ar(o))return Tr(1);let t=o.getBoundingClientRect(),{width:i,height:a,$:d}=_f(o),m=(d?Oa(t.width):t.width)/i,b=(d?Oa(t.height):t.height)/a;return(!m||!Number.isFinite(m))&&(m=1),(!b||!Number.isFinite(b))&&(b=1),{x:m,y:b}}var aT=Tr(0);function If(n){let o=Fe(n);return!Dl()||!o.visualViewport?aT:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function nT(n,o,t){return o===void 0&&(o=!1),!t||o&&t!==Fe(n)?!1:o}function ko(n,o,t,i){o===void 0&&(o=!1),t===void 0&&(t=!1);let a=n.getBoundingClientRect(),d=Vc(n),m=Tr(1);o&&(i?nr(i)&&(m=Ss(i)):m=Ss(n));let b=nT(d,t,i)?If(d):Tr(0),C=(a.left+b.x)/m.x,L=(a.top+b.y)/m.y,W=a.width/m.x,q=a.height/m.y;if(d){let it=Fe(d),X=i&&nr(i)?Fe(i):i,rt=it,lt=$l(rt);for(;lt&&i&&X!==rt;){let dt=Ss(lt),gt=lt.getBoundingClientRect(),At=lr(lt),Lt=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,q*=dt.y,C+=Lt,L+=jt,rt=Fe(lt),lt=$l(rt)}}return _o({width:W,height:q,x:C,y:L})}function zc(n,o){let t=$a(n).scrollLeft;return o?o.left+t:ko(xr(n)).left+t}function Cf(n,o,t){t===void 0&&(t=!1);let i=n.getBoundingClientRect(),a=i.left+o.scrollLeft-(t?0:zc(n,i)),d=i.top+o.scrollTop;return{x:a,y:d}}function lT(n){let{elements:o,rect:t,offsetParent:i,strategy:a}=n,d=a==="fixed",m=xr(i),b=o?Da(o.floating):!1;if(i===m||b&&d)return t;let C={scrollLeft:0,scrollTop:0},L=Tr(1),W=Tr(0),q=Ar(i);if((q||!q&&!d)&&((Io(i)!=="body"||As(m))&&(C=$a(i)),Ar(i))){let X=ko(i);L=Ss(i),W.x=X.x+i.clientLeft,W.y=X.y+i.clientTop}let it=m&&!q&&!d?Cf(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+it.x,y:t.y*L.y-C.scrollTop*L.y+W.y+it.y}}function dT(n){return Array.from(n.getClientRects())}function cT(n){let o=xr(n),t=$a(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+zc(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 hT(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=Dl();(!L||L&&o==="fixed")&&(b=a.offsetLeft,C=a.offsetTop)}return{width:d,height:m,x:b,y:C}}var pT=new Set(["absolute","fixed"]);function mT(n,o){let t=ko(n,!0,o==="fixed"),i=t.top+n.clientTop,a=t.left+n.clientLeft,d=Ar(n)?Ss(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 Af(n,o,t){let i;if(o==="viewport")i=hT(n,t);else if(o==="document")i=cT(xr(n));else if(nr(o))i=mT(o,t);else{let a=If(n);i={x:o.x-a.x,y:o.y-a.y,width:o.width,height:o.height}}return _o(i)}function kf(n,o){let t=di(n);return t===o||!nr(t)||Co(t)?!1:lr(t).position==="fixed"||kf(t,o)}function uT(n,o){let t=o.get(n);if(t)return t;let i=xs(n,[],!1).filter(b=>nr(b)&&Io(b)!=="body"),a=null,d=lr(n).position==="fixed",m=d?di(n):n;for(;nr(m)&&!Co(m);){let b=lr(m),C=Pl(m);!C&&b.position==="fixed"&&(a=null),(d?!C&&!a:!C&&b.position==="static"&&!!a&&pT.has(a.position)||As(m)&&!C&&kf(n,m))?i=i.filter(W=>W!==m):a=b,m=di(m)}return o.set(n,i),i}function fT(n){let{element:o,boundary:t,rootBoundary:i,strategy:a}=n,m=[...t==="clippingAncestors"?Da(o)?[]:uT(o,this._c):[].concat(t),i],b=m[0],C=m.reduce((L,W)=>{let q=Af(o,W,a);return L.top=_e(q.top,L.top),L.right=Fr(q.right,L.right),L.bottom=Fr(q.bottom,L.bottom),L.left=_e(q.left,L.left),L},Af(o,b,a));return{width:C.right-C.left,height:C.bottom-C.top,x:C.left,y:C.top}}function vT(n){let{width:o,height:t}=_f(n);return{width:o,height:t}}function gT(n,o,t){let i=Ar(o),a=xr(o),d=t==="fixed",m=ko(n,!0,d,o),b={scrollLeft:0,scrollTop:0},C=Tr(0);function L(){C.x=zc(a)}if(i||!i&&!d)if((Io(o)!=="body"||As(a))&&(b=$a(o)),i){let X=ko(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?Cf(a,b):Tr(0),q=m.left+b.scrollLeft-C.x-W.x,it=m.top+b.scrollTop-C.y-W.y;return{x:q,y:it,width:m.width,height:m.height}}function Fc(n){return lr(n).position==="static"}function Sf(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 wf(n,o){let t=Fe(n);if(Da(n))return t;if(!Ar(n)){let a=di(n);for(;a&&!Co(a);){if(nr(a)&&!Fc(a))return a;a=di(a)}return t}let i=Sf(n,o);for(;i&&Ef(i)&&Fc(i);)i=Sf(i,o);return i&&Co(i)&&Fc(i)&&!Pl(i)?t:i||Tf(n)||t}var bT=async function(n){let o=this.getOffsetParent||wf,t=this.getDimensions,i=await t(n.floating);return{reference:gT(n.reference,await o(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function yT(n){return lr(n).direction==="rtl"}var ET={convertOffsetParentRelativeRectToViewportRelativeRect:lT,getDocumentElement:xr,getClippingRect:fT,getOffsetParent:wf,getElementRects:bT,getClientRects:dT,getDimensions:vT,getScale:Ss,isElement:nr,isRTL:yT};function Nf(n,o){return n.x===o.x&&n.y===o.y&&n.width===o.width&&n.height===o.height}function TT(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:q,width:it,height:X}=L;if(b||o(),!it||!X)return;let rt=Pa(q),lt=Pa(a.clientWidth-(W+it)),dt=Pa(a.clientHeight-(q+X)),gt=Pa(W),Lt={rootMargin:-rt+"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&&!Nf(L,n.getBoundingClientRect())&&m(),jt=!1}try{t=new IntersectionObserver(Vt,{...Lt,root:a.ownerDocument})}catch{t=new IntersectionObserver(Vt,Lt)}t.observe(n)}return m(!0),d}function Lf(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=Vc(n),W=a||d?[...L?xs(L):[],...xs(o)]:[];W.forEach(gt=>{a&>.addEventListener("scroll",t,{passive:!0}),d&>.addEventListener("resize",t)});let q=L&&b?TT(L,t):null,it=-1,X=null;m&&(X=new ResizeObserver(gt=>{let[At]=gt;At&&At.target===L&&X&&(X.unobserve(o),cancelAnimationFrame(it),it=requestAnimationFrame(()=>{var Lt;(Lt=X)==null||Lt.observe(o)})),t()}),L&&!C&&X.observe(L),X.observe(o));let rt,lt=C?ko(n):null;C&&dt();function dt(){let gt=ko(n);lt&&!Nf(lt,gt)&&t(),lt=gt,rt=requestAnimationFrame(dt)}return t(),()=>{var gt;W.forEach(At=>{a&&At.removeEventListener("scroll",t),d&&At.removeEventListener("resize",t)}),q==null||q(),(gt=X)==null||gt.disconnect(),X=null,C&&cancelAnimationFrame(rt)}}var Rf=ff;var Mf=vf,Of=uf,Pf=gf;var Df=mf;var $f=(n,o,t)=>{let i=new Map,a={platform:ET,...t},d={...a.platform,_c:i};return pf(n,o,{...a,platform:d})};var Ff=V.constructTagName("popover"),kt={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"},wo={TONAL:"tonal",CONTRAST:"contrast"},xT={ABSOLUTE:"absolute",FIXED:"fixed"},_t={PLACEMENT:kt.BOTTOM,TRIGGER:ci.CLICK,COLOR:wo.TONAL,STRATEGY:xT.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:et.DIALOG,Z_INDEX:1e3,DISABLE_ARIA_EXPANDED:!1,PROPAGATE_EVENT_ON_ESCAPE:!1,KEEP_CONNECTED_TOOLTIP_OPEN:!1,IS_BACKDROP_INVISIBLE:!0,ANIMATION_FRAME:!1};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 Bc=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 Bc;var AT=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
|
-
`,Vf=[AT];var Vl=V.constructTagName("popoverportal"),Fl=class extends K{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var zl=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(Vl),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.ariaLabel&&(this.popover.ariaLabelledby=((i=this.popover.triggerElement)==null?void 0:i.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.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 q=C!=null&&C[a]?12-Math.abs(b[a]-C[a]):0;Math.round(q)===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 fl(hl(cl(K))){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=[Mf({boundary:i,rootBoundary:a,padding:this.boundaryPadding})],m=this.offset;if(this.flip&&d.push(Of({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(Pf({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(Df({element:this.arrowElement,padding:12}))}d.push(Rf(m)),this.floatingUICleanupFunction=Lf(t,this,async()=>{let{triggerElement:b}=this;if(!b)return;let C=this.adjustPlacementForRtl(this.placement),{x:L,y:W,middlewareData:q,placement:it}=await $f(b,this,{placement:C,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(L,W),q.arrow&&this.arrowElement&&this.utils.updateArrowStyle(q.arrow,it),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(it)})};this.utils=new zl(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(kt).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(wo).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 kt.LEFT:return kt.RIGHT;case kt.LEFT_START:return kt.RIGHT_START;case kt.LEFT_END:return kt.RIGHT_END;case kt.RIGHT:return kt.LEFT;case kt.RIGHT_START:return kt.LEFT_START;case kt.RIGHT_END:return kt.LEFT_END;default:return t}}render(){return _`
|
|
2659
|
+
`,Vf=[AT];var Vl=V.constructTagName("popoverportal"),Fl=class extends K{connectedCallback(){super.connectedCallback(),this.ariaHidden="true",this.style.display="none"}disconnectedCallback(){var o;super.disconnectedCallback(),(o=this.onDisconnect)==null||o.call(this)}};var zl=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(Vl),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.ariaLabel&&(this.popover.ariaLabelledby=((i=this.popover.triggerElement)==null?void 0:i.id)||""))}updateAriaModal(){this.popover.role===et.DIALOG||this.popover.role===et.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 q=C!=null&&C[a]?12-Math.abs(b[a]-C[a]):0;Math.round(q)===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 fl(hl(cl(K))){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.animationFrame=_t.ANIMATION_FRAME;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=[Mf({boundary:i,rootBoundary:a,padding:this.boundaryPadding})],m=this.offset;if(this.flip&&d.push(Of({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(Pf({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(Df({element:this.arrowElement,padding:12}))}d.push(Rf(m)),this.floatingUICleanupFunction=Lf(t,this,async()=>{let{triggerElement:b}=this;if(!b)return;let C=this.adjustPlacementForRtl(this.placement),{x:L,y:W,middlewareData:q,placement:it}=await $f(b,this,{placement:C,middleware:d,strategy:this.strategy});this.utils.updatePopoverStyle(L,W),q.arrow&&this.arrowElement&&this.utils.updateArrowStyle(q.arrow,it),this.trigger.includes("mouseenter")&&this.utils.setupHoverBridge(it)},{animationFrame:this.animationFrame})};this.utils=new zl(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(kt).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(wo).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 kt.LEFT:return kt.RIGHT;case kt.LEFT_START:return kt.RIGHT_START;case kt.LEFT_END:return kt.RIGHT_END;case kt.RIGHT:return kt.LEFT;case kt.RIGHT_START:return kt.LEFT_START;case kt.RIGHT_END:return kt.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=[...K.styles,...Vf],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 zf=V.constructTagName("toggletip"),No={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:kt.TOP,CLICK:ci.CLICK,SHOW_ARROW:!0};var ST=B`
|
|
2673
|
+
`}};It.styles=[...K.styles,...Vf],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),p([u({type:Boolean,reflect:!0,attribute:"animation-frame"})],It.prototype,"animationFrame",2);var Ve=It;var zf=V.constructTagName("toggletip"),No={CLOSE_BUTTON:!0,CLOSE_BUTTON_ARIA_LABEL:"Close",OFFSET:4,PLACEMENT:kt.TOP,CLICK:ci.CLICK,SHOW_ARROW:!0};var ST=B`
|
|
2674
2674
|
:host {
|
|
2675
2675
|
--mdc-toggletip-max-width: 400px;
|
|
2676
2676
|
--mdc-toggletip-text-color: var(--mds-color-theme-text-primary-normal);
|