@fluid-topics/ft-floating-menu 1.0.59 → 1.0.61

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,6 +1,6 @@
1
- !function(t,i,e,o,n,s){const r={zIndex:i.FtCssVariableFactory.create("--ft-floating-menu-z-index","NUMBER","8"),maxWidth:i.FtCssVariableFactory.create("--ft-floating-menu-max-width","SIZE","300px"),maxHeight:i.FtCssVariableFactory.create("--ft-floating-menu-max-height","SIZE","500px"),textColor:i.FtCssVariableFactory.extend("--ft-floating-menu-text-color",i.designSystemVariables.colorOnSurfaceHigh),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),menuElevation:i.FtCssVariableFactory.external(i.designSystemVariables.elevation02,"Design system"),borderRadiusS:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system")},l=e.css`
1
+ !function(t,o,e,r,i,a){const n={zIndex:o.FtCssVariableFactory.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:o.FtCssVariableFactory.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:o.FtCssVariableFactory.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:o.FtCssVariableFactory.extend("--ft-floating-menu-text-color","",o.designSystemVariables.colorOnSurfaceHigh),colorSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system"),menuElevation:o.FtCssVariableFactory.external(o.designSystemVariables.elevation02,"Design system"),borderRadiusS:o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system")},l=e.css`
2
2
  .ft-floating-menu {
3
- color: ${r.textColor};
3
+ color: ${n.textColor};
4
4
  display: inline-block;
5
5
  }
6
6
 
@@ -17,19 +17,19 @@
17
17
  display: none;
18
18
  position: relative;
19
19
  overflow: auto;
20
- max-width: ${r.maxWidth};
21
- max-height: ${r.maxHeight};
22
- box-shadow: ${r.menuElevation};
23
- background-color: ${r.colorSurface};
24
- border-radius: ${r.borderRadiusS};
25
- color: ${r.textColor};
26
- z-index: ${r.zIndex};
20
+ max-width: ${n.maxWidth};
21
+ max-height: ${n.maxHeight};
22
+ box-shadow: ${n.menuElevation};
23
+ background-color: ${n.colorSurface};
24
+ border-radius: ${n.borderRadiusS};
25
+ color: ${n.textColor};
26
+ z-index: ${n.zIndex};
27
27
  }
28
28
 
29
29
  .ft-floating-menu--open .ft-floating-menu--options {
30
30
  display: block;
31
31
  }
32
- `,a=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),p={color:a,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",a),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},h=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),f=h,d=i.FtCssVariableFactory.extend("--ft-ripple-background-color",h),c=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),u=c,x=i.FtCssVariableFactory.extend("--ft-ripple-background-color",c),g=e.css`
32
+ `,c=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorContent),p={color:c,backgroundColor:o.FtCssVariableFactory.extend("--ft-ripple-background-color","",c),opacityContentOnSurfacePressed:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},s=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorPrimary),f=s,d=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",s),h=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorSecondary),g=h,y=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",h),u=e.css`
33
33
  :host {
34
34
  display: contents;
35
35
  }
@@ -84,11 +84,11 @@
84
84
  }
85
85
 
86
86
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
87
- background-color: ${x};
87
+ background-color: ${y};
88
88
  }
89
89
 
90
90
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
91
- background-color: ${u};
91
+ background-color: ${g};
92
92
  }
93
93
 
94
94
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
@@ -141,173 +141,111 @@
141
141
  opacity: ${p.opacityContentOnSurfacePressed};
142
142
  transform: translate(-50%, -50%) scale(1);
143
143
  }
