@fluid-topics/ft-switch 1.0.59 → 1.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-switch-option.css.js +5 -5
- package/build/ft-switch.css.js +11 -11
- package/build/ft-switch.light.js +151 -142
- package/build/ft-switch.min.js +178 -169
- package/package.json +7 -7
package/build/ft-switch.light.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,
|
|
1
|
+
!function(t,o,e,r,i,a){const n=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorContent),l={color:n,backgroundColor:o.FtCssVariableFactory.extend("--ft-ripple-background-color","",n),opacityContentOnSurfacePressed:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},c=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorPrimary),p=c,s=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",c),f=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorSecondary),h=f,d=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",f),g=e.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -57,11 +57,11 @@
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
60
|
-
background-color: ${
|
|
60
|
+
background-color: ${h};
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
64
|
-
background-color: ${
|
|
64
|
+
background-color: ${s};
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
@@ -110,126 +110,135 @@
|
|
|
110
110
|
opacity: ${l.opacityContentOnSurfacePressed};
|
|
111
111
|
transform: translate(-50%, -50%) scale(1);
|
|
112
112
|
}
|
|
113
|
-
`;var
|
|
113
|
+
`;var y,b=function(t,o,e,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 u extends o.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o.Debouncer(10),this.moveRipple=t=>{var o,e;let{x: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`
|
|
114
114
|
<style>
|
|
115
115
|
.ft-ripple .ft-ripple--effect {
|
|
116
116
|
left: ${this.originX}px;
|
|
117
117
|
top: ${this.originY}px;
|
|
118
118
|
}
|
|
119
119
|
</style>
|
|
120
|
-
<div class="${
|
|
120
|
+
<div class="${i.classMap(t)}">
|
|
121
121
|
<div class="ft-ripple--background"></div>
|
|
122
122
|
<div class="ft-ripple--effect"></div>
|
|
123
123
|
</div>
|
|
124
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var i,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}y.elementDefinitions={},y.styles=u,g([o.property({type:Boolean})],y.prototype,"primary",void 0),g([o.property({type:Boolean})],y.prototype,"secondary",void 0),g([o.property({type:Boolean})],y.prototype,"unbounded",void 0),g([o.property({type:Boolean})],y.prototype,"activated",void 0),g([o.property({type:Boolean})],y.prototype,"selected",void 0),g([o.property({type:Boolean})],y.prototype,"disabled",void 0),g([o.state()],y.prototype,"hovered",void 0),g([o.state()],y.prototype,"focused",void 0),g([o.state()],y.prototype,"pressed",void 0),g([o.state()],y.prototype,"rippling",void 0),g([o.state()],y.prototype,"originX",void 0),g([o.state()],y.prototype,"originY",void 0),g([o.query(".ft-ripple")],y.prototype,"ripple",void 0),g([o.query(".ft-ripple--effect")],y.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(y);const v=window,b=v.trustedTypes,m=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,$="$lit$",w=`lit$${(Math.random()+"").slice(9)}$`,k="?"+w,z=`<${k}>`,C=document,O=()=>C.createComment(""),S=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,N="[ \t\n\f\r]",E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,I=/>/g,B=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),F=/'/g,T=/"/g,_=/^(?:script|style|textarea|title)$/i,M=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),U=Symbol.for("lit-noChange"),R=Symbol.for("lit-nothing"),W=new WeakMap,Z=C.createTreeWalker(C,129,null,!1),D=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=E;for(let i=0;i<e;i++){const e=t[i];let l,h,p=-1,a=0;for(;a<e.length&&(r.lastIndex=a,h=r.exec(e),null!==h);)a=r.lastIndex,r===E?"!--"===h[1]?r=A:void 0!==h[1]?r=I:void 0!==h[2]?(_.test(h[2])&&(s=RegExp("</"+h[2],"g")),r=B):void 0!==h[3]&&(r=B):r===B?">"===h[0]?(r=null!=s?s:E,p=-1):void 0===h[1]?p=-2:(p=r.lastIndex-h[2].length,l=h[1],r=void 0===h[3]?B:'"'===h[3]?T:F):r===T||r===F?r=B:r===A||r===I?r=E:(r=B,s=void 0);const f=r===B&&t[i+1].startsWith("/>")?" ":"";n+=r===E?e+z:p>=0?(o.push(l),e.slice(0,p)+$+e.slice(p)+w+f):e+w+(-2===p?(o.push(void 0),i):f)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(l):l,o]};class L{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[h,p]=D(t,i);if(this.el=L.createElement(h,e),Z.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Z.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith($)||i.startsWith(w)){const e=p[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+$).split(w),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?V:"?"===i[1]?X:"@"===i[1]?Y:P})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(_.test(o.tagName)){const t=o.textContent.split(w),i=t.length-1;if(i>0){o.textContent=b?b.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],O()),Z.nextNode(),l.push({type:2,index:++s});o.append(t[i],O())}}}else if(8===o.nodeType)if(o.data===k)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(w,t+1));)l.push({type:7,index:s}),t+=w.length-1}s++}}static createElement(t,i){const e=C.createElement("template");return e.innerHTML=t,e}}function K(t,i,e=t,o){var s,n,r,l;if(i===U)return i;let h=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const p=S(i)?void 0:i._$litDirective$;return(null==h?void 0:h.constructor)!==p&&(null===(n=null==h?void 0:h._$AO)||void 0===n||n.call(h,!1),void 0===p?h=void 0:(h=new p(t),h._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=h:e._$Cl=h),void 0!==h&&(i=K(t,h._$AS(t,i.values),h,o)),i}class H{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:C).importNode(e,!0);Z.currentNode=s;let n=Z.nextNode(),r=0,l=0,h=o[0];for(;void 0!==h;){if(r===h.index){let i;2===h.type?i=new G(n,n.nextSibling,this,t):1===h.type?i=new h.ctor(n,h.name,h.strings,this,t):6===h.type&&(i=new J(n,this,t)),this._$AV.push(i),h=o[++l]}r!==(null==h?void 0:h.index)&&(n=Z.nextNode(),r++)}return s}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class G{constructor(t,i,e,o){var s;this.type=2,this._$AH=R,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=K(this,t,i),S(t)?t===R||null==t||""===t?(this._$AH!==R&&this._$AR(),this._$AH=R):t!==this._$AH&&t!==U&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>j(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==R&&S(this._$AH)?this._$AA.nextSibling.data=t:this.$(C.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=L.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.v(e);else{const t=new H(s,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=W.get(t.strings);return void 0===i&&W.set(t.strings,i=new L(t)),i}T(t){j(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new G(this.k(O()),this.k(O()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class P{constructor(t,i,e,o,s){this.type=1,this._$AH=R,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=R}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=K(this,t,i,0),n=!S(t)||t!==this._$AH&&t!==U,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=K(this,o[e+r],i,r),l===U&&(l=this._$AH[r]),n||(n=!S(l)||l!==this._$AH[r]),l===R?t=R:t!==R&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===R?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===R?void 0:t}}const q=b?b.emptyScript:"";class X extends P{constructor(){super(...arguments),this.type=4}j(t){t&&t!==R?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Y extends P{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=K(this,t,i,0))&&void 0!==e?e:R)===U)return;const o=this._$AH,s=t===R&&o!==R||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==R&&(o===R||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class J{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const Q=v.litHtmlPolyfillSupport;null==Q||Q(L,G),(null!==(x=v.litHtmlVersions)&&void 0!==x?x:v.litHtmlVersions=[]).push("2.7.3");
|
|
124
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),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()}}u.elementDefinitions={},u.styles=g,b([r.property({type:Boolean})],u.prototype,"primary",void 0),b([r.property({type:Boolean})],u.prototype,"secondary",void 0),b([r.property({type:Boolean})],u.prototype,"unbounded",void 0),b([r.property({type:Boolean})],u.prototype,"activated",void 0),b([r.property({type:Boolean})],u.prototype,"selected",void 0),b([r.property({type:Boolean})],u.prototype,"disabled",void 0),b([r.state()],u.prototype,"hovered",void 0),b([r.state()],u.prototype,"focused",void 0),b([r.state()],u.prototype,"pressed",void 0),b([r.state()],u.prototype,"rippling",void 0),b([r.state()],u.prototype,"originX",void 0),b([r.state()],u.prototype,"originY",void 0),b([r.query(".ft-ripple")],u.prototype,"ripple",void 0),b([r.query(".ft-ripple--effect")],u.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(u);const m=window,x=m.trustedTypes,O=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,N="$lit$",v=`lit$${(Math.random()+"").slice(9)}$`,S="?"+v,w=`<${S}>`,C=document,I=()=>C.createComment(""),$=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,R="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,k=/>/g,L=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),K=/'/g,Z=/"/g,z=/^(?:script|style|textarea|title)$/i,F=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),D=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),A=new WeakMap,H=C.createTreeWalker(C,129,null,!1),G=(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,p=-1,s=0;for(;s<e.length&&(n.lastIndex=s,c=n.exec(e),null!==c);)s=n.lastIndex,n===W?"!--"===c[1]?n=E:void 0!==c[1]?n=k:void 0!==c[2]?(z.test(c[2])&&(i=RegExp("</"+c[2],"g")),n=L):void 0!==c[3]&&(n=L):n===L?">"===c[0]?(n=null!=i?i:W,p=-1):void 0===c[1]?p=-2:(p=n.lastIndex-c[2].length,l=c[1],n=void 0===c[3]?L:'"'===c[3]?Z:K):n===Z||n===K?n=L:n===E||n===k?n=W:(n=L,i=void 0);const f=n===L&&t[o+1].startsWith("/>")?" ":"";a+=n===W?e+w:p>=0?(r.push(l),e.slice(0,p)+N+e.slice(p)+v+f):e+v+(-2===p?(r.push(void 0),o):f)}const l=a+(t[e]||"<?>")+(2===o?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==O?O.createHTML(l):l,r]};class j{constructor({strings:t,_$litType$:o},e){let r;this.parts=[];let i=0,a=0;const n=t.length-1,l=this.parts,[c,p]=G(t,o);if(this.el=j.createElement(c,e),H.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(r=H.nextNode())&&l.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const o of r.getAttributeNames())if(o.endsWith(N)||o.startsWith(v)){const e=p[a++];if(t.push(o),void 0!==e){const t=r.getAttribute(e.toLowerCase()+N).split(v),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:i,name:o[2],strings:t,ctor:"."===o[1]?Y:"?"===o[1]?q:"@"===o[1]?X:_})}else l.push({type:6,index:i})}for(const o of t)r.removeAttribute(o)}if(z.test(r.tagName)){const t=r.textContent.split(v),o=t.length-1;if(o>0){r.textContent=x?x.emptyScript:"";for(let e=0;e<o;e++)r.append(t[e],I()),H.nextNode(),l.push({type:2,index:++i});r.append(t[o],I())}}}else if(8===r.nodeType)if(r.data===S)l.push({type:2,index:i});else{let t=-1;for(;-1!==(t=r.data.indexOf(v,t+1));)l.push({type:7,index:i}),t+=v.length-1}i++}}static createElement(t,o){const e=C.createElement("template");return e.innerHTML=t,e}}function M(t,o,e=t,r){var i,a,n,l;if(o===D)return o;let c=void 0!==r?null===(i=e._$Co)||void 0===i?void 0:i[r]:e._$Cl;const p=$(o)?void 0:o._$litDirective$;return(null==c?void 0:c.constructor)!==p&&(null===(a=null==c?void 0:c._$AO)||void 0===a||a.call(c,!1),void 0===p?c=void 0:(c=new p(t),c._$AT(t,e,r)),void 0!==r?(null!==(n=(l=e)._$Co)&&void 0!==n?n:l._$Co=[])[r]=c:e._$Cl=c),void 0!==c&&(o=M(t,c._$AS(t,o.values),c,r)),o}class P{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:C).importNode(e,!0);H.currentNode=i;let a=H.nextNode(),n=0,l=0,c=r[0];for(;void 0!==c;){if(n===c.index){let o;2===c.type?o=new T(a,a.nextSibling,this,t):1===c.type?o=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(o=new J(a,this,t)),this._$AV.push(o),c=r[++l]}n!==(null==c?void 0:c.index)&&(a=H.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 T{constructor(t,o,e,r){var i;this.type=2,this._$AH=B,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=M(this,t,o),$(t)?t===B||null==t||""===t?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==D&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>U(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!==B&&$(this._$AH)?this._$AA.nextSibling.data=t:this.$(C.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=j.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 P(i,this),o=t.u(this.options);t.v(e),this.$(o),this._$AH=t}}_$AC(t){let o=A.get(t.strings);return void 0===o&&A.set(t.strings,o=new j(t)),o}T(t){U(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 T(this.k(I()),this.k(I()),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 _{constructor(t,o,e,r,i){this.type=1,this._$AH=B,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=B}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=M(this,t,o,0),a=!$(t)||t!==this._$AH&&t!==D,a&&(this._$AH=t);else{const r=t;let n,l;for(t=i[0],n=0;n<i.length-1;n++)l=M(this,r[e+n],o,n),l===D&&(l=this._$AH[n]),a||(a=!$(l)||l!==this._$AH[n]),l===B?t=B:t!==B&&(t+=(null!=l?l:"")+i[n+1]),this._$AH[n]=l}a&&!r&&this.j(t)}j(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends _{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===B?void 0:t}}const V=x?x.emptyScript:"";class q extends _{constructor(){super(...arguments),this.type=4}j(t){t&&t!==B?this.element.setAttribute(this.name,V):this.element.removeAttribute(this.name)}}class X extends _{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=M(this,t,o,0))&&void 0!==e?e:B)===D)return;const r=this._$AH,i=t===B&&r!==B||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==B&&(r===B||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 J{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const Q=m.litHtmlPolyfillSupport;null==Q||Q(j,T),(null!==(y=m.litHtmlVersions)&&void 0!==y?y:m.litHtmlVersions=[]).push("2.7.3");
|
|
125
125
|
/**
|
|
126
126
|
* @license
|
|
127
127
|
* Copyright 2020 Google LLC
|
|
128
128
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
129
129
|
*/
|
|
130
|
-
const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void 0:t._$litStatic$},et=t=>({_$litStatic$:t,r:tt}),ot=new Map,st=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let h,p=0,a=!1;for(;p<o;){for(h=i[p];p<o&&void 0!==(n=e[p],s=it(n));)h+=s+i[++p],a=!0;p!==o&&l.push(n),r.push(h),p++}if(p===o&&r.push(i[o]),a){const t=r.join("$$lit$$");void 0===(i=ot.get(t))&&(r.raw=r,ot.set(t,i=r)),e=l}return t(i,...e)})(M);var nt;!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"}(nt||(nt={}));const rt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),lt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),ht={fontFamily:lt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",rt),at=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",ht.fontSize,"20px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",ht.fontWeight,"normal"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",ht.letterSpacing,"0.15px"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",ht.lineHeight,"1.2"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",ht.textTransform,"inherit"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",rt),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",ht.fontSize,"14px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",ht.fontWeight,"normal"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",ht.letterSpacing,"0.105px"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",ht.lineHeight,"1.7"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",ht.textTransform,"inherit"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",lt),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",ht.fontSize,"16px"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",ht.fontWeight,"600"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",ht.letterSpacing,"0.144px"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",ht.lineHeight,"1.5"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",ht.textTransform,"inherit"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",lt),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",ht.fontSize,"14px"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",ht.fontWeight,"normal"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",ht.letterSpacing,"0.098px"),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",ht.lineHeight,"1.7"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",ht.textTransform,"inherit"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",lt),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",ht.fontSize,"16px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",ht.fontWeight,"normal"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",ht.letterSpacing,"0.496px"),Mt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",ht.lineHeight,"1.5"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",ht.textTransform,"inherit"),Rt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",lt),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",ht.fontSize,"14px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",ht.fontWeight,"normal"),Dt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",ht.letterSpacing,"0.252px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",ht.lineHeight,"1.4"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",ht.textTransform,"inherit"),Ht=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",lt),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",ht.fontSize,"12px"),Pt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",ht.fontWeight,"normal"),Vt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",ht.letterSpacing,"0.396px"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",ht.lineHeight,"1.33"),Xt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",ht.textTransform,"inherit"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",lt),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",ht.fontSize,"10px"),Qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",ht.fontWeight,"normal"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",ht.letterSpacing,"0.33px"),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",ht.lineHeight,"1.6"),ei=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",ht.textTransform,"inherit"),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",lt),si=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",ht.fontSize,"10px"),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",ht.fontWeight,"normal"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",ht.letterSpacing,"1.5px"),li=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",ht.lineHeight,"1.6"),hi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",ht.textTransform,"uppercase"),pi={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",lt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",ht.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",ht.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",ht.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",ht.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",ht.textTransform,"uppercase")},ai=e.css`
|
|
130
|
+
const tt=Symbol.for(""),ot=t=>{if((null==t?void 0:t.r)===tt)return null==t?void 0:t._$litStatic$},et=t=>({_$litStatic$:t,r:tt}),rt=new Map,it=(t=>(o,...e)=>{const r=e.length;let i,a;const n=[],l=[];let c,p=0,s=!1;for(;p<r;){for(c=o[p];p<r&&void 0!==(a=e[p],i=ot(a));)c+=i+o[++p],s=!0;p!==r&&l.push(a),n.push(c),p++}if(p===r&&n.push(o[r]),s){const t=n.join("$$lit$$");void 0===(o=rt.get(t))&&(n.raw=n,rt.set(t,o=n)),e=l}return t(o,...e)})(F);var at;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(at||(at={}));const nt=t=>"string"==typeof t?e.unsafeCSS(t):t;class lt{static create(t,o,r,i){const a=t=>nt(null!=t?t:i),n=e.css`var(${nt(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(${nt(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(${nt(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(${nt(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):nt(null!=o?o:t.lastResortDefaultValue()),i=e.css`var(${nt(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(${nt(t.name)}, ${r(o)})`,i.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>t.lastResortDefaultValue(),i}}const ct={colorWhite:lt.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:lt.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:lt.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:lt.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:lt.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:lt.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:lt.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:lt.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:lt.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:lt.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:lt.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:lt.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:lt.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:lt.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:lt.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:lt.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:lt.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:lt.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:lt.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:lt.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:lt.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:lt.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:lt.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:lt.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:lt.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:lt.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:lt.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:lt.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:lt.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:lt.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:lt.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:lt.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:lt.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:lt.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:lt.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:lt.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:lt.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:lt.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:lt.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:lt.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:lt.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:lt.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:lt.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:lt.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:lt.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:lt.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:lt.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:lt.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:lt.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:lt.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:lt.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:lt.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:lt.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:lt.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:lt.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:lt.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:lt.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:lt.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:lt.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:lt.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:lt.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:lt.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:lt.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:lt.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:lt.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:lt.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:lt.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:lt.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:lt.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:lt.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:lt.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:lt.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:lt.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:lt.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:lt.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:lt.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:lt.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:lt.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:lt.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:lt.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:lt.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:lt.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:lt.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:lt.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:lt.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:lt.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:lt.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:lt.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:lt.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:lt.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:lt.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:lt.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:lt.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:lt.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:lt.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:lt.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:lt.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:lt.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:lt.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:lt.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:lt.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:lt.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:lt.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:lt.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:lt.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:lt.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:lt.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:lt.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:lt.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:lt.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:lt.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:lt.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:lt.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:lt.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:lt.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:lt.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:lt.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:lt.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:lt.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:lt.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:lt.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:lt.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:lt.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:lt.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:lt.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:lt.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:lt.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:lt.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:lt.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:lt.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:lt.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:lt.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:lt.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:lt.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:lt.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:lt.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:lt.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:lt.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:lt.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:lt.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:lt.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:lt.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:lt.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:lt.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:lt.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:lt.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:lt.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:lt.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:lt.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:lt.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:lt.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:lt.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:lt.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:lt.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:lt.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:lt.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:lt.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:lt.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:lt.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:lt.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:lt.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:lt.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:lt.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:lt.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:lt.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:lt.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:lt.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:lt.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:lt.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:lt.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:lt.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:lt.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:lt.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:lt.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:lt.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:lt.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:lt.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:lt.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:lt.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:lt.create("--ft-icon-size-6","","SIZE","48px"),opacity0:lt.create("--ft-opacity-0","","NUMBER","0"),opacity8:lt.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:lt.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:lt.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:lt.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:lt.create("--ft-opacity-80","","NUMBER","0.8")},pt={display:{fontFamily:lt.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:lt.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:lt.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:lt.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:lt.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:lt.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:lt.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:lt.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:lt.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:lt.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:lt.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:lt.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:lt.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:lt.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:lt.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:lt.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:lt.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:lt.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:lt.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:lt.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:lt.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:lt.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:lt.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:lt.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:lt.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:lt.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:lt.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:lt.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:lt.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:lt.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:lt.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:lt.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:lt.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:lt.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:lt.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:lt.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:lt.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:lt.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:lt.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:lt.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:lt.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:lt.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:lt.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:lt.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:lt.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:lt.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:lt.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:lt.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:lt.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:lt.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:lt.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:lt.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:lt.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:lt.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:lt.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:lt.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:lt.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:lt.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:lt.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:lt.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:lt.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:lt.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:lt.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:lt.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:lt.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:lt.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:lt.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:lt.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:lt.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:lt.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:lt.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:lt.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:lt.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:lt.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:lt.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:lt.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:lt.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:lt.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:lt.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:lt.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:lt.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:lt.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:lt.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:lt.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:lt.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:lt.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:lt.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:lt.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:lt.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:lt.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:lt.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:lt.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:lt.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:lt.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:lt.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:lt.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:lt.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:lt.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:lt.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:lt.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:lt.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:lt.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:lt.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:lt.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:lt.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:lt.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:lt.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:lt.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:lt.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:lt.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:lt.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:lt.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:lt.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:lt.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:lt.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:lt.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:lt.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},st={backgroundActionPrimary:lt.extend("--ft-background-action-primary","Used as backgorund of primary action components.",ct.colorBrand0),backgroundErrorPrimary:lt.extend("--ft-background-error-primary","Used as background of error components.",ct.colorRed0),backgroundErrorSubtle:lt.extend("--ft-background-error-subtle","Used as background of subtle error components.",ct.colorRed10),backgroundInfoPrimary:lt.extend("--ft-background-info-primary","Used as background of information components.",ct.colorCyan200),backgroundInfoSubtle:lt.extend("--ft-background-info-subtle","Used as background of subtle information components.",ct.colorCyan10),backgroundWarningPrimary:lt.extend("--ft-background-warning-primary","Used as background of warning components.",ct.colorOrange300),backgroundWarningSubtle:lt.extend("--ft-background-warning-subtle","Used as background of subtle information components.",ct.colorOrange10),backgroundSuccessPrimary:lt.extend("--ft-background-success-primary","Used as background of success components.",ct.colorGreen200),backgroundSuccessSubtle:lt.extend("--ft-background-success-subtle","Used as background of subtle success components.",ct.colorGreen10),backgroundGlobalSurface:lt.extend("--ft-background-global-surface","Used as app background.",ct.colorWhite),backgroundGlobalOnSurface:lt.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",ct.colorGray10),backgroundGlobalOnSurfaceDark:lt.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",ct.colorGray30),contentActionPrimary:lt.extend("--ft-content-action-primary","Used on label of primary action on light surface.",ct.colorBrand0),contentWarningPrimary:lt.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",ct.colorOrange300),contentWarningIconOnly:lt.extend("--ft-content-warning-icon-only","Used on warning status icons alone",ct.colorOrange0),contentErrorPrimary:lt.extend("--ft-content-error-primary","Used on label of error messages on light surface.",ct.colorRed0),contentErrorIconOnly:lt.extend("--ft-content-error-icon-only","Used on error status icons alone",ct.colorRed0),contentInfoPrimary:lt.extend("--ft-content-info-primary","Used on label of information messages on light surface.",ct.colorCyan200),contentInfoIconOnly:lt.extend("--ft-content-info-icon-only","Used on info status icons alone",ct.colorCyan0),contentSuccessIconOnly:lt.extend("--ft-content-success-icon-only","Used on success status icons alone",ct.colorGreen0),contentSuccessPrimary:lt.extend("--ft-content-success-primary","Used on label of success messages on light surface.",ct.colorGreen200),contentGlobalPrimary:lt.extend("--ft-content-global-primary","Used for main content on the page.",ct.colorGray500),contentGlobalSecondary:lt.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",ct.colorGray200),contentGlobalSubtle:lt.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",ct.colorGray0),contentGlobalOnColor:lt.extend("--ft-content-global-on-color","Used for content on a dominant color.",ct.colorWhite),borderActionPrimary:lt.extend("--ft-border-action-primary","Used as border for primary action components.",ct.colorBrand0),borderActionFocusRing:lt.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",ct.colorCyan0),borderWarningPrimary:lt.extend("--ft-border-warning-primary","Used as border for warning components.",ct.colorOrange30),borderSuccessPrimary:lt.extend("--ft-border-success-primary","Used as border for success components.",ct.colorGreen30),borderErrorPrimary:lt.extend("--ft-border-error-primary","Used as border for error components.",ct.colorRed30),borderInfoPrimary:lt.extend("--ft-border-info-primary","Used as border for information components.",ct.colorCyan30),borderGlobalSubtle:lt.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",ct.colorGray30),borderGlobalPrimary:lt.extend("--ft-border-global-primary","Used as border for element like input.",ct.colorGray50),borderInputPrimary:lt.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",ct.colorGray80)};lt.create("--ft-button-large-height","","SIZE","40px"),lt.extend("--ft-button-large-horizontal-padding","",ct.spacing4),lt.extend("--ft-button-large-gap","",ct.spacing2),lt.extend("--ft-button-large-border-radius","",ct.borderRadiusS),lt.extend("--ft-button-large-icon-size","",ct.iconSize3),lt.create("--ft-button-large-border-width","","SIZE","1px"),lt.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),lt.create("--ft-button-large-focus-outline-width","","SIZE","2px"),lt.create("--ft-button-large-icon-only-width","","SIZE","40px"),lt.create("--ft-button-small-height","","SIZE","30px"),lt.extend("--ft-button-small-horizontal-padding","",ct.spacing3),lt.extend("--ft-button-small-gap","",ct.spacing2),lt.extend("--ft-button-small-border-radius","",ct.borderRadiusS),lt.extend("--ft-button-small-icon-size","",ct.iconSize2),lt.create("--ft-button-small-border-width","","SIZE","1px"),lt.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),lt.create("--ft-button-small-focus-outline-width","","SIZE","2px"),lt.create("--ft-button-small-icon-only-width","","SIZE","30px"),lt.extend("--ft-button-primary-background-color","",st.backgroundActionPrimary),lt.extend("--ft-button-primary-color","",st.contentGlobalOnColor),lt.extend("--ft-button-primary-icon-color","",st.contentGlobalOnColor),lt.extend("--ft-button-primary-state-layer-color","",st.contentGlobalOnColor),lt.extend("--ft-button-primary-state-layer-opacity-hover","",ct.opacity16),lt.extend("--ft-button-primary-state-layer-opacity-focus","",ct.opacity16),lt.extend("--ft-button-primary-state-layer-opacity-active","",ct.opacity24),lt.extend("--ft-button-primary-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-button-focus-focus-ring-color","",st.borderActionFocusRing),lt.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),lt.extend("--ft-button-tertiary-color","",st.contentActionPrimary),lt.extend("--ft-button-tertiary-icon-color","",st.contentActionPrimary),lt.extend("--ft-button-tertiary-state-layer-color","",st.contentActionPrimary),lt.extend("--ft-button-tertiary-state-layer-opacity-hover","",ct.opacity8),lt.extend("--ft-button-tertiary-state-layer-opacity-focus","",ct.opacity8),lt.extend("--ft-button-tertiary-state-layer-opacity-active","",ct.opacity16),lt.extend("--ft-button-tertiary-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-button-secondary-background-color","",ct.colorWhite),lt.extend("--ft-button-secondary-color","",st.contentActionPrimary),lt.extend("--ft-button-secondary-icon-color","",st.contentActionPrimary),lt.extend("--ft-button-secondary-state-layer-color","",st.contentActionPrimary),lt.extend("--ft-button-secondary-state-layer-opacity-hover","",ct.opacity8),lt.extend("--ft-button-secondary-state-layer-opacity-focus","",ct.opacity8),lt.extend("--ft-button-secondary-state-layer-opacity-active","",ct.opacity16),lt.extend("--ft-button-secondary-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-button-secondary-border-color","",st.borderActionPrimary),lt.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),lt.extend("--ft-button-neutral-icon-color","",st.contentGlobalSecondary),lt.extend("--ft-button-neutral-color","",st.contentGlobalSecondary),lt.extend("--ft-button-neutral-state-layer-color","",st.contentGlobalSecondary),lt.extend("--ft-button-neutral-state-layer-opacity-hover","",ct.opacity8),lt.extend("--ft-button-neutral-state-layer-opacity-focus","",ct.opacity8),lt.extend("--ft-button-neutral-state-layer-opacity-active","",ct.opacity16),lt.extend("--ft-button-neutral-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-tabs-top-left-border-radius","",ct.borderRadiusS),lt.extend("--ft-tabs-top-right-border-radius","",ct.borderRadiusS),lt.extend("--ft-tabs-label-horizontal-padding","",ct.spacing4),lt.extend("--ft-tabs-label-vertical-padding","",ct.spacing3),lt.extend("--ft-tabs-label-gap","",ct.spacing1),lt.extend("--ft-switch-group-horizontal-padding","",ct.spacing1),lt.extend("--ft-switch-group-vertical-padding","",ct.spacing1),lt.extend("--ft-switch-group-gap","",ct.spacing1),lt.extend("--ft-switch-group-background-color","",st.backgroundGlobalSurface),lt.extend("--ft-switch-group-border-color","",st.borderGlobalSubtle),lt.create("--ft-switch-group-border-radius","","SIZE","6px"),lt.extend("--ft-switch-label-horizontal-padding","",ct.spacing2),lt.extend("--ft-switch-label-vertical-padding","",ct.spacing1),lt.extend("--ft-switch-icon-horizontal-padding","",ct.spacing1),lt.extend("--ft-switch-icon-vertical-padding","",ct.spacing1),lt.create("--ft-switch-focus-outline-width","","SIZE","2px"),lt.extend("--ft-switch-focus-focus-ring-color","",st.borderActionFocusRing),lt.extend("--ft-switch-option-border-radius","",ct.borderRadiusS),lt.extend("--ft-switch-off-state-layer-opacity-hover","",ct.opacity8),lt.extend("--ft-switch-off-state-layer-opacity-focus","",ct.opacity8),lt.extend("--ft-switch-off-state-layer-opacity-active","",ct.opacity16),lt.extend("--ft-switch-off-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-switch-off-color","",st.contentGlobalSubtle),lt.extend("--ft-switch-off-state-layer-color","",st.contentGlobalSubtle),lt.extend("--ft-chart-1-light","for area color charts",ct.colorBrand40),lt.extend("--ft-chart-1-base","for line charts",ct.colorBrand0),lt.extend("--ft-chart-2-light","for area color charts",ct.colorYellow60),lt.extend("--ft-chart-2-base","for line charts",ct.colorYellow100),lt.extend("--ft-chart-3-light","",ct.colorUltramarine40),lt.extend("--ft-chart-3-base","",ct.colorUltramarine70),lt.extend("--ft-chart-4-light","",ct.colorCyan50),lt.extend("--ft-chart-4-base","",ct.colorCyan100),lt.extend("--ft-chart-5-light","",ct.colorRed40),lt.extend("--ft-chart-5-base","",ct.colorRed60),lt.extend("--ft-chart-6-light","",ct.colorGreen40),lt.extend("--ft-chart-6-base","",ct.colorGreen70),lt.extend("--ft-chart-7-light","",ct.colorOrange70),lt.extend("--ft-chart-7-base","",ct.colorOrange100),lt.extend("--ft-chart-8-light","",ct.colorAvocado70),lt.extend("--ft-chart-8-base","",ct.colorAvocado200),lt.extend("--ft-chart-9-light","",ct.colorBrown50),lt.extend("--ft-chart-9-base","",ct.colorBrown200),lt.extend("--ft-chart-10-light","",ct.colorGray50),lt.extend("--ft-chart-10-base","",ct.colorGray80),lt.extend("--ft-chart-monochrome-10","",ct.colorBrand10),lt.extend("--ft-chart-monochrome-20","",ct.colorBrand20),lt.extend("--ft-chart-monochrome-30","",ct.colorBrand40),lt.extend("--ft-chart-monochrome-40","",ct.colorBrand60),lt.extend("--ft-chart-monochrome-50","",ct.colorBrand0),lt.extend("--ft-chart-monochrome-60","",ct.colorBrand200),lt.extend("--ft-chip-large-horizontal-padding","",ct.spacing4),lt.extend("--ft-chip-large-vertical-padding","",ct.spacing2),lt.extend("--ft-chip-large-gap","",ct.spacing1),lt.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),lt.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),lt.extend("--ft-chip-large-border-radius","",ct.borderRadiusPill),lt.create("--ft-chip-large-border-width","","SIZE","1px"),lt.extend("--ft-chip-large-icon-size","",ct.iconSize3),lt.extend("--ft-chip-medium-horizontal-padding","",ct.spacing3),lt.extend("--ft-chip-medium-vertical-padding","",ct.spacing1),lt.extend("--ft-chip-medium-gap","",ct.spacing1),lt.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),lt.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),lt.extend("--ft-chip-medium-border-radius","",ct.borderRadiusPill),lt.create("--ft-chip-medium-border-width","","SIZE","1px"),lt.extend("--ft-chip-medium-icon-size","",ct.iconSize2),lt.extend("--ft-chip-small-horizontal-padding","",ct.spacing2),lt.extend("--ft-chip-small-vertical-padding","",ct.spacing05),lt.extend("--ft-chip-small-gap","",ct.spacing1),lt.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),lt.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),lt.extend("--ft-chip-small-border-radius","",ct.borderRadiusPill),lt.create("--ft-chip-small-border-width","","SIZE","1px"),lt.extend("--ft-chip-small-icon-size","",ct.iconSize1),lt.extend("--ft-chip-neutral-background-color","",st.backgroundGlobalOnSurface),lt.extend("--ft-chip-neutral-color","",st.contentGlobalPrimary),lt.extend("--ft-chip-neutral-border-color","",st.borderGlobalSubtle),lt.extend("--ft-chip-info-background-color","",st.backgroundInfoSubtle),lt.extend("--ft-chip-info-color","",st.contentInfoPrimary),lt.extend("--ft-chip-info-border-color","",st.borderInfoPrimary),lt.extend("--ft-chip-success-background-color","",st.backgroundSuccessSubtle),lt.extend("--ft-chip-success-color","",st.contentSuccessPrimary),lt.extend("--ft-chip-success-border-color","",st.borderSuccessPrimary),lt.extend("--ft-chip-warning-background-color","",st.backgroundWarningSubtle),lt.extend("--ft-chip-warning-color","",st.contentWarningPrimary),lt.extend("--ft-chip-warning-border-color","",st.borderWarningPrimary),lt.extend("--ft-chip-error-background-color","",st.backgroundErrorSubtle),lt.extend("--ft-chip-error-color","",st.contentErrorPrimary),lt.extend("--ft-chip-error-border-color","",st.borderErrorPrimary),lt.create("--ft-notice-border-width","","SIZE","1px"),lt.extend("--ft-notice-horizontal-padding","",ct.spacing2),lt.extend("--ft-notice-vertical-padding","",ct.spacing1),lt.extend("--ft-notice-border-radius","",ct.borderRadiusS),lt.extend("--ft-notice-gap","",ct.spacing2),lt.extend("--ft-notice-icon-size","",ct.iconSize3),lt.extend("--ft-notice-info-background-color","",st.backgroundInfoSubtle),lt.extend("--ft-notice-info-border-color","",st.borderInfoPrimary),lt.extend("--ft-notice-info-color","",st.contentInfoPrimary),lt.extend("--ft-notice-warning-background-color","",st.backgroundWarningSubtle),lt.extend("--ft-notice-warning-border-color","",st.borderWarningPrimary),lt.extend("--ft-notice-warning-color","",st.contentWarningPrimary),lt.extend("--ft-checkbox-label-color","",st.contentGlobalPrimary),lt.extend("--ft-checkbox-checked-background-color","",st.contentActionPrimary),lt.extend("--ft-checkbox-checked-state-layer-color","",st.contentActionPrimary),lt.extend("--ft-checkbox-checked-color","",st.contentGlobalOnColor),lt.extend("--ft-checkbox-checked-state-layer-opacity-hover","",ct.opacity16),lt.extend("--ft-checkbox-checked-state-layer-opacity-focus","",ct.opacity16),lt.extend("--ft-checkbox-checked-state-layer-opacity-active","",ct.opacity24),lt.extend("--ft-checkbox-checked-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-checkbox-unchecked-border-color","",ct.colorGray80),lt.extend("--ft-checkbox-unchecked-state-layer-color","",ct.colorGray80),lt.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",ct.opacity16),lt.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",ct.opacity16),lt.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",ct.opacity24),lt.extend("--ft-checkbox-unchecked-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-checkbox-focus-focus-ring-color","",st.borderActionFocusRing),lt.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),lt.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),lt.extend("--ft-checkbox-gap","",ct.spacing3),lt.extend("--ft-toggle-off-state-layer-opacity-hover","",ct.opacity16),lt.extend("--ft-toggle-off-state-layer-opacity-focus","",ct.opacity16),lt.extend("--ft-toggle-off-state-layer-opacity-active","",ct.opacity24),lt.extend("--ft-toggle-off-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-toggle-off-background-color","",st.contentGlobalSubtle),lt.extend("--ft-toggle-off-icon-color","",st.contentGlobalSubtle),lt.extend("--ft-toggle-off-state-layer-color","",st.contentGlobalSubtle),lt.extend("--ft-toggle-on-state-layer-opacity-hover","",ct.opacity16),lt.extend("--ft-toggle-on-state-layer-opacity-focus","",ct.opacity16),lt.extend("--ft-toggle-on-state-layer-opacity-active","",ct.opacity24),lt.extend("--ft-toggle-on-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-toggle-on-background-color","",st.contentActionPrimary),lt.extend("--ft-toggle-on-icon-color","",st.contentActionPrimary),lt.extend("--ft-toggle-on-state-layer-color","",st.contentActionPrimary),lt.extend("--ft-toggle-label-color","",st.contentGlobalPrimary),lt.extend("--ft-toggle-focus-focus-ring-color","",st.borderActionFocusRing),lt.extend("--ft-toggle-gap","",ct.spacing3),lt.extend("--ft-radio-label-color","",st.contentGlobalPrimary),lt.extend("--ft-radio-selected-color","",st.contentActionPrimary),lt.extend("--ft-radio-selected-state-layer-color","",st.contentActionPrimary),lt.extend("--ft-radio-selected-state-layer-opacity-hover","",ct.opacity16),lt.extend("--ft-radio-selected-state-layer-opacity-focus","",ct.opacity16),lt.extend("--ft-radio-selected-state-layer-opacity-active","",ct.opacity24),lt.extend("--ft-radio-selected-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-radio-unselected-state-layer-color","",ct.colorGray80),lt.extend("--ft-radio-unselected-state-layer-opacity-hover","",ct.opacity16),lt.extend("--ft-radio-unselected-state-layer-opacity-focus","",ct.opacity16),lt.extend("--ft-radio-unselected-state-layer-opacity-active","",ct.opacity24),lt.extend("--ft-radio-unselected-component-opacity-disabled","",ct.opacity40),lt.extend("--ft-radio-focus-focus-ring-color","",st.borderActionFocusRing),lt.create("--ft-radio-focus-outline-offset","","SIZE","3px"),lt.create("--ft-radio-focus-outline-width","","SIZE","2px"),lt.extend("--ft-radio-gap","",ct.spacing3),lt.extend("--ft-notification-icon-size","",ct.iconSize4),lt.extend("--ft-notification-horizontal-padding","",ct.spacing4),lt.extend("--ft-notification-vertical-padding","",ct.spacing4),lt.extend("--ft-notification-info-background-color","",st.backgroundInfoSubtle),lt.extend("--ft-notification-info-color","",st.contentInfoPrimary),lt.extend("--ft-notification-info-border-color","",st.borderInfoPrimary),lt.extend("--ft-notification-success-background-color","",st.backgroundSuccessSubtle),lt.extend("--ft-notification-success-color","",st.contentSuccessPrimary),lt.extend("--ft-notification-success-border-color","",st.borderSuccessPrimary),lt.extend("--ft-notification-warning-background-color","",st.backgroundWarningSubtle),lt.extend("--ft-notification-warning-color","",st.contentWarningPrimary),lt.extend("--ft-notification-warning-border-color","",st.borderWarningPrimary),lt.extend("--ft-notification-error-background-color","",st.backgroundErrorSubtle),lt.extend("--ft-notification-error-color","",st.contentErrorPrimary),lt.extend("--ft-notification-error-border-color","",st.borderErrorPrimary),lt.extend("--ft-notification-border-radius","",ct.borderRadiusPill),lt.create("--ft-notification-border-width","","SIZE","1px"),lt.extend("--ft-notification-gap-leading","",ct.spacing2),lt.extend("--ft-notification-gap-trailing","",ct.spacing8);const ft=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),ht=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),dt={fontFamily:ht,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},gt=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ft),yt=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",dt.fontSize,"20px"),bt=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",dt.fontWeight,"normal"),ut=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",dt.letterSpacing,"0.15px"),mt=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",dt.lineHeight,"1.2"),xt=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",dt.textTransform,"inherit"),Ot=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ft),Nt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",dt.fontSize,"14px"),vt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",dt.fontWeight,"normal"),St=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",dt.letterSpacing,"0.105px"),wt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",dt.lineHeight,"1.7"),Ct=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",dt.textTransform,"inherit"),It=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ht),$t=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",dt.fontSize,"16px"),Ut=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",dt.fontWeight,"600"),Rt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",dt.letterSpacing,"0.144px"),Wt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",dt.lineHeight,"1.5"),Et=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",dt.textTransform,"inherit"),kt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ht),Lt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",dt.fontSize,"14px"),Kt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",dt.fontWeight,"normal"),Zt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",dt.letterSpacing,"0.098px"),zt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",dt.lineHeight,"1.7"),Ft=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",dt.textTransform,"inherit"),Dt=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ht),Bt=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",dt.fontSize,"16px"),At=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",dt.fontWeight,"normal"),Ht=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",dt.letterSpacing,"0.496px"),Gt=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",dt.lineHeight,"1.5"),jt=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",dt.textTransform,"inherit"),Mt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ht),Pt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",dt.fontSize,"14px"),Tt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",dt.fontWeight,"normal"),_t=o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",dt.letterSpacing,"0.252px"),Yt=o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",dt.lineHeight,"1.4"),Vt=o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",dt.textTransform,"inherit"),qt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ht),Xt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",dt.fontSize,"12px"),Jt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",dt.fontWeight,"normal"),Qt=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",dt.letterSpacing,"0.396px"),to=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",dt.lineHeight,"1.33"),oo=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",dt.textTransform,"inherit"),eo=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ht),ro=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",dt.fontSize,"10px"),io=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",dt.fontWeight,"normal"),ao=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",dt.letterSpacing,"0.33px"),no=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",dt.lineHeight,"1.6"),lo=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",dt.textTransform,"inherit"),co=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ht),po=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",dt.fontSize,"10px"),so=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",dt.fontWeight,"normal"),fo=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",dt.letterSpacing,"1.5px"),ho=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",dt.lineHeight,"1.6"),go=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",dt.textTransform,"uppercase"),yo={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ht),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",dt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",dt.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",dt.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",dt.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",dt.textTransform,"uppercase")},bo=e.css`
|
|
131
131
|
.ft-typography--title {
|
|
132
|
-
font-family: ${
|
|
133
|
-
font-size: ${
|
|
134
|
-
font-weight: ${
|
|
135
|
-
letter-spacing: ${
|
|
136
|
-
line-height: ${
|
|
137
|
-
text-transform: ${
|
|
138
|
-
}
|
|
139
|
-
`,
|
|
132
|
+
font-family: ${gt};
|
|
133
|
+
font-size: ${yt};
|
|
134
|
+
font-weight: ${bt};
|
|
135
|
+
letter-spacing: ${ut};
|
|
136
|
+
line-height: ${mt};
|
|
137
|
+
text-transform: ${xt};
|
|
138
|
+
}
|
|
139
|
+
`,uo=e.css`
|
|
140
140
|
.ft-typography--title-dense {
|
|
141
|
-
font-family: ${
|
|
142
|
-
font-size: ${
|
|
143
|
-
font-weight: ${
|
|
144
|
-
letter-spacing: ${
|
|
145
|
-
line-height: ${
|
|
146
|
-
text-transform: ${
|
|
147
|
-
}
|
|
148
|
-
`,
|
|
141
|
+
font-family: ${Ot};
|
|
142
|
+
font-size: ${Nt};
|
|
143
|
+
font-weight: ${vt};
|
|
144
|
+
letter-spacing: ${St};
|
|
145
|
+
line-height: ${wt};
|
|
146
|
+
text-transform: ${Ct};
|
|
147
|
+
}
|
|
148
|
+
`,mo=e.css`
|
|
149
149
|
.ft-typography--subtitle1 {
|
|
150
|
-
font-family: ${
|
|
151
|
-
font-size: ${
|
|
152
|
-
font-weight: ${
|
|
153
|
-
letter-spacing: ${
|
|
154
|
-
line-height: ${
|
|
155
|
-
text-transform: ${
|
|
156
|
-
}
|
|
157
|
-
`,
|
|
150
|
+
font-family: ${It};
|
|
151
|
+
font-size: ${$t};
|
|
152
|
+
font-weight: ${Ut};
|
|
153
|
+
letter-spacing: ${Rt};
|
|
154
|
+
line-height: ${Wt};
|
|
155
|
+
text-transform: ${Et};
|
|
156
|
+
}
|
|
157
|
+
`,xo=e.css`
|
|
158
158
|
.ft-typography--subtitle2 {
|
|
159
|
-
font-family: ${
|
|
160
|
-
font-size: ${
|
|
161
|
-
font-weight: ${
|
|
162
|
-
letter-spacing: ${
|
|
163
|
-
line-height: ${
|
|
164
|
-
text-transform: ${
|
|
159
|
+
font-family: ${kt};
|
|
160
|
+
font-size: ${Lt};
|
|
161
|
+
font-weight: ${Kt};
|
|
162
|
+
letter-spacing: ${Zt};
|
|
163
|
+
line-height: ${zt};
|
|
164
|
+
text-transform: ${Ft};
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
`,
|
|
167
|
+
`,Oo=e.css`
|
|
168
168
|
.ft-typography--body1 {
|
|
169
|
-
font-family: ${
|
|
170
|
-
font-size: ${
|
|
169
|
+
font-family: ${Dt};
|
|
170
|
+
font-size: ${Bt};
|
|
171
|
+
font-weight: ${At};
|
|
172
|
+
letter-spacing: ${Ht};
|
|
173
|
+
line-height: ${Gt};
|
|
174
|
+
text-transform: ${jt};
|
|
175
|
+
}
|
|
176
|
+
`,No=e.css`
|
|
177
|
+
.ft-typography--body2 {
|
|
178
|
+
font-family: ${Mt};
|
|
179
|
+
font-size: ${Pt};
|
|
171
180
|
font-weight: ${Tt};
|
|
172
181
|
letter-spacing: ${_t};
|
|
173
|
-
line-height: ${
|
|
174
|
-
text-transform: ${
|
|
182
|
+
line-height: ${Yt};
|
|
183
|
+
text-transform: ${Vt};
|
|
175
184
|
}
|
|
176
|
-
`,
|
|
177
|
-
.ft-typography--body2 {
|
|
178
|
-
font-family: ${Rt};
|
|
179
|
-
font-size: ${Wt};
|
|
180
|
-
font-weight: ${Zt};
|
|
181
|
-
letter-spacing: ${Dt};
|
|
182
|
-
line-height: ${Lt};
|
|
183
|
-
text-transform: ${Kt};
|
|
184
|
-
}
|
|
185
|
-
`,gi=e.css`
|
|
185
|
+
`,vo=e.css`
|
|
186
186
|
.ft-typography--caption {
|
|
187
|
-
font-family: ${
|
|
188
|
-
font-size: ${
|
|
189
|
-
font-weight: ${
|
|
190
|
-
letter-spacing: ${
|
|
191
|
-
line-height: ${
|
|
192
|
-
text-transform: ${
|
|
193
|
-
}
|
|
194
|
-
`,
|
|
187
|
+
font-family: ${qt};
|
|
188
|
+
font-size: ${Xt};
|
|
189
|
+
font-weight: ${Jt};
|
|
190
|
+
letter-spacing: ${Qt};
|
|
191
|
+
line-height: ${to};
|
|
192
|
+
text-transform: ${oo};
|
|
193
|
+
}
|
|
194
|
+
`,So=e.css`
|
|
195
195
|
.ft-typography--breadcrumb {
|
|
196
|
-
font-family: ${
|
|
197
|
-
font-size: ${
|
|
198
|
-
font-weight: ${
|
|
199
|
-
letter-spacing: ${
|
|
200
|
-
line-height: ${
|
|
201
|
-
text-transform: ${
|
|
202
|
-
}
|
|
203
|
-
`,
|
|
196
|
+
font-family: ${eo};
|
|
197
|
+
font-size: ${ro};
|
|
198
|
+
font-weight: ${io};
|
|
199
|
+
letter-spacing: ${ao};
|
|
200
|
+
line-height: ${no};
|
|
201
|
+
text-transform: ${lo};
|
|
202
|
+
}
|
|
203
|
+
`,wo=e.css`
|
|
204
204
|
.ft-typography--overline {
|
|
205
|
-
font-family: ${
|
|
206
|
-
font-size: ${
|
|
207
|
-
font-weight: ${
|
|
208
|
-
letter-spacing: ${
|
|
209
|
-
line-height: ${
|
|
210
|
-
text-transform: ${
|
|
211
|
-
}
|
|
212
|
-
`,
|
|
205
|
+
font-family: ${co};
|
|
206
|
+
font-size: ${po};
|
|
207
|
+
font-weight: ${so};
|
|
208
|
+
letter-spacing: ${fo};
|
|
209
|
+
line-height: ${ho};
|
|
210
|
+
text-transform: ${go};
|
|
211
|
+
}
|
|
212
|
+
`,Co=e.css`
|
|
213
213
|
.ft-typography--button {
|
|
214
|
-
font-family: ${
|
|
215
|
-
font-size: ${
|
|
216
|
-
font-weight: ${
|
|
217
|
-
letter-spacing: ${
|
|
218
|
-
line-height: ${
|
|
219
|
-
text-transform: ${
|
|
220
|
-
}
|
|
221
|
-
`,
|
|
214
|
+
font-family: ${yo.fontFamily};
|
|
215
|
+
font-size: ${yo.fontSize};
|
|
216
|
+
font-weight: ${yo.fontWeight};
|
|
217
|
+
letter-spacing: ${yo.letterSpacing};
|
|
218
|
+
line-height: ${yo.lineHeight};
|
|
219
|
+
text-transform: ${yo.textTransform};
|
|
220
|
+
}
|
|
221
|
+
`,Io=e.css`
|
|
222
222
|
.ft-typography {
|
|
223
223
|
vertical-align: inherit;
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
`,$o=[Object.keys(pt).map((t=>function(t){const o=pt[t];return e.css`
|
|
226
|
+
.ft-typography--${e.unsafeCSS(t)} {
|
|
227
|
+
font-family: ${o.fontFamily};
|
|
228
|
+
font-size: ${o.fontSize};
|
|
229
|
+
font-weight: ${o.fontWeight};
|
|
230
|
+
letter-spacing: ${o.letterSpacing};
|
|
231
|
+
line-height: ${o.lineHeight};
|
|
232
|
+
text-transform: ${o.textCase};
|
|
233
|
+
}
|
|
234
|
+
`}(t)))];var Uo=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 Ro extends o.FtLitElement{constructor(){super(...arguments),this.variant=at.body1}render(){return this.element?it`
|
|
226
235
|
<${et(this.element)}
|
|
227
|
-
|
|
236
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
228
237
|
<slot></slot>
|
|
229
238
|
</${et(this.element)}>
|
|
230
|
-
`:
|
|
239
|
+
`:it`
|
|
231
240
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
232
|
-
`}}
|
|
241
|
+
`}}Ro.styles=[bo,uo,mo,xo,Oo,No,vo,So,wo,Co,Io,...$o],Uo([r.property()],Ro.prototype,"element",void 0),Uo([r.property()],Ro.prototype,"variant",void 0),o.customElement("ft-typography")(Ro);const Wo=o.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),Eo=o.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),ko=o.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),Lo=o.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),Ko=o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),Zo=o.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),zo=e.css`
|
|
233
242
|
.ft-tooltip--container {
|
|
234
243
|
display: block;
|
|
235
244
|
}
|
|
@@ -244,21 +253,21 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
244
253
|
box-sizing: border-box;
|
|
245
254
|
overflow: hidden;
|
|
246
255
|
width: max-content;
|
|
247
|
-
max-width: ${
|
|
256
|
+
max-width: ${Zo};
|
|
248
257
|
text-align: center;
|
|
249
|
-
padding: ${
|
|
250
|
-
z-index: ${
|
|
258
|
+
padding: ${Wo};
|
|
259
|
+
z-index: ${Lo};
|
|
251
260
|
}
|
|
252
261
|
|
|
253
262
|
.ft-tooltip--content {
|
|
254
263
|
padding: 4px 8px;
|
|
255
|
-
border-radius: ${
|
|
256
|
-
background-color: ${
|
|
257
|
-
color: ${
|
|
264
|
+
border-radius: ${Ko};
|
|
265
|
+
background-color: ${ko};
|
|
266
|
+
color: ${Eo};
|
|
258
267
|
position: relative;
|
|
259
268
|
word-break: break-word;
|
|
260
269
|
}
|
|
261
|
-
`;var
|
|
270
|
+
`;var Fo,Do,Bo=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 Ao 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`
|
|
262
271
|
<div part="container"
|
|
263
272
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
264
273
|
@mouseenter=${this.onHover}
|
|
@@ -276,7 +285,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
276
285
|
</div>
|
|
277
286
|
</div>
|
|
278
287
|
</div>
|
|
279
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,s=(t.offsetWidth-i)/2;let n=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=n+"px",l.top=r+"px";const h=this.tooltip.getBoundingClientRect();let p=-h.x,a=h.x+h.width-window.innerWidth;l.left=n+Math.round(this.correctOutOfWindowPixels(p,a))+"px";let f=-h.y,c=h.y+h.height-window.innerHeight;l.top=r+Math.round(this.correctOutOfWindowPixels(f,c))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${ji})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}Bi.elementDefinitions={"ft-typography":wi},Bi.styles=Ni,Ii([o.property()],Bi.prototype,"text",void 0),Ii([o.property({type:Boolean})],Bi.prototype,"manual",void 0),Ii([o.property({type:Boolean})],Bi.prototype,"inline",void 0),Ii([o.property({type:Number})],Bi.prototype,"delay",void 0),Ii([o.property()],Bi.prototype,"position",void 0),Ii([o.queryAssignedNodes("",!0)],Bi.prototype,"slotNodes",void 0),Ii([o.query(".ft-tooltip--container")],Bi.prototype,"container",void 0),Ii([o.query(".ft-tooltip")],Bi.prototype,"tooltip",void 0),Ii([o.query(".ft-tooltip--content")],Bi.prototype,"tooltipContent",void 0),Ii([o.state()],Bi.prototype,"visible",void 0),i.customElement("ft-tooltip")(Bi),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=""}(Ei||(Ei={})),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=""}(Ai||(Ai={})),new Map([...["abw"].map((t=>[t,Ai.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,Ai.AUDIO])),...["avi"].map((t=>[t,Ai.AVI])),...["chm","xhs"].map((t=>[t,Ai.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,Ai.CODE])),...["csv"].map((t=>[t,Ai.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ai.DITA])),...["epub"].map((t=>[t,Ai.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ai.EXCEL])),...["flac"].map((t=>[t,Ai.FLAC])),...["gif"].map((t=>[t,Ai.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ai.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ai.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,Ai.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ai.JPEG])),...["json"].map((t=>[t,Ai.JSON])),...["m4a","m4p"].map((t=>[t,Ai.M4A])),...["mov","qt"].map((t=>[t,Ai.MOV])),...["mp3"].map((t=>[t,Ai.MP3])),...["mp4","m4v"].map((t=>[t,Ai.MP4])),...["ogg","oga"].map((t=>[t,Ai.OGG])),...["pdf","ps"].map((t=>[t,Ai.PDF])),...["png"].map((t=>[t,Ai.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ai.POWERPOINT])),...["rar"].map((t=>[t,Ai.RAR])),...["stp"].map((t=>[t,Ai.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ai.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,Ai.VIDEO])),...["wav"].map((t=>[t,Ai.WAV])),...["wma"].map((t=>[t,Ai.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ai.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ai.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ai.YAML])),...["zip"].map((t=>[t,Ai.ZIP]))]);const Fi={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ti=e.css`
|
|
288
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,r=(t.offsetHeight-e)/2,i=(t.offsetWidth-o)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+i-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+r-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+r-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=a+"px",l.top=n+"px";const c=this.tooltip.getBoundingClientRect();let p=-c.x,s=c.x+c.width-window.innerWidth;l.left=a+Math.round(this.correctOutOfWindowPixels(p,s))+"px";let f=-c.y,h=c.y+c.height-window.innerHeight;l.top=n+Math.round(this.correctOutOfWindowPixels(f,h))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${Zo})`}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))}}Ao.elementDefinitions={"ft-typography":Ro},Ao.styles=zo,Bo([r.property()],Ao.prototype,"text",void 0),Bo([r.property({type:Boolean})],Ao.prototype,"manual",void 0),Bo([r.property({type:Boolean})],Ao.prototype,"inline",void 0),Bo([r.property({type:Number})],Ao.prototype,"delay",void 0),Bo([r.property()],Ao.prototype,"position",void 0),Bo([r.queryAssignedNodes("",!0)],Ao.prototype,"slotNodes",void 0),Bo([r.query(".ft-tooltip--container")],Ao.prototype,"container",void 0),Bo([r.query(".ft-tooltip")],Ao.prototype,"tooltip",void 0),Bo([r.query(".ft-tooltip--content")],Ao.prototype,"tooltipContent",void 0),Bo([r.state()],Ao.prototype,"visible",void 0),o.customElement("ft-tooltip")(Ao),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=""}(Fo||(Fo={})),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=""}(Do||(Do={})),new Map([...["abw"].map((t=>[t,Do.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,Do.AUDIO])),...["avi"].map((t=>[t,Do.AVI])),...["chm","xhs"].map((t=>[t,Do.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,Do.CODE])),...["csv"].map((t=>[t,Do.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Do.DITA])),...["epub"].map((t=>[t,Do.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Do.EXCEL])),...["flac"].map((t=>[t,Do.FLAC])),...["gif"].map((t=>[t,Do.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Do.GZIP])),...["html","htm","xhtml"].map((t=>[t,Do.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,Do.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Do.JPEG])),...["json"].map((t=>[t,Do.JSON])),...["m4a","m4p"].map((t=>[t,Do.M4A])),...["mov","qt"].map((t=>[t,Do.MOV])),...["mp3"].map((t=>[t,Do.MP3])),...["mp4","m4v"].map((t=>[t,Do.MP4])),...["ogg","oga"].map((t=>[t,Do.OGG])),...["pdf","ps"].map((t=>[t,Do.PDF])),...["png"].map((t=>[t,Do.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Do.POWERPOINT])),...["rar"].map((t=>[t,Do.RAR])),...["stp"].map((t=>[t,Do.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Do.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,Do.VIDEO])),...["wav"].map((t=>[t,Do.WAV])),...["wma"].map((t=>[t,Do.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Do.WORD])),...["xml","xsl","rdf"].map((t=>[t,Do.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Do.YAML])),...["zip"].map((t=>[t,Do.ZIP]))]);const Ho={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")},Go=e.css`
|
|
280
289
|
:host, i.ft-icon {
|
|
281
290
|
display: inline-flex;
|
|
282
291
|
align-items: center;
|
|
@@ -285,14 +294,14 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
285
294
|
}
|
|
286
295
|
|
|
287
296
|
:host {
|
|
288
|
-
width: ${
|
|
289
|
-
height: ${
|
|
297
|
+
width: ${Ho.size};
|
|
298
|
+
height: ${Ho.size};
|
|
290
299
|
}
|
|
291
300
|
|
|
292
301
|
i.ft-icon {
|
|
293
302
|
width: 100%;
|
|
294
303
|
height: 100%;
|
|
295
|
-
font-size: ${
|
|
304
|
+
font-size: ${Ho.size};
|
|
296
305
|
line-height: 1;
|
|
297
306
|
font-weight: normal;
|
|
298
307
|
text-transform: none;
|
|
@@ -303,33 +312,33 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
303
312
|
text-rendering: auto;
|
|
304
313
|
-webkit-font-smoothing: antialiased;
|
|
305
314
|
-moz-osx-font-smoothing: grayscale;
|
|
306
|
-
vertical-align: ${
|
|
315
|
+
vertical-align: ${Ho.verticalAlign};
|
|
307
316
|
}
|
|
308
317
|
|
|
309
318
|
i.ft-icon.ft-icon--fluid-topics {
|
|
310
|
-
font-family: ${
|
|
319
|
+
font-family: ${Ho.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
311
320
|
|
|
312
321
|
/* Ugly fix because font is broken */
|
|
313
|
-
font-size: calc(0.75 * ${
|
|
314
|
-
line-height: ${
|
|
322
|
+
font-size: calc(0.75 * ${Ho.size});
|
|
323
|
+
line-height: ${Ho.size};
|
|
315
324
|
position: relative;
|
|
316
325
|
top: -4%;
|
|
317
326
|
justify-content: center;
|
|
318
327
|
}
|
|
319
328
|
|
|
320
329
|
.ft-icon--file-format {
|
|
321
|
-
font-family: ${
|
|
330
|
+
font-family: ${Ho.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
322
331
|
}
|
|
323
332
|
|
|
324
333
|
.ft-icon--material {
|
|
325
|
-
font-family: ${
|
|
334
|
+
font-family: ${Ho.materialFontFamily}, "Material Icons", sans-serif;
|
|
326
335
|
}
|
|
327
|
-
`;var
|
|
336
|
+
`;var jo;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(jo||(jo={}));var Mo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Po extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(jo).includes(this.variant)?this.variant:jo.fluid_topics,o=t!==jo.material||!!this.value;return e.html`
|
|
328
337
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
329
|
-
${
|
|
330
|
-
<slot ?hidden=${
|
|
338
|
+
${a.unsafeHTML(this.resolvedIcon)}
|
|
339
|
+
<slot ?hidden=${o}></slot>
|
|
331
340
|
</i>
|
|
332
|
-
`}get textContent(){var t,
|
|
341
|
+
`}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 jo.file_format:this.resolvedIcon=null!==(t=Do[r.replace("-","_").toUpperCase()])&&void 0!==t?t:r;break;case jo.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=Fo[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Po.elementDefinitions={},Po.styles=Go,Mo([r.property()],Po.prototype,"variant",void 0),Mo([r.property()],Po.prototype,"value",void 0),Mo([r.state()],Po.prototype,"resolvedIcon",void 0),Mo([r.query("slot")],Po.prototype,"slottedContent",void 0),o.customElement("ft-icon")(Po);const To={textColor:o.FtCssVariableFactory.extend("--ft-switch-text-color","",o.designSystemVariables.colorOnSurfaceHigh),backgroundColor:o.FtCssVariableFactory.extend("--ft-switch-background-color","",o.designSystemVariables.colorSurface),selectedTextColor:o.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",o.designSystemVariables.colorPrimary),selectedBackgroundColor:o.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",o.designSystemVariables.colorPrimary),borderColor:o.FtCssVariableFactory.extend("--ft-switch-border-color","",o.designSystemVariables.colorOutline),borderRadius:o.FtCssVariableFactory.extend("--ft-switch-border-radius","",o.designSystemVariables.borderRadiusL),fontSize:o.FtCssVariableFactory.extend("--ft-switch-font-size","",yo.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:o.FtCssVariableFactory.extend("--ft-switch-text-color","",o.designSystemVariables.colorOnSurfaceMedium),rippleColor:o.FtCssVariableFactory.extend("--ft-switch-ripple-color","",o.designSystemVariables.colorPrimary),outlineColor:o.FtCssVariableFactory.extend("--ft-switch-outline-color","",o.designSystemVariables.colorPrimary)},_o={borderRadiusLeft:o.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",o.designSystemVariables.borderRadiusL),borderRadiusRight:o.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",o.designSystemVariables.borderRadiusL),borderWidthLeft:o.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:o.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:o.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Yo=e.css`
|
|
333
342
|
.ft-switch-option {
|
|
334
343
|
position: relative;
|
|
335
344
|
display: inline-block;
|
|
@@ -343,20 +352,20 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
343
352
|
}
|
|
344
353
|
|
|
345
354
|
.ft-switch-option--content {
|
|
346
|
-
--ft-switch-option-internal-line-height: calc(${
|
|
347
|
-
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${
|
|
355
|
+
--ft-switch-option-internal-line-height: calc(${To.fontSize} + 2px);
|
|
356
|
+
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${To.iconSize});
|
|
348
357
|
|
|
349
358
|
border-style: solid;
|
|
350
|
-
border-color: ${
|
|
351
|
-
border-width: ${
|
|
352
|
-
border-radius: ${
|
|
359
|
+
border-color: ${To.borderColor};
|
|
360
|
+
border-width: ${_o.borderWidthVertical} ${_o.borderWidthRight} ${_o.borderWidthVertical} ${_o.borderWidthLeft};
|
|
361
|
+
border-radius: ${_o.borderRadiusLeft} ${_o.borderRadiusRight} ${_o.borderRadiusRight} ${_o.borderRadiusLeft};
|
|
353
362
|
display: flex;
|
|
354
363
|
align-items: center;
|
|
355
364
|
justify-content: center;
|
|
356
365
|
overflow: hidden;
|
|
357
|
-
${
|
|
366
|
+
${o.setVariable(Ho.size,To.iconSize)};
|
|
358
367
|
padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
|
|
359
|
-
background-color: ${
|
|
368
|
+
background-color: ${To.backgroundColor};
|
|
360
369
|
-webkit-mask-image: radial-gradient(white, black);
|
|
361
370
|
}
|
|
362
371
|
|
|
@@ -365,28 +374,28 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
365
374
|
}
|
|
366
375
|
|
|
367
376
|
.ft-switch-option--selected .ft-switch-option--content:before {
|
|
368
|
-
background-color: ${
|
|
369
|
-
border-radius: ${
|
|
377
|
+
background-color: ${To.selectedBackgroundColor};
|
|
378
|
+
border-radius: ${_o.borderRadiusLeft} ${_o.borderRadiusRight} ${_o.borderRadiusRight} ${_o.borderRadiusLeft};
|
|
370
379
|
position: absolute;
|
|
371
380
|
inset: 0;
|
|
372
381
|
content: "";
|
|
373
382
|
z-index: 1;
|
|
374
|
-
opacity: ${
|
|
383
|
+
opacity: ${o.designSystemVariables.opacityPrimaryOnSurfaceSelected};
|
|
375
384
|
}
|
|
376
385
|
|
|
377
386
|
.ft-switch-option--label {
|
|
378
|
-
color: ${
|
|
387
|
+
color: ${To.textColor};
|
|
379
388
|
overflow: hidden;
|
|
380
389
|
white-space: nowrap;
|
|
381
390
|
text-overflow: ellipsis;
|
|
382
391
|
display: block;
|
|
383
392
|
margin: 0 8px;
|
|
384
|
-
${
|
|
385
|
-
${
|
|
393
|
+
${o.setVariable(yo.fontSize,To.fontSize)};
|
|
394
|
+
${o.setVariable(yo.lineHeight,"var(--ft-switch-option-internal-content-height)")}
|
|
386
395
|
}
|
|
387
396
|
|
|
388
397
|
.ft-switch-option--selected .ft-switch-option--label {
|
|
389
|
-
color: ${
|
|
398
|
+
color: ${To.selectedTextColor};
|
|
390
399
|
}
|
|
391
400
|
|
|
392
401
|
.ft-switch-option--label[hidden] {
|
|
@@ -394,7 +403,7 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
394
403
|
}
|
|
395
404
|
|
|
396
405
|
.ft-switch-option--ripple {
|
|
397
|
-
${
|
|
406
|
+
${o.setVariable(l.color,To.rippleColor)};
|
|
398
407
|
}
|
|
399
408
|
|
|
400
409
|
ft-icon, ft-ripple, ft-typography {
|
|
@@ -407,20 +416,20 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
407
416
|
|
|
408
417
|
ft-icon {
|
|
409
418
|
flex-shrink: 0;
|
|
410
|
-
color: ${
|
|
419
|
+
color: ${To.iconColor};
|
|
411
420
|
}
|
|
412
421
|
|
|
413
422
|
.ft-switch-option--selected ft-icon {
|
|
414
|
-
color: ${
|
|
423
|
+
color: ${To.selectedTextColor};
|
|
415
424
|
}
|
|
416
|
-
`;var
|
|
417
|
-
<label part="label" for="input" class=${
|
|
425
|
+
`;var Vo=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 qo extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Xo extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Jo extends o.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Xo(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(e.html`
|
|
426
|
+
<label part="label" for="input" class=${i.classMap(t)}
|
|
418
427
|
@click=${this.onChange}>
|
|
419
428
|
<div class="ft-switch-option--content">
|
|
420
429
|
<ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
|
|
421
430
|
<ft-typography part="text"
|
|
422
431
|
variant="button"
|
|
423
|
-
class="ft-switch-option--label ${
|
|
432
|
+
class="ft-switch-option--label ${o.isSafari?"ft-safari-ellipsis-fix":""}"
|
|
424
433
|
?hidden=${!this.hasTextContent()}>
|
|
425
434
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
426
435
|
</ft-typography>
|
|
@@ -435,23 +444,23 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
435
444
|
position="${this.tooltipPosition}">
|
|
436
445
|
${t}
|
|
437
446
|
</ft-tooltip>
|
|
438
|
-
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new
|
|
447
|
+
`}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new qo(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?e.html`
|
|
439
448
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
440
|
-
`:e.nothing}get textContent(){var t,
|
|
441
|
-
<div @keydown=${this.onKeyDown} tabindex="0" class="${
|
|
449
|
+
`:e.nothing}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Jo.elementDefinitions={"ft-ripple":u,"ft-typography":Ro,"ft-tooltip":Ao,"ft-icon":Po},Jo.styles=[o.safariEllipsisFix,Yo],Vo([r.property()],Jo.prototype,"value",void 0),Vo([r.property()],Jo.prototype,"icon",void 0),Vo([r.property()],Jo.prototype,"iconVariant",void 0),Vo([r.property()],Jo.prototype,"label",void 0),Vo([r.property()],Jo.prototype,"tooltipPosition",void 0),Vo([r.property({type:Boolean,reflect:!0})],Jo.prototype,"selected",void 0),Vo([r.property({type:Boolean})],Jo.prototype,"trailingIcon",void 0),Vo([r.property({type:Boolean})],Jo.prototype,"unselectable",void 0),Vo([r.query(".ft-switch-option--content slot")],Jo.prototype,"slottedContent",void 0),Vo([r.query(".ft-switch-option--input")],Jo.prototype,"input",void 0);var Qo=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 te extends CustomEvent{constructor(t){super("change",{detail:t})}}class oe extends o.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return e.html`
|
|
450
|
+
<div @keydown=${this.onKeyDown} tabindex="0" class="${i.classMap(t)}">
|
|
442
451
|
<slot @slotchange=${this.onSlotchange}
|
|
443
452
|
@option-change=${this.onOptionChangeByScript}
|
|
444
453
|
@option-change-by-user=${this.onOptionChangeByUser}
|
|
445
454
|
></slot>
|
|
446
455
|
</div>
|
|
447
|
-
`}onKeyDown(t){let
|
|
456
|
+
`}onKeyDown(t){let o;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(o=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(o=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=o&&(t.preventDefault(),this.options[this.fixIndex(o)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Jo&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let o=t.target;this.onOptionChange(o)}onOptionChangeByUser(t){var o;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new te(null===(o=this.selectedOption)||void 0===o?void 0:o.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}oe.elementDefinitions={},oe.styles=e.css`
|
|
448
457
|
:host {
|
|
449
458
|
display: inline-block;
|
|
450
459
|
}
|
|
451
460
|
|
|
452
461
|
.ft-switch {
|
|
453
|
-
border-radius: ${
|
|
454
|
-
outline-color: ${
|
|
462
|
+
border-radius: ${To.borderRadius};
|
|
463
|
+
outline-color: ${To.outlineColor};
|
|
455
464
|
}
|
|
456
465
|
|
|
457
466
|
.ft-switch slot {
|
|
@@ -460,22 +469,22 @@ const tt=Symbol.for(""),it=t=>{if((null==t?void 0:t.r)===tt)return null==t?void
|
|
|
460
469
|
}
|
|
461
470
|
|
|
462
471
|
.ft-switch slot::slotted(ft-switch-option) {
|
|
463
|
-
${
|
|
464
|
-
${
|
|
465
|
-
${
|
|
472
|
+
${o.setVariable(_o.borderRadiusLeft,"0")};
|
|
473
|
+
${o.setVariable(_o.borderRadiusRight,"0")};
|
|
474
|
+
${o.setVariable(_o.borderWidthLeft,"0")};
|
|
466
475
|
}
|
|
467
476
|
|
|
468
477
|
.ft-switch slot::slotted(ft-switch-option:first-child) {
|
|
469
|
-
${
|
|
470
|
-
${
|
|
478
|
+
${o.setVariable(_o.borderRadiusLeft,To.borderRadius)};
|
|
479
|
+
${o.setVariable(_o.borderWidthLeft,"1px")};
|
|
471
480
|
}
|
|
472
481
|
|
|
473
482
|
.ft-switch slot::slotted(ft-switch-option:last-child) {
|
|
474
|
-
${
|
|
483
|
+
${o.setVariable(_o.borderRadiusRight,To.borderRadius)};
|
|
475
484
|
}
|
|
476
485
|
|
|
477
486
|
.ft-switch--dense slot::slotted(ft-switch-option) {
|
|
478
487
|
--ft-switch-internal-vertical-padding: 2px;
|
|
479
488
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
480
489
|
}
|
|
481
|
-
`,
|
|
490
|
+
`,Qo([r.property({type:Boolean})],oe.prototype,"dense",void 0),Qo([r.property({type:Boolean})],oe.prototype,"unselectable",void 0),Qo([r.query(".ft-switch slot")],oe.prototype,"slottedContent",void 0),Qo([r.state()],oe.prototype,"selectedOption",void 0),Qo([r.query(".ft-switch")],oe.prototype,"ftSwitchDiv",void 0),o.customElement("ft-switch")(oe),o.customElement("ft-switch-option")(Jo),t.FtSwitch=oe,t.FtSwitchChange=te,t.FtSwitchCssVariables=To,t.FtSwitchOption=Jo,t.FtSwitchOptionCssVariables=_o,t.SwitchOptionChange=Xo,t.SwitchOptionChangeByUser=qo,t.optionStyles=Yo}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|