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