144
- `;var b,y=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class v extends i.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 i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"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 e.html`
145
- <style>
146
- .ft-ripple .ft-ripple--effect {
147
- left: ${this.originX}px;
148
- top: ${this.originY}px;
149
- }
150
- </style>
151
- <div class="${n.classMap(t)}">
152
- <div class="ft-ripple--background"></div>
153
- <div class="ft-ripple--effect"></div>
154
- </div>
155
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var i,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.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 t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}v.elementDefinitions={},v.styles=g,y([o.property({type:Boolean})],v.prototype,"primary",void 0),y([o.property({type:Boolean})],v.prototype,"secondary",void 0),y([o.property({type:Boolean})],v.prototype,"unbounded",void 0),y([o.property({type:Boolean})],v.prototype,"activated",void 0),y([o.property({type:Boolean})],v.prototype,"selected",void 0),y([o.property({type:Boolean})],v.prototype,"disabled",void 0),y([o.state()],v.prototype,"hovered",void 0),y([o.state()],v.prototype,"focused",void 0),y([o.state()],v.prototype,"pressed",void 0),y([o.state()],v.prototype,"rippling",void 0),y([o.state()],v.prototype,"originX",void 0),y([o.state()],v.prototype,"originY",void 0),y([o.query(".ft-ripple")],v.prototype,"ripple",void 0),y([o.query(".ft-ripple--effect")],v.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(v);const m=window,$=m.trustedTypes,w=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,k="$lit$",z=`lit$${(Math.random()+"").slice(9)}$`,S="?"+z,C=`<${S}>`,O=document,E=()=>O.createComment(""),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,N=Array.isArray,I="[ \t\n\f\r]",M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,A=/>/g,B=RegExp(`>|${I}(?:([^\\s"'>=/]+)(${I}*=${I}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),F=/'/g,Z=/"/g,_=/^(?:script|style|textarea|title)$/i,U=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),W=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),D=new WeakMap,P=O.createTreeWalker(O,129,null,!1),H=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=M;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===M?"!--"===a[1]?r=T:void 0!==a[1]?r=A:void 0!==a[2]?(_.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=B):void 0!==a[3]&&(r=B):r===B?">"===a[0]?(r=null!=n?n:M,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?B:'"'===a[3]?Z:F):r===Z||r===F?r=B:r===T||r===A?r=M:(r=B,n=void 0);const f=r===B&&t[i+1].startsWith("/>")?" ":"";s+=r===M?e+C:p>=0?(o.push(l),e.slice(0,p)+k+e.slice(p)+z+f):e+z+(-2===p?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==w?w.createHTML(l):l,o]};class K{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=H(t,i);if(this.el=K.createElement(a,e),P.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=P.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(k)||i.startsWith(z)){const e=p[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+k).split(z),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?X:"?"===i[1]?J:"@"===i[1]?Q:q})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(_.test(o.tagName)){const t=o.textContent.split(z),i=t.length-1;if(i>0){o.textContent=$?$.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],E()),P.nextNode(),l.push({type:2,index:++n});o.append(t[i],E())}}}else if(8===o.nodeType)if(o.data===S)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(z,t+1));)l.push({type:7,index:n}),t+=z.length-1}n++}}static createElement(t,i){const e=O.createElement("template");return e.innerHTML=t,e}}function L(t,i,e=t,o){var n,s,r,l;if(i===W)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=j(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=L(t,a._$AS(t,i.values),a,o)),i}class G{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:O).importNode(e,!0);P.currentNode=n;let s=P.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new V(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new tt(s,this,t)),this._$AV.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=P.nextNode(),r++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class V{constructor(t,i,e,o){var n;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=L(this,t,i),j(t)?t===R||null==t||""===t?(this._$AH!==R&&this._$AR(),this._$AH=R):t!==this._$AH&&t!==W&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>N(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==R&&j(this._$AH)?this._$AA.nextSibling.data=t:this.$(O.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=K.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new G(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=D.get(t.strings);return void 0===i&&D.set(t.strings,i=new K(t)),i}T(t){N(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new V(this.k(E()),this.k(E()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class q{constructor(t,i,e,o,n){this.type=1,this._$AH=R,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=L(this,t,i,0),s=!j(t)||t!==this._$AH&&t!==W,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=L(this,o[e+r],i,r),l===W&&(l=this._$AH[r]),s||(s=!j(l)||l!==this._$AH[r]),l===R?t=R:t!==R&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class X extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===R?void 0:t}}const Y=$?$.emptyScript:"";class J extends q{constructor(){super(...arguments),this.type=4}j(t){t&&t!==R?this.element.setAttribute(this.name,Y):this.element.removeAttribute(this.name)}}class Q extends q{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=L(this,t,i,0))&&void 0!==e?e:R)===W)return;const o=this._$AH,n=t===R&&o!==R||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==R&&(o===R||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class tt{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){L(this,t)}}const it=m.litHtmlPolyfillSupport;null==it||it(K,V),(null!==(b=m.litHtmlVersions)&&void 0!==b?b:m.litHtmlVersions=[]).push("2.7.3");
156
- /**
157
- * @license
158
- * Copyright 2020 Google LLC
159
- * SPDX-License-Identifier: BSD-3-Clause
160
- */
161
- const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void 0:t._$litStatic$},nt=t=>({_$litStatic$:t,r:et}),st=new Map,rt=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(s=e[p],n=ot(s));)a+=n+i[++p],h=!0;p!==o&&l.push(s),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=st.get(t))&&(r.raw=r,st.set(t,i=r)),e=l}return t(i,...e)})(U);var lt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(lt||(lt={}));const at=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),pt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),ht={fontFamily:pt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},ft=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",at),dt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",ht.fontSize,"20px"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",ht.fontWeight,"normal"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",ht.letterSpacing,"0.15px"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",ht.lineHeight,"1.2"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",ht.textTransform,"inherit"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",at),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",ht.fontSize,"14px"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",ht.fontWeight,"normal"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",ht.letterSpacing,"0.105px"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",ht.lineHeight,"1.7"),wt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",ht.textTransform,"inherit"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",pt),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",ht.fontSize,"16px"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",ht.fontWeight,"600"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",ht.letterSpacing,"0.144px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",ht.lineHeight,"1.5"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",ht.textTransform,"inherit"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",pt),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",ht.fontSize,"14px"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",ht.fontWeight,"normal"),Mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",ht.letterSpacing,"0.098px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",ht.lineHeight,"1.7"),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",ht.textTransform,"inherit"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",pt),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",ht.fontSize,"16px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",ht.fontWeight,"normal"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",ht.letterSpacing,"0.496px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",ht.lineHeight,"1.5"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",ht.textTransform,"inherit"),Rt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",pt),Dt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",ht.fontSize,"14px"),Pt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",ht.fontWeight,"normal"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",ht.letterSpacing,"0.252px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",ht.lineHeight,"1.4"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",ht.textTransform,"inherit"),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",pt),Vt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",ht.fontSize,"12px"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",ht.fontWeight,"normal"),Xt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",ht.letterSpacing,"0.396px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",ht.lineHeight,"1.33"),Jt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",ht.textTransform,"inherit"),Qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",pt),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",ht.fontSize,"10px"),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",ht.fontWeight,"normal"),ei=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",ht.letterSpacing,"0.33px"),oi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",ht.lineHeight,"1.6"),ni=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",ht.textTransform,"inherit"),si=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",pt),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",ht.fontSize,"10px"),li=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",ht.fontWeight,"normal"),ai=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",ht.letterSpacing,"1.5px"),pi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",ht.lineHeight,"1.6"),hi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",ht.textTransform,"uppercase"),fi={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",pt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",ht.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",ht.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",ht.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",ht.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",ht.textTransform,"uppercase")},di=e.css`
144
+ `,b=t=>"string"==typeof t?e.unsafeCSS(t):t;class m{static create(t,o,r,i){const a=t=>b(null!=t?t:i),n=e.css`var(${b(t)}, ${a(i)})`;return n.name=t,n.description=t,n.category=r,n.defaultValue=i,n.defaultCssValue=a,n.get=o=>e.css`var(${b(t)}, ${a(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,o,r,i){const a=t=>r.get(null!=t?t:i),n=e.css`var(${b(t)}, ${a(i)})`;return n.name=t,n.description=o,n.category=r.category,n.fallbackVariable=r,n.defaultValue=i,n.defaultCssValue=a,n.get=o=>e.css`var(${b(t)}, ${a(o)})`,n.breadcrumb=()=>[r.name,...r.breadcrumb()],n.lastResortDefaultValue=()=>null!=i?i:r.lastResortDefaultValue(),n}static external(t,o){const r=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):b(null!=o?o:t.lastResortDefaultValue()),i=e.css`var(${b(t.name)}, ${r(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=o,i.defaultCssValue=r,i.get=o=>e.css`var(${b(t.name)}, ${r(o)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}const x={colorWhite:m.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:m.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:m.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:m.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:m.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:m.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:m.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:m.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:m.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:m.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:m.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:m.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:m.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:m.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:m.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:m.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:m.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:m.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:m.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:m.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:m.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:m.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:m.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:m.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:m.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:m.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:m.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:m.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:m.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:m.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:m.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:m.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:m.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:m.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:m.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:m.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:m.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:m.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:m.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:m.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:m.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:m.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:m.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:m.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:m.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:m.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:m.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:m.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:m.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:m.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:m.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:m.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:m.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:m.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:m.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:m.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:m.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:m.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:m.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:m.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:m.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:m.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:m.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:m.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:m.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:m.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:m.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:m.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:m.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:m.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:m.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:m.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:m.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:m.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:m.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:m.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:m.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:m.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:m.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:m.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:m.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:m.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:m.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:m.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:m.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:m.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:m.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:m.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:m.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:m.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:m.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:m.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:m.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:m.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:m.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:m.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:m.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:m.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:m.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:m.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:m.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:m.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:m.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:m.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:m.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:m.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:m.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:m.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:m.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:m.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:m.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:m.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:m.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:m.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:m.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:m.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:m.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:m.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:m.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:m.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:m.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:m.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:m.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:m.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:m.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:m.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:m.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:m.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:m.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:m.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:m.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:m.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:m.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:m.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:m.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:m.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:m.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:m.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:m.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:m.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:m.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:m.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:m.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:m.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:m.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:m.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:m.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:m.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:m.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:m.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:m.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:m.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:m.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:m.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:m.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:m.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:m.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:m.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:m.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:m.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:m.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:m.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:m.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:m.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:m.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:m.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:m.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:m.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:m.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:m.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:m.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:m.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:m.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:m.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:m.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:m.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:m.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:m.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:m.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:m.create("--ft-icon-size-6","","SIZE","48px"),opacity0:m.create("--ft-opacity-0","","NUMBER","0"),opacity8:m.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:m.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:m.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:m.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:m.create("--ft-opacity-80","","NUMBER","0.8")},O={display:{fontFamily:m.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:m.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:m.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:m.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:m.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:m.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:m.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:m.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:m.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:m.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:m.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:m.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:m.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:m.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:m.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:m.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:m.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:m.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:m.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:m.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:m.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:m.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:m.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:m.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:m.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:m.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:m.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:m.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:m.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:m.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:m.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:m.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:m.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:m.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:m.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:m.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:m.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:m.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:m.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:m.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:m.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:m.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:m.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:m.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:m.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:m.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:m.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:m.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:m.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:m.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:m.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:m.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:m.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:m.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:m.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:m.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:m.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:m.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:m.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:m.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:m.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:m.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},v={backgroundActionPrimary:m.extend("--ft-background-action-primary","Used as backgorund of primary action components.",x.colorBrand0),backgroundErrorPrimary:m.extend("--ft-background-error-primary","Used as background of error components.",x.colorRed0),backgroundErrorSubtle:m.extend("--ft-background-error-subtle","Used as background of subtle error components.",x.colorRed10),backgroundInfoPrimary:m.extend("--ft-background-info-primary","Used as background of information components.",x.colorCyan200),backgroundInfoSubtle:m.extend("--ft-background-info-subtle","Used as background of subtle information components.",x.colorCyan10),backgroundWarningPrimary:m.extend("--ft-background-warning-primary","Used as background of warning components.",x.colorOrange300),backgroundWarningSubtle:m.extend("--ft-background-warning-subtle","Used as background of subtle information components.",x.colorOrange10),backgroundSuccessPrimary:m.extend("--ft-background-success-primary","Used as background of success components.",x.colorGreen200),backgroundSuccessSubtle:m.extend("--ft-background-success-subtle","Used as background of subtle success components.",x.colorGreen10),backgroundGlobalSurface:m.extend("--ft-background-global-surface","Used as app background.",x.colorWhite),backgroundGlobalOnSurface:m.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",x.colorGray10),backgroundGlobalOnSurfaceDark:m.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",x.colorGray30),contentActionPrimary:m.extend("--ft-content-action-primary","Used on label of primary action on light surface.",x.colorBrand0),contentWarningPrimary:m.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",x.colorOrange300),contentWarningIconOnly:m.extend("--ft-content-warning-icon-only","Used on warning status icons alone",x.colorOrange0),contentErrorPrimary:m.extend("--ft-content-error-primary","Used on label of error messages on light surface.",x.colorRed0),contentErrorIconOnly:m.extend("--ft-content-error-icon-only","Used on error status icons alone",x.colorRed0),contentInfoPrimary:m.extend("--ft-content-info-primary","Used on label of information messages on light surface.",x.colorCyan200),contentInfoIconOnly:m.extend("--ft-content-info-icon-only","Used on info status icons alone",x.colorCyan0),contentSuccessIconOnly:m.extend("--ft-content-success-icon-only","Used on success status icons alone",x.colorGreen0),contentSuccessPrimary:m.extend("--ft-content-success-primary","Used on label of success messages on light surface.",x.colorGreen200),contentGlobalPrimary:m.extend("--ft-content-global-primary","Used for main content on the page.",x.colorGray500),contentGlobalSecondary:m.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",x.colorGray200),contentGlobalSubtle:m.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",x.colorGray0),contentGlobalOnColor:m.extend("--ft-content-global-on-color","Used for content on a dominant color.",x.colorWhite),borderActionPrimary:m.extend("--ft-border-action-primary","Used as border for primary action components.",x.colorBrand0),borderActionFocusRing:m.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",x.colorCyan0),borderWarningPrimary:m.extend("--ft-border-warning-primary","Used as border for warning components.",x.colorOrange30),borderSuccessPrimary:m.extend("--ft-border-success-primary","Used as border for success components.",x.colorGreen30),borderErrorPrimary:m.extend("--ft-border-error-primary","Used as border for error components.",x.colorRed30),borderInfoPrimary:m.extend("--ft-border-info-primary","Used as border for information components.",x.colorCyan30),borderGlobalSubtle:m.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",x.colorGray30),borderGlobalPrimary:m.extend("--ft-border-global-primary","Used as border for element like input.",x.colorGray50),borderInputPrimary:m.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",x.colorGray80)},N={largeHeight:m.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:m.extend("--ft-button-large-horizontal-padding","",x.spacing4),largeGap:m.extend("--ft-button-large-gap","",x.spacing2),largeBorderRadius:m.extend("--ft-button-large-border-radius","",x.borderRadiusS),largeIconSize:m.extend("--ft-button-large-icon-size","",x.iconSize3),largeBorderWidth:m.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:m.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:m.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:m.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:m.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:m.extend("--ft-button-small-horizontal-padding","",x.spacing3),smallGap:m.extend("--ft-button-small-gap","",x.spacing2),smallBorderRadius:m.extend("--ft-button-small-border-radius","",x.borderRadiusS),smallIconSize:m.extend("--ft-button-small-icon-size","",x.iconSize2),smallBorderWidth:m.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:m.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:m.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:m.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:m.extend("--ft-button-primary-background-color","",v.backgroundActionPrimary),primaryColor:m.extend("--ft-button-primary-color","",v.contentGlobalOnColor),primaryIconColor:m.extend("--ft-button-primary-icon-color","",v.contentGlobalOnColor),primaryStateLayerColor:m.extend("--ft-button-primary-state-layer-color","",v.contentGlobalOnColor),primaryStateLayerOpacityHover:m.extend("--ft-button-primary-state-layer-opacity-hover","",x.opacity16),primaryStateLayerOpacityFocus:m.extend("--ft-button-primary-state-layer-opacity-focus","",x.opacity16),primaryStateLayerOpacityActive:m.extend("--ft-button-primary-state-layer-opacity-active","",x.opacity24),primaryComponentOpacityDisabled:m.extend("--ft-button-primary-component-opacity-disabled","",x.opacity40),focusFocusRingColor:m.extend("--ft-button-focus-focus-ring-color","",v.borderActionFocusRing),tertiaryBackgroundColor:m.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:m.extend("--ft-button-tertiary-color","",v.contentActionPrimary),tertiaryIconColor:m.extend("--ft-button-tertiary-icon-color","",v.contentActionPrimary),tertiaryStateLayerColor:m.extend("--ft-button-tertiary-state-layer-color","",v.contentActionPrimary),tertiaryStateLayerOpacityHover:m.extend("--ft-button-tertiary-state-layer-opacity-hover","",x.opacity8),tertiaryStateLayerOpacityFocus:m.extend("--ft-button-tertiary-state-layer-opacity-focus","",x.opacity8),tertiaryStateLayerOpacityActive:m.extend("--ft-button-tertiary-state-layer-opacity-active","",x.opacity16),tertiaryComponentOpacityDisabled:m.extend("--ft-button-tertiary-component-opacity-disabled","",x.opacity40),secondaryBackgroundColor:m.extend("--ft-button-secondary-background-color","",x.colorWhite),secondaryColor:m.extend("--ft-button-secondary-color","",v.contentActionPrimary),secondaryIconColor:m.extend("--ft-button-secondary-icon-color","",v.contentActionPrimary),secondaryStateLayerColor:m.extend("--ft-button-secondary-state-layer-color","",v.contentActionPrimary),secondaryStateLayerOpacityHover:m.extend("--ft-button-secondary-state-layer-opacity-hover","",x.opacity8),secondaryStateLayerOpacityFocus:m.extend("--ft-button-secondary-state-layer-opacity-focus","",x.opacity8),secondaryStateLayerOpacityActive:m.extend("--ft-button-secondary-state-layer-opacity-active","",x.opacity16),secondaryComponentOpacityDisabled:m.extend("--ft-button-secondary-component-opacity-disabled","",x.opacity40),secondaryBorderColor:m.extend("--ft-button-secondary-border-color","",v.borderActionPrimary),neutralBackgroundColor:m.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:m.extend("--ft-button-neutral-icon-color","",v.contentGlobalSecondary),neutralColor:m.extend("--ft-button-neutral-color","",v.contentGlobalSecondary),neutralStateLayerColor:m.extend("--ft-button-neutral-state-layer-color","",v.contentGlobalSecondary),neutralStateLayerOpacityHover:m.extend("--ft-button-neutral-state-layer-opacity-hover","",x.opacity8),neutralStateLayerOpacityFocus:m.extend("--ft-button-neutral-state-layer-opacity-focus","",x.opacity8),neutralStateLayerOpacityActive:m.extend("--ft-button-neutral-state-layer-opacity-active","",x.opacity16),neutralComponentOpacityDisabled:m.extend("--ft-button-neutral-component-opacity-disabled","",x.opacity40)};m.extend("--ft-tabs-top-left-border-radius","",x.borderRadiusS),m.extend("--ft-tabs-top-right-border-radius","",x.borderRadiusS),m.extend("--ft-tabs-label-horizontal-padding","",x.spacing4),m.extend("--ft-tabs-label-vertical-padding","",x.spacing3),m.extend("--ft-tabs-label-gap","",x.spacing1),m.extend("--ft-switch-group-horizontal-padding","",x.spacing1),m.extend("--ft-switch-group-vertical-padding","",x.spacing1),m.extend("--ft-switch-group-gap","",x.spacing1),m.extend("--ft-switch-group-background-color","",v.backgroundGlobalSurface),m.extend("--ft-switch-group-border-color","",v.borderGlobalSubtle),m.create("--ft-switch-group-border-radius","","SIZE","6px"),m.extend("--ft-switch-label-horizontal-padding","",x.spacing2),m.extend("--ft-switch-label-vertical-padding","",x.spacing1),m.extend("--ft-switch-icon-horizontal-padding","",x.spacing1),m.extend("--ft-switch-icon-vertical-padding","",x.spacing1),m.create("--ft-switch-focus-outline-width","","SIZE","2px"),m.extend("--ft-switch-focus-focus-ring-color","",v.borderActionFocusRing),m.extend("--ft-switch-option-border-radius","",x.borderRadiusS),m.extend("--ft-switch-off-state-layer-opacity-hover","",x.opacity8),m.extend("--ft-switch-off-state-layer-opacity-focus","",x.opacity8),m.extend("--ft-switch-off-state-layer-opacity-active","",x.opacity16),m.extend("--ft-switch-off-component-opacity-disabled","",x.opacity40),m.extend("--ft-switch-off-color","",v.contentGlobalSubtle),m.extend("--ft-switch-off-state-layer-color","",v.contentGlobalSubtle),m.extend("--ft-chart-1-light","for area color charts",x.colorBrand40),m.extend("--ft-chart-1-base","for line charts",x.colorBrand0),m.extend("--ft-chart-2-light","for area color charts",x.colorYellow60),m.extend("--ft-chart-2-base","for line charts",x.colorYellow100),m.extend("--ft-chart-3-light","",x.colorUltramarine40),m.extend("--ft-chart-3-base","",x.colorUltramarine70),m.extend("--ft-chart-4-light","",x.colorCyan50),m.extend("--ft-chart-4-base","",x.colorCyan100),m.extend("--ft-chart-5-light","",x.colorRed40),m.extend("--ft-chart-5-base","",x.colorRed60),m.extend("--ft-chart-6-light","",x.colorGreen40),m.extend("--ft-chart-6-base","",x.colorGreen70),m.extend("--ft-chart-7-light","",x.colorOrange70),m.extend("--ft-chart-7-base","",x.colorOrange100),m.extend("--ft-chart-8-light","",x.colorAvocado70),m.extend("--ft-chart-8-base","",x.colorAvocado200),m.extend("--ft-chart-9-light","",x.colorBrown50),m.extend("--ft-chart-9-base","",x.colorBrown200),m.extend("--ft-chart-10-light","",x.colorGray50),m.extend("--ft-chart-10-base","",x.colorGray80),m.extend("--ft-chart-monochrome-10","",x.colorBrand10),m.extend("--ft-chart-monochrome-20","",x.colorBrand20),m.extend("--ft-chart-monochrome-30","",x.colorBrand40),m.extend("--ft-chart-monochrome-40","",x.colorBrand60),m.extend("--ft-chart-monochrome-50","",x.colorBrand0),m.extend("--ft-chart-monochrome-60","",x.colorBrand200),m.extend("--ft-chip-large-horizontal-padding","",x.spacing4),m.extend("--ft-chip-large-vertical-padding","",x.spacing2),m.extend("--ft-chip-large-gap","",x.spacing1),m.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),m.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),m.extend("--ft-chip-large-border-radius","",x.borderRadiusPill),m.create("--ft-chip-large-border-width","","SIZE","1px"),m.extend("--ft-chip-large-icon-size","",x.iconSize3),m.extend("--ft-chip-medium-horizontal-padding","",x.spacing3),m.extend("--ft-chip-medium-vertical-padding","",x.spacing1),m.extend("--ft-chip-medium-gap","",x.spacing1),m.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),m.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),m.extend("--ft-chip-medium-border-radius","",x.borderRadiusPill),m.create("--ft-chip-medium-border-width","","SIZE","1px"),m.extend("--ft-chip-medium-icon-size","",x.iconSize2),m.extend("--ft-chip-small-horizontal-padding","",x.spacing2),m.extend("--ft-chip-small-vertical-padding","",x.spacing05),m.extend("--ft-chip-small-gap","",x.spacing1),m.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),m.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),m.extend("--ft-chip-small-border-radius","",x.borderRadiusPill),m.create("--ft-chip-small-border-width","","SIZE","1px"),m.extend("--ft-chip-small-icon-size","",x.iconSize1),m.extend("--ft-chip-neutral-background-color","",v.backgroundGlobalOnSurface),m.extend("--ft-chip-neutral-color","",v.contentGlobalPrimary),m.extend("--ft-chip-neutral-border-color","",v.borderGlobalSubtle),m.extend("--ft-chip-info-background-color","",v.backgroundInfoSubtle),m.extend("--ft-chip-info-color","",v.contentInfoPrimary),m.extend("--ft-chip-info-border-color","",v.borderInfoPrimary),m.extend("--ft-chip-success-background-color","",v.backgroundSuccessSubtle),m.extend("--ft-chip-success-color","",v.contentSuccessPrimary),m.extend("--ft-chip-success-border-color","",v.borderSuccessPrimary),m.extend("--ft-chip-warning-background-color","",v.backgroundWarningSubtle),m.extend("--ft-chip-warning-color","",v.contentWarningPrimary),m.extend("--ft-chip-warning-border-color","",v.borderWarningPrimary),m.extend("--ft-chip-error-background-color","",v.backgroundErrorSubtle),m.extend("--ft-chip-error-color","",v.contentErrorPrimary),m.extend("--ft-chip-error-border-color","",v.borderErrorPrimary),m.create("--ft-notice-border-width","","SIZE","1px"),m.extend("--ft-notice-horizontal-padding","",x.spacing2),m.extend("--ft-notice-vertical-padding","",x.spacing1),m.extend("--ft-notice-border-radius","",x.borderRadiusS),m.extend("--ft-notice-gap","",x.spacing2),m.extend("--ft-notice-icon-size","",x.iconSize3),m.extend("--ft-notice-info-background-color","",v.backgroundInfoSubtle),m.extend("--ft-notice-info-border-color","",v.borderInfoPrimary),m.extend("--ft-notice-info-color","",v.contentInfoPrimary),m.extend("--ft-notice-warning-background-color","",v.backgroundWarningSubtle),m.extend("--ft-notice-warning-border-color","",v.borderWarningPrimary),m.extend("--ft-notice-warning-color","",v.contentWarningPrimary),m.extend("--ft-checkbox-label-color","",v.contentGlobalPrimary),m.extend("--ft-checkbox-checked-background-color","",v.contentActionPrimary),m.extend("--ft-checkbox-checked-state-layer-color","",v.contentActionPrimary),m.extend("--ft-checkbox-checked-color","",v.contentGlobalOnColor),m.extend("--ft-checkbox-checked-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-checkbox-checked-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-checkbox-checked-state-layer-opacity-active","",x.opacity24),m.extend("--ft-checkbox-checked-component-opacity-disabled","",x.opacity40),m.extend("--ft-checkbox-unchecked-border-color","",x.colorGray80),m.extend("--ft-checkbox-unchecked-state-layer-color","",x.colorGray80),m.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",x.opacity24),m.extend("--ft-checkbox-unchecked-component-opacity-disabled","",x.opacity40),m.extend("--ft-checkbox-focus-focus-ring-color","",v.borderActionFocusRing),m.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),m.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),m.extend("--ft-checkbox-gap","",x.spacing3),m.extend("--ft-toggle-off-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-toggle-off-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-toggle-off-state-layer-opacity-active","",x.opacity24),m.extend("--ft-toggle-off-component-opacity-disabled","",x.opacity40),m.extend("--ft-toggle-off-background-color","",v.contentGlobalSubtle),m.extend("--ft-toggle-off-icon-color","",v.contentGlobalSubtle),m.extend("--ft-toggle-off-state-layer-color","",v.contentGlobalSubtle),m.extend("--ft-toggle-on-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-toggle-on-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-toggle-on-state-layer-opacity-active","",x.opacity24),m.extend("--ft-toggle-on-component-opacity-disabled","",x.opacity40),m.extend("--ft-toggle-on-background-color","",v.contentActionPrimary),m.extend("--ft-toggle-on-icon-color","",v.contentActionPrimary),m.extend("--ft-toggle-on-state-layer-color","",v.contentActionPrimary),m.extend("--ft-toggle-label-color","",v.contentGlobalPrimary),m.extend("--ft-toggle-focus-focus-ring-color","",v.borderActionFocusRing),m.extend("--ft-toggle-gap","",x.spacing3),m.extend("--ft-radio-label-color","",v.contentGlobalPrimary),m.extend("--ft-radio-selected-color","",v.contentActionPrimary),m.extend("--ft-radio-selected-state-layer-color","",v.contentActionPrimary),m.extend("--ft-radio-selected-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-radio-selected-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-radio-selected-state-layer-opacity-active","",x.opacity24),m.extend("--ft-radio-selected-component-opacity-disabled","",x.opacity40),m.extend("--ft-radio-unselected-state-layer-color","",x.colorGray80),m.extend("--ft-radio-unselected-state-layer-opacity-hover","",x.opacity16),m.extend("--ft-radio-unselected-state-layer-opacity-focus","",x.opacity16),m.extend("--ft-radio-unselected-state-layer-opacity-active","",x.opacity24),m.extend("--ft-radio-unselected-component-opacity-disabled","",x.opacity40),m.extend("--ft-radio-focus-focus-ring-color","",v.borderActionFocusRing),m.create("--ft-radio-focus-outline-offset","","SIZE","3px"),m.create("--ft-radio-focus-outline-width","","SIZE","2px"),m.extend("--ft-radio-gap","",x.spacing3),m.extend("--ft-notification-icon-size","",x.iconSize4),m.extend("--ft-notification-horizontal-padding","",x.spacing4),m.extend("--ft-notification-vertical-padding","",x.spacing4),m.extend("--ft-notification-info-background-color","",v.backgroundInfoSubtle),m.extend("--ft-notification-info-color","",v.contentInfoPrimary),m.extend("--ft-notification-info-border-color","",v.borderInfoPrimary),m.extend("--ft-notification-success-background-color","",v.backgroundSuccessSubtle),m.extend("--ft-notification-success-color","",v.contentSuccessPrimary),m.extend("--ft-notification-success-border-color","",v.borderSuccessPrimary),m.extend("--ft-notification-warning-background-color","",v.backgroundWarningSubtle),m.extend("--ft-notification-warning-color","",v.contentWarningPrimary),m.extend("--ft-notification-warning-border-color","",v.borderWarningPrimary),m.extend("--ft-notification-error-background-color","",v.backgroundErrorSubtle),m.extend("--ft-notification-error-color","",v.contentErrorPrimary),m.extend("--ft-notification-error-border-color","",v.borderErrorPrimary),m.extend("--ft-notification-border-radius","",x.borderRadiusPill),m.create("--ft-notification-border-width","","SIZE","1px"),m.extend("--ft-notification-gap-leading","",x.spacing2),m.extend("--ft-notification-gap-trailing","",x.spacing8);const S=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),$=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),C={fontFamily:$,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},w=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",S),I=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",C.fontSize,"20px"),U=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",C.fontWeight,"normal"),k=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",C.letterSpacing,"0.15px"),W=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",C.lineHeight,"1.2"),R=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",C.textTransform,"inherit"),E=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",S),L=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",C.fontSize,"14px"),K=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",C.fontWeight,"normal"),Z=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",C.letterSpacing,"0.105px"),z=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",C.lineHeight,"1.7"),F=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",C.textTransform,"inherit"),B=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",$),D=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",C.fontSize,"16px"),H=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",C.fontWeight,"600"),A=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",C.letterSpacing,"0.144px"),G=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",C.lineHeight,"1.5"),j=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",C.textTransform,"inherit"),M=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",$),P=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",C.fontSize,"14px"),T=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",C.fontWeight,"normal"),_=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",C.letterSpacing,"0.098px"),Y=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",C.lineHeight,"1.7"),V=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",C.textTransform,"inherit"),q=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",$),X=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",C.fontSize,"16px"),J=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",C.fontWeight,"normal"),Q=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",C.letterSpacing,"0.496px"),tt=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",C.lineHeight,"1.5"),ot=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",C.textTransform,"inherit"),et=o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",$),rt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",C.fontSize,"14px"),it=o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",C.fontWeight,"normal"),at=o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",C.letterSpacing,"0.252px"),nt=o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",C.lineHeight,"1.4"),lt=o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",C.textTransform,"inherit"),ct=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",$),pt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",C.fontSize,"12px"),st=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",C.fontWeight,"normal"),ft=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",C.letterSpacing,"0.396px"),dt=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",C.lineHeight,"1.33"),ht=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",C.textTransform,"inherit"),gt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",$),yt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",C.fontSize,"10px"),ut=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",C.fontWeight,"normal"),bt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",C.letterSpacing,"0.33px"),mt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",C.lineHeight,"1.6"),xt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",C.textTransform,"inherit"),Ot=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",$),vt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",C.fontSize,"10px"),Nt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",C.fontWeight,"normal"),St=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",C.letterSpacing,"1.5px"),$t=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",C.lineHeight,"1.6"),Ct=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",C.textTransform,"uppercase"),wt={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",C.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",C.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",C.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",C.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",C.textTransform,"uppercase")},It=e.css`
162
145
  .ft-typography--title {
163
- font-family: ${ft};
164
- font-size: ${dt};
165
- font-weight: ${ct};
166
- letter-spacing: ${ut};
167
- line-height: ${xt};
168
- text-transform: ${gt};
169
- }
170
- `,ci=e.css`
146
+ font-family: ${w};
147
+ font-size: ${I};
148
+ font-weight: ${U};
149
+ letter-spacing: ${k};
150
+ line-height: ${W};
151
+ text-transform: ${R};
152
+ }
153
+ `,Ut=e.css`
171
154
  .ft-typography--title-dense {
172
- font-family: ${bt};
173
- font-size: ${yt};
174
- font-weight: ${vt};
175
- letter-spacing: ${mt};
176
- line-height: ${$t};
177
- text-transform: ${wt};
178
- }
179
- `,ui=e.css`
155
+ font-family: ${E};
156
+ font-size: ${L};
157
+ font-weight: ${K};
158
+ letter-spacing: ${Z};
159
+ line-height: ${z};
160
+ text-transform: ${F};
161
+ }
162
+ `,kt=e.css`
180
163
  .ft-typography--subtitle1 {
181
- font-family: ${kt};
182
- font-size: ${zt};
183
- font-weight: ${St};
184
- letter-spacing: ${Ct};
185
- line-height: ${Ot};
186
- text-transform: ${Et};
187
- }
188
- `,xi=e.css`
164
+ font-family: ${B};
165
+ font-size: ${D};
166
+ font-weight: ${H};
167
+ letter-spacing: ${A};
168
+ line-height: ${G};
169
+ text-transform: ${j};
170
+ }
171
+ `,Wt=e.css`
189
172
  .ft-typography--subtitle2 {
190
- font-family: ${jt};
191
- font-size: ${Nt};
192
- font-weight: ${It};
193
- letter-spacing: ${Mt};
194
- line-height: ${Tt};
195
- text-transform: ${At};
173
+ font-family: ${M};
174
+ font-size: ${P};
175
+ font-weight: ${T};
176
+ letter-spacing: ${_};
177
+ line-height: ${Y};
178
+ text-transform: ${V};
196
179
  }
197
180
 
198
- `,gi=e.css`
181
+ `,Rt=e.css`
199
182
  .ft-typography--body1 {
200
- font-family: ${Bt};
201
- font-size: ${Ft};
202
- font-weight: ${Zt};
203
- letter-spacing: ${_t};
204
- line-height: ${Ut};
205
- text-transform: ${Wt};
206
- }
207
- `,bi=e.css`
183
+ font-family: ${q};
184
+ font-size: ${X};
185
+ font-weight: ${J};
186
+ letter-spacing: ${Q};
187
+ line-height: ${tt};
188
+ text-transform: ${ot};
189
+ }
190
+ `,Et=e.css`
208
191
  .ft-typography--body2 {
209
- font-family: ${Rt};
210
- font-size: ${Dt};
211
- font-weight: ${Pt};
212
- letter-spacing: ${Ht};
213
- line-height: ${Kt};
214
- text-transform: ${Lt};
215
- }
216
- `,yi=e.css`
192
+ font-family: ${et};
193
+ font-size: ${rt};
194
+ font-weight: ${it};
195
+ letter-spacing: ${at};
196
+ line-height: ${nt};
197
+ text-transform: ${lt};
198
+ }
199
+ `,Lt=e.css`
217
200
  .ft-typography--caption {
218
- font-family: ${Gt};
219
- font-size: ${Vt};
220
- font-weight: ${qt};
221
- letter-spacing: ${Xt};
222
- line-height: ${Yt};
223
- text-transform: ${Jt};
224
- }
225
- `,vi=e.css`
201
+ font-family: ${ct};
202
+ font-size: ${pt};
203
+ font-weight: ${st};
204
+ letter-spacing: ${ft};
205
+ line-height: ${dt};
206
+ text-transform: ${ht};
207
+ }
208
+ `,Kt=e.css`
226
209
  .ft-typography--breadcrumb {
227
- font-family: ${Qt};
228
- font-size: ${ti};
229
- font-weight: ${ii};
230
- letter-spacing: ${ei};
231
- line-height: ${oi};
232
- text-transform: ${ni};
233
- }
234
- `,mi=e.css`
210
+ font-family: ${gt};
211
+ font-size: ${yt};
212
+ font-weight: ${ut};
213
+ letter-spacing: ${bt};
214
+ line-height: ${mt};
215
+ text-transform: ${xt};
216
+ }
217
+ `,Zt=e.css`
235
218
  .ft-typography--overline {
236
- font-family: ${si};
237
- font-size: ${ri};
238
- font-weight: ${li};
239
- letter-spacing: ${ai};
240
- line-height: ${pi};
241
- text-transform: ${hi};
242
- }
243
- `,$i=e.css`
219
+ font-family: ${Ot};
220
+ font-size: ${vt};
221
+ font-weight: ${Nt};
222
+ letter-spacing: ${St};
223
+ line-height: ${$t};
224
+ text-transform: ${Ct};
225
+ }
226
+ `,zt=e.css`
244
227
  .ft-typography--button {
245
- font-family: ${fi.fontFamily};
246
- font-size: ${fi.fontSize};
247
- font-weight: ${fi.fontWeight};
248
- letter-spacing: ${fi.letterSpacing};
249
- line-height: ${fi.lineHeight};
250
- text-transform: ${fi.textTransform};
251
- }
252
- `,wi=e.css`
228
+ font-family: ${wt.fontFamily};
229
+ font-size: ${wt.fontSize};
230
+ font-weight: ${wt.fontWeight};
231
+ letter-spacing: ${wt.letterSpacing};
232
+ line-height: ${wt.lineHeight};
233
+ text-transform: ${wt.textTransform};
234
+ }
235
+ `,Ft=e.css`
253
236
  .ft-typography {
254
237
  vertical-align: inherit;
255
238
  }
256
- `;var ki=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class zi extends i.FtLitElement{constructor(){super(...arguments),this.variant=lt.body1}render(){return this.element?rt`
257
- <${nt(this.element)}
258
- class="ft-typography ft-typography--${this.variant}">
259
- <slot></slot>
260
- </${nt(this.element)}>
261
- `:rt`
262
- <slot class="ft-typography ft-typography--${this.variant}"></slot>
263
- `}}zi.styles=[di,ci,ui,xi,gi,bi,yi,vi,mi,$i,wi],ki([o.property()],zi.prototype,"element",void 0),ki([o.property()],zi.prototype,"variant",void 0),i.customElement("ft-typography")(zi);const Si=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Ci=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Oi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Ei=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","100"),ji=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Ni=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ii=e.css`
264
- .ft-tooltip--container {
265
- display: block;
266
- }
267
-
268
- .ft-tooltip--inline {
269
- display: inline-block;
270
- max-width: 100%;
271
- }
272
-
273
- .ft-tooltip {
274
- position: absolute;
275
- box-sizing: border-box;
276
- overflow: hidden;
277
- width: max-content;
278
- max-width: ${Ni};
279
- text-align: center;
280
- padding: ${Si};
281
- z-index: ${Ei};
282
- }
283
-
284
- .ft-tooltip--content {
285
- padding: 4px 8px;
286
- border-radius: ${ji};
287
- background-color: ${Oi};
288
- color: ${Ci};
289
- position: relative;
290
- word-break: break-word;
291
- }
292
- `;var Mi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ti extends i.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 i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
293
- <div part="container"
294
- class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
295
- @mouseenter=${this.onHover}
296
- @mouseleave=${this.onOut}
297
- @focusin=${this.onHover}
298
- @focusout=${this.onOut}
299
- @touchstart=${this.onTouch}>
300
- <slot></slot>
301
- <div part="tooltip" role="tooltip" inert
302
- class="ft-tooltip ft-tooltip--${this.validPosition}"
303
- ?hidden=${!this.visible}>
304
- <div part="tooltip-content" class="ft-tooltip--content">
305
- <slot name="text"></slot>
306
- <ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
307
- </div>
308
- </div>
309
- </div>
310
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,n=(t.offsetWidth-i)/2;let s=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-e-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=s+"px",l.top=r+"px";const a=this.tooltip.getBoundingClientRect();let p=-a.x,h=a.x+a.width-window.innerWidth;l.left=s+Math.round(this.correctOutOfWindowPixels(p,h))+"px";let f=-a.y,d=a.y+a.height-window.innerHeight;l.top=r+Math.round(this.correctOutOfWindowPixels(f,d))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${Ni})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}Ti.elementDefinitions={"ft-typography":zi},Ti.styles=Ii,Mi([o.property()],Ti.prototype,"text",void 0),Mi([o.property({type:Boolean})],Ti.prototype,"manual",void 0),Mi([o.property({type:Boolean})],Ti.prototype,"inline",void 0),Mi([o.property({type:Number})],Ti.prototype,"delay",void 0),Mi([o.property()],Ti.prototype,"position",void 0),Mi([o.queryAssignedNodes("",!0)],Ti.prototype,"slotNodes",void 0),Mi([o.query(".ft-tooltip--container")],Ti.prototype,"container",void 0),Mi([o.query(".ft-tooltip")],Ti.prototype,"tooltip",void 0),Mi([o.query(".ft-tooltip--content")],Ti.prototype,"tooltipContent",void 0),Mi([o.state()],Ti.prototype,"visible",void 0),i.customElement("ft-tooltip")(Ti);const Ai={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Bi=e.css`
239
+ `,Bt=[Object.keys(O).map((t=>function(t){const o=O[t];return e.css`
240
+ .ft-typography--${e.unsafeCSS(t)} {
241
+ font-family: ${o.fontFamily};
242
+ font-size: ${o.fontSize};
243
+ font-weight: ${o.fontWeight};
244
+ letter-spacing: ${o.letterSpacing};
245
+ line-height: ${o.lineHeight};
246
+ text-transform: ${o.textCase};
247
+ }
248
+ `}(t)))],Dt={color:o.FtCssVariableFactory.extend("--ft-loader-color","",o.designSystemVariables.colorPrimary),size:o.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Ht=e.css`
311
249
  :host {
312
250
  line-height: 0;
313
251
  }
