@fluid-topics/ft-reader-navigation-button 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.
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
!function(t,
|
|
1
|
+
!function(t,o,e,r,i,a){const n={outlineColor:o.FtCssVariableFactory.extend("--ft-reader-internal-link-outline-color","",o.designSystemVariables.colorPrimary)},l=e.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
a:focus {
|
|
7
|
-
outline-color: ${
|
|
7
|
+
outline-color: ${n.outlineColor};
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.ft-reader-link--remove-style {
|
|
11
11
|
text-decoration: none;
|
|
12
12
|
color: inherit;
|
|
13
13
|
}
|
|
14
|
-
`,
|
|
14
|
+
`,c=e.css`
|
|
15
15
|
ft-reader-internal-link {
|
|
16
|
-
${
|
|
16
|
+
${o.setVariable(n.outlineColor,"transparent")}
|
|
17
17
|
}
|
|
18
|
-
`,p=
|
|
18
|
+
`,p=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorContent),s={color:p,backgroundColor:o.FtCssVariableFactory.extend("--ft-ripple-background-color","",p),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")},f=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorPrimary),d=f,h=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",f),y=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorSecondary),g=y,b=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",y),u=e.css`
|
|
19
19
|
:host {
|
|
20
20
|
display: contents;
|
|
21
21
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
30
30
|
overflow: hidden;
|
|
31
|
-
border-radius: ${
|
|
31
|
+
border-radius: ${s.borderRadius};
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.ft-ripple .ft-ripple--background,
|
|
@@ -62,23 +62,23 @@
|
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.ft-ripple .ft-ripple--background {
|
|
65
|
-
background-color: ${
|
|
65
|
+
background-color: ${s.backgroundColor};
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.ft-ripple .ft-ripple--effect {
|
|
69
|
-
background-color: ${
|
|
69
|
+
background-color: ${s.color};
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
73
|
-
background-color: ${
|
|
73
|
+
background-color: ${b};
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
77
|
-
background-color: ${
|
|
77
|
+
background-color: ${g};
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
81
|
-
background-color: ${
|
|
81
|
+
background-color: ${h};
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
@@ -112,188 +112,124 @@
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
115
|
-
opacity: ${
|
|
115
|
+
opacity: ${s.opacityContentOnSurfaceHover};
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
119
|
-
opacity: ${
|
|
119
|
+
opacity: ${s.opacityContentOnSurfaceSelected};
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
123
|
-
opacity: ${
|
|
123
|
+
opacity: ${s.opacityContentOnSurfaceFocused};
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
127
|
-
opacity: ${
|
|
127
|
+
opacity: ${s.opacityContentOnSurfacePressed};
|
|
128
128
|
transform: translate(-50%, -50%) scale(1);
|
|
129
129
|
}
|
|
130
|
-
`;var v,b=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class m extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
131
|
-
<style>
|
|
132
|
-
.ft-ripple .ft-ripple--effect {
|
|
133
|
-
left: ${this.originX}px;
|
|
134
|
-
top: ${this.originY}px;
|
|
135
|
-
}
|
|
136
|
-
</style>
|
|
137
|
-
<div class="${n.classMap(t)}">
|
|
138
|
-
<div class="ft-ripple--background"></div>
|
|
139
|
-
<div class="ft-ripple--effect"></div>
|
|
140
|
-
</div>
|
|
141
|
-
`}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()}}m.elementDefinitions={},m.styles=y,b([o.property({type:Boolean})],m.prototype,"primary",void 0),b([o.property({type:Boolean})],m.prototype,"secondary",void 0),b([o.property({type:Boolean})],m.prototype,"unbounded",void 0),b([o.property({type:Boolean})],m.prototype,"activated",void 0),b([o.property({type:Boolean})],m.prototype,"selected",void 0),b([o.property({type:Boolean})],m.prototype,"disabled",void 0),b([o.state()],m.prototype,"hovered",void 0),b([o.state()],m.prototype,"focused",void 0),b([o.state()],m.prototype,"pressed",void 0),b([o.state()],m.prototype,"rippling",void 0),b([o.state()],m.prototype,"originX",void 0),b([o.state()],m.prototype,"originY",void 0),b([o.query(".ft-ripple")],m.prototype,"ripple",void 0),b([o.query(".ft-ripple--effect")],m.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(m);const $=window,w=$.trustedTypes,k=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,z="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,O="?"+S,C=`<${O}>`,I=document,N=()=>I.createComment(""),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,E=Array.isArray,T="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,M=/>/g,F=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),_=/'/g,Z=/"/g,R=/^(?:script|style|textarea|title)$/i,U=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),P=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),D=new WeakMap,K=I.createTreeWalker(I,129,null,!1),L=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=B;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===B?"!--"===a[1]?r=A:void 0!==a[1]?r=M:void 0!==a[2]?(R.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=F):void 0!==a[3]&&(r=F):r===F?">"===a[0]?(r=null!=n?n:B,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?F:'"'===a[3]?Z:_):r===Z||r===_?r=F:r===A||r===M?r=B:(r=F,n=void 0);const f=r===F&&t[i+1].startsWith("/>")?" ":"";s+=r===B?e+C:p>=0?(o.push(l),e.slice(0,p)+z+e.slice(p)+S+f):e+S+(-2===p?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==k?k.createHTML(l):l,o]};class H{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=L(t,i);if(this.el=H.createElement(a,e),K.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=K.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(z)||i.startsWith(S)){const e=p[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+z).split(S),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?Y:"?"===i[1]?Q:"@"===i[1]?tt:X})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(R.test(o.tagName)){const t=o.textContent.split(S),i=t.length-1;if(i>0){o.textContent=w?w.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],N()),K.nextNode(),l.push({type:2,index:++n});o.append(t[i],N())}}}else if(8===o.nodeType)if(o.data===O)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(S,t+1));)l.push({type:7,index:n}),t+=S.length-1}n++}}static createElement(t,i){const e=I.createElement("template");return e.innerHTML=t,e}}function G(t,i,e=t,o){var n,s,r,l;if(i===P)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=j(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=G(t,a._$AS(t,i.values),a,o)),i}class V{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:I).importNode(e,!0);K.currentNode=n;let s=K.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new q(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new it(s,this,t)),this._$AV.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=K.nextNode(),r++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class q{constructor(t,i,e,o){var n;this.type=2,this._$AH=W,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=G(this,t,i),j(t)?t===W||null==t||""===t?(this._$AH!==W&&this._$AR(),this._$AH=W):t!==this._$AH&&t!==P&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>E(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!==W&&j(this._$AH)?this._$AA.nextSibling.data=t:this.$(I.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=H.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 V(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 H(t)),i}T(t){E(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 q(this.k(N()),this.k(N()),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 X{constructor(t,i,e,o,n){this.type=1,this._$AH=W,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=W}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=G(this,t,i,0),s=!j(t)||t!==this._$AH&&t!==P,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=G(this,o[e+r],i,r),l===P&&(l=this._$AH[r]),s||(s=!j(l)||l!==this._$AH[r]),l===W?t=W:t!==W&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends X{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===W?void 0:t}}const J=w?w.emptyScript:"";class Q extends X{constructor(){super(...arguments),this.type=4}j(t){t&&t!==W?this.element.setAttribute(this.name,J):this.element.removeAttribute(this.name)}}class tt extends X{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=G(this,t,i,0))&&void 0!==e?e:W)===P)return;const o=this._$AH,n=t===W&&o!==W||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==W&&(o===W||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class it{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){G(this,t)}}const et=$.litHtmlPolyfillSupport;null==et||et(H,q),(null!==(v=$.litHtmlVersions)&&void 0!==v?v:$.litHtmlVersions=[]).push("2.7.3");
|
|
142
|
-
/**
|
|
143
|
-
* @license
|
|
144
|
-
* Copyright 2020 Google LLC
|
|
145
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
146
|
-
*/
|
|
147
|
-
const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void 0:t._$litStatic$},st=t=>({_$litStatic$:t,r:ot}),rt=new Map,lt=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(s=e[p],n=nt(s));)a+=n+i[++p],h=!0;p!==o&&l.push(s),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=rt.get(t))&&(r.raw=r,rt.set(t,i=r)),e=l}return t(i,...e)})(U);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"}(at||(at={}));const pt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),ht=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),ft={fontFamily:ht,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")},dt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",pt),ct=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",ft.fontSize,"20px"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",ft.fontWeight,"normal"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",ft.letterSpacing,"0.15px"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",ft.lineHeight,"1.2"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",ft.textTransform,"inherit"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",pt),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",ft.fontSize,"14px"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",ft.fontWeight,"normal"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",ft.letterSpacing,"0.105px"),wt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",ft.lineHeight,"1.7"),kt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",ft.textTransform,"inherit"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",ht),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",ft.fontSize,"16px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",ft.fontWeight,"600"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",ft.letterSpacing,"0.144px"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",ft.lineHeight,"1.5"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",ft.textTransform,"inherit"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",ht),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",ft.fontSize,"14px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",ft.fontWeight,"normal"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",ft.letterSpacing,"0.098px"),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",ft.lineHeight,"1.7"),Mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",ft.textTransform,"inherit"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",ht),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",ft.fontSize,"16px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",ft.fontWeight,"normal"),Rt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",ft.letterSpacing,"0.496px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",ft.lineHeight,"1.5"),Pt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",ft.textTransform,"inherit"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",ht),Dt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",ft.fontSize,"14px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",ft.fontWeight,"normal"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",ft.letterSpacing,"0.252px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",ft.lineHeight,"1.4"),Gt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",ft.textTransform,"inherit"),Vt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",ht),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",ft.fontSize,"12px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",ft.fontWeight,"normal"),Yt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",ft.letterSpacing,"0.396px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",ft.lineHeight,"1.33"),Qt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",ft.textTransform,"inherit"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",ht),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",ft.fontSize,"10px"),ei=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",ft.fontWeight,"normal"),oi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",ft.letterSpacing,"0.33px"),ni=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",ft.lineHeight,"1.6"),si=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",ft.textTransform,"inherit"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",ht),li=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",ft.fontSize,"10px"),ai=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",ft.fontWeight,"normal"),pi=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",ft.letterSpacing,"1.5px"),hi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",ft.lineHeight,"1.6"),fi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",ft.textTransform,"uppercase"),di={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",ht),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",ft.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",ft.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",ft.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",ft.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",ft.textTransform,"uppercase")},ci=e.css`
|
|
130
|
+
`,m=t=>"string"==typeof t?e.unsafeCSS(t):t;class x{static create(t,o,r,i){const a=t=>m(null!=t?t:i),n=e.css`var(${m(t)}, ${a(i)})`;return n.name=t,n.description=t,n.category=r,n.defaultValue=i,n.defaultCssValue=a,n.get=o=>e.css`var(${m(t)}, ${a(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,o,r,i){const a=t=>r.get(null!=t?t:i),n=e.css`var(${m(t)}, ${a(i)})`;return n.name=t,n.description=o,n.category=r.category,n.fallbackVariable=r,n.defaultValue=i,n.defaultCssValue=a,n.get=o=>e.css`var(${m(t)}, ${a(o)})`,n.breadcrumb=()=>[r.name,...r.breadcrumb()],n.lastResortDefaultValue=()=>null!=i?i:r.lastResortDefaultValue(),n}static external(t,o){const r=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):m(null!=o?o:t.lastResortDefaultValue()),i=e.css`var(${m(t.name)}, ${r(t.defaultValue)})`;return i.name=t.name,i.category=t.category,i.fallbackVariable=t.fallbackVariable,i.defaultValue=t.defaultValue,i.context=o,i.defaultCssValue=r,i.get=o=>e.css`var(${m(t.name)}, ${r(o)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}const O={colorWhite:x.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:x.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:x.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:x.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:x.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:x.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:x.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:x.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:x.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:x.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:x.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:x.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:x.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:x.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:x.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:x.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:x.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:x.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:x.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:x.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:x.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:x.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:x.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:x.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:x.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:x.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:x.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:x.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:x.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:x.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:x.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:x.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:x.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:x.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:x.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:x.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:x.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:x.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:x.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:x.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:x.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:x.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:x.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:x.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:x.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:x.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:x.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:x.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:x.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:x.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:x.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:x.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:x.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:x.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:x.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:x.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:x.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:x.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:x.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:x.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:x.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:x.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:x.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:x.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:x.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:x.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:x.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:x.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:x.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:x.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:x.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:x.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:x.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:x.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:x.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:x.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:x.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:x.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:x.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:x.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:x.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:x.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:x.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:x.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:x.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:x.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:x.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:x.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:x.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:x.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:x.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:x.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:x.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:x.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:x.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:x.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:x.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:x.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:x.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:x.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:x.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:x.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:x.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:x.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:x.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:x.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:x.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:x.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:x.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:x.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:x.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:x.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:x.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:x.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:x.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:x.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:x.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:x.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:x.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:x.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:x.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:x.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:x.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:x.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:x.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:x.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:x.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:x.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:x.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:x.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:x.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:x.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:x.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:x.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:x.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:x.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:x.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:x.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:x.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:x.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:x.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:x.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:x.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:x.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:x.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:x.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:x.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:x.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:x.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:x.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:x.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:x.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:x.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:x.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:x.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:x.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:x.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:x.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:x.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:x.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:x.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:x.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:x.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:x.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:x.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:x.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:x.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:x.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:x.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:x.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:x.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:x.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:x.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:x.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:x.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:x.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:x.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:x.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:x.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:x.create("--ft-icon-size-6","","SIZE","48px"),opacity0:x.create("--ft-opacity-0","","NUMBER","0"),opacity8:x.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:x.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:x.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:x.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:x.create("--ft-opacity-80","","NUMBER","0.8")},v={display:{fontFamily:x.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:x.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:x.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:x.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:x.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:x.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:x.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:x.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:x.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:x.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:x.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:x.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:x.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:x.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:x.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:x.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:x.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:x.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:x.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:x.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:x.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:x.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:x.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:x.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:x.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:x.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:x.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:x.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:x.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:x.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:x.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:x.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:x.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:x.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:x.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:x.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:x.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:x.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:x.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:x.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:x.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:x.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:x.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:x.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:x.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:x.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:x.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:x.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:x.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:x.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:x.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:x.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:x.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:x.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:x.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:x.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:x.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:x.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:x.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:x.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:x.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:x.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:x.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:x.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:x.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:x.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:x.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:x.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:x.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:x.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:x.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:x.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:x.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:x.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:x.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:x.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:x.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:x.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:x.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:x.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:x.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:x.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:x.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:x.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:x.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:x.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:x.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:x.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:x.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:x.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:x.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:x.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:x.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:x.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:x.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:x.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:x.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:x.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:x.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:x.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:x.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:x.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:x.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:x.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:x.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:x.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:x.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:x.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:x.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:x.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:x.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:x.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:x.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:x.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:x.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:x.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:x.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:x.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:x.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:x.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:x.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:x.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:x.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:x.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:x.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:x.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:x.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:x.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:x.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:x.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:x.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:x.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:x.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:x.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:x.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},N={backgroundActionPrimary:x.extend("--ft-background-action-primary","Used as backgorund of primary action components.",O.colorBrand0),backgroundErrorPrimary:x.extend("--ft-background-error-primary","Used as background of error components.",O.colorRed0),backgroundErrorSubtle:x.extend("--ft-background-error-subtle","Used as background of subtle error components.",O.colorRed10),backgroundInfoPrimary:x.extend("--ft-background-info-primary","Used as background of information components.",O.colorCyan200),backgroundInfoSubtle:x.extend("--ft-background-info-subtle","Used as background of subtle information components.",O.colorCyan10),backgroundWarningPrimary:x.extend("--ft-background-warning-primary","Used as background of warning components.",O.colorOrange300),backgroundWarningSubtle:x.extend("--ft-background-warning-subtle","Used as background of subtle information components.",O.colorOrange10),backgroundSuccessPrimary:x.extend("--ft-background-success-primary","Used as background of success components.",O.colorGreen200),backgroundSuccessSubtle:x.extend("--ft-background-success-subtle","Used as background of subtle success components.",O.colorGreen10),backgroundGlobalSurface:x.extend("--ft-background-global-surface","Used as app background.",O.colorWhite),backgroundGlobalOnSurface:x.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",O.colorGray10),backgroundGlobalOnSurfaceDark:x.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",O.colorGray30),contentActionPrimary:x.extend("--ft-content-action-primary","Used on label of primary action on light surface.",O.colorBrand0),contentWarningPrimary:x.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",O.colorOrange300),contentWarningIconOnly:x.extend("--ft-content-warning-icon-only","Used on warning status icons alone",O.colorOrange0),contentErrorPrimary:x.extend("--ft-content-error-primary","Used on label of error messages on light surface.",O.colorRed0),contentErrorIconOnly:x.extend("--ft-content-error-icon-only","Used on error status icons alone",O.colorRed0),contentInfoPrimary:x.extend("--ft-content-info-primary","Used on label of information messages on light surface.",O.colorCyan200),contentInfoIconOnly:x.extend("--ft-content-info-icon-only","Used on info status icons alone",O.colorCyan0),contentSuccessIconOnly:x.extend("--ft-content-success-icon-only","Used on success status icons alone",O.colorGreen0),contentSuccessPrimary:x.extend("--ft-content-success-primary","Used on label of success messages on light surface.",O.colorGreen200),contentGlobalPrimary:x.extend("--ft-content-global-primary","Used for main content on the page.",O.colorGray500),contentGlobalSecondary:x.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",O.colorGray200),contentGlobalSubtle:x.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",O.colorGray0),contentGlobalOnColor:x.extend("--ft-content-global-on-color","Used for content on a dominant color.",O.colorWhite),borderActionPrimary:x.extend("--ft-border-action-primary","Used as border for primary action components.",O.colorBrand0),borderActionFocusRing:x.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",O.colorCyan0),borderWarningPrimary:x.extend("--ft-border-warning-primary","Used as border for warning components.",O.colorOrange30),borderSuccessPrimary:x.extend("--ft-border-success-primary","Used as border for success components.",O.colorGreen30),borderErrorPrimary:x.extend("--ft-border-error-primary","Used as border for error components.",O.colorRed30),borderInfoPrimary:x.extend("--ft-border-info-primary","Used as border for information components.",O.colorCyan30),borderGlobalSubtle:x.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",O.colorGray30),borderGlobalPrimary:x.extend("--ft-border-global-primary","Used as border for element like input.",O.colorGray50),borderInputPrimary:x.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",O.colorGray80)},S={largeHeight:x.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:x.extend("--ft-button-large-horizontal-padding","",O.spacing4),largeGap:x.extend("--ft-button-large-gap","",O.spacing2),largeBorderRadius:x.extend("--ft-button-large-border-radius","",O.borderRadiusS),largeIconSize:x.extend("--ft-button-large-icon-size","",O.iconSize3),largeBorderWidth:x.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:x.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:x.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:x.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:x.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:x.extend("--ft-button-small-horizontal-padding","",O.spacing3),smallGap:x.extend("--ft-button-small-gap","",O.spacing2),smallBorderRadius:x.extend("--ft-button-small-border-radius","",O.borderRadiusS),smallIconSize:x.extend("--ft-button-small-icon-size","",O.iconSize2),smallBorderWidth:x.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:x.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:x.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:x.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:x.extend("--ft-button-primary-background-color","",N.backgroundActionPrimary),primaryColor:x.extend("--ft-button-primary-color","",N.contentGlobalOnColor),primaryIconColor:x.extend("--ft-button-primary-icon-color","",N.contentGlobalOnColor),primaryStateLayerColor:x.extend("--ft-button-primary-state-layer-color","",N.contentGlobalOnColor),primaryStateLayerOpacityHover:x.extend("--ft-button-primary-state-layer-opacity-hover","",O.opacity16),primaryStateLayerOpacityFocus:x.extend("--ft-button-primary-state-layer-opacity-focus","",O.opacity16),primaryStateLayerOpacityActive:x.extend("--ft-button-primary-state-layer-opacity-active","",O.opacity24),primaryComponentOpacityDisabled:x.extend("--ft-button-primary-component-opacity-disabled","",O.opacity40),focusFocusRingColor:x.extend("--ft-button-focus-focus-ring-color","",N.borderActionFocusRing),tertiaryBackgroundColor:x.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:x.extend("--ft-button-tertiary-color","",N.contentActionPrimary),tertiaryIconColor:x.extend("--ft-button-tertiary-icon-color","",N.contentActionPrimary),tertiaryStateLayerColor:x.extend("--ft-button-tertiary-state-layer-color","",N.contentActionPrimary),tertiaryStateLayerOpacityHover:x.extend("--ft-button-tertiary-state-layer-opacity-hover","",O.opacity8),tertiaryStateLayerOpacityFocus:x.extend("--ft-button-tertiary-state-layer-opacity-focus","",O.opacity8),tertiaryStateLayerOpacityActive:x.extend("--ft-button-tertiary-state-layer-opacity-active","",O.opacity16),tertiaryComponentOpacityDisabled:x.extend("--ft-button-tertiary-component-opacity-disabled","",O.opacity40),secondaryBackgroundColor:x.extend("--ft-button-secondary-background-color","",O.colorWhite),secondaryColor:x.extend("--ft-button-secondary-color","",N.contentActionPrimary),secondaryIconColor:x.extend("--ft-button-secondary-icon-color","",N.contentActionPrimary),secondaryStateLayerColor:x.extend("--ft-button-secondary-state-layer-color","",N.contentActionPrimary),secondaryStateLayerOpacityHover:x.extend("--ft-button-secondary-state-layer-opacity-hover","",O.opacity8),secondaryStateLayerOpacityFocus:x.extend("--ft-button-secondary-state-layer-opacity-focus","",O.opacity8),secondaryStateLayerOpacityActive:x.extend("--ft-button-secondary-state-layer-opacity-active","",O.opacity16),secondaryComponentOpacityDisabled:x.extend("--ft-button-secondary-component-opacity-disabled","",O.opacity40),secondaryBorderColor:x.extend("--ft-button-secondary-border-color","",N.borderActionPrimary),neutralBackgroundColor:x.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:x.extend("--ft-button-neutral-icon-color","",N.contentGlobalSecondary),neutralColor:x.extend("--ft-button-neutral-color","",N.contentGlobalSecondary),neutralStateLayerColor:x.extend("--ft-button-neutral-state-layer-color","",N.contentGlobalSecondary),neutralStateLayerOpacityHover:x.extend("--ft-button-neutral-state-layer-opacity-hover","",O.opacity8),neutralStateLayerOpacityFocus:x.extend("--ft-button-neutral-state-layer-opacity-focus","",O.opacity8),neutralStateLayerOpacityActive:x.extend("--ft-button-neutral-state-layer-opacity-active","",O.opacity16),neutralComponentOpacityDisabled:x.extend("--ft-button-neutral-component-opacity-disabled","",O.opacity40)};x.extend("--ft-tabs-top-left-border-radius","",O.borderRadiusS),x.extend("--ft-tabs-top-right-border-radius","",O.borderRadiusS),x.extend("--ft-tabs-label-horizontal-padding","",O.spacing4),x.extend("--ft-tabs-label-vertical-padding","",O.spacing3),x.extend("--ft-tabs-label-gap","",O.spacing1),x.extend("--ft-switch-group-horizontal-padding","",O.spacing1),x.extend("--ft-switch-group-vertical-padding","",O.spacing1),x.extend("--ft-switch-group-gap","",O.spacing1),x.extend("--ft-switch-group-background-color","",N.backgroundGlobalSurface),x.extend("--ft-switch-group-border-color","",N.borderGlobalSubtle),x.create("--ft-switch-group-border-radius","","SIZE","6px"),x.extend("--ft-switch-label-horizontal-padding","",O.spacing2),x.extend("--ft-switch-label-vertical-padding","",O.spacing1),x.extend("--ft-switch-icon-horizontal-padding","",O.spacing1),x.extend("--ft-switch-icon-vertical-padding","",O.spacing1),x.create("--ft-switch-focus-outline-width","","SIZE","2px"),x.extend("--ft-switch-focus-focus-ring-color","",N.borderActionFocusRing),x.extend("--ft-switch-option-border-radius","",O.borderRadiusS),x.extend("--ft-switch-off-state-layer-opacity-hover","",O.opacity8),x.extend("--ft-switch-off-state-layer-opacity-focus","",O.opacity8),x.extend("--ft-switch-off-state-layer-opacity-active","",O.opacity16),x.extend("--ft-switch-off-component-opacity-disabled","",O.opacity40),x.extend("--ft-switch-off-color","",N.contentGlobalSubtle),x.extend("--ft-switch-off-state-layer-color","",N.contentGlobalSubtle),x.extend("--ft-chart-1-light","for area color charts",O.colorBrand40),x.extend("--ft-chart-1-base","for line charts",O.colorBrand0),x.extend("--ft-chart-2-light","for area color charts",O.colorYellow60),x.extend("--ft-chart-2-base","for line charts",O.colorYellow100),x.extend("--ft-chart-3-light","",O.colorUltramarine40),x.extend("--ft-chart-3-base","",O.colorUltramarine70),x.extend("--ft-chart-4-light","",O.colorCyan50),x.extend("--ft-chart-4-base","",O.colorCyan100),x.extend("--ft-chart-5-light","",O.colorRed40),x.extend("--ft-chart-5-base","",O.colorRed60),x.extend("--ft-chart-6-light","",O.colorGreen40),x.extend("--ft-chart-6-base","",O.colorGreen70),x.extend("--ft-chart-7-light","",O.colorOrange70),x.extend("--ft-chart-7-base","",O.colorOrange100),x.extend("--ft-chart-8-light","",O.colorAvocado70),x.extend("--ft-chart-8-base","",O.colorAvocado200),x.extend("--ft-chart-9-light","",O.colorBrown50),x.extend("--ft-chart-9-base","",O.colorBrown200),x.extend("--ft-chart-10-light","",O.colorGray50),x.extend("--ft-chart-10-base","",O.colorGray80),x.extend("--ft-chart-monochrome-10","",O.colorBrand10),x.extend("--ft-chart-monochrome-20","",O.colorBrand20),x.extend("--ft-chart-monochrome-30","",O.colorBrand40),x.extend("--ft-chart-monochrome-40","",O.colorBrand60),x.extend("--ft-chart-monochrome-50","",O.colorBrand0),x.extend("--ft-chart-monochrome-60","",O.colorBrand200),x.extend("--ft-chip-large-horizontal-padding","",O.spacing4),x.extend("--ft-chip-large-vertical-padding","",O.spacing2),x.extend("--ft-chip-large-gap","",O.spacing1),x.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),x.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),x.extend("--ft-chip-large-border-radius","",O.borderRadiusPill),x.create("--ft-chip-large-border-width","","SIZE","1px"),x.extend("--ft-chip-large-icon-size","",O.iconSize3),x.extend("--ft-chip-medium-horizontal-padding","",O.spacing3),x.extend("--ft-chip-medium-vertical-padding","",O.spacing1),x.extend("--ft-chip-medium-gap","",O.spacing1),x.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),x.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),x.extend("--ft-chip-medium-border-radius","",O.borderRadiusPill),x.create("--ft-chip-medium-border-width","","SIZE","1px"),x.extend("--ft-chip-medium-icon-size","",O.iconSize2),x.extend("--ft-chip-small-horizontal-padding","",O.spacing2),x.extend("--ft-chip-small-vertical-padding","",O.spacing05),x.extend("--ft-chip-small-gap","",O.spacing1),x.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),x.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),x.extend("--ft-chip-small-border-radius","",O.borderRadiusPill),x.create("--ft-chip-small-border-width","","SIZE","1px"),x.extend("--ft-chip-small-icon-size","",O.iconSize1),x.extend("--ft-chip-neutral-background-color","",N.backgroundGlobalOnSurface),x.extend("--ft-chip-neutral-color","",N.contentGlobalPrimary),x.extend("--ft-chip-neutral-border-color","",N.borderGlobalSubtle),x.extend("--ft-chip-info-background-color","",N.backgroundInfoSubtle),x.extend("--ft-chip-info-color","",N.contentInfoPrimary),x.extend("--ft-chip-info-border-color","",N.borderInfoPrimary),x.extend("--ft-chip-success-background-color","",N.backgroundSuccessSubtle),x.extend("--ft-chip-success-color","",N.contentSuccessPrimary),x.extend("--ft-chip-success-border-color","",N.borderSuccessPrimary),x.extend("--ft-chip-warning-background-color","",N.backgroundWarningSubtle),x.extend("--ft-chip-warning-color","",N.contentWarningPrimary),x.extend("--ft-chip-warning-border-color","",N.borderWarningPrimary),x.extend("--ft-chip-error-background-color","",N.backgroundErrorSubtle),x.extend("--ft-chip-error-color","",N.contentErrorPrimary),x.extend("--ft-chip-error-border-color","",N.borderErrorPrimary),x.create("--ft-notice-border-width","","SIZE","1px"),x.extend("--ft-notice-horizontal-padding","",O.spacing2),x.extend("--ft-notice-vertical-padding","",O.spacing1),x.extend("--ft-notice-border-radius","",O.borderRadiusS),x.extend("--ft-notice-gap","",O.spacing2),x.extend("--ft-notice-icon-size","",O.iconSize3),x.extend("--ft-notice-info-background-color","",N.backgroundInfoSubtle),x.extend("--ft-notice-info-border-color","",N.borderInfoPrimary),x.extend("--ft-notice-info-color","",N.contentInfoPrimary),x.extend("--ft-notice-warning-background-color","",N.backgroundWarningSubtle),x.extend("--ft-notice-warning-border-color","",N.borderWarningPrimary),x.extend("--ft-notice-warning-color","",N.contentWarningPrimary),x.extend("--ft-checkbox-label-color","",N.contentGlobalPrimary),x.extend("--ft-checkbox-checked-background-color","",N.contentActionPrimary),x.extend("--ft-checkbox-checked-state-layer-color","",N.contentActionPrimary),x.extend("--ft-checkbox-checked-color","",N.contentGlobalOnColor),x.extend("--ft-checkbox-checked-state-layer-opacity-hover","",O.opacity16),x.extend("--ft-checkbox-checked-state-layer-opacity-focus","",O.opacity16),x.extend("--ft-checkbox-checked-state-layer-opacity-active","",O.opacity24),x.extend("--ft-checkbox-checked-component-opacity-disabled","",O.opacity40),x.extend("--ft-checkbox-unchecked-border-color","",O.colorGray80),x.extend("--ft-checkbox-unchecked-state-layer-color","",O.colorGray80),x.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",O.opacity16),x.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",O.opacity16),x.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",O.opacity24),x.extend("--ft-checkbox-unchecked-component-opacity-disabled","",O.opacity40),x.extend("--ft-checkbox-focus-focus-ring-color","",N.borderActionFocusRing),x.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),x.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),x.extend("--ft-checkbox-gap","",O.spacing3),x.extend("--ft-toggle-off-state-layer-opacity-hover","",O.opacity16),x.extend("--ft-toggle-off-state-layer-opacity-focus","",O.opacity16),x.extend("--ft-toggle-off-state-layer-opacity-active","",O.opacity24),x.extend("--ft-toggle-off-component-opacity-disabled","",O.opacity40),x.extend("--ft-toggle-off-background-color","",N.contentGlobalSubtle),x.extend("--ft-toggle-off-icon-color","",N.contentGlobalSubtle),x.extend("--ft-toggle-off-state-layer-color","",N.contentGlobalSubtle),x.extend("--ft-toggle-on-state-layer-opacity-hover","",O.opacity16),x.extend("--ft-toggle-on-state-layer-opacity-focus","",O.opacity16),x.extend("--ft-toggle-on-state-layer-opacity-active","",O.opacity24),x.extend("--ft-toggle-on-component-opacity-disabled","",O.opacity40),x.extend("--ft-toggle-on-background-color","",N.contentActionPrimary),x.extend("--ft-toggle-on-icon-color","",N.contentActionPrimary),x.extend("--ft-toggle-on-state-layer-color","",N.contentActionPrimary),x.extend("--ft-toggle-label-color","",N.contentGlobalPrimary),x.extend("--ft-toggle-focus-focus-ring-color","",N.borderActionFocusRing),x.extend("--ft-toggle-gap","",O.spacing3),x.extend("--ft-radio-label-color","",N.contentGlobalPrimary),x.extend("--ft-radio-selected-color","",N.contentActionPrimary),x.extend("--ft-radio-selected-state-layer-color","",N.contentActionPrimary),x.extend("--ft-radio-selected-state-layer-opacity-hover","",O.opacity16),x.extend("--ft-radio-selected-state-layer-opacity-focus","",O.opacity16),x.extend("--ft-radio-selected-state-layer-opacity-active","",O.opacity24),x.extend("--ft-radio-selected-component-opacity-disabled","",O.opacity40),x.extend("--ft-radio-unselected-state-layer-color","",O.colorGray80),x.extend("--ft-radio-unselected-state-layer-opacity-hover","",O.opacity16),x.extend("--ft-radio-unselected-state-layer-opacity-focus","",O.opacity16),x.extend("--ft-radio-unselected-state-layer-opacity-active","",O.opacity24),x.extend("--ft-radio-unselected-component-opacity-disabled","",O.opacity40),x.extend("--ft-radio-focus-focus-ring-color","",N.borderActionFocusRing),x.create("--ft-radio-focus-outline-offset","","SIZE","3px"),x.create("--ft-radio-focus-outline-width","","SIZE","2px"),x.extend("--ft-radio-gap","",O.spacing3),x.extend("--ft-notification-icon-size","",O.iconSize4),x.extend("--ft-notification-horizontal-padding","",O.spacing4),x.extend("--ft-notification-vertical-padding","",O.spacing4),x.extend("--ft-notification-info-background-color","",N.backgroundInfoSubtle),x.extend("--ft-notification-info-color","",N.contentInfoPrimary),x.extend("--ft-notification-info-border-color","",N.borderInfoPrimary),x.extend("--ft-notification-success-background-color","",N.backgroundSuccessSubtle),x.extend("--ft-notification-success-color","",N.contentSuccessPrimary),x.extend("--ft-notification-success-border-color","",N.borderSuccessPrimary),x.extend("--ft-notification-warning-background-color","",N.backgroundWarningSubtle),x.extend("--ft-notification-warning-color","",N.contentWarningPrimary),x.extend("--ft-notification-warning-border-color","",N.borderWarningPrimary),x.extend("--ft-notification-error-background-color","",N.backgroundErrorSubtle),x.extend("--ft-notification-error-color","",N.contentErrorPrimary),x.extend("--ft-notification-error-border-color","",N.borderErrorPrimary),x.extend("--ft-notification-border-radius","",O.borderRadiusPill),x.create("--ft-notification-border-width","","SIZE","1px"),x.extend("--ft-notification-gap-leading","",O.spacing2),x.extend("--ft-notification-gap-trailing","",O.spacing8);const C=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),$=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),w={fontFamily:$,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},I=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",C),R=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",w.fontSize,"20px"),U=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",w.fontWeight,"normal"),W=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",w.letterSpacing,"0.15px"),k=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",w.lineHeight,"1.2"),E=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",w.textTransform,"inherit"),L=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",C),K=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",w.fontSize,"14px"),Z=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",w.fontWeight,"normal"),z=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",w.letterSpacing,"0.105px"),F=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",w.lineHeight,"1.7"),B=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",w.textTransform,"inherit"),D=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",$),A=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",w.fontSize,"16px"),H=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",w.fontWeight,"600"),G=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",w.letterSpacing,"0.144px"),j=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",w.lineHeight,"1.5"),P=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",w.textTransform,"inherit"),T=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",$),M=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",w.fontSize,"14px"),_=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",w.fontWeight,"normal"),Y=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",w.letterSpacing,"0.098px"),V=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",w.lineHeight,"1.7"),q=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",w.textTransform,"inherit"),X=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",$),J=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",w.fontSize,"16px"),Q=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",w.fontWeight,"normal"),tt=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",w.letterSpacing,"0.496px"),ot=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",w.lineHeight,"1.5"),et=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",w.textTransform,"inherit"),rt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",$),it=o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",w.fontSize,"14px"),at=o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",w.fontWeight,"normal"),nt=o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",w.letterSpacing,"0.252px"),lt=o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",w.lineHeight,"1.4"),ct=o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",w.textTransform,"inherit"),pt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",$),st=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",w.fontSize,"12px"),ft=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",w.fontWeight,"normal"),dt=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",w.letterSpacing,"0.396px"),ht=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",w.lineHeight,"1.33"),yt=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",w.textTransform,"inherit"),gt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",$),bt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",w.fontSize,"10px"),ut=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",w.fontWeight,"normal"),mt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",w.letterSpacing,"0.33px"),xt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",w.lineHeight,"1.6"),Ot=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",w.textTransform,"inherit"),vt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",$),Nt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",w.fontSize,"10px"),St=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",w.fontWeight,"normal"),Ct=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",w.letterSpacing,"1.5px"),$t=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",w.lineHeight,"1.6"),wt=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",w.textTransform,"uppercase"),It={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",$),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",w.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",w.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",w.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",w.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",w.textTransform,"uppercase")},Rt=e.css`
|
|
148
131
|
.ft-typography--title {
|
|
149
|
-
font-family: ${
|
|
150
|
-
font-size: ${
|
|
151
|
-
font-weight: ${
|
|
152
|
-
letter-spacing: ${
|
|
153
|
-
line-height: ${
|
|
154
|
-
text-transform: ${
|
|
155
|
-
}
|
|
156
|
-
`,
|
|
132
|
+
font-family: ${I};
|
|
133
|
+
font-size: ${R};
|
|
134
|
+
font-weight: ${U};
|
|
135
|
+
letter-spacing: ${W};
|
|
136
|
+
line-height: ${k};
|
|
137
|
+
text-transform: ${E};
|
|
138
|
+
}
|
|
139
|
+
`,Ut=e.css`
|
|
157
140
|
.ft-typography--title-dense {
|
|
158
|
-
font-family: ${
|
|
159
|
-
font-size: ${
|
|
160
|
-
font-weight: ${
|
|
161
|
-
letter-spacing: ${
|
|
162
|
-
line-height: ${
|
|
163
|
-
text-transform: ${
|
|
164
|
-
}
|
|
165
|
-
`,
|
|
141
|
+
font-family: ${L};
|
|
142
|
+
font-size: ${K};
|
|
143
|
+
font-weight: ${Z};
|
|
144
|
+
letter-spacing: ${z};
|
|
145
|
+
line-height: ${F};
|
|
146
|
+
text-transform: ${B};
|
|
147
|
+
}
|
|
148
|
+
`,Wt=e.css`
|
|
166
149
|
.ft-typography--subtitle1 {
|
|
167
|
-
font-family: ${
|
|
168
|
-
font-size: ${
|
|
169
|
-
font-weight: ${
|
|
170
|
-
letter-spacing: ${
|
|
171
|
-
line-height: ${
|
|
172
|
-
text-transform: ${
|
|
173
|
-
}
|
|
174
|
-
`,
|
|
150
|
+
font-family: ${D};
|
|
151
|
+
font-size: ${A};
|
|
152
|
+
font-weight: ${H};
|
|
153
|
+
letter-spacing: ${G};
|
|
154
|
+
line-height: ${j};
|
|
155
|
+
text-transform: ${P};
|
|
156
|
+
}
|
|
157
|
+
`,kt=e.css`
|
|
175
158
|
.ft-typography--subtitle2 {
|
|
176
|
-
font-family: ${
|
|
177
|
-
font-size: ${
|
|
178
|
-
font-weight: ${
|
|
179
|
-
letter-spacing: ${
|
|
180
|
-
line-height: ${
|
|
181
|
-
text-transform: ${
|
|
159
|
+
font-family: ${T};
|
|
160
|
+
font-size: ${M};
|
|
161
|
+
font-weight: ${_};
|
|
162
|
+
letter-spacing: ${Y};
|
|
163
|
+
line-height: ${V};
|
|
164
|
+
text-transform: ${q};
|
|
182
165
|
}
|
|
183
166
|
|
|
184
|
-
`,
|
|
167
|
+
`,Et=e.css`
|
|
185
168
|
.ft-typography--body1 {
|
|
186
|
-
font-family: ${
|
|
187
|
-
font-size: ${
|
|
188
|
-
font-weight: ${
|
|
189
|
-
letter-spacing: ${
|
|
190
|
-
line-height: ${
|
|
191
|
-
text-transform: ${
|
|
192
|
-
}
|
|
193
|
-
`,
|
|
169
|
+
font-family: ${X};
|
|
170
|
+
font-size: ${J};
|
|
171
|
+
font-weight: ${Q};
|
|
172
|
+
letter-spacing: ${tt};
|
|
173
|
+
line-height: ${ot};
|
|
174
|
+
text-transform: ${et};
|
|
175
|
+
}
|
|
176
|
+
`,Lt=e.css`
|
|
194
177
|
.ft-typography--body2 {
|
|
195
|
-
font-family: ${
|
|
196
|
-
font-size: ${
|
|
197
|
-
font-weight: ${
|
|
198
|
-
letter-spacing: ${
|
|
199
|
-
line-height: ${
|
|
200
|
-
text-transform: ${
|
|
201
|
-
}
|
|
202
|
-
`,
|
|
178
|
+
font-family: ${rt};
|
|
179
|
+
font-size: ${it};
|
|
180
|
+
font-weight: ${at};
|
|
181
|
+
letter-spacing: ${nt};
|
|
182
|
+
line-height: ${lt};
|
|
183
|
+
text-transform: ${ct};
|
|
184
|
+
}
|
|
185
|
+
`,Kt=e.css`
|
|
203
186
|
.ft-typography--caption {
|
|
204
|
-
font-family: ${
|
|
205
|
-
font-size: ${
|
|
206
|
-
font-weight: ${
|
|
207
|
-
letter-spacing: ${
|
|
208
|
-
line-height: ${
|
|
209
|
-
text-transform: ${
|
|
210
|
-
}
|
|
211
|
-
`,
|
|
187
|
+
font-family: ${pt};
|
|
188
|
+
font-size: ${st};
|
|
189
|
+
font-weight: ${ft};
|
|
190
|
+
letter-spacing: ${dt};
|
|
191
|
+
line-height: ${ht};
|
|
192
|
+
text-transform: ${yt};
|
|
193
|
+
}
|
|
194
|
+
`,Zt=e.css`
|
|
212
195
|
.ft-typography--breadcrumb {
|
|
213
|
-
font-family: ${
|
|
214
|
-
font-size: ${
|
|
215
|
-
font-weight: ${
|
|
216
|
-
letter-spacing: ${
|
|
217
|
-
line-height: ${
|
|
218
|
-
text-transform: ${
|
|
219
|
-
}
|
|
220
|
-
|
|
196
|
+
font-family: ${gt};
|
|
197
|
+
font-size: ${bt};
|
|
198
|
+
font-weight: ${ut};
|
|
199
|
+
letter-spacing: ${mt};
|
|
200
|
+
line-height: ${xt};
|
|
201
|
+
text-transform: ${Ot};
|
|
202
|
+
}
|
|
203
|
+
`,zt=e.css`
|
|
221
204
|
.ft-typography--overline {
|
|
222
|
-
font-family: ${
|
|
223
|
-
font-size: ${
|
|
224
|
-
font-weight: ${
|
|
225
|
-
letter-spacing: ${
|
|
226
|
-
line-height: ${
|
|
227
|
-
text-transform: ${
|
|
228
|
-
}
|
|
229
|
-
`,
|
|
205
|
+
font-family: ${vt};
|
|
206
|
+
font-size: ${Nt};
|
|
207
|
+
font-weight: ${St};
|
|
208
|
+
letter-spacing: ${Ct};
|
|
209
|
+
line-height: ${$t};
|
|
210
|
+
text-transform: ${wt};
|
|
211
|
+
}
|
|
212
|
+
`,Ft=e.css`
|
|
230
213
|
.ft-typography--button {
|
|
231
|
-
font-family: ${
|
|
232
|
-
font-size: ${
|
|
233
|
-
font-weight: ${
|
|
234
|
-
letter-spacing: ${
|
|
235
|
-
line-height: ${
|
|
236
|
-
text-transform: ${
|
|
237
|
-
}
|
|
238
|
-
`,
|
|
214
|
+
font-family: ${It.fontFamily};
|
|
215
|
+
font-size: ${It.fontSize};
|
|
216
|
+
font-weight: ${It.fontWeight};
|
|
217
|
+
letter-spacing: ${It.letterSpacing};
|
|
218
|
+
line-height: ${It.lineHeight};
|
|
219
|
+
text-transform: ${It.textTransform};
|
|
220
|
+
}
|
|
221
|
+
`,Bt=e.css`
|
|
239
222
|
.ft-typography {
|
|
240
223
|
vertical-align: inherit;
|
|
241
224
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
.ft-tooltip--container {
|
|
251
|
-
display: block;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.ft-tooltip--inline {
|
|
255
|
-
display: inline-block;
|
|
256
|
-
max-width: 100%;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
.ft-tooltip {
|
|
260
|
-
position: absolute;
|
|
261
|
-
box-sizing: border-box;
|
|
262
|
-
overflow: hidden;
|
|
263
|
-
width: max-content;
|
|
264
|
-
max-width: ${Ei};
|
|
265
|
-
text-align: center;
|
|
266
|
-
padding: ${Oi};
|
|
267
|
-
z-index: ${Ni};
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
.ft-tooltip--content {
|
|
271
|
-
padding: 4px 8px;
|
|
272
|
-
border-radius: ${ji};
|
|
273
|
-
background-color: ${Ii};
|
|
274
|
-
color: ${Ci};
|
|
275
|
-
position: relative;
|
|
276
|
-
word-break: break-word;
|
|
277
|
-
}
|
|
278
|
-
`;var Bi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ai 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`
|
|
279
|
-
<div part="container"
|
|
280
|
-
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
281
|
-
@mouseenter=${this.onHover}
|
|
282
|
-
@mouseleave=${this.onOut}
|
|
283
|
-
@focusin=${this.onHover}
|
|
284
|
-
@focusout=${this.onOut}
|
|
285
|
-
@touchstart=${this.onTouch}>
|
|
286
|
-
<slot></slot>
|
|
287
|
-
<div part="tooltip" role="tooltip" inert
|
|
288
|
-
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
289
|
-
?hidden=${!this.visible}>
|
|
290
|
-
<div part="tooltip-content" class="ft-tooltip--content">
|
|
291
|
-
<slot name="text"></slot>
|
|
292
|
-
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
293
|
-
</div>
|
|
294
|
-
</div>
|
|
295
|
-
</div>
|
|
296
|
-
`}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 s=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-e-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=s+"px",l.top=r+"px";const a=this.tooltip.getBoundingClientRect();let p=-a.x,h=a.x+a.width-window.innerWidth;l.left=s+Math.round(this.correctOutOfWindowPixels(p,h))+"px";let f=-a.y,d=a.y+a.height-window.innerHeight;l.top=r+Math.round(this.correctOutOfWindowPixels(f,d))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${Ei})`}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))}}Ai.elementDefinitions={"ft-typography":Si},Ai.styles=Ti,Bi([o.property()],Ai.prototype,"text",void 0),Bi([o.property({type:Boolean})],Ai.prototype,"manual",void 0),Bi([o.property({type:Boolean})],Ai.prototype,"inline",void 0),Bi([o.property({type:Number})],Ai.prototype,"delay",void 0),Bi([o.property()],Ai.prototype,"position",void 0),Bi([o.queryAssignedNodes("",!0)],Ai.prototype,"slotNodes",void 0),Bi([o.query(".ft-tooltip--container")],Ai.prototype,"container",void 0),Bi([o.query(".ft-tooltip")],Ai.prototype,"tooltip",void 0),Bi([o.query(".ft-tooltip--content")],Ai.prototype,"tooltipContent",void 0),Bi([o.state()],Ai.prototype,"visible",void 0),i.customElement("ft-tooltip")(Ai);const Mi={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Fi=e.css`
|
|
225
|
+
`,Dt=[Object.keys(v).map((t=>function(t){const o=v[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)))],At={color:o.FtCssVariableFactory.extend("--ft-loader-color","",o.designSystemVariables.colorPrimary),size:o.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Ht=e.css`
|
|
297
233
|
:host {
|
|
298
234
|
line-height: 0;
|
|
299
235
|
}
|
|
@@ -302,8 +238,8 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
302
238
|
display: inline-block;
|
|
303
239
|
position: relative;
|
|
304
240
|
|
|
305
|
-
width: ${
|
|
306
|
-
height: ${
|
|
241
|
+
width: ${At.size};
|
|
242
|
+
height: ${At.size};
|
|
307
243
|
}
|
|
308
244
|
|
|
309
245
|
.ft-loader div {
|
|
@@ -312,7 +248,7 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
312
248
|
width: 25%;
|
|
313
249
|
height: 25%;
|
|
314
250
|
border-radius: 50%;
|
|
315
|
-
background: ${
|
|
251
|
+
background: ${At.color};
|
|
316
252
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
317
253
|
}
|
|
318
254
|
|
|
@@ -359,17 +295,10 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
359
295
|
transform: translate(0, 0);
|
|
360
296
|
}
|
|
361
297
|
100% {
|
|
362
|
-
transform: translate(calc(0.35 * ${
|
|
298
|
+
transform: translate(calc(0.35 * ${At.size}), 0);
|
|
363
299
|
}
|
|
364
300
|
}
|
|
365
|
-
|
|
366
|
-
<div class="ft-loader">
|
|
367
|
-
<div></div>
|
|
368
|
-
<div></div>
|
|
369
|
-
<div></div>
|
|
370
|
-
<div></div>
|
|
371
|
-
</div>
|
|
372
|
-
`}}var Zi,Ri;_i.styles=Fi,i.customElement("ft-loader")(_i),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.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=""}(Zi||(Zi={})),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=""}(Ri||(Ri={})),new Map([...["abw"].map((t=>[t,Ri.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,Ri.AUDIO])),...["avi"].map((t=>[t,Ri.AVI])),...["chm","xhs"].map((t=>[t,Ri.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,Ri.CODE])),...["csv"].map((t=>[t,Ri.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ri.DITA])),...["epub"].map((t=>[t,Ri.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ri.EXCEL])),...["flac"].map((t=>[t,Ri.FLAC])),...["gif"].map((t=>[t,Ri.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ri.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ri.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,Ri.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ri.JPEG])),...["json"].map((t=>[t,Ri.JSON])),...["m4a","m4p"].map((t=>[t,Ri.M4A])),...["mov","qt"].map((t=>[t,Ri.MOV])),...["mp3"].map((t=>[t,Ri.MP3])),...["mp4","m4v"].map((t=>[t,Ri.MP4])),...["ogg","oga"].map((t=>[t,Ri.OGG])),...["pdf","ps"].map((t=>[t,Ri.PDF])),...["png"].map((t=>[t,Ri.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ri.POWERPOINT])),...["rar"].map((t=>[t,Ri.RAR])),...["stp"].map((t=>[t,Ri.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ri.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,Ri.VIDEO])),...["wav"].map((t=>[t,Ri.WAV])),...["wma"].map((t=>[t,Ri.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ri.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ri.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ri.YAML])),...["zip"].map((t=>[t,Ri.ZIP]))]);const Ui={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Pi=e.css`
|
|
301
|
+
`,Gt={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")},jt=e.css`
|
|
373
302
|
:host, i.ft-icon {
|
|
374
303
|
display: inline-flex;
|
|
375
304
|
align-items: center;
|
|
@@ -378,14 +307,14 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
378
307
|
}
|
|
379
308
|
|
|
380
309
|
:host {
|
|
381
|
-
width: ${
|
|
382
|
-
height: ${
|
|
310
|
+
width: ${Gt.size};
|
|
311
|
+
height: ${Gt.size};
|
|
383
312
|
}
|
|
384
313
|
|
|
385
314
|
i.ft-icon {
|
|
386
315
|
width: 100%;
|
|
387
316
|
height: 100%;
|
|
388
|
-
font-size: ${
|
|
317
|
+
font-size: ${Gt.size};
|
|
389
318
|
line-height: 1;
|
|
390
319
|
font-weight: normal;
|
|
391
320
|
text-transform: none;
|
|
@@ -396,33 +325,28 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
396
325
|
text-rendering: auto;
|
|
397
326
|
-webkit-font-smoothing: antialiased;
|
|
398
327
|
-moz-osx-font-smoothing: grayscale;
|
|
399
|
-
vertical-align: ${
|
|
328
|
+
vertical-align: ${Gt.verticalAlign};
|
|
400
329
|
}
|
|
401
330
|
|
|
402
331
|
i.ft-icon.ft-icon--fluid-topics {
|
|
403
|
-
font-family: ${
|
|
332
|
+
font-family: ${Gt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
404
333
|
|
|
405
334
|
/* Ugly fix because font is broken */
|
|
406
|
-
font-size: calc(0.75 * ${
|
|
407
|
-
line-height: ${
|
|
335
|
+
font-size: calc(0.75 * ${Gt.size});
|
|
336
|
+
line-height: ${Gt.size};
|
|
408
337
|
position: relative;
|
|
409
338
|
top: -4%;
|
|
410
339
|
justify-content: center;
|
|
411
340
|
}
|
|
412
341
|
|
|
413
342
|
.ft-icon--file-format {
|
|
414
|
-
font-family: ${
|
|
343
|
+
font-family: ${Gt.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
415
344
|
}
|
|
416
345
|
|
|
417
346
|
.ft-icon--material {
|
|
418
|
-
font-family: ${
|
|
347
|
+
font-family: ${Gt.materialFontFamily}, "Material Icons", sans-serif;
|
|
419
348
|
}
|
|
420
|
-
|
|
421
|
-
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
422
|
-
${s.unsafeHTML(this.resolvedIcon)}
|
|
423
|
-
<slot ?hidden=${i}></slot>
|
|
424
|
-
</i>
|
|
425
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Wi.file_format:this.resolvedIcon=null!==(t=Ri[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Wi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Zi[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ki.elementDefinitions={},Ki.styles=Pi,Di([o.property()],Ki.prototype,"variant",void 0),Di([o.property()],Ki.prototype,"value",void 0),Di([o.state()],Ki.prototype,"resolvedIcon",void 0),Di([o.query("slot")],Ki.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ki);const Li=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Hi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Li,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",di.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Li),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")},Gi=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Vi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Gi,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Gi)},qi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Xi=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Yi=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Ji=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Qi=[e.css`
|
|
349
|
+
`,Pt=o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorPrimary),Tt={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorSurface),borderRadius:o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusL),color:Pt,fontSize:o.FtCssVariableFactory.extend("--ft-button-font-size","",It.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.FtCssVariableFactory.extend("--ft-button-ripple-color","",Pt),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")},Mt=o.FtCssVariableFactory.extend("--ft-button-primary-color","",o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorOnPrimary)),_t={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-primary-background-color","",o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorPrimary)),color:Mt,rippleColor:o.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Mt)},Yt=o.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusM)),Vt=o.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),qt=o.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Xt=o.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),Jt=[e.css`
|
|
426
350
|
:host {
|
|
427
351
|
display: inline-block;
|
|
428
352
|
max-width: 100%;
|
|
@@ -433,7 +357,7 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
433
357
|
box-shadow: 0px 0px 0px transparent;
|
|
434
358
|
border: 0px solid transparent;
|
|
435
359
|
text-shadow: 0px 0px 0px transparent;
|
|
436
|
-
font-size: ${
|
|
360
|
+
font-size: ${Tt.fontSize};
|
|
437
361
|
}
|
|
438
362
|
|
|
439
363
|
button:hover {
|
|
@@ -462,31 +386,31 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
462
386
|
border: none;
|
|
463
387
|
pointer-events: auto;
|
|
464
388
|
|
|
465
|
-
--ft-button-internal-line-height: max(calc(${
|
|
466
|
-
--ft-button-internal-color: ${
|
|
467
|
-
${
|
|
468
|
-
${
|
|
389
|
+
--ft-button-internal-line-height: max(calc(${Tt.fontSize} + 2px), ${Tt.iconSize});
|
|
390
|
+
--ft-button-internal-color: ${Tt.color};
|
|
391
|
+
${o.setVariable(Gt.size,Tt.iconSize)};
|
|
392
|
+
${o.setVariable(s.color,Tt.rippleColor)};
|
|
469
393
|
|
|
470
|
-
border-radius: ${
|
|
471
|
-
padding: ${
|
|
472
|
-
background-color: ${
|
|
394
|
+
border-radius: ${Tt.borderRadius};
|
|
395
|
+
padding: ${Tt.verticalPadding} ${Tt.horizontalPadding};
|
|
396
|
+
background-color: ${Tt.backgroundColor};
|
|
473
397
|
color: var(--ft-button-internal-color);
|
|
474
398
|
-webkit-mask-image: radial-gradient(white, black);
|
|
475
399
|
}
|
|
476
400
|
|
|
477
401
|
.ft-button.ft-button--outlined {
|
|
478
402
|
border: 1px solid var(--ft-button-internal-color);
|
|
479
|
-
padding: calc(${
|
|
403
|
+
padding: calc(${Tt.verticalPadding} - 1px) calc(${Tt.horizontalPadding} - 1px);
|
|
480
404
|
}
|
|
481
405
|
|
|
482
406
|
.ft-button.ft-button--dense {
|
|
483
|
-
padding: ${
|
|
484
|
-
border-radius: ${
|
|
485
|
-
gap: ${
|
|
407
|
+
padding: ${Vt} ${qt};
|
|
408
|
+
border-radius: ${Yt};
|
|
409
|
+
gap: ${Xt};
|
|
486
410
|
}
|
|
487
411
|
|
|
488
412
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
489
|
-
padding: calc(${
|
|
413
|
+
padding: calc(${Vt} - 1px) calc(${qt} - 1px);
|
|
490
414
|
}
|
|
491
415
|
|
|
492
416
|
.ft-button:not([disabled]):hover {
|
|
@@ -494,22 +418,22 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
494
418
|
}
|
|
495
419
|
|
|
496
420
|
.ft-button--round {
|
|
497
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
421
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Tt.verticalPadding});
|
|
498
422
|
}
|
|
499
423
|
|
|
500
424
|
.ft-button--round.ft-button--dense {
|
|
501
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
425
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Vt});
|
|
502
426
|
}
|
|
503
427
|
|
|
504
428
|
.ft-button[disabled] {
|
|
505
429
|
filter: grayscale(1);
|
|
506
|
-
opacity: ${
|
|
430
|
+
opacity: ${Tt.opacityDisabled};
|
|
507
431
|
}
|
|
508
432
|
|
|
509
433
|
.ft-button.ft-button--primary {
|
|
510
|
-
background-color: ${
|
|
511
|
-
--ft-button-internal-color: ${
|
|
512
|
-
${
|
|
434
|
+
background-color: ${_t.backgroundColor};
|
|
435
|
+
--ft-button-internal-color: ${_t.color};
|
|
436
|
+
${o.setVariable(s.color,_t.rippleColor)};
|
|
513
437
|
}
|
|
514
438
|
|
|
515
439
|
.ft-button:focus {
|
|
@@ -522,13 +446,13 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
522
446
|
white-space: nowrap;
|
|
523
447
|
text-overflow: ellipsis;
|
|
524
448
|
display: block;
|
|
525
|
-
margin: 0 ${
|
|
526
|
-
${
|
|
527
|
-
${
|
|
449
|
+
margin: 0 ${Tt.iconPadding};
|
|
450
|
+
${o.setVariable(It.fontSize,"1em")};
|
|
451
|
+
${o.setVariable(It.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
528
452
|
}
|
|
529
453
|
|
|
530
454
|
.ft-button--dense .ft-button--label {
|
|
531
|
-
margin: 0 ${
|
|
455
|
+
margin: 0 ${Xt};
|
|
532
456
|
}
|
|
533
457
|
|
|
534
458
|
.ft-button--label[hidden] {
|
|
@@ -541,13 +465,13 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
541
465
|
}
|
|
542
466
|
|
|
543
467
|
.ft-button--label[hidden] + ft-icon {
|
|
544
|
-
margin: 0 calc(${
|
|
545
|
-
padding: 0 ${
|
|
468
|
+
margin: 0 calc(${Tt.horizontalPadding} * -1);
|
|
469
|
+
padding: 0 ${Tt.verticalPadding};
|
|
546
470
|
}
|
|
547
471
|
|
|
548
472
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
549
|
-
margin: 0 calc(${
|
|
550
|
-
padding: 0 ${
|
|
473
|
+
margin: 0 calc(${qt} * -1);
|
|
474
|
+
padding: 0 ${Vt};
|
|
551
475
|
}
|
|
552
476
|
|
|
553
477
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -556,50 +480,351 @@ const ot=Symbol.for(""),nt=t=>{if((null==t?void 0:t.r)===ot)return null==t?void
|
|
|
556
480
|
}
|
|
557
481
|
|
|
558
482
|
ft-loader {
|
|
559
|
-
${
|
|
560
|
-
${
|
|
483
|
+
${o.setVariable(At.size,Tt.iconSize)};
|
|
484
|
+
${o.setVariable(At.color,"var(--ft-button-internal-color)")};
|
|
561
485
|
}
|
|
562
|
-
`,
|
|
486
|
+
`,o.noTextSelect];var Qt,to=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class oo extends o.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o.Debouncer(10),this.moveRipple=t=>{var o,e;let{x:r,y:i}=this.getCoordinates(t),a=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-a.x:a.width/2),this.originY=Math.round(null!=i?i-a.y:a.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
487
|
+
<style>
|
|
488
|
+
.ft-ripple .ft-ripple--effect {
|
|
489
|
+
left: ${this.originX}px;
|
|
490
|
+
top: ${this.originY}px;
|
|
491
|
+
}
|
|
492
|
+
</style>
|
|
493
|
+
<div class="${i.classMap(t)}">
|
|
494
|
+
<div class="ft-ripple--background"></div>
|
|
495
|
+
<div class="ft-ripple--effect"></div>
|
|
496
|
+
</div>
|
|
497
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}oo.elementDefinitions={},oo.styles=u,to([r.property({type:Boolean})],oo.prototype,"primary",void 0),to([r.property({type:Boolean})],oo.prototype,"secondary",void 0),to([r.property({type:Boolean})],oo.prototype,"unbounded",void 0),to([r.property({type:Boolean})],oo.prototype,"activated",void 0),to([r.property({type:Boolean})],oo.prototype,"selected",void 0),to([r.property({type:Boolean})],oo.prototype,"disabled",void 0),to([r.state()],oo.prototype,"hovered",void 0),to([r.state()],oo.prototype,"focused",void 0),to([r.state()],oo.prototype,"pressed",void 0),to([r.state()],oo.prototype,"rippling",void 0),to([r.state()],oo.prototype,"originX",void 0),to([r.state()],oo.prototype,"originY",void 0),to([r.query(".ft-ripple")],oo.prototype,"ripple",void 0),to([r.query(".ft-ripple--effect")],oo.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(oo);const eo=window,ro=eo.trustedTypes,io=ro?ro.createPolicy("lit-html",{createHTML:t=>t}):void 0,ao="$lit$",no=`lit$${(Math.random()+"").slice(9)}$`,lo="?"+no,co=`<${lo}>`,po=document,so=()=>po.createComment(""),fo=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ho=Array.isArray,yo="[ \t\n\f\r]",go=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,bo=/-->/g,uo=/>/g,mo=RegExp(`>|${yo}(?:([^\\s"'>=/]+)(${yo}*=${yo}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),xo=/'/g,Oo=/"/g,vo=/^(?:script|style|textarea|title)$/i,No=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),So=Symbol.for("lit-noChange"),Co=Symbol.for("lit-nothing"),$o=new WeakMap,wo=po.createTreeWalker(po,129,null,!1),Io=(t,o)=>{const e=t.length-1,r=[];let i,a=2===o?"<svg>":"",n=go;for(let o=0;o<e;o++){const e=t[o];let l,c,p=-1,s=0;for(;s<e.length&&(n.lastIndex=s,c=n.exec(e),null!==c);)s=n.lastIndex,n===go?"!--"===c[1]?n=bo:void 0!==c[1]?n=uo:void 0!==c[2]?(vo.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=mo):void 0!==c[3]&&(n=mo):n===mo?">"===c[0]?(n=null!=i?i:go,p=-1):void 0===c[1]?p=-2:(p=n.lastIndex-c[2].length,l=c[1],n=void 0===c[3]?mo:'"'===c[3]?Oo:xo):n===Oo||n===xo?n=mo:n===bo||n===uo?n=go:(n=mo,i=void 0);const f=n===mo&&t[o+1].startsWith("/>")?" ":"";a+=n===go?e+co:p>=0?(r.push(l),e.slice(0,p)+ao+e.slice(p)+no+f):e+no+(-2===p?(r.push(void 0),o):f)}const l=a+(t[e]||"<?>")+(2===o?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==io?io.createHTML(l):l,r]};class Ro{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,a=0;const n=t.length-1,l=this.parts,[c,p]=Io(t,o);if(this.el=Ro.createElement(c,e),wo.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(r=wo.nextNode())&&l.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const o of r.getAttributeNames())if(o.endsWith(ao)||o.startsWith(no)){const e=p[a++];if(t.push(o),void 0!==e){const t=r.getAttribute(e.toLowerCase()+ao).split(no),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:i,name:o[2],strings:t,ctor:"."===o[1]?Lo:"?"===o[1]?Zo:"@"===o[1]?zo:Eo})}else l.push({type:6,index:i})}for(const o of t)r.removeAttribute(o)}if(vo.test(r.tagName)){const t=r.textContent.split(no),o=t.length-1;if(o>0){r.textContent=ro?ro.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],so()),wo.nextNode(),l.push({type:2,index:++i});r.append(t[o],so())}}}else if(8===r.nodeType)if(r.data===lo)l.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(no,t+1));)l.push({type:7,index:i}),t+=no.length-1}i++}}static createElement(t,o){const e=po.createElement("template");return e.innerHTML=t,e}}function Uo(t,o,e=t,r){var i,a,n,l;if(o===So)return o;let c=void 0!==r?null===(i=e._$Co)||void 0===i?void 0:i[r]:e._$Cl;const p=fo(o)?void 0:o._$litDirective$;return(null==c?void 0:c.constructor)!==p&&(null===(a=null==c?void 0:c._$AO)||void 0===a||a.call(c,!1),void 0===p?c=void 0:(c=new p(t),c._$AT(t,e,r)),void 0!==r?(null!==(n=(l=e)._$Co)&&void 0!==n?n:l._$Co=[])[r]=c:e._$Cl=c),void 0!==c&&(o=Uo(t,c._$AS(t,o.values),c,r)),o}class Wo{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var o;const{el:{content:e},parts:r}=this._$AD,i=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:po).importNode(e,!0);wo.currentNode=i;let a=wo.nextNode(),n=0,l=0,c=r[0];for(;void 0!==c;){if(n===c.index){let o;2===c.type?o=new ko(a,a.nextSibling,this,t):1===c.type?o=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(o=new Fo(a,this,t)),this._$AV.push(o),c=r[++l]}n!==(null==c?void 0:c.index)&&(a=wo.nextNode(),n++)}return i}v(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}class ko{constructor(t,o,e,r){var i;this.type=2,this._$AH=Co,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=r,this._$Cp=null===(i=null==r?void 0:r.isConnected)||void 0===i||i}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===(null==t?void 0:t.nodeType)&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=Uo(this,t,o),fo(t)?t===Co||null==t||""===t?(this._$AH!==Co&&this._$AR(),this._$AH=Co):t!==this._$AH&&t!==So&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>ho(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!==Co&&fo(this._$AH)?this._$AA.nextSibling.data=t:this.$(po.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:r}=t,i="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=Ro.createElement(r.h,this.options)),r);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===i)this._$AH.v(e);else{const t=new Wo(i,this),o=t.u(this.options);t.v(e),this.$(o),this._$AH=t}}_$AC(t){let o=$o.get(t.strings);return void 0===o&&$o.set(t.strings,o=new Ro(t)),o}T(t){ho(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,r=0;for(const i of t)r===o.length?o.push(e=new ko(this.k(so()),this.k(so()),this,this.options)):e=o[r],e._$AI(i),r++;r<o.length&&(this._$AR(e&&e._$AB.nextSibling,r),o.length=r)}_$AR(t=this._$AA.nextSibling,o){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$Cp=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}}class Eo{constructor(t,o,e,r,i){this.type=1,this._$AH=Co,this._$AN=void 0,this.element=t,this.name=o,this._$AM=r,this.options=i,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Co}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,e,r){const i=this.strings;let a=!1;if(void 0===i)t=Uo(this,t,o,0),a=!fo(t)||t!==this._$AH&&t!==So,a&&(this._$AH=t);else{const r=t;let n,l;for(t=i[0],n=0;n<i.length-1;n++)l=Uo(this,r[e+n],o,n),l===So&&(l=this._$AH[n]),a||(a=!fo(l)||l!==this._$AH[n]),l===Co?t=Co:t!==Co&&(t+=(null!=l?l:"")+i[n+1]),this._$AH[n]=l}a&&!r&&this.j(t)}j(t){t===Co?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Lo extends Eo{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Co?void 0:t}}const Ko=ro?ro.emptyScript:"";class Zo extends Eo{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Co?this.element.setAttribute(this.name,Ko):this.element.removeAttribute(this.name)}}class zo extends Eo{constructor(t,o,e,r,i){super(t,o,e,r,i),this.type=5}_$AI(t,o=this){var e;if((t=null!==(e=Uo(this,t,o,0))&&void 0!==e?e:Co)===So)return;const r=this._$AH,i=t===Co&&r!==Co||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==Co&&(r===Co||i);i&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class Fo{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){Uo(this,t)}}const Bo=eo.litHtmlPolyfillSupport;null==Bo||Bo(Ro,ko),(null!==(Qt=eo.litHtmlVersions)&&void 0!==Qt?Qt:eo.litHtmlVersions=[]).push("2.7.3");
|
|
498
|
+
/**
|
|
499
|
+
* @license
|
|
500
|
+
* Copyright 2020 Google LLC
|
|
501
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
502
|
+
*/
|
|
503
|
+
const Do=Symbol.for(""),Ao=t=>{if((null==t?void 0:t.r)===Do)return null==t?void 0:t._$litStatic$},Ho=t=>({_$litStatic$:t,r:Do}),Go=new Map,jo=(t=>(o,...e)=>{const r=e.length;let i,a;const n=[],l=[];let c,p=0,s=!1;for(;p<r;){for(c=o[p];p<r&&void 0!==(a=e[p],i=Ao(a));)c+=i+o[++p],s=!0;p!==r&&l.push(a),n.push(c),p++}if(p===r&&n.push(o[r]),s){const t=n.join("$$lit$$");void 0===(o=Go.get(t))&&(n.raw=n,Go.set(t,o=n)),e=l}return t(o,...e)})(No);var Po;!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"}(Po||(Po={}));var To=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Mo extends o.FtLitElement{constructor(){super(...arguments),this.variant=Po.body1}render(){return this.element?jo`
|
|
504
|
+
<${Ho(this.element)}
|
|
505
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
506
|
+
<slot></slot>
|
|
507
|
+
</${Ho(this.element)}>
|
|
508
|
+
`:jo`
|
|
509
|
+
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
510
|
+
`}}Mo.styles=[Rt,Ut,Wt,kt,Et,Lt,Kt,Zt,zt,Ft,Bt,...Dt],To([r.property()],Mo.prototype,"element",void 0),To([r.property()],Mo.prototype,"variant",void 0),o.customElement("ft-typography")(Mo);const _o=o.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),Yo=o.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Vo=o.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),qo=o.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),Xo=o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),Jo=o.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),Qo=e.css`
|
|
511
|
+
.ft-tooltip--container {
|
|
512
|
+
display: block;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.ft-tooltip--inline {
|
|
516
|
+
display: inline-block;
|
|
517
|
+
max-width: 100%;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.ft-tooltip {
|
|
521
|
+
position: absolute;
|
|
522
|
+
box-sizing: border-box;
|
|
523
|
+
overflow: hidden;
|
|
524
|
+
width: max-content;
|
|
525
|
+
max-width: ${Jo};
|
|
526
|
+
text-align: center;
|
|
527
|
+
padding: ${_o};
|
|
528
|
+
z-index: ${qo};
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
.ft-tooltip--content {
|
|
532
|
+
padding: 4px 8px;
|
|
533
|
+
border-radius: ${Xo};
|
|
534
|
+
background-color: ${Vo};
|
|
535
|
+
color: ${Yo};
|
|
536
|
+
position: relative;
|
|
537
|
+
word-break: break-word;
|
|
538
|
+
}
|
|
539
|
+
`;var te,oe,ee,re=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ie 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`
|
|
540
|
+
<div part="container"
|
|
541
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
542
|
+
@mouseenter=${this.onHover}
|
|
543
|
+
@mouseleave=${this.onOut}
|
|
544
|
+
@focusin=${this.onHover}
|
|
545
|
+
@focusout=${this.onOut}
|
|
546
|
+
@touchstart=${this.onTouch}>
|
|
547
|
+
<slot></slot>
|
|
548
|
+
<div part="tooltip" role="tooltip" inert
|
|
549
|
+
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
550
|
+
?hidden=${!this.visible}>
|
|
551
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
552
|
+
<slot name="text"></slot>
|
|
553
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
554
|
+
</div>
|
|
555
|
+
</div>
|
|
556
|
+
</div>
|
|
557
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,r=(t.offsetHeight-e)/2,i=(t.offsetWidth-o)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+r-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+r-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=a+"px",l.top=n+"px";const c=this.tooltip.getBoundingClientRect();let p=-c.x,s=c.x+c.width-window.innerWidth;l.left=a+Math.round(this.correctOutOfWindowPixels(p,s))+"px";let f=-c.y,d=c.y+c.height-window.innerHeight;l.top=n+Math.round(this.correctOutOfWindowPixels(f,d))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${Jo})`}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))}}ie.elementDefinitions={"ft-typography":Mo},ie.styles=Qo,re([r.property()],ie.prototype,"text",void 0),re([r.property({type:Boolean})],ie.prototype,"manual",void 0),re([r.property({type:Boolean})],ie.prototype,"inline",void 0),re([r.property({type:Number})],ie.prototype,"delay",void 0),re([r.property()],ie.prototype,"position",void 0),re([r.queryAssignedNodes("",!0)],ie.prototype,"slotNodes",void 0),re([r.query(".ft-tooltip--container")],ie.prototype,"container",void 0),re([r.query(".ft-tooltip")],ie.prototype,"tooltip",void 0),re([r.query(".ft-tooltip--content")],ie.prototype,"tooltipContent",void 0),re([r.state()],ie.prototype,"visible",void 0),o.customElement("ft-tooltip")(ie),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=""}(te||(te={})),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=""}(oe||(oe={})),new Map([...["abw"].map((t=>[t,oe.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,oe.AUDIO])),...["avi"].map((t=>[t,oe.AVI])),...["chm","xhs"].map((t=>[t,oe.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,oe.CODE])),...["csv"].map((t=>[t,oe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,oe.DITA])),...["epub"].map((t=>[t,oe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,oe.EXCEL])),...["flac"].map((t=>[t,oe.FLAC])),...["gif"].map((t=>[t,oe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,oe.GZIP])),...["html","htm","xhtml"].map((t=>[t,oe.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,oe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,oe.JPEG])),...["json"].map((t=>[t,oe.JSON])),...["m4a","m4p"].map((t=>[t,oe.M4A])),...["mov","qt"].map((t=>[t,oe.MOV])),...["mp3"].map((t=>[t,oe.MP3])),...["mp4","m4v"].map((t=>[t,oe.MP4])),...["ogg","oga"].map((t=>[t,oe.OGG])),...["pdf","ps"].map((t=>[t,oe.PDF])),...["png"].map((t=>[t,oe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,oe.POWERPOINT])),...["rar"].map((t=>[t,oe.RAR])),...["stp"].map((t=>[t,oe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,oe.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,oe.VIDEO])),...["wav"].map((t=>[t,oe.WAV])),...["wma"].map((t=>[t,oe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,oe.WORD])),...["xml","xsl","rdf"].map((t=>[t,oe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,oe.YAML])),...["zip"].map((t=>[t,oe.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ee||(ee={}));var ae=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ne extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(ee).includes(this.variant)?this.variant:ee.fluid_topics,o=t!==ee.material||!!this.value;return e.html`
|
|
558
|
+
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
559
|
+
${a.unsafeHTML(this.resolvedIcon)}
|
|
560
|
+
<slot ?hidden=${o}></slot>
|
|
561
|
+
</i>
|
|
562
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let r=this.value||this.textContent;switch(this.variant){case ee.file_format:this.resolvedIcon=null!==(t=oe[r.replace("-","_").toUpperCase()])&&void 0!==t?t:r;break;case ee.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=te[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ne.elementDefinitions={},ne.styles=jt,ae([r.property()],ne.prototype,"variant",void 0),ae([r.property()],ne.prototype,"value",void 0),ae([r.state()],ne.prototype,"resolvedIcon",void 0),ae([r.query("slot")],ne.prototype,"slottedContent",void 0),o.customElement("ft-icon")(ne);class le extends o.FtLitElement{render(){return e.html`
|
|
563
|
+
<div class="ft-loader">
|
|
564
|
+
<div></div>
|
|
565
|
+
<div></div>
|
|
566
|
+
<div></div>
|
|
567
|
+
<div></div>
|
|
568
|
+
</div>
|
|
569
|
+
`}}le.styles=Ht,o.customElement("ft-loader")(le);var ce=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class pe 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`
|
|
563
570
|
<button part="button"
|
|
564
|
-
class="${
|
|
571
|
+
class="${i.classMap(this.buttonClasses)}"
|
|
565
572
|
aria-label="${this.getLabel()}"
|
|
566
573
|
?disabled=${this.isDisabled()}>
|
|
567
574
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
568
575
|
<ft-typography part="label"
|
|
569
|
-
variant
|
|
576
|
+
variant=${this.typographyVariant}
|
|
570
577
|
element="span"
|
|
571
|
-
class="ft-button--label ${
|
|
578
|
+
class="ft-button--label ${o.isSafari?"ft-safari-ellipsis-fix":""}"
|
|
572
579
|
?hidden=${!this.hasTextContent()}>
|
|
573
580
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
574
581
|
</ft-typography>
|
|
575
582
|
${this.resolveIcon()}
|
|
576
583
|
</button>
|
|
577
584
|
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?e.html`
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
585
|
+
<ft-tooltip part="tooltip"
|
|
586
|
+
text="${this.getLabel()}"
|
|
587
|
+
position="${this.tooltipPosition}">
|
|
588
|
+
${t}
|
|
589
|
+
</ft-tooltip>
|
|
583
590
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
584
591
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
585
|
-
|
|
586
|
-
|
|
592
|
+
<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}}pe.elementDefinitions={"ft-ripple":oo,"ft-tooltip":ie,"ft-typography":Mo,"ft-icon":ne,"ft-loader":le},ce([r.property({type:String,reflect:!0})],pe.prototype,"role",void 0),ce([r.property()],pe.prototype,"type",void 0),ce([r.property({type:Boolean})],pe.prototype,"disabled",void 0),ce([r.property()],pe.prototype,"label",void 0),ce([r.property()],pe.prototype,"icon",void 0),ce([r.property()],pe.prototype,"iconVariant",void 0),ce([r.property({type:Boolean})],pe.prototype,"trailingIcon",void 0),ce([r.property({type:Boolean})],pe.prototype,"loading",void 0),ce([r.property()],pe.prototype,"tooltipPosition",void 0),ce([r.property({type:Boolean})],pe.prototype,"hideTooltip",void 0),ce([r.property({type:Boolean})],pe.prototype,"forceTooltip",void 0),ce([r.query(".ft-button")],pe.prototype,"button",void 0),ce([r.query(".ft-button--label slot")],pe.prototype,"slottedContent",void 0);var se=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class fe extends pe{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"}}fe.styles=[o.safariEllipsisFix,Jt],se([r.property({type:Boolean})],fe.prototype,"primary",void 0),se([r.property({type:Boolean})],fe.prototype,"outlined",void 0),se([r.property({type:Boolean})],fe.prototype,"disabled",void 0),se([r.property({type:Boolean})],fe.prototype,"dense",void 0),se([r.property({type:Boolean})],fe.prototype,"round",void 0);const de=[e.css`
|
|
593
|
+
:host {
|
|
594
|
+
display: inline-block;
|
|
595
|
+
max-width: 100%;
|
|
596
|
+
pointer-events: none;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/** Remove default button styles **/
|
|
600
|
+
|
|
601
|
+
button {
|
|
602
|
+
box-shadow: 0 0 0 transparent;
|
|
603
|
+
border: 0 solid transparent;
|
|
604
|
+
text-shadow: 0 0 0 transparent;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
button:hover {
|
|
608
|
+
box-shadow: 0 0 0 transparent;
|
|
609
|
+
text-shadow: 0 0 0 transparent;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
button:active {
|
|
613
|
+
outline: none;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
button:focus {
|
|
617
|
+
outline: 0;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
/** Base styles **/
|
|
621
|
+
|
|
622
|
+
.ft-button {
|
|
623
|
+
position: relative;
|
|
624
|
+
display: flex;
|
|
625
|
+
justify-content: center;
|
|
626
|
+
align-items: center;
|
|
627
|
+
width: 100%;
|
|
628
|
+
overflow: hidden;
|
|
629
|
+
box-sizing: border-box;
|
|
630
|
+
pointer-events: auto;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.ft-button:not([disabled]):hover {
|
|
634
|
+
cursor: pointer;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.ft-button:focus {
|
|
638
|
+
outline: none;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.ft-button:focus-visible {
|
|
642
|
+
outline-color: ${S.focusFocusRingColor};
|
|
643
|
+
outline-style: solid;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
ft-icon {
|
|
647
|
+
flex-shrink: 0;
|
|
648
|
+
position: relative;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
652
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
653
|
+
order: -1;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.ft-button--label {
|
|
657
|
+
position: relative;
|
|
658
|
+
overflow: hidden;
|
|
659
|
+
white-space: nowrap;
|
|
660
|
+
text-overflow: ellipsis;
|
|
661
|
+
display: block;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
.ft-button--label[hidden] {
|
|
665
|
+
display: none;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
/** Primary styles **/
|
|
669
|
+
|
|
670
|
+
.ft-button--primary {
|
|
671
|
+
${o.setVariable(At.color,S.primaryIconColor)};
|
|
672
|
+
|
|
673
|
+
${o.setVariable(s.color,S.primaryStateLayerColor)};
|
|
674
|
+
${o.setVariable(s.opacityContentOnSurfaceHover,S.primaryStateLayerOpacityHover)};
|
|
675
|
+
${o.setVariable(s.opacityContentOnSurfaceFocused,S.primaryStateLayerOpacityFocus)};
|
|
676
|
+
${o.setVariable(s.opacityContentOnSurfaceSelected,S.primaryStateLayerOpacityActive)};
|
|
677
|
+
${o.setVariable(s.opacityContentOnSurfacePressed,S.primaryStateLayerOpacityActive)};
|
|
678
|
+
|
|
679
|
+
background-color: ${S.primaryBackgroundColor};
|
|
680
|
+
color: ${S.primaryColor};
|
|
681
|
+
border-style: none;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.ft-button--primary[disabled] {
|
|
685
|
+
opacity: ${S.primaryComponentOpacityDisabled};
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.ft-button--primary ft-icon {
|
|
689
|
+
color: ${S.primaryIconColor};
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
/** Secondary styles **/
|
|
693
|
+
|
|
694
|
+
.ft-button--secondary {
|
|
695
|
+
${o.setVariable(At.color,S.secondaryIconColor)};
|
|
696
|
+
|
|
697
|
+
${o.setVariable(s.color,S.secondaryStateLayerColor)};
|
|
698
|
+
${o.setVariable(s.opacityContentOnSurfaceHover,S.secondaryStateLayerOpacityHover)};
|
|
699
|
+
${o.setVariable(s.opacityContentOnSurfaceFocused,S.secondaryStateLayerOpacityFocus)};
|
|
700
|
+
${o.setVariable(s.opacityContentOnSurfaceSelected,S.secondaryStateLayerOpacityActive)};
|
|
701
|
+
${o.setVariable(s.opacityContentOnSurfacePressed,S.secondaryStateLayerOpacityActive)};
|
|
702
|
+
|
|
703
|
+
background-color: ${S.secondaryBackgroundColor};
|
|
704
|
+
color: ${S.secondaryColor};
|
|
705
|
+
border-color: ${S.secondaryBorderColor};
|
|
706
|
+
border-style: solid;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.ft-button--secondary[disabled] {
|
|
710
|
+
opacity: ${S.secondaryComponentOpacityDisabled};
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
.ft-button--secondary ft-icon {
|
|
714
|
+
color: ${S.secondaryIconColor};
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/** Tertiary styles **/
|
|
718
|
+
|
|
719
|
+
.ft-button--tertiary {
|
|
720
|
+
${o.setVariable(At.color,S.tertiaryIconColor)};
|
|
721
|
+
|
|
722
|
+
${o.setVariable(s.color,S.tertiaryStateLayerColor)};
|
|
723
|
+
${o.setVariable(s.opacityContentOnSurfaceHover,S.tertiaryStateLayerOpacityHover)};
|
|
724
|
+
${o.setVariable(s.opacityContentOnSurfaceFocused,S.tertiaryStateLayerOpacityFocus)};
|
|
725
|
+
${o.setVariable(s.opacityContentOnSurfaceSelected,S.tertiaryStateLayerOpacityActive)};
|
|
726
|
+
${o.setVariable(s.opacityContentOnSurfacePressed,S.tertiaryStateLayerOpacityActive)};
|
|
727
|
+
|
|
728
|
+
background-color: ${S.tertiaryBackgroundColor};
|
|
729
|
+
color: ${S.tertiaryColor};
|
|
730
|
+
border-style: none;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.ft-button--tertiary[disabled] {
|
|
734
|
+
opacity: ${S.tertiaryComponentOpacityDisabled};
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.ft-button--tertiary ft-icon {
|
|
738
|
+
color: ${S.tertiaryIconColor};
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
/** Neutral styles **/
|
|
742
|
+
|
|
743
|
+
.ft-button--neutral {
|
|
744
|
+
${o.setVariable(At.color,S.neutralIconColor)};
|
|
745
|
+
|
|
746
|
+
${o.setVariable(s.backgroundColor,S.neutralStateLayerColor)};
|
|
747
|
+
${o.setVariable(s.opacityContentOnSurfaceHover,S.neutralStateLayerOpacityHover)};
|
|
748
|
+
${o.setVariable(s.opacityContentOnSurfaceFocused,S.neutralStateLayerOpacityFocus)};
|
|
749
|
+
${o.setVariable(s.opacityContentOnSurfaceSelected,S.neutralStateLayerOpacityActive)};
|
|
750
|
+
${o.setVariable(s.opacityContentOnSurfacePressed,S.neutralStateLayerOpacityActive)};
|
|
751
|
+
|
|
752
|
+
background-color: ${S.neutralBackgroundColor};
|
|
753
|
+
color: ${S.neutralColor};
|
|
754
|
+
border-style: none;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
.ft-button--neutral[disabled] {
|
|
758
|
+
opacity: ${S.neutralComponentOpacityDisabled};
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
.ft-button--neutral ft-icon {
|
|
762
|
+
color: ${S.neutralIconColor};
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/** Large styles **/
|
|
766
|
+
|
|
767
|
+
.ft-button--large {
|
|
768
|
+
${o.setVariable(Gt.size,S.largeIconSize)};
|
|
769
|
+
${o.setVariable(At.size,S.largeIconSize)};
|
|
770
|
+
|
|
771
|
+
height: ${S.largeHeight};
|
|
772
|
+
padding: 0 ${S.largeHorizontalPadding};
|
|
773
|
+
gap: ${S.largeGap};
|
|
774
|
+
border-radius: ${S.largeBorderRadius};
|
|
775
|
+
border-width: ${S.largeBorderWidth};
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
.ft-button--large:focus-visible {
|
|
779
|
+
outline-width: ${S.largeFocusOutlineWidth};
|
|
780
|
+
outline-offset: ${S.largeFocusOutlineOffset};
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
.ft-button--large.ft-button--icon-only {
|
|
784
|
+
width: ${S.largeIconOnlyWidth};
|
|
785
|
+
padding: unset;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
/** Small styles **/
|
|
789
|
+
|
|
790
|
+
.ft-button--small {
|
|
791
|
+
${o.setVariable(Gt.size,S.smallIconSize)};
|
|
792
|
+
${o.setVariable(At.size,S.smallIconSize)};
|
|
793
|
+
|
|
794
|
+
height: ${S.smallHeight};
|
|
795
|
+
padding: 0 ${S.smallHorizontalPadding};
|
|
796
|
+
gap: ${S.smallGap};
|
|
797
|
+
border-radius: ${S.smallBorderRadius};
|
|
798
|
+
border-width: ${S.smallBorderWidth};
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
.ft-button--small:focus-visible {
|
|
802
|
+
outline-width: ${S.smallFocusOutlineWidth};
|
|
803
|
+
outline-offset: ${S.smallFocusOutlineOffset};
|
|
804
|
+
}
|
|
805
|
+
|
|
806
|
+
.ft-button--small.ft-button--icon-only {
|
|
807
|
+
width: ${S.smallIconOnlyWidth};
|
|
808
|
+
padding: unset;
|
|
809
|
+
}
|
|
810
|
+
`,o.noTextSelect];var he,ye=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ge extends pe{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?Po.caption1medium:Po.body2medium}}ge.styles=[o.safariEllipsisFix,de],ye([r.property({type:Boolean})],ge.prototype,"primary",void 0),ye([r.property({type:Boolean})],ge.prototype,"secondary",void 0),ye([r.property({type:Boolean})],ge.prototype,"tertiary",void 0),ye([r.property({type:Boolean})],ge.prototype,"neutral",void 0),ye([r.property({type:Boolean})],ge.prototype,"small",void 0),o.customElement("ft-button")(fe),o.customElement("ftds-button")(ge),function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS"}(he||(he={}));var be=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ue extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const me=Symbol("registerInterval");class xe extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[me]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[me]):this.dispatchEvent(new ue)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=me,be([r.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}var Oe=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ve extends xe{constructor(){super(...arguments),this.removeStyle=!1}render(){var t;let o=i.classMap({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return e.html`
|
|
811
|
+
<a class=${o}
|
|
587
812
|
href="${null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocId,this.pageNumber,this.section)}"
|
|
588
813
|
@click=${t=>this.onLinkClick(t)}>
|
|
589
814
|
<slot></slot>
|
|
590
815
|
</a>
|
|
591
|
-
`}onLinkClick(t){var
|
|
816
|
+
`}onLinkClick(t){var o;t.ctrlKey||t.metaKey||(t.stopPropagation(),t.preventDefault(),null===(o=this.stateManager)||void 0===o||o.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}}ve.styles=l,Oe([r.property()],ve.prototype,"tocId",void 0),Oe([r.property()],ve.prototype,"section",void 0),Oe([r.property({type:Number})],ve.prototype,"pageNumber",void 0),Oe([r.property({type:Boolean})],ve.prototype,"removeStyle",void 0),o.customElement("ft-reader-internal-link")(ve);var Ne=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Se extends xe{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new o.Debouncer(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return"next"===this.target?te.THIN_ARROW_RIGHT:te.THIN_ARROW_LEFT}render(){var t,o,r,i,a;if(null==this.targetPage&&!this.editorMode)return e.nothing;const n=e.html`
|
|
592
817
|
<ft-button ?forceTooltip=${!this.hideTooltip}
|
|
593
818
|
?hideTooltip=${this.hideTooltip}
|
|
594
819
|
?trailingIcon=${this.trailingIcon}
|
|
595
|
-
.label=${null!==(
|
|
820
|
+
.label=${null!==(o=null===(t=this.targetPage)||void 0===t?void 0:t.title)&&void 0!==o?o:""}
|
|
596
821
|
.tooltipPosition=${this.tooltipPosition}
|
|
597
822
|
.iconVariant=${this.iconVariant}
|
|
598
|
-
.icon=${null!==(
|
|
599
|
-
${null!==(
|
|
823
|
+
.icon=${null!==(r=this.icon)&&void 0!==r?r:this.defaultIcon}>
|
|
824
|
+
${null!==(i=this.content)&&void 0!==i?i:this.defaultContent}
|
|
600
825
|
</ft-button>
|
|
601
|
-
`;return this.editorMode?
|
|
602
|
-
<ft-reader-internal-link .tocId=${null===(
|
|
603
|
-
${
|
|
826
|
+
`;return this.editorMode?n:e.html`
|
|
827
|
+
<ft-reader-internal-link .tocId=${null===(a=this.targetPage)||void 0===a?void 0:a.rootTocId} removestyle>
|
|
828
|
+
${n}
|
|
604
829
|
</ft-reader-internal-link>
|
|
605
|
-
`}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,
|
|
830
|
+
`}update(t){super.update(t),t.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run((()=>this.updateTarget())))}async updateTarget(){var t,o;if(this.currentPage){const e=this.currentPage.number+("next"===this.target?1:-1);this.targetPage=await(null===(t=this.service)||void 0===t?void 0:t.getPage(e)),(null===(o=this.targetPage)||void 0===o?void 0:o.number)!==e&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}}Se.elementDefinitions={"ft-button":fe,"ft-reader-internal-link":ve},Se.styles=c,Ne([r.property()],Se.prototype,"target",void 0),Ne([r.property()],Se.prototype,"content",void 0),Ne([r.property()],Se.prototype,"tooltipPosition",void 0),Ne([r.property({type:Boolean})],Se.prototype,"hideTooltip",void 0),Ne([r.property()],Se.prototype,"iconVariant",void 0),Ne([r.property()],Se.prototype,"icon",void 0),Ne([r.property({type:Boolean})],Se.prototype,"trailingIcon",void 0),Ne([r.property({type:Boolean,attribute:!1})],Se.prototype,"editorMode",void 0),Ne([o.redux()],Se.prototype,"currentPage",void 0),Ne([r.state()],Se.prototype,"targetPage",void 0),o.customElement("ft-reader-navigation-button")(Se),t.FtReaderNavigationButton=Se,t.FtReaderNavigationButtonCssVariables={},t.styles=c}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|