@fluid-topics/ft-file-drop 1.0.58 → 1.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-file-drop.css.js +9 -9
- package/build/ft-file-drop.light.js +459 -234
- package/build/ft-file-drop.min.js +501 -276
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,
|
|
1
|
+
!function(t,o,e,i,r,a){const n=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorContent),l={color:n,backgroundColor:o.FtCssVariableFactory.extend("--ft-ripple-background-color","",n),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")},c=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorPrimary),p=c,s=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",c),f=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorSecondary),d=f,h=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",f),g=e.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -53,15 +53,15 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
56
|
-
background-color: ${
|
|
56
|
+
background-color: ${h};
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
60
|
-
background-color: ${
|
|
60
|
+
background-color: ${d};
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
64
|
-
background-color: ${
|
|
64
|
+
background-color: ${s};
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
@@ -110,126 +110,133 @@
|
|
|
110
110
|
opacity: ${l.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`;var
|
|
113
|
+
`;var y,b=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class u 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:i,y:r}=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!=i?i-a.x:a.width/2),this.originY=Math.round(null!=r?r-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`
|
|
114
114
|
<style>
|
|
115
115
|
.ft-ripple .ft-ripple--effect {
|
|
116
116
|
left: ${this.originX}px;
|
|
117
117
|
top: ${this.originY}px;
|
|
118
118
|
}
|
|
119
119
|
</style>
|
|
120
|
-
<div class="${
|
|
120
|
+
<div class="${r.classMap(t)}">
|
|
121
121
|
<div class="ft-ripple--background"></div>
|
|
122
122
|
<div class="ft-ripple--effect"></div>
|
|
123
123
|
</div>
|
|
124
|
-
`}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=u,x([o.property({type:Boolean})],v.prototype,"primary",void 0),x([o.property({type:Boolean})],v.prototype,"secondary",void 0),x([o.property({type:Boolean})],v.prototype,"unbounded",void 0),x([o.property({type:Boolean})],v.prototype,"activated",void 0),x([o.property({type:Boolean})],v.prototype,"selected",void 0),x([o.property({type:Boolean})],v.prototype,"disabled",void 0),x([o.state()],v.prototype,"hovered",void 0),x([o.state()],v.prototype,"focused",void 0),x([o.state()],v.prototype,"pressed",void 0),x([o.state()],v.prototype,"rippling",void 0),x([o.state()],v.prototype,"originX",void 0),x([o.state()],v.prototype,"originY",void 0),x([o.query(".ft-ripple")],v.prototype,"ripple",void 0),x([o.query(".ft-ripple--effect")],v.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(v);const b=window,y=b.trustedTypes,m=y?y.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",w=`lit$${(Math.random()+"").slice(9)}$`,k="?"+w,z=`<${k}>`,S=document,C=()=>S.createComment(""),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,I=Array.isArray,O="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,B=/-->/g,N=/>/g,T=RegExp(`>|${O}(?:([^\\s"'>=/]+)(${O}*=${O}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,A=/"/g,F=/^(?:script|style|textarea|title)$/i,M=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),U=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),D=new WeakMap,R=S.createTreeWalker(S,129,null,!1),W=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=j;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(s.lastIndex=h,a=s.exec(e),null!==a);)h=s.lastIndex,s===j?"!--"===a[1]?s=B:void 0!==a[1]?s=N:void 0!==a[2]?(F.test(a[2])&&(n=RegExp("</"+a[2],"g")),s=T):void 0!==a[3]&&(s=T):s===T?">"===a[0]?(s=null!=n?n:j,p=-1):void 0===a[1]?p=-2:(p=s.lastIndex-a[2].length,l=a[1],s=void 0===a[3]?T:'"'===a[3]?A:Z):s===A||s===Z?s=T:s===B||s===N?s=j:(s=T,n=void 0);const f=s===T&&t[i+1].startsWith("/>")?" ":"";r+=s===j?e+z:p>=0?(o.push(l),e.slice(0,p)+$+e.slice(p)+w+f):e+w+(-2===p?(o.push(void 0),i):f)}const l=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(l):l,o]};class L{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,l=this.parts,[a,p]=W(t,i);if(this.el=L.createElement(a,e),R.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=R.nextNode())&&l.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith($)||i.startsWith(w)){const e=p[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+$).split(w),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?V:"?"===i[1]?X:"@"===i[1]?Y:G})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(F.test(o.tagName)){const t=o.textContent.split(w),i=t.length-1;if(i>0){o.textContent=y?y.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],C()),R.nextNode(),l.push({type:2,index:++n});o.append(t[i],C())}}}else if(8===o.nodeType)if(o.data===k)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(w,t+1));)l.push({type:7,index:n}),t+=w.length-1}n++}}static createElement(t,i){const e=S.createElement("template");return e.innerHTML=t,e}}function H(t,i,e=t,o){var n,r,s,l;if(i===U)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=E(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(s=(l=e)._$Co)&&void 0!==s?s:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=H(t,a._$AS(t,i.values),a,o)),i}class P{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:S).importNode(e,!0);R.currentNode=n;let r=R.nextNode(),s=0,l=0,a=o[0];for(;void 0!==a;){if(s===a.index){let i;2===a.type?i=new K(r,r.nextSibling,this,t):1===a.type?i=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(i=new J(r,this,t)),this._$AV.push(i),a=o[++l]}s!==(null==a?void 0:a.index)&&(r=R.nextNode(),s++)}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 K{constructor(t,i,e,o){var n;this.type=2,this._$AH=_,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=H(this,t,i),E(t)?t===_||null==t||""===t?(this._$AH!==_&&this._$AR(),this._$AH=_):t!==this._$AH&&t!==U&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>I(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!==_&&E(this._$AH)?this._$AA.nextSibling.data=t:this.$(S.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=L.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 P(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 L(t)),i}T(t){I(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 K(this.k(C()),this.k(C()),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 G{constructor(t,i,e,o,n){this.type=1,this._$AH=_,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=_}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=H(this,t,i,0),r=!E(t)||t!==this._$AH&&t!==U,r&&(this._$AH=t);else{const o=t;let s,l;for(t=n[0],s=0;s<n.length-1;s++)l=H(this,o[e+s],i,s),l===U&&(l=this._$AH[s]),r||(r=!E(l)||l!==this._$AH[s]),l===_?t=_:t!==_&&(t+=(null!=l?l:"")+n[s+1]),this._$AH[s]=l}r&&!o&&this.j(t)}j(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===_?void 0:t}}const q=y?y.emptyScript:"";class X extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==_?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Y extends G{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=H(this,t,i,0))&&void 0!==e?e:_)===U)return;const o=this._$AH,n=t===_&&o!==_||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==_&&(o===_||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 J{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){H(this,t)}}const Q=b.litHtmlPolyfillSupport;null==Q||Q(L,K),(null!==(g=b.litHtmlVersions)&&void 0!==g?g:b.litHtmlVersions=[]).push("2.7.3");
|
|
124
|
+
`}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"),i=o("touchend","touchcancel"),r=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",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),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",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),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 i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}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()}}u.elementDefinitions={},u.styles=g,b([i.property({type:Boolean})],u.prototype,"primary",void 0),b([i.property({type:Boolean})],u.prototype,"secondary",void 0),b([i.property({type:Boolean})],u.prototype,"unbounded",void 0),b([i.property({type:Boolean})],u.prototype,"activated",void 0),b([i.property({type:Boolean})],u.prototype,"selected",void 0),b([i.property({type:Boolean})],u.prototype,"disabled",void 0),b([i.state()],u.prototype,"hovered",void 0),b([i.state()],u.prototype,"focused",void 0),b([i.state()],u.prototype,"pressed",void 0),b([i.state()],u.prototype,"rippling",void 0),b([i.state()],u.prototype,"originX",void 0),b([i.state()],u.prototype,"originY",void 0),b([i.query(".ft-ripple")],u.prototype,"ripple",void 0),b([i.query(".ft-ripple--effect")],u.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(u);const m=window,x=m.trustedTypes,O=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,v="$lit$",N=`lit$${(Math.random()+"").slice(9)}$`,S="?"+N,$=`<${S}>`,C=document,w=()=>C.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,U="[ \t\n\f\r]",R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,E=/>/g,L=RegExp(`>|${U}(?:([^\\s"'>=/]+)(${U}*=${U}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),z=/'/g,Z=/"/g,K=/^(?:script|style|textarea|title)$/i,B=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),F=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),H=new WeakMap,A=C.createTreeWalker(C,129,null,!1),G=(t,o)=>{const e=t.length-1,i=[];let r,a=2===o?"<svg>":"",n=R;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===R?"!--"===c[1]?n=W:void 0!==c[1]?n=E:void 0!==c[2]?(K.test(c[2])&&(r=RegExp("</"+c[2],"g")),n=L):void 0!==c[3]&&(n=L):n===L?">"===c[0]?(n=null!=r?r:R,p=-1):void 0===c[1]?p=-2:(p=n.lastIndex-c[2].length,l=c[1],n=void 0===c[3]?L:'"'===c[3]?Z:z):n===Z||n===z?n=L:n===W||n===E?n=R:(n=L,r=void 0);const f=n===L&&t[o+1].startsWith("/>")?" ":"";a+=n===R?e+$:p>=0?(i.push(l),e.slice(0,p)+v+e.slice(p)+N+f):e+N+(-2===p?(i.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!==O?O.createHTML(l):l,i]};class j{constructor({strings:t,_$litType$:o},e){let i;this.parts=[];let r=0,a=0;const n=t.length-1,l=this.parts,[c,p]=G(t,o);if(this.el=j.createElement(c,e),A.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(i=A.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const o of i.getAttributeNames())if(o.endsWith(v)||o.startsWith(N)){const e=p[a++];if(t.push(o),void 0!==e){const t=i.getAttribute(e.toLowerCase()+v).split(N),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:r,name:o[2],strings:t,ctor:"."===o[1]?Y:"?"===o[1]?q:"@"===o[1]?X:_})}else l.push({type:6,index:r})}for(const o of t)i.removeAttribute(o)}if(K.test(i.tagName)){const t=i.textContent.split(N),o=t.length-1;if(o>0){i.textContent=x?x.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],w()),A.nextNode(),l.push({type:2,index:++r});i.append(t[o],w())}}}else if(8===i.nodeType)if(i.data===S)l.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(N,t+1));)l.push({type:7,index:r}),t+=N.length-1}r++}}static createElement(t,o){const e=C.createElement("template");return e.innerHTML=t,e}}function P(t,o,e=t,i){var r,a,n,l;if(o===F)return o;let c=void 0!==i?null===(r=e._$Co)||void 0===r?void 0:r[i]:e._$Cl;const p=I(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,i)),void 0!==i?(null!==(n=(l=e)._$Co)&&void 0!==n?n:l._$Co=[])[i]=c:e._$Cl=c),void 0!==c&&(o=P(t,c._$AS(t,o.values),c,i)),o}class M{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:i}=this._$AD,r=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:C).importNode(e,!0);A.currentNode=r;let a=A.nextNode(),n=0,l=0,c=i[0];for(;void 0!==c;){if(n===c.index){let o;2===c.type?o=new T(a,a.nextSibling,this,t):1===c.type?o=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(o=new J(a,this,t)),this._$AV.push(o),c=i[++l]}n!==(null==c?void 0:c.index)&&(a=A.nextNode(),n++)}return r}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 T{constructor(t,o,e,i){var r;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cp=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}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=P(this,t,o),I(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==F&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>k(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!==D&&I(this._$AH)?this._$AA.nextSibling.data=t:this.$(C.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=j.createElement(i.h,this.options)),i);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===r)this._$AH.v(e);else{const t=new M(r,this),o=t.u(this.options);t.v(e),this.$(o),this._$AH=t}}_$AC(t){let o=H.get(t.strings);return void 0===o&&H.set(t.strings,o=new j(t)),o}T(t){k(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,i=0;for(const r of t)i===o.length?o.push(e=new T(this.k(w()),this.k(w()),this,this.options)):e=o[i],e._$AI(r),i++;i<o.length&&(this._$AR(e&&e._$AB.nextSibling,i),o.length=i)}_$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 _{constructor(t,o,e,i,r){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,e,i){const r=this.strings;let a=!1;if(void 0===r)t=P(this,t,o,0),a=!I(t)||t!==this._$AH&&t!==F,a&&(this._$AH=t);else{const i=t;let n,l;for(t=r[0],n=0;n<r.length-1;n++)l=P(this,i[e+n],o,n),l===F&&(l=this._$AH[n]),a||(a=!I(l)||l!==this._$AH[n]),l===D?t=D:t!==D&&(t+=(null!=l?l:"")+r[n+1]),this._$AH[n]=l}a&&!i&&this.j(t)}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends _{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===D?void 0:t}}const V=x?x.emptyScript:"";class q extends _{constructor(){super(...arguments),this.type=4}j(t){t&&t!==D?this.element.setAttribute(this.name,V):this.element.removeAttribute(this.name)}}class X extends _{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){var e;if((t=null!==(e=P(this,t,o,0))&&void 0!==e?e:D)===F)return;const i=this._$AH,r=t===D&&i!==D||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==D&&(i===D||r);r&&this.element.removeEventListener(this.name,this,i),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 J{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){P(this,t)}}const Q=m.litHtmlPolyfillSupport;null==Q||Q(j,T),(null!==(y=m.litHtmlVersions)&&void 0!==y?y:m.litHtmlVersions=[]).push("2.7.3");
|
|
125
125
|
/**
|
|
126
126
|
* @license
|
|
127
127
|
* Copyright 2020 Google LLC
|
|
128
128
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
129
129
|
*/
|
|
130
|
-
const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void 0:t._$litStatic$},et=t=>({_$litStatic$:t,r:tt}),ot=new Map,nt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(r=e[p],n=it(r));)a+=n+i[++p],h=!0;p!==o&&l.push(r),s.push(a),p++}if(p===o&&s.push(i[o]),h){const t=s.join("$$lit$$");void 0===(i=ot.get(t))&&(s.raw=s,ot.set(t,i=s)),e=l}return t(i,...e)})(M);var rt;!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"}(rt||(rt={}));const st=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),lt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),at={fontFamily:lt,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")},pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",st),ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",at.fontSize,"20px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",at.fontWeight,"normal"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",at.letterSpacing,"0.15px"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",at.lineHeight,"1.2"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",at.textTransform,"inherit"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",st),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",at.fontSize,"14px"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",at.fontWeight,"normal"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",at.letterSpacing,"0.105px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",at.lineHeight,"1.7"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",at.textTransform,"inherit"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",lt),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",at.fontSize,"16px"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",at.fontWeight,"600"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",at.letterSpacing,"0.144px"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",at.lineHeight,"1.5"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",at.textTransform,"inherit"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",lt),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",at.fontSize,"14px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",at.fontWeight,"normal"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",at.letterSpacing,"0.098px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",at.lineHeight,"1.7"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",at.textTransform,"inherit"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",lt),Zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",at.fontSize,"16px"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",at.fontWeight,"normal"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",at.letterSpacing,"0.496px"),Mt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",at.lineHeight,"1.5"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",at.textTransform,"inherit"),_t={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",lt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",at.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",at.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",at.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",at.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",at.textTransform,"inherit")},Dt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",lt),Rt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",at.fontSize,"12px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",at.fontWeight,"normal"),Lt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",at.letterSpacing,"0.396px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",at.lineHeight,"1.33"),Pt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",at.textTransform,"inherit"),Kt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",lt),Gt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",at.fontSize,"10px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",at.fontWeight,"normal"),qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",at.letterSpacing,"0.33px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",at.lineHeight,"1.6"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",at.textTransform,"inherit"),Jt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",lt),Qt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",at.fontSize,"10px"),ti=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",at.fontWeight,"normal"),ii=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",at.letterSpacing,"1.5px"),ei=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",at.lineHeight,"1.6"),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",at.textTransform,"uppercase"),ni={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",lt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",at.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",at.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",at.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",at.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",at.textTransform,"uppercase")},ri=e.css`
|
|
130
|
+
const tt=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===tt)return null==t?void 0:t._$litStatic$},et=t=>({_$litStatic$:t,r:tt}),it=new Map,rt=(t=>(o,...e)=>{const i=e.length;let r,a;const n=[],l=[];let c,p=0,s=!1;for(;p<i;){for(c=o[p];p<i&&void 0!==(a=e[p],r=ot(a));)c+=r+o[++p],s=!0;p!==i&&l.push(a),n.push(c),p++}if(p===i&&n.push(o[i]),s){const t=n.join("$$lit$$");void 0===(o=it.get(t))&&(n.raw=n,it.set(t,o=n)),e=l}return t(o,...e)})(B);var at;!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"}(at||(at={}));const nt=t=>"string"==typeof t?e.unsafeCSS(t):t;class lt{static create(t,o,i,r){const a=t=>nt(null!=t?t:r),n=e.css`var(${nt(t)}, ${a(r)})`;return n.name=t,n.description=t,n.category=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${nt(t)}, ${a(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,o,i,r){const a=t=>i.get(null!=t?t:r),n=e.css`var(${nt(t)}, ${a(r)})`;return n.name=t,n.description=o,n.category=i.category,n.fallbackVariable=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${nt(t)}, ${a(o)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),n}static external(t,o){const i=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):nt(null!=o?o:t.lastResortDefaultValue()),r=e.css`var(${nt(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=i,r.get=o=>e.css`var(${nt(t.name)}, ${i(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const ct={colorWhite:lt.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:lt.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:lt.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:lt.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:lt.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:lt.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:lt.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:lt.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:lt.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:lt.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:lt.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:lt.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:lt.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:lt.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:lt.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:lt.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:lt.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:lt.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:lt.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:lt.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:lt.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:lt.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:lt.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:lt.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:lt.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:lt.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:lt.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:lt.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:lt.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:lt.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:lt.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:lt.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:lt.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:lt.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:lt.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:lt.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:lt.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:lt.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:lt.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:lt.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:lt.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:lt.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:lt.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:lt.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:lt.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:lt.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:lt.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:lt.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:lt.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:lt.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:lt.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:lt.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:lt.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:lt.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:lt.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:lt.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:lt.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:lt.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:lt.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:lt.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:lt.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:lt.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:lt.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:lt.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:lt.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:lt.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:lt.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:lt.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:lt.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:lt.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:lt.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:lt.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:lt.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:lt.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:lt.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:lt.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:lt.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:lt.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:lt.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:lt.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:lt.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:lt.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:lt.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:lt.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:lt.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:lt.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:lt.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:lt.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:lt.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:lt.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:lt.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:lt.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:lt.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:lt.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:lt.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:lt.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:lt.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:lt.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:lt.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:lt.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:lt.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:lt.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:lt.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:lt.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:lt.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:lt.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:lt.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:lt.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:lt.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:lt.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:lt.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:lt.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:lt.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:lt.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:lt.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:lt.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:lt.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:lt.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:lt.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:lt.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:lt.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:lt.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:lt.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:lt.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:lt.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:lt.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:lt.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:lt.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:lt.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:lt.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:lt.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:lt.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:lt.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:lt.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:lt.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:lt.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:lt.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:lt.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:lt.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:lt.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:lt.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:lt.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:lt.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:lt.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:lt.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:lt.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:lt.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:lt.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:lt.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:lt.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:lt.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:lt.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:lt.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:lt.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:lt.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:lt.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:lt.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:lt.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:lt.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:lt.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:lt.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:lt.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:lt.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:lt.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:lt.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:lt.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:lt.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:lt.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:lt.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:lt.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:lt.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:lt.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:lt.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:lt.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:lt.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:lt.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:lt.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:lt.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:lt.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:lt.create("--ft-icon-size-6","","SIZE","48px"),opacity0:lt.create("--ft-opacity-0","","NUMBER","0"),opacity8:lt.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:lt.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:lt.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:lt.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:lt.create("--ft-opacity-80","","NUMBER","0.8")},pt={display:{fontFamily:lt.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:lt.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:lt.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:lt.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:lt.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:lt.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:lt.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:lt.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:lt.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:lt.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:lt.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:lt.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:lt.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:lt.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:lt.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:lt.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:lt.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:lt.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:lt.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:lt.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:lt.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:lt.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:lt.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:lt.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:lt.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:lt.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:lt.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:lt.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:lt.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:lt.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:lt.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:lt.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:lt.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:lt.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:lt.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:lt.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:lt.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:lt.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:lt.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:lt.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:lt.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:lt.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:lt.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:lt.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:lt.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:lt.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:lt.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:lt.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:lt.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:lt.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:lt.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:lt.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:lt.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:lt.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:lt.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:lt.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:lt.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:lt.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:lt.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:lt.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:lt.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:lt.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:lt.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:lt.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:lt.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:lt.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:lt.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:lt.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:lt.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:lt.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:lt.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:lt.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:lt.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:lt.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:lt.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:lt.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:lt.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:lt.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:lt.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:lt.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:lt.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:lt.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:lt.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:lt.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:lt.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:lt.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:lt.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:lt.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:lt.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:lt.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:lt.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:lt.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:lt.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:lt.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:lt.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:lt.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:lt.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:lt.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:lt.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:lt.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:lt.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:lt.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:lt.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:lt.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:lt.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:lt.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:lt.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:lt.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:lt.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:lt.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:lt.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:lt.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},st={backgroundActionPrimary:lt.extend("--ft-background-action-primary","Used as backgorund of primary action components.",ct.colorBrand0),backgroundErrorPrimary:lt.extend("--ft-background-error-primary","Used as background of error components.",ct.colorRed0),backgroundErrorSubtle:lt.extend("--ft-background-error-subtle","Used as background of subtle error components.",ct.colorRed10),backgroundInfoPrimary:lt.extend("--ft-background-info-primary","Used as background of information components.",ct.colorCyan200),backgroundInfoSubtle:lt.extend("--ft-background-info-subtle","Used as background of subtle information components.",ct.colorCyan10),backgroundWarningPrimary:lt.extend("--ft-background-warning-primary","Used as background of warning components.",ct.colorOrange300),backgroundWarningSubtle:lt.extend("--ft-background-warning-subtle","Used as background of subtle information components.",ct.colorOrange10),backgroundSuccessPrimary:lt.extend("--ft-background-success-primary","Used as background of success components.",ct.colorGreen200),backgroundSuccessSubtle:lt.extend("--ft-background-success-subtle","Used as background of subtle success components.",ct.colorGreen10),backgroundGlobalSurface:lt.extend("--ft-background-global-surface","Used as app background.",ct.colorWhite),backgroundGlobalOnSurface:lt.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",ct.colorGray10),backgroundGlobalOnSurfaceDark:lt.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",ct.colorGray30),contentActionPrimary:lt.extend("--ft-content-action-primary","Used on label of primary action on light surface.",ct.colorBrand0),contentWarningPrimary:lt.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",ct.colorOrange300),contentWarningIconOnly:lt.extend("--ft-content-warning-icon-only","Used on warning status icons alone",ct.colorOrange0),contentErrorPrimary:lt.extend("--ft-content-error-primary","Used on label of error messages on light surface.",ct.colorRed0),contentErrorIconOnly:lt.extend("--ft-content-error-icon-only","Used on error status icons alone",ct.colorRed0),contentInfoPrimary:lt.extend("--ft-content-info-primary","Used on label of information messages on light surface.",ct.colorCyan200),contentInfoIconOnly:lt.extend("--ft-content-info-icon-only","Used on info status icons alone",ct.colorCyan0),contentSuccessIconOnly:lt.extend("--ft-content-success-icon-only","Used on success status icons alone",ct.colorGreen0),contentSuccessPrimary:lt.extend("--ft-content-success-primary","Used on label of success messages on light surface.",ct.colorGreen200),contentGlobalPrimary:lt.extend("--ft-content-global-primary","Used for main content on the page.",ct.colorGray500),contentGlobalSecondary:lt.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",ct.colorGray200),contentGlobalSubtle:lt.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",ct.colorGray0),contentGlobalOnColor:lt.extend("--ft-content-global-on-color","Used for content on a dominant color.",ct.colorWhite),borderActionPrimary:lt.extend("--ft-border-action-primary","Used as border for primary action components.",ct.colorBrand0),borderActionFocusRing:lt.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",ct.colorCyan0),borderWarningPrimary:lt.extend("--ft-border-warning-primary","Used as border for warning components.",ct.colorOrange30),borderSuccessPrimary:lt.extend("--ft-border-success-primary","Used as border for success components.",ct.colorGreen30),borderErrorPrimary:lt.extend("--ft-border-error-primary","Used as border for error components.",ct.colorRed30),borderInfoPrimary:lt.extend("--ft-border-info-primary","Used as border for information components.",ct.colorCyan30),borderGlobalSubtle:lt.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",ct.colorGray30),borderGlobalPrimary:lt.extend("--ft-border-global-primary","Used as border for element like input.",ct.colorGray50),borderInputPrimary:lt.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",ct.colorGray80)},ft={largeHeight:lt.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:lt.extend("--ft-button-large-horizontal-padding","",ct.spacing4),largeGap:lt.extend("--ft-button-large-gap","",ct.spacing2),largeBorderRadius:lt.extend("--ft-button-large-border-radius","",ct.borderRadiusS),largeIconSize:lt.extend("--ft-button-large-icon-size","",ct.iconSize3),largeBorderWidth:lt.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:lt.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:lt.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:lt.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:lt.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:lt.extend("--ft-button-small-horizontal-padding","",ct.spacing3),smallGap:lt.extend("--ft-button-small-gap","",ct.spacing2),smallBorderRadius:lt.extend("--ft-button-small-border-radius","",ct.borderRadiusS),smallIconSize:lt.extend("--ft-button-small-icon-size","",ct.iconSize2),smallBorderWidth:lt.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:lt.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:lt.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:lt.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:lt.extend("--ft-button-primary-background-color","",st.backgroundActionPrimary),primaryColor:lt.extend("--ft-button-primary-color","",st.contentGlobalOnColor),primaryIconColor:lt.extend("--ft-button-primary-icon-color","",st.contentGlobalOnColor),primaryStateLayerColor:lt.extend("--ft-button-primary-state-layer-color","",st.contentGlobalOnColor),primaryStateLayerOpacityHover:lt.extend("--ft-button-primary-state-layer-opacity-hover","",ct.opacity16),primaryStateLayerOpacityFocus:lt.extend("--ft-button-primary-state-layer-opacity-focus","",ct.opacity16),primaryStateLayerOpacityActive:lt.extend("--ft-button-primary-state-layer-opacity-active","",ct.opacity24),primaryComponentOpacityDisabled:lt.extend("--ft-button-primary-component-opacity-disabled","",ct.opacity40),focusFocusRingColor:lt.extend("--ft-button-focus-focus-ring-color","",st.borderActionFocusRing),tertiaryBackgroundColor:lt.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:lt.extend("--ft-button-tertiary-color","",st.contentActionPrimary),tertiaryIconColor:lt.extend("--ft-button-tertiary-icon-color","",st.contentActionPrimary),tertiaryStateLayerColor:lt.extend("--ft-button-tertiary-state-layer-color","",st.contentActionPrimary),tertiaryStateLayerOpacityHover:lt.extend("--ft-button-tertiary-state-layer-opacity-hover","",ct.opacity8),tertiaryStateLayerOpacityFocus:lt.extend("--ft-button-tertiary-state-layer-opacity-focus","",ct.opacity8),tertiaryStateLayerOpacityActive:lt.extend("--ft-button-tertiary-state-layer-opacity-active","",ct.opacity16),tertiaryComponentOpacityDisabled:lt.extend("--ft-button-tertiary-component-opacity-disabled","",ct.opacity40),secondaryBackgroundColor:lt.extend("--ft-button-secondary-background-color","",ct.colorWhite),secondaryColor:lt.extend("--ft-button-secondary-color","",st.contentActionPrimary),secondaryIconColor:lt.extend("--ft-button-secondary-icon-color","",st.contentActionPrimary),secondaryStateLayerColor:lt.extend("--ft-button-secondary-state-layer-color","",st.contentActionPrimary),secondaryStateLayerOpacityHover:lt.extend("--ft-button-secondary-state-layer-opacity-hover","",ct.opacity8),secondaryStateLayerOpacityFocus:lt.extend("--ft-button-secondary-state-layer-opacity-focus","",ct.opacity8),secondaryStateLayerOpacityActive:lt.extend("--ft-button-secondary-state-layer-opacity-active","",ct.opacity16),secondaryComponentOpacityDisabled:lt.extend("--ft-button-secondary-component-opacity-disabled","",ct.opacity40),secondaryBorderColor:lt.extend("--ft-button-secondary-border-color","",st.borderActionPrimary),neutralBackgroundColor:lt.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:lt.extend("--ft-button-neutral-icon-color","",st.contentGlobalSecondary),neutralColor:lt.extend("--ft-button-neutral-color","",st.contentGlobalSecondary),neutralStateLayerColor:lt.extend("--ft-button-neutral-state-layer-color","",st.contentGlobalSecondary),neutralStateLayerOpacityHover:lt.extend("--ft-button-neutral-state-layer-opacity-hover","",ct.opacity8),neutralStateLayerOpacityFocus:lt.extend("--ft-button-neutral-state-layer-opacity-focus","",ct.opacity8),neutralStateLayerOpacityActive:lt.extend("--ft-button-neutral-state-layer-opacity-active","",ct.opacity16),neutralComponentOpacityDisabled:lt.extend("--ft-button-neutral-component-opacity-disabled","",ct.opacity40)};lt.extend("--ft-tabs-top-left-border-radius","",ct.borderRadiusS),lt.extend("--ft-tabs-top-right-border-radius","",ct.borderRadiusS),lt.extend("--ft-tabs-label-horizontal-padding","",ct.spacing4),lt.extend("--ft-tabs-label-vertical-padding","",ct.spacing3),lt.extend("--ft-tabs-label-gap","",ct.spacing1),lt.extend("--ft-switch-group-horizontal-padding","",ct.spacing1),lt.extend("--ft-switch-group-vertical-padding","",ct.spacing1),lt.extend("--ft-switch-group-gap","",ct.spacing1),lt.extend("--ft-switch-group-background-color","",st.backgroundGlobalSurface),lt.extend("--ft-switch-group-border-color","",st.borderGlobalSubtle),lt.create("--ft-switch-group-border-radius","","SIZE","6px"),lt.extend("--ft-switch-label-horizontal-padding","",ct.spacing2),lt.extend("--ft-switch-label-vertical-padding","",ct.spacing1),lt.extend("--ft-switch-icon-horizontal-padding","",ct.spacing1),lt.extend("--ft-switch-icon-vertical-padding","",ct.spacing1),lt.create("--ft-switch-focus-outline-width","","SIZE","2px"),lt.extend("--ft-switch-focus-focus-ring-color","",st.borderActionFocusRing),lt.extend("--ft-switch-option-border-radius","",ct.borderRadiusS),lt.extend("--ft-switch-off-state-layer-opacity-hover","",ct.opacity8),lt.extend("--ft-switch-off-state-layer-opacity-focus","",ct.opacity8),lt.extend("--ft-switch-off-state-layer-opacity-active","",ct.opacity16),lt.extend("--ft-switch-off-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-switch-off-color","",st.contentGlobalSubtle),lt.extend("--ft-switch-off-state-layer-color","",st.contentGlobalSubtle),lt.extend("--ft-chart-1-light","for area color charts",ct.colorBrand40),lt.extend("--ft-chart-1-base","for line charts",ct.colorBrand0),lt.extend("--ft-chart-2-light","for area color charts",ct.colorYellow60),lt.extend("--ft-chart-2-base","for line charts",ct.colorYellow100),lt.extend("--ft-chart-3-light","",ct.colorUltramarine40),lt.extend("--ft-chart-3-base","",ct.colorUltramarine70),lt.extend("--ft-chart-4-light","",ct.colorCyan50),lt.extend("--ft-chart-4-base","",ct.colorCyan100),lt.extend("--ft-chart-5-light","",ct.colorRed40),lt.extend("--ft-chart-5-base","",ct.colorRed60),lt.extend("--ft-chart-6-light","",ct.colorGreen40),lt.extend("--ft-chart-6-base","",ct.colorGreen70),lt.extend("--ft-chart-7-light","",ct.colorOrange70),lt.extend("--ft-chart-7-base","",ct.colorOrange100),lt.extend("--ft-chart-8-light","",ct.colorAvocado70),lt.extend("--ft-chart-8-base","",ct.colorAvocado200),lt.extend("--ft-chart-9-light","",ct.colorBrown50),lt.extend("--ft-chart-9-base","",ct.colorBrown200),lt.extend("--ft-chart-10-light","",ct.colorGray50),lt.extend("--ft-chart-10-base","",ct.colorGray80),lt.extend("--ft-chart-monochrome-10","",ct.colorBrand10),lt.extend("--ft-chart-monochrome-20","",ct.colorBrand20),lt.extend("--ft-chart-monochrome-30","",ct.colorBrand40),lt.extend("--ft-chart-monochrome-40","",ct.colorBrand60),lt.extend("--ft-chart-monochrome-50","",ct.colorBrand0),lt.extend("--ft-chart-monochrome-60","",ct.colorBrand200),lt.extend("--ft-chip-large-horizontal-padding","",ct.spacing4),lt.extend("--ft-chip-large-vertical-padding","",ct.spacing2),lt.extend("--ft-chip-large-gap","",ct.spacing1),lt.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),lt.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),lt.extend("--ft-chip-large-border-radius","",ct.borderRadiusPill),lt.create("--ft-chip-large-border-width","","SIZE","1px"),lt.extend("--ft-chip-large-icon-size","",ct.iconSize3),lt.extend("--ft-chip-medium-horizontal-padding","",ct.spacing3),lt.extend("--ft-chip-medium-vertical-padding","",ct.spacing1),lt.extend("--ft-chip-medium-gap","",ct.spacing1),lt.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),lt.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),lt.extend("--ft-chip-medium-border-radius","",ct.borderRadiusPill),lt.create("--ft-chip-medium-border-width","","SIZE","1px"),lt.extend("--ft-chip-medium-icon-size","",ct.iconSize2),lt.extend("--ft-chip-small-horizontal-padding","",ct.spacing2),lt.extend("--ft-chip-small-vertical-padding","",ct.spacing05),lt.extend("--ft-chip-small-gap","",ct.spacing1),lt.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),lt.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),lt.extend("--ft-chip-small-border-radius","",ct.borderRadiusPill),lt.create("--ft-chip-small-border-width","","SIZE","1px"),lt.extend("--ft-chip-small-icon-size","",ct.iconSize1),lt.extend("--ft-chip-neutral-background-color","",st.backgroundGlobalOnSurface),lt.extend("--ft-chip-neutral-color","",st.contentGlobalPrimary),lt.extend("--ft-chip-neutral-border-color","",st.borderGlobalSubtle),lt.extend("--ft-chip-info-background-color","",st.backgroundInfoSubtle),lt.extend("--ft-chip-info-color","",st.contentInfoPrimary),lt.extend("--ft-chip-info-border-color","",st.borderInfoPrimary),lt.extend("--ft-chip-success-background-color","",st.backgroundSuccessSubtle),lt.extend("--ft-chip-success-color","",st.contentSuccessPrimary),lt.extend("--ft-chip-success-border-color","",st.borderSuccessPrimary),lt.extend("--ft-chip-warning-background-color","",st.backgroundWarningSubtle),lt.extend("--ft-chip-warning-color","",st.contentWarningPrimary),lt.extend("--ft-chip-warning-border-color","",st.borderWarningPrimary),lt.extend("--ft-chip-error-background-color","",st.backgroundErrorSubtle),lt.extend("--ft-chip-error-color","",st.contentErrorPrimary),lt.extend("--ft-chip-error-border-color","",st.borderErrorPrimary),lt.create("--ft-notice-border-width","","SIZE","1px"),lt.extend("--ft-notice-horizontal-padding","",ct.spacing2),lt.extend("--ft-notice-vertical-padding","",ct.spacing1),lt.extend("--ft-notice-border-radius","",ct.borderRadiusS),lt.extend("--ft-notice-gap","",ct.spacing2),lt.extend("--ft-notice-icon-size","",ct.iconSize3),lt.extend("--ft-notice-info-background-color","",st.backgroundInfoSubtle),lt.extend("--ft-notice-info-border-color","",st.borderInfoPrimary),lt.extend("--ft-notice-info-color","",st.contentInfoPrimary),lt.extend("--ft-notice-warning-background-color","",st.backgroundWarningSubtle),lt.extend("--ft-notice-warning-border-color","",st.borderWarningPrimary),lt.extend("--ft-notice-warning-color","",st.contentWarningPrimary),lt.extend("--ft-checkbox-label-color","",st.contentGlobalPrimary),lt.extend("--ft-checkbox-checked-background-color","",st.contentActionPrimary),lt.extend("--ft-checkbox-checked-state-layer-color","",st.contentActionPrimary),lt.extend("--ft-checkbox-checked-color","",st.contentGlobalOnColor),lt.extend("--ft-checkbox-checked-state-layer-opacity-hover","",ct.opacity16),lt.extend("--ft-checkbox-checked-state-layer-opacity-focus","",ct.opacity16),lt.extend("--ft-checkbox-checked-state-layer-opacity-active","",ct.opacity24),lt.extend("--ft-checkbox-checked-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-checkbox-unchecked-border-color","",ct.colorGray80),lt.extend("--ft-checkbox-unchecked-state-layer-color","",ct.colorGray80),lt.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",ct.opacity16),lt.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",ct.opacity16),lt.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",ct.opacity24),lt.extend("--ft-checkbox-unchecked-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-checkbox-focus-focus-ring-color","",st.borderActionFocusRing),lt.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),lt.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),lt.extend("--ft-checkbox-gap","",ct.spacing3),lt.extend("--ft-toggle-off-state-layer-opacity-hover","",ct.opacity16),lt.extend("--ft-toggle-off-state-layer-opacity-focus","",ct.opacity16),lt.extend("--ft-toggle-off-state-layer-opacity-active","",ct.opacity24),lt.extend("--ft-toggle-off-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-toggle-off-background-color","",st.contentGlobalSubtle),lt.extend("--ft-toggle-off-icon-color","",st.contentGlobalSubtle),lt.extend("--ft-toggle-off-state-layer-color","",st.contentGlobalSubtle),lt.extend("--ft-toggle-on-state-layer-opacity-hover","",ct.opacity16),lt.extend("--ft-toggle-on-state-layer-opacity-focus","",ct.opacity16),lt.extend("--ft-toggle-on-state-layer-opacity-active","",ct.opacity24),lt.extend("--ft-toggle-on-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-toggle-on-background-color","",st.contentActionPrimary),lt.extend("--ft-toggle-on-icon-color","",st.contentActionPrimary),lt.extend("--ft-toggle-on-state-layer-color","",st.contentActionPrimary),lt.extend("--ft-toggle-label-color","",st.contentGlobalPrimary),lt.extend("--ft-toggle-focus-focus-ring-color","",st.borderActionFocusRing),lt.extend("--ft-toggle-gap","",ct.spacing3),lt.extend("--ft-radio-label-color","",st.contentGlobalPrimary),lt.extend("--ft-radio-selected-color","",st.contentActionPrimary),lt.extend("--ft-radio-selected-state-layer-color","",st.contentActionPrimary),lt.extend("--ft-radio-selected-state-layer-opacity-hover","",ct.opacity16),lt.extend("--ft-radio-selected-state-layer-opacity-focus","",ct.opacity16),lt.extend("--ft-radio-selected-state-layer-opacity-active","",ct.opacity24),lt.extend("--ft-radio-selected-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-radio-unselected-state-layer-color","",ct.colorGray80),lt.extend("--ft-radio-unselected-state-layer-opacity-hover","",ct.opacity16),lt.extend("--ft-radio-unselected-state-layer-opacity-focus","",ct.opacity16),lt.extend("--ft-radio-unselected-state-layer-opacity-active","",ct.opacity24),lt.extend("--ft-radio-unselected-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-radio-focus-focus-ring-color","",st.borderActionFocusRing),lt.create("--ft-radio-focus-outline-offset","","SIZE","3px"),lt.create("--ft-radio-focus-outline-width","","SIZE","2px"),lt.extend("--ft-radio-gap","",ct.spacing3),lt.extend("--ft-notification-icon-size","",ct.iconSize4),lt.extend("--ft-notification-horizontal-padding","",ct.spacing4),lt.extend("--ft-notification-vertical-padding","",ct.spacing4),lt.extend("--ft-notification-info-background-color","",st.backgroundInfoSubtle),lt.extend("--ft-notification-info-color","",st.contentInfoPrimary),lt.extend("--ft-notification-info-border-color","",st.borderInfoPrimary),lt.extend("--ft-notification-success-background-color","",st.backgroundSuccessSubtle),lt.extend("--ft-notification-success-color","",st.contentSuccessPrimary),lt.extend("--ft-notification-success-border-color","",st.borderSuccessPrimary),lt.extend("--ft-notification-warning-background-color","",st.backgroundWarningSubtle),lt.extend("--ft-notification-warning-color","",st.contentWarningPrimary),lt.extend("--ft-notification-warning-border-color","",st.borderWarningPrimary),lt.extend("--ft-notification-error-background-color","",st.backgroundErrorSubtle),lt.extend("--ft-notification-error-color","",st.contentErrorPrimary),lt.extend("--ft-notification-error-border-color","",st.borderErrorPrimary),lt.extend("--ft-notification-border-radius","",ct.borderRadiusPill),lt.create("--ft-notification-border-width","","SIZE","1px"),lt.extend("--ft-notification-gap-leading","",ct.spacing2),lt.extend("--ft-notification-gap-trailing","",ct.spacing8);const dt=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),ht=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),gt={fontFamily:ht,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")},yt=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",dt),bt=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",gt.fontSize,"20px"),ut=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",gt.fontWeight,"normal"),mt=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",gt.letterSpacing,"0.15px"),xt=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",gt.lineHeight,"1.2"),Ot=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",gt.textTransform,"inherit"),vt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",dt),Nt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",gt.fontSize,"14px"),St=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",gt.fontWeight,"normal"),$t=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",gt.letterSpacing,"0.105px"),Ct=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",gt.lineHeight,"1.7"),wt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",gt.textTransform,"inherit"),It=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ht),kt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",gt.fontSize,"16px"),Ut=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",gt.fontWeight,"600"),Rt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",gt.letterSpacing,"0.144px"),Wt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",gt.lineHeight,"1.5"),Et=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",gt.textTransform,"inherit"),Lt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ht),zt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",gt.fontSize,"14px"),Zt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",gt.fontWeight,"normal"),Kt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",gt.letterSpacing,"0.098px"),Bt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",gt.lineHeight,"1.7"),Ft=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",gt.textTransform,"inherit"),Dt=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ht),Ht=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",gt.fontSize,"16px"),At=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",gt.fontWeight,"normal"),Gt=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",gt.letterSpacing,"0.496px"),jt=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",gt.lineHeight,"1.5"),Pt=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",gt.textTransform,"inherit"),Mt={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ht),fontSize:o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",gt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",gt.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",gt.letterSpacing,"0.252px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",gt.lineHeight,"1.4"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",gt.textTransform,"inherit")},Tt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ht),_t=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",gt.fontSize,"12px"),Yt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",gt.fontWeight,"normal"),Vt=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",gt.letterSpacing,"0.396px"),qt=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",gt.lineHeight,"1.33"),Xt=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",gt.textTransform,"inherit"),Jt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ht),Qt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",gt.fontSize,"10px"),to=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",gt.fontWeight,"normal"),oo=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",gt.letterSpacing,"0.33px"),eo=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",gt.lineHeight,"1.6"),io=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",gt.textTransform,"inherit"),ro=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ht),ao=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",gt.fontSize,"10px"),no=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",gt.fontWeight,"normal"),lo=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",gt.letterSpacing,"1.5px"),co=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",gt.lineHeight,"1.6"),po=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",gt.textTransform,"uppercase"),so={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ht),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",gt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",gt.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",gt.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",gt.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",gt.textTransform,"uppercase")},fo=e.css`
|
|
131
131
|
.ft-typography--title {
|
|
132
|
-
font-family: ${
|
|
133
|
-
font-size: ${
|
|
134
|
-
font-weight: ${
|
|
135
|
-
letter-spacing: ${
|
|
136
|
-
line-height: ${
|
|
137
|
-
text-transform: ${
|
|
138
|
-
}
|
|
139
|
-
`,
|
|
132
|
+
font-family: ${yt};
|
|
133
|
+
font-size: ${bt};
|
|
134
|
+
font-weight: ${ut};
|
|
135
|
+
letter-spacing: ${mt};
|
|
136
|
+
line-height: ${xt};
|
|
137
|
+
text-transform: ${Ot};
|
|
138
|
+
}
|
|
139
|
+
`,ho=e.css`
|
|
140
140
|
.ft-typography--title-dense {
|
|
141
|
-
font-family: ${
|
|
142
|
-
font-size: ${
|
|
143
|
-
font-weight: ${
|
|
144
|
-
letter-spacing: ${
|
|
145
|
-
line-height: ${
|
|
146
|
-
text-transform: ${
|
|
147
|
-
}
|
|
148
|
-
`,
|
|
141
|
+
font-family: ${vt};
|
|
142
|
+
font-size: ${Nt};
|
|
143
|
+
font-weight: ${St};
|
|
144
|
+
letter-spacing: ${$t};
|
|
145
|
+
line-height: ${Ct};
|
|
146
|
+
text-transform: ${wt};
|
|
147
|
+
}
|
|
148
|
+
`,go=e.css`
|
|
149
149
|
.ft-typography--subtitle1 {
|
|
150
|
-
font-family: ${
|
|
151
|
-
font-size: ${
|
|
152
|
-
font-weight: ${
|
|
153
|
-
letter-spacing: ${
|
|
154
|
-
line-height: ${
|
|
155
|
-
text-transform: ${
|
|
156
|
-
}
|
|
157
|
-
`,
|
|
150
|
+
font-family: ${It};
|
|
151
|
+
font-size: ${kt};
|
|
152
|
+
font-weight: ${Ut};
|
|
153
|
+
letter-spacing: ${Rt};
|
|
154
|
+
line-height: ${Wt};
|
|
155
|
+
text-transform: ${Et};
|
|
156
|
+
}
|
|
157
|
+
`,yo=e.css`
|
|
158
158
|
.ft-typography--subtitle2 {
|
|
159
|
-
font-family: ${
|
|
160
|
-
font-size: ${
|
|
161
|
-
font-weight: ${
|
|
162
|
-
letter-spacing: ${
|
|
159
|
+
font-family: ${Lt};
|
|
160
|
+
font-size: ${zt};
|
|
161
|
+
font-weight: ${Zt};
|
|
162
|
+
letter-spacing: ${Kt};
|
|
163
163
|
line-height: ${Bt};
|
|
164
|
-
text-transform: ${
|
|
164
|
+
text-transform: ${Ft};
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
`,
|
|
167
|
+
`,bo=e.css`
|
|
168
168
|
.ft-typography--body1 {
|
|
169
|
-
font-family: ${
|
|
170
|
-
font-size: ${
|
|
169
|
+
font-family: ${Dt};
|
|
170
|
+
font-size: ${Ht};
|
|
171
171
|
font-weight: ${At};
|
|
172
|
-
letter-spacing: ${
|
|
173
|
-
line-height: ${
|
|
174
|
-
text-transform: ${
|
|
172
|
+
letter-spacing: ${Gt};
|
|
173
|
+
line-height: ${jt};
|
|
174
|
+
text-transform: ${Pt};
|
|
175
175
|
}
|
|
176
|
-
`,
|
|
176
|
+
`,uo=e.css`
|
|
177
177
|
.ft-typography--body2 {
|
|
178
|
-
font-family: ${
|
|
179
|
-
font-size: ${
|
|
180
|
-
font-weight: ${
|
|
181
|
-
letter-spacing: ${
|
|
182
|
-
line-height: ${
|
|
183
|
-
text-transform: ${
|
|
184
|
-
}
|
|
185
|
-
`,
|
|
178
|
+
font-family: ${Mt.fontFamily};
|
|
179
|
+
font-size: ${Mt.fontSize};
|
|
180
|
+
font-weight: ${Mt.fontWeight};
|
|
181
|
+
letter-spacing: ${Mt.letterSpacing};
|
|
182
|
+
line-height: ${Mt.lineHeight};
|
|
183
|
+
text-transform: ${Mt.textTransform};
|
|
184
|
+
}
|
|
185
|
+
`,mo=e.css`
|
|
186
186
|
.ft-typography--caption {
|
|
187
|
-
font-family: ${
|
|
188
|
-
font-size: ${
|
|
189
|
-
font-weight: ${
|
|
190
|
-
letter-spacing: ${
|
|
191
|
-
line-height: ${
|
|
192
|
-
text-transform: ${
|
|
187
|
+
font-family: ${Tt};
|
|
188
|
+
font-size: ${_t};
|
|
189
|
+
font-weight: ${Yt};
|
|
190
|
+
letter-spacing: ${Vt};
|
|
191
|
+
line-height: ${qt};
|
|
192
|
+
text-transform: ${Xt};
|
|
193
193
|
}
|
|
194
|
-
`,
|
|
194
|
+
`,xo=e.css`
|
|
195
195
|
.ft-typography--breadcrumb {
|
|
196
|
-
font-family: ${Kt};
|
|
197
|
-
font-size: ${Gt};
|
|
198
|
-
font-weight: ${Vt};
|
|
199
|
-
letter-spacing: ${qt};
|
|
200
|
-
line-height: ${Xt};
|
|
201
|
-
text-transform: ${Yt};
|
|
202
|
-
}
|
|
203
|
-
`,di=e.css`
|
|
204
|
-
.ft-typography--overline {
|
|
205
196
|
font-family: ${Jt};
|
|
206
197
|
font-size: ${Qt};
|
|
207
|
-
font-weight: ${
|
|
208
|
-
letter-spacing: ${
|
|
209
|
-
line-height: ${
|
|
210
|
-
text-transform: ${
|
|
198
|
+
font-weight: ${to};
|
|
199
|
+
letter-spacing: ${oo};
|
|
200
|
+
line-height: ${eo};
|
|
201
|
+
text-transform: ${io};
|
|
211
202
|
}
|
|
212
|
-
`,
|
|
203
|
+
`,Oo=e.css`
|
|
204
|
+
.ft-typography--overline {
|
|
205
|
+
font-family: ${ro};
|
|
206
|
+
font-size: ${ao};
|
|
207
|
+
font-weight: ${no};
|
|
208
|
+
letter-spacing: ${lo};
|
|
209
|
+
line-height: ${co};
|
|
210
|
+
text-transform: ${po};
|
|
211
|
+
}
|
|
212
|
+
`,vo=e.css`
|
|
213
213
|
.ft-typography--button {
|
|
214
|
-
font-family: ${
|
|
215
|
-
font-size: ${
|
|
216
|
-
font-weight: ${
|
|
217
|
-
letter-spacing: ${
|
|
218
|
-
line-height: ${
|
|
219
|
-
text-transform: ${
|
|
220
|
-
}
|
|
221
|
-
`,
|
|
214
|
+
font-family: ${so.fontFamily};
|
|
215
|
+
font-size: ${so.fontSize};
|
|
216
|
+
font-weight: ${so.fontWeight};
|
|
217
|
+
letter-spacing: ${so.letterSpacing};
|
|
218
|
+
line-height: ${so.lineHeight};
|
|
219
|
+
text-transform: ${so.textTransform};
|
|
220
|
+
}
|
|
221
|
+
`,No=e.css`
|
|
222
222
|
.ft-typography {
|
|
223
223
|
vertical-align: inherit;
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
`,So=[Object.keys(pt).map((t=>function(t){const o=pt[t];return e.css`
|
|
226
|
+
font-family: ${o.fontFamily};
|
|
227
|
+
font-size: ${o.fontSize};
|
|
228
|
+
font-weight: ${o.fontWeight};
|
|
229
|
+
letter-spacing: ${o.letterSpacing};
|
|
230
|
+
line-height: ${o.lineHeight};
|
|
231
|
+
text-transform: ${o.textCase};
|
|
232
|
+
`}(t)))];var $o,Co,wo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Io extends o.FtLitElement{constructor(){super(...arguments),this.variant=at.body1}render(){return this.element?rt`
|
|
226
233
|
<${et(this.element)}
|
|
227
|
-
|
|
234
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
228
235
|
<slot></slot>
|
|
229
236
|
</${et(this.element)}>
|
|
230
|
-
`:
|
|
237
|
+
`:rt`
|
|
231
238
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
232
|
-
`}}
|
|
239
|
+
`}}Io.styles=[fo,ho,go,yo,bo,uo,mo,xo,Oo,vo,No,...So],wo([i.property()],Io.prototype,"element",void 0),wo([i.property()],Io.prototype,"variant",void 0),o.customElement("ft-typography")(Io),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}($o||($o={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Co||(Co={})),new Map([...["abw"].map((t=>[t,Co.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,Co.AUDIO])),...["avi"].map((t=>[t,Co.AVI])),...["chm","xhs"].map((t=>[t,Co.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,Co.CODE])),...["csv"].map((t=>[t,Co.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Co.DITA])),...["epub"].map((t=>[t,Co.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Co.EXCEL])),...["flac"].map((t=>[t,Co.FLAC])),...["gif"].map((t=>[t,Co.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Co.GZIP])),...["html","htm","xhtml"].map((t=>[t,Co.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,Co.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Co.JPEG])),...["json"].map((t=>[t,Co.JSON])),...["m4a","m4p"].map((t=>[t,Co.M4A])),...["mov","qt"].map((t=>[t,Co.MOV])),...["mp3"].map((t=>[t,Co.MP3])),...["mp4","m4v"].map((t=>[t,Co.MP4])),...["ogg","oga"].map((t=>[t,Co.OGG])),...["pdf","ps"].map((t=>[t,Co.PDF])),...["png"].map((t=>[t,Co.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Co.POWERPOINT])),...["rar"].map((t=>[t,Co.RAR])),...["stp"].map((t=>[t,Co.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Co.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,Co.VIDEO])),...["wav"].map((t=>[t,Co.WAV])),...["wma"].map((t=>[t,Co.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Co.WORD])),...["xml","xsl","rdf"].map((t=>[t,Co.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Co.YAML])),...["zip"].map((t=>[t,Co.ZIP]))]);const ko={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")},Uo=e.css`
|
|
233
240
|
:host, i.ft-icon {
|
|
234
241
|
display: inline-flex;
|
|
235
242
|
align-items: center;
|
|
@@ -238,14 +245,14 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
238
245
|
}
|
|
239
246
|
|
|
240
247
|
:host {
|
|
241
|
-
width: ${
|
|
242
|
-
height: ${
|
|
248
|
+
width: ${ko.size};
|
|
249
|
+
height: ${ko.size};
|
|
243
250
|
}
|
|
244
251
|
|
|
245
252
|
i.ft-icon {
|
|
246
253
|
width: 100%;
|
|
247
254
|
height: 100%;
|
|
248
|
-
font-size: ${
|
|
255
|
+
font-size: ${ko.size};
|
|
249
256
|
line-height: 1;
|
|
250
257
|
font-weight: normal;
|
|
251
258
|
text-transform: none;
|
|
@@ -256,80 +263,33 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
256
263
|
text-rendering: auto;
|
|
257
264
|
-webkit-font-smoothing: antialiased;
|
|
258
265
|
-moz-osx-font-smoothing: grayscale;
|
|
259
|
-
vertical-align: ${
|
|
266
|
+
vertical-align: ${ko.verticalAlign};
|
|
260
267
|
}
|
|
261
268
|
|
|
262
269
|
i.ft-icon.ft-icon--fluid-topics {
|
|
263
|
-
font-family: ${
|
|
270
|
+
font-family: ${ko.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
264
271
|
|
|
265
272
|
/* Ugly fix because font is broken */
|
|
266
|
-
font-size: calc(0.75 * ${
|
|
267
|
-
line-height: ${
|
|
273
|
+
font-size: calc(0.75 * ${ko.size});
|
|
274
|
+
line-height: ${ko.size};
|
|
268
275
|
position: relative;
|
|
269
276
|
top: -4%;
|
|
270
277
|
justify-content: center;
|
|
271
278
|
}
|
|
272
279
|
|
|
273
280
|
.ft-icon--file-format {
|
|
274
|
-
font-family: ${
|
|
281
|
+
font-family: ${ko.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
275
282
|
}
|
|
276
283
|
|
|
277
284
|
.ft-icon--material {
|
|
278
|
-
font-family: ${
|
|
285
|
+
font-family: ${ko.materialFontFamily}, "Material Icons", sans-serif;
|
|
279
286
|
}
|
|
280
|
-
`;var
|
|
287
|
+
`;var Ro;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ro||(Ro={}));var Wo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Eo extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Ro).includes(this.variant)?this.variant:Ro.fluid_topics,o=t!==Ro.material||!!this.value;return e.html`
|
|
281
288
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
282
|
-
${
|
|
283
|
-
<slot ?hidden=${
|
|
289
|
+
${a.unsafeHTML(this.resolvedIcon)}
|
|
290
|
+
<slot ?hidden=${o}></slot>
|
|
284
291
|
</i>
|
|
285
|
-
`}get textContent(){var t,
|
|
286
|
-
.ft-tooltip--container {
|
|
287
|
-
display: block;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.ft-tooltip--inline {
|
|
291
|
-
display: inline-block;
|
|
292
|
-
max-width: 100%;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.ft-tooltip {
|
|
296
|
-
position: absolute;
|
|
297
|
-
box-sizing: border-box;
|
|
298
|
-
overflow: hidden;
|
|
299
|
-
width: max-content;
|
|
300
|
-
max-width: ${ji};
|
|
301
|
-
text-align: center;
|
|
302
|
-
padding: ${Si};
|
|
303
|
-
z-index: ${Ii};
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.ft-tooltip--content {
|
|
307
|
-
padding: 4px 8px;
|
|
308
|
-
border-radius: ${Oi};
|
|
309
|
-
background-color: ${Ei};
|
|
310
|
-
color: ${Ci};
|
|
311
|
-
position: relative;
|
|
312
|
-
word-break: break-word;
|
|
313
|
-
}
|
|
314
|
-
`;var Ni=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};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`
|
|
315
|
-
<div part="container"
|
|
316
|
-
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
317
|
-
@mouseenter=${this.onHover}
|
|
318
|
-
@mouseleave=${this.onOut}
|
|
319
|
-
@focusin=${this.onHover}
|
|
320
|
-
@focusout=${this.onOut}
|
|
321
|
-
@touchstart=${this.onTouch}>
|
|
322
|
-
<slot></slot>
|
|
323
|
-
<div part="tooltip" role="tooltip" inert
|
|
324
|
-
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
325
|
-
?hidden=${!this.visible}>
|
|
326
|
-
<div part="tooltip-content" class="ft-tooltip--content">
|
|
327
|
-
<slot name="text"></slot>
|
|
328
|
-
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
329
|
-
</div>
|
|
330
|
-
</div>
|
|
331
|
-
</div>
|
|
332
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(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 r=0,s=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":s=t.offsetTop-e-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":s=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,r=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":s=t.offsetTop+o-this.tooltip.offsetTop,r=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=r+"px",l.top=s+"px";const a=this.tooltip.getBoundingClientRect();let p=-a.x,h=a.x+a.width-window.innerWidth;l.left=r+Math.round(this.correctOutOfWindowPixels(p,h))+"px";let f=-a.y,c=a.y+a.height-window.innerHeight;l.top=s+Math.round(this.correctOutOfWindowPixels(f,c))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${ji})`}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":yi},Ti.styles=Bi,Ni([o.property()],Ti.prototype,"text",void 0),Ni([o.property({type:Boolean})],Ti.prototype,"manual",void 0),Ni([o.property({type:Boolean})],Ti.prototype,"inline",void 0),Ni([o.property({type:Number})],Ti.prototype,"delay",void 0),Ni([o.property()],Ti.prototype,"position",void 0),Ni([o.queryAssignedNodes("",!0)],Ti.prototype,"slotNodes",void 0),Ni([o.query(".ft-tooltip--container")],Ti.prototype,"container",void 0),Ni([o.query(".ft-tooltip")],Ti.prototype,"tooltip",void 0),Ni([o.query(".ft-tooltip--content")],Ti.prototype,"tooltipContent",void 0),Ni([o.state()],Ti.prototype,"visible",void 0),i.customElement("ft-tooltip")(Ti);const Zi={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Ai=e.css`
|
|
292
|
+
`}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 i=this.value||this.textContent;switch(this.variant){case Ro.file_format:this.resolvedIcon=null!==(t=Co[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ro.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=$o[i.replace("-","_").toUpperCase()])&&void 0!==o?o:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Eo.elementDefinitions={},Eo.styles=Uo,Wo([i.property()],Eo.prototype,"variant",void 0),Wo([i.property()],Eo.prototype,"value",void 0),Wo([i.state()],Eo.prototype,"resolvedIcon",void 0),Wo([i.query("slot")],Eo.prototype,"slottedContent",void 0),o.customElement("ft-icon")(Eo);const Lo={color:o.FtCssVariableFactory.extend("--ft-loader-color","",o.designSystemVariables.colorPrimary),size:o.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},zo=e.css`
|
|
333
293
|
:host {
|
|
334
294
|
line-height: 0;
|
|
335
295
|
}
|
|
@@ -338,8 +298,8 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
338
298
|
display: inline-block;
|
|
339
299
|
position: relative;
|
|
340
300
|
|
|
341
|
-
width: ${
|
|
342
|
-
height: ${
|
|
301
|
+
width: ${Lo.size};
|
|
302
|
+
height: ${Lo.size};
|
|
343
303
|
}
|
|
344
304
|
|
|
345
305
|
.ft-loader div {
|
|
@@ -348,7 +308,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
348
308
|
width: 25%;
|
|
349
309
|
height: 25%;
|
|
350
310
|
border-radius: 50%;
|
|
351
|
-
background: ${
|
|
311
|
+
background: ${Lo.color};
|
|
352
312
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
353
313
|
}
|
|
354
314
|
|
|
@@ -395,17 +355,10 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
395
355
|
transform: translate(0, 0);
|
|
396
356
|
}
|
|
397
357
|
100% {
|
|
398
|
-
transform: translate(calc(0.35 * ${
|
|
358
|
+
transform: translate(calc(0.35 * ${Lo.size}), 0);
|
|
399
359
|
}
|
|
400
360
|
}
|
|
401
|
-
|
|
402
|
-
<div class="ft-loader">
|
|
403
|
-
<div></div>
|
|
404
|
-
<div></div>
|
|
405
|
-
<div></div>
|
|
406
|
-
<div></div>
|
|
407
|
-
</div>
|
|
408
|
-
`}}Fi.styles=Ai,i.customElement("ft-loader")(Fi);const Mi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Ui={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Mi,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",ni.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Mi),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")},_i=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Di={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:_i,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",_i)},Ri=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Wi=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Li=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Hi=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Pi=[e.css`
|
|
361
|
+
`,Zo=o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorPrimary),Ko={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorSurface),borderRadius:o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusL),color:Zo,fontSize:o.FtCssVariableFactory.extend("--ft-button-font-size","",so.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.FtCssVariableFactory.extend("--ft-button-ripple-color","",Zo),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")},Bo=o.FtCssVariableFactory.extend("--ft-button-primary-color","",o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorOnPrimary)),Fo={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-primary-background-color","",o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorPrimary)),color:Bo,rippleColor:o.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Bo)},Do=o.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusM)),Ho=o.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Ao=o.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Go=o.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),jo=[e.css`
|
|
409
362
|
:host {
|
|
410
363
|
display: inline-block;
|
|
411
364
|
max-width: 100%;
|
|
@@ -416,7 +369,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
416
369
|
box-shadow: 0px 0px 0px transparent;
|
|
417
370
|
border: 0px solid transparent;
|
|
418
371
|
text-shadow: 0px 0px 0px transparent;
|
|
419
|
-
font-size: ${
|
|
372
|
+
font-size: ${Ko.fontSize};
|
|
420
373
|
}
|
|
421
374
|
|
|
422
375
|
button:hover {
|
|
@@ -445,31 +398,31 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
445
398
|
border: none;
|
|
446
399
|
pointer-events: auto;
|
|
447
400
|
|
|
448
|
-
--ft-button-internal-line-height: max(calc(${
|
|
449
|
-
--ft-button-internal-color: ${
|
|
450
|
-
${
|
|
451
|
-
${
|
|
401
|
+
--ft-button-internal-line-height: max(calc(${Ko.fontSize} + 2px), ${Ko.iconSize});
|
|
402
|
+
--ft-button-internal-color: ${Ko.color};
|
|
403
|
+
${o.setVariable(ko.size,Ko.iconSize)};
|
|
404
|
+
${o.setVariable(l.color,Ko.rippleColor)};
|
|
452
405
|
|
|
453
|
-
border-radius: ${
|
|
454
|
-
padding: ${
|
|
455
|
-
background-color: ${
|
|
406
|
+
border-radius: ${Ko.borderRadius};
|
|
407
|
+
padding: ${Ko.verticalPadding} ${Ko.horizontalPadding};
|
|
408
|
+
background-color: ${Ko.backgroundColor};
|
|
456
409
|
color: var(--ft-button-internal-color);
|
|
457
410
|
-webkit-mask-image: radial-gradient(white, black);
|
|
458
411
|
}
|
|
459
412
|
|
|
460
413
|
.ft-button.ft-button--outlined {
|
|
461
414
|
border: 1px solid var(--ft-button-internal-color);
|
|
462
|
-
padding: calc(${
|
|
415
|
+
padding: calc(${Ko.verticalPadding} - 1px) calc(${Ko.horizontalPadding} - 1px);
|
|
463
416
|
}
|
|
464
417
|
|
|
465
418
|
.ft-button.ft-button--dense {
|
|
466
|
-
padding: ${
|
|
467
|
-
border-radius: ${
|
|
468
|
-
gap: ${
|
|
419
|
+
padding: ${Ho} ${Ao};
|
|
420
|
+
border-radius: ${Do};
|
|
421
|
+
gap: ${Go};
|
|
469
422
|
}
|
|
470
423
|
|
|
471
424
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
472
|
-
padding: calc(${
|
|
425
|
+
padding: calc(${Ho} - 1px) calc(${Ao} - 1px);
|
|
473
426
|
}
|
|
474
427
|
|
|
475
428
|
.ft-button:not([disabled]):hover {
|
|
@@ -477,22 +430,22 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
477
430
|
}
|
|
478
431
|
|
|
479
432
|
.ft-button--round {
|
|
480
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
433
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ko.verticalPadding});
|
|
481
434
|
}
|
|
482
435
|
|
|
483
436
|
.ft-button--round.ft-button--dense {
|
|
484
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
437
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ho});
|
|
485
438
|
}
|
|
486
439
|
|
|
487
440
|
.ft-button[disabled] {
|
|
488
441
|
filter: grayscale(1);
|
|
489
|
-
opacity: ${
|
|
442
|
+
opacity: ${Ko.opacityDisabled};
|
|
490
443
|
}
|
|
491
444
|
|
|
492
445
|
.ft-button.ft-button--primary {
|
|
493
|
-
background-color: ${
|
|
494
|
-
--ft-button-internal-color: ${
|
|
495
|
-
${
|
|
446
|
+
background-color: ${Fo.backgroundColor};
|
|
447
|
+
--ft-button-internal-color: ${Fo.color};
|
|
448
|
+
${o.setVariable(l.color,Fo.rippleColor)};
|
|
496
449
|
}
|
|
497
450
|
|
|
498
451
|
.ft-button:focus {
|
|
@@ -505,13 +458,13 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
505
458
|
white-space: nowrap;
|
|
506
459
|
text-overflow: ellipsis;
|
|
507
460
|
display: block;
|
|
508
|
-
margin: 0 ${
|
|
509
|
-
${
|
|
510
|
-
${
|
|
461
|
+
margin: 0 ${Ko.iconPadding};
|
|
462
|
+
${o.setVariable(so.fontSize,"1em")};
|
|
463
|
+
${o.setVariable(so.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
511
464
|
}
|
|
512
465
|
|
|
513
466
|
.ft-button--dense .ft-button--label {
|
|
514
|
-
margin: 0 ${
|
|
467
|
+
margin: 0 ${Go};
|
|
515
468
|
}
|
|
516
469
|
|
|
517
470
|
.ft-button--label[hidden] {
|
|
@@ -524,13 +477,13 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
524
477
|
}
|
|
525
478
|
|
|
526
479
|
.ft-button--label[hidden] + ft-icon {
|
|
527
|
-
margin: 0 calc(${
|
|
528
|
-
padding: 0 ${
|
|
480
|
+
margin: 0 calc(${Ko.horizontalPadding} * -1);
|
|
481
|
+
padding: 0 ${Ko.verticalPadding};
|
|
529
482
|
}
|
|
530
483
|
|
|
531
484
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
532
|
-
margin: 0 calc(${
|
|
533
|
-
padding: 0 ${
|
|
485
|
+
margin: 0 calc(${Ao} * -1);
|
|
486
|
+
padding: 0 ${Ho};
|
|
534
487
|
}
|
|
535
488
|
|
|
536
489
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -539,33 +492,305 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
539
492
|
}
|
|
540
493
|
|
|
541
494
|
ft-loader {
|
|
542
|
-
${
|
|
543
|
-
${
|
|
495
|
+
${o.setVariable(Lo.size,Ko.iconSize)};
|
|
496
|
+
${o.setVariable(Lo.color,"var(--ft-button-internal-color)")};
|
|
544
497
|
}
|
|
545
|
-
`,
|
|
498
|
+
`,o.noTextSelect],Po=o.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),Mo=o.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),To=o.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),_o=o.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),Yo=o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),Vo=o.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),qo=e.css`
|
|
499
|
+
.ft-tooltip--container {
|
|
500
|
+
display: block;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.ft-tooltip--inline {
|
|
504
|
+
display: inline-block;
|
|
505
|
+
max-width: 100%;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.ft-tooltip {
|
|
509
|
+
position: absolute;
|
|
510
|
+
box-sizing: border-box;
|
|
511
|
+
overflow: hidden;
|
|
512
|
+
width: max-content;
|
|
513
|
+
max-width: ${Vo};
|
|
514
|
+
text-align: center;
|
|
515
|
+
padding: ${Po};
|
|
516
|
+
z-index: ${_o};
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.ft-tooltip--content {
|
|
520
|
+
padding: 4px 8px;
|
|
521
|
+
border-radius: ${Yo};
|
|
522
|
+
background-color: ${To};
|
|
523
|
+
color: ${Mo};
|
|
524
|
+
position: relative;
|
|
525
|
+
word-break: break-word;
|
|
526
|
+
}
|
|
527
|
+
`;var Xo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Jo 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`
|
|
528
|
+
<div part="container"
|
|
529
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
530
|
+
@mouseenter=${this.onHover}
|
|
531
|
+
@mouseleave=${this.onOut}
|
|
532
|
+
@focusin=${this.onHover}
|
|
533
|
+
@focusout=${this.onOut}
|
|
534
|
+
@touchstart=${this.onTouch}>
|
|
535
|
+
<slot></slot>
|
|
536
|
+
<div part="tooltip" role="tooltip" inert
|
|
537
|
+
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
538
|
+
?hidden=${!this.visible}>
|
|
539
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
540
|
+
<slot name="text"></slot>
|
|
541
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
542
|
+
</div>
|
|
543
|
+
</div>
|
|
544
|
+
</div>
|
|
545
|
+
`}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,i=(t.offsetHeight-e)/2,r=(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+r-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+i-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, ${Vo})`}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))}}Jo.elementDefinitions={"ft-typography":Io},Jo.styles=qo,Xo([i.property()],Jo.prototype,"text",void 0),Xo([i.property({type:Boolean})],Jo.prototype,"manual",void 0),Xo([i.property({type:Boolean})],Jo.prototype,"inline",void 0),Xo([i.property({type:Number})],Jo.prototype,"delay",void 0),Xo([i.property()],Jo.prototype,"position",void 0),Xo([i.queryAssignedNodes("",!0)],Jo.prototype,"slotNodes",void 0),Xo([i.query(".ft-tooltip--container")],Jo.prototype,"container",void 0),Xo([i.query(".ft-tooltip")],Jo.prototype,"tooltip",void 0),Xo([i.query(".ft-tooltip--content")],Jo.prototype,"tooltipContent",void 0),Xo([i.state()],Jo.prototype,"visible",void 0),o.customElement("ft-tooltip")(Jo);class Qo extends o.FtLitElement{render(){return e.html`
|
|
546
|
+
<div class="ft-loader">
|
|
547
|
+
<div></div>
|
|
548
|
+
<div></div>
|
|
549
|
+
<div></div>
|
|
550
|
+
<div></div>
|
|
551
|
+
</div>
|
|
552
|
+
`}}Qo.styles=zo,o.customElement("ft-loader")(Qo);var te=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class oe 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`
|
|
546
553
|
<button part="button"
|
|
547
|
-
class="${
|
|
554
|
+
class="${r.classMap(this.buttonClasses)}"
|
|
548
555
|
aria-label="${this.getLabel()}"
|
|
549
556
|
?disabled=${this.isDisabled()}>
|
|
550
557
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
551
558
|
<ft-typography part="label"
|
|
552
|
-
variant
|
|
559
|
+
variant=${this.typographyVariant}
|
|
553
560
|
element="span"
|
|
554
|
-
class="ft-button--label ${
|
|
561
|
+
class="ft-button--label ${o.isSafari?"ft-safari-ellipsis-fix":""}"
|
|
555
562
|
?hidden=${!this.hasTextContent()}>
|
|
556
563
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
557
564
|
</ft-typography>
|
|
558
565
|
${this.resolveIcon()}
|
|
559
566
|
</button>
|
|
560
567
|
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?e.html`
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
568
|
+
<ft-tooltip part="tooltip"
|
|
569
|
+
text="${this.getLabel()}"
|
|
570
|
+
position="${this.tooltipPosition}">
|
|
571
|
+
${t}
|
|
572
|
+
</ft-tooltip>
|
|
566
573
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
567
574
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
568
|
-
|
|
575
|
+
<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}}oe.elementDefinitions={"ft-ripple":u,"ft-tooltip":Jo,"ft-typography":Io,"ft-icon":Eo,"ft-loader":Qo},te([i.property({type:String,reflect:!0})],oe.prototype,"role",void 0),te([i.property()],oe.prototype,"type",void 0),te([i.property({type:Boolean})],oe.prototype,"disabled",void 0),te([i.property()],oe.prototype,"label",void 0),te([i.property()],oe.prototype,"icon",void 0),te([i.property()],oe.prototype,"iconVariant",void 0),te([i.property({type:Boolean})],oe.prototype,"trailingIcon",void 0),te([i.property({type:Boolean})],oe.prototype,"loading",void 0),te([i.property()],oe.prototype,"tooltipPosition",void 0),te([i.property({type:Boolean})],oe.prototype,"hideTooltip",void 0),te([i.property({type:Boolean})],oe.prototype,"forceTooltip",void 0),te([i.query(".ft-button")],oe.prototype,"button",void 0),te([i.query(".ft-button--label slot")],oe.prototype,"slottedContent",void 0);var ee=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ie extends oe{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"}}ie.styles=[o.safariEllipsisFix,jo],ee([i.property({type:Boolean})],ie.prototype,"primary",void 0),ee([i.property({type:Boolean})],ie.prototype,"outlined",void 0),ee([i.property({type:Boolean})],ie.prototype,"disabled",void 0),ee([i.property({type:Boolean})],ie.prototype,"dense",void 0),ee([i.property({type:Boolean})],ie.prototype,"round",void 0);const re=[e.css`
|
|
576
|
+
:host {
|
|
577
|
+
display: inline-block;
|
|
578
|
+
max-width: 100%;
|
|
579
|
+
pointer-events: none;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/** Remove default button styles **/
|
|
583
|
+
|
|
584
|
+
button {
|
|
585
|
+
box-shadow: 0 0 0 transparent;
|
|
586
|
+
border: 0 solid transparent;
|
|
587
|
+
text-shadow: 0 0 0 transparent;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
button:hover {
|
|
591
|
+
box-shadow: 0 0 0 transparent;
|
|
592
|
+
text-shadow: 0 0 0 transparent;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
button:active {
|
|
596
|
+
outline: none;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
button:focus {
|
|
600
|
+
outline: 0;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/** Base styles **/
|
|
604
|
+
|
|
605
|
+
.ft-button {
|
|
606
|
+
position: relative;
|
|
607
|
+
display: flex;
|
|
608
|
+
justify-content: center;
|
|
609
|
+
align-items: center;
|
|
610
|
+
width: 100%;
|
|
611
|
+
overflow: hidden;
|
|
612
|
+
box-sizing: border-box;
|
|
613
|
+
pointer-events: auto;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.ft-button:not([disabled]):hover {
|
|
617
|
+
cursor: pointer;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.ft-button:focus {
|
|
621
|
+
outline: none;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
.ft-button:focus-visible {
|
|
625
|
+
outline-color: ${ft.focusFocusRingColor};
|
|
626
|
+
outline-style: solid;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
ft-icon {
|
|
630
|
+
flex-shrink: 0;
|
|
631
|
+
position: relative;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
635
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
636
|
+
order: -1;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
.ft-button--label {
|
|
640
|
+
position: relative;
|
|
641
|
+
overflow: hidden;
|
|
642
|
+
white-space: nowrap;
|
|
643
|
+
text-overflow: ellipsis;
|
|
644
|
+
display: block;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
.ft-button--label[hidden] {
|
|
648
|
+
display: none;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/** Primary styles **/
|
|
652
|
+
|
|
653
|
+
.ft-button--primary {
|
|
654
|
+
${o.setVariable(Lo.color,ft.primaryIconColor)};
|
|
655
|
+
|
|
656
|
+
${o.setVariable(l.color,ft.primaryStateLayerColor)};
|
|
657
|
+
${o.setVariable(l.opacityContentOnSurfaceHover,ft.primaryStateLayerOpacityHover)};
|
|
658
|
+
${o.setVariable(l.opacityContentOnSurfaceFocused,ft.primaryStateLayerOpacityFocus)};
|
|
659
|
+
${o.setVariable(l.opacityContentOnSurfaceSelected,ft.primaryStateLayerOpacityActive)};
|
|
660
|
+
${o.setVariable(l.opacityContentOnSurfacePressed,ft.primaryStateLayerOpacityActive)};
|
|
661
|
+
|
|
662
|
+
background-color: ${ft.primaryBackgroundColor};
|
|
663
|
+
color: ${ft.primaryColor};
|
|
664
|
+
border-style: none;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.ft-button--primary[disabled] {
|
|
668
|
+
opacity: ${ft.primaryComponentOpacityDisabled};
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.ft-button--primary ft-icon {
|
|
672
|
+
color: ${ft.primaryIconColor};
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
/** Secondary styles **/
|
|
676
|
+
|
|
677
|
+
.ft-button--secondary {
|
|
678
|
+
${o.setVariable(Lo.color,ft.secondaryIconColor)};
|
|
679
|
+
|
|
680
|
+
${o.setVariable(l.color,ft.secondaryStateLayerColor)};
|
|
681
|
+
${o.setVariable(l.opacityContentOnSurfaceHover,ft.secondaryStateLayerOpacityHover)};
|
|
682
|
+
${o.setVariable(l.opacityContentOnSurfaceFocused,ft.secondaryStateLayerOpacityFocus)};
|
|
683
|
+
${o.setVariable(l.opacityContentOnSurfaceSelected,ft.secondaryStateLayerOpacityActive)};
|
|
684
|
+
${o.setVariable(l.opacityContentOnSurfacePressed,ft.secondaryStateLayerOpacityActive)};
|
|
685
|
+
|
|
686
|
+
background-color: ${ft.secondaryBackgroundColor};
|
|
687
|
+
color: ${ft.secondaryColor};
|
|
688
|
+
border-color: ${ft.secondaryBorderColor};
|
|
689
|
+
border-style: solid;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
.ft-button--secondary[disabled] {
|
|
693
|
+
opacity: ${ft.secondaryComponentOpacityDisabled};
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
.ft-button--secondary ft-icon {
|
|
697
|
+
color: ${ft.secondaryIconColor};
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
/** Tertiary styles **/
|
|
701
|
+
|
|
702
|
+
.ft-button--tertiary {
|
|
703
|
+
${o.setVariable(Lo.color,ft.tertiaryIconColor)};
|
|
704
|
+
|
|
705
|
+
${o.setVariable(l.color,ft.tertiaryStateLayerColor)};
|
|
706
|
+
${o.setVariable(l.opacityContentOnSurfaceHover,ft.tertiaryStateLayerOpacityHover)};
|
|
707
|
+
${o.setVariable(l.opacityContentOnSurfaceFocused,ft.tertiaryStateLayerOpacityFocus)};
|
|
708
|
+
${o.setVariable(l.opacityContentOnSurfaceSelected,ft.tertiaryStateLayerOpacityActive)};
|
|
709
|
+
${o.setVariable(l.opacityContentOnSurfacePressed,ft.tertiaryStateLayerOpacityActive)};
|
|
710
|
+
|
|
711
|
+
background-color: ${ft.tertiaryBackgroundColor};
|
|
712
|
+
color: ${ft.tertiaryColor};
|
|
713
|
+
border-style: none;
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.ft-button--tertiary[disabled] {
|
|
717
|
+
opacity: ${ft.tertiaryComponentOpacityDisabled};
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.ft-button--tertiary ft-icon {
|
|
721
|
+
color: ${ft.tertiaryIconColor};
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
/** Neutral styles **/
|
|
725
|
+
|
|
726
|
+
.ft-button--neutral {
|
|
727
|
+
${o.setVariable(Lo.color,ft.neutralIconColor)};
|
|
728
|
+
|
|
729
|
+
${o.setVariable(l.backgroundColor,ft.neutralStateLayerColor)};
|
|
730
|
+
${o.setVariable(l.opacityContentOnSurfaceHover,ft.neutralStateLayerOpacityHover)};
|
|
731
|
+
${o.setVariable(l.opacityContentOnSurfaceFocused,ft.neutralStateLayerOpacityFocus)};
|
|
732
|
+
${o.setVariable(l.opacityContentOnSurfaceSelected,ft.neutralStateLayerOpacityActive)};
|
|
733
|
+
${o.setVariable(l.opacityContentOnSurfacePressed,ft.neutralStateLayerOpacityActive)};
|
|
734
|
+
|
|
735
|
+
background-color: ${ft.neutralBackgroundColor};
|
|
736
|
+
color: ${ft.neutralColor};
|
|
737
|
+
border-style: none;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.ft-button--neutral[disabled] {
|
|
741
|
+
opacity: ${ft.neutralComponentOpacityDisabled};
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.ft-button--neutral ft-icon {
|
|
745
|
+
color: ${ft.neutralIconColor};
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/** Large styles **/
|
|
749
|
+
|
|
750
|
+
.ft-button--large {
|
|
751
|
+
${o.setVariable(ko.size,ft.largeIconSize)};
|
|
752
|
+
${o.setVariable(Lo.size,ft.largeIconSize)};
|
|
753
|
+
|
|
754
|
+
height: ${ft.largeHeight};
|
|
755
|
+
padding: 0 ${ft.largeHorizontalPadding};
|
|
756
|
+
gap: ${ft.largeGap};
|
|
757
|
+
border-radius: ${ft.largeBorderRadius};
|
|
758
|
+
border-width: ${ft.largeBorderWidth};
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.ft-button--large:focus-visible {
|
|
762
|
+
outline-width: ${ft.largeFocusOutlineWidth};
|
|
763
|
+
outline-offset: ${ft.largeFocusOutlineOffset};
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
.ft-button--large.ft-button--icon-only {
|
|
767
|
+
width: ${ft.largeIconOnlyWidth};
|
|
768
|
+
padding: unset;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
/** Small styles **/
|
|
772
|
+
|
|
773
|
+
.ft-button--small {
|
|
774
|
+
${o.setVariable(ko.size,ft.smallIconSize)};
|
|
775
|
+
${o.setVariable(Lo.size,ft.smallIconSize)};
|
|
776
|
+
|
|
777
|
+
height: ${ft.smallHeight};
|
|
778
|
+
padding: 0 ${ft.smallHorizontalPadding};
|
|
779
|
+
gap: ${ft.smallGap};
|
|
780
|
+
border-radius: ${ft.smallBorderRadius};
|
|
781
|
+
border-width: ${ft.smallBorderWidth};
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
.ft-button--small:focus-visible {
|
|
785
|
+
outline-width: ${ft.smallFocusOutlineWidth};
|
|
786
|
+
outline-offset: ${ft.smallFocusOutlineOffset};
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
.ft-button--small.ft-button--icon-only {
|
|
790
|
+
width: ${ft.smallIconOnlyWidth};
|
|
791
|
+
padding: unset;
|
|
792
|
+
}
|
|
793
|
+
`,o.noTextSelect];var ae=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ne extends oe{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?at.caption1medium:at.body2medium}}ne.styles=[o.safariEllipsisFix,re],ae([i.property({type:Boolean})],ne.prototype,"primary",void 0),ae([i.property({type:Boolean})],ne.prototype,"secondary",void 0),ae([i.property({type:Boolean})],ne.prototype,"tertiary",void 0),ae([i.property({type:Boolean})],ne.prototype,"neutral",void 0),ae([i.property({type:Boolean})],ne.prototype,"small",void 0),o.customElement("ft-button")(ie),o.customElement("ftds-button")(ne);const le=o.FtCssVariableFactory.extend("--ft-chip-color","",o.designSystemVariables.colorOnSurface),ce={backgroundColor:o.FtCssVariableFactory.extend("--ft-chip-background-color","",o.designSystemVariables.colorSurface),color:le,fontSize:o.FtCssVariableFactory.extend("--ft-chip-font-size","",Mt.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:o.FtCssVariableFactory.extend("--ft-chip-ripple-color","",le),horizontalPadding:o.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:o.FtCssVariableFactory.external(o.designSystemVariables.colorOutline,"Design system"),opacityDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},pe=o.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",o.FtCssVariableFactory.extend("--ft-chip-color","",o.designSystemVariables.colorOnPrimary)),se={backgroundColor:o.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",o.FtCssVariableFactory.extend("--ft-chip-background-color","",o.designSystemVariables.colorPrimary)),color:pe,rippleColor:o.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",pe)},fe=o.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),de=o.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),he=[o.noTextSelect,e.css`
|
|
569
794
|
:host {
|
|
570
795
|
display: inline-block;
|
|
571
796
|
max-width: 100%;
|
|
@@ -581,20 +806,20 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
581
806
|
box-sizing: border-box;
|
|
582
807
|
pointer-events: auto;
|
|
583
808
|
|
|
584
|
-
--ft-chip-internal-font-size: ${
|
|
809
|
+
--ft-chip-internal-font-size: ${ce.fontSize};
|
|
585
810
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
586
|
-
${
|
|
587
|
-
--ft-chip-internal-vertical-padding: ${
|
|
588
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
811
|
+
${o.setVariable(ko.size,ce.iconSize)};
|
|
812
|
+
--ft-chip-internal-vertical-padding: ${ce.verticalPadding};
|
|
813
|
+
--ft-chip-internal-horizontal-padding: ${ce.horizontalPadding};
|
|
589
814
|
--ft-chip-internal-icon-padding: 3px;
|
|
590
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
815
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${ce.iconSize});
|
|
591
816
|
|
|
592
|
-
border: 1px solid ${
|
|
593
|
-
color: ${
|
|
594
|
-
${
|
|
817
|
+
border: 1px solid ${ce.colorOutline};
|
|
818
|
+
color: ${ce.color};
|
|
819
|
+
${o.setVariable(l.color,ce.rippleColor)};
|
|
595
820
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
596
821
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
597
|
-
background-color: ${
|
|
822
|
+
background-color: ${ce.backgroundColor};
|
|
598
823
|
line-height: var(--ft-chip-internal-content-height);
|
|
599
824
|
}
|
|
600
825
|
|
|
@@ -604,8 +829,8 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
604
829
|
|
|
605
830
|
.ft-chip--dense {
|
|
606
831
|
--ft-chip-internal-icon-padding: 3px;
|
|
607
|
-
--ft-chip-internal-vertical-padding: ${
|
|
608
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
832
|
+
--ft-chip-internal-vertical-padding: ${de};
|
|
833
|
+
--ft-chip-internal-horizontal-padding: ${fe};
|
|
609
834
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
610
835
|
}
|
|
611
836
|
|
|
@@ -617,15 +842,15 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
617
842
|
cursor: default;
|
|
618
843
|
pointer-events: none;
|
|
619
844
|
filter: grayscale(1);
|
|
620
|
-
opacity: ${
|
|
845
|
+
opacity: ${ce.opacityDisabled};
|
|
621
846
|
}
|
|
622
847
|
|
|
623
848
|
.ft-chip--highlighted {
|
|
624
849
|
border: none;
|
|
625
850
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
626
|
-
background-color: ${
|
|
627
|
-
${
|
|
628
|
-
color: ${
|
|
851
|
+
background-color: ${se.backgroundColor};
|
|
852
|
+
${o.setVariable(l.color,se.rippleColor)};
|
|
853
|
+
color: ${se.color};
|
|
629
854
|
}
|
|
630
855
|
|
|
631
856
|
.ft-chip--clickable {
|
|
@@ -655,9 +880,9 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
655
880
|
}
|
|
656
881
|
|
|
657
882
|
.ft-chip--icon-button {
|
|
658
|
-
${
|
|
659
|
-
${
|
|
660
|
-
${
|
|
883
|
+
${o.setVariable(Ko.iconSize,ce.iconSize)};
|
|
884
|
+
${o.setVariable(Ko.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
885
|
+
${o.setVariable(Ko.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
661
886
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
662
887
|
}
|
|
663
888
|
|
|
@@ -665,8 +890,8 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
665
890
|
vertical-align: bottom;
|
|
666
891
|
display: block;
|
|
667
892
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
668
|
-
${
|
|
669
|
-
${
|
|
893
|
+
${o.setVariable(Mt.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
894
|
+
${o.setVariable(Mt.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
670
895
|
}
|
|
671
896
|
|
|
672
897
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -702,8 +927,8 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
702
927
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
703
928
|
order: -1;
|
|
704
929
|
}
|
|
705
|
-
`];var
|
|
706
|
-
<div class="${
|
|
930
|
+
`];var ge=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ye extends CustomEvent{constructor(){super("icon-click")}}class be extends o.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":o.isSafari};return e.html`
|
|
931
|
+
<div class="${r.classMap(t)}"
|
|
707
932
|
aria-label="${this.getLabel()}"
|
|
708
933
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
709
934
|
@keyup=${this.onKeyUp}>
|
|
@@ -725,7 +950,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
725
950
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
726
951
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
727
952
|
</div>
|
|
728
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
953
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ye))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ye))}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}be.elementDefinitions={"ft-ripple":u,"ft-typography":Io,"ft-icon":Eo,"ft-button":ie},be.styles=he,ge([i.property({type:Boolean})],be.prototype,"highlighted",void 0),ge([i.property({type:Boolean})],be.prototype,"removable",void 0),ge([i.property({type:Boolean})],be.prototype,"disabled",void 0),ge([i.property({type:Boolean})],be.prototype,"clickable",void 0),ge([i.property({type:Boolean})],be.prototype,"iconClickable",void 0),ge([i.property({type:Boolean})],be.prototype,"dense",void 0),ge([i.property({type:Boolean})],be.prototype,"multiLine",void 0),ge([i.property()],be.prototype,"label",void 0),ge([i.property()],be.prototype,"iconLabel",void 0),ge([i.property()],be.prototype,"icon",void 0),ge([i.property()],be.prototype,"iconVariant",void 0),ge([i.property({type:Boolean})],be.prototype,"trailingIcon",void 0),ge([i.query("ft-typography slot")],be.prototype,"slottedContent",void 0),o.customElement("ft-chip")(be);const ue={zIndex:o.FtCssVariableFactory.create("--ft-file-drop-z-index","","NUMBER","10"),hintBackgroundColor:o.FtCssVariableFactory.extend("--ft-file-drop-hint-background-color","",o.designSystemVariables.colorSurface),hintColor:o.FtCssVariableFactory.extend("--ft-file-drop-hint-color","",o.designSystemVariables.colorPrimary),errorColor:o.FtCssVariableFactory.extend("--ft-file-drop-error-color","",o.designSystemVariables.colorError),borderRadius:o.FtCssVariableFactory.extend("--ft-file-drop-border-radius","",o.designSystemVariables.borderRadiusL),borderWidth:o.FtCssVariableFactory.create("--ft-file-drop-border-width","","SIZE","4px"),borderColor:o.FtCssVariableFactory.create("--ft-file-drop-border-color","","COLOR","transparent"),visibleBorderColor:o.FtCssVariableFactory.extend("--ft-file-drop-visible-border-color","",o.designSystemVariables.colorOutline),activeBorderColor:o.FtCssVariableFactory.extend("--ft-file-drop-active-border-color","",o.designSystemVariables.colorPrimary)},me=e.css`
|
|
729
954
|
:host {
|
|
730
955
|
display: block;
|
|
731
956
|
position: relative;
|
|
@@ -734,16 +959,16 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
734
959
|
#container {
|
|
735
960
|
position: absolute;
|
|
736
961
|
inset: 0;
|
|
737
|
-
border: dashed ${
|
|
738
|
-
border-radius: ${
|
|
962
|
+
border: dashed ${ue.borderWidth} ${ue.borderColor};
|
|
963
|
+
border-radius: ${ue.borderRadius};
|
|
739
964
|
}
|
|
740
965
|
|
|
741
966
|
#container.visible {
|
|
742
|
-
border-color: ${
|
|
967
|
+
border-color: ${ue.visibleBorderColor}
|
|
743
968
|
}
|
|
744
969
|
|
|
745
970
|
#container.dragging {
|
|
746
|
-
border-color: ${
|
|
971
|
+
border-color: ${ue.activeBorderColor}
|
|
747
972
|
}
|
|
748
973
|
|
|
749
974
|
slot {
|
|
@@ -757,7 +982,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
757
982
|
display: none;
|
|
758
983
|
position: absolute;
|
|
759
984
|
inset: 0;
|
|
760
|
-
z-index: ${
|
|
985
|
+
z-index: ${ue.zIndex};
|
|
761
986
|
}
|
|
762
987
|
|
|
763
988
|
#container.dragging #overlay {
|
|
@@ -768,9 +993,9 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
768
993
|
z-index: 1;
|
|
769
994
|
position: absolute;
|
|
770
995
|
inset: 0;
|
|
771
|
-
background-color: ${
|
|
996
|
+
background-color: ${ue.activeBorderColor};
|
|
772
997
|
opacity: 0.20;
|
|
773
|
-
border-radius: ${
|
|
998
|
+
border-radius: ${ue.borderRadius};
|
|
774
999
|
}
|
|
775
1000
|
|
|
776
1001
|
#overlay-drop {
|
|
@@ -790,22 +1015,22 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
790
1015
|
|
|
791
1016
|
#overlay-content ft-chip {
|
|
792
1017
|
margin-bottom: 10%;
|
|
793
|
-
${
|
|
794
|
-
${
|
|
795
|
-
${
|
|
1018
|
+
${o.setVariable(ce.color,ue.hintColor)};
|
|
1019
|
+
${o.setVariable(ce.iconSize,"32px")};
|
|
1020
|
+
${o.setVariable(ce.colorOutline,"transparent")};
|
|
796
1021
|
}
|
|
797
1022
|
|
|
798
1023
|
#overlay-content xft-chip[icon=error] {
|
|
799
|
-
${
|
|
800
|
-
${
|
|
1024
|
+
${o.setVariable(ce.color,ue.errorColor)};
|
|
1025
|
+
${o.setVariable(ce.backgroundColor,ue.hintBackgroundColor)};
|
|
801
1026
|
}
|
|
802
1027
|
|
|
803
1028
|
[hidden] {
|
|
804
1029
|
display: none;
|
|
805
1030
|
}
|
|
806
|
-
`;var
|
|
1031
|
+
`;var xe=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Oe extends CustomEvent{constructor(t){super("file-drop",{detail:{file:t}})}}class ve extends o.FtLitElement{constructor(){super(...arguments),this.dropHint="Drop your file here",this.accept="",this.fileTypeError="Unsupported file type",this.visible=!1,this.dragging=!1,this.fileError=!1}render(){let t={dragging:this.dragging,visible:this.visible};return e.html`
|
|
807
1032
|
<div id="container"
|
|
808
|
-
class="${
|
|
1033
|
+
class="${r.classMap(t)}"
|
|
809
1034
|
@dragenter=${this.onDragEnter}
|
|
810
1035
|
@dragover=${this.onDragOver}
|
|
811
1036
|
@drop=${this.onDrop}>
|
|
@@ -821,4 +1046,4 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
821
1046
|
</div>
|
|
822
1047
|
<slot></slot>
|
|
823
1048
|
</div>
|
|
824
|
-
`}onDragEnter(t){this.dragging=!0,t.preventDefault()}onDragOver(t){t.preventDefault()}onDragLeave(t){this.dragging=!1,t.preventDefault()}async onDrop(t){if(t.preventDefault(),t.dataTransfer&&t.dataTransfer.files){let
|
|
1049
|
+
`}onDragEnter(t){this.dragging=!0,t.preventDefault()}onDragOver(t){t.preventDefault()}onDragLeave(t){this.dragging=!1,t.preventDefault()}async onDrop(t){if(t.preventDefault(),t.dataTransfer&&t.dataTransfer.files){let o=t.dataTransfer.files[0];!function(t,o,e){if(0==t.length)return!0;let i=t.replace(/[.+?^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"|"),r=new RegExp(i),a=o.includes(".")?"."+o.split(".").pop():void 0;return!(!a||!r.test(a))||r.test(e)}(this.accept,o.name,o.type)?(this.fileError=!0,setTimeout((()=>{this.dragging=!1,this.fileError=!1}),2e3)):(this.dragging=!1,this.dispatchEvent(new Oe(o)))}}}ve.elementDefinitions={"ft-chip":be},ve.styles=me,xe([i.property()],ve.prototype,"dropHint",void 0),xe([i.property()],ve.prototype,"accept",void 0),xe([i.property()],ve.prototype,"fileTypeError",void 0),xe([i.property({type:Boolean})],ve.prototype,"visible",void 0),xe([i.state()],ve.prototype,"dragging",void 0),xe([i.state()],ve.prototype,"fileError",void 0),o.customElement("ft-file-drop")(ve),t.FileDropEvent=Oe,t.FtFileDrop=ve,t.FtFileDropCssVariables=ue,t.styles=me}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|