@fluid-topics/ft-button 1.2.7 → 1.2.9
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/build/ft-base-button.d.ts +3 -0
- package/build/ft-base-button.js +14 -0
- package/build/ft-button.light.js +20 -20
- package/build/ft-button.min.js +13 -13
- package/package.json +8 -8
|
@@ -37,6 +37,7 @@ export declare class FtBaseButton extends FtBaseButton_base implements FtBaseBut
|
|
|
37
37
|
forceTooltip: boolean;
|
|
38
38
|
private button?;
|
|
39
39
|
private slottedContent?;
|
|
40
|
+
private tooltip?;
|
|
40
41
|
get buttonClasses(): ClassInfo;
|
|
41
42
|
get typographyVariant(): string;
|
|
42
43
|
constructor();
|
|
@@ -44,6 +45,8 @@ export declare class FtBaseButton extends FtBaseButton_base implements FtBaseBut
|
|
|
44
45
|
private addTooltipIfNeeded;
|
|
45
46
|
private resolveIcon;
|
|
46
47
|
focus(): void;
|
|
48
|
+
focusWithoutTooltip(): void;
|
|
49
|
+
private setTooltipManual;
|
|
47
50
|
click(): void;
|
|
48
51
|
private getLabel;
|
|
49
52
|
get textContent(): string;
|
package/build/ft-base-button.js
CHANGED
|
@@ -107,6 +107,17 @@ class FtBaseButton extends toFtFormComponent(FtLitElement, "button") {
|
|
|
107
107
|
var _a;
|
|
108
108
|
(_a = this.button) === null || _a === void 0 ? void 0 : _a.focus();
|
|
109
109
|
}
|
|
110
|
+
focusWithoutTooltip() {
|
|
111
|
+
var _a;
|
|
112
|
+
this.setTooltipManual(true);
|
|
113
|
+
(_a = this.button) === null || _a === void 0 ? void 0 : _a.focus();
|
|
114
|
+
this.setTooltipManual(false);
|
|
115
|
+
}
|
|
116
|
+
setTooltipManual(manualTooltip) {
|
|
117
|
+
if (this.tooltip) {
|
|
118
|
+
this.tooltip.manual = manualTooltip;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
110
121
|
click() {
|
|
111
122
|
var _a;
|
|
112
123
|
(_a = this.button) === null || _a === void 0 ? void 0 : _a.click();
|
|
@@ -182,4 +193,7 @@ __decorate([
|
|
|
182
193
|
__decorate([
|
|
183
194
|
query(".ft-button--label slot")
|
|
184
195
|
], FtBaseButton.prototype, "slottedContent", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
query("[part=tooltip]")
|
|
198
|
+
], FtBaseButton.prototype, "tooltip", void 0);
|
|
185
199
|
export { FtBaseButton };
|
package/build/ft-button.light.js
CHANGED
|
@@ -332,7 +332,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
332
332
|
.ft-icon--material {
|
|
333
333
|
font-family: ${K.materialFontFamily}, "Material Icons", sans-serif;
|
|
334
334
|
}
|
|
335
|
-
`;var tr=C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorPrimary),
|
|
335
|
+
`;var tr=C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorPrimary),H={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorSurface),borderRadius:C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusL),color:tr,fontSize:C.FtCssVariableFactory.extend("--ft-button-font-size","",et.fontSize),iconSize:C.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:C.FtCssVariableFactory.extend("--ft-button-ripple-color","",tr),verticalPadding:C.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:C.FtCssVariableFactory.external(C.designSystemVariables.colorOpacityDisabled,"Design system")},er=C.FtCssVariableFactory.extend("--ft-button-primary-color","",C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorOnPrimary)),we={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-primary-background-color","",C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorPrimary)),color:er,rippleColor:C.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",er)},ot={borderRadius:C.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusM)),verticalPadding:C.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},rr=[or.css`
|
|
336
336
|
:host {
|
|
337
337
|
display: inline-block;
|
|
338
338
|
max-width: 100%;
|
|
@@ -343,7 +343,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
343
343
|
box-shadow: 0px 0px 0px transparent;
|
|
344
344
|
border: 0px solid transparent;
|
|
345
345
|
text-shadow: 0px 0px 0px transparent;
|
|
346
|
-
font-size: ${
|
|
346
|
+
font-size: ${H.fontSize};
|
|
347
347
|
text-decoration: none;
|
|
348
348
|
}
|
|
349
349
|
|
|
@@ -373,21 +373,21 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
373
373
|
border: none;
|
|
374
374
|
pointer-events: auto;
|
|
375
375
|
|
|
376
|
-
--ft-button-internal-line-height: max(calc(${
|
|
377
|
-
--ft-button-internal-color: ${
|
|
378
|
-
${(0,C.setVariable)(K.size,
|
|
379
|
-
${(0,C.setVariable)(u.color,
|
|
376
|
+
--ft-button-internal-line-height: max(calc(${H.fontSize} + 2px), ${H.iconSize});
|
|
377
|
+
--ft-button-internal-color: ${H.color};
|
|
378
|
+
${(0,C.setVariable)(K.size,H.iconSize)};
|
|
379
|
+
${(0,C.setVariable)(u.color,H.rippleColor)};
|
|
380
380
|
|
|
381
|
-
border-radius: ${
|
|
382
|
-
padding: ${
|
|
383
|
-
background-color: ${
|
|
381
|
+
border-radius: ${H.borderRadius};
|
|
382
|
+
padding: ${H.verticalPadding} ${H.horizontalPadding};
|
|
383
|
+
background-color: ${H.backgroundColor};
|
|
384
384
|
color: var(--ft-button-internal-color);
|
|
385
385
|
-webkit-mask-image: radial-gradient(white, black);
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
.ft-button.ft-button--outlined {
|
|
389
389
|
border: 1px solid var(--ft-button-internal-color);
|
|
390
|
-
padding: calc(${
|
|
390
|
+
padding: calc(${H.verticalPadding} - 1px) calc(${H.horizontalPadding} - 1px);
|
|
391
391
|
}
|
|
392
392
|
|
|
393
393
|
.ft-button.ft-button--dense {
|
|
@@ -405,7 +405,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
.ft-button--round {
|
|
408
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
408
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${H.verticalPadding});
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
.ft-button--round.ft-button--dense {
|
|
@@ -414,7 +414,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
414
414
|
|
|
415
415
|
.ft-button[disabled] {
|
|
416
416
|
filter: grayscale(1);
|
|
417
|
-
opacity: ${
|
|
417
|
+
opacity: ${H.opacityDisabled};
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
.ft-button.ft-button--primary {
|
|
@@ -433,7 +433,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
433
433
|
white-space: nowrap;
|
|
434
434
|
text-overflow: ellipsis;
|
|
435
435
|
display: block;
|
|
436
|
-
margin: 0 ${
|
|
436
|
+
margin: 0 ${H.iconPadding};
|
|
437
437
|
${(0,C.setVariable)(et.fontSize,"1em")};
|
|
438
438
|
${(0,C.setVariable)(et.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
439
439
|
}
|
|
@@ -452,8 +452,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
452
452
|
}
|
|
453
453
|
|
|
454
454
|
.ft-button--label[hidden] + [part="icon"] {
|
|
455
|
-
margin: 0 calc(${
|
|
456
|
-
padding: 0 ${
|
|
455
|
+
margin: 0 calc(${H.horizontalPadding} * -1);
|
|
456
|
+
padding: 0 ${H.verticalPadding};
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
@@ -466,7 +466,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
466
466
|
}
|
|
467
467
|
|
|
468
468
|
ft-loader {
|
|
469
|
-
${(0,C.setVariable)(w.size,
|
|
469
|
+
${(0,C.setVariable)(w.size,H.iconSize)};
|
|
470
470
|
${(0,C.setVariable)(w.color,"var(--ft-button-internal-color)")};
|
|
471
471
|
}
|
|
472
472
|
`,C.noTextSelect];var Ct=S(R());var cr=S(R());var nr=S(M()),D=S(gt()),ir=S(Le()),jt=S(R());var F=function(e,o,a,i){var c=arguments.length,s=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(s=(c<3?l(s):c>3?l(o,a,s):l(o,a))||s);return c>3&&s&&Object.defineProperty(o,a,s),s},A=class extends jt.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new jt.Debouncer(1e3),this.onTransitionStart=o=>{o.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=o=>{o.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new jt.Debouncer(10),this.moveRipple=o=>{var a,i;let{x:c,y:s}=this.getCoordinates(o),l=(i=(a=this.ripple)===null||a===void 0?void 0:a.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(c!=null?c-l.x:l.width/2),this.originY=Math.round(s!=null?s-l.y:l.height/2)},this.startPress=o=>{this.moveRipple(o),this.pressed=!this.isIgnored(o)},this.endPress=()=>{this.pressed=!1},this.startHover=o=>{this.hovered=!this.isIgnored(o)},this.endHover=()=>{this.hovered=!1},this.startFocus=o=>{this.focused=this.isFocusVisible(o?.target)&&!this.isIgnored(o)},this.endFocus=()=>{this.focused=!1}}render(){let o={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return nr.html`
|
|
@@ -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,i;super.update(o),o.has("disabled")&&(this.disabled?(this.endRipple(),(a=this.target)===null||a===void 0||a.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.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 i=(o=this.shadowRoot)===null||o===void 0?void 0:o.host.parentElement;i&&this.setupFor((a=this.target)!==null&&a!==void 0?a:i)}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(h=>window.addEventListener(h,this.endPress,{once:!0})),this.startPress(y)},i=a("mouseup","contextmenu"),c=a("touchend","touchcancel"),s=p=>{["Enter"," "].includes(p.key)&&a("keyup")(p)},l={passive:!0};o.addEventListener("mouseover",this.startHover,l),o.addEventListener("mousemove",this.moveRipple,l),o.addEventListener("mouseleave",this.endHover,l),o.addEventListener("mousedown",i,l),o.addEventListener("touchstart",c,l),o.addEventListener("touchmove",this.moveRipple,l),o.addEventListener("keydown",s,l),o.addEventListener("focus",this.startFocus,l),o.addEventListener("blur",this.endFocus,l),o.addEventListener("focusin",this.startFocus,l),o.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{o.removeAttribute("data-is-ft-ripple-target"),o.removeEventListener("mouseover",this.startHover,l),o.removeEventListener("mousemove",this.moveRipple,l),o.removeEventListener("mouseleave",this.endHover,l),o.removeEventListener("mousedown",i,l),o.removeEventListener("touchstart",c,l),o.removeEventListener("touchmove",this.moveRipple,l),o.removeEventListener("keydown",s,l),o.removeEventListener("focus",this.startFocus,l),o.removeEventListener("blur",this.endFocus,l),o.removeEventListener("focusin",this.startFocus,l),o.removeEventListener("focusout",this.endFocus,l),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(o){let a=o,i=o,c,s;return a.x!=null?{x:c,y:s}=a:i.touches!=null&&(c=i.touches[0].clientX,s=i.touches[0].clientY),{x:c,y:s}}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=so;F([(0,D.property)({type:Boolean})],A.prototype,"primary",void 0);F([(0,D.property)({type:Boolean})],A.prototype,"secondary",void 0);F([(0,D.property)({type:Boolean})],A.prototype,"unbounded",void 0);F([(0,D.property)({type:Boolean})],A.prototype,"activated",void 0);F([(0,D.property)({type:Boolean})],A.prototype,"selected",void 0);F([(0,D.property)({type:Boolean})],A.prototype,"disabled",void 0);F([(0,D.state)()],A.prototype,"hovered",void 0);F([(0,D.state)()],A.prototype,"focused",void 0);F([(0,D.state)()],A.prototype,"pressed",void 0);F([(0,D.state)()],A.prototype,"rippling",void 0);F([(0,D.state)()],A.prototype,"originX",void 0);F([(0,D.state)()],A.prototype,"originY",void 0);F([(0,D.query)(".ft-ripple")],A.prototype,"ripple",void 0);F([(0,D.query)(".ft-ripple--effect")],A.prototype,"rippleEffect",void 0);(0,cr.customElement)("ft-ripple")(A);var ta=S(R());var Jr=S(M()),T=S(gt()),ne=S(R());var Lr=S(R());var Pe=globalThis,fe=Pe.trustedTypes,lr=fe?fe.createPolicy("lit-html",{createHTML:e=>e}):void 0,ur="$lit$",ht=`lit$${(Math.random()+"").slice(9)}$`,gr="?"+ht,Oa=`<${gr}>`,Et=document,ye=()=>Et.createComment(""),qt=e=>e===null||typeof e!="object"&&typeof e!="function",mr=Array.isArray,Ca=e=>mr(e)||typeof e?.[Symbol.iterator]=="function",Re=`[
|
|
484
484
|
\f\r]`,Xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,sr=/-->/g,dr=/>/g,vt=RegExp(`>|${Re}(?:([^\\s"'>=/]+)(${Re}*=${Re}*(?:[^
|
|
485
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),pr=/'/g,fr=/"/g,hr=/^(?:script|style|textarea|title)$/i,br=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),xr=br(1),Sr=br(2),Qt=Symbol.for("lit-noChange"),
|
|
485
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),pr=/'/g,fr=/"/g,hr=/^(?:script|style|textarea|title)$/i,br=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),xr=br(1),Sr=br(2),Qt=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),yr=new WeakMap,Nt=Et.createTreeWalker(Et,129);function Or(e,o){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return lr!==void 0?lr.createHTML(o):o}var va=(e,o)=>{let a=e.length-1,i=[],c,s=o===2?"<svg>":"",l=Xt;for(let p=0;p<a;p++){let y=e[p],h,O,b=-1,N=0;for(;N<y.length&&(l.lastIndex=N,O=l.exec(y),O!==null);)N=l.lastIndex,l===Xt?O[1]==="!--"?l=sr:O[1]!==void 0?l=dr:O[2]!==void 0?(hr.test(O[2])&&(c=RegExp("</"+O[2],"g")),l=vt):O[3]!==void 0&&(l=vt):l===vt?O[0]===">"?(l=c??Xt,b=-1):O[1]===void 0?b=-2:(b=l.lastIndex-O[2].length,h=O[1],l=O[3]===void 0?vt:O[3]==='"'?fr:pr):l===fr||l===pr?l=vt:l===sr||l===dr?l=Xt:(l=vt,c=void 0);let v=l===vt&&e[p+1].startsWith("/>")?" ":"";s+=l===Xt?y+Oa:b>=0?(i.push(h),y.slice(0,b)+ur+y.slice(b)+ht+v):y+ht+(b===-2?p:v)}return[Or(e,s+(e[a]||"<?>")+(o===2?"</svg>":"")),i]},Jt=class e{constructor({strings:o,_$litType$:a},i){let c;this.parts=[];let s=0,l=0,p=o.length-1,y=this.parts,[h,O]=va(o,a);if(this.el=e.createElement(h,i),Nt.currentNode=this.el.content,a===2){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(c=Nt.nextNode())!==null&&y.length<p;){if(c.nodeType===1){if(c.hasAttributes())for(let b of c.getAttributeNames())if(b.endsWith(ur)){let N=O[l++],v=c.getAttribute(b).split(ht),E=/([.?@])?(.*)/.exec(N);y.push({type:1,index:s,name:E[2],strings:v,ctor:E[1]==="."?$e:E[1]==="?"?Be:E[1]==="@"?Ie:Ut}),c.removeAttribute(b)}else b.startsWith(ht)&&(y.push({type:6,index:s}),c.removeAttribute(b));if(hr.test(c.tagName)){let b=c.textContent.split(ht),N=b.length-1;if(N>0){c.textContent=fe?fe.emptyScript:"";for(let v=0;v<N;v++)c.append(b[v],ye()),Nt.nextNode(),y.push({type:2,index:++s});c.append(b[N],ye())}}}else if(c.nodeType===8)if(c.data===gr)y.push({type:2,index:s});else{let b=-1;for(;(b=c.data.indexOf(ht,b+1))!==-1;)y.push({type:7,index:s}),b+=ht.length-1}s++}}static createElement(o,a){let i=Et.createElement("template");return i.innerHTML=o,i}};function Dt(e,o,a=e,i){if(o===Qt)return o;let c=i!==void 0?a._$Co?.[i]:a._$Cl,s=qt(o)?void 0:o._$litDirective$;return c?.constructor!==s&&(c?._$AO?.(!1),s===void 0?c=void 0:(c=new s(e),c._$AT(e,a,i)),i!==void 0?(a._$Co??=[])[i]=c:a._$Cl=c),c!==void 0&&(o=Dt(e,c._$AS(e,o.values),c,i)),o}var Ae=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:i}=this._$AD,c=(o?.creationScope??Et).importNode(a,!0);Nt.currentNode=c;let s=Nt.nextNode(),l=0,p=0,y=i[0];for(;y!==void 0;){if(l===y.index){let h;y.type===2?h=new ue(s,s.nextSibling,this,o):y.type===1?h=new y.ctor(s,y.name,y.strings,this,o):y.type===6&&(h=new We(s,this,o)),this._$AV.push(h),y=i[++p]}l!==y?.index&&(s=Nt.nextNode(),l++)}return Nt.currentNode=Et,c}p(o){let a=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(o,i,a),a+=i.strings.length-2):i._$AI(o[a])),a++}},ue=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,a,i,c){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=o,this._$AB=a,this._$AM=i,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=Dt(this,o,a),qt(o)?o===_||o==null||o===""?(this._$AH!==_&&this._$AR(),this._$AH=_):o!==this._$AH&&o!==Qt&&this._(o):o._$litType$!==void 0?this.g(o):o.nodeType!==void 0?this.$(o):Ca(o)?this.T(o):this._(o)}k(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}$(o){this._$AH!==o&&(this._$AR(),this._$AH=this.k(o))}_(o){this._$AH!==_&&qt(this._$AH)?this._$AA.nextSibling.data=o:this.$(Et.createTextNode(o)),this._$AH=o}g(o){let{values:a,_$litType$:i}=o,c=typeof i=="number"?this._$AC(o):(i.el===void 0&&(i.el=Jt.createElement(Or(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===c)this._$AH.p(a);else{let s=new Ae(c,this),l=s.u(this.options);s.p(a),this.$(l),this._$AH=s}}_$AC(o){let a=yr.get(o.strings);return a===void 0&&yr.set(o.strings,a=new Jt(o)),a}T(o){mr(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,i,c=0;for(let s of o)c===a.length?a.push(i=new e(this.k(ye()),this.k(ye()),this,this.options)):i=a[c],i._$AI(s),c++;c<a.length&&(this._$AR(i&&i._$AB.nextSibling,c),a.length=c)}_$AR(o=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},Ut=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,a,i,c,s){this.type=1,this._$AH=_,this._$AN=void 0,this.element=o,this.name=a,this._$AM=c,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}_$AI(o,a=this,i,c){let s=this.strings,l=!1;if(s===void 0)o=Dt(this,o,a,0),l=!qt(o)||o!==this._$AH&&o!==Qt,l&&(this._$AH=o);else{let p=o,y,h;for(o=s[0],y=0;y<s.length-1;y++)h=Dt(this,p[i+y],a,y),h===Qt&&(h=this._$AH[y]),l||=!qt(h)||h!==this._$AH[y],h===_?o=_:o!==_&&(o+=(h??"")+s[y+1]),this._$AH[y]=h}l&&!c&&this.O(o)}O(o){o===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},$e=class extends Ut{constructor(){super(...arguments),this.type=3}O(o){this.element[this.name]=o===_?void 0:o}},Be=class extends Ut{constructor(){super(...arguments),this.type=4}O(o){this.element.toggleAttribute(this.name,!!o&&o!==_)}},Ie=class extends Ut{constructor(o,a,i,c,s){super(o,a,i,c,s),this.type=5}_$AI(o,a=this){if((o=Dt(this,o,a,0)??_)===Qt)return;let i=this._$AH,c=o===_&&i!==_||o.capture!==i.capture||o.once!==i.once||o.passive!==i.passive,s=o!==_&&(i===_||c);c&&this.element.removeEventListener(this.name,this,i),s&&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)}},We=class{constructor(o,a,i){this.element=o,this.type=6,this._$AN=void 0,this._$AM=a,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(o){Dt(this,o)}};var Na=Pe.litHtmlPolyfillSupport;Na?.(Jt,ue),(Pe.litHtmlVersions??=[]).push("3.1.0");var vr=Symbol.for(""),Ea=e=>{if(e?.r===vr)return e?._$litStatic$},ke=e=>({_$litStatic$:e,r:vr});var Cr=new Map,Nr=e=>(o,...a)=>{let i=a.length,c,s,l=[],p=[],y,h=0,O=!1;for(;h<i;){for(y=o[h];h<i&&(s=a[h],(c=Ea(s))!==void 0);)y+=c+o[++h],O=!0;h!==i&&p.push(s),l.push(y),h++}if(h===i&&l.push(o[i]),O){let b=l.join("$$lit$$");(o=Cr.get(b))===void 0&&(l.raw=l,Cr.set(b,o=l)),a=p}return e(o,...a)},Te=Nr(xr),us=Nr(Sr);var ze=S(gt()),wr=S(R());var bt;(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"})(bt||(bt={}));var Er=function(e,o,a,i){var c=arguments.length,s=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(s=(c<3?l(s):c>3?l(o,a,s):l(o,a))||s);return c>3&&s&&Object.defineProperty(o,a,s),s},Q=class extends wr.FtLitElement{constructor(){super(...arguments),this.variant=bt.body1}render(){return this.element?Te`
|
|
486
486
|
<${ke(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 Br=["top","right","bottom","left"],$r=["start","end"],_e=Br.reduce((e,o)=>e.concat(o,o+"-"+$r[0],o+"-"+$r[1]),[]),te=Math.min,xt=Math.max,ee=Math.round;var st=e=>({x:e,y:e}),wa={left:"right",right:"left",bottom:"top",top:"bottom"},La={start:"end",end:"start"};function De(e,o,a){return xt(e,te(o,a))}function ge(e,o){return typeof e=="function"?e(o):e}function Zt(e){return e.split("-")[0]}function St(e){return e.split("-")[1]}function Ue(e){return e==="x"?"y":"x"}function Ge(e){return e==="y"?"height":"width"}function me(e){return["top","bottom"].includes(Zt(e))?"y":"x"}function Ze(e){return Ue(me(e))}function Ir(e,o,a){a===void 0&&(a=!1);let i=St(e),c=Ze(e),s=Ge(c),l=c==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[s]>o.floating[s]&&(l=He(l)),[l,He(l)]}function Wr(e){return e.replace(/start|end/g,o=>La[o])}function He(e){return e.replace(/left|right|bottom|top/g,o=>wa[o])}function Ra(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pr(e){return typeof e!="number"?Ra(e):{top:e,right:e,bottom:e,left:e}}function wt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function kr(e,o,a){let{reference:i,floating:c}=e,s=me(o),l=Ze(o),p=Ge(l),y=Zt(o),h=s==="y",O=i.x+i.width/2-c.width/2,b=i.y+i.height/2-c.height/2,N=i[p]/2-c[p]/2,v;switch(y){case"top":v={x:O,y:i.y-c.height};break;case"bottom":v={x:O,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:b};break;case"left":v={x:i.x-c.width,y:b};break;default:v={x:i.x,y:i.y}}switch(St(o)){case"start":v[l]-=N*(a&&h?-1:1);break;case"end":v[l]+=N*(a&&h?-1:1);break}return v}var Tr=async(e,o,a)=>{let{placement:i="bottom",strategy:c="absolute",middleware:s=[],platform:l}=a,p=s.filter(Boolean),y=await(l.isRTL==null?void 0:l.isRTL(o)),h=await l.getElementRects({reference:e,floating:o,strategy:c}),{x:O,y:b}=kr(h,i,y),N=i,v={},E=0;for(let B=0;B<p.length;B++){let{name:P,fn:I}=p[B],{x:k,y:Z,data:ut,reset:U}=await I({x:O,y:b,initialPlacement:i,placement:N,strategy:c,middlewareData:v,rects:h,platform:l,elements:{reference:e,floating:o}});if(O=k??O,b=Z??b,v={...v,[P]:{...v[P],...ut}},U&&E<=50){E++,typeof U=="object"&&(U.placement&&(N=U.placement),U.rects&&(h=U.rects===!0?await l.getElementRects({reference:e,floating:o,strategy:c}):U.rects),{x:O,y:b}=kr(h,N,y)),B=-1;continue}}return{x:O,y:b,placement:N,strategy:c,middlewareData:v}};async function Me(e,o){var a;o===void 0&&(o={});let{x:i,y:c,platform:s,rects:l,elements:p,strategy:y}=e,{boundary:h="clippingAncestors",rootBoundary:O="viewport",elementContext:b="floating",altBoundary:N=!1,padding:v=0}=ge(o,e),E=Pr(v),P=p[N?b==="floating"?"reference":"floating":b],I=wt(await s.getClippingRect({element:(a=await(s.isElement==null?void 0:s.isElement(P)))==null||a?P:P.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(p.floating)),boundary:h,rootBoundary:O,strategy:y})),k=b==="floating"?{...l.floating,x:i,y:c}:l.reference,Z=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p.floating)),ut=await(s.isElement==null?void 0:s.isElement(Z))?await(s.getScale==null?void 0:s.getScale(Z))||{x:1,y:1}:{x:1,y:1},U=wt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:Z,strategy:y}):k);return{top:(I.top-U.top+E.top)/ut.y,bottom:(U.bottom-I.bottom+E.bottom)/ut.y,left:(I.left-U.left+E.left)/ut.x,right:(U.right-I.right+E.right)/ut.x}}function Aa(e,o,a){return(e?[...a.filter(c=>St(c)===e),...a.filter(c=>St(c)!==e)]:a.filter(c=>Zt(c)===c)).filter(c=>e?St(c)===e||(o?Wr(c)!==c:!1):!0)}var Ke=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,i,c;let{rects:s,middlewareData:l,placement:p,platform:y,elements:h}=o,{crossAxis:O=!1,alignment:b,allowedPlacements:N=_e,autoAlignment:v=!0,...E}=ge(e,o),B=b!==void 0||N===_e?Aa(b||null,v,N):N,P=await Me(o,E),I=((a=l.autoPlacement)==null?void 0:a.index)||0,k=B[I];if(k==null)return{};let Z=Ir(k,s,await(y.isRTL==null?void 0:y.isRTL(h.floating)));if(p!==k)return{reset:{placement:B[0]}};let ut=[P[Zt(k)],P[Z[0]],P[Z[1]]],U=[...((i=l.autoPlacement)==null?void 0:i.overflows)||[],{placement:k,overflows:ut}],Xe=B[I+1];if(Xe)return{data:{index:I+1,overflows:U},reset:{placement:Xe}};let qe=U.map(tt=>{let Ft=St(tt.placement);return[tt.placement,Ft&&O?tt.overflows.slice(0,2).reduce((fa,ya)=>fa+ya,0):tt.overflows[0],tt.overflows]}).sort((tt,Ft)=>tt[1]-Ft[1]),Qe=((c=qe.filter(tt=>tt[2].slice(0,St(tt[0])?2:3).every(Ft=>Ft<=0))[0])==null?void 0:c[0])||qe[0][0];return Qe!==p?{data:{index:I+1,overflows:U},reset:{placement:Qe}}:{}}}};var Fe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:i,placement:c}=o,{mainAxis:s=!0,crossAxis:l=!1,limiter:p={fn:P=>{let{x:I,y:k}=P;return{x:I,y:k}}},...y}=ge(e,o),h={x:a,y:i},O=await Me(o,y),b=me(Zt(c)),N=Ue(b),v=h[N],E=h[b];if(s){let P=N==="y"?"top":"left",I=N==="y"?"bottom":"right",k=v+O[P],Z=v-O[I];v=De(k,v,Z)}if(l){let P=b==="y"?"top":"left",I=b==="y"?"bottom":"right",k=E+O[P],Z=E-O[I];E=De(k,E,Z)}let B=p.fn({...o,[N]:v,[b]:E});return{...B,data:{x:B.x-a,y:B.y-i}}}}};function dt(e){return Hr(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function pt(e){var o;return(o=(Hr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Hr(e){return e instanceof Node||e instanceof V(e).Node}function rt(e){return e instanceof Element||e instanceof V(e).Element}function J(e){return e instanceof HTMLElement||e instanceof V(e).HTMLElement}function zr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function Mt(e){let{overflow:o,overflowX:a,overflowY:i,display:c}=j(e);return/auto|scroll|overlay|hidden|clip/.test(o+i+a)&&!["inline","contents"].includes(c)}function _r(e){return["table","td","th"].includes(dt(e))}function be(e){let o=xe(),a=j(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(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function Dr(e){let o=Lt(e);for(;J(o)&&!oe(o);){if(be(o))return o;o=Lt(o)}return null}function xe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function oe(e){return["html","body","#document"].includes(dt(e))}function j(e){return V(e).getComputedStyle(e)}function re(e){return rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Lt(e){if(dt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||zr(e)&&e.host||pt(e);return zr(o)?o.host:o}function Ur(e){let o=Lt(e);return oe(o)?e.ownerDocument?e.ownerDocument.body:e.body:J(o)&&Mt(o)?o:Ur(o)}function he(e,o,a){var i;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=Ur(e),s=c===((i=e.ownerDocument)==null?void 0:i.body),l=V(c);return s?o.concat(l,l.visualViewport||[],Mt(c)?c:[],l.frameElement&&a?he(l.frameElement):[]):o.concat(c,he(c,[],a))}function Mr(e){let o=j(e),a=parseFloat(o.width)||0,i=parseFloat(o.height)||0,c=J(e),s=c?e.offsetWidth:a,l=c?e.offsetHeight:i,p=ee(a)!==s||ee(i)!==l;return p&&(a=s,i=l),{width:a,height:i,$:p}}function Kr(e){return rt(e)?e:e.contextElement}function Kt(e){let o=Kr(e);if(!J(o))return st(1);let a=o.getBoundingClientRect(),{width:i,height:c,$:s}=Mr(o),l=(s?ee(a.width):a.width)/i,p=(s?ee(a.height):a.height)/c;return(!l||!Number.isFinite(l))&&(l=1),(!p||!Number.isFinite(p))&&(p=1),{x:l,y:p}}var Ia=st(0);function Fr(e){let o=V(e);return!xe()||!o.visualViewport?Ia:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Wa(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==V(e)?!1:o}function ae(e,o,a,i){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),s=Kr(e),l=st(1);o&&(i?rt(i)&&(l=Kt(i)):l=Kt(e));let p=Wa(s,a,i)?Fr(s):st(0),y=(c.left+p.x)/l.x,h=(c.top+p.y)/l.y,O=c.width/l.x,b=c.height/l.y;if(s){let N=V(s),v=i&&rt(i)?V(i):i,E=N.frameElement;for(;E&&i&&v!==N;){let B=Kt(E),P=E.getBoundingClientRect(),I=j(E),k=P.left+(E.clientLeft+parseFloat(I.paddingLeft))*B.x,Z=P.top+(E.clientTop+parseFloat(I.paddingTop))*B.y;y*=B.x,h*=B.y,O*=B.x,b*=B.y,y+=k,h+=Z,E=V(E).frameElement}}return wt({width:O,height:b,x:y,y:h})}function Pa(e){let{rect:o,offsetParent:a,strategy:i}=e,c=J(a),s=pt(a);if(a===s)return o;let l={scrollLeft:0,scrollTop:0},p=st(1),y=st(0);if((c||!c&&i!=="fixed")&&((dt(a)!=="body"||Mt(s))&&(l=re(a)),J(a))){let h=ae(a);p=Kt(a),y.x=h.x+a.clientLeft,y.y=h.y+a.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-l.scrollLeft*p.x+y.x,y:o.y*p.y-l.scrollTop*p.y+y.y}}function ka(e){return Array.from(e.getClientRects())}function Vr(e){return ae(pt(e)).left+re(e).scrollLeft}function Ta(e){let o=pt(e),a=re(e),i=e.ownerDocument.body,c=xt(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),s=xt(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),l=-a.scrollLeft+Vr(e),p=-a.scrollTop;return j(i).direction==="rtl"&&(l+=xt(o.clientWidth,i.clientWidth)-c),{width:c,height:s,x:l,y:p}}function za(e,o){let a=V(e),i=pt(e),c=a.visualViewport,s=i.clientWidth,l=i.clientHeight,p=0,y=0;if(c){s=c.width,l=c.height;let h=xe();(!h||h&&o==="fixed")&&(p=c.offsetLeft,y=c.offsetTop)}return{width:s,height:l,x:p,y}}function Ha(e,o){let a=ae(e,!0,o==="fixed"),i=a.top+e.clientTop,c=a.left+e.clientLeft,s=J(e)?Kt(e):st(1),l=e.clientWidth*s.x,p=e.clientHeight*s.y,y=c*s.x,h=i*s.y;return{width:l,height:p,x:y,y:h}}function Gr(e,o,a){let i;if(o==="viewport")i=za(e,a);else if(o==="document")i=Ta(pt(e));else if(rt(o))i=Ha(o,a);else{let c=Fr(e);i={...o,x:o.x-c.x,y:o.y-c.y}}return wt(i)}function Yr(e,o){let a=Lt(e);return a===o||!rt(a)||oe(a)?!1:j(a).position==="fixed"||Yr(a,o)}function _a(e,o){let a=o.get(e);if(a)return a;let i=he(e,[],!1).filter(p=>rt(p)&&dt(p)!=="body"),c=null,s=j(e).position==="fixed",l=s?Lt(e):e;for(;rt(l)&&!oe(l);){let p=j(l),y=be(l);!y&&p.position==="fixed"&&(c=null),(s?!y&&!c:!y&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Mt(l)&&!y&&Yr(e,l))?i=i.filter(O=>O!==l):c=p,l=Lt(l)}return o.set(e,i),i}function Da(e){let{element:o,boundary:a,rootBoundary:i,strategy:c}=e,l=[...a==="clippingAncestors"?_a(o,this._c):[].concat(a),i],p=l[0],y=l.reduce((h,O)=>{let b=Gr(o,O,c);return h.top=xt(b.top,h.top),h.right=te(b.right,h.right),h.bottom=te(b.bottom,h.bottom),h.left=xt(b.left,h.left),h},Gr(o,p,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function Ua(e){return Mr(e)}function Ga(e,o,a){let i=J(o),c=pt(o),s=a==="fixed",l=ae(e,!0,s,o),p={scrollLeft:0,scrollTop:0},y=st(0);if(i||!i&&!s)if((dt(o)!=="body"||Mt(c))&&(p=re(o)),i){let h=ae(o,!0,s,o);y.x=h.x+o.clientLeft,y.y=h.y+o.clientTop}else c&&(y.x=Vr(c));return{x:l.left+p.scrollLeft-y.x,y:l.top+p.scrollTop-y.y,width:l.width,height:l.height}}function Zr(e,o){return!J(e)||j(e).position==="fixed"?null:o?o(e):e.offsetParent}function jr(e,o){let a=V(e);if(!J(e))return a;let i=Zr(e,o);for(;i&&_r(i)&&j(i).position==="static";)i=Zr(i,o);return i&&(dt(i)==="html"||dt(i)==="body"&&j(i).position==="static"&&!be(i))?a:i||Dr(e)||a}var Za=async function(e){let{reference:o,floating:a,strategy:i}=e,c=this.getOffsetParent||jr,s=this.getDimensions;return{reference:Ga(o,await c(a),i),floating:{x:0,y:0,...await s(a)}}};function Ma(e){return j(e).direction==="rtl"}var Se={convertOffsetParentRelativeRectToViewportRelativeRect:Pa,getDocumentElement:pt,getClippingRect:Da,getOffsetParent:jr,getElementRects:Za,getClientRects:ka,getDimensions:Ua,getScale:Kt,isElement:rt,isRTL:Ma};var Xr=(e,o,a)=>{let i=new Map,c={platform:Se,...a},s={...c.platform,_c:i};return Tr(e,o,{...c,platform:s})};function qr(e){return Ka(e)}function Ve(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Ka(e){for(let o=e;o;o=Ve(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Ve(e);o;o=Ve(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 Qr(e,o,a){return Xr(e,o,{platform:{...Se,getOffsetParent:i=>Se.getOffsetParent(i,qr)},middleware:[Fe({crossAxis:!0}),Ke({allowedPlacements:[a]})]})}var Y=function(e,o,a,i){var c=arguments.length,s=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(s=(c<3?l(s):c>3?l(o,a,s):l(o,a))||s);return c>3&&s&&Object.defineProperty(o,a,s),s},$=class extends ne.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 ne.Debouncer,this.revealDebouncer=new ne.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Jr.html`
|
|
522
|
+
`;var Br=["top","right","bottom","left"],$r=["start","end"],_e=Br.reduce((e,o)=>e.concat(o,o+"-"+$r[0],o+"-"+$r[1]),[]),te=Math.min,xt=Math.max,ee=Math.round;var st=e=>({x:e,y:e}),wa={left:"right",right:"left",bottom:"top",top:"bottom"},La={start:"end",end:"start"};function De(e,o,a){return xt(e,te(o,a))}function ge(e,o){return typeof e=="function"?e(o):e}function Zt(e){return e.split("-")[0]}function St(e){return e.split("-")[1]}function Ue(e){return e==="x"?"y":"x"}function Ge(e){return e==="y"?"height":"width"}function me(e){return["top","bottom"].includes(Zt(e))?"y":"x"}function Ze(e){return Ue(me(e))}function Ir(e,o,a){a===void 0&&(a=!1);let i=St(e),c=Ze(e),s=Ge(c),l=c==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[s]>o.floating[s]&&(l=He(l)),[l,He(l)]}function Wr(e){return e.replace(/start|end/g,o=>La[o])}function He(e){return e.replace(/left|right|bottom|top/g,o=>wa[o])}function Ra(e){return{top:0,right:0,bottom:0,left:0,...e}}function Pr(e){return typeof e!="number"?Ra(e):{top:e,right:e,bottom:e,left:e}}function wt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function kr(e,o,a){let{reference:i,floating:c}=e,s=me(o),l=Ze(o),p=Ge(l),y=Zt(o),h=s==="y",O=i.x+i.width/2-c.width/2,b=i.y+i.height/2-c.height/2,N=i[p]/2-c[p]/2,v;switch(y){case"top":v={x:O,y:i.y-c.height};break;case"bottom":v={x:O,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:b};break;case"left":v={x:i.x-c.width,y:b};break;default:v={x:i.x,y:i.y}}switch(St(o)){case"start":v[l]-=N*(a&&h?-1:1);break;case"end":v[l]+=N*(a&&h?-1:1);break}return v}var Tr=async(e,o,a)=>{let{placement:i="bottom",strategy:c="absolute",middleware:s=[],platform:l}=a,p=s.filter(Boolean),y=await(l.isRTL==null?void 0:l.isRTL(o)),h=await l.getElementRects({reference:e,floating:o,strategy:c}),{x:O,y:b}=kr(h,i,y),N=i,v={},E=0;for(let B=0;B<p.length;B++){let{name:P,fn:I}=p[B],{x:k,y:Z,data:ut,reset:G}=await I({x:O,y:b,initialPlacement:i,placement:N,strategy:c,middlewareData:v,rects:h,platform:l,elements:{reference:e,floating:o}});if(O=k??O,b=Z??b,v={...v,[P]:{...v[P],...ut}},G&&E<=50){E++,typeof G=="object"&&(G.placement&&(N=G.placement),G.rects&&(h=G.rects===!0?await l.getElementRects({reference:e,floating:o,strategy:c}):G.rects),{x:O,y:b}=kr(h,N,y)),B=-1;continue}}return{x:O,y:b,placement:N,strategy:c,middlewareData:v}};async function Me(e,o){var a;o===void 0&&(o={});let{x:i,y:c,platform:s,rects:l,elements:p,strategy:y}=e,{boundary:h="clippingAncestors",rootBoundary:O="viewport",elementContext:b="floating",altBoundary:N=!1,padding:v=0}=ge(o,e),E=Pr(v),P=p[N?b==="floating"?"reference":"floating":b],I=wt(await s.getClippingRect({element:(a=await(s.isElement==null?void 0:s.isElement(P)))==null||a?P:P.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(p.floating)),boundary:h,rootBoundary:O,strategy:y})),k=b==="floating"?{...l.floating,x:i,y:c}:l.reference,Z=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p.floating)),ut=await(s.isElement==null?void 0:s.isElement(Z))?await(s.getScale==null?void 0:s.getScale(Z))||{x:1,y:1}:{x:1,y:1},G=wt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:Z,strategy:y}):k);return{top:(I.top-G.top+E.top)/ut.y,bottom:(G.bottom-I.bottom+E.bottom)/ut.y,left:(I.left-G.left+E.left)/ut.x,right:(G.right-I.right+E.right)/ut.x}}function Aa(e,o,a){return(e?[...a.filter(c=>St(c)===e),...a.filter(c=>St(c)!==e)]:a.filter(c=>Zt(c)===c)).filter(c=>e?St(c)===e||(o?Wr(c)!==c:!1):!0)}var Ke=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,i,c;let{rects:s,middlewareData:l,placement:p,platform:y,elements:h}=o,{crossAxis:O=!1,alignment:b,allowedPlacements:N=_e,autoAlignment:v=!0,...E}=ge(e,o),B=b!==void 0||N===_e?Aa(b||null,v,N):N,P=await Me(o,E),I=((a=l.autoPlacement)==null?void 0:a.index)||0,k=B[I];if(k==null)return{};let Z=Ir(k,s,await(y.isRTL==null?void 0:y.isRTL(h.floating)));if(p!==k)return{reset:{placement:B[0]}};let ut=[P[Zt(k)],P[Z[0]],P[Z[1]]],G=[...((i=l.autoPlacement)==null?void 0:i.overflows)||[],{placement:k,overflows:ut}],Xe=B[I+1];if(Xe)return{data:{index:I+1,overflows:G},reset:{placement:Xe}};let qe=G.map(tt=>{let Ft=St(tt.placement);return[tt.placement,Ft&&O?tt.overflows.slice(0,2).reduce((fa,ya)=>fa+ya,0):tt.overflows[0],tt.overflows]}).sort((tt,Ft)=>tt[1]-Ft[1]),Qe=((c=qe.filter(tt=>tt[2].slice(0,St(tt[0])?2:3).every(Ft=>Ft<=0))[0])==null?void 0:c[0])||qe[0][0];return Qe!==p?{data:{index:I+1,overflows:G},reset:{placement:Qe}}:{}}}};var Fe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:i,placement:c}=o,{mainAxis:s=!0,crossAxis:l=!1,limiter:p={fn:P=>{let{x:I,y:k}=P;return{x:I,y:k}}},...y}=ge(e,o),h={x:a,y:i},O=await Me(o,y),b=me(Zt(c)),N=Ue(b),v=h[N],E=h[b];if(s){let P=N==="y"?"top":"left",I=N==="y"?"bottom":"right",k=v+O[P],Z=v-O[I];v=De(k,v,Z)}if(l){let P=b==="y"?"top":"left",I=b==="y"?"bottom":"right",k=E+O[P],Z=E-O[I];E=De(k,E,Z)}let B=p.fn({...o,[N]:v,[b]:E});return{...B,data:{x:B.x-a,y:B.y-i}}}}};function dt(e){return Hr(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function pt(e){var o;return(o=(Hr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Hr(e){return e instanceof Node||e instanceof V(e).Node}function rt(e){return e instanceof Element||e instanceof V(e).Element}function J(e){return e instanceof HTMLElement||e instanceof V(e).HTMLElement}function zr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function Mt(e){let{overflow:o,overflowX:a,overflowY:i,display:c}=j(e);return/auto|scroll|overlay|hidden|clip/.test(o+i+a)&&!["inline","contents"].includes(c)}function _r(e){return["table","td","th"].includes(dt(e))}function be(e){let o=xe(),a=j(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(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function Dr(e){let o=Lt(e);for(;J(o)&&!oe(o);){if(be(o))return o;o=Lt(o)}return null}function xe(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function oe(e){return["html","body","#document"].includes(dt(e))}function j(e){return V(e).getComputedStyle(e)}function re(e){return rt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Lt(e){if(dt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||zr(e)&&e.host||pt(e);return zr(o)?o.host:o}function Ur(e){let o=Lt(e);return oe(o)?e.ownerDocument?e.ownerDocument.body:e.body:J(o)&&Mt(o)?o:Ur(o)}function he(e,o,a){var i;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=Ur(e),s=c===((i=e.ownerDocument)==null?void 0:i.body),l=V(c);return s?o.concat(l,l.visualViewport||[],Mt(c)?c:[],l.frameElement&&a?he(l.frameElement):[]):o.concat(c,he(c,[],a))}function Mr(e){let o=j(e),a=parseFloat(o.width)||0,i=parseFloat(o.height)||0,c=J(e),s=c?e.offsetWidth:a,l=c?e.offsetHeight:i,p=ee(a)!==s||ee(i)!==l;return p&&(a=s,i=l),{width:a,height:i,$:p}}function Kr(e){return rt(e)?e:e.contextElement}function Kt(e){let o=Kr(e);if(!J(o))return st(1);let a=o.getBoundingClientRect(),{width:i,height:c,$:s}=Mr(o),l=(s?ee(a.width):a.width)/i,p=(s?ee(a.height):a.height)/c;return(!l||!Number.isFinite(l))&&(l=1),(!p||!Number.isFinite(p))&&(p=1),{x:l,y:p}}var Ia=st(0);function Fr(e){let o=V(e);return!xe()||!o.visualViewport?Ia:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Wa(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==V(e)?!1:o}function ae(e,o,a,i){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),s=Kr(e),l=st(1);o&&(i?rt(i)&&(l=Kt(i)):l=Kt(e));let p=Wa(s,a,i)?Fr(s):st(0),y=(c.left+p.x)/l.x,h=(c.top+p.y)/l.y,O=c.width/l.x,b=c.height/l.y;if(s){let N=V(s),v=i&&rt(i)?V(i):i,E=N.frameElement;for(;E&&i&&v!==N;){let B=Kt(E),P=E.getBoundingClientRect(),I=j(E),k=P.left+(E.clientLeft+parseFloat(I.paddingLeft))*B.x,Z=P.top+(E.clientTop+parseFloat(I.paddingTop))*B.y;y*=B.x,h*=B.y,O*=B.x,b*=B.y,y+=k,h+=Z,E=V(E).frameElement}}return wt({width:O,height:b,x:y,y:h})}function Pa(e){let{rect:o,offsetParent:a,strategy:i}=e,c=J(a),s=pt(a);if(a===s)return o;let l={scrollLeft:0,scrollTop:0},p=st(1),y=st(0);if((c||!c&&i!=="fixed")&&((dt(a)!=="body"||Mt(s))&&(l=re(a)),J(a))){let h=ae(a);p=Kt(a),y.x=h.x+a.clientLeft,y.y=h.y+a.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-l.scrollLeft*p.x+y.x,y:o.y*p.y-l.scrollTop*p.y+y.y}}function ka(e){return Array.from(e.getClientRects())}function Vr(e){return ae(pt(e)).left+re(e).scrollLeft}function Ta(e){let o=pt(e),a=re(e),i=e.ownerDocument.body,c=xt(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),s=xt(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),l=-a.scrollLeft+Vr(e),p=-a.scrollTop;return j(i).direction==="rtl"&&(l+=xt(o.clientWidth,i.clientWidth)-c),{width:c,height:s,x:l,y:p}}function za(e,o){let a=V(e),i=pt(e),c=a.visualViewport,s=i.clientWidth,l=i.clientHeight,p=0,y=0;if(c){s=c.width,l=c.height;let h=xe();(!h||h&&o==="fixed")&&(p=c.offsetLeft,y=c.offsetTop)}return{width:s,height:l,x:p,y}}function Ha(e,o){let a=ae(e,!0,o==="fixed"),i=a.top+e.clientTop,c=a.left+e.clientLeft,s=J(e)?Kt(e):st(1),l=e.clientWidth*s.x,p=e.clientHeight*s.y,y=c*s.x,h=i*s.y;return{width:l,height:p,x:y,y:h}}function Gr(e,o,a){let i;if(o==="viewport")i=za(e,a);else if(o==="document")i=Ta(pt(e));else if(rt(o))i=Ha(o,a);else{let c=Fr(e);i={...o,x:o.x-c.x,y:o.y-c.y}}return wt(i)}function Yr(e,o){let a=Lt(e);return a===o||!rt(a)||oe(a)?!1:j(a).position==="fixed"||Yr(a,o)}function _a(e,o){let a=o.get(e);if(a)return a;let i=he(e,[],!1).filter(p=>rt(p)&&dt(p)!=="body"),c=null,s=j(e).position==="fixed",l=s?Lt(e):e;for(;rt(l)&&!oe(l);){let p=j(l),y=be(l);!y&&p.position==="fixed"&&(c=null),(s?!y&&!c:!y&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Mt(l)&&!y&&Yr(e,l))?i=i.filter(O=>O!==l):c=p,l=Lt(l)}return o.set(e,i),i}function Da(e){let{element:o,boundary:a,rootBoundary:i,strategy:c}=e,l=[...a==="clippingAncestors"?_a(o,this._c):[].concat(a),i],p=l[0],y=l.reduce((h,O)=>{let b=Gr(o,O,c);return h.top=xt(b.top,h.top),h.right=te(b.right,h.right),h.bottom=te(b.bottom,h.bottom),h.left=xt(b.left,h.left),h},Gr(o,p,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function Ua(e){return Mr(e)}function Ga(e,o,a){let i=J(o),c=pt(o),s=a==="fixed",l=ae(e,!0,s,o),p={scrollLeft:0,scrollTop:0},y=st(0);if(i||!i&&!s)if((dt(o)!=="body"||Mt(c))&&(p=re(o)),i){let h=ae(o,!0,s,o);y.x=h.x+o.clientLeft,y.y=h.y+o.clientTop}else c&&(y.x=Vr(c));return{x:l.left+p.scrollLeft-y.x,y:l.top+p.scrollTop-y.y,width:l.width,height:l.height}}function Zr(e,o){return!J(e)||j(e).position==="fixed"?null:o?o(e):e.offsetParent}function jr(e,o){let a=V(e);if(!J(e))return a;let i=Zr(e,o);for(;i&&_r(i)&&j(i).position==="static";)i=Zr(i,o);return i&&(dt(i)==="html"||dt(i)==="body"&&j(i).position==="static"&&!be(i))?a:i||Dr(e)||a}var Za=async function(e){let{reference:o,floating:a,strategy:i}=e,c=this.getOffsetParent||jr,s=this.getDimensions;return{reference:Ga(o,await c(a),i),floating:{x:0,y:0,...await s(a)}}};function Ma(e){return j(e).direction==="rtl"}var Se={convertOffsetParentRelativeRectToViewportRelativeRect:Pa,getDocumentElement:pt,getClippingRect:Da,getOffsetParent:jr,getElementRects:Za,getClientRects:ka,getDimensions:Ua,getScale:Kt,isElement:rt,isRTL:Ma};var Xr=(e,o,a)=>{let i=new Map,c={platform:Se,...a},s={...c.platform,_c:i};return Tr(e,o,{...c,platform:s})};function qr(e){return Ka(e)}function Ve(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Ka(e){for(let o=e;o;o=Ve(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Ve(e);o;o=Ve(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 Qr(e,o,a){return Xr(e,o,{platform:{...Se,getOffsetParent:i=>Se.getOffsetParent(i,qr)},middleware:[Fe({crossAxis:!0}),Ke({allowedPlacements:[a]})]})}var Y=function(e,o,a,i){var c=arguments.length,s=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(s=(c<3?l(s):c>3?l(o,a,s):l(o,a))||s);return c>3&&s&&Object.defineProperty(o,a,s),s},$=class extends ne.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 ne.Debouncer,this.revealDebouncer=new ne.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Jr.html`
|
|
523
523
|
<div part="container"
|
|
524
524
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
525
525
|
@mouseenter=${this.onHover}
|
|
@@ -549,7 +549,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
549
549
|
<div></div>
|
|
550
550
|
<div></div>
|
|
551
551
|
</div>
|
|
552
|
-
`}};At.styles=qo;(0,la.customElement)("ft-loader")(At);var Ot=S(M()),Ye=S(Le()),
|
|
552
|
+
`}};At.styles=qo;(0,la.customElement)("ft-loader")(At);var Ot=S(M()),Ye=S(Le()),z=S(gt()),U=function(e,o,a,i){var c=arguments.length,s=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(s=(c<3?l(s):c>3?l(o,a,s):l(o,a))||s);return c>3&&s&&Object.defineProperty(o,a,s),s},L=class extends(0,Ct.toFtFormComponent)(Ct.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",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.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,i;let c=Ot.html`
|
|
553
553
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
554
554
|
<ft-typography part="label"
|
|
555
555
|
variant=${this.typographyVariant}
|
|
@@ -586,7 +586,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
586
586
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
587
587
|
`:Ot.html`
|
|
588
588
|
<slot part="icon" name="icon"></slot>
|
|
589
|
-
`}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}click(){var o;(o=this.button)===null||o===void 0||o.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Ct.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};L.elementDefinitions={"ft-ripple":A,"ft-tooltip":$,"ft-typography":Q,"ft-icon":q,"ft-loader":At};
|
|
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)}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,Ct.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};L.elementDefinitions={"ft-ripple":A,"ft-tooltip":$,"ft-typography":Q,"ft-icon":q,"ft-loader":At};U([(0,z.property)()],L.prototype,"href",void 0);U([(0,z.property)()],L.prototype,"target",void 0);U([(0,z.property)({type:String,reflect:!0})],L.prototype,"role",void 0);U([(0,z.property)()],L.prototype,"type",void 0);U([(0,z.property)({type:Boolean})],L.prototype,"disabled",void 0);U([(0,z.property)()],L.prototype,"label",void 0);U([(0,z.property)()],L.prototype,"icon",void 0);U([(0,z.property)()],L.prototype,"iconVariant",void 0);U([(0,z.property)({type:Boolean})],L.prototype,"trailingIcon",void 0);U([(0,z.property)({type:Boolean})],L.prototype,"loading",void 0);U([(0,z.property)({attribute:"aria-label"})],L.prototype,"ariaLabel",void 0);U([(0,z.property)()],L.prototype,"tooltipPosition",void 0);U([(0,z.property)({type:Boolean})],L.prototype,"hideTooltip",void 0);U([(0,z.property)({type:Boolean})],L.prototype,"forceTooltip",void 0);U([(0,z.query)(".ft-button")],L.prototype,"button",void 0);U([(0,z.query)(".ft-button--label slot")],L.prototype,"slottedContent",void 0);U([(0,z.query)("[part=tooltip]")],L.prototype,"tooltip",void 0);var ve=function(e,o,a,i){var c=arguments.length,s=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(l=e[p])&&(s=(c<3?l(s):c>3?l(o,a,s):l(o,a))||s);return c>3&&s&&Object.defineProperty(o,a,s),s},ft=class extends L{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"}};ft.styles=[sa.safariEllipsisFix,rr];ve([(0,ce.property)({type:Boolean})],ft.prototype,"primary",void 0);ve([(0,ce.property)({type:Boolean})],ft.prototype,"outlined",void 0);ve([(0,ce.property)({type:Boolean})],ft.prototype,"dense",void 0);ve([(0,ce.property)({type:Boolean})],ft.prototype,"round",void 0);var le=S(gt());var Ee=S(R());var da=S(M()),f=S(R());var pa=[da.css`
|
|
590
590
|
:host {
|
|
591
591
|
display: inline-block;
|
|
592
592
|
max-width: 100%;
|