@@ -316,8 +254,8 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
316
254
  display: inline-block;
317
255
  position: relative;
318
256
 
319
- width: ${Ai.size};
320
- height: ${Ai.size};
257
+ width: ${Dt.size};
258
+ height: ${Dt.size};
321
259
  }
322
260
 
323
261
  .ft-loader div {
@@ -326,7 +264,7 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
326
264
  width: 25%;
327
265
  height: 25%;
328
266
  border-radius: 50%;
329
- background: ${Ai.color};
267
+ background: ${Dt.color};
330
268
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
331
269
  }
332
270
 
@@ -373,17 +311,10 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
373
311
  transform: translate(0, 0);
374
312
  }
375
313
  100% {
376
- transform: translate(calc(0.35 * ${Ai.size}), 0);
314
+ transform: translate(calc(0.35 * ${Dt.size}), 0);
377
315
  }
378
316
  }
379
- `;class Fi extends i.FtLitElement{render(){return e.html`
380
- <div class="ft-loader">
381
- <div></div>
382
- <div></div>
383
- <div></div>
384
- <div></div>
385
- </div>
386
- `}}var Zi,_i;Fi.styles=Bi,i.customElement("ft-loader")(Fi),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Zi||(Zi={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(_i||(_i={})),new Map([...["abw"].map((t=>[t,_i.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,_i.AUDIO])),...["avi"].map((t=>[t,_i.AVI])),...["chm","xhs"].map((t=>[t,_i.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,_i.CODE])),...["csv"].map((t=>[t,_i.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,_i.DITA])),...["epub"].map((t=>[t,_i.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,_i.EXCEL])),...["flac"].map((t=>[t,_i.FLAC])),...["gif"].map((t=>[t,_i.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,_i.GZIP])),...["html","htm","xhtml"].map((t=>[t,_i.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,_i.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,_i.JPEG])),...["json"].map((t=>[t,_i.JSON])),...["m4a","m4p"].map((t=>[t,_i.M4A])),...["mov","qt"].map((t=>[t,_i.MOV])),...["mp3"].map((t=>[t,_i.MP3])),...["mp4","m4v"].map((t=>[t,_i.MP4])),...["ogg","oga"].map((t=>[t,_i.OGG])),...["pdf","ps"].map((t=>[t,_i.PDF])),...["png"].map((t=>[t,_i.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,_i.POWERPOINT])),...["rar"].map((t=>[t,_i.RAR])),...["stp"].map((t=>[t,_i.STP])),...["txt","rtf","md","mdown"].map((t=>[t,_i.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,_i.VIDEO])),...["wav"].map((t=>[t,_i.WAV])),...["wma"].map((t=>[t,_i.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,_i.WORD])),...["xml","xsl","rdf"].map((t=>[t,_i.XML])),...["yaml","yml","x-yaml"].map((t=>[t,_i.YAML])),...["zip"].map((t=>[t,_i.ZIP]))]);const Ui={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Wi=e.css`
317
+ `,At={size:o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Gt=e.css`
387
318
  :host, i.ft-icon {
388
319
  display: inline-flex;
389
320
  align-items: center;
@@ -392,14 +323,14 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
392
323
  }
