@fluid-topics/ft-tree-selector 1.2.61 → 1.2.63
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var Za=Object.create;var bo=Object.defineProperty;var Fa=Object.getOwnPropertyDescriptor;var Ka=Object.getOwnPropertyNames;var Va=Object.getPrototypeOf,ja=Object.prototype.hasOwnProperty;var Ut=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var Ya=(e,o,a,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of Ka(o))!ja.call(e,c)&&c!==a&&bo(e,c,{get:()=>o[c],enumerable:!(n=Fa(o,c))||n.enumerable});return e};var b=(e,o,a)=>(a=e!=null?Za(Va(e)):{},Ya(o||!e||!e.__esModule?bo(a,"default",{value:e,enumerable:!0}):a,e));var E=Ut((wn,xo)=>{xo.exports=ftGlobals.wcUtils});var _=Ut((En,So)=>{So.exports=ftGlobals.lit});var ie=Ut((Ln,Co)=>{Co.exports=ftGlobals.litClassMap});var ft=Ut((Rn,Oo)=>{Oo.exports=ftGlobals.litDecorators});var Sa=Ut((Xd,xa)=>{xa.exports=ftGlobals.litUnsafeHTML});var _a=Ut((df,Ha)=>{Ha.exports=ftGlobals.litRepeat});var Ua=b(E());var Y=b(_()),Da=b(ie()),wt=b(E());var $a=b(_())
|
|
1
|
+
"use strict";(()=>{var Za=Object.create;var bo=Object.defineProperty;var Fa=Object.getOwnPropertyDescriptor;var Ka=Object.getOwnPropertyNames;var Va=Object.getPrototypeOf,ja=Object.prototype.hasOwnProperty;var Ut=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var Ya=(e,o,a,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let c of Ka(o))!ja.call(e,c)&&c!==a&&bo(e,c,{get:()=>o[c],enumerable:!(n=Fa(o,c))||n.enumerable});return e};var b=(e,o,a)=>(a=e!=null?Za(Va(e)):{},Ya(o||!e||!e.__esModule?bo(a,"default",{value:e,enumerable:!0}):a,e));var E=Ut((wn,xo)=>{xo.exports=ftGlobals.wcUtils});var _=Ut((En,So)=>{So.exports=ftGlobals.lit});var ie=Ut((Ln,Co)=>{Co.exports=ftGlobals.litClassMap});var ft=Ut((Rn,Oo)=>{Oo.exports=ftGlobals.litDecorators});var Sa=Ut((Xd,xa)=>{xa.exports=ftGlobals.litUnsafeHTML});var _a=Ut((df,Ha)=>{Ha.exports=ftGlobals.litRepeat});var Ua=b(E());var Y=b(_()),Da=b(ie()),wt=b(E());var $a=b(_()),B=b(E());var po=b(E());var Se=b(ft()),La=b(E());var Cr=b(_()),O=b(E());var Ro=b(_()),W=b(E()),vo=W.FtCssVariableFactory.extend("--ft-ripple-color","",W.designSystemVariables.colorContent),u={color:vo,backgroundColor:W.FtCssVariableFactory.extend("--ft-ripple-background-color","",vo),opacityContentOnSurfacePressed:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:W.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},No=W.FtCssVariableFactory.extend("--ft-ripple-color","",W.designSystemVariables.colorPrimary),wo={color:No,backgroundColor:W.FtCssVariableFactory.extend("--ft-ripple-background-color","",No)},Eo=W.FtCssVariableFactory.extend("--ft-ripple-color","",W.designSystemVariables.colorSecondary),Lo={color:Eo,backgroundColor:W.FtCssVariableFactory.extend("--ft-ripple-background-color","",Eo)},Ao=Ro.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -482,7 +482,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
482
482
|
</div>
|
|
483
483
|
`}contentAvailableCallback(o){super.contentAvailableCallback(o),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(o){var a,n;super.update(o),o.has("disabled")&&(this.disabled?(this.endRipple(),(a=this.target)===null||a===void 0||a.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var o,a;let n=(o=this.shadowRoot)===null||o===void 0?void 0:o.host.parentElement;n&&this.setupFor((a=this.target)!==null&&a!==void 0?a:n)}forceFocusUpdate(){var o;!((o=this.target)===null||o===void 0)&&o.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(o){if(this.setupDebouncer.cancel(),this.target===o)return;this.onDisconnect&&this.onDisconnect(),this.target=o,o.setAttribute("data-is-ft-ripple-target","true");let a=(...p)=>y=>{p.forEach(m=>window.addEventListener(m,this.endPress,{once:!0})),this.startPress(y)},n=a("mouseup","contextmenu"),c=a("touchend","touchcancel"),l=p=>{["Enter"," "].includes(p.key)&&a("keyup")(p)},s={passive:!0};o.addEventListener("mouseover",this.startHover,s),o.addEventListener("mousemove",this.moveRipple,s),o.addEventListener("mouseleave",this.endHover,s),o.addEventListener("mousedown",n,s),o.addEventListener("touchstart",c,s),o.addEventListener("touchmove",this.moveRipple,s),o.addEventListener("keydown",l,s),o.addEventListener("focus",this.startFocus,s),o.addEventListener("blur",this.endFocus,s),o.addEventListener("focusin",this.startFocus,s),o.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{o.removeAttribute("data-is-ft-ripple-target"),o.removeEventListener("mouseover",this.startHover,s),o.removeEventListener("mousemove",this.moveRipple,s),o.removeEventListener("mouseleave",this.endHover,s),o.removeEventListener("mousedown",n,s),o.removeEventListener("touchstart",c,s),o.removeEventListener("touchmove",this.moveRipple,s),o.removeEventListener("keydown",l,s),o.removeEventListener("focus",this.startFocus,s),o.removeEventListener("blur",this.endFocus,s),o.removeEventListener("focusin",this.startFocus,s),o.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(o){let a=o,n=o,c,l;return a.x!=null?{x:c,y:l}=a:n.touches!=null&&(c=n.touches[0].clientX,l=n.touches[0].clientY),{x:c,y:l}}isFocusVisible(o){return o instanceof HTMLElement?o.matches(":focus-visible"):!0}isIgnored(o){if(this.disabled)return!0;if(o!=null)for(let a of o.composedPath()){if(a===this.target)break;if("hasAttribute"in a&&a.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};A.elementDefinitions={};A.styles=Ao;J([(0,M.property)({type:Boolean})],A.prototype,"primary",void 0);J([(0,M.property)({type:Boolean})],A.prototype,"secondary",void 0);J([(0,M.property)({type:Boolean})],A.prototype,"unbounded",void 0);J([(0,M.property)({type:Boolean})],A.prototype,"activated",void 0);J([(0,M.property)({type:Boolean})],A.prototype,"selected",void 0);J([(0,M.property)({type:Boolean})],A.prototype,"disabled",void 0);J([(0,M.state)()],A.prototype,"hovered",void 0);J([(0,M.state)()],A.prototype,"focused",void 0);J([(0,M.state)()],A.prototype,"pressed",void 0);J([(0,M.state)()],A.prototype,"rippling",void 0);J([(0,M.state)()],A.prototype,"originX",void 0);J([(0,M.state)()],A.prototype,"originY",void 0);J([(0,M.query)(".ft-ripple")],A.prototype,"ripple",void 0);J([(0,M.query)(".ft-ripple--effect")],A.prototype,"rippleEffect",void 0);(0,wr.customElement)("ft-ripple")(A);var ba=b(E());var ma=b(_()),D=b(ft()),me=b(E());var Mr=b(E());var Fe=globalThis,we=Fe.trustedTypes,Er=we?we.createPolicy("lit-html",{createHTML:e=>e}):void 0,kr="$lit$",Rt=`lit$${Math.random().toFixed(9).slice(2)}$`,Ir="?"+Rt,qa=`<${Ir}>`,Tt=document,Ee=()=>Tt.createComment(""),de=e=>e===null||typeof e!="object"&&typeof e!="function",Ke=Array.isArray,Qa=e=>Ke(e)||typeof e?.[Symbol.iterator]=="function",_e=`[
|
|
484
484
|
\f\r]`,se=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Lr=/-->/g,Rr=/>/g,Wt=RegExp(`>|${_e}(?:([^\\s"'>=/]+)(${_e}*=${_e}*(?:[^
|
|
485
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ar=/'/g,$r=/"/g,Pr=/^(?:script|style|textarea|title)$/i,Ve=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),Wr=Ve(1),zr=Ve(2),Tr=Ve(3),pe=Symbol.for("lit-noChange"),
|
|
485
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ar=/'/g,$r=/"/g,Pr=/^(?:script|style|textarea|title)$/i,Ve=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),Wr=Ve(1),zr=Ve(2),Tr=Ve(3),pe=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Br=new WeakMap,zt=Tt.createTreeWalker(Tt,129);function Hr(e,o){if(!Ke(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Er!==void 0?Er.createHTML(o):o}var Ja=(e,o)=>{let a=e.length-1,n=[],c,l=o===2?"<svg>":o===3?"<math>":"",s=se;for(let p=0;p<a;p++){let y=e[p],m,C,x=-1,N=0;for(;N<y.length&&(s.lastIndex=N,C=s.exec(y),C!==null);)N=s.lastIndex,s===se?C[1]==="!--"?s=Lr:C[1]!==void 0?s=Rr:C[2]!==void 0?(Pr.test(C[2])&&(c=RegExp("</"+C[2],"g")),s=Wt):C[3]!==void 0&&(s=Wt):s===Wt?C[0]===">"?(s=c??se,x=-1):C[1]===void 0?x=-2:(x=s.lastIndex-C[2].length,m=C[1],s=C[3]===void 0?Wt:C[3]==='"'?$r:Ar):s===$r||s===Ar?s=Wt:s===Lr||s===Rr?s=se:(s=Wt,c=void 0);let v=s===Wt&&e[p+1].startsWith("/>")?" ":"";l+=s===se?y+qa:x>=0?(n.push(m),y.slice(0,x)+kr+y.slice(x)+Rt+v):y+Rt+(x===-2?p:v)}return[Hr(e,l+(e[a]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),n]},fe=class e{constructor({strings:o,_$litType$:a},n){let c;this.parts=[];let l=0,s=0,p=o.length-1,y=this.parts,[m,C]=Ja(o,a);if(this.el=e.createElement(m,n),zt.currentNode=this.el.content,a===2||a===3){let x=this.el.content.firstChild;x.replaceWith(...x.childNodes)}for(;(c=zt.nextNode())!==null&&y.length<p;){if(c.nodeType===1){if(c.hasAttributes())for(let x of c.getAttributeNames())if(x.endsWith(kr)){let N=C[s++],v=c.getAttribute(x).split(Rt),w=/([.?@])?(.*)/.exec(N);y.push({type:1,index:l,name:w[2],strings:v,ctor:w[1]==="."?Ue:w[1]==="?"?Ge:w[1]==="@"?Me:Jt}),c.removeAttribute(x)}else x.startsWith(Rt)&&(y.push({type:6,index:l}),c.removeAttribute(x));if(Pr.test(c.tagName)){let x=c.textContent.split(Rt),N=x.length-1;if(N>0){c.textContent=we?we.emptyScript:"";for(let v=0;v<N;v++)c.append(x[v],Ee()),zt.nextNode(),y.push({type:2,index:++l});c.append(x[N],Ee())}}}else if(c.nodeType===8)if(c.data===Ir)y.push({type:2,index:l});else{let x=-1;for(;(x=c.data.indexOf(Rt,x+1))!==-1;)y.push({type:7,index:l}),x+=Rt.length-1}l++}}static createElement(o,a){let n=Tt.createElement("template");return n.innerHTML=o,n}};function Qt(e,o,a=e,n){if(o===pe)return o;let c=n!==void 0?a._$Co?.[n]:a._$Cl,l=de(o)?void 0:o._$litDirective$;return c?.constructor!==l&&(c?._$AO?.(!1),l===void 0?c=void 0:(c=new l(e),c._$AT(e,a,n)),n!==void 0?(a._$Co??=[])[n]=c:a._$Cl=c),c!==void 0&&(o=Qt(e,c._$AS(e,o.values),c,n)),o}var De=class{constructor(o,a){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=a}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:a},parts:n}=this._$AD,c=(o?.creationScope??Tt).importNode(a,!0);zt.currentNode=c;let l=zt.nextNode(),s=0,p=0,y=n[0];for(;y!==void 0;){if(s===y.index){let m;y.type===2?m=new Le(l,l.nextSibling,this,o):y.type===1?m=new y.ctor(l,y.name,y.strings,this,o):y.type===6&&(m=new Ze(l,this,o)),this._$AV.push(m),y=n[++p]}s!==y?.index&&(l=zt.nextNode(),s++)}return zt.currentNode=Tt,c}p(o){let a=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(o,n,a),a+=n.strings.length-2):n._$AI(o[a])),a++}},Le=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,a,n,c){this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=o,this._$AB=a,this._$AM=n,this.options=c,this._$Cv=c?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,a=this._$AM;return a!==void 0&&o?.nodeType===11&&(o=a.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,a=this){o=Qt(this,o,a),de(o)?o===G||o==null||o===""?(this._$AH!==G&&this._$AR(),this._$AH=G):o!==this._$AH&&o!==pe&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):Qa(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==G&&de(this._$AH)?this._$AA.nextSibling.data=o:this.T(Tt.createTextNode(o)),this._$AH=o}$(o){let{values:a,_$litType$:n}=o,c=typeof n=="number"?this._$AC(o):(n.el===void 0&&(n.el=fe.createElement(Hr(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===c)this._$AH.p(a);else{let l=new De(c,this),s=l.u(this.options);l.p(a),this.T(s),this._$AH=l}}_$AC(o){let a=Br.get(o.strings);return a===void 0&&Br.set(o.strings,a=new fe(o)),a}k(o){Ke(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,n,c=0;for(let l of o)c===a.length?a.push(n=new e(this.O(Ee()),this.O(Ee()),this,this.options)):n=a[c],n._$AI(l),c++;c<a.length&&(this._$AR(n&&n._$AB.nextSibling,c),a.length=c)}_$AR(o=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);o&&o!==this._$AB;){let n=o.nextSibling;o.remove(),o=n}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},Jt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,a,n,c,l){this.type=1,this._$AH=G,this._$AN=void 0,this.element=o,this.name=a,this._$AM=c,this.options=l,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=G}_$AI(o,a=this,n,c){let l=this.strings,s=!1;if(l===void 0)o=Qt(this,o,a,0),s=!de(o)||o!==this._$AH&&o!==pe,s&&(this._$AH=o);else{let p=o,y,m;for(o=l[0],y=0;y<l.length-1;y++)m=Qt(this,p[n+y],a,y),m===pe&&(m=this._$AH[y]),s||=!de(m)||m!==this._$AH[y],m===G?o=G:o!==G&&(o+=(m??"")+l[y+1]),this._$AH[y]=m}s&&!c&&this.j(o)}j(o){o===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},Ue=class extends Jt{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===G?void 0:o}},Ge=class extends Jt{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==G)}},Me=class extends Jt{constructor(o,a,n,c,l){super(o,a,n,c,l),this.type=5}_$AI(o,a=this){if((o=Qt(this,o,a,0)??G)===pe)return;let n=this._$AH,c=o===G&&n!==G||o.capture!==n.capture||o.once!==n.once||o.passive!==n.passive,l=o!==G&&(n===G||c);c&&this.element.removeEventListener(this.name,this,n),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},Ze=class{constructor(o,a,n){this.element=o,this.type=6,this._$AN=void 0,this._$AM=a,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(o){Qt(this,o)}};var tn=Fe.litHtmlPolyfillSupport;tn?.(fe,Le),(Fe.litHtmlVersions??=[]).push("3.3.0");var Dr=Symbol.for(""),en=e=>{if(e?.r===Dr)return e?._$litStatic$},je=e=>({_$litStatic$:e,r:Dr});var _r=new Map,Ye=e=>(o,...a)=>{let n=a.length,c,l,s=[],p=[],y,m=0,C=!1;for(;m<n;){for(y=o[m];m<n&&(l=a[m],(c=en(l))!==void 0);)y+=c+o[++m],C=!0;m!==n&&p.push(l),s.push(y),m++}if(m===n&&s.push(o[n]),C){let x=s.join("$$lit$$");(o=_r.get(x))===void 0&&(s.raw=s,_r.set(x,o=s)),a=p}return e(o,...a)},Xe=Ye(Wr),od=Ye(zr),rd=Ye(Tr);var qe=b(ft()),Gr=b(E());var At;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(At||(At={}));var Ur=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},Q=class extends Gr.FtLitElement{constructor(){super(...arguments),this.variant=At.body1}render(){return this.element?Xe`
|
|
486
486
|
<${je(this.element)}
|
|
487
487
|
part="text"
|
|
488
488
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -519,7 +519,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
519
519
|
position: relative;
|
|
520
520
|
word-break: break-word;
|
|
521
521
|
}
|
|
522
|
-
`;var Vr=["top","right","bottom","left"],Kr=["start","end"],Je=Vr.reduce((e,o)=>e.concat(o,o+"-"+Kr[0],o+"-"+Kr[1]),[]),jr=Math.min,Yr=Math.max;var on={left:"right",right:"left",bottom:"top",top:"bottom"},rn={start:"end",end:"start"};function to(e,o,a){return Yr(e,jr(o,a))}function Re(e,o){return typeof e=="function"?e(o):e}function ee(e){return e.split("-")[0]}function $t(e){return e.split("-")[1]}function eo(e){return e==="x"?"y":"x"}function oo(e){return e==="y"?"height":"width"}function Ae(e){return["top","bottom"].includes(ee(e))?"y":"x"}function ro(e){return eo(Ae(e))}function Xr(e,o,a){a===void 0&&(a=!1);let n=$t(e),c=ro(e),l=oo(c),s=c==="x"?n===(a?"end":"start")?"right":"left":n==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(s=Qe(s)),[s,Qe(s)]}function qr(e){return e.replace(/start|end/g,o=>rn[o])}function Qe(e){return e.replace(/left|right|bottom|top/g,o=>on[o])}function an(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qr(e){return typeof e!="number"?an(e):{top:e,right:e,bottom:e,left:e}}function Ht(e){let{x:o,y:a,width:n,height:c}=e;return{width:n,height:c,top:a,left:o,right:o+n,bottom:a+c,x:o,y:a}}function Jr(e,o,a){let{reference:n,floating:c}=e,l=Ae(o),s=ro(o),p=oo(s),y=ee(o),m=l==="y",C=n.x+n.width/2-c.width/2,x=n.y+n.height/2-c.height/2,N=n[p]/2-c[p]/2,v;switch(y){case"top":v={x:C,y:n.y-c.height};break;case"bottom":v={x:C,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:x};break;case"left":v={x:n.x-c.width,y:x};break;default:v={x:n.x,y:n.y}}switch($t(o)){case"start":v[s]-=N*(a&&m?-1:1);break;case"end":v[s]+=N*(a&&m?-1:1);break}return v}var ta=async(e,o,a)=>{let{placement:n="bottom",strategy:c="absolute",middleware:l=[],platform:s}=a,p=l.filter(Boolean),y=await(s.isRTL==null?void 0:s.isRTL(o)),m=await s.getElementRects({reference:e,floating:o,strategy:c}),{x:C,y:x}=Jr(m,n,y),N=n,v={},w=0;for(let I=0;I<p.length;I++){let{name:T,fn:P}=p[I],{x:H,y:X,data:Et,reset:K}=await P({x:C,y:x,initialPlacement:n,placement:N,strategy:c,middlewareData:v,rects:m,platform:s,elements:{reference:e,floating:o}});C=H??C,x=X??x,v={...v,[T]:{...v[T],...Et}},K&&w<=50&&(w++,typeof K=="object"&&(K.placement&&(N=K.placement),K.rects&&(m=K.rects===!0?await s.getElementRects({reference:e,floating:o,strategy:c}):K.rects),{x:C,y:x}=Jr(m,N,y)),I=-1)}return{x:C,y:x,placement:N,strategy:c,middlewareData:v}};async function ao(e,o){var a;o===void 0&&(o={});let{x:n,y:c,platform:l,rects:s,elements:p,strategy:y}=e,{boundary:m="clippingAncestors",rootBoundary:C="viewport",elementContext:x="floating",altBoundary:N=!1,padding:v=0}=Re(o,e),w=Qr(v),T=p[N?x==="floating"?"reference":"floating":x],P=Ht(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(T)))==null||a?T:T.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(p.floating)),boundary:m,rootBoundary:C,strategy:y})),H=x==="floating"?{x:n,y:c,width:s.floating.width,height:s.floating.height}:s.reference,X=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p.floating)),Et=await(l.isElement==null?void 0:l.isElement(X))?await(l.getScale==null?void 0:l.getScale(X))||{x:1,y:1}:{x:1,y:1},K=Ht(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:H,offsetParent:X,strategy:y}):H);return{top:(P.top-K.top+w.top)/Et.y,bottom:(K.bottom-P.bottom+w.bottom)/Et.y,left:(P.left-K.left+w.left)/Et.x,right:(K.right-P.right+w.right)/Et.x}}function nn(e,o,a){return(e?[...a.filter(c=>$t(c)===e),...a.filter(c=>$t(c)!==e)]:a.filter(c=>ee(c)===c)).filter(c=>e?$t(c)===e||(o?qr(c)!==c:!1):!0)}var no=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,n,c;let{rects:l,middlewareData:s,placement:p,platform:y,elements:m}=o,{crossAxis:C=!1,alignment:x,allowedPlacements:N=Je,autoAlignment:v=!0,...w}=Re(e,o),I=x!==void 0||N===Je?nn(x||null,v,N):N,T=await ao(o,w),P=((a=s.autoPlacement)==null?void 0:a.index)||0,H=I[P];if(H==null)return{};let X=Xr(H,l,await(y.isRTL==null?void 0:y.isRTL(m.floating)));if(p!==H)return{reset:{placement:I[0]}};let Et=[T[ee(H)],T[X[0]],T[X[1]]],K=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:H,overflows:Et}],go=I[P+1];if(go)return{data:{index:P+1,overflows:K},reset:{placement:go}};let ho=K.map(pt=>{let ne=$t(pt.placement);return[pt.placement,ne&&C?pt.overflows.slice(0,2).reduce((Ga,Ma)=>Ga+Ma,0):pt.overflows[0],pt.overflows]}).sort((pt,ne)=>pt[1]-ne[1]),mo=((c=ho.filter(pt=>pt[2].slice(0,$t(pt[0])?2:3).every(ne=>ne<=0))[0])==null?void 0:c[0])||ho[0][0];return mo!==p?{data:{index:P+1,overflows:K},reset:{placement:mo}}:{}}}};var io=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:n,placement:c}=o,{mainAxis:l=!0,crossAxis:s=!1,limiter:p={fn:T=>{let{x:P,y:H}=T;return{x:P,y:H}}},...y}=Re(e,o),m={x:a,y:n},C=await ao(o,y),x=Ae(ee(c)),N=eo(x),v=m[N],w=m[x];if(l){let T=N==="y"?"top":"left",P=N==="y"?"bottom":"right",H=v+C[T],X=v-C[P];v=to(H,v,X)}if(s){let T=x==="y"?"top":"left",P=x==="y"?"bottom":"right",H=w+C[T],X=w-C[P];w=to(H,w,X)}let I=p.fn({...o,[N]:v,[x]:w});return{...I,data:{x:I.x-a,y:I.y-n,enabled:{[N]:l,[x]:s}}}}}};var co=Math.min,oe=Math.max,ye=Math.round;var Ct=e=>({x:e,y:e});function Ot(e){return oa(e)?(e.nodeName||"").toLowerCase():"#document"}function tt(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function vt(e){var o;return(o=(oa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function oa(e){return e instanceof Node||e instanceof tt(e).Node}function gt(e){return e instanceof Element||e instanceof tt(e).Element}function st(e){return e instanceof HTMLElement||e instanceof tt(e).HTMLElement}function ea(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tt(e).ShadowRoot}function re(e){let{overflow:o,overflowX:a,overflowY:n,display:c}=rt(e);return/auto|scroll|overlay|hidden|clip/.test(o+n+a)&&!["inline","contents"].includes(c)}function ra(e){return["table","td","th"].includes(Ot(e))}function Be(e){let o=ke(),a=rt(e);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!o&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!o&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(a.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(a.contain||"").includes(n))}function aa(e){let o=_t(e);for(;st(o)&&!ue(o);){if(Be(o))return o;o=_t(o)}return null}function ke(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ue(e){return["html","body","#document"].includes(Ot(e))}function rt(e){return tt(e).getComputedStyle(e)}function ge(e){return gt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function _t(e){if(Ot(e)==="html")return e;let o=e.assignedSlot||e.parentNode||ea(e)&&e.host||vt(e);return ea(o)?o.host:o}function na(e){let o=_t(e);return ue(o)?e.ownerDocument?e.ownerDocument.body:e.body:st(o)&&re(o)?o:na(o)}function $e(e,o,a){var n;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=na(e),l=c===((n=e.ownerDocument)==null?void 0:n.body),s=tt(c);return l?o.concat(s,s.visualViewport||[],re(c)?c:[],s.frameElement&&a?$e(s.frameElement):[]):o.concat(c,$e(c,[],a))}function la(e){let o=rt(e),a=parseFloat(o.width)||0,n=parseFloat(o.height)||0,c=st(e),l=c?e.offsetWidth:a,s=c?e.offsetHeight:n,p=ye(a)!==l||ye(n)!==s;return p&&(a=l,n=s),{width:a,height:n,$:p}}function sa(e){return gt(e)?e:e.contextElement}function ae(e){let o=sa(e);if(!st(o))return Ct(1);let a=o.getBoundingClientRect(),{width:n,height:c,$:l}=la(o),s=(l?ye(a.width):a.width)/n,p=(l?ye(a.height):a.height)/c;return(!s||!Number.isFinite(s))&&(s=1),(!p||!Number.isFinite(p))&&(p=1),{x:s,y:p}}var sn=Ct(0);function da(e){let o=tt(e);return!ke()||!o.visualViewport?sn:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function dn(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==tt(e)?!1:o}function he(e,o,a,n){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),l=sa(e),s=Ct(1);o&&(n?gt(n)&&(s=ae(n)):s=ae(e));let p=dn(l,a,n)?da(l):Ct(0),y=(c.left+p.x)/s.x,m=(c.top+p.y)/s.y,C=c.width/s.x,x=c.height/s.y;if(l){let N=tt(l),v=n&>(n)?tt(n):n,w=N.frameElement;for(;w&&n&&v!==N;){let I=ae(w),T=w.getBoundingClientRect(),P=rt(w),H=T.left+(w.clientLeft+parseFloat(P.paddingLeft))*I.x,X=T.top+(w.clientTop+parseFloat(P.paddingTop))*I.y;y*=I.x,m*=I.y,C*=I.x,x*=I.y,y+=H,m+=X,w=tt(w).frameElement}}return Ht({width:C,height:x,x:y,y:m})}function pn(e){let{rect:o,offsetParent:a,strategy:n}=e,c=st(a),l=vt(a);if(a===l)return o;let s={scrollLeft:0,scrollTop:0},p=Ct(1),y=Ct(0);if((c||!c&&n!=="fixed")&&((Ot(a)!=="body"||re(l))&&(s=ge(a)),st(a))){let m=he(a);p=ae(a),y.x=m.x+a.clientLeft,y.y=m.y+a.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-s.scrollLeft*p.x+y.x,y:o.y*p.y-s.scrollTop*p.y+y.y}}function fn(e){return Array.from(e.getClientRects())}function pa(e){return he(vt(e)).left+ge(e).scrollLeft}function yn(e){let o=vt(e),a=ge(e),n=e.ownerDocument.body,c=oe(o.scrollWidth,o.clientWidth,n.scrollWidth,n.clientWidth),l=oe(o.scrollHeight,o.clientHeight,n.scrollHeight,n.clientHeight),s=-a.scrollLeft+pa(e),p=-a.scrollTop;return rt(n).direction==="rtl"&&(s+=oe(o.clientWidth,n.clientWidth)-c),{width:c,height:l,x:s,y:p}}function un(e,o){let a=tt(e),n=vt(e),c=a.visualViewport,l=n.clientWidth,s=n.clientHeight,p=0,y=0;if(c){l=c.width,s=c.height;let m=ke();(!m||m&&o==="fixed")&&(p=c.offsetLeft,y=c.offsetTop)}return{width:l,height:s,x:p,y}}function gn(e,o){let a=he(e,!0,o==="fixed"),n=a.top+e.clientTop,c=a.left+e.clientLeft,l=st(e)?ae(e):Ct(1),s=e.clientWidth*l.x,p=e.clientHeight*l.y,y=c*l.x,m=n*l.y;return{width:s,height:p,x:y,y:m}}function ia(e,o,a){let n;if(o==="viewport")n=un(e,a);else if(o==="document")n=yn(vt(e));else if(gt(o))n=gn(o,a);else{let c=da(e);n={...o,x:o.x-c.x,y:o.y-c.y}}return Ht(n)}function fa(e,o){let a=_t(e);return a===o||!gt(a)||ue(a)?!1:rt(a).position==="fixed"||fa(a,o)}function hn(e,o){let a=o.get(e);if(a)return a;let n=$e(e,[],!1).filter(p=>gt(p)&&Ot(p)!=="body"),c=null,l=rt(e).position==="fixed",s=l?_t(e):e;for(;gt(s)&&!ue(s);){let p=rt(s),y=Be(s);!y&&p.position==="fixed"&&(c=null),(l?!y&&!c:!y&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||re(s)&&!y&&fa(e,s))?n=n.filter(C=>C!==s):c=p,s=_t(s)}return o.set(e,n),n}function mn(e){let{element:o,boundary:a,rootBoundary:n,strategy:c}=e,s=[...a==="clippingAncestors"?hn(o,this._c):[].concat(a),n],p=s[0],y=s.reduce((m,C)=>{let x=ia(o,C,c);return m.top=oe(x.top,m.top),m.right=co(x.right,m.right),m.bottom=co(x.bottom,m.bottom),m.left=oe(x.left,m.left),m},ia(o,p,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function bn(e){return la(e)}function xn(e,o,a){let n=st(o),c=vt(o),l=a==="fixed",s=he(e,!0,l,o),p={scrollLeft:0,scrollTop:0},y=Ct(0);if(n||!n&&!l)if((Ot(o)!=="body"||re(c))&&(p=ge(o)),n){let m=he(o,!0,l,o);y.x=m.x+o.clientLeft,y.y=m.y+o.clientTop}else c&&(y.x=pa(c));return{x:s.left+p.scrollLeft-y.x,y:s.top+p.scrollTop-y.y,width:s.width,height:s.height}}function ca(e,o){return!st(e)||rt(e).position==="fixed"?null:o?o(e):e.offsetParent}function ya(e,o){let a=tt(e);if(!st(e))return a;let n=ca(e,o);for(;n&&ra(n)&&rt(n).position==="static";)n=ca(n,o);return n&&(Ot(n)==="html"||Ot(n)==="body"&&rt(n).position==="static"&&!Be(n))?a:n||aa(e)||a}var Sn=async function(e){let{reference:o,floating:a,strategy:n}=e,c=this.getOffsetParent||ya,l=this.getDimensions;return{reference:xn(o,await c(a),n),floating:{x:0,y:0,...await l(a)}}};function Cn(e){return rt(e).direction==="rtl"}var Ie={convertOffsetParentRelativeRectToViewportRelativeRect:pn,getDocumentElement:vt,getClippingRect:mn,getOffsetParent:ya,getElementRects:Sn,getClientRects:fn,getDimensions:bn,getScale:ae,isElement:gt,isRTL:Cn};var ua=(e,o,a)=>{let n=new Map,c={platform:Ie,...a},l={...c.platform,_c:n};return ta(e,o,{...c,platform:l})};function ga(e){return On(e)}function lo(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function On(e){for(let o=e;o;o=lo(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=lo(e);o;o=lo(o)){if(!(o instanceof Element))continue;let a=getComputedStyle(o);if(a.display!=="contents"&&(a.position!=="static"||a.filter!=="none"||o.tagName==="BODY"))return o}return null}async function ha(e,o,a){return ua(e,o,{platform:{...Ie,getOffsetParent:n=>Ie.getOffsetParent(n,ga)},middleware:[io({crossAxis:!0}),no({allowedPlacements:[a]})]})}var et=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},k=class extends me.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new me.Debouncer,this.revealDebouncer=new me.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ma.html`
|
|
522
|
+
`;var Vr=["top","right","bottom","left"],Kr=["start","end"],Je=Vr.reduce((e,o)=>e.concat(o,o+"-"+Kr[0],o+"-"+Kr[1]),[]),jr=Math.min,Yr=Math.max;var on={left:"right",right:"left",bottom:"top",top:"bottom"},rn={start:"end",end:"start"};function to(e,o,a){return Yr(e,jr(o,a))}function Re(e,o){return typeof e=="function"?e(o):e}function ee(e){return e.split("-")[0]}function $t(e){return e.split("-")[1]}function eo(e){return e==="x"?"y":"x"}function oo(e){return e==="y"?"height":"width"}function Ae(e){return["top","bottom"].includes(ee(e))?"y":"x"}function ro(e){return eo(Ae(e))}function Xr(e,o,a){a===void 0&&(a=!1);let n=$t(e),c=ro(e),l=oo(c),s=c==="x"?n===(a?"end":"start")?"right":"left":n==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(s=Qe(s)),[s,Qe(s)]}function qr(e){return e.replace(/start|end/g,o=>rn[o])}function Qe(e){return e.replace(/left|right|bottom|top/g,o=>on[o])}function an(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qr(e){return typeof e!="number"?an(e):{top:e,right:e,bottom:e,left:e}}function Ht(e){let{x:o,y:a,width:n,height:c}=e;return{width:n,height:c,top:a,left:o,right:o+n,bottom:a+c,x:o,y:a}}function Jr(e,o,a){let{reference:n,floating:c}=e,l=Ae(o),s=ro(o),p=oo(s),y=ee(o),m=l==="y",C=n.x+n.width/2-c.width/2,x=n.y+n.height/2-c.height/2,N=n[p]/2-c[p]/2,v;switch(y){case"top":v={x:C,y:n.y-c.height};break;case"bottom":v={x:C,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:x};break;case"left":v={x:n.x-c.width,y:x};break;default:v={x:n.x,y:n.y}}switch($t(o)){case"start":v[s]-=N*(a&&m?-1:1);break;case"end":v[s]+=N*(a&&m?-1:1);break}return v}var ta=async(e,o,a)=>{let{placement:n="bottom",strategy:c="absolute",middleware:l=[],platform:s}=a,p=l.filter(Boolean),y=await(s.isRTL==null?void 0:s.isRTL(o)),m=await s.getElementRects({reference:e,floating:o,strategy:c}),{x:C,y:x}=Jr(m,n,y),N=n,v={},w=0;for(let I=0;I<p.length;I++){let{name:T,fn:P}=p[I],{x:H,y:X,data:Et,reset:V}=await P({x:C,y:x,initialPlacement:n,placement:N,strategy:c,middlewareData:v,rects:m,platform:s,elements:{reference:e,floating:o}});C=H??C,x=X??x,v={...v,[T]:{...v[T],...Et}},V&&w<=50&&(w++,typeof V=="object"&&(V.placement&&(N=V.placement),V.rects&&(m=V.rects===!0?await s.getElementRects({reference:e,floating:o,strategy:c}):V.rects),{x:C,y:x}=Jr(m,N,y)),I=-1)}return{x:C,y:x,placement:N,strategy:c,middlewareData:v}};async function ao(e,o){var a;o===void 0&&(o={});let{x:n,y:c,platform:l,rects:s,elements:p,strategy:y}=e,{boundary:m="clippingAncestors",rootBoundary:C="viewport",elementContext:x="floating",altBoundary:N=!1,padding:v=0}=Re(o,e),w=Qr(v),T=p[N?x==="floating"?"reference":"floating":x],P=Ht(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(T)))==null||a?T:T.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(p.floating)),boundary:m,rootBoundary:C,strategy:y})),H=x==="floating"?{x:n,y:c,width:s.floating.width,height:s.floating.height}:s.reference,X=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p.floating)),Et=await(l.isElement==null?void 0:l.isElement(X))?await(l.getScale==null?void 0:l.getScale(X))||{x:1,y:1}:{x:1,y:1},V=Ht(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:H,offsetParent:X,strategy:y}):H);return{top:(P.top-V.top+w.top)/Et.y,bottom:(V.bottom-P.bottom+w.bottom)/Et.y,left:(P.left-V.left+w.left)/Et.x,right:(V.right-P.right+w.right)/Et.x}}function nn(e,o,a){return(e?[...a.filter(c=>$t(c)===e),...a.filter(c=>$t(c)!==e)]:a.filter(c=>ee(c)===c)).filter(c=>e?$t(c)===e||(o?qr(c)!==c:!1):!0)}var no=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,n,c;let{rects:l,middlewareData:s,placement:p,platform:y,elements:m}=o,{crossAxis:C=!1,alignment:x,allowedPlacements:N=Je,autoAlignment:v=!0,...w}=Re(e,o),I=x!==void 0||N===Je?nn(x||null,v,N):N,T=await ao(o,w),P=((a=s.autoPlacement)==null?void 0:a.index)||0,H=I[P];if(H==null)return{};let X=Xr(H,l,await(y.isRTL==null?void 0:y.isRTL(m.floating)));if(p!==H)return{reset:{placement:I[0]}};let Et=[T[ee(H)],T[X[0]],T[X[1]]],V=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:H,overflows:Et}],go=I[P+1];if(go)return{data:{index:P+1,overflows:V},reset:{placement:go}};let ho=V.map(pt=>{let ne=$t(pt.placement);return[pt.placement,ne&&C?pt.overflows.slice(0,2).reduce((Ga,Ma)=>Ga+Ma,0):pt.overflows[0],pt.overflows]}).sort((pt,ne)=>pt[1]-ne[1]),mo=((c=ho.filter(pt=>pt[2].slice(0,$t(pt[0])?2:3).every(ne=>ne<=0))[0])==null?void 0:c[0])||ho[0][0];return mo!==p?{data:{index:P+1,overflows:V},reset:{placement:mo}}:{}}}};var io=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:n,placement:c}=o,{mainAxis:l=!0,crossAxis:s=!1,limiter:p={fn:T=>{let{x:P,y:H}=T;return{x:P,y:H}}},...y}=Re(e,o),m={x:a,y:n},C=await ao(o,y),x=Ae(ee(c)),N=eo(x),v=m[N],w=m[x];if(l){let T=N==="y"?"top":"left",P=N==="y"?"bottom":"right",H=v+C[T],X=v-C[P];v=to(H,v,X)}if(s){let T=x==="y"?"top":"left",P=x==="y"?"bottom":"right",H=w+C[T],X=w-C[P];w=to(H,w,X)}let I=p.fn({...o,[N]:v,[x]:w});return{...I,data:{x:I.x-a,y:I.y-n,enabled:{[N]:l,[x]:s}}}}}};var co=Math.min,oe=Math.max,ye=Math.round;var Ct=e=>({x:e,y:e});function Ot(e){return oa(e)?(e.nodeName||"").toLowerCase():"#document"}function tt(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function vt(e){var o;return(o=(oa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function oa(e){return e instanceof Node||e instanceof tt(e).Node}function gt(e){return e instanceof Element||e instanceof tt(e).Element}function st(e){return e instanceof HTMLElement||e instanceof tt(e).HTMLElement}function ea(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof tt(e).ShadowRoot}function re(e){let{overflow:o,overflowX:a,overflowY:n,display:c}=rt(e);return/auto|scroll|overlay|hidden|clip/.test(o+n+a)&&!["inline","contents"].includes(c)}function ra(e){return["table","td","th"].includes(Ot(e))}function Be(e){let o=ke(),a=rt(e);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!o&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!o&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(a.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(a.contain||"").includes(n))}function aa(e){let o=_t(e);for(;st(o)&&!ue(o);){if(Be(o))return o;o=_t(o)}return null}function ke(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ue(e){return["html","body","#document"].includes(Ot(e))}function rt(e){return tt(e).getComputedStyle(e)}function ge(e){return gt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function _t(e){if(Ot(e)==="html")return e;let o=e.assignedSlot||e.parentNode||ea(e)&&e.host||vt(e);return ea(o)?o.host:o}function na(e){let o=_t(e);return ue(o)?e.ownerDocument?e.ownerDocument.body:e.body:st(o)&&re(o)?o:na(o)}function $e(e,o,a){var n;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=na(e),l=c===((n=e.ownerDocument)==null?void 0:n.body),s=tt(c);return l?o.concat(s,s.visualViewport||[],re(c)?c:[],s.frameElement&&a?$e(s.frameElement):[]):o.concat(c,$e(c,[],a))}function la(e){let o=rt(e),a=parseFloat(o.width)||0,n=parseFloat(o.height)||0,c=st(e),l=c?e.offsetWidth:a,s=c?e.offsetHeight:n,p=ye(a)!==l||ye(n)!==s;return p&&(a=l,n=s),{width:a,height:n,$:p}}function sa(e){return gt(e)?e:e.contextElement}function ae(e){let o=sa(e);if(!st(o))return Ct(1);let a=o.getBoundingClientRect(),{width:n,height:c,$:l}=la(o),s=(l?ye(a.width):a.width)/n,p=(l?ye(a.height):a.height)/c;return(!s||!Number.isFinite(s))&&(s=1),(!p||!Number.isFinite(p))&&(p=1),{x:s,y:p}}var sn=Ct(0);function da(e){let o=tt(e);return!ke()||!o.visualViewport?sn:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function dn(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==tt(e)?!1:o}function he(e,o,a,n){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),l=sa(e),s=Ct(1);o&&(n?gt(n)&&(s=ae(n)):s=ae(e));let p=dn(l,a,n)?da(l):Ct(0),y=(c.left+p.x)/s.x,m=(c.top+p.y)/s.y,C=c.width/s.x,x=c.height/s.y;if(l){let N=tt(l),v=n&>(n)?tt(n):n,w=N.frameElement;for(;w&&n&&v!==N;){let I=ae(w),T=w.getBoundingClientRect(),P=rt(w),H=T.left+(w.clientLeft+parseFloat(P.paddingLeft))*I.x,X=T.top+(w.clientTop+parseFloat(P.paddingTop))*I.y;y*=I.x,m*=I.y,C*=I.x,x*=I.y,y+=H,m+=X,w=tt(w).frameElement}}return Ht({width:C,height:x,x:y,y:m})}function pn(e){let{rect:o,offsetParent:a,strategy:n}=e,c=st(a),l=vt(a);if(a===l)return o;let s={scrollLeft:0,scrollTop:0},p=Ct(1),y=Ct(0);if((c||!c&&n!=="fixed")&&((Ot(a)!=="body"||re(l))&&(s=ge(a)),st(a))){let m=he(a);p=ae(a),y.x=m.x+a.clientLeft,y.y=m.y+a.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-s.scrollLeft*p.x+y.x,y:o.y*p.y-s.scrollTop*p.y+y.y}}function fn(e){return Array.from(e.getClientRects())}function pa(e){return he(vt(e)).left+ge(e).scrollLeft}function yn(e){let o=vt(e),a=ge(e),n=e.ownerDocument.body,c=oe(o.scrollWidth,o.clientWidth,n.scrollWidth,n.clientWidth),l=oe(o.scrollHeight,o.clientHeight,n.scrollHeight,n.clientHeight),s=-a.scrollLeft+pa(e),p=-a.scrollTop;return rt(n).direction==="rtl"&&(s+=oe(o.clientWidth,n.clientWidth)-c),{width:c,height:l,x:s,y:p}}function un(e,o){let a=tt(e),n=vt(e),c=a.visualViewport,l=n.clientWidth,s=n.clientHeight,p=0,y=0;if(c){l=c.width,s=c.height;let m=ke();(!m||m&&o==="fixed")&&(p=c.offsetLeft,y=c.offsetTop)}return{width:l,height:s,x:p,y}}function gn(e,o){let a=he(e,!0,o==="fixed"),n=a.top+e.clientTop,c=a.left+e.clientLeft,l=st(e)?ae(e):Ct(1),s=e.clientWidth*l.x,p=e.clientHeight*l.y,y=c*l.x,m=n*l.y;return{width:s,height:p,x:y,y:m}}function ia(e,o,a){let n;if(o==="viewport")n=un(e,a);else if(o==="document")n=yn(vt(e));else if(gt(o))n=gn(o,a);else{let c=da(e);n={...o,x:o.x-c.x,y:o.y-c.y}}return Ht(n)}function fa(e,o){let a=_t(e);return a===o||!gt(a)||ue(a)?!1:rt(a).position==="fixed"||fa(a,o)}function hn(e,o){let a=o.get(e);if(a)return a;let n=$e(e,[],!1).filter(p=>gt(p)&&Ot(p)!=="body"),c=null,l=rt(e).position==="fixed",s=l?_t(e):e;for(;gt(s)&&!ue(s);){let p=rt(s),y=Be(s);!y&&p.position==="fixed"&&(c=null),(l?!y&&!c:!y&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||re(s)&&!y&&fa(e,s))?n=n.filter(C=>C!==s):c=p,s=_t(s)}return o.set(e,n),n}function mn(e){let{element:o,boundary:a,rootBoundary:n,strategy:c}=e,s=[...a==="clippingAncestors"?hn(o,this._c):[].concat(a),n],p=s[0],y=s.reduce((m,C)=>{let x=ia(o,C,c);return m.top=oe(x.top,m.top),m.right=co(x.right,m.right),m.bottom=co(x.bottom,m.bottom),m.left=oe(x.left,m.left),m},ia(o,p,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function bn(e){return la(e)}function xn(e,o,a){let n=st(o),c=vt(o),l=a==="fixed",s=he(e,!0,l,o),p={scrollLeft:0,scrollTop:0},y=Ct(0);if(n||!n&&!l)if((Ot(o)!=="body"||re(c))&&(p=ge(o)),n){let m=he(o,!0,l,o);y.x=m.x+o.clientLeft,y.y=m.y+o.clientTop}else c&&(y.x=pa(c));return{x:s.left+p.scrollLeft-y.x,y:s.top+p.scrollTop-y.y,width:s.width,height:s.height}}function ca(e,o){return!st(e)||rt(e).position==="fixed"?null:o?o(e):e.offsetParent}function ya(e,o){let a=tt(e);if(!st(e))return a;let n=ca(e,o);for(;n&&ra(n)&&rt(n).position==="static";)n=ca(n,o);return n&&(Ot(n)==="html"||Ot(n)==="body"&&rt(n).position==="static"&&!Be(n))?a:n||aa(e)||a}var Sn=async function(e){let{reference:o,floating:a,strategy:n}=e,c=this.getOffsetParent||ya,l=this.getDimensions;return{reference:xn(o,await c(a),n),floating:{x:0,y:0,...await l(a)}}};function Cn(e){return rt(e).direction==="rtl"}var Ie={convertOffsetParentRelativeRectToViewportRelativeRect:pn,getDocumentElement:vt,getClippingRect:mn,getOffsetParent:ya,getElementRects:Sn,getClientRects:fn,getDimensions:bn,getScale:ae,isElement:gt,isRTL:Cn};var ua=(e,o,a)=>{let n=new Map,c={platform:Ie,...a},l={...c.platform,_c:n};return ta(e,o,{...c,platform:l})};function ga(e){return On(e)}function lo(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function On(e){for(let o=e;o;o=lo(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=lo(e);o;o=lo(o)){if(!(o instanceof Element))continue;let a=getComputedStyle(o);if(a.display!=="contents"&&(a.position!=="static"||a.filter!=="none"||o.tagName==="BODY"))return o}return null}async function ha(e,o,a){return ua(e,o,{platform:{...Ie,getOffsetParent:n=>Ie.getOffsetParent(n,ga)},middleware:[io({crossAxis:!0}),no({allowedPlacements:[a]})]})}var et=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},k=class extends me.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new me.Debouncer,this.revealDebouncer=new me.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ma.html`
|
|
523
523
|
<div part="container"
|
|
524
524
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
525
525
|
@mouseenter=${this.onHover}
|
|
@@ -549,8 +549,11 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
549
549
|
<div></div>
|
|
550
550
|
<div></div>
|
|
551
551
|
</div>
|
|
552
|
-
`}};Dt.styles=hr;(0,Ea.customElement)("ft-loader")(Dt);var kt=b(_()),so=b(ie()),
|
|
553
|
-
<ft-ripple part="ripple"
|
|
552
|
+
`}};Dt.styles=hr;(0,Ea.customElement)("ft-loader")(Dt);var kt=b(_()),so=b(ie()),U=b(ft()),Z=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},$=class extends(0,It.toFtFormComponent)(It.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",o=>{var a;this.isDisabled()?(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation()):this.type=="submit"&&((a=this.form)===null||a===void 0||a.requestSubmit())})}render(){var o,a,n;let c=kt.html`
|
|
553
|
+
<ft-ripple part="ripple"
|
|
554
|
+
?disabled=${this.isDisabled()}
|
|
555
|
+
?activated=${this.activated}
|
|
556
|
+
></ft-ripple>
|
|
554
557
|
<ft-typography part="label"
|
|
555
558
|
variant=${this.typographyVariant}
|
|
556
559
|
element="span"
|
|
@@ -586,7 +589,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
586
589
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
587
590
|
`:kt.html`
|
|
588
591
|
<slot part="icon" name="icon"></slot>
|
|
589
|
-
`}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}focusWithoutTooltip(){var o;this.setTooltipManual(!0),(o=this.button)===null||o===void 0||o.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(o,a){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(o,a)}setTooltipManual(o){this.tooltip&&(this.tooltip.manual=o)}click(){var o;(o=this.button)===null||o===void 0||o.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,It.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
592
|
+
`}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}focusWithoutTooltip(){var o;this.setTooltipManual(!0),(o=this.button)===null||o===void 0||o.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(o,a){var n;return(n=this.tooltip)===null||n===void 0?void 0:n.showTemporaryText(o,a)}setTooltipManual(o){this.tooltip&&(this.tooltip.manual=o)}click(){var o;(o=this.button)===null||o===void 0||o.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,It.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};$.elementDefinitions={"ft-ripple":A,"ft-tooltip":k,"ft-typography":Q,"ft-icon":at,"ft-loader":Dt};Z([(0,U.property)()],$.prototype,"href",void 0);Z([(0,U.property)()],$.prototype,"target",void 0);Z([(0,U.property)()],$.prototype,"type",void 0);Z([(0,U.property)({type:Boolean})],$.prototype,"disabled",void 0);Z([(0,U.property)()],$.prototype,"label",void 0);Z([(0,U.property)()],$.prototype,"icon",void 0);Z([(0,U.property)()],$.prototype,"iconVariant",void 0);Z([(0,U.property)({type:Boolean})],$.prototype,"trailingIcon",void 0);Z([(0,U.property)({type:Boolean})],$.prototype,"loading",void 0);Z([(0,U.property)({attribute:"aria-label"})],$.prototype,"ariaLabel",void 0);Z([(0,U.property)()],$.prototype,"tooltipPosition",void 0);Z([(0,U.property)({type:Boolean})],$.prototype,"hideTooltip",void 0);Z([(0,U.property)({type:Boolean})],$.prototype,"forceTooltip",void 0);Z([(0,U.property)({type:Boolean})],$.prototype,"activated",void 0);Z([(0,U.query)(".ft-button")],$.prototype,"button",void 0);Z([(0,U.query)(".ft-button--label slot")],$.prototype,"slottedContent",void 0);Z([(0,U.query)("[part=tooltip]")],$.prototype,"tooltip",void 0);var We=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},dt=class extends ${constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};dt.styles=[La.safariEllipsisFix,Or];We([(0,Se.property)({type:Boolean})],dt.prototype,"primary",void 0);We([(0,Se.property)({type:Boolean})],dt.prototype,"outlined",void 0);We([(0,Se.property)({type:Boolean})],dt.prototype,"dense",void 0);We([(0,Se.property)({type:Boolean})],dt.prototype,"round",void 0);var Ce=b(ft());var Te=b(E());var Ra=b(_()),f=b(E());var Aa=[Ra.css`
|
|
590
593
|
:host {
|
|
591
594
|
display: inline-block;
|
|
592
595
|
max-width: 100%;
|
|
@@ -1052,7 +1055,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1052
1055
|
.ftds--size-small.ft-button--icon-only {
|
|
1053
1056
|
width: ${d.smallIconOnlyWidth};
|
|
1054
1057
|
}
|
|
1055
|
-
`,f.noTextSelect];var ze=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},Nt=class extends(0,Te.toFtdsBase)(
|
|
1058
|
+
`,f.noTextSelect];var ze=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},Nt=class extends(0,Te.toFtdsBase)($){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=ve.brand,this.iconVariant=ht.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case Gt.large:return At.body2medium;case Gt.medium:return At.caption1medium;case Gt.small:return At.caption2medium}}};Nt.styles=[Te.safariEllipsisFix,Aa];ze([(0,Ce.property)({type:Boolean})],Nt.prototype,"primary",void 0);ze([(0,Ce.property)({type:Boolean})],Nt.prototype,"secondary",void 0);ze([(0,Ce.property)({type:Boolean})],Nt.prototype,"tertiary",void 0);ze([(0,Ce.property)({type:Boolean})],Nt.prototype,"round",void 0);(0,po.customElement)("ft-button")(dt);(0,po.customElement)("ftds-button")(Nt);var ct={expandButtonColor:B.FtCssVariableFactory.extend("--ft-tree-selector-expand-button-color","Color of the expand button",B.designSystemVariables.colorOnSurfaceMedium),expandButtonBackgroundColor:B.FtCssVariableFactory.create("--ft-tree-selector-expand-button-background-color","Background color of the expand button","COLOR","transparent"),treeLinesColor:B.FtCssVariableFactory.extend("--ft-tree-selector-line-color","Color of the tree lines",B.designSystemVariables.colorOutline),levelPadding:B.FtCssVariableFactory.create("--ft-tree-selector-level-padding","","SIZE","16px"),labelColor:B.FtCssVariableFactory.extend("--ft-tree-selector-label-color","",B.designSystemVariables.colorOnSurface),labelFontSize:B.FtCssVariableFactory.extend("--ft-tree-selector-label-font-size","",S.fontSize,"16px"),buttonColor:B.FtCssVariableFactory.extend("--ft-search-facet-button-color","",B.designSystemVariables.colorPrimary),checkboxColor:B.FtCssVariableFactory.extend("--ft-search-facet-checkbox-color","",B.designSystemVariables.colorPrimary)},Ba=$a.css`
|
|
1056
1059
|
|
|
1057
1060
|
[part="header"] {
|
|
1058
1061
|
display: flex;
|
|
@@ -1065,17 +1068,17 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1065
1068
|
[part="clear-button"] {
|
|
1066
1069
|
flex-shrink: 0;
|
|
1067
1070
|
margin-left: auto;
|
|
1068
|
-
${(0
|
|
1071
|
+
${(0,B.setVariable)(L.iconSize,"18px")};
|
|
1069
1072
|
}
|
|
1070
1073
|
|
|
1071
1074
|
[part="expand-button"] {
|
|
1072
1075
|
flex-shrink: 0;
|
|
1073
|
-
${(0
|
|
1076
|
+
${(0,B.setVariable)(L.iconSize,"18px")};
|
|
1074
1077
|
}
|
|
1075
1078
|
|
|
1076
1079
|
[part="label"] {
|
|
1077
|
-
${(0
|
|
1078
|
-
${(0
|
|
1080
|
+
${(0,B.setVariable)(S.lineHeight,"22px")};
|
|
1081
|
+
${(0,B.setVariable)(S.fontWeight,"bold")};
|
|
1079
1082
|
color: ${ct.labelColor};
|
|
1080
1083
|
font-size: ${ct.labelFontSize};
|
|
1081
1084
|
word-break: break-word;
|
|
@@ -1110,11 +1113,11 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1110
1113
|
}
|
|
1111
1114
|
|
|
1112
1115
|
[part="expand"] {
|
|
1113
|
-
${(0
|
|
1114
|
-
${(0
|
|
1116
|
+
${(0,B.setVariable)(L.iconSize,"24px")};
|
|
1117
|
+
${(0,B.setVariable)(L.horizontalPadding,"4px")};
|
|
1115
1118
|
display: block;
|
|
1116
|
-
${(0
|
|
1117
|
-
${(0
|
|
1119
|
+
${(0,B.setVariable)(L.color,ct.expandButtonColor)};
|
|
1120
|
+
${(0,B.setVariable)(L.backgroundColor,ct.expandButtonBackgroundColor)};
|
|
1118
1121
|
flex-shrink: 0;
|
|
1119
1122
|
}
|
|
1120
1123
|
|
|
@@ -1177,7 +1180,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1177
1180
|
}
|
|
1178
1181
|
|
|
1179
1182
|
|
|
1180
|
-
`;var Ta=b(E());var Pa=b(_()),mt=b(ft()),Wa=b(E()),za=b(ie());var
|
|
1183
|
+
`;var Ta=b(E());var Pa=b(_()),mt=b(ft()),Wa=b(E()),za=b(ie());var F=b(E()),ka=b(_());var nt={textColor:F.FtCssVariableFactory.extend("--ft-checkbox-text-color","",F.designSystemVariables.colorOnSurfaceHigh),fontSize:F.FtCssVariableFactory.extend("--ft-checkbox-font-size","",S.fontSize),activeColor:F.FtCssVariableFactory.extend("--ft-checkbox-active-color","",F.designSystemVariables.colorPrimary),checkColor:F.FtCssVariableFactory.extend("--ft-checkbox-check-color","",F.designSystemVariables.colorOnPrimary),borderColor:F.FtCssVariableFactory.extend("--ft-checkbox-border-color","",F.designSystemVariables.colorOnSurfaceMedium),disabledColor:F.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",F.designSystemVariables.colorOnSurfaceDisabled),errorColor:F.FtCssVariableFactory.extend("--ft-checkbox-error-color","",F.designSystemVariables.colorError)},Ia=ka.css`
|
|
1181
1184
|
* {
|
|
1182
1185
|
box-sizing: border-box;
|
|
1183
1186
|
}
|
|
@@ -1258,7 +1261,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1258
1261
|
|
|
1259
1262
|
.ft-checkbox.ft-checkbox--error {
|
|
1260
1263
|
color: ${nt.errorColor};
|
|
1261
|
-
${(0,
|
|
1264
|
+
${(0,F.setVariable)(u.color,nt.errorColor)};
|
|
1262
1265
|
|
|
1263
1266
|
.ft-checkbox--box {
|
|
1264
1267
|
border-color: ${nt.errorColor};
|
|
@@ -1297,7 +1300,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1297
1300
|
<slot></slot>
|
|
1298
1301
|
</ft-typography>
|
|
1299
1302
|
</label>
|
|
1300
|
-
`}onChange(o){o.stopPropagation(),this.checked=o.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(o){var a;super.contentAvailableCallback(o),(a=this.ripple)===null||a===void 0||a.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var o;(o=this.ripple)===null||o===void 0||o.forceFocusUpdate()},0)}};j.elementDefinitions={"ft-ripple":A,"ft-typography":Q};j.styles=Ia;Pt([(0,mt.property)()],j.prototype,"name",void 0);Pt([(0,mt.property)({type:Boolean,reflect:!0})],j.prototype,"checked",void 0);Pt([(0,mt.property)({type:Boolean})],j.prototype,"indeterminate",void 0);Pt([(0,mt.property)({type:Boolean})],j.prototype,"disabled",void 0);Pt([(0,mt.property)({type:Boolean})],j.prototype,"error",void 0);Pt([(0,mt.query)(".ft-checkbox")],j.prototype,"container",void 0);Pt([(0,mt.query)("ft-ripple")],j.prototype,"ripple",void 0);Pt([(0,mt.query)("input")],j.prototype,"input",void 0);(0,Ta.customElement)("ft-checkbox")(j);var fo=b(_a()),
|
|
1303
|
+
`}onChange(o){o.stopPropagation(),this.checked=o.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(o){var a;super.contentAvailableCallback(o),(a=this.ripple)===null||a===void 0||a.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var o;(o=this.ripple)===null||o===void 0||o.forceFocusUpdate()},0)}};j.elementDefinitions={"ft-ripple":A,"ft-typography":Q};j.styles=Ia;Pt([(0,mt.property)()],j.prototype,"name",void 0);Pt([(0,mt.property)({type:Boolean,reflect:!0})],j.prototype,"checked",void 0);Pt([(0,mt.property)({type:Boolean})],j.prototype,"indeterminate",void 0);Pt([(0,mt.property)({type:Boolean})],j.prototype,"disabled",void 0);Pt([(0,mt.property)({type:Boolean})],j.prototype,"error",void 0);Pt([(0,mt.query)(".ft-checkbox")],j.prototype,"container",void 0);Pt([(0,mt.query)("ft-ripple")],j.prototype,"ripple",void 0);Pt([(0,mt.query)("input")],j.prototype,"input",void 0);(0,Ta.customElement)("ft-checkbox")(j);var fo=b(_a()),K=b(ft());var ot=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},yo=class extends CustomEvent{constructor(o){super("treenode-change",{detail:o,bubbles:!0,composed:!0})}},uo=class extends CustomEvent{constructor(){super("treenode-clear-all",{bubbles:!0,composed:!0})}},z=class extends wt.FtLitElement{constructor(){super(...arguments),this.userOpenedNodes=new Set,this.userClosedNodes=new Set,this.currentExpandButtonFocusedIndex=0,this.label="",this.expandLabel="Expand",this.collapseLabel="Collapse",this.expandParametrizedLabel="Expand {0}",this.collapseParametrizedLabel="Collapse {0}",this.expandAllLabel="Expand all",this.collapseAllLabel="Collapse all",this.clearLabel="Clear"}update(o){super.update(o),this.data&&this.isTreeSelectorCollapsed==null&&(this.isTreeSelectorCollapsed=this.data.rootNodes.every(a=>!this.isNodeExpanded(a)))}render(){var o;let a=this.data.rootNodes.some(n=>n.children.length>0);return Y.html`
|
|
1301
1304
|
<div class="ft-tree-selector ${a?"with-expandable":""}">
|
|
1302
1305
|
<div part="header">
|
|
1303
1306
|
${this.label.length>0?Y.html`
|
|
@@ -1355,7 +1358,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1355
1358
|
@keydown="${n=>this.onKeydown(n,o)}"
|
|
1356
1359
|
@click="${()=>this.userChangeNodeExpandStatus(!a,o.value)}">
|
|
1357
1360
|
</ft-button>
|
|
1358
|
-
`}userChangeNodeExpandStatus(o,a){o?this.userClosedNodes.has(a)?this.userClosedNodes.delete(a):this.userOpenedNodes.add(a):this.userOpenedNodes.has(a)?this.userOpenedNodes.delete(a):this.userClosedNodes.add(a),this.requestUpdate()}onKeydown(o,a){let n=!1;switch(o.key){case"ArrowDown":this.focusNextButton(o.target),n=!0;break;case"ArrowUp":this.focusPreviousButton(o.target),n=!0;break;case"ArrowRight":this.isNodeExpanded(a)||this.userChangeNodeExpandStatus(!0,a.value),n=!0;break;case"ArrowLeft":this.isNodeExpanded(a)&&this.userChangeNodeExpandStatus(!1,a.value),n=!0;break}n&&(o.stopPropagation(),o.preventDefault())}focusPreviousButton(o){let a=this.currentLevelExpandButtons.indexOf(o);this.currentLevelExpandButtons[a==0?this.currentLevelExpandButtons.length-1:a-1].focus()}focusNextButton(o){let a=[...this.currentLevelExpandButtons],n=a.indexOf(o);a[n==a.length-1?0:n+1].focus()}isNodeExpanded(o){return!this.userClosedNodes.has(o.value)&&(o.expanded||this.userOpenedNodes.has(o.value))}hasExpandableChildren(o){return o.children.some(a=>a.children.length>0)}toggleExpandAll(){this.isTreeSelectorCollapsed?this.expandAll():this.collapseAll()}expandAll(){this.userClosedNodes=new Set,this.userOpenedNodes=new Set(this.data.rootNodes.flatMap(o=>this.getAllClosedNodes(o))),this.isTreeSelectorCollapsed=!1}getAllClosedNodes(o){return o.children.length!==0?[...o.expanded?[]:[o.value],...o.children.flatMap(a=>this.getAllClosedNodes(a))]:[]}collapseAll(){this.userOpenedNodes=new Set,this.userClosedNodes=new Set(this.data.rootNodes.filter(o=>o.expanded).map(o=>o.value)),this.isTreeSelectorCollapsed=!0}getAriaControlId(o){return o.value.replace(" ","").replace("|","-")+"-children"}};z.elementDefinitions={"ft-checkbox":j,"ft-typography":Q,"ft-button":dt};z.styles=Ba;ot([(0,
|
|
1361
|
+
`}userChangeNodeExpandStatus(o,a){o?this.userClosedNodes.has(a)?this.userClosedNodes.delete(a):this.userOpenedNodes.add(a):this.userOpenedNodes.has(a)?this.userOpenedNodes.delete(a):this.userClosedNodes.add(a),this.requestUpdate()}onKeydown(o,a){let n=!1;switch(o.key){case"ArrowDown":this.focusNextButton(o.target),n=!0;break;case"ArrowUp":this.focusPreviousButton(o.target),n=!0;break;case"ArrowRight":this.isNodeExpanded(a)||this.userChangeNodeExpandStatus(!0,a.value),n=!0;break;case"ArrowLeft":this.isNodeExpanded(a)&&this.userChangeNodeExpandStatus(!1,a.value),n=!0;break}n&&(o.stopPropagation(),o.preventDefault())}focusPreviousButton(o){let a=this.currentLevelExpandButtons.indexOf(o);this.currentLevelExpandButtons[a==0?this.currentLevelExpandButtons.length-1:a-1].focus()}focusNextButton(o){let a=[...this.currentLevelExpandButtons],n=a.indexOf(o);a[n==a.length-1?0:n+1].focus()}isNodeExpanded(o){return!this.userClosedNodes.has(o.value)&&(o.expanded||this.userOpenedNodes.has(o.value))}hasExpandableChildren(o){return o.children.some(a=>a.children.length>0)}toggleExpandAll(){this.isTreeSelectorCollapsed?this.expandAll():this.collapseAll()}expandAll(){this.userClosedNodes=new Set,this.userOpenedNodes=new Set(this.data.rootNodes.flatMap(o=>this.getAllClosedNodes(o))),this.isTreeSelectorCollapsed=!1}getAllClosedNodes(o){return o.children.length!==0?[...o.expanded?[]:[o.value],...o.children.flatMap(a=>this.getAllClosedNodes(a))]:[]}collapseAll(){this.userOpenedNodes=new Set,this.userClosedNodes=new Set(this.data.rootNodes.filter(o=>o.expanded).map(o=>o.value)),this.isTreeSelectorCollapsed=!0}getAriaControlId(o){return o.value.replace(" ","").replace("|","-")+"-children"}};z.elementDefinitions={"ft-checkbox":j,"ft-typography":Q,"ft-button":dt};z.styles=Ba;ot([(0,K.property)()],z.prototype,"data",void 0);ot([(0,K.state)({hasChanged:wt.hasChanged})],z.prototype,"userOpenedNodes",void 0);ot([(0,K.state)({hasChanged:wt.hasChanged})],z.prototype,"userClosedNodes",void 0);ot([(0,K.queryAll)("[part='expand']")],z.prototype,"currentLevelExpandButtons",void 0);ot([(0,K.state)()],z.prototype,"currentExpandButtonFocusedIndex",void 0);ot([(0,K.state)()],z.prototype,"isTreeSelectorCollapsed",void 0);ot([(0,K.property)()],z.prototype,"label",void 0);ot([(0,K.property)()],z.prototype,"expandLabel",void 0);ot([(0,K.property)()],z.prototype,"collapseLabel",void 0);ot([(0,K.property)()],z.prototype,"expandParametrizedLabel",void 0);ot([(0,K.property)()],z.prototype,"collapseParametrizedLabel",void 0);ot([(0,K.property)()],z.prototype,"expandAllLabel",void 0);ot([(0,K.property)()],z.prototype,"collapseAllLabel",void 0);ot([(0,K.property)()],z.prototype,"clearLabel",void 0);(0,Ua.customElement)("ft-tree-selector")(z);})();
|
|
1359
1362
|
/*! Bundled license information:
|
|
1360
1363
|
|
|
1361
1364
|
lit-html/lit-html.js:
|