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