393
324
 
394
325
  :host {
395
- width: ${Ui.size};
396
- height: ${Ui.size};
326
+ width: ${At.size};
327
+ height: ${At.size};
397
328
  }
398
329
 
399
330
  i.ft-icon {
400
331
  width: 100%;
401
332
  height: 100%;
402
- font-size: ${Ui.size};
333
+ font-size: ${At.size};
403
334
  line-height: 1;
404
335
  font-weight: normal;
405
336
  text-transform: none;
@@ -410,33 +341,28 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
410
341
  text-rendering: auto;
411
342
  -webkit-font-smoothing: antialiased;
412
343
  -moz-osx-font-smoothing: grayscale;
413
- vertical-align: ${Ui.verticalAlign};
344
+ vertical-align: ${At.verticalAlign};
414
345
  }
415
346
 
416
347
  i.ft-icon.ft-icon--fluid-topics {
417
- font-family: ${Ui.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
348
+ font-family: ${At.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
418
349
 
419
350
  /* Ugly fix because font is broken */
420
- font-size: calc(0.75 * ${Ui.size});
421
- line-height: ${Ui.size};
351
+ font-size: calc(0.75 * ${At.size});
352
+ line-height: ${At.size};
422
353
  position: relative;
423
354
  top: -4%;
424
355
  justify-content: center;
425
356
  }
426
357
 
427
358
  .ft-icon--file-format {
428
- font-family: ${Ui.fileFormatFontFamily}, ft-mime, sans-serif;
359
+ font-family: ${At.fileFormatFontFamily}, ft-mime, sans-serif;
429
360
  }
430
361
 
431
362
  .ft-icon--material {
432
- font-family: ${Ui.materialFontFamily}, "Material Icons", sans-serif;
363
+ font-family: ${At.materialFontFamily}, "Material Icons", sans-serif;
433
364
  }
434
- `;var Ri;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ri||(Ri={}));var Di=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Pi extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Ri).includes(this.variant)?this.variant:Ri.fluid_topics,i=t!==Ri.material||!!this.value;return e.html`
435
- <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
436
- ${s.unsafeHTML(this.resolvedIcon)}
437
- <slot ?hidden=${i}></slot>
438
- </i>
439
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Ri.file_format:this.resolvedIcon=null!==(t=_i[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ri.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Zi[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Pi.elementDefinitions={},Pi.styles=Wi,Di([o.property()],Pi.prototype,"variant",void 0),Di([o.property()],Pi.prototype,"value",void 0),Di([o.state()],Pi.prototype,"resolvedIcon",void 0),Di([o.query("slot")],Pi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Pi);const Hi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Ki={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Hi,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",fi.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Hi),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Li=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Gi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Li,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Li)},Vi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),qi=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Xi=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Yi=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Ji=[e.css`
365
+ `,jt=o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorPrimary),Mt={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorSurface),borderRadius:o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusL),color:jt,fontSize:o.FtCssVariableFactory.extend("--ft-button-font-size","",wt.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.FtCssVariableFactory.extend("--ft-button-ripple-color","",jt),verticalPadding:o.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},Pt=o.FtCssVariableFactory.extend("--ft-button-primary-color","",o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorOnPrimary)),Tt={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-primary-background-color","",o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorPrimary)),color:Pt,rippleColor:o.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Pt)},_t=o.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusM)),Yt=o.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Vt=o.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),qt=o.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),Xt=[e.css`
440
366
  :host {
441
367
  display: inline-block;
442
368
  max-width: 100%;
@@ -447,7 +373,7 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
447
373
  box-shadow: 0px 0px 0px transparent;
448
374
  border: 0px solid transparent;
449
375
  text-shadow: 0px 0px 0px transparent;
450
- font-size: ${Ki.fontSize};
376
+ font-size: ${Mt.fontSize};
451
377
  }
452
378
 
453
379
  button:hover {
@@ -476,31 +402,31 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
476
402
  border: none;
477
403
  pointer-events: auto;
478
404
 
479
- --ft-button-internal-line-height: max(calc(${Ki.fontSize} + 2px), ${Ki.iconSize});
480
- --ft-button-internal-color: ${Ki.color};
481
- ${i.setVariable(Ui.size,Ki.iconSize)};
482
- ${i.setVariable(p.color,Ki.rippleColor)};
405
+ --ft-button-internal-line-height: max(calc(${Mt.fontSize} + 2px), ${Mt.iconSize});
406
+ --ft-button-internal-color: ${Mt.color};
407
+ ${o.setVariable(At.size,Mt.iconSize)};
408
+ ${o.setVariable(p.color,Mt.rippleColor)};
483
409
 
484
- border-radius: ${Ki.borderRadius};
485
- padding: ${Ki.verticalPadding} ${Ki.horizontalPadding};
486
- background-color: ${Ki.backgroundColor};
410
+ border-radius: ${Mt.borderRadius};
411
+ padding: ${Mt.verticalPadding} ${Mt.horizontalPadding};
412
+ background-color: ${Mt.backgroundColor};
487
413
  color: var(--ft-button-internal-color);
488
414
  -webkit-mask-image: radial-gradient(white, black);
489
415
  }
490
416
 
491
417
  .ft-button.ft-button--outlined {
492
418
  border: 1px solid var(--ft-button-internal-color);
493
- padding: calc(${Ki.verticalPadding} - 1px) calc(${Ki.horizontalPadding} - 1px);
419
+ padding: calc(${Mt.verticalPadding} - 1px) calc(${Mt.horizontalPadding} - 1px);
494
420
  }
495
421
 
496
422
  .ft-button.ft-button--dense {
497
- padding: ${qi} ${Xi};
498
- border-radius: ${Vi};
499
- gap: ${Yi};
423
+ padding: ${Yt} ${Vt};
424
+ border-radius: ${_t};
425
+ gap: ${qt};
500
426
  }
501
427
 
502
428
  .ft-button.ft-button--dense.ft-button--outlined {
503
- padding: calc(${qi} - 1px) calc(${Xi} - 1px);
429
+ padding: calc(${Yt} - 1px) calc(${Vt} - 1px);
504
430
  }
505
431
 
506
432
  .ft-button:not([disabled]):hover {
@@ -508,22 +434,22 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
508
434
  }
509
435
 
510
436
  .ft-button--round {
511
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ki.verticalPadding});
437
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Mt.verticalPadding});
512
438
  }
513
439
 
514
440
  .ft-button--round.ft-button--dense {
515
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${qi});
441
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Yt});
516
442
  }
517
443
 
518
444
  .ft-button[disabled] {
519
445
  filter: grayscale(1);
520
- opacity: ${Ki.opacityDisabled};
446
+ opacity: ${Mt.opacityDisabled};
521
447
  }
522
448
 
523
449
  .ft-button.ft-button--primary {
524
- background-color: ${Gi.backgroundColor};
525
- --ft-button-internal-color: ${Gi.color};
526
- ${i.setVariable(p.color,Gi.rippleColor)};
450
+ background-color: ${Tt.backgroundColor};
451
+ --ft-button-internal-color: ${Tt.color};
452
+ ${o.setVariable(p.color,Tt.rippleColor)};
527
453
  }
528
454
 
529
455
  .ft-button:focus {
@@ -536,13 +462,13 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
536
462
  white-space: nowrap;
537
463
  text-overflow: ellipsis;
538
464
  display: block;
539
- margin: 0 ${Ki.iconPadding};
540
- ${i.setVariable(fi.fontSize,"1em")};
541
- ${i.setVariable(fi.lineHeight,"var(--ft-button-internal-line-height)")};
465
+ margin: 0 ${Mt.iconPadding};
466
+ ${o.setVariable(wt.fontSize,"1em")};
467
+ ${o.setVariable(wt.lineHeight,"var(--ft-button-internal-line-height)")};
542
468
  }
543
469
 
544
470
  .ft-button--dense .ft-button--label {
545
- margin: 0 ${Yi};
471
+ margin: 0 ${qt};
546
472
  }
547
473
 
548
474
  .ft-button--label[hidden] {
@@ -555,13 +481,13 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
555
481
  }
556
482
 
557
483
  .ft-button--label[hidden] + ft-icon {
558
- margin: 0 calc(${Ki.horizontalPadding} * -1);
559
- padding: 0 ${Ki.verticalPadding};
484
+ margin: 0 calc(${Mt.horizontalPadding} * -1);
485
+ padding: 0 ${Mt.verticalPadding};
560
486
  }
561
487
 
562
488
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
563
- margin: 0 calc(${Xi} * -1);
564
- padding: 0 ${qi};
489
+ margin: 0 calc(${Vt} * -1);
490
+ padding: 0 ${Yt};
565
491
  }
566
492
 
567
493
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -570,19 +496,102 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
570
496
  }
571
497
 
572
498
  ft-loader {
573
- ${i.setVariable(Ai.size,Ki.iconSize)};
574
- ${i.setVariable(Ai.color,"var(--ft-button-internal-color)")};
499
+ ${o.setVariable(Dt.size,Mt.iconSize)};
500
+ ${o.setVariable(Dt.color,"var(--ft-button-internal-color)")};
575
501
  }
576
- `,i.noTextSelect];var Qi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class te extends(i.toFtFormComponent(i.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var i;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(i=this.form)||void 0===i||i.requestSubmit())}}render(){const t={"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};return this.addTooltipIfNeeded(e.html`
502
+ `,o.noTextSelect];var Jt,Qt=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class to extends o.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 o.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o.Debouncer(10),this.moveRipple=t=>{var o,e;let{x:r,y:i}=this.getCoordinates(t),a=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-a.x:a.width/2),this.originY=Math.round(null!=i?i-a.y:a.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"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 e.html`
503
+ <style>
504
+ .ft-ripple .ft-ripple--effect {
505
+ left: ${this.originX}px;
506
+ top: ${this.originY}px;
507
+ }
508
+ </style>
509
+ <div class="${i.classMap(t)}">
510
+ <div class="ft-ripple--background"></div>
511
+ <div class="ft-ripple--effect"></div>
512
+ </div>
513
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.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 t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}to.elementDefinitions={},to.styles=u,Qt([r.property({type:Boolean})],to.prototype,"primary",void 0),Qt([r.property({type:Boolean})],to.prototype,"secondary",void 0),Qt([r.property({type:Boolean})],to.prototype,"unbounded",void 0),Qt([r.property({type:Boolean})],to.prototype,"activated",void 0),Qt([r.property({type:Boolean})],to.prototype,"selected",void 0),Qt([r.property({type:Boolean})],to.prototype,"disabled",void 0),Qt([r.state()],to.prototype,"hovered",void 0),Qt([r.state()],to.prototype,"focused",void 0),Qt([r.state()],to.prototype,"pressed",void 0),Qt([r.state()],to.prototype,"rippling",void 0),Qt([r.state()],to.prototype,"originX",void 0),Qt([r.state()],to.prototype,"originY",void 0),Qt([r.query(".ft-ripple")],to.prototype,"ripple",void 0),Qt([r.query(".ft-ripple--effect")],to.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(to);const oo=window,eo=oo.trustedTypes,ro=eo?eo.createPolicy("lit-html",{createHTML:t=>t}):void 0,io="$lit$",ao=`lit$${(Math.random()+"").slice(9)}$`,no="?"+ao,lo=`<${no}>`,co=document,po=()=>co.createComment(""),so=t=>null===t||"object"!=typeof t&&"function"!=typeof t,fo=Array.isArray,ho="[ \t\n\f\r]",go=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yo=/-->/g,uo=/>/g,bo=RegExp(`>|${ho}(?:([^\\s"'>=/]+)(${ho}*=${ho}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),mo=/'/g,xo=/"/g,Oo=/^(?:script|style|textarea|title)$/i,vo=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),No=Symbol.for("lit-noChange"),So=Symbol.for("lit-nothing"),$o=new WeakMap,Co=co.createTreeWalker(co,129,null,!1),wo=(t,o)=>{const e=t.length-1,r=[];let i,a=2===o?"<svg>":"",n=go;for(let o=0;o<e;o++){const e=t[o];let l,c,p=-1,s=0;for(;s<e.length&&(n.lastIndex=s,c=n.exec(e),null!==c);)s=n.lastIndex,n===go?"!--"===c[1]?n=yo:void 0!==c[1]?n=uo:void 0!==c[2]?(Oo.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=bo):void 0!==c[3]&&(n=bo):n===bo?">"===c[0]?(n=null!=i?i:go,p=-1):void 0===c[1]?p=-2:(p=n.lastIndex-c[2].length,l=c[1],n=void 0===c[3]?bo:'"'===c[3]?xo:mo):n===xo||n===mo?n=bo:n===yo||n===uo?n=go:(n=bo,i=void 0);const f=n===bo&&t[o+1].startsWith("/>")?" ":"";a+=n===go?e+lo:p>=0?(r.push(l),e.slice(0,p)+io+e.slice(p)+ao+f):e+ao+(-2===p?(r.push(void 0),o):f)}const l=a+(t[e]||"<?>")+(2===o?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==ro?ro.createHTML(l):l,r]};class Io{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,a=0;const n=t.length-1,l=this.parts,[c,p]=wo(t,o);if(this.el=Io.createElement(c,e),Co.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(r=Co.nextNode())&&l.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const o of r.getAttributeNames())if(o.endsWith(io)||o.startsWith(ao)){const e=p[a++];if(t.push(o),void 0!==e){const t=r.getAttribute(e.toLowerCase()+io).split(ao),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:i,name:o[2],strings:t,ctor:"."===o[1]?Eo:"?"===o[1]?Ko:"@"===o[1]?Zo:Ro})}else l.push({type:6,index:i})}for(const o of t)r.removeAttribute(o)}if(Oo.test(r.tagName)){const t=r.textContent.split(ao),o=t.length-1;if(o>0){r.textContent=eo?eo.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],po()),Co.nextNode(),l.push({type:2,index:++i});r.append(t[o],po())}}}else if(8===r.nodeType)if(r.data===no)l.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(ao,t+1));)l.push({type:7,index:i}),t+=ao.length-1}i++}}static createElement(t,o){const e=co.createElement("template");return e.innerHTML=t,e}}function Uo(t,o,e=t,r){var i,a,n,l;if(o===No)return o;let c=void 0!==r?null===(i=e._$Co)||void 0===i?void 0:i[r]:e._$Cl;const p=so(o)?void 0:o._$litDirective$;return(null==c?void 0:c.constructor)!==p&&(null===(a=null==c?void 0:c._$AO)||void 0===a||a.call(c,!1),void 0===p?c=void 0:(c=new p(t),c._$AT(t,e,r)),void 0!==r?(null!==(n=(l=e)._$Co)&&void 0!==n?n:l._$Co=[])[r]=c:e._$Cl=c),void 0!==c&&(o=Uo(t,c._$AS(t,o.values),c,r)),o}class ko{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var o;const{el:{content:e},parts:r}=this._$AD,i=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:co).importNode(e,!0);Co.currentNode=i;let a=Co.nextNode(),n=0,l=0,c=r[0];for(;void 0!==c;){if(n===c.index){let o;2===c.type?o=new Wo(a,a.nextSibling,this,t):1===c.type?o=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(o=new zo(a,this,t)),this._$AV.push(o),c=r[++l]}n!==(null==c?void 0:c.index)&&(a=Co.nextNode(),n++)}return i}v(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}class Wo{constructor(t,o,e,r){var i;this.type=2,this._$AH=So,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cp=null===(i=null==r?void 0:r.isConnected)||void 0===i||i}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===(null==t?void 0:t.nodeType)&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=Uo(this,t,o),so(t)?t===So||null==t||""===t?(this._$AH!==So&&this._$AR(),this._$AH=So):t!==this._$AH&&t!==No&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>fo(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==So&&so(this._$AH)?this._$AA.nextSibling.data=t:this.$(co.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:r}=t,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=Io.createElement(r.h,this.options)),r);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===i)this._$AH.v(e);else{const t=new ko(i,this),o=t.u(this.options);t.v(e),this.$(o),this._$AH=t}}_$AC(t){let o=$o.get(t.strings);return void 0===o&&$o.set(t.strings,o=new Io(t)),o}T(t){fo(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,r=0;for(const i of t)r===o.length?o.push(e=new Wo(this.k(po()),this.k(po()),this,this.options)):e=o[r],e._$AI(i),r++;r<o.length&&(this._$AR(e&&e._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$Cp=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}}class Ro{constructor(t,o,e,r,i){this.type=1,this._$AH=So,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=So}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,e,r){const i=this.strings;let a=!1;if(void 0===i)t=Uo(this,t,o,0),a=!so(t)||t!==this._$AH&&t!==No,a&&(this._$AH=t);else{const r=t;let n,l;for(t=i[0],n=0;n<i.length-1;n++)l=Uo(this,r[e+n],o,n),l===No&&(l=this._$AH[n]),a||(a=!so(l)||l!==this._$AH[n]),l===So?t=So:t!==So&&(t+=(null!=l?l:"")+i[n+1]),this._$AH[n]=l}a&&!r&&this.j(t)}j(t){t===So?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Eo extends Ro{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===So?void 0:t}}const Lo=eo?eo.emptyScript:"";class Ko extends Ro{constructor(){super(...arguments),this.type=4}j(t){t&&t!==So?this.element.setAttribute(this.name,Lo):this.element.removeAttribute(this.name)}}class Zo extends Ro{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){var e;if((t=null!==(e=Uo(this,t,o,0))&&void 0!==e?e:So)===No)return;const r=this._$AH,i=t===So&&r!==So||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==So&&(r===So||i);i&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class zo{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Uo(this,t)}}const Fo=oo.litHtmlPolyfillSupport;null==Fo||Fo(Io,Wo),(null!==(Jt=oo.litHtmlVersions)&&void 0!==Jt?Jt:oo.litHtmlVersions=[]).push("2.7.3");
514
+ /**
515
+ * @license
516
+ * Copyright 2020 Google LLC
517
+ * SPDX-License-Identifier: BSD-3-Clause
518
+ */
519
+ const Bo=Symbol.for(""),Do=t=>{if((null==t?void 0:t.r)===Bo)return null==t?void 0:t._$litStatic$},Ho=t=>({_$litStatic$:t,r:Bo}),Ao=new Map,Go=(t=>(o,...e)=>{const r=e.length;let i,a;const n=[],l=[];let c,p=0,s=!1;for(;p<r;){for(c=o[p];p<r&&void 0!==(a=e[p],i=Do(a));)c+=i+o[++p],s=!0;p!==r&&l.push(a),n.push(c),p++}if(p===r&&n.push(o[r]),s){const t=n.join("$$lit$$");void 0===(o=Ao.get(t))&&(n.raw=n,Ao.set(t,o=n)),e=l}return t(o,...e)})(vo);var jo;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(jo||(jo={}));var Mo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Po extends o.FtLitElement{constructor(){super(...arguments),this.variant=jo.body1}render(){return this.element?Go`
520
+ <${Ho(this.element)}
521
+ class="ft-typography ft-typography--${this.variant}">
522
+ <slot></slot>
523
+ </${Ho(this.element)}>
524
+ `:Go`
525
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
526
+ `}}Po.styles=[It,Ut,kt,Wt,Rt,Et,Lt,Kt,Zt,zt,Ft,...Bt],Mo([r.property()],Po.prototype,"element",void 0),Mo([r.property()],Po.prototype,"variant",void 0),o.customElement("ft-typography")(Po);const To=o.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),_o=o.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Yo=o.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),Vo=o.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),qo=o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),Xo=o.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),Jo=e.css`
527
+ .ft-tooltip--container {
528
+ display: block;
529
+ }
530
+
531
+ .ft-tooltip--inline {
532
+ display: inline-block;
533
+ max-width: 100%;
534
+ }
535
+
536
+ .ft-tooltip {
537
+ position: absolute;
538
+ box-sizing: border-box;
539
+ overflow: hidden;
540
+ width: max-content;
541
+ max-width: ${Xo};
542
+ text-align: center;
543
+ padding: ${To};
544
+ z-index: ${Vo};
545
+ }
546
+
547
+ .ft-tooltip--content {
548
+ padding: 4px 8px;
549
+ border-radius: ${qo};
550
+ background-color: ${Yo};
551
+ color: ${_o};
552
+ position: relative;
553
+ word-break: break-word;
554
+ }
555
+ `;var Qo,te,oe,ee=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class re extends o.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 o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
556
+ <div part="container"
557
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
558
+ @mouseenter=${this.onHover}
559
+ @mouseleave=${this.onOut}
560
+ @focusin=${this.onHover}
561
+ @focusout=${this.onOut}
562
+ @touchstart=${this.onTouch}>
563
+ <slot></slot>
564
+ <div part="tooltip" role="tooltip" inert
565
+ class="ft-tooltip ft-tooltip--${this.validPosition}"
566
+ ?hidden=${!this.visible}>
567
+ <div part="tooltip-content" class="ft-tooltip--content">
568
+ <slot name="text"></slot>
569
+ <ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
570
+ </div>
571
+ </div>
572
+ </div>
573
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,r=(t.offsetHeight-e)/2,i=(t.offsetWidth-o)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+r-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+r-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=a+"px",l.top=n+"px";const c=this.tooltip.getBoundingClientRect();let p=-c.x,s=c.x+c.width-window.innerWidth;l.left=a+Math.round(this.correctOutOfWindowPixels(p,s))+"px";let f=-c.y,d=c.y+c.height-window.innerHeight;l.top=n+Math.round(this.correctOutOfWindowPixels(f,d))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${Xo})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}re.elementDefinitions={"ft-typography":Po},re.styles=Jo,ee([r.property()],re.prototype,"text",void 0),ee([r.property({type:Boolean})],re.prototype,"manual",void 0),ee([r.property({type:Boolean})],re.prototype,"inline",void 0),ee([r.property({type:Number})],re.prototype,"delay",void 0),ee([r.property()],re.prototype,"position",void 0),ee([r.queryAssignedNodes("",!0)],re.prototype,"slotNodes",void 0),ee([r.query(".ft-tooltip--container")],re.prototype,"container",void 0),ee([r.query(".ft-tooltip")],re.prototype,"tooltip",void 0),ee([r.query(".ft-tooltip--content")],re.prototype,"tooltipContent",void 0),ee([r.state()],re.prototype,"visible",void 0),o.customElement("ft-tooltip")(re),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Qo||(Qo={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(te||(te={})),new Map([...["abw"].map((t=>[t,te.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,te.AUDIO])),...["avi"].map((t=>[t,te.AVI])),...["chm","xhs"].map((t=>[t,te.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,te.CODE])),...["csv"].map((t=>[t,te.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,te.DITA])),...["epub"].map((t=>[t,te.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,te.EXCEL])),...["flac"].map((t=>[t,te.FLAC])),...["gif"].map((t=>[t,te.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,te.GZIP])),...["html","htm","xhtml"].map((t=>[t,te.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,te.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,te.JPEG])),...["json"].map((t=>[t,te.JSON])),...["m4a","m4p"].map((t=>[t,te.M4A])),...["mov","qt"].map((t=>[t,te.MOV])),...["mp3"].map((t=>[t,te.MP3])),...["mp4","m4v"].map((t=>[t,te.MP4])),...["ogg","oga"].map((t=>[t,te.OGG])),...["pdf","ps"].map((t=>[t,te.PDF])),...["png"].map((t=>[t,te.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,te.POWERPOINT])),...["rar"].map((t=>[t,te.RAR])),...["stp"].map((t=>[t,te.STP])),...["txt","rtf","md","mdown"].map((t=>[t,te.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,te.VIDEO])),...["wav"].map((t=>[t,te.WAV])),...["wma"].map((t=>[t,te.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,te.WORD])),...["xml","xsl","rdf"].map((t=>[t,te.XML])),...["yaml","yml","x-yaml"].map((t=>[t,te.YAML])),...["zip"].map((t=>[t,te.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(oe||(oe={}));var ie=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ae extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(oe).includes(this.variant)?this.variant:oe.fluid_topics,o=t!==oe.material||!!this.value;return e.html`
574
+ <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
575
+ ${a.unsafeHTML(this.resolvedIcon)}
576
+ <slot ?hidden=${o}></slot>
577
+ </i>
578
+ `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let r=this.value||this.textContent;switch(this.variant){case oe.file_format:this.resolvedIcon=null!==(t=te[r.replace("-","_").toUpperCase()])&&void 0!==t?t:r;break;case oe.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=Qo[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ae.elementDefinitions={},ae.styles=Gt,ie([r.property()],ae.prototype,"variant",void 0),ie([r.property()],ae.prototype,"value",void 0),ie([r.state()],ae.prototype,"resolvedIcon",void 0),ie([r.query("slot")],ae.prototype,"slottedContent",void 0),o.customElement("ft-icon")(ae);class ne extends o.FtLitElement{render(){return e.html`
579
+ <div class="ft-loader">
580
+ <div></div>
581
+ <div></div>
582
+ <div></div>
583
+ <div></div>
584
+ </div>
585
+ `}}ne.styles=Ht,o.customElement("ft-loader")(ne);var le=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ce extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
577
586
  <button part="button"
578
- class="${n.classMap(t)}"
587
+ class="${i.classMap(this.buttonClasses)}"
579
588
  aria-label="${this.getLabel()}"
580
589
  ?disabled=${this.isDisabled()}>
581
590
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
582
591
  <ft-typography part="label"
583
- variant="button"
592
+ variant=${this.typographyVariant}
584
593
  element="span"
585
- class="ft-button--label ${i.isSafari?"ft-safari-ellipsis-fix":""}"
594
+ class="ft-button--label ${o.isSafari?"ft-safari-ellipsis-fix":""}"
586
595
  ?hidden=${!this.hasTextContent()}>
587
596
  <slot @slotchange=${this.onSlotchange}></slot>
588
597
  </ft-typography>
@@ -596,7 +605,225 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
596
605
  </ft-tooltip>
597
606
  `:t}resolveIcon(){return this.loading?e.html`
598
607
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
599
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}te.elementDefinitions={"ft-ripple":v,"ft-tooltip":Ti,"ft-typography":zi,"ft-icon":Pi,"ft-loader":Fi},te.styles=[i.safariEllipsisFix,Ji],Qi([o.property({type:String,reflect:!0})],te.prototype,"role",void 0),Qi([o.property()],te.prototype,"type",void 0),Qi([o.property({type:Boolean})],te.prototype,"primary",void 0),Qi([o.property({type:Boolean})],te.prototype,"outlined",void 0),Qi([o.property({type:Boolean})],te.prototype,"disabled",void 0),Qi([o.property({type:Boolean})],te.prototype,"dense",void 0),Qi([o.property({type:Boolean})],te.prototype,"round",void 0),Qi([o.property()],te.prototype,"label",void 0),Qi([o.property()],te.prototype,"icon",void 0),Qi([o.property()],te.prototype,"iconVariant",void 0),Qi([o.property({type:Boolean})],te.prototype,"trailingIcon",void 0),Qi([o.property({type:Boolean})],te.prototype,"loading",void 0),Qi([o.property()],te.prototype,"tooltipPosition",void 0),Qi([o.property({type:Boolean})],te.prototype,"hideTooltip",void 0),Qi([o.property({type:Boolean})],te.prototype,"forceTooltip",void 0),Qi([o.query(".ft-button")],te.prototype,"button",void 0),Qi([o.query(".ft-button--label slot")],te.prototype,"slottedContent",void 0),i.customElement("ft-button")(te);const ie={iconColor:i.FtCssVariableFactory.extend("--ft-floating-menu-icon-color",i.designSystemVariables.colorOnSurfaceMedium)},ee=e.css`
608
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ce.elementDefinitions={"ft-ripple":to,"ft-tooltip":re,"ft-typography":Po,"ft-icon":ae,"ft-loader":ne},le([r.property({type:String,reflect:!0})],ce.prototype,"role",void 0),le([r.property()],ce.prototype,"type",void 0),le([r.property({type:Boolean})],ce.prototype,"disabled",void 0),le([r.property()],ce.prototype,"label",void 0),le([r.property()],ce.prototype,"icon",void 0),le([r.property()],ce.prototype,"iconVariant",void 0),le([r.property({type:Boolean})],ce.prototype,"trailingIcon",void 0),le([r.property({type:Boolean})],ce.prototype,"loading",void 0),le([r.property()],ce.prototype,"tooltipPosition",void 0),le([r.property({type:Boolean})],ce.prototype,"hideTooltip",void 0),le([r.property({type:Boolean})],ce.prototype,"forceTooltip",void 0),le([r.query(".ft-button")],ce.prototype,"button",void 0),le([r.query(".ft-button--label slot")],ce.prototype,"slottedContent",void 0);var pe=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class se extends ce{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!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"}}se.styles=[o.safariEllipsisFix,Xt],pe([r.property({type:Boolean})],se.prototype,"primary",void 0),pe([r.property({type:Boolean})],se.prototype,"outlined",void 0),pe([r.property({type:Boolean})],se.prototype,"disabled",void 0),pe([r.property({type:Boolean})],se.prototype,"dense",void 0),pe([r.property({type:Boolean})],se.prototype,"round",void 0);const fe=[e.css`
609
+ :host {
610
+ display: inline-block;
611
+ max-width: 100%;
612
+ pointer-events: none;
613
+ }
614
+
615
+ /** Remove default button styles **/
616
+
617
+ button {
618
+ box-shadow: 0 0 0 transparent;
619
+ border: 0 solid transparent;
620
+ text-shadow: 0 0 0 transparent;
621
+ }
622
+
623
+ button:hover {
624
+ box-shadow: 0 0 0 transparent;
625
+ text-shadow: 0 0 0 transparent;
626
+ }
627
+
628
+ button:active {
629
+ outline: none;
630
+ }
631
+
632
+ button:focus {
633
+ outline: 0;
634
+ }
635
+
636
+ /** Base styles **/
637
+
638
+ .ft-button {
639
+ position: relative;
640
+ display: flex;
641
+ justify-content: center;
642
+ align-items: center;
643
+ width: 100%;
644
+ overflow: hidden;
645
+ box-sizing: border-box;
646
+ pointer-events: auto;
647
+ }
648
+
649
+ .ft-button:not([disabled]):hover {
650
+ cursor: pointer;
651
+ }
652
+
653
+ .ft-button:focus {
654
+ outline: none;
655
+ }
656
+
657
+ .ft-button:focus-visible {
658
+ outline-color: ${N.focusFocusRingColor};
659
+ outline-style: solid;
660
+ }
661
+
662
+ ft-icon {
663
+ flex-shrink: 0;
664
+ position: relative;
665
+ }
666
+
667
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
668
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
669
+ order: -1;
670
+ }
671
+
672
+ .ft-button--label {
673
+ position: relative;
674
+ overflow: hidden;
675
+ white-space: nowrap;
676
+ text-overflow: ellipsis;
677
+ display: block;
678
+ }
679
+
680
+ .ft-button--label[hidden] {
681
+ display: none;
682
+ }
683
+
684
+ /** Primary styles **/
685
+
686
+ .ft-button--primary {
687
+ ${o.setVariable(Dt.color,N.primaryIconColor)};
688
+
689
+ ${o.setVariable(p.color,N.primaryStateLayerColor)};
690
+ ${o.setVariable(p.opacityContentOnSurfaceHover,N.primaryStateLayerOpacityHover)};
691
+ ${o.setVariable(p.opacityContentOnSurfaceFocused,N.primaryStateLayerOpacityFocus)};
692
+ ${o.setVariable(p.opacityContentOnSurfaceSelected,N.primaryStateLayerOpacityActive)};
693
+ ${o.setVariable(p.opacityContentOnSurfacePressed,N.primaryStateLayerOpacityActive)};
694
+
695
+ background-color: ${N.primaryBackgroundColor};
696
+ color: ${N.primaryColor};
697
+ border-style: none;
698
+ }
699
+
700
+ .ft-button--primary[disabled] {
701
+ opacity: ${N.primaryComponentOpacityDisabled};
702
+ }
703
+
704
+ .ft-button--primary ft-icon {
705
+ color: ${N.primaryIconColor};
706
+ }
707
+
708
+ /** Secondary styles **/
709
+
710
+ .ft-button--secondary {
711
+ ${o.setVariable(Dt.color,N.secondaryIconColor)};
712
+
713
+ ${o.setVariable(p.color,N.secondaryStateLayerColor)};
714
+ ${o.setVariable(p.opacityContentOnSurfaceHover,N.secondaryStateLayerOpacityHover)};
715
+ ${o.setVariable(p.opacityContentOnSurfaceFocused,N.secondaryStateLayerOpacityFocus)};
716
+ ${o.setVariable(p.opacityContentOnSurfaceSelected,N.secondaryStateLayerOpacityActive)};
717
+ ${o.setVariable(p.opacityContentOnSurfacePressed,N.secondaryStateLayerOpacityActive)};
718
+
719
+ background-color: ${N.secondaryBackgroundColor};
720
+ color: ${N.secondaryColor};
721
+ border-color: ${N.secondaryBorderColor};
722
+ border-style: solid;
723
+ }
724
+
725
+ .ft-button--secondary[disabled] {
726
+ opacity: ${N.secondaryComponentOpacityDisabled};
727
+ }
728
+
729
+ .ft-button--secondary ft-icon {
730
+ color: ${N.secondaryIconColor};
731
+ }
732
+
733
+ /** Tertiary styles **/
734
+
735
+ .ft-button--tertiary {
736
+ ${o.setVariable(Dt.color,N.tertiaryIconColor)};
737
+
738
+ ${o.setVariable(p.color,N.tertiaryStateLayerColor)};
739
+ ${o.setVariable(p.opacityContentOnSurfaceHover,N.tertiaryStateLayerOpacityHover)};
740
+ ${o.setVariable(p.opacityContentOnSurfaceFocused,N.tertiaryStateLayerOpacityFocus)};
741
+ ${o.setVariable(p.opacityContentOnSurfaceSelected,N.tertiaryStateLayerOpacityActive)};
742
+ ${o.setVariable(p.opacityContentOnSurfacePressed,N.tertiaryStateLayerOpacityActive)};
743
+
744
+ background-color: ${N.tertiaryBackgroundColor};
745
+ color: ${N.tertiaryColor};
746
+ border-style: none;
747
+ }
748
+
749
+ .ft-button--tertiary[disabled] {
750
+ opacity: ${N.tertiaryComponentOpacityDisabled};
751
+ }
752
+
753
+ .ft-button--tertiary ft-icon {
754
+ color: ${N.tertiaryIconColor};
755
+ }
756
+
757
+ /** Neutral styles **/
758
+
759
+ .ft-button--neutral {
760
+ ${o.setVariable(Dt.color,N.neutralIconColor)};
761
+
762
+ ${o.setVariable(p.backgroundColor,N.neutralStateLayerColor)};
763
+ ${o.setVariable(p.opacityContentOnSurfaceHover,N.neutralStateLayerOpacityHover)};
764
+ ${o.setVariable(p.opacityContentOnSurfaceFocused,N.neutralStateLayerOpacityFocus)};
765
+ ${o.setVariable(p.opacityContentOnSurfaceSelected,N.neutralStateLayerOpacityActive)};
766
+ ${o.setVariable(p.opacityContentOnSurfacePressed,N.neutralStateLayerOpacityActive)};
767
+
768
+ background-color: ${N.neutralBackgroundColor};
769
+ color: ${N.neutralColor};
770
+ border-style: none;
771
+ }
772
+
773
+ .ft-button--neutral[disabled] {
774
+ opacity: ${N.neutralComponentOpacityDisabled};
775
+ }
776
+
777
+ .ft-button--neutral ft-icon {
778
+ color: ${N.neutralIconColor};
779
+ }
780
+
781
+ /** Large styles **/
782
+
783
+ .ft-button--large {
784
+ ${o.setVariable(At.size,N.largeIconSize)};
785
+ ${o.setVariable(Dt.size,N.largeIconSize)};
786
+
787
+ height: ${N.largeHeight};
788
+ padding: 0 ${N.largeHorizontalPadding};
789
+ gap: ${N.largeGap};
790
+ border-radius: ${N.largeBorderRadius};
791
+ border-width: ${N.largeBorderWidth};
792
+ }
793
+
794
+ .ft-button--large:focus-visible {
795
+ outline-width: ${N.largeFocusOutlineWidth};
796
+ outline-offset: ${N.largeFocusOutlineOffset};
797
+ }
798
+
799
+ .ft-button--large.ft-button--icon-only {
800
+ width: ${N.largeIconOnlyWidth};
801
+ padding: unset;
802
+ }
803
+
804
+ /** Small styles **/
805
+
806
+ .ft-button--small {
807
+ ${o.setVariable(At.size,N.smallIconSize)};
808
+ ${o.setVariable(Dt.size,N.smallIconSize)};
809
+
810
+ height: ${N.smallHeight};
811
+ padding: 0 ${N.smallHorizontalPadding};
812
+ gap: ${N.smallGap};
813
+ border-radius: ${N.smallBorderRadius};
814
+ border-width: ${N.smallBorderWidth};
815
+ }
816
+
817
+ .ft-button--small:focus-visible {
818
+ outline-width: ${N.smallFocusOutlineWidth};
819
+ outline-offset: ${N.smallFocusOutlineOffset};
820
+ }
821
+
822
+ .ft-button--small.ft-button--icon-only {
823
+ width: ${N.smallIconOnlyWidth};
824
+ padding: unset;
825
+ }
826
+ `,o.noTextSelect];var de=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class he extends ce{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}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&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"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}}get typographyVariant(){return this.small?jo.caption1medium:jo.body2medium}}he.styles=[o.safariEllipsisFix,fe],de([r.property({type:Boolean})],he.prototype,"primary",void 0),de([r.property({type:Boolean})],he.prototype,"secondary",void 0),de([r.property({type:Boolean})],he.prototype,"tertiary",void 0),de([r.property({type:Boolean})],he.prototype,"neutral",void 0),de([r.property({type:Boolean})],he.prototype,"small",void 0),o.customElement("ft-button")(se),o.customElement("ftds-button")(he);const ge={iconColor:o.FtCssVariableFactory.extend("--ft-floating-menu-icon-color","",o.designSystemVariables.colorOnSurfaceMedium)},ye=e.css`
600
827
  .ft-floating-menu-item {
601
828
  cursor: pointer;
602
829
  display: flex;
@@ -611,7 +838,7 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
611
838
  }
612
839
 
613
840
  .ft-floating-menu-item ft-icon {
614
- color: ${ie.iconColor};
841
+ color: ${ge.iconColor};
615
842
  margin-left: 0;
616
843
  flex-shrink: 0;
617
844
  flex-grow: 0;
@@ -626,7 +853,7 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
626
853
  word-break: break-word;
627
854
  hyphens: auto;
628
855
  }
629
- `;var oe=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ne extends CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class se extends i.FtLitElement{constructor(){super(...arguments),this.value=""}render(){return e.html`
856
+ `;var ue=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class be extends CustomEvent{constructor(t){super("select",{detail:t,bubbles:!0,composed:!0})}}class me extends o.FtLitElement{constructor(){super(...arguments),this.value=""}render(){return e.html`
630
857
  <div class="ft-floating-menu-item"
631
858
  @click=${this.onClick}>
632
859
  <ft-ripple></ft-ripple>
@@ -637,8 +864,8 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
637
864
  <slot></slot>
638
865
  </ft-typography>
639
866
  </div>
640
- `}onClick(t){this.dispatchEvent(new ne(this.value))}}se.elementDefinitions={"ft-icon":Pi,"ft-ripple":v,"ft-typography":zi},se.styles=ee,oe([o.property()],se.prototype,"iconVariant",void 0),oe([o.property()],se.prototype,"icon",void 0),oe([o.property()],se.prototype,"value",void 0);var re=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class le extends CustomEvent{constructor(){super("close-ft-floating-menu")}}class ae extends i.FtLitElement{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.iconVariant=Ri.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptions=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container),this.menuOpen||document.removeEventListener("click",this.hideOptions)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return e.html`
641
- <div class="${n.classMap(t)}">
867
+ `}onClick(t){this.dispatchEvent(new be(this.value))}}me.elementDefinitions={"ft-icon":ae,"ft-ripple":to,"ft-typography":Po},me.styles=ye,ue([r.property()],me.prototype,"iconVariant",void 0),ue([r.property()],me.prototype,"icon",void 0),ue([r.property()],me.prototype,"value",void 0);var xe=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Oe extends CustomEvent{constructor(){super("close-ft-floating-menu")}}class ve extends o.FtLitElement{constructor(){super(...arguments),this.menuOpen=!1,this.forceMenuOpen=!1,this.iconVariant=oe.fluid_topics,this.icon="SHORTCUT_MENU",this.horizontalAlignment="left",this.verticalAlignment="bottom",this.disabled=!1,this.closeMenuMatchers=[],this.hideOptions=t=>{this.menuOpen=this.menuOpen&&t.composedPath().includes(this.container),this.menuOpen||document.removeEventListener("click",this.hideOptions)}}render(){const t={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return e.html`
868
+ <div class="${i.classMap(t)}">
642
869
  <ft-button id="actions-button"
643
870
  part="button"
644
871
  dense round
@@ -663,4 +890,4 @@ const et=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===et)return null==t?void
663
890
  </div>
664
891
  </div>
665
892
  </div>
666
- `}onClick(){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(){this.closeMenu()}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){i.eventPathContainsMatchingElement(t,this.closeMenuMatchers,this)&&(this.closeMenu(),t.stopPropagation())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}contentAvailableCallback(t){super.contentAvailableCallback(t),["menuOpen"].some((i=>t.has(i)))&&this.menuOpen&&(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper())}positionMenuWrapper(){const t=this.menuContent.offsetWidth,i=this.menuContent.offsetHeight,e=this.actionButton.offsetWidth,o=this.actionButton.offsetHeight;let n=0,s=0;switch(this.menuWrapper.style.left="0",this.menuWrapper.style.top="0",this.horizontalAlignment){case"left":n=this.actionButton.offsetLeft-this.menuWrapper.offsetLeft;break;case"right":n=this.actionButton.offsetLeft+e-t-this.menuWrapper.offsetLeft;break;case"center":n=this.actionButton.offsetLeft+e/2-t/2-this.menuWrapper.offsetLeft}switch(this.verticalAlignment){case"bottom":s=this.actionButton.offsetTop+o+4-this.menuWrapper.offsetTop;break;case"top":s=this.actionButton.offsetTop-i-4-this.menuWrapper.offsetTop}const r=this.menuWrapper.style;r.left=n+"px",r.top=s+"px";const l=this.menuWrapper.getBoundingClientRect();let a=-l.x,p=l.x+l.width-window.innerWidth;r.left=n+Math.round(this.correctOutOfWindowPixels(a,p))+"px";let h=-l.y,f=l.y+l.height-window.innerHeight;r.top=s+Math.round(this.correctOutOfWindowPixels(h,f))+"px",this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}ae.elementDefinitions={"ft-button":te,"ft-floating-menu-item":se},ae.styles=l,re([o.state()],ae.prototype,"menuOpen",void 0),re([o.state()],ae.prototype,"forceMenuOpen",void 0),re([o.query(".ft-floating-menu")],ae.prototype,"container",void 0),re([o.query(".ft-floating-menu--wrapper")],ae.prototype,"menuWrapper",void 0),re([o.query("#ft-floating-menu-options")],ae.prototype,"menuContent",void 0),re([o.query("#actions-button")],ae.prototype,"actionButton",void 0),re([o.property()],ae.prototype,"label",void 0),re([o.property()],ae.prototype,"tooltipPosition",void 0),re([o.property()],ae.prototype,"iconVariant",void 0),re([o.property()],ae.prototype,"icon",void 0),re([o.property()],ae.prototype,"text",void 0),re([o.property()],ae.prototype,"horizontalAlignment",void 0),re([o.property()],ae.prototype,"verticalAlignment",void 0),re([o.property({type:Boolean})],ae.prototype,"disabled",void 0),re([i.jsonProperty([])],ae.prototype,"closeMenuMatchers",void 0),i.customElement("ft-floating-menu")(ae),i.customElement("ft-floating-menu-item")(se),t.FloatingMenuCloseEvent=le,t.FtFloatingMenu=ae,t.FtFloatingMenuCssVariables=r,t.FtFloatingMenuItem=se,t.FtFloatingMenuItemCssVariables=ie,t.FtFloatingMenuItemSelect=ne,t.itemStyles=ee,t.styles=l}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
893
+ `}onClick(){this.menuOpen=!this.menuOpen,setTimeout((()=>document.addEventListener("click",this.hideOptions)))}onClickItem(){this.closeMenu()}closeMenu(){this.menuOpen=!1}onCloseEvent(t){t.stopPropagation(),this.closeMenu()}onContentClick(t){o.eventPathContainsMatchingElement(t,this.closeMenuMatchers,this)&&(this.closeMenu(),t.stopPropagation())}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}contentAvailableCallback(t){super.contentAvailableCallback(t),["menuOpen"].some((o=>t.has(o)))&&this.menuOpen&&(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper())}positionMenuWrapper(){const t=this.menuContent.offsetWidth,o=this.menuContent.offsetHeight,e=this.actionButton.offsetWidth,r=this.actionButton.offsetHeight;let i=0,a=0;switch(this.menuWrapper.style.left="0",this.menuWrapper.style.top="0",this.horizontalAlignment){case"left":i=this.actionButton.offsetLeft-this.menuWrapper.offsetLeft;break;case"right":i=this.actionButton.offsetLeft+e-t-this.menuWrapper.offsetLeft;break;case"center":i=this.actionButton.offsetLeft+e/2-t/2-this.menuWrapper.offsetLeft}switch(this.verticalAlignment){case"bottom":a=this.actionButton.offsetTop+r+4-this.menuWrapper.offsetTop;break;case"top":a=this.actionButton.offsetTop-o-4-this.menuWrapper.offsetTop}const n=this.menuWrapper.style;n.left=i+"px",n.top=a+"px";const l=this.menuWrapper.getBoundingClientRect();let c=-l.x,p=l.x+l.width-window.innerWidth;n.left=i+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let s=-l.y,f=l.y+l.height-window.innerHeight;n.top=a+Math.round(this.correctOutOfWindowPixels(s,f))+"px",this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}ve.elementDefinitions={"ft-button":se,"ft-floating-menu-item":me},ve.styles=l,xe([r.state()],ve.prototype,"menuOpen",void 0),xe([r.state()],ve.prototype,"forceMenuOpen",void 0),xe([r.query(".ft-floating-menu")],ve.prototype,"container",void 0),xe([r.query(".ft-floating-menu--wrapper")],ve.prototype,"menuWrapper",void 0),xe([r.query("#ft-floating-menu-options")],ve.prototype,"menuContent",void 0),xe([r.query("#actions-button")],ve.prototype,"actionButton",void 0),xe([r.property()],ve.prototype,"label",void 0),xe([r.property()],ve.prototype,"tooltipPosition",void 0),xe([r.property()],ve.prototype,"iconVariant",void 0),xe([r.property()],ve.prototype,"icon",void 0),xe([r.property()],ve.prototype,"text",void 0),xe([r.property()],ve.prototype,"horizontalAlignment",void 0),xe([r.property()],ve.prototype,"verticalAlignment",void 0),xe([r.property({type:Boolean})],ve.prototype,"disabled",void 0),xe([o.jsonProperty([])],ve.prototype,"closeMenuMatchers",void 0),o.customElement("ft-floating-menu")(ve),o.customElement("ft-floating-menu-item")(me),t.FloatingMenuCloseEvent=Oe,t.FtFloatingMenu=ve,t.FtFloatingMenuCssVariables=n,t.FtFloatingMenuItem=me,t.FtFloatingMenuItemCssVariables=ge,t.FtFloatingMenuItemSelect=be,t.itemStyles=ye,t.styles=l}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);