@fluid-topics/ft-filterable-table 1.0.63 → 1.1.0
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-filterable-table.d.ts +1 -1
- package/build/ft-filterable-table.light.js +327 -327
- package/build/ft-filterable-table.min.js +472 -451
- package/package.json +7 -7
|
@@ -4,108 +4,108 @@
|
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
const l=globalThis,s=l.trustedTypes,c=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,p="$lit$",f=`lit$${(Math.random()+"").slice(9)}$`,d="?"+f,h=`<${d}>`,g=document,y=()=>g.createComment(""),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b=Array.isArray,m="[ \t\n\f\r]",x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,O=/>/g,$=RegExp(`>|${m}(?:([^\\s"'>=/]+)(${m}*=${m}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,S=/"/g,w=/^(?:script|style|textarea|title)$/i,C=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),I=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),E=new WeakMap,R=g.createTreeWalker(g,129);function U(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==c?c.createHTML(o):o}const W=(t,o)=>{const e=t.length-1,i=[];let r,a=2===o?"<svg>":"",n=x;for(let o=0;o<e;o++){const e=t[o];let l,s,c=-1,d=0;for(;d<e.length&&(n.lastIndex=d,s=n.exec(e),null!==s);)d=n.lastIndex,n===x?"!--"===s[1]?n=v:void 0!==s[1]?n=O:void 0!==s[2]?(w.test(s[2])&&(r=RegExp("</"+s[2],"g")),n=$):void 0!==s[3]&&(n=$):n===$?">"===s[0]?(n=r??x,c=-1):void 0===s[1]?c=-2:(c=n.lastIndex-s[2].length,l=s[1],n=void 0===s[3]?$:'"'===s[3]?S:N):n===S||n===N?n=$:n===v||n===O?n=x:(n=$,r=void 0);const g=n===$&&t[o+1].startsWith("/>")?" ":"";a+=n===x?e+h:c>=0?(i.push(l),e.slice(0,c)+p+e.slice(c)+f+g):e+f+(-2===c?o:g)}return[U(t,a+(t[e]||"<?>")+(2===o?"</svg>":"")),i]};class L{constructor({strings:t,_$litType$:o},e){let i;this.parts=[];let r=0,a=0;const n=t.length-1,l=this.parts,[c,h]=W(t,o);if(this.el=L.createElement(c,e),R.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=R.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(p)){const o=h[a++],e=i.getAttribute(t).split(f),n=/([.?@])?(.*)/.exec(o);l.push({type:1,index:r,name:n[2],strings:e,ctor:"."===n[1]?F:"?"===n[1]?B:"@"===n[1]?A:D}),i.removeAttribute(t)}else t.startsWith(f)&&(l.push({type:6,index:r}),i.removeAttribute(t));if(w.test(i.tagName)){const t=i.textContent.split(f),o=t.length-1;if(o>0){i.textContent=s?s.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],y()),R.nextNode(),l.push({type:2,index:++r});i.append(t[o],y())}}}else if(8===i.nodeType)if(i.data===d)l.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(f,t+1));)l.push({type:7,index:r}),t+=f.length-1}r++}}static createElement(t,o){const e=g.createElement("template");return e.innerHTML=t,e}}function z(t,o,e=t,i){if(o===I)return o;let r=void 0!==i?e._$Co?.[i]:e._$Cl;const a=u(o)?void 0:o._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,e,i)),void 0!==i?(e._$Co??=[])[i]=r:e._$Cl=r),void 0!==r&&(o=z(t,r._$AS(t,o.values),r,i)),o}class Z{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){const{el:{content:o},parts:e}=this._$AD,i=(t?.creationScope??g).importNode(o,!0);R.currentNode=i;let r=R.nextNode(),a=0,n=0,l=e[0];for(;void 0!==l;){if(a===l.index){let o;2===l.type?o=new K(r,r.nextSibling,this,t):1===l.type?o=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(o=new H(r,this,t)),this._$AV.push(o),l=e[++n]}a!==l?.index&&(r=R.nextNode(),a++)}return R.currentNode=g,i}p(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 K{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,i){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=z(this,t,o),u(t)?t===k||null==t||""===t?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==I&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>b(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==k&&u(this._$AH)?this._$AA.nextSibling.data=t:this.$(g.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,i="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=L.createElement(U(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===i)this._$AH.p(o);else{const t=new Z(i,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=E.get(t.strings);return void 0===o&&E.set(t.strings,o=new L(t)),o}T(t){b(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,i=0;for(const r of t)i===o.length?o.push(e=new K(this.k(y()),this.k(y()),this,this.options)):e=o[i],e._$AI(r),i++;i<o.length&&(this._$AR(e&&e._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class D{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,i,r){this.type=1,this._$AH=k,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=k}_$AI(t,o=this,e,i){const r=this.strings;let a=!1;if(void 0===r)t=z(this,t,o,0),a=!u(t)||t!==this._$AH&&t!==I,a&&(this._$AH=t);else{const i=t;let n,l;for(t=r[0],n=0;n<r.length-1;n++)l=z(this,i[e+n],o,n),l===I&&(l=this._$AH[n]),a||=!u(l)||l!==this._$AH[n],l===k?t=k:t!==k&&(t+=(l??"")+r[n+1]),this._$AH[n]=l}a&&!i&&this.O(t)}O(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class F extends D{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===k?void 0:t}}class B extends D{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==k)}}class A extends D{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){if((t=z(this,t,o,0)??k)===I)return;const e=this._$AH,i=t===k&&e!==k||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==k&&(e===k||i);i&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class H{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){z(this,t)}}const G=l.litHtmlPolyfillSupport;G?.(L,K),(l.litHtmlVersions??=[]).push("3.1.0");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t._$litStatic$},T=t=>({_$litStatic$:t,r:P}),_=new Map,V=(t=>(o,...e)=>{const i=e.length;let r,a;const n=[],l=[];let s,c=0,p=!1;for(;c<i;){for(s=o[c];c<i&&void 0!==(a=e[c],r=M(a));)s+=r+o[++c],p=!0;c!==i&&l.push(a),n.push(s),c++}if(c===i&&n.push(o[i]),p){const t=n.join("$$lit$$");void 0===(o=_.get(t))&&(n.raw=n,_.set(t,o=n)),e=l}return t(o,...e)})(I);var Y;!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"}(Y||(Y={}));const q=t=>"string"==typeof t?e.unsafeCSS(t):t;class X{static create(t,o,i,r){const a=t=>q(null!=t?t:r),n=e.css`var(${q(t)}, ${a(r)})`;return n.name=t,n.description=t,n.category=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${q(t)}, ${a(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,o,i,r){const a=t=>i.get(null!=t?t:r),n=e.css`var(${q(t)}, ${a(r)})`;return n.name=t,n.description=o,n.category=i.category,n.fallbackVariable=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${q(t)}, ${a(o)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),n}static external(t,o){const i=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):q(null!=o?o:t.lastResortDefaultValue()),r=e.css`var(${q(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=i,r.get=o=>e.css`var(${q(t.name)}, ${i(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const J={colorWhite:X.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:X.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:X.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:X.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:X.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:X.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:X.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:X.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:X.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:X.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:X.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:X.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:X.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:X.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:X.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:X.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:X.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:X.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:X.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:X.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:X.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:X.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:X.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:X.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:X.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:X.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:X.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:X.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:X.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:X.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:X.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:X.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:X.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:X.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:X.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:X.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:X.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:X.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:X.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:X.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:X.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:X.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:X.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:X.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:X.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:X.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:X.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:X.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:X.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:X.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:X.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:X.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:X.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:X.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:X.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:X.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:X.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:X.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:X.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:X.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:X.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:X.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:X.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:X.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:X.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:X.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:X.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:X.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:X.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:X.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:X.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:X.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:X.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:X.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:X.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:X.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:X.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:X.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:X.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:X.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:X.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:X.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:X.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:X.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:X.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:X.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:X.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:X.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:X.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:X.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:X.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:X.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:X.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:X.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:X.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:X.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:X.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:X.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:X.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:X.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:X.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:X.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:X.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:X.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:X.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:X.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:X.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:X.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:X.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:X.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:X.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:X.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:X.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:X.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:X.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:X.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:X.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:X.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:X.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:X.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:X.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:X.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:X.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:X.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:X.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:X.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:X.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:X.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:X.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:X.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:X.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:X.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:X.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:X.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:X.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:X.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:X.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:X.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:X.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:X.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:X.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:X.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:X.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:X.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:X.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:X.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:X.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:X.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:X.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:X.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:X.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:X.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:X.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:X.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:X.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:X.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:X.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:X.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:X.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:X.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:X.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:X.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:X.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:X.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:X.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:X.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:X.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:X.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:X.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:X.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:X.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:X.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:X.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:X.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:X.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:X.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:X.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:X.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:X.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:X.create("--ft-icon-size-6","","SIZE","48px"),opacity0:X.create("--ft-opacity-0","","NUMBER","0"),opacity8:X.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:X.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:X.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:X.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:X.create("--ft-opacity-80","","NUMBER","0.8")},Q={display:{fontFamily:X.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:X.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:X.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:X.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:X.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:X.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:X.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:X.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:X.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:X.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:X.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:X.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:X.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:X.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:X.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:X.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:X.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:X.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:X.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:X.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:X.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:X.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:X.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:X.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:X.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:X.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:X.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:X.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:X.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:X.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:X.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:X.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:X.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:X.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:X.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:X.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:X.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:X.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},tt={backgroundActionPrimary:X.extend("--ft-background-action-primary","Used as backgorund of primary action components.",J.colorBrand0),backgroundErrorPrimary:X.extend("--ft-background-error-primary","Used as background of error components.",J.colorRed0),backgroundErrorSubtle:X.extend("--ft-background-error-subtle","Used as background of subtle error components.",J.colorRed10),backgroundInfoPrimary:X.extend("--ft-background-info-primary","Used as background of information components.",J.colorCyan200),backgroundInfoSubtle:X.extend("--ft-background-info-subtle","Used as background of subtle information components.",J.colorCyan10),backgroundWarningPrimary:X.extend("--ft-background-warning-primary","Used as background of warning components.",J.colorOrange300),backgroundWarningSubtle:X.extend("--ft-background-warning-subtle","Used as background of subtle information components.",J.colorOrange10),backgroundSuccessPrimary:X.extend("--ft-background-success-primary","Used as background of success components.",J.colorGreen200),backgroundSuccessSubtle:X.extend("--ft-background-success-subtle","Used as background of subtle success components.",J.colorGreen10),backgroundGlobalSurface:X.extend("--ft-background-global-surface","Used as app background.",J.colorWhite),backgroundGlobalOnSurface:X.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",J.colorGray10),backgroundGlobalOnSurfaceDark:X.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",J.colorGray30),contentActionPrimary:X.extend("--ft-content-action-primary","Used on label of primary action on light surface.",J.colorBrand0),contentWarningPrimary:X.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",J.colorOrange300),contentWarningIconOnly:X.extend("--ft-content-warning-icon-only","Used on warning status icons alone",J.colorOrange0),contentErrorPrimary:X.extend("--ft-content-error-primary","Used on label of error messages on light surface.",J.colorRed0),contentErrorIconOnly:X.extend("--ft-content-error-icon-only","Used on error status icons alone",J.colorRed0),contentInfoPrimary:X.extend("--ft-content-info-primary","Used on label of information messages on light surface.",J.colorCyan200),contentInfoIconOnly:X.extend("--ft-content-info-icon-only","Used on info status icons alone",J.colorCyan0),contentSuccessIconOnly:X.extend("--ft-content-success-icon-only","Used on success status icons alone",J.colorGreen0),contentSuccessPrimary:X.extend("--ft-content-success-primary","Used on label of success messages on light surface.",J.colorGreen200),contentGlobalPrimary:X.extend("--ft-content-global-primary","Used for main content on the page.",J.colorGray500),contentGlobalSecondary:X.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",J.colorGray200),contentGlobalSubtle:X.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",J.colorGray0),contentGlobalOnColor:X.extend("--ft-content-global-on-color","Used for content on a dominant color.",J.colorWhite),borderActionPrimary:X.extend("--ft-border-action-primary","Used as border for primary action components.",J.colorBrand0),borderActionFocusRing:X.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",J.colorCyan0),borderWarningPrimary:X.extend("--ft-border-warning-primary","Used as border for warning components.",J.colorOrange30),borderSuccessPrimary:X.extend("--ft-border-success-primary","Used as border for success components.",J.colorGreen30),borderErrorPrimary:X.extend("--ft-border-error-primary","Used as border for error components.",J.colorRed30),borderInfoPrimary:X.extend("--ft-border-info-primary","Used as border for information components.",J.colorCyan30),borderGlobalSubtle:X.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",J.colorGray30),borderGlobalPrimary:X.extend("--ft-border-global-primary","Used as border for element like input.",J.colorGray50),borderInputPrimary:X.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",J.colorGray80)},ot={largeHeight:X.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:X.extend("--ft-button-large-horizontal-padding","",J.spacing4),largeGap:X.extend("--ft-button-large-gap","",J.spacing2),largeBorderRadius:X.extend("--ft-button-large-border-radius","",J.borderRadiusS),largeIconSize:X.extend("--ft-button-large-icon-size","",J.iconSize3),largeBorderWidth:X.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:X.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:X.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:X.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:X.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:X.extend("--ft-button-small-horizontal-padding","",J.spacing3),smallGap:X.extend("--ft-button-small-gap","",J.spacing2),smallBorderRadius:X.extend("--ft-button-small-border-radius","",J.borderRadiusS),smallIconSize:X.extend("--ft-button-small-icon-size","",J.iconSize2),smallBorderWidth:X.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:X.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:X.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:X.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:X.extend("--ft-button-primary-background-color","",tt.backgroundActionPrimary),primaryColor:X.extend("--ft-button-primary-color","",tt.contentGlobalOnColor),primaryIconColor:X.extend("--ft-button-primary-icon-color","",tt.contentGlobalOnColor),primaryStateLayerColor:X.extend("--ft-button-primary-state-layer-color","",tt.contentGlobalOnColor),primaryStateLayerOpacityHover:X.extend("--ft-button-primary-state-layer-opacity-hover","",J.opacity16),primaryStateLayerOpacityFocus:X.extend("--ft-button-primary-state-layer-opacity-focus","",J.opacity16),primaryStateLayerOpacityActive:X.extend("--ft-button-primary-state-layer-opacity-active","",J.opacity24),primaryComponentOpacityDisabled:X.extend("--ft-button-primary-component-opacity-disabled","",J.opacity40),focusFocusRingColor:X.extend("--ft-button-focus-focus-ring-color","",tt.borderActionFocusRing),tertiaryBackgroundColor:X.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:X.extend("--ft-button-tertiary-color","",tt.contentActionPrimary),tertiaryIconColor:X.extend("--ft-button-tertiary-icon-color","",tt.contentActionPrimary),tertiaryStateLayerColor:X.extend("--ft-button-tertiary-state-layer-color","",tt.contentActionPrimary),tertiaryStateLayerOpacityHover:X.extend("--ft-button-tertiary-state-layer-opacity-hover","",J.opacity8),tertiaryStateLayerOpacityFocus:X.extend("--ft-button-tertiary-state-layer-opacity-focus","",J.opacity8),tertiaryStateLayerOpacityActive:X.extend("--ft-button-tertiary-state-layer-opacity-active","",J.opacity16),tertiaryComponentOpacityDisabled:X.extend("--ft-button-tertiary-component-opacity-disabled","",J.opacity40),secondaryBackgroundColor:X.extend("--ft-button-secondary-background-color","",J.colorWhite),secondaryColor:X.extend("--ft-button-secondary-color","",tt.contentActionPrimary),secondaryIconColor:X.extend("--ft-button-secondary-icon-color","",tt.contentActionPrimary),secondaryStateLayerColor:X.extend("--ft-button-secondary-state-layer-color","",tt.contentActionPrimary),secondaryStateLayerOpacityHover:X.extend("--ft-button-secondary-state-layer-opacity-hover","",J.opacity8),secondaryStateLayerOpacityFocus:X.extend("--ft-button-secondary-state-layer-opacity-focus","",J.opacity8),secondaryStateLayerOpacityActive:X.extend("--ft-button-secondary-state-layer-opacity-active","",J.opacity16),secondaryComponentOpacityDisabled:X.extend("--ft-button-secondary-component-opacity-disabled","",J.opacity40),secondaryBorderColor:X.extend("--ft-button-secondary-border-color","",tt.borderActionPrimary),neutralBackgroundColor:X.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:X.extend("--ft-button-neutral-icon-color","",tt.contentGlobalSecondary),neutralColor:X.extend("--ft-button-neutral-color","",tt.contentGlobalSecondary),neutralStateLayerColor:X.extend("--ft-button-neutral-state-layer-color","",tt.contentGlobalSecondary),neutralStateLayerOpacityHover:X.extend("--ft-button-neutral-state-layer-opacity-hover","",J.opacity8),neutralStateLayerOpacityFocus:X.extend("--ft-button-neutral-state-layer-opacity-focus","",J.opacity8),neutralStateLayerOpacityActive:X.extend("--ft-button-neutral-state-layer-opacity-active","",J.opacity16),neutralComponentOpacityDisabled:X.extend("--ft-button-neutral-component-opacity-disabled","",J.opacity40)};X.extend("--ft-tabs-top-left-border-radius","",J.borderRadiusS),X.extend("--ft-tabs-top-right-border-radius","",J.borderRadiusS),X.extend("--ft-tabs-label-horizontal-padding","",J.spacing4),X.extend("--ft-tabs-label-vertical-padding","",J.spacing3),X.extend("--ft-tabs-label-gap","",J.spacing1),X.extend("--ft-switch-group-horizontal-padding","",J.spacing1),X.extend("--ft-switch-group-vertical-padding","",J.spacing1),X.extend("--ft-switch-group-gap","",J.spacing1),X.extend("--ft-switch-group-background-color","",tt.backgroundGlobalSurface),X.extend("--ft-switch-group-border-color","",tt.borderGlobalSubtle),X.create("--ft-switch-group-border-radius","","SIZE","6px"),X.extend("--ft-switch-label-horizontal-padding","",J.spacing2),X.extend("--ft-switch-label-vertical-padding","",J.spacing1),X.extend("--ft-switch-icon-horizontal-padding","",J.spacing1),X.extend("--ft-switch-icon-vertical-padding","",J.spacing1),X.create("--ft-switch-focus-outline-width","","SIZE","2px"),X.extend("--ft-switch-focus-focus-ring-color","",tt.borderActionFocusRing),X.extend("--ft-switch-option-border-radius","",J.borderRadiusS),X.extend("--ft-switch-off-state-layer-opacity-hover","",J.opacity8),X.extend("--ft-switch-off-state-layer-opacity-focus","",J.opacity8),X.extend("--ft-switch-off-state-layer-opacity-active","",J.opacity16),X.extend("--ft-switch-off-component-opacity-disabled","",J.opacity40),X.extend("--ft-switch-off-color","",tt.contentGlobalSubtle),X.extend("--ft-switch-off-state-layer-color","",tt.contentGlobalSubtle),X.extend("--ft-chart-1-light","for area color charts",J.colorBrand40),X.extend("--ft-chart-1-base","for line charts",J.colorBrand0),X.extend("--ft-chart-2-light","for area color charts",J.colorYellow60),X.extend("--ft-chart-2-base","for line charts",J.colorYellow100),X.extend("--ft-chart-3-light","",J.colorUltramarine40),X.extend("--ft-chart-3-base","",J.colorUltramarine70),X.extend("--ft-chart-4-light","",J.colorCyan50),X.extend("--ft-chart-4-base","",J.colorCyan100),X.extend("--ft-chart-5-light","",J.colorRed40),X.extend("--ft-chart-5-base","",J.colorRed60),X.extend("--ft-chart-6-light","",J.colorGreen40),X.extend("--ft-chart-6-base","",J.colorGreen70),X.extend("--ft-chart-7-light","",J.colorOrange70),X.extend("--ft-chart-7-base","",J.colorOrange100),X.extend("--ft-chart-8-light","",J.colorAvocado70),X.extend("--ft-chart-8-base","",J.colorAvocado200),X.extend("--ft-chart-9-light","",J.colorBrown50),X.extend("--ft-chart-9-base","",J.colorBrown200),X.extend("--ft-chart-10-light","",J.colorGray50),X.extend("--ft-chart-10-base","",J.colorGray80),X.extend("--ft-chart-monochrome-10","",J.colorBrand10),X.extend("--ft-chart-monochrome-20","",J.colorBrand20),X.extend("--ft-chart-monochrome-30","",J.colorBrand40),X.extend("--ft-chart-monochrome-40","",J.colorBrand60),X.extend("--ft-chart-monochrome-50","",J.colorBrand0),X.extend("--ft-chart-monochrome-60","",J.colorBrand200),X.extend("--ft-chip-large-horizontal-padding","",J.spacing4),X.extend("--ft-chip-large-vertical-padding","",J.spacing2),X.extend("--ft-chip-large-gap","",J.spacing1),X.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),X.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),X.extend("--ft-chip-large-border-radius","",J.borderRadiusPill),X.create("--ft-chip-large-border-width","","SIZE","1px"),X.extend("--ft-chip-large-icon-size","",J.iconSize3),X.extend("--ft-chip-medium-horizontal-padding","",J.spacing3),X.extend("--ft-chip-medium-vertical-padding","",J.spacing1),X.extend("--ft-chip-medium-gap","",J.spacing1),X.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),X.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),X.extend("--ft-chip-medium-border-radius","",J.borderRadiusPill),X.create("--ft-chip-medium-border-width","","SIZE","1px"),X.extend("--ft-chip-medium-icon-size","",J.iconSize2),X.extend("--ft-chip-small-horizontal-padding","",J.spacing2),X.extend("--ft-chip-small-vertical-padding","",J.spacing05),X.extend("--ft-chip-small-gap","",J.spacing1),X.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),X.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),X.extend("--ft-chip-small-border-radius","",J.borderRadiusPill),X.create("--ft-chip-small-border-width","","SIZE","1px"),X.extend("--ft-chip-small-icon-size","",J.iconSize1),X.extend("--ft-chip-neutral-background-color","",tt.backgroundGlobalOnSurface),X.extend("--ft-chip-neutral-color","",tt.contentGlobalPrimary),X.extend("--ft-chip-neutral-border-color","",tt.borderGlobalSubtle),X.extend("--ft-chip-info-background-color","",tt.backgroundInfoSubtle),X.extend("--ft-chip-info-color","",tt.contentInfoPrimary),X.extend("--ft-chip-info-border-color","",tt.borderInfoPrimary),X.extend("--ft-chip-success-background-color","",tt.backgroundSuccessSubtle),X.extend("--ft-chip-success-color","",tt.contentSuccessPrimary),X.extend("--ft-chip-success-border-color","",tt.borderSuccessPrimary),X.extend("--ft-chip-warning-background-color","",tt.backgroundWarningSubtle),X.extend("--ft-chip-warning-color","",tt.contentWarningPrimary),X.extend("--ft-chip-warning-border-color","",tt.borderWarningPrimary),X.extend("--ft-chip-error-background-color","",tt.backgroundErrorSubtle),X.extend("--ft-chip-error-color","",tt.contentErrorPrimary),X.extend("--ft-chip-error-border-color","",tt.borderErrorPrimary),X.create("--ft-notice-border-width","","SIZE","1px"),X.extend("--ft-notice-horizontal-padding","",J.spacing2),X.extend("--ft-notice-vertical-padding","",J.spacing1),X.extend("--ft-notice-border-radius","",J.borderRadiusS),X.extend("--ft-notice-gap","",J.spacing2),X.extend("--ft-notice-icon-size","",J.iconSize3),X.extend("--ft-notice-info-background-color","",tt.backgroundInfoSubtle),X.extend("--ft-notice-info-border-color","",tt.borderInfoPrimary),X.extend("--ft-notice-info-color","",tt.contentInfoPrimary),X.extend("--ft-notice-warning-background-color","",tt.backgroundWarningSubtle),X.extend("--ft-notice-warning-border-color","",tt.borderWarningPrimary),X.extend("--ft-notice-warning-color","",tt.contentWarningPrimary),X.extend("--ft-checkbox-label-color","",tt.contentGlobalPrimary),X.extend("--ft-checkbox-checked-background-color","",tt.contentActionPrimary),X.extend("--ft-checkbox-checked-state-layer-color","",tt.contentActionPrimary),X.extend("--ft-checkbox-checked-color","",tt.contentGlobalOnColor),X.extend("--ft-checkbox-checked-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-checkbox-checked-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-checkbox-checked-state-layer-opacity-active","",J.opacity24),X.extend("--ft-checkbox-checked-component-opacity-disabled","",J.opacity40),X.extend("--ft-checkbox-unchecked-border-color","",J.colorGray80),X.extend("--ft-checkbox-unchecked-state-layer-color","",J.colorGray80),X.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",J.opacity24),X.extend("--ft-checkbox-unchecked-component-opacity-disabled","",J.opacity40),X.extend("--ft-checkbox-focus-focus-ring-color","",tt.borderActionFocusRing),X.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),X.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),X.extend("--ft-checkbox-gap","",J.spacing3),X.extend("--ft-toggle-off-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-toggle-off-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-toggle-off-state-layer-opacity-active","",J.opacity24),X.extend("--ft-toggle-off-component-opacity-disabled","",J.opacity40),X.extend("--ft-toggle-off-background-color","",tt.contentGlobalSubtle),X.extend("--ft-toggle-off-icon-color","",tt.contentGlobalSubtle),X.extend("--ft-toggle-off-state-layer-color","",tt.contentGlobalSubtle),X.extend("--ft-toggle-on-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-toggle-on-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-toggle-on-state-layer-opacity-active","",J.opacity24),X.extend("--ft-toggle-on-component-opacity-disabled","",J.opacity40),X.extend("--ft-toggle-on-background-color","",tt.contentActionPrimary),X.extend("--ft-toggle-on-icon-color","",tt.contentActionPrimary),X.extend("--ft-toggle-on-state-layer-color","",tt.contentActionPrimary),X.extend("--ft-toggle-label-color","",tt.contentGlobalPrimary),X.extend("--ft-toggle-focus-focus-ring-color","",tt.borderActionFocusRing),X.extend("--ft-toggle-gap","",J.spacing3),X.extend("--ft-radio-label-color","",tt.contentGlobalPrimary),X.extend("--ft-radio-selected-color","",tt.contentActionPrimary),X.extend("--ft-radio-selected-state-layer-color","",tt.contentActionPrimary),X.extend("--ft-radio-selected-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-radio-selected-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-radio-selected-state-layer-opacity-active","",J.opacity24),X.extend("--ft-radio-selected-component-opacity-disabled","",J.opacity40),X.extend("--ft-radio-unselected-state-layer-color","",J.colorGray80),X.extend("--ft-radio-unselected-state-layer-opacity-hover","",J.opacity16),X.extend("--ft-radio-unselected-state-layer-opacity-focus","",J.opacity16),X.extend("--ft-radio-unselected-state-layer-opacity-active","",J.opacity24),X.extend("--ft-radio-unselected-component-opacity-disabled","",J.opacity40),X.extend("--ft-radio-focus-focus-ring-color","",tt.borderActionFocusRing),X.create("--ft-radio-focus-outline-offset","","SIZE","3px"),X.create("--ft-radio-focus-outline-width","","SIZE","2px"),X.extend("--ft-radio-gap","",J.spacing3),X.extend("--ft-notification-icon-size","",J.iconSize4),X.extend("--ft-notification-horizontal-padding","",J.spacing4),X.extend("--ft-notification-vertical-padding","",J.spacing4),X.extend("--ft-notification-info-background-color","",tt.backgroundInfoSubtle),X.extend("--ft-notification-info-color","",tt.contentInfoPrimary),X.extend("--ft-notification-info-border-color","",tt.borderInfoPrimary),X.extend("--ft-notification-success-background-color","",tt.backgroundSuccessSubtle),X.extend("--ft-notification-success-color","",tt.contentSuccessPrimary),X.extend("--ft-notification-success-border-color","",tt.borderSuccessPrimary),X.extend("--ft-notification-warning-background-color","",tt.backgroundWarningSubtle),X.extend("--ft-notification-warning-color","",tt.contentWarningPrimary),X.extend("--ft-notification-warning-border-color","",tt.borderWarningPrimary),X.extend("--ft-notification-error-background-color","",tt.backgroundErrorSubtle),X.extend("--ft-notification-error-color","",tt.contentErrorPrimary),X.extend("--ft-notification-error-border-color","",tt.borderErrorPrimary),X.extend("--ft-notification-border-radius","",J.borderRadiusPill),X.create("--ft-notification-border-width","","SIZE","1px"),X.extend("--ft-notification-gap-leading","",J.spacing2),X.extend("--ft-notification-gap-trailing","",J.spacing8);const et=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),it=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),rt={fontFamily:it,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")},at=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",et),nt=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",rt.fontSize,"20px"),lt=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",rt.fontWeight,"normal"),st=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",rt.letterSpacing,"0.15px"),ct=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",rt.lineHeight,"1.2"),pt=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",rt.textTransform,"inherit"),ft=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",et),dt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",rt.fontSize,"14px"),ht=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",rt.fontWeight,"normal"),gt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",rt.letterSpacing,"0.105px"),yt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",rt.lineHeight,"1.7"),ut=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",rt.textTransform,"inherit"),bt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",it),mt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",rt.fontSize,"16px"),xt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",rt.fontWeight,"600"),vt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",rt.letterSpacing,"0.144px"),Ot=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",rt.lineHeight,"1.5"),$t=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",rt.textTransform,"inherit"),Nt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",it),St=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",rt.fontSize,"14px"),wt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",rt.fontWeight,"normal"),Ct=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",rt.letterSpacing,"0.098px"),It=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",rt.lineHeight,"1.7"),kt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",rt.textTransform,"inherit"),Et={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",it),fontSize:o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",rt.fontSize,"16px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",rt.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",rt.letterSpacing,"0.496px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",rt.lineHeight,"1.5"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",rt.textTransform,"inherit")},Rt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",it),Ut=o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",rt.fontSize,"14px"),Wt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",rt.fontWeight,"normal"),Lt=o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",rt.letterSpacing,"0.252px"),zt=o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",rt.lineHeight,"1.4"),Zt=o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",rt.textTransform,"inherit"),Kt={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",it),fontSize:o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",rt.fontSize,"12px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",rt.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",rt.letterSpacing,"0.396px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",rt.lineHeight,"1.33"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",rt.textTransform,"inherit")},Dt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",it),Ft=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",rt.fontSize,"10px"),Bt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",rt.fontWeight,"normal"),At=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",rt.letterSpacing,"0.33px"),Ht=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",rt.lineHeight,"1.6"),Gt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",rt.textTransform,"inherit"),jt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",it),Pt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",rt.fontSize,"10px"),Mt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",rt.fontWeight,"normal"),Tt=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",rt.letterSpacing,"1.5px"),_t=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",rt.lineHeight,"1.6"),Vt=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",rt.textTransform,"uppercase"),Yt={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",it),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",rt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",rt.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",rt.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",rt.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",rt.textTransform,"uppercase")},qt=e.css`
|
|
13
|
+
const j=Symbol.for(""),P=t=>{if(t?.r===j)return t?._$litStatic$},M=t=>({_$litStatic$:t,r:j}),T=new Map,_=(t=>(o,...e)=>{const i=e.length;let r,a;const n=[],l=[];let s,c=0,p=!1;for(;c<i;){for(s=o[c];c<i&&void 0!==(a=e[c],r=P(a));)s+=r+o[++c],p=!0;c!==i&&l.push(a),n.push(s),c++}if(c===i&&n.push(o[i]),p){const t=n.join("$$lit$$");void 0===(o=T.get(t))&&(n.raw=n,T.set(t,o=n)),e=l}return t(o,...e)})(C);var V;!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"}(V||(V={}));const Y=t=>"string"==typeof t?e.unsafeCSS(t):t;class q{static create(t,o,i,r){const a=t=>Y(null!=t?t:r),n=e.css`var(${Y(t)}, ${a(r)})`;return n.name=t,n.description=o,n.category=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${Y(t)}, ${a(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,o,i,r){const a=t=>i.get(null!=t?t:r),n=e.css`var(${Y(t)}, ${a(r)})`;return n.name=t,n.description=o,n.category=i.category,n.fallbackVariable=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${Y(t)}, ${a(o)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),n}static external(t,o){const i=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):Y(null!=o?o:t.lastResortDefaultValue()),r=e.css`var(${Y(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=i,r.get=o=>e.css`var(${Y(t.name)}, ${i(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const X={colorWhite:q.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:q.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:q.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:q.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:q.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:q.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:q.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:q.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:q.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:q.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:q.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:q.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:q.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:q.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:q.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:q.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:q.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:q.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:q.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:q.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:q.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:q.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:q.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:q.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:q.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:q.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:q.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:q.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:q.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:q.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:q.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:q.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:q.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:q.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:q.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:q.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:q.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:q.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:q.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:q.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:q.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:q.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:q.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:q.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:q.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:q.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:q.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:q.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:q.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:q.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:q.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:q.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:q.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:q.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:q.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:q.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:q.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:q.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:q.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:q.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:q.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:q.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:q.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:q.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:q.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:q.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:q.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:q.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:q.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:q.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:q.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:q.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:q.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:q.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:q.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:q.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:q.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:q.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:q.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:q.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:q.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:q.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:q.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:q.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:q.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:q.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:q.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:q.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:q.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:q.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:q.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:q.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:q.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:q.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:q.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:q.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:q.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:q.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:q.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:q.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:q.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:q.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:q.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:q.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:q.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:q.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:q.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:q.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:q.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:q.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:q.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:q.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:q.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:q.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:q.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:q.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:q.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:q.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:q.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:q.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:q.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:q.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:q.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:q.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:q.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:q.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:q.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:q.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:q.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:q.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:q.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:q.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:q.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:q.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:q.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:q.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:q.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:q.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:q.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:q.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:q.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:q.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:q.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:q.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:q.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:q.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:q.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:q.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:q.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:q.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:q.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:q.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:q.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:q.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:q.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:q.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:q.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:q.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:q.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:q.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:q.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:q.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:q.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:q.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:q.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:q.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:q.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:q.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:q.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:q.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:q.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:q.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:q.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:q.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:q.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:q.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:q.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:q.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:q.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:q.create("--ft-icon-size-6","","SIZE","48px"),opacity0:q.create("--ft-opacity-0","","NUMBER","0"),opacity8:q.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:q.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:q.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:q.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:q.create("--ft-opacity-80","","NUMBER","0.8")},J={display:{fontFamily:q.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:q.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:q.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:q.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:q.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:q.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:q.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:q.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:q.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:q.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:q.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:q.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:q.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:q.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:q.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:q.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:q.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:q.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:q.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:q.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:q.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:q.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:q.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:q.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:q.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:q.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:q.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:q.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:q.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:q.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:q.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:q.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:q.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:q.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:q.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:q.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:q.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:q.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:q.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:q.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:q.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:q.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:q.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:q.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:q.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:q.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:q.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:q.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:q.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:q.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:q.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:q.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:q.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:q.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:q.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:q.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:q.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:q.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:q.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:q.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:q.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:q.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:q.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:q.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:q.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:q.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:q.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:q.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:q.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:q.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:q.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:q.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:q.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:q.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:q.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:q.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:q.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:q.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:q.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:q.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:q.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:q.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:q.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:q.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:q.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:q.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:q.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:q.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:q.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:q.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:q.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:q.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:q.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:q.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:q.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:q.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:q.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:q.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:q.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:q.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:q.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:q.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:q.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:q.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:q.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:q.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:q.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:q.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:q.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:q.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:q.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:q.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:q.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:q.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:q.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:q.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:q.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Q={backgroundActionPrimary:q.extend("--ft-background-action-primary","Used as backgorund of primary action components.",X.colorBrand0),backgroundErrorPrimary:q.extend("--ft-background-error-primary","Used as background of error components.",X.colorRed0),backgroundErrorSubtle:q.extend("--ft-background-error-subtle","Used as background of subtle error components.",X.colorRed10),backgroundInfoPrimary:q.extend("--ft-background-info-primary","Used as background of information components.",X.colorCyan200),backgroundInfoSubtle:q.extend("--ft-background-info-subtle","Used as background of subtle information components.",X.colorCyan10),backgroundWarningPrimary:q.extend("--ft-background-warning-primary","Used as background of warning components.",X.colorOrange300),backgroundWarningSubtle:q.extend("--ft-background-warning-subtle","Used as background of subtle information components.",X.colorOrange10),backgroundSuccessPrimary:q.extend("--ft-background-success-primary","Used as background of success components.",X.colorGreen200),backgroundSuccessSubtle:q.extend("--ft-background-success-subtle","Used as background of subtle success components.",X.colorGreen10),backgroundGlobalSurface:q.extend("--ft-background-global-surface","Used as app background.",X.colorWhite),backgroundGlobalOnSurface:q.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",X.colorGray10),backgroundGlobalOnSurfaceDark:q.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",X.colorGray30),contentActionPrimary:q.extend("--ft-content-action-primary","Used on label of primary action on light surface.",X.colorBrand0),contentWarningPrimary:q.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",X.colorOrange300),contentWarningIconOnly:q.extend("--ft-content-warning-icon-only","Used on warning status icons alone",X.colorOrange0),contentErrorPrimary:q.extend("--ft-content-error-primary","Used on label of error messages on light surface.",X.colorRed0),contentErrorIconOnly:q.extend("--ft-content-error-icon-only","Used on error status icons alone",X.colorRed0),contentInfoPrimary:q.extend("--ft-content-info-primary","Used on label of information messages on light surface.",X.colorCyan200),contentInfoIconOnly:q.extend("--ft-content-info-icon-only","Used on info status icons alone",X.colorCyan0),contentSuccessIconOnly:q.extend("--ft-content-success-icon-only","Used on success status icons alone",X.colorGreen0),contentSuccessPrimary:q.extend("--ft-content-success-primary","Used on label of success messages on light surface.",X.colorGreen200),contentGlobalPrimary:q.extend("--ft-content-global-primary","Used for main content on the page.",X.colorGray500),contentGlobalSecondary:q.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",X.colorGray200),contentGlobalSubtle:q.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",X.colorGray0),contentGlobalOnColor:q.extend("--ft-content-global-on-color","Used for content on a dominant color.",X.colorWhite),borderActionPrimary:q.extend("--ft-border-action-primary","Used as border for primary action components.",X.colorBrand0),borderActionFocusRing:q.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",X.colorCyan0),borderWarningPrimary:q.extend("--ft-border-warning-primary","Used as border for warning components.",X.colorOrange30),borderSuccessPrimary:q.extend("--ft-border-success-primary","Used as border for success components.",X.colorGreen30),borderErrorPrimary:q.extend("--ft-border-error-primary","Used as border for error components.",X.colorRed30),borderInfoPrimary:q.extend("--ft-border-info-primary","Used as border for information components.",X.colorCyan30),borderGlobalSubtle:q.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",X.colorGray30),borderGlobalPrimary:q.extend("--ft-border-global-primary","Used as border for element like input.",X.colorGray50),borderInputPrimary:q.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",X.colorGray80)},tt={largeHeight:q.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:q.extend("--ft-button-large-horizontal-padding","",X.spacing4),largeGap:q.extend("--ft-button-large-gap","",X.spacing2),largeBorderRadius:q.extend("--ft-button-large-border-radius","",X.borderRadiusS),largeIconSize:q.extend("--ft-button-large-icon-size","",X.iconSize3),largeBorderWidth:q.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:q.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:q.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:q.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:q.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:q.extend("--ft-button-small-horizontal-padding","",X.spacing3),smallGap:q.extend("--ft-button-small-gap","",X.spacing2),smallBorderRadius:q.extend("--ft-button-small-border-radius","",X.borderRadiusS),smallIconSize:q.extend("--ft-button-small-icon-size","",X.iconSize2),smallBorderWidth:q.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:q.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:q.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:q.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:q.extend("--ft-button-primary-background-color","",Q.backgroundActionPrimary),primaryColor:q.extend("--ft-button-primary-color","",Q.contentGlobalOnColor),primaryIconColor:q.extend("--ft-button-primary-icon-color","",Q.contentGlobalOnColor),primaryStateLayerColor:q.extend("--ft-button-primary-state-layer-color","",Q.contentGlobalOnColor),primaryStateLayerOpacityHover:q.extend("--ft-button-primary-state-layer-opacity-hover","",X.opacity16),primaryStateLayerOpacityFocus:q.extend("--ft-button-primary-state-layer-opacity-focus","",X.opacity16),primaryStateLayerOpacityActive:q.extend("--ft-button-primary-state-layer-opacity-active","",X.opacity24),primaryComponentOpacityDisabled:q.extend("--ft-button-primary-component-opacity-disabled","",X.opacity40),focusFocusRingColor:q.extend("--ft-button-focus-focus-ring-color","",Q.borderActionFocusRing),tertiaryBackgroundColor:q.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:q.extend("--ft-button-tertiary-color","",Q.contentActionPrimary),tertiaryIconColor:q.extend("--ft-button-tertiary-icon-color","",Q.contentActionPrimary),tertiaryStateLayerColor:q.extend("--ft-button-tertiary-state-layer-color","",Q.contentActionPrimary),tertiaryStateLayerOpacityHover:q.extend("--ft-button-tertiary-state-layer-opacity-hover","",X.opacity8),tertiaryStateLayerOpacityFocus:q.extend("--ft-button-tertiary-state-layer-opacity-focus","",X.opacity8),tertiaryStateLayerOpacityActive:q.extend("--ft-button-tertiary-state-layer-opacity-active","",X.opacity16),tertiaryComponentOpacityDisabled:q.extend("--ft-button-tertiary-component-opacity-disabled","",X.opacity40),secondaryBackgroundColor:q.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:q.extend("--ft-button-secondary-color","",Q.contentActionPrimary),secondaryIconColor:q.extend("--ft-button-secondary-icon-color","",Q.contentActionPrimary),secondaryStateLayerColor:q.extend("--ft-button-secondary-state-layer-color","",Q.contentActionPrimary),secondaryStateLayerOpacityHover:q.extend("--ft-button-secondary-state-layer-opacity-hover","",X.opacity8),secondaryStateLayerOpacityFocus:q.extend("--ft-button-secondary-state-layer-opacity-focus","",X.opacity8),secondaryStateLayerOpacityActive:q.extend("--ft-button-secondary-state-layer-opacity-active","",X.opacity16),secondaryComponentOpacityDisabled:q.extend("--ft-button-secondary-component-opacity-disabled","",X.opacity40),secondaryBorderColor:q.extend("--ft-button-secondary-border-color","",Q.borderActionPrimary),neutralBackgroundColor:q.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:q.extend("--ft-button-neutral-icon-color","",Q.contentGlobalSecondary),neutralColor:q.extend("--ft-button-neutral-color","",Q.contentGlobalSecondary),neutralStateLayerColor:q.extend("--ft-button-neutral-state-layer-color","",Q.contentGlobalSecondary),neutralStateLayerOpacityHover:q.extend("--ft-button-neutral-state-layer-opacity-hover","",X.opacity8),neutralStateLayerOpacityFocus:q.extend("--ft-button-neutral-state-layer-opacity-focus","",X.opacity8),neutralStateLayerOpacityActive:q.extend("--ft-button-neutral-state-layer-opacity-active","",X.opacity16),neutralComponentOpacityDisabled:q.extend("--ft-button-neutral-component-opacity-disabled","",X.opacity40)};q.extend("--ft-tabs-top-left-border-radius","",X.borderRadiusS),q.extend("--ft-tabs-top-right-border-radius","",X.borderRadiusS),q.extend("--ft-tabs-label-horizontal-padding","",X.spacing4),q.extend("--ft-tabs-label-vertical-padding","",X.spacing3),q.extend("--ft-tabs-label-gap","",X.spacing1),q.extend("--ft-switch-group-horizontal-padding","",X.spacing1),q.extend("--ft-switch-group-vertical-padding","",X.spacing1),q.extend("--ft-switch-group-gap","",X.spacing1),q.extend("--ft-switch-group-background-color","",Q.backgroundGlobalSurface),q.extend("--ft-switch-group-border-color","",Q.borderGlobalSubtle),q.create("--ft-switch-group-border-radius","","SIZE","6px"),q.extend("--ft-switch-label-horizontal-padding","",X.spacing2),q.extend("--ft-switch-label-vertical-padding","",X.spacing1),q.extend("--ft-switch-icon-horizontal-padding","",X.spacing1),q.extend("--ft-switch-icon-vertical-padding","",X.spacing1),q.create("--ft-switch-focus-outline-width","","SIZE","2px"),q.extend("--ft-switch-focus-focus-ring-color","",Q.borderActionFocusRing),q.extend("--ft-switch-option-border-radius","",X.borderRadiusS),q.extend("--ft-switch-off-state-layer-opacity-hover","",X.opacity8),q.extend("--ft-switch-off-state-layer-opacity-focus","",X.opacity8),q.extend("--ft-switch-off-state-layer-opacity-active","",X.opacity16),q.extend("--ft-switch-off-component-opacity-disabled","",X.opacity40),q.extend("--ft-switch-off-color","",Q.contentGlobalSubtle),q.extend("--ft-switch-off-state-layer-color","",Q.contentGlobalSubtle),q.extend("--ft-chart-1-light","for area color charts",X.colorBrand40),q.extend("--ft-chart-1-base","for line charts",X.colorBrand0),q.extend("--ft-chart-2-light","for area color charts",X.colorYellow60),q.extend("--ft-chart-2-base","for line charts",X.colorYellow100),q.extend("--ft-chart-3-light","",X.colorUltramarine40),q.extend("--ft-chart-3-base","",X.colorUltramarine70),q.extend("--ft-chart-4-light","",X.colorCyan50),q.extend("--ft-chart-4-base","",X.colorCyan100),q.extend("--ft-chart-5-light","",X.colorRed40),q.extend("--ft-chart-5-base","",X.colorRed60),q.extend("--ft-chart-6-light","",X.colorGreen40),q.extend("--ft-chart-6-base","",X.colorGreen70),q.extend("--ft-chart-7-light","",X.colorOrange70),q.extend("--ft-chart-7-base","",X.colorOrange100),q.extend("--ft-chart-8-light","",X.colorAvocado70),q.extend("--ft-chart-8-base","",X.colorAvocado200),q.extend("--ft-chart-9-light","",X.colorBrown50),q.extend("--ft-chart-9-base","",X.colorBrown200),q.extend("--ft-chart-10-light","",X.colorGray50),q.extend("--ft-chart-10-base","",X.colorGray80),q.extend("--ft-chart-monochrome-10","",X.colorBrand10),q.extend("--ft-chart-monochrome-20","",X.colorBrand20),q.extend("--ft-chart-monochrome-30","",X.colorBrand40),q.extend("--ft-chart-monochrome-40","",X.colorBrand60),q.extend("--ft-chart-monochrome-50","",X.colorBrand0),q.extend("--ft-chart-monochrome-60","",X.colorBrand200),q.extend("--ft-chip-large-horizontal-padding","",X.spacing4),q.extend("--ft-chip-large-vertical-padding","",X.spacing2),q.extend("--ft-chip-large-gap","",X.spacing1),q.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),q.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),q.extend("--ft-chip-large-border-radius","",X.borderRadiusPill),q.create("--ft-chip-large-border-width","","SIZE","1px"),q.extend("--ft-chip-large-icon-size","",X.iconSize3),q.extend("--ft-chip-medium-horizontal-padding","",X.spacing3),q.extend("--ft-chip-medium-vertical-padding","",X.spacing1),q.extend("--ft-chip-medium-gap","",X.spacing1),q.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),q.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),q.extend("--ft-chip-medium-border-radius","",X.borderRadiusPill),q.create("--ft-chip-medium-border-width","","SIZE","1px"),q.extend("--ft-chip-medium-icon-size","",X.iconSize2),q.extend("--ft-chip-small-horizontal-padding","",X.spacing2),q.extend("--ft-chip-small-vertical-padding","",X.spacing05),q.extend("--ft-chip-small-gap","",X.spacing1),q.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),q.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),q.extend("--ft-chip-small-border-radius","",X.borderRadiusPill),q.create("--ft-chip-small-border-width","","SIZE","1px"),q.extend("--ft-chip-small-icon-size","",X.iconSize1),q.extend("--ft-chip-neutral-background-color","",Q.backgroundGlobalOnSurface),q.extend("--ft-chip-neutral-color","",Q.contentGlobalPrimary),q.extend("--ft-chip-neutral-border-color","",Q.borderGlobalSubtle),q.extend("--ft-chip-info-background-color","",Q.backgroundInfoSubtle),q.extend("--ft-chip-info-color","",Q.contentInfoPrimary),q.extend("--ft-chip-info-border-color","",Q.borderInfoPrimary),q.extend("--ft-chip-success-background-color","",Q.backgroundSuccessSubtle),q.extend("--ft-chip-success-color","",Q.contentSuccessPrimary),q.extend("--ft-chip-success-border-color","",Q.borderSuccessPrimary),q.extend("--ft-chip-warning-background-color","",Q.backgroundWarningSubtle),q.extend("--ft-chip-warning-color","",Q.contentWarningPrimary),q.extend("--ft-chip-warning-border-color","",Q.borderWarningPrimary),q.extend("--ft-chip-error-background-color","",Q.backgroundErrorSubtle),q.extend("--ft-chip-error-color","",Q.contentErrorPrimary),q.extend("--ft-chip-error-border-color","",Q.borderErrorPrimary),q.create("--ft-notice-border-width","","SIZE","1px"),q.extend("--ft-notice-horizontal-padding","",X.spacing2),q.extend("--ft-notice-vertical-padding","",X.spacing1),q.extend("--ft-notice-border-radius","",X.borderRadiusS),q.extend("--ft-notice-gap","",X.spacing2),q.extend("--ft-notice-icon-size","",X.iconSize3),q.extend("--ft-notice-info-background-color","",Q.backgroundInfoSubtle),q.extend("--ft-notice-info-border-color","",Q.borderInfoPrimary),q.extend("--ft-notice-info-color","",Q.contentInfoPrimary),q.extend("--ft-notice-warning-background-color","",Q.backgroundWarningSubtle),q.extend("--ft-notice-warning-border-color","",Q.borderWarningPrimary),q.extend("--ft-notice-warning-color","",Q.contentWarningPrimary),q.extend("--ft-checkbox-label-color","",Q.contentGlobalPrimary),q.extend("--ft-checkbox-checked-background-color","",Q.contentActionPrimary),q.extend("--ft-checkbox-checked-state-layer-color","",Q.contentActionPrimary),q.extend("--ft-checkbox-checked-color","",Q.contentGlobalOnColor),q.extend("--ft-checkbox-checked-state-layer-opacity-hover","",X.opacity16),q.extend("--ft-checkbox-checked-state-layer-opacity-focus","",X.opacity16),q.extend("--ft-checkbox-checked-state-layer-opacity-active","",X.opacity24),q.extend("--ft-checkbox-checked-component-opacity-disabled","",X.opacity40),q.extend("--ft-checkbox-unchecked-border-color","",X.colorGray80),q.extend("--ft-checkbox-unchecked-state-layer-color","",X.colorGray80),q.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",X.opacity16),q.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",X.opacity16),q.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",X.opacity24),q.extend("--ft-checkbox-unchecked-component-opacity-disabled","",X.opacity40),q.extend("--ft-checkbox-focus-focus-ring-color","",Q.borderActionFocusRing),q.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),q.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),q.extend("--ft-checkbox-gap","",X.spacing3),q.extend("--ft-toggle-off-state-layer-opacity-hover","",X.opacity16),q.extend("--ft-toggle-off-state-layer-opacity-focus","",X.opacity16),q.extend("--ft-toggle-off-state-layer-opacity-active","",X.opacity24),q.extend("--ft-toggle-off-component-opacity-disabled","",X.opacity40),q.extend("--ft-toggle-off-background-color","",Q.contentGlobalSubtle),q.extend("--ft-toggle-off-icon-color","",Q.contentGlobalSubtle),q.extend("--ft-toggle-off-state-layer-color","",Q.contentGlobalSubtle),q.extend("--ft-toggle-on-state-layer-opacity-hover","",X.opacity16),q.extend("--ft-toggle-on-state-layer-opacity-focus","",X.opacity16),q.extend("--ft-toggle-on-state-layer-opacity-active","",X.opacity24),q.extend("--ft-toggle-on-component-opacity-disabled","",X.opacity40),q.extend("--ft-toggle-on-background-color","",Q.contentActionPrimary),q.extend("--ft-toggle-on-icon-color","",Q.contentActionPrimary),q.extend("--ft-toggle-on-state-layer-color","",Q.contentActionPrimary),q.extend("--ft-toggle-label-color","",Q.contentGlobalPrimary),q.extend("--ft-toggle-focus-focus-ring-color","",Q.borderActionFocusRing),q.extend("--ft-toggle-gap","",X.spacing3),q.extend("--ft-radio-label-color","",Q.contentGlobalPrimary),q.extend("--ft-radio-selected-color","",Q.contentActionPrimary),q.extend("--ft-radio-selected-state-layer-color","",Q.contentActionPrimary),q.extend("--ft-radio-selected-state-layer-opacity-hover","",X.opacity16),q.extend("--ft-radio-selected-state-layer-opacity-focus","",X.opacity16),q.extend("--ft-radio-selected-state-layer-opacity-active","",X.opacity24),q.extend("--ft-radio-selected-component-opacity-disabled","",X.opacity40),q.extend("--ft-radio-unselected-state-layer-color","",X.colorGray80),q.extend("--ft-radio-unselected-state-layer-opacity-hover","",X.opacity16),q.extend("--ft-radio-unselected-state-layer-opacity-focus","",X.opacity16),q.extend("--ft-radio-unselected-state-layer-opacity-active","",X.opacity24),q.extend("--ft-radio-unselected-component-opacity-disabled","",X.opacity40),q.extend("--ft-radio-focus-focus-ring-color","",Q.borderActionFocusRing),q.create("--ft-radio-focus-outline-offset","","SIZE","3px"),q.create("--ft-radio-focus-outline-width","","SIZE","2px"),q.extend("--ft-radio-gap","",X.spacing3),q.extend("--ft-notification-icon-size","",X.iconSize4),q.extend("--ft-notification-horizontal-padding","",X.spacing4),q.extend("--ft-notification-vertical-padding","",X.spacing4),q.extend("--ft-notification-info-background-color","",Q.backgroundInfoSubtle),q.extend("--ft-notification-info-color","",Q.contentInfoPrimary),q.extend("--ft-notification-info-border-color","",Q.borderInfoPrimary),q.extend("--ft-notification-success-background-color","",Q.backgroundSuccessSubtle),q.extend("--ft-notification-success-color","",Q.contentSuccessPrimary),q.extend("--ft-notification-success-border-color","",Q.borderSuccessPrimary),q.extend("--ft-notification-warning-background-color","",Q.backgroundWarningSubtle),q.extend("--ft-notification-warning-color","",Q.contentWarningPrimary),q.extend("--ft-notification-warning-border-color","",Q.borderWarningPrimary),q.extend("--ft-notification-error-background-color","",Q.backgroundErrorSubtle),q.extend("--ft-notification-error-color","",Q.contentErrorPrimary),q.extend("--ft-notification-error-border-color","",Q.borderErrorPrimary),q.extend("--ft-notification-border-radius","",X.borderRadiusPill),q.create("--ft-notification-border-width","","SIZE","1px"),q.extend("--ft-notification-gap-leading","",X.spacing2),q.extend("--ft-notification-gap-trailing","",X.spacing8);const ot=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),et=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),it={fontFamily:et,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")},rt=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ot),at=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",it.fontSize,"20px"),nt=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",it.fontWeight,"normal"),lt=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",it.letterSpacing,"0.15px"),st=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",it.lineHeight,"1.2"),ct=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",it.textTransform,"inherit"),pt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ot),ft=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",it.fontSize,"14px"),dt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",it.fontWeight,"normal"),ht=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",it.letterSpacing,"0.105px"),gt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",it.lineHeight,"1.7"),yt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",it.textTransform,"inherit"),ut=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",et),bt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",it.fontSize,"16px"),mt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",it.fontWeight,"600"),xt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",it.letterSpacing,"0.144px"),vt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",it.lineHeight,"1.5"),Ot=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",it.textTransform,"inherit"),$t=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",et),Nt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",it.fontSize,"14px"),St=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",it.fontWeight,"normal"),wt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",it.letterSpacing,"0.098px"),Ct=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",it.lineHeight,"1.7"),It=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",it.textTransform,"inherit"),kt={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",et),fontSize:o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",it.fontSize,"16px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",it.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",it.letterSpacing,"0.496px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",it.lineHeight,"1.5"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",it.textTransform,"inherit")},Et=o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",et),Rt=o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",it.fontSize,"14px"),Ut=o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",it.fontWeight,"normal"),Wt=o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",it.letterSpacing,"0.252px"),Lt=o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",it.lineHeight,"1.4"),zt=o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",it.textTransform,"inherit"),Zt={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",et),fontSize:o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",it.fontSize,"12px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",it.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",it.letterSpacing,"0.396px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",it.lineHeight,"1.33"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",it.textTransform,"inherit")},Kt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",et),Dt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",it.fontSize,"10px"),Ft=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",it.fontWeight,"normal"),Bt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",it.letterSpacing,"0.33px"),At=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",it.lineHeight,"1.6"),Ht=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",it.textTransform,"inherit"),Gt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",et),jt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",it.fontSize,"10px"),Pt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",it.fontWeight,"normal"),Mt=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",it.letterSpacing,"1.5px"),Tt=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",it.lineHeight,"1.6"),_t=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",it.textTransform,"uppercase"),Vt={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",et),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",it.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",it.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",it.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",it.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",it.textTransform,"uppercase")},Yt=e.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
|
-
font-family: ${
|
|
16
|
-
font-size: ${
|
|
17
|
-
font-weight: ${
|
|
18
|
-
letter-spacing: ${
|
|
19
|
-
line-height: ${
|
|
20
|
-
text-transform: ${
|
|
21
|
-
}
|
|
22
|
-
`,
|
|
15
|
+
font-family: ${rt};
|
|
16
|
+
font-size: ${at};
|
|
17
|
+
font-weight: ${nt};
|
|
18
|
+
letter-spacing: ${lt};
|
|
19
|
+
line-height: ${st};
|
|
20
|
+
text-transform: ${ct};
|
|
21
|
+
}
|
|
22
|
+
`,qt=e.css`
|
|
23
23
|
.ft-typography--title-dense {
|
|
24
|
-
font-family: ${
|
|
25
|
-
font-size: ${
|
|
26
|
-
font-weight: ${
|
|
27
|
-
letter-spacing: ${
|
|
28
|
-
line-height: ${
|
|
29
|
-
text-transform: ${
|
|
24
|
+
font-family: ${pt};
|
|
25
|
+
font-size: ${ft};
|
|
26
|
+
font-weight: ${dt};
|
|
27
|
+
letter-spacing: ${ht};
|
|
28
|
+
line-height: ${gt};
|
|
29
|
+
text-transform: ${yt};
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`,Xt=e.css`
|
|
32
32
|
.ft-typography--subtitle1 {
|
|
33
|
-
font-family: ${
|
|
34
|
-
font-size: ${
|
|
35
|
-
font-weight: ${
|
|
36
|
-
letter-spacing: ${
|
|
37
|
-
line-height: ${
|
|
38
|
-
text-transform: ${
|
|
33
|
+
font-family: ${ut};
|
|
34
|
+
font-size: ${bt};
|
|
35
|
+
font-weight: ${mt};
|
|
36
|
+
letter-spacing: ${xt};
|
|
37
|
+
line-height: ${vt};
|
|
38
|
+
text-transform: ${Ot};
|
|
39
39
|
}
|
|
40
|
-
`,
|
|
40
|
+
`,Jt=e.css`
|
|
41
41
|
.ft-typography--subtitle2 {
|
|
42
|
-
font-family: ${
|
|
43
|
-
font-size: ${
|
|
44
|
-
font-weight: ${
|
|
45
|
-
letter-spacing: ${
|
|
46
|
-
line-height: ${
|
|
47
|
-
text-transform: ${
|
|
42
|
+
font-family: ${$t};
|
|
43
|
+
font-size: ${Nt};
|
|
44
|
+
font-weight: ${St};
|
|
45
|
+
letter-spacing: ${wt};
|
|
46
|
+
line-height: ${Ct};
|
|
47
|
+
text-transform: ${It};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
`,
|
|
50
|
+
`,Qt=e.css`
|
|
51
51
|
.ft-typography--body1 {
|
|
52
|
-
font-family: ${
|
|
53
|
-
font-size: ${
|
|
54
|
-
font-weight: ${
|
|
55
|
-
letter-spacing: ${
|
|
56
|
-
line-height: ${
|
|
57
|
-
text-transform: ${
|
|
52
|
+
font-family: ${kt.fontFamily};
|
|
53
|
+
font-size: ${kt.fontSize};
|
|
54
|
+
font-weight: ${kt.fontWeight};
|
|
55
|
+
letter-spacing: ${kt.letterSpacing};
|
|
56
|
+
line-height: ${kt.lineHeight};
|
|
57
|
+
text-transform: ${kt.textTransform};
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,to=e.css`
|
|
60
60
|
.ft-typography--body2 {
|
|
61
|
-
font-family: ${
|
|
62
|
-
font-size: ${
|
|
63
|
-
font-weight: ${
|
|
64
|
-
letter-spacing: ${
|
|
65
|
-
line-height: ${
|
|
66
|
-
text-transform: ${
|
|
61
|
+
font-family: ${Et};
|
|
62
|
+
font-size: ${Rt};
|
|
63
|
+
font-weight: ${Ut};
|
|
64
|
+
letter-spacing: ${Wt};
|
|
65
|
+
line-height: ${Lt};
|
|
66
|
+
text-transform: ${zt};
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`,oo=e.css`
|
|
69
69
|
.ft-typography--caption {
|
|
70
|
-
font-family: ${
|
|
71
|
-
font-size: ${
|
|
72
|
-
font-weight: ${
|
|
73
|
-
letter-spacing: ${
|
|
74
|
-
line-height: ${
|
|
75
|
-
text-transform: ${
|
|
70
|
+
font-family: ${Zt.fontFamily};
|
|
71
|
+
font-size: ${Zt.fontSize};
|
|
72
|
+
font-weight: ${Zt.fontWeight};
|
|
73
|
+
letter-spacing: ${Zt.letterSpacing};
|
|
74
|
+
line-height: ${Zt.lineHeight};
|
|
75
|
+
text-transform: ${Zt.textTransform};
|
|
76
76
|
}
|
|
77
|
-
`,
|
|
77
|
+
`,eo=e.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
|
-
font-family: ${
|
|
80
|
-
font-size: ${
|
|
81
|
-
font-weight: ${
|
|
82
|
-
letter-spacing: ${
|
|
83
|
-
line-height: ${
|
|
84
|
-
text-transform: ${
|
|
79
|
+
font-family: ${Kt};
|
|
80
|
+
font-size: ${Dt};
|
|
81
|
+
font-weight: ${Ft};
|
|
82
|
+
letter-spacing: ${Bt};
|
|
83
|
+
line-height: ${At};
|
|
84
|
+
text-transform: ${Ht};
|
|
85
85
|
}
|
|
86
|
-
`,
|
|
86
|
+
`,io=e.css`
|
|
87
87
|
.ft-typography--overline {
|
|
88
|
-
font-family: ${
|
|
89
|
-
font-size: ${
|
|
90
|
-
font-weight: ${
|
|
91
|
-
letter-spacing: ${
|
|
92
|
-
line-height: ${
|
|
93
|
-
text-transform: ${
|
|
88
|
+
font-family: ${Gt};
|
|
89
|
+
font-size: ${jt};
|
|
90
|
+
font-weight: ${Pt};
|
|
91
|
+
letter-spacing: ${Mt};
|
|
92
|
+
line-height: ${Tt};
|
|
93
|
+
text-transform: ${_t};
|
|
94
94
|
}
|
|
95
|
-
`,
|
|
95
|
+
`,ro=e.css`
|
|
96
96
|
.ft-typography--button {
|
|
97
|
-
font-family: ${
|
|
98
|
-
font-size: ${
|
|
99
|
-
font-weight: ${
|
|
100
|
-
letter-spacing: ${
|
|
101
|
-
line-height: ${
|
|
102
|
-
text-transform: ${
|
|
103
|
-
}
|
|
104
|
-
`,
|
|
97
|
+
font-family: ${Vt.fontFamily};
|
|
98
|
+
font-size: ${Vt.fontSize};
|
|
99
|
+
font-weight: ${Vt.fontWeight};
|
|
100
|
+
letter-spacing: ${Vt.letterSpacing};
|
|
101
|
+
line-height: ${Vt.lineHeight};
|
|
102
|
+
text-transform: ${Vt.textTransform};
|
|
103
|
+
}
|
|
104
|
+
`,ao=e.css`
|
|
105
105
|
.ft-typography {
|
|
106
106
|
vertical-align: inherit;
|
|
107
107
|
}
|
|
108
|
-
`,
|
|
108
|
+
`,no=[Object.keys(J).map((t=>function(t){const o=J[t];return e.css`
|
|
109
109
|
.ft-typography--${e.unsafeCSS(t)} {
|
|
110
110
|
font-family: ${o.fontFamily};
|
|
111
111
|
font-size: ${o.fontSize};
|
|
@@ -114,32 +114,32 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
114
114
|
line-height: ${o.lineHeight};
|
|
115
115
|
text-transform: ${o.textCase};
|
|
116
116
|
}
|
|
117
|
-
`}(t)))];var
|
|
118
|
-
<${
|
|
117
|
+
`}(t)))];var lo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class so extends o.FtLitElement{constructor(){super(...arguments),this.variant=V.body1}render(){return this.element?_`
|
|
118
|
+
<${M(this.element)}
|
|
119
119
|
class="ft-typography ft-typography--${this.variant}">
|
|
120
120
|
<slot></slot>
|
|
121
|
-
</${
|
|
122
|
-
`:
|
|
121
|
+
</${M(this.element)}>
|
|
122
|
+
`:_`
|
|
123
123
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
124
|
-
`}}
|
|
124
|
+
`}}so.styles=[Yt,qt,Xt,Jt,Qt,to,oo,eo,io,ro,ao,...no],lo([i.property()],so.prototype,"element",void 0),lo([i.property()],so.prototype,"variant",void 0),o.customElement("ft-typography")(so);const co={fontSize:o.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:o.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:o.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:o.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:o.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:o.FtCssVariableFactory.extend("--ft-input-label-border-color","",o.designSystemVariables.colorOutline),textColor:o.FtCssVariableFactory.extend("--ft-input-label-text-color","",o.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:o.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",o.designSystemVariables.colorOnSurfaceDisabled),colorSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system"),borderRadiusS:o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),colorError:o.FtCssVariableFactory.external(o.designSystemVariables.colorError,"Design system")},po=e.css`
|
|
125
125
|
.ft-input-label {
|
|
126
126
|
position: absolute;
|
|
127
127
|
inset: 0;
|
|
128
128
|
display: flex;
|
|
129
|
-
background-color: ${
|
|
130
|
-
border-radius: ${
|
|
129
|
+
background-color: ${co.colorSurface};
|
|
130
|
+
border-radius: ${co.borderRadiusS} ${co.borderRadiusS} 0 0;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.ft-input-label--outlined {
|
|
134
|
-
border-radius: ${
|
|
134
|
+
border-radius: ${co.borderRadiusS};
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
.ft-input-label {
|
|
138
|
-
border-color: ${
|
|
138
|
+
border-color: ${co.borderColor};
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
.ft-input-label.ft-input-label--in-error {
|
|
142
|
-
border-color: ${
|
|
142
|
+
border-color: ${co.colorError}
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
.ft-input-label:before,
|
|
@@ -152,7 +152,7 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.ft-input-label:before {
|
|
155
|
-
width: calc(${
|
|
155
|
+
width: calc(${co.horizontalSpacing} - 4px);
|
|
156
156
|
flex-shrink: 0;
|
|
157
157
|
}
|
|
158
158
|
|
|
@@ -168,20 +168,20 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
168
168
|
border-bottom-width: 1px;
|
|
169
169
|
border-bottom-style: solid;
|
|
170
170
|
border-color: inherit;
|
|
171
|
-
color: ${
|
|
171
|
+
color: ${co.textColor};
|
|
172
172
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
173
|
-
max-width: calc(${
|
|
173
|
+
max-width: calc(${co.labelMaxWidth} - 2 * (${co.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
174
174
|
text-overflow: ellipsis;
|
|
175
|
-
${o.setVariable(
|
|
176
|
-
${o.setVariable(
|
|
175
|
+
${o.setVariable(Zt.fontSize,co.fontSize)};
|
|
176
|
+
${o.setVariable(Zt.lineHeight,co.fontSize)};
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
.ft-input-label--in-error .ft-input-label--text {
|
|
180
|
-
color: ${
|
|
180
|
+
color: ${co.colorError}
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
.ft-input-label--disabled .ft-input-label--text {
|
|
184
|
-
color: ${
|
|
184
|
+
color: ${co.disabledTextColor};
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
.ft-input-label--hidden-text {
|
|
@@ -198,19 +198,19 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
198
198
|
overflow: hidden;
|
|
199
199
|
white-space: nowrap;
|
|
200
200
|
text-overflow: ellipsis;
|
|
201
|
-
padding: ${
|
|
202
|
-
margin: calc(${
|
|
201
|
+
padding: ${co.verticalSpacing} 4px;
|
|
202
|
+
margin: calc(${co.verticalSpacing} * -1) 0;
|
|
203
203
|
max-width: 100%;
|
|
204
204
|
box-sizing: border-box;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
.ft-input-label--raised .ft-input-label--text {
|
|
208
|
-
${o.setVariable(
|
|
209
|
-
${o.setVariable(
|
|
208
|
+
${o.setVariable(Zt.fontSize,co.raisedFontSize)};
|
|
209
|
+
${o.setVariable(Zt.lineHeight,co.raisedFontSize)};
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
213
|
-
top: ${
|
|
213
|
+
top: ${co.verticalSpacing};
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -223,27 +223,27 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
223
223
|
.ft-input-label--outlined:before {
|
|
224
224
|
border-left-width: 1px;
|
|
225
225
|
border-left-style: solid;
|
|
226
|
-
border-radius: ${
|
|
226
|
+
border-radius: ${co.borderRadiusS} 0 0 ${co.borderRadiusS};
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
.ft-input-label--outlined:after {
|
|
230
230
|
border-right-width: 1px;
|
|
231
231
|
border-right-style: solid;
|
|
232
|
-
border-radius: 0 ${
|
|
232
|
+
border-radius: 0 ${co.borderRadiusS} ${co.borderRadiusS} 0;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
236
236
|
padding: 2px 4px;
|
|
237
|
-
z-index: ${
|
|
238
|
-
background-color: ${
|
|
239
|
-
border-radius: ${
|
|
237
|
+
z-index: ${co.raisedZIndex};
|
|
238
|
+
background-color: ${co.colorSurface};
|
|
239
|
+
border-radius: ${co.borderRadiusS};
|
|
240
240
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
244
244
|
border-top: none;
|
|
245
245
|
}
|
|
246
|
-
`;var
|
|
246
|
+
`;var fo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ho extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return e.html`
|
|
247
247
|
<div class="${n.classMap(t)}">
|
|
248
248
|
${this.text?e.html`
|
|
249
249
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -252,7 +252,7 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
252
252
|
</div>
|
|
253
253
|
`:null}
|
|
254
254
|
</div>
|
|
255
|
-
`}}
|
|
255
|
+
`}}ho.elementDefinitions={},ho.styles=[oo,po],fo([i.property({type:String})],ho.prototype,"text",void 0),fo([i.property({type:Boolean})],ho.prototype,"raised",void 0),fo([i.property({type:Boolean})],ho.prototype,"outlined",void 0),fo([i.property({type:Boolean})],ho.prototype,"disabled",void 0),fo([i.property({type:Boolean})],ho.prototype,"error",void 0),o.customElement("ft-input-label")(ho);const go=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorContent),yo={color:go,backgroundColor:o.FtCssVariableFactory.extend("--ft-ripple-background-color","",go),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")},uo=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorPrimary),bo=uo,mo=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",uo),xo=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorSecondary),vo=xo,Oo=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",xo),$o=e.css`
|
|
256
256
|
:host {
|
|
257
257
|
display: contents;
|
|
258
258
|
}
|
|
@@ -265,7 +265,7 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
265
265
|
|
|
266
266
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
267
267
|
overflow: hidden;
|
|
268
|
-
border-radius: ${
|
|
268
|
+
border-radius: ${yo.borderRadius};
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
.ft-ripple .ft-ripple--background,
|
|
@@ -299,27 +299,27 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
.ft-ripple .ft-ripple--background {
|
|
302
|
-
background-color: ${
|
|
302
|
+
background-color: ${yo.backgroundColor};
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
.ft-ripple .ft-ripple--effect {
|
|
306
|
-
background-color: ${
|
|
306
|
+
background-color: ${yo.color};
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
310
|
-
background-color: ${
|
|
310
|
+
background-color: ${Oo};
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
314
|
-
background-color: ${
|
|
314
|
+
background-color: ${vo};
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
318
|
-
background-color: ${
|
|
318
|
+
background-color: ${mo};
|
|
319
319
|
}
|
|
320
320
|
|
|
321
321
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
322
|
-
background-color: ${
|
|
322
|
+
background-color: ${bo};
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
.ft-ripple .ft-ripple--background {
|
|
@@ -349,22 +349,22 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
352
|
-
opacity: ${
|
|
352
|
+
opacity: ${yo.opacityContentOnSurfaceHover};
|
|
353
353
|
}
|
|
354
354
|
|
|
355
355
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
356
|
-
opacity: ${
|
|
356
|
+
opacity: ${yo.opacityContentOnSurfaceSelected};
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
360
|
-
opacity: ${
|
|
360
|
+
opacity: ${yo.opacityContentOnSurfaceFocused};
|
|
361
361
|
}
|
|
362
362
|
|
|
363
363
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
364
|
-
opacity: ${
|
|
364
|
+
opacity: ${yo.opacityContentOnSurfacePressed};
|
|
365
365
|
transform: translate(-50%, -50%) scale(1);
|
|
366
366
|
}
|
|
367
|
-
`;var So,wo
|
|
367
|
+
`;var No,So,wo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Co extends o.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o.Debouncer(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),a=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-a.x:a.width/2),this.originY=Math.round(null!=r?r-a.y:a.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
368
368
|
<style>
|
|
369
369
|
.ft-ripple .ft-ripple--effect {
|
|
370
370
|
left: ${this.originX}px;
|
|
@@ -375,7 +375,7 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
375
375
|
<div class="ft-ripple--background"></div>
|
|
376
376
|
<div class="ft-ripple--effect"></div>
|
|
377
377
|
</div>
|
|
378
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Io.elementDefinitions={},Io.styles=No,Co([i.property({type:Boolean})],Io.prototype,"primary",void 0),Co([i.property({type:Boolean})],Io.prototype,"secondary",void 0),Co([i.property({type:Boolean})],Io.prototype,"unbounded",void 0),Co([i.property({type:Boolean})],Io.prototype,"activated",void 0),Co([i.property({type:Boolean})],Io.prototype,"selected",void 0),Co([i.property({type:Boolean})],Io.prototype,"disabled",void 0),Co([i.state()],Io.prototype,"hovered",void 0),Co([i.state()],Io.prototype,"focused",void 0),Co([i.state()],Io.prototype,"pressed",void 0),Co([i.state()],Io.prototype,"rippling",void 0),Co([i.state()],Io.prototype,"originX",void 0),Co([i.state()],Io.prototype,"originY",void 0),Co([i.query(".ft-ripple")],Io.prototype,"ripple",void 0),Co([i.query(".ft-ripple--effect")],Io.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(Io),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(So||(So={})),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=""}(wo||(wo={})),new Map([...["abw"].map((t=>[t,wo.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,wo.AUDIO])),...["avi"].map((t=>[t,wo.AVI])),...["chm","xhs"].map((t=>[t,wo.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,wo.CODE])),...["csv"].map((t=>[t,wo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,wo.DITA])),...["epub"].map((t=>[t,wo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,wo.EXCEL])),...["flac"].map((t=>[t,wo.FLAC])),...["gif"].map((t=>[t,wo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,wo.GZIP])),...["html","htm","xhtml"].map((t=>[t,wo.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,wo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,wo.JPEG])),...["json"].map((t=>[t,wo.JSON])),...["m4a","m4p"].map((t=>[t,wo.M4A])),...["mov","qt"].map((t=>[t,wo.MOV])),...["mp3"].map((t=>[t,wo.MP3])),...["mp4","m4v"].map((t=>[t,wo.MP4])),...["ogg","oga"].map((t=>[t,wo.OGG])),...["pdf","ps"].map((t=>[t,wo.PDF])),...["png"].map((t=>[t,wo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,wo.POWERPOINT])),...["rar"].map((t=>[t,wo.RAR])),...["stp"].map((t=>[t,wo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,wo.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,wo.VIDEO])),...["wav"].map((t=>[t,wo.WAV])),...["wma"].map((t=>[t,wo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,wo.WORD])),...["xml","xsl","rdf"].map((t=>[t,wo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,wo.YAML])),...["zip"].map((t=>[t,wo.ZIP]))]);const ko={size:o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Eo=e.css`
|
|
378
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Co.elementDefinitions={},Co.styles=$o,wo([i.property({type:Boolean})],Co.prototype,"primary",void 0),wo([i.property({type:Boolean})],Co.prototype,"secondary",void 0),wo([i.property({type:Boolean})],Co.prototype,"unbounded",void 0),wo([i.property({type:Boolean})],Co.prototype,"activated",void 0),wo([i.property({type:Boolean})],Co.prototype,"selected",void 0),wo([i.property({type:Boolean})],Co.prototype,"disabled",void 0),wo([i.state()],Co.prototype,"hovered",void 0),wo([i.state()],Co.prototype,"focused",void 0),wo([i.state()],Co.prototype,"pressed",void 0),wo([i.state()],Co.prototype,"rippling",void 0),wo([i.state()],Co.prototype,"originX",void 0),wo([i.state()],Co.prototype,"originY",void 0),wo([i.query(".ft-ripple")],Co.prototype,"ripple",void 0),wo([i.query(".ft-ripple--effect")],Co.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(Co),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=""}(No||(No={})),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=""}(So||(So={})),new Map([...["abw"].map((t=>[t,So.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,So.AUDIO])),...["avi"].map((t=>[t,So.AVI])),...["chm","xhs"].map((t=>[t,So.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,So.CODE])),...["csv"].map((t=>[t,So.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,So.DITA])),...["epub"].map((t=>[t,So.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,So.EXCEL])),...["flac"].map((t=>[t,So.FLAC])),...["gif"].map((t=>[t,So.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,So.GZIP])),...["html","htm","xhtml"].map((t=>[t,So.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,So.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,So.JPEG])),...["json"].map((t=>[t,So.JSON])),...["m4a","m4p"].map((t=>[t,So.M4A])),...["mov","qt"].map((t=>[t,So.MOV])),...["mp3"].map((t=>[t,So.MP3])),...["mp4","m4v"].map((t=>[t,So.MP4])),...["ogg","oga"].map((t=>[t,So.OGG])),...["pdf","ps"].map((t=>[t,So.PDF])),...["png"].map((t=>[t,So.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,So.POWERPOINT])),...["rar"].map((t=>[t,So.RAR])),...["stp"].map((t=>[t,So.STP])),...["txt","rtf","md","mdown"].map((t=>[t,So.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,So.VIDEO])),...["wav"].map((t=>[t,So.WAV])),...["wma"].map((t=>[t,So.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,So.WORD])),...["xml","xsl","rdf"].map((t=>[t,So.XML])),...["yaml","yml","x-yaml"].map((t=>[t,So.YAML])),...["zip"].map((t=>[t,So.ZIP]))]);const Io={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")},ko=e.css`
|
|
379
379
|
:host, i.ft-icon {
|
|
380
380
|
display: inline-flex;
|
|
381
381
|
align-items: center;
|
|
@@ -384,14 +384,14 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
:host {
|
|
387
|
-
width: ${
|
|
388
|
-
height: ${
|
|
387
|
+
width: ${Io.size};
|
|
388
|
+
height: ${Io.size};
|
|
389
389
|
}
|
|
390
390
|
|
|
391
391
|
i.ft-icon {
|
|
392
392
|
width: 100%;
|
|
393
393
|
height: 100%;
|
|
394
|
-
font-size: ${
|
|
394
|
+
font-size: ${Io.size};
|
|
395
395
|
line-height: 1;
|
|
396
396
|
font-weight: normal;
|
|
397
397
|
text-transform: none;
|
|
@@ -402,33 +402,33 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
402
402
|
text-rendering: auto;
|
|
403
403
|
-webkit-font-smoothing: antialiased;
|
|
404
404
|
-moz-osx-font-smoothing: grayscale;
|
|
405
|
-
vertical-align: ${
|
|
405
|
+
vertical-align: ${Io.verticalAlign};
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
i.ft-icon.ft-icon--fluid-topics {
|
|
409
|
-
font-family: ${
|
|
409
|
+
font-family: ${Io.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
410
410
|
|
|
411
411
|
/* Ugly fix because font is broken */
|
|
412
|
-
font-size: calc(0.75 * ${
|
|
413
|
-
line-height: ${
|
|
412
|
+
font-size: calc(0.75 * ${Io.size});
|
|
413
|
+
line-height: ${Io.size};
|
|
414
414
|
position: relative;
|
|
415
415
|
top: -4%;
|
|
416
416
|
justify-content: center;
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
.ft-icon--file-format {
|
|
420
|
-
font-family: ${
|
|
420
|
+
font-family: ${Io.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
.ft-icon--material {
|
|
424
|
-
font-family: ${
|
|
424
|
+
font-family: ${Io.materialFontFamily}, "Material Icons", sans-serif;
|
|
425
425
|
}
|
|
426
|
-
`;var
|
|
426
|
+
`;var Eo;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Eo||(Eo={}));var Ro=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Uo extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Eo).includes(this.variant)?this.variant:Eo.fluid_topics,o=t!==Eo.material||!!this.value;return e.html`
|
|
427
427
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
428
428
|
${a.unsafeHTML(this.resolvedIcon)}
|
|
429
429
|
<slot ?hidden=${o}></slot>
|
|
430
430
|
</i>
|
|
431
|
-
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let i=this.value||this.textContent;switch(this.variant){case
|
|
431
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let i=this.value||this.textContent;switch(this.variant){case Eo.file_format:this.resolvedIcon=null!==(t=So[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Eo.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=No[i.replace("-","_").toUpperCase()])&&void 0!==o?o:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Uo.elementDefinitions={},Uo.styles=ko,Ro([i.property()],Uo.prototype,"variant",void 0),Ro([i.property()],Uo.prototype,"value",void 0),Ro([i.state()],Uo.prototype,"resolvedIcon",void 0),Ro([i.query("slot")],Uo.prototype,"slottedContent",void 0),o.customElement("ft-icon")(Uo);const Wo={labelSize:o.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:o.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:o.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:o.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","unset"),selectedOptionColor:o.FtCssVariableFactory.extend("--ft-select-selected-option-color","",o.designSystemVariables.colorOnSurface),helperColor:o.FtCssVariableFactory.extend("--ft-select-helper-color","",o.designSystemVariables.colorOnSurfaceMedium),optionsColor:o.FtCssVariableFactory.extend("--ft-select-options-color","",o.designSystemVariables.colorOnSurface),optionsZIndex:o.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),colorSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.FtCssVariableFactory.external(o.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),elevation02:o.FtCssVariableFactory.external(o.designSystemVariables.elevation02,"Design system"),colorError:o.FtCssVariableFactory.external(o.designSystemVariables.colorError,"Design system")},Lo=e.css`
|
|
432
432
|
*:focus {
|
|
433
433
|
outline: none;
|
|
434
434
|
}
|
|
@@ -442,7 +442,7 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
442
442
|
.ft-select--main-panel {
|
|
443
443
|
position: relative;
|
|
444
444
|
display: flex;
|
|
445
|
-
height: calc(4 * ${
|
|
445
|
+
height: calc(4 * ${Wo.verticalSpacing} + ${Wo.labelSize} + ${Wo.selectedOptionSize});
|
|
446
446
|
}
|
|
447
447
|
|
|
448
448
|
.ft-select--input-panel {
|
|
@@ -451,17 +451,17 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
451
451
|
display: flex;
|
|
452
452
|
align-items: center;
|
|
453
453
|
overflow: hidden;
|
|
454
|
-
padding-left: ${
|
|
455
|
-
padding-right: ${
|
|
454
|
+
padding-left: ${Wo.horizontalSpacing};
|
|
455
|
+
padding-right: ${Wo.horizontalSpacing};
|
|
456
456
|
gap: 8px;
|
|
457
|
-
color: ${
|
|
458
|
-
${o.setVariable(
|
|
457
|
+
color: ${Wo.selectedOptionColor};
|
|
458
|
+
${o.setVariable(yo.color,Wo.selectedOptionColor)};
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
.ft-select--input-panel,
|
|
462
462
|
.ft-select--option {
|
|
463
|
-
${o.setVariable(
|
|
464
|
-
${o.setVariable(
|
|
463
|
+
${o.setVariable(yo.opacityContentOnSurfaceHover,"0.08")};
|
|
464
|
+
${o.setVariable(yo.opacityContentOnSurfacePressed,"0.04")};
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
.ft-select--input-panel > *:not(ft-ripple),
|
|
@@ -471,7 +471,7 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
471
471
|
|
|
472
472
|
.ft-select--disabled .ft-select--input-panel,
|
|
473
473
|
.ft-select--disabled .ft-select--option {
|
|
474
|
-
color: ${
|
|
474
|
+
color: ${Wo.colorOnSurfaceDisabled};
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -480,20 +480,20 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
480
480
|
}
|
|
481
481
|
|
|
482
482
|
ft-input-label {
|
|
483
|
-
${o.setVariable(
|
|
484
|
-
${o.setVariable(
|
|
485
|
-
${o.setVariable(
|
|
486
|
-
${o.setVariable(
|
|
487
|
-
${o.setVariable(
|
|
483
|
+
${o.setVariable(co.fontSize,Wo.selectedOptionSize)};
|
|
484
|
+
${o.setVariable(co.raisedFontSize,Wo.labelSize)};
|
|
485
|
+
${o.setVariable(co.verticalSpacing,Wo.verticalSpacing)};
|
|
486
|
+
${o.setVariable(co.horizontalSpacing,Wo.horizontalSpacing)};
|
|
487
|
+
${o.setVariable(co.labelMaxWidth,`calc(100% - ${Io.size} - 8px)`)};
|
|
488
488
|
}
|
|
489
489
|
|
|
490
490
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
491
|
-
color: ${
|
|
491
|
+
color: ${Wo.colorPrimary};
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
495
|
-
${o.setVariable(
|
|
496
|
-
${o.setVariable(
|
|
495
|
+
${o.setVariable(co.borderColor,Wo.colorPrimary)};
|
|
496
|
+
${o.setVariable(co.textColor,Wo.colorPrimary)};
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
.ft-select--selected-option {
|
|
@@ -503,12 +503,12 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
503
503
|
overflow: hidden;
|
|
504
504
|
white-space: nowrap;
|
|
505
505
|
text-overflow: ellipsis;
|
|
506
|
-
${o.setVariable(
|
|
507
|
-
${o.setVariable(
|
|
506
|
+
${o.setVariable(kt.fontSize,Wo.selectedOptionSize)};
|
|
507
|
+
${o.setVariable(kt.lineHeight,Wo.selectedOptionSize)};
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
.ft-select--in-error .ft-select--selected-option {
|
|
511
|
-
color: ${
|
|
511
|
+
color: ${Wo.colorError};
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
ft-icon {
|
|
@@ -520,16 +520,16 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
.ft-select--filled .ft-select--input-panel {
|
|
523
|
-
border-radius: ${
|
|
523
|
+
border-radius: ${Wo.borderRadiusS} ${Wo.borderRadiusS} 0 0;
|
|
524
524
|
}
|
|
525
525
|
|
|
526
526
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
527
527
|
align-self: stretch;
|
|
528
|
-
padding-top: calc(${
|
|
528
|
+
padding-top: calc(${Wo.labelSize} + 2 * ${Wo.verticalSpacing});
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
.ft-select--outlined .ft-select--input-panel {
|
|
532
|
-
border-radius: ${
|
|
532
|
+
border-radius: ${Wo.borderRadiusS};
|
|
533
533
|
}
|
|
534
534
|
|
|
535
535
|
.ft-select--options {
|
|
@@ -538,10 +538,10 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
538
538
|
top: 100%;
|
|
539
539
|
left: 0;
|
|
540
540
|
right: 0;
|
|
541
|
-
color: ${
|
|
542
|
-
background: ${
|
|
543
|
-
z-index: ${
|
|
544
|
-
box-shadow: ${
|
|
541
|
+
color: ${Wo.optionsColor};
|
|
542
|
+
background: ${Wo.colorSurface};
|
|
543
|
+
z-index: ${Wo.optionsZIndex};
|
|
544
|
+
box-shadow: ${Wo.elevation02};
|
|
545
545
|
}
|
|
546
546
|
|
|
547
547
|
.ft-select--fixed .ft-select--options {
|
|
@@ -552,13 +552,13 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
552
552
|
|
|
553
553
|
.ft-select--options-displayed .ft-select--options {
|
|
554
554
|
display: block;
|
|
555
|
-
max-height: ${
|
|
555
|
+
max-height: ${Wo.optionsHeight};
|
|
556
556
|
overflow-y: auto;
|
|
557
557
|
}
|
|
558
558
|
|
|
559
559
|
.ft-select--option {
|
|
560
560
|
position: relative;
|
|
561
|
-
padding: 4px ${
|
|
561
|
+
padding: 4px ${Wo.horizontalSpacing};
|
|
562
562
|
min-height: 32px;
|
|
563
563
|
display: flex;
|
|
564
564
|
align-items: center;
|
|
@@ -570,14 +570,14 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
.ft-select--helper-text {
|
|
573
|
-
padding: 0 ${
|
|
574
|
-
color: ${
|
|
573
|
+
padding: 0 ${Wo.horizontalSpacing};
|
|
574
|
+
color: ${Wo.helperColor};
|
|
575
575
|
}
|
|
576
576
|
|
|
577
577
|
.ft-select--in-error .ft-select--helper-text {
|
|
578
|
-
color: ${
|
|
578
|
+
color: ${Wo.colorError};
|
|
579
579
|
}
|
|
580
|
-
`;var
|
|
580
|
+
`;var zo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Zo extends o.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return e.html``}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Zo.elementDefinitions={},zo([i.property({type:String})],Zo.prototype,"label",void 0),zo([i.property({type:Object,converter:t=>t})],Zo.prototype,"value",void 0),zo([i.property({type:Boolean,reflect:!0})],Zo.prototype,"selected",void 0);class Ko extends o.FtLitElement{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,o,i,a,l;let s=this.hasOptionsMenuOpen,c=this.disabled||!this.hasOptions;const p=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(o=this.selectedOption)||void 0===o?void 0:o.label)&&void 0!==i?i:"").length>0,f={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":c,"ft-select--options-displayed":s,"ft-select--has-option-selected":p,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return e.html`
|
|
581
581
|
<div class="${n.classMap(f)}" part="container">
|
|
582
582
|
<div class="ft-select--main-panel" part="main-panel">
|
|
583
583
|
<ft-input-label text="${this.label}"
|
|
@@ -625,13 +625,13 @@ const P=Symbol.for(""),M=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t
|
|
|
625
625
|
<ft-ripple ?primary=${o} ?activated=${o}></ft-ripple>
|
|
626
626
|
<span>${t.label}</span>
|
|
627
627
|
</div>
|
|
628
|
-
`}update(t){super.update(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var o,e;super.contentAvailableCallback(t),t.has("focusOptions")&&this.focusOptions&&(null===(e=null!==(o=this.selectedOptionElement)&&void 0!==o?o:this.firstOption)||void 0===e||e.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var o;t.stopPropagation();let e=null===(o=this.optionsSlot)||void 0===o?void 0:o.assignedElements().map((t=>t));e&&e.length>0&&(this.options=e)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var o,e,i,r,a;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(o=this.mainPanel)||void 0===o||o.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(i=null===(e=this.focusedOption)||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(a=null===(r=this.focusedOption)||void 0===r?void 0:r.nextElementSibling)&&void 0!==a?a:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,o){var e;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(o),this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus())}selectOption(t){var e,i;if(!o.deepEqual(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let o of this.options)o.selected=o===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}
|
|
628
|
+
`}update(t){super.update(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var o,e;super.contentAvailableCallback(t),t.has("focusOptions")&&this.focusOptions&&(null===(e=null!==(o=this.selectedOptionElement)&&void 0!==o?o:this.firstOption)||void 0===e||e.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var o;t.stopPropagation();let e=null===(o=this.optionsSlot)||void 0===o?void 0:o.assignedElements().map((t=>t));e&&e.length>0&&(this.options=e)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var o,e,i,r,a;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(o=this.mainPanel)||void 0===o||o.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(i=null===(e=this.focusedOption)||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(a=null===(r=this.focusedOption)||void 0===r?void 0:r.nextElementSibling)&&void 0!==a?a:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,o){var e;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(o),this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus())}selectOption(t){var e,i;if(!o.deepEqual(null===(e=this.selectedOption)||void 0===e?void 0:e.value,t.value)){this.selectedOption=t;for(let o of this.options)o.selected=o===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Ko.elementDefinitions={"ft-input-label":ho,"ft-typography":so,"ft-ripple":Co,"ft-icon":Uo},Ko.styles=[to,oo,Lo],zo([i.property({type:String})],Ko.prototype,"label",void 0),zo([i.property({type:String})],Ko.prototype,"helper",void 0),zo([i.property({type:Boolean})],Ko.prototype,"outlined",void 0),zo([i.property({type:Boolean})],Ko.prototype,"disabled",void 0),zo([i.property({type:Boolean})],Ko.prototype,"error",void 0),zo([i.property({type:Boolean})],Ko.prototype,"fixedMenuPosition",void 0),zo([i.property({type:Array})],Ko.prototype,"options",void 0),zo([i.state()],Ko.prototype,"selectedOption",void 0),zo([i.state()],Ko.prototype,"optionsDisplayed",void 0),zo([i.state()],Ko.prototype,"focusOptions",void 0),zo([i.query(".ft-select")],Ko.prototype,"container",void 0),zo([i.query(".ft-select--options")],Ko.prototype,"optionsMenu",void 0),zo([i.query(".ft-select--input-panel")],Ko.prototype,"mainPanel",void 0),zo([i.query(".ft-select--option:first-child")],Ko.prototype,"firstOption",void 0),zo([i.query(".ft-select--option:focus")],Ko.prototype,"focusedOption",void 0),zo([i.query(".ft-select--option.ft-select--option-selected")],Ko.prototype,"selectedOptionElement",void 0),zo([i.query(".ft-select--option:last-child")],Ko.prototype,"lastOption",void 0),zo([i.query("slot")],Ko.prototype,"optionsSlot",void 0),o.customElement("ft-select")(Ko),o.customElement("ft-select-option")(Zo);
|
|
629
629
|
/**
|
|
630
630
|
* @license
|
|
631
631
|
* Copyright 2018 Google LLC
|
|
632
632
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
633
633
|
*/
|
|
634
|
-
const
|
|
634
|
+
const Do={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:o.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:o.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:o.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:o.FtCssVariableFactory.extend("--ft-text-field-helper-color","",o.designSystemVariables.colorOnSurfaceMedium),colorPrimary:o.FtCssVariableFactory.external(o.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),colorError:o.FtCssVariableFactory.external(o.designSystemVariables.colorError,"Design system"),prefixColor:o.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",o.designSystemVariables.colorOnSurfaceMedium),iconColor:o.FtCssVariableFactory.extend("--ft-text-field-icon-color","",o.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:o.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system"),colorOutline:o.FtCssVariableFactory.external(o.designSystemVariables.colorOutline,"Design system"),elevation02:o.FtCssVariableFactory.external(o.designSystemVariables.elevation02,"Design system"),suggestSize:o.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Fo=e.css`
|
|
635
635
|
*:focus {
|
|
636
636
|
outline: none;
|
|
637
637
|
}
|
|
@@ -644,16 +644,16 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
644
644
|
}
|
|
645
645
|
|
|
646
646
|
ft-input-label {
|
|
647
|
-
${o.setVariable(
|
|
648
|
-
${o.setVariable(
|
|
649
|
-
${o.setVariable(
|
|
650
|
-
${o.setVariable(
|
|
647
|
+
${o.setVariable(co.fontSize,Do.fontSize)};
|
|
648
|
+
${o.setVariable(co.raisedFontSize,Do.labelSize)};
|
|
649
|
+
${o.setVariable(co.verticalSpacing,Do.verticalSpacing)};
|
|
650
|
+
${o.setVariable(co.horizontalSpacing,Do.horizontalSpacing)};
|
|
651
651
|
}
|
|
652
652
|
|
|
653
653
|
.ft-text-field--main-panel {
|
|
654
654
|
position: relative;
|
|
655
655
|
display: flex;
|
|
656
|
-
height: calc(4 * ${
|
|
656
|
+
height: calc(4 * ${Do.verticalSpacing} + ${Do.labelSize} + ${Do.fontSize});
|
|
657
657
|
}
|
|
658
658
|
|
|
659
659
|
.ft-text-field--input-panel {
|
|
@@ -662,24 +662,24 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
662
662
|
display: flex;
|
|
663
663
|
align-items: center;
|
|
664
664
|
overflow: hidden;
|
|
665
|
-
padding: 0 ${
|
|
665
|
+
padding: 0 ${Do.horizontalSpacing};
|
|
666
666
|
|
|
667
|
-
${o.setVariable(
|
|
668
|
-
${o.setVariable(
|
|
667
|
+
${o.setVariable(kt.fontSize,Do.fontSize)};
|
|
668
|
+
${o.setVariable(kt.lineHeight,Do.fontSize)};
|
|
669
669
|
}
|
|
670
670
|
|
|
671
671
|
.ft-text-field--input-panel ft-ripple {
|
|
672
|
-
${o.setVariable(
|
|
673
|
-
${o.setVariable(
|
|
672
|
+
${o.setVariable(yo.opacityContentOnSurfaceHover,"0.08")};
|
|
673
|
+
${o.setVariable(yo.opacityContentOnSurfacePressed,"0.04")};
|
|
674
674
|
}
|
|
675
675
|
|
|
676
676
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
677
677
|
align-items: flex-end;
|
|
678
|
-
padding: 0 ${
|
|
678
|
+
padding: 0 ${Do.horizontalSpacing} ${Do.verticalSpacing} ${Do.horizontalSpacing};
|
|
679
679
|
}
|
|
680
680
|
|
|
681
681
|
.ft-text-field--prefix {
|
|
682
|
-
color: ${
|
|
682
|
+
color: ${Do.prefixColor};
|
|
683
683
|
margin-right: 2px;
|
|
684
684
|
flex-shrink: 1;
|
|
685
685
|
overflow: hidden;
|
|
@@ -698,15 +698,15 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
698
698
|
flex-shrink: 1;
|
|
699
699
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
700
700
|
|
|
701
|
-
color: ${
|
|
702
|
-
padding: calc(2 * ${
|
|
701
|
+
color: ${Do.colorOnSurface};
|
|
702
|
+
padding: calc(2 * ${Do.verticalSpacing}) 0;
|
|
703
703
|
border: none;
|
|
704
704
|
background: none;
|
|
705
705
|
}
|
|
706
706
|
|
|
707
707
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
708
708
|
padding-bottom: 0;
|
|
709
|
-
padding-top: calc(${
|
|
709
|
+
padding-top: calc(${Do.labelSize} + 2 * ${Do.verticalSpacing});
|
|
710
710
|
}
|
|
711
711
|
|
|
712
712
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -715,37 +715,37 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
715
715
|
}
|
|
716
716
|
|
|
717
717
|
.ft-text-field--disabled .ft-text-field--input {
|
|
718
|
-
color: ${
|
|
718
|
+
color: ${Do.colorOnSurfaceDisabled};
|
|
719
719
|
}
|
|
720
720
|
|
|
721
721
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
722
|
-
${o.setVariable(
|
|
723
|
-
${o.setVariable(
|
|
722
|
+
${o.setVariable(co.borderColor,Do.colorPrimary)};
|
|
723
|
+
${o.setVariable(co.textColor,Do.colorPrimary)};
|
|
724
724
|
}
|
|
725
725
|
|
|
726
726
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
727
|
-
border-radius: ${
|
|
727
|
+
border-radius: ${Do.borderRadiusS} ${Do.borderRadiusS} 0 0;
|
|
728
728
|
}
|
|
729
729
|
|
|
730
730
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
731
|
-
border-radius: ${
|
|
731
|
+
border-radius: ${Do.borderRadiusS};
|
|
732
732
|
}
|
|
733
733
|
|
|
734
734
|
.ft-text-field--helper-text {
|
|
735
|
-
padding: 0 12px 0 ${
|
|
736
|
-
color: ${
|
|
735
|
+
padding: 0 12px 0 ${Do.horizontalSpacing};
|
|
736
|
+
color: ${Do.helperColor};
|
|
737
737
|
}
|
|
738
738
|
|
|
739
739
|
.ft-text-field--in-error .ft-text-field--input,
|
|
740
740
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
741
741
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
742
|
-
color: ${
|
|
742
|
+
color: ${Do.colorError};
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
.ft-text-field--icon {
|
|
746
746
|
align-self: center;
|
|
747
747
|
margin-left: 8px;
|
|
748
|
-
color: ${
|
|
748
|
+
color: ${Do.iconColor};
|
|
749
749
|
}
|
|
750
750
|
|
|
751
751
|
.ft-text-field--container {
|
|
@@ -758,13 +758,13 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
758
758
|
position: absolute;
|
|
759
759
|
left: 0;
|
|
760
760
|
right: 0;
|
|
761
|
-
z-index: ${
|
|
762
|
-
background: ${
|
|
763
|
-
border: 1px solid ${
|
|
764
|
-
border-radius: 0 0 ${
|
|
765
|
-
box-shadow: ${
|
|
761
|
+
z-index: ${Do.floatingZIndex};
|
|
762
|
+
background: ${Do.colorSurface};
|
|
763
|
+
border: 1px solid ${Do.colorOutline};
|
|
764
|
+
border-radius: 0 0 ${Do.borderRadiusS} ${Do.borderRadiusS};
|
|
765
|
+
box-shadow: ${Do.elevation02};
|
|
766
766
|
outline: none;
|
|
767
|
-
max-height: ${
|
|
767
|
+
max-height: ${Do.suggestSize};
|
|
768
768
|
overflow-y: auto;
|
|
769
769
|
}
|
|
770
770
|
|
|
@@ -781,13 +781,13 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
.ft-text-field--with-icon {
|
|
784
|
-
${o.setVariable(
|
|
784
|
+
${o.setVariable(co.labelMaxWidth,`calc(100% - ${Io.size} - ${co.horizontalSpacing})`)};
|
|
785
785
|
}
|
|
786
786
|
|
|
787
787
|
.ft-text-field--with-password ft-icon:hover {
|
|
788
788
|
cursor: pointer;
|
|
789
789
|
}
|
|
790
|
-
`;var
|
|
790
|
+
`;var Bo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ao extends(o.toFtFormComponent(o.FtLitElement,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=No.EYE_SLASH,this.passwordRevealedIcon=No.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const o=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",o)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return e.html`
|
|
791
791
|
<div class="${n.classMap(t)}">
|
|
792
792
|
<div class="ft-text-field--main-panel"
|
|
793
793
|
@keydown=${this.handleKeyboardNavigation}
|
|
@@ -807,7 +807,7 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
807
807
|
</ft-typography>
|
|
808
808
|
`:e.nothing}
|
|
809
809
|
<input type=${this.password&&this.hidePassword?"password":"text"}
|
|
810
|
-
maxlength=${(t=>
|
|
810
|
+
maxlength=${(t=>t??k)(this.maxLength||void 0)}
|
|
811
811
|
aria-label="${this.label}"
|
|
812
812
|
class="ft-typography--body1 ft-text-field--input"
|
|
813
813
|
?disabled=${this.disabled}
|
|
@@ -838,7 +838,7 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
838
838
|
.variant=${this.iconVariant}
|
|
839
839
|
.value=${this.icon}
|
|
840
840
|
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
841
|
-
`:e.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var o,e;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(o=this.input)||void 0===o?void 0:o.getBoundingClientRect(),i=null===(e=this.suggestionsContainer)||void 0===e?void 0:e.getBoundingClientRect();t&&i&&(this.suggestionsOnTop=t.bottom+i.height>window.innerHeight&&t.top-i.height>0)}}setValue(t,o=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),o&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var o;const e=(null===(o=this.input)||void 0===o?void 0:o.value)||"";this.setValue(e,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var o;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const e=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?e<this.visibleSuggestions.length-1?e+1:0:e>0?e-1:this.visibleSuggestions.length-1,null===(o=this.visibleSuggestions[i])||void 0===o||o.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var o;this.setValue(t.detail,!0),null===(o=this.input)||void 0===o||o.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,o;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(o=this.input)||void 0===o?void 0:o.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}
|
|
841
|
+
`:e.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var o,e;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(o=this.input)||void 0===o?void 0:o.getBoundingClientRect(),i=null===(e=this.suggestionsContainer)||void 0===e?void 0:e.getBoundingClientRect();t&&i&&(this.suggestionsOnTop=t.bottom+i.height>window.innerHeight&&t.top-i.height>0)}}setValue(t,o=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),o&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var o;const e=(null===(o=this.input)||void 0===o?void 0:o.value)||"";this.setValue(e,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var o;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const e=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?e<this.visibleSuggestions.length-1?e+1:0:e>0?e-1:this.visibleSuggestions.length-1,null===(o=this.visibleSuggestions[i])||void 0===o||o.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var o;this.setValue(t.detail,!0),null===(o=this.input)||void 0===o||o.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,o;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(o=this.input)||void 0===o?void 0:o.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Ao.elementDefinitions={"ft-input-label":ho,"ft-ripple":Co,"ft-typography":so,"ft-icon":Uo},Ao.styles=[Qt,Fo],Bo([i.property()],Ao.prototype,"label",void 0),Bo([i.property({noAccessor:!0})],Ao.prototype,"value",null),Bo([i.state()],Ao.prototype,"dispatchedValue",void 0),Bo([i.property()],Ao.prototype,"helper",void 0),Bo([i.property({type:Boolean})],Ao.prototype,"outlined",void 0),Bo([i.property({type:Boolean})],Ao.prototype,"disabled",void 0),Bo([i.property({type:Boolean})],Ao.prototype,"error",void 0),Bo([i.property()],Ao.prototype,"prefix",void 0),Bo([i.property()],Ao.prototype,"icon",void 0),Bo([i.property()],Ao.prototype,"passwordHiddenIcon",void 0),Bo([i.property()],Ao.prototype,"passwordRevealedIcon",void 0),Bo([i.property()],Ao.prototype,"iconVariant",void 0),Bo([i.property({type:Boolean})],Ao.prototype,"filterSuggestions",void 0),Bo([i.property({type:Number})],Ao.prototype,"maxLength",void 0),Bo([i.property({type:Boolean})],Ao.prototype,"password",void 0),Bo([i.state()],Ao.prototype,"focused",void 0),Bo([i.state()],Ao.prototype,"hidePassword",void 0),Bo([i.state()],Ao.prototype,"suggestionsOnTop",void 0),Bo([i.state()],Ao.prototype,"hideSuggestions",void 0),Bo([i.state()],Ao.prototype,"visibleSuggestions",void 0),Bo([i.query(".ft-text-field--main-panel")],Ao.prototype,"mainPanel",void 0),Bo([i.query(".ft-text-field--input")],Ao.prototype,"input",void 0),Bo([i.query(".ft-text-field--suggestions")],Ao.prototype,"suggestionsContainer",void 0),Bo([i.queryAssignedElements({selector:"ft-text-field-suggestion"})],Ao.prototype,"suggestions",void 0);const Ho=e.css`
|
|
842
842
|
.ft-text-field-suggestion {
|
|
843
843
|
position: relative;
|
|
844
844
|
padding: 8px 16px;
|
|
@@ -863,7 +863,7 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
863
863
|
slot {
|
|
864
864
|
pointer-events: none;
|
|
865
865
|
}
|
|
866
|
-
`;var
|
|
866
|
+
`;var Go=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class jo extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Po extends o.FtLitElement{render(){return e.html`
|
|
867
867
|
<div class="ft-text-field-suggestion"
|
|
868
868
|
tabindex="-1"
|
|
869
869
|
@keydown=${this.onKeyDown}
|
|
@@ -875,7 +875,7 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
875
875
|
<slot></slot>
|
|
876
876
|
</ft-typography>
|
|
877
877
|
</div>
|
|
878
|
-
`}focus(t){var o;null===(o=this.container)||void 0===o||o.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new
|
|
878
|
+
`}focus(t){var o;null===(o=this.container)||void 0===o||o.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new jo(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Po.elementDefinitions={"ft-ripple":Co,"ft-typography":so,"ft-icon":Uo},Po.styles=Ho,Go([i.property()],Po.prototype,"value",void 0),Go([i.query(".ft-text-field-suggestion")],Po.prototype,"container",void 0),Go([i.queryAssignedNodes()],Po.prototype,"assignedNodes",void 0),o.customElement("ft-text-field")(Ao),o.customElement("ft-text-field-suggestion")(Po);const Mo={color:o.FtCssVariableFactory.extend("--ft-loader-color","",o.designSystemVariables.colorPrimary),size:o.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},To=e.css`
|
|
879
879
|
:host {
|
|
880
880
|
line-height: 0;
|
|
881
881
|
}
|
|
@@ -884,8 +884,8 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
884
884
|
display: inline-block;
|
|
885
885
|
position: relative;
|
|
886
886
|
|
|
887
|
-
width: ${
|
|
888
|
-
height: ${
|
|
887
|
+
width: ${Mo.size};
|
|
888
|
+
height: ${Mo.size};
|
|
889
889
|
}
|
|
890
890
|
|
|
891
891
|
.ft-loader div {
|
|
@@ -894,7 +894,7 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
894
894
|
width: 25%;
|
|
895
895
|
height: 25%;
|
|
896
896
|
border-radius: 50%;
|
|
897
|
-
background: ${
|
|
897
|
+
background: ${Mo.color};
|
|
898
898
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
899
899
|
}
|
|
900
900
|
|
|
@@ -941,10 +941,10 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
941
941
|
transform: translate(0, 0);
|
|
942
942
|
}
|
|
943
943
|
100% {
|
|
944
|
-
transform: translate(calc(0.35 * ${
|
|
944
|
+
transform: translate(calc(0.35 * ${Mo.size}), 0);
|
|
945
945
|
}
|
|
946
946
|
}
|
|
947
|
-
`,
|
|
947
|
+
`,_o=o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorPrimary),Vo={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorSurface),borderRadius:o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusL),color:_o,fontSize:o.FtCssVariableFactory.extend("--ft-button-font-size","",Vt.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.FtCssVariableFactory.extend("--ft-button-ripple-color","",_o),verticalPadding:o.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},Yo=o.FtCssVariableFactory.extend("--ft-button-primary-color","",o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorOnPrimary)),qo={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-primary-background-color","",o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorPrimary)),color:Yo,rippleColor:o.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Yo)},Xo=o.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusM)),Jo=o.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Qo=o.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),te=o.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),oe=[e.css`
|
|
948
948
|
:host {
|
|
949
949
|
display: inline-block;
|
|
950
950
|
max-width: 100%;
|
|
@@ -955,7 +955,7 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
955
955
|
box-shadow: 0px 0px 0px transparent;
|
|
956
956
|
border: 0px solid transparent;
|
|
957
957
|
text-shadow: 0px 0px 0px transparent;
|
|
958
|
-
font-size: ${
|
|
958
|
+
font-size: ${Vo.fontSize};
|
|
959
959
|
}
|
|
960
960
|
|
|
961
961
|
button:hover {
|
|
@@ -984,31 +984,31 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
984
984
|
border: none;
|
|
985
985
|
pointer-events: auto;
|
|
986
986
|
|
|
987
|
-
--ft-button-internal-line-height: max(calc(${
|
|
988
|
-
--ft-button-internal-color: ${
|
|
989
|
-
${o.setVariable(
|
|
990
|
-
${o.setVariable(
|
|
987
|
+
--ft-button-internal-line-height: max(calc(${Vo.fontSize} + 2px), ${Vo.iconSize});
|
|
988
|
+
--ft-button-internal-color: ${Vo.color};
|
|
989
|
+
${o.setVariable(Io.size,Vo.iconSize)};
|
|
990
|
+
${o.setVariable(yo.color,Vo.rippleColor)};
|
|
991
991
|
|
|
992
|
-
border-radius: ${
|
|
993
|
-
padding: ${
|
|
994
|
-
background-color: ${
|
|
992
|
+
border-radius: ${Vo.borderRadius};
|
|
993
|
+
padding: ${Vo.verticalPadding} ${Vo.horizontalPadding};
|
|
994
|
+
background-color: ${Vo.backgroundColor};
|
|
995
995
|
color: var(--ft-button-internal-color);
|
|
996
996
|
-webkit-mask-image: radial-gradient(white, black);
|
|
997
997
|
}
|
|
998
998
|
|
|
999
999
|
.ft-button.ft-button--outlined {
|
|
1000
1000
|
border: 1px solid var(--ft-button-internal-color);
|
|
1001
|
-
padding: calc(${
|
|
1001
|
+
padding: calc(${Vo.verticalPadding} - 1px) calc(${Vo.horizontalPadding} - 1px);
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
1004
|
.ft-button.ft-button--dense {
|
|
1005
|
-
padding: ${
|
|
1006
|
-
border-radius: ${
|
|
1007
|
-
gap: ${
|
|
1005
|
+
padding: ${Jo} ${Qo};
|
|
1006
|
+
border-radius: ${Xo};
|
|
1007
|
+
gap: ${te};
|
|
1008
1008
|
}
|
|
1009
1009
|
|
|
1010
1010
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
1011
|
-
padding: calc(${
|
|
1011
|
+
padding: calc(${Jo} - 1px) calc(${Qo} - 1px);
|
|
1012
1012
|
}
|
|
1013
1013
|
|
|
1014
1014
|
.ft-button:not([disabled]):hover {
|
|
@@ -1016,22 +1016,22 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
1016
1016
|
}
|
|
1017
1017
|
|
|
1018
1018
|
.ft-button--round {
|
|
1019
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
1019
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Vo.verticalPadding});
|
|
1020
1020
|
}
|
|
1021
1021
|
|
|
1022
1022
|
.ft-button--round.ft-button--dense {
|
|
1023
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
1023
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Jo});
|
|
1024
1024
|
}
|
|
1025
1025
|
|
|
1026
1026
|
.ft-button[disabled] {
|
|
1027
1027
|
filter: grayscale(1);
|
|
1028
|
-
opacity: ${
|
|
1028
|
+
opacity: ${Vo.opacityDisabled};
|
|
1029
1029
|
}
|
|
1030
1030
|
|
|
1031
1031
|
.ft-button.ft-button--primary {
|
|
1032
|
-
background-color: ${
|
|
1033
|
-
--ft-button-internal-color: ${
|
|
1034
|
-
${o.setVariable(
|
|
1032
|
+
background-color: ${qo.backgroundColor};
|
|
1033
|
+
--ft-button-internal-color: ${qo.color};
|
|
1034
|
+
${o.setVariable(yo.color,qo.rippleColor)};
|
|
1035
1035
|
}
|
|
1036
1036
|
|
|
1037
1037
|
.ft-button:focus {
|
|
@@ -1044,13 +1044,13 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
1044
1044
|
white-space: nowrap;
|
|
1045
1045
|
text-overflow: ellipsis;
|
|
1046
1046
|
display: block;
|
|
1047
|
-
margin: 0 ${
|
|
1048
|
-
${o.setVariable(
|
|
1049
|
-
${o.setVariable(
|
|
1047
|
+
margin: 0 ${Vo.iconPadding};
|
|
1048
|
+
${o.setVariable(Vt.fontSize,"1em")};
|
|
1049
|
+
${o.setVariable(Vt.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
1050
1050
|
}
|
|
1051
1051
|
|
|
1052
1052
|
.ft-button--dense .ft-button--label {
|
|
1053
|
-
margin: 0 ${
|
|
1053
|
+
margin: 0 ${te};
|
|
1054
1054
|
}
|
|
1055
1055
|
|
|
1056
1056
|
.ft-button--label[hidden] {
|
|
@@ -1063,13 +1063,13 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
1063
1063
|
}
|
|
1064
1064
|
|
|
1065
1065
|
.ft-button--label[hidden] + ft-icon {
|
|
1066
|
-
margin: 0 calc(${
|
|
1067
|
-
padding: 0 ${
|
|
1066
|
+
margin: 0 calc(${Vo.horizontalPadding} * -1);
|
|
1067
|
+
padding: 0 ${Vo.verticalPadding};
|
|
1068
1068
|
}
|
|
1069
1069
|
|
|
1070
1070
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
1071
|
-
margin: 0 calc(${
|
|
1072
|
-
padding: 0 ${
|
|
1071
|
+
margin: 0 calc(${Qo} * -1);
|
|
1072
|
+
padding: 0 ${Jo};
|
|
1073
1073
|
}
|
|
1074
1074
|
|
|
1075
1075
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -1078,10 +1078,10 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
1078
1078
|
}
|
|
1079
1079
|
|
|
1080
1080
|
ft-loader {
|
|
1081
|
-
${o.setVariable(
|
|
1082
|
-
${o.setVariable(
|
|
1081
|
+
${o.setVariable(Mo.size,Vo.iconSize)};
|
|
1082
|
+
${o.setVariable(Mo.color,"var(--ft-button-internal-color)")};
|
|
1083
1083
|
}
|
|
1084
|
-
`,o.noTextSelect],
|
|
1084
|
+
`,o.noTextSelect],ee=o.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),ie=o.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),re=o.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),ae=o.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),ne=o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),le=o.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),se=e.css`
|
|
1085
1085
|
.ft-tooltip--container {
|
|
1086
1086
|
display: block;
|
|
1087
1087
|
}
|
|
@@ -1096,21 +1096,21 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
1096
1096
|
box-sizing: border-box;
|
|
1097
1097
|
overflow: hidden;
|
|
1098
1098
|
width: max-content;
|
|
1099
|
-
max-width: ${
|
|
1099
|
+
max-width: ${le};
|
|
1100
1100
|
text-align: center;
|
|
1101
|
-
padding: ${
|
|
1102
|
-
z-index: ${
|
|
1101
|
+
padding: ${ee};
|
|
1102
|
+
z-index: ${ae};
|
|
1103
1103
|
}
|
|
1104
1104
|
|
|
1105
1105
|
.ft-tooltip--content {
|
|
1106
1106
|
padding: 4px 8px;
|
|
1107
|
-
border-radius: ${
|
|
1108
|
-
background-color: ${
|
|
1109
|
-
color: ${
|
|
1107
|
+
border-radius: ${ne};
|
|
1108
|
+
background-color: ${re};
|
|
1109
|
+
color: ${ie};
|
|
1110
1110
|
position: relative;
|
|
1111
1111
|
word-break: break-word;
|
|
1112
1112
|
}
|
|
1113
|
-
`;var
|
|
1113
|
+
`;var ce=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class pe 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`
|
|
1114
1114
|
<div part="container"
|
|
1115
1115
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
1116
1116
|
@mouseenter=${this.onHover}
|
|
@@ -1128,14 +1128,14 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
1128
1128
|
</div>
|
|
1129
1129
|
</div>
|
|
1130
1130
|
</div>
|
|
1131
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=a+"px",l.top=n+"px";const s=this.tooltip.getBoundingClientRect();let c=-s.x,p=s.x+s.width-window.innerWidth;l.left=a+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-s.y,d=s.y+s.height-window.innerHeight;l.top=n+Math.round(this.correctOutOfWindowPixels(f,d))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${
|
|
1131
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=a+"px",l.top=n+"px";const s=this.tooltip.getBoundingClientRect();let c=-s.x,p=s.x+s.width-window.innerWidth;l.left=a+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let f=-s.y,d=s.y+s.height-window.innerHeight;l.top=n+Math.round(this.correctOutOfWindowPixels(f,d))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${le})`}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))}}pe.elementDefinitions={"ft-typography":so},pe.styles=se,ce([i.property()],pe.prototype,"text",void 0),ce([i.property({type:Boolean})],pe.prototype,"manual",void 0),ce([i.property({type:Boolean})],pe.prototype,"inline",void 0),ce([i.property({type:Number})],pe.prototype,"delay",void 0),ce([i.property()],pe.prototype,"position",void 0),ce([i.queryAssignedNodes()],pe.prototype,"slotNodes",void 0),ce([i.query(".ft-tooltip--container")],pe.prototype,"container",void 0),ce([i.query(".ft-tooltip")],pe.prototype,"tooltip",void 0),ce([i.query(".ft-tooltip--content")],pe.prototype,"tooltipContent",void 0),ce([i.state()],pe.prototype,"visible",void 0),o.customElement("ft-tooltip")(pe);class fe extends o.FtLitElement{render(){return e.html`
|
|
1132
1132
|
<div class="ft-loader">
|
|
1133
1133
|
<div></div>
|
|
1134
1134
|
<div></div>
|
|
1135
1135
|
<div></div>
|
|
1136
1136
|
<div></div>
|
|
1137
1137
|
</div>
|
|
1138
|
-
`}}
|
|
1138
|
+
`}}fe.styles=To,o.customElement("ft-loader")(fe);var de=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class he extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
|
|
1139
1139
|
<button part="button"
|
|
1140
1140
|
class="${n.classMap(this.buttonClasses)}"
|
|
1141
1141
|
aria-label="${this.getLabel()}"
|
|
@@ -1158,7 +1158,7 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
1158
1158
|
</ft-tooltip>
|
|
1159
1159
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
1160
1160
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
1161
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
1161
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}he.elementDefinitions={"ft-ripple":Co,"ft-tooltip":pe,"ft-typography":so,"ft-icon":Uo,"ft-loader":fe},de([i.property({type:String,reflect:!0})],he.prototype,"role",void 0),de([i.property()],he.prototype,"type",void 0),de([i.property({type:Boolean})],he.prototype,"disabled",void 0),de([i.property()],he.prototype,"label",void 0),de([i.property()],he.prototype,"icon",void 0),de([i.property()],he.prototype,"iconVariant",void 0),de([i.property({type:Boolean})],he.prototype,"trailingIcon",void 0),de([i.property({type:Boolean})],he.prototype,"loading",void 0),de([i.property()],he.prototype,"tooltipPosition",void 0),de([i.property({type:Boolean})],he.prototype,"hideTooltip",void 0),de([i.property({type:Boolean})],he.prototype,"forceTooltip",void 0),de([i.query(".ft-button")],he.prototype,"button",void 0),de([i.query(".ft-button--label slot")],he.prototype,"slottedContent",void 0);var ge=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ye extends he{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}ye.styles=[o.safariEllipsisFix,oe],ge([i.property({type:Boolean})],ye.prototype,"primary",void 0),ge([i.property({type:Boolean})],ye.prototype,"outlined",void 0),ge([i.property({type:Boolean})],ye.prototype,"dense",void 0),ge([i.property({type:Boolean})],ye.prototype,"round",void 0);const ue=[e.css`
|
|
1162
1162
|
:host {
|
|
1163
1163
|
display: inline-block;
|
|
1164
1164
|
max-width: 100%;
|
|
@@ -1208,7 +1208,7 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
1210
|
.ft-button:focus-visible {
|
|
1211
|
-
outline-color: ${
|
|
1211
|
+
outline-color: ${tt.focusFocusRingColor};
|
|
1212
1212
|
outline-style: solid;
|
|
1213
1213
|
}
|
|
1214
1214
|
|
|
@@ -1237,146 +1237,146 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
1237
1237
|
/** Primary styles **/
|
|
1238
1238
|
|
|
1239
1239
|
.ft-button--primary {
|
|
1240
|
-
${o.setVariable(
|
|
1240
|
+
${o.setVariable(Mo.color,tt.primaryIconColor)};
|
|
1241
1241
|
|
|
1242
|
-
${o.setVariable(
|
|
1243
|
-
${o.setVariable(
|
|
1244
|
-
${o.setVariable(
|
|
1245
|
-
${o.setVariable(
|
|
1246
|
-
${o.setVariable(
|
|
1242
|
+
${o.setVariable(yo.color,tt.primaryStateLayerColor)};
|
|
1243
|
+
${o.setVariable(yo.opacityContentOnSurfaceHover,tt.primaryStateLayerOpacityHover)};
|
|
1244
|
+
${o.setVariable(yo.opacityContentOnSurfaceFocused,tt.primaryStateLayerOpacityFocus)};
|
|
1245
|
+
${o.setVariable(yo.opacityContentOnSurfaceSelected,tt.primaryStateLayerOpacityActive)};
|
|
1246
|
+
${o.setVariable(yo.opacityContentOnSurfacePressed,tt.primaryStateLayerOpacityActive)};
|
|
1247
1247
|
|
|
1248
|
-
background-color: ${
|
|
1249
|
-
color: ${
|
|
1248
|
+
background-color: ${tt.primaryBackgroundColor};
|
|
1249
|
+
color: ${tt.primaryColor};
|
|
1250
1250
|
border-style: none;
|
|
1251
1251
|
}
|
|
1252
1252
|
|
|
1253
1253
|
.ft-button--primary[disabled] {
|
|
1254
|
-
opacity: ${
|
|
1254
|
+
opacity: ${tt.primaryComponentOpacityDisabled};
|
|
1255
1255
|
}
|
|
1256
1256
|
|
|
1257
1257
|
.ft-button--primary ft-icon {
|
|
1258
|
-
color: ${
|
|
1258
|
+
color: ${tt.primaryIconColor};
|
|
1259
1259
|
}
|
|
1260
1260
|
|
|
1261
1261
|
/** Secondary styles **/
|
|
1262
1262
|
|
|
1263
1263
|
.ft-button--secondary {
|
|
1264
|
-
${o.setVariable(
|
|
1264
|
+
${o.setVariable(Mo.color,tt.secondaryIconColor)};
|
|
1265
1265
|
|
|
1266
|
-
${o.setVariable(
|
|
1267
|
-
${o.setVariable(
|
|
1268
|
-
${o.setVariable(
|
|
1269
|
-
${o.setVariable(
|
|
1270
|
-
${o.setVariable(
|
|
1266
|
+
${o.setVariable(yo.color,tt.secondaryStateLayerColor)};
|
|
1267
|
+
${o.setVariable(yo.opacityContentOnSurfaceHover,tt.secondaryStateLayerOpacityHover)};
|
|
1268
|
+
${o.setVariable(yo.opacityContentOnSurfaceFocused,tt.secondaryStateLayerOpacityFocus)};
|
|
1269
|
+
${o.setVariable(yo.opacityContentOnSurfaceSelected,tt.secondaryStateLayerOpacityActive)};
|
|
1270
|
+
${o.setVariable(yo.opacityContentOnSurfacePressed,tt.secondaryStateLayerOpacityActive)};
|
|
1271
1271
|
|
|
1272
|
-
background-color: ${
|
|
1273
|
-
color: ${
|
|
1274
|
-
border-color: ${
|
|
1272
|
+
background-color: ${tt.secondaryBackgroundColor};
|
|
1273
|
+
color: ${tt.secondaryColor};
|
|
1274
|
+
border-color: ${tt.secondaryBorderColor};
|
|
1275
1275
|
border-style: solid;
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
1278
|
.ft-button--secondary[disabled] {
|
|
1279
|
-
opacity: ${
|
|
1279
|
+
opacity: ${tt.secondaryComponentOpacityDisabled};
|
|
1280
1280
|
}
|
|
1281
1281
|
|
|
1282
1282
|
.ft-button--secondary ft-icon {
|
|
1283
|
-
color: ${
|
|
1283
|
+
color: ${tt.secondaryIconColor};
|
|
1284
1284
|
}
|
|
1285
1285
|
|
|
1286
1286
|
/** Tertiary styles **/
|
|
1287
1287
|
|
|
1288
1288
|
.ft-button--tertiary {
|
|
1289
|
-
${o.setVariable(
|
|
1289
|
+
${o.setVariable(Mo.color,tt.tertiaryIconColor)};
|
|
1290
1290
|
|
|
1291
|
-
${o.setVariable(
|
|
1292
|
-
${o.setVariable(
|
|
1293
|
-
${o.setVariable(
|
|
1294
|
-
${o.setVariable(
|
|
1295
|
-
${o.setVariable(
|
|
1291
|
+
${o.setVariable(yo.color,tt.tertiaryStateLayerColor)};
|
|
1292
|
+
${o.setVariable(yo.opacityContentOnSurfaceHover,tt.tertiaryStateLayerOpacityHover)};
|
|
1293
|
+
${o.setVariable(yo.opacityContentOnSurfaceFocused,tt.tertiaryStateLayerOpacityFocus)};
|
|
1294
|
+
${o.setVariable(yo.opacityContentOnSurfaceSelected,tt.tertiaryStateLayerOpacityActive)};
|
|
1295
|
+
${o.setVariable(yo.opacityContentOnSurfacePressed,tt.tertiaryStateLayerOpacityActive)};
|
|
1296
1296
|
|
|
1297
|
-
background-color: ${
|
|
1298
|
-
color: ${
|
|
1297
|
+
background-color: ${tt.tertiaryBackgroundColor};
|
|
1298
|
+
color: ${tt.tertiaryColor};
|
|
1299
1299
|
border-style: none;
|
|
1300
1300
|
}
|
|
1301
1301
|
|
|
1302
1302
|
.ft-button--tertiary[disabled] {
|
|
1303
|
-
opacity: ${
|
|
1303
|
+
opacity: ${tt.tertiaryComponentOpacityDisabled};
|
|
1304
1304
|
}
|
|
1305
1305
|
|
|
1306
1306
|
.ft-button--tertiary ft-icon {
|
|
1307
|
-
color: ${
|
|
1307
|
+
color: ${tt.tertiaryIconColor};
|
|
1308
1308
|
}
|
|
1309
1309
|
|
|
1310
1310
|
/** Neutral styles **/
|
|
1311
1311
|
|
|
1312
1312
|
.ft-button--neutral {
|
|
1313
|
-
${o.setVariable(
|
|
1313
|
+
${o.setVariable(Mo.color,tt.neutralIconColor)};
|
|
1314
1314
|
|
|
1315
|
-
${o.setVariable(
|
|
1316
|
-
${o.setVariable(
|
|
1317
|
-
${o.setVariable(
|
|
1318
|
-
${o.setVariable(
|
|
1319
|
-
${o.setVariable(
|
|
1315
|
+
${o.setVariable(yo.backgroundColor,tt.neutralStateLayerColor)};
|
|
1316
|
+
${o.setVariable(yo.opacityContentOnSurfaceHover,tt.neutralStateLayerOpacityHover)};
|
|
1317
|
+
${o.setVariable(yo.opacityContentOnSurfaceFocused,tt.neutralStateLayerOpacityFocus)};
|
|
1318
|
+
${o.setVariable(yo.opacityContentOnSurfaceSelected,tt.neutralStateLayerOpacityActive)};
|
|
1319
|
+
${o.setVariable(yo.opacityContentOnSurfacePressed,tt.neutralStateLayerOpacityActive)};
|
|
1320
1320
|
|
|
1321
|
-
background-color: ${
|
|
1322
|
-
color: ${
|
|
1321
|
+
background-color: ${tt.neutralBackgroundColor};
|
|
1322
|
+
color: ${tt.neutralColor};
|
|
1323
1323
|
border-style: none;
|
|
1324
1324
|
}
|
|
1325
1325
|
|
|
1326
1326
|
.ft-button--neutral[disabled] {
|
|
1327
|
-
opacity: ${
|
|
1327
|
+
opacity: ${tt.neutralComponentOpacityDisabled};
|
|
1328
1328
|
}
|
|
1329
1329
|
|
|
1330
1330
|
.ft-button--neutral ft-icon {
|
|
1331
|
-
color: ${
|
|
1331
|
+
color: ${tt.neutralIconColor};
|
|
1332
1332
|
}
|
|
1333
1333
|
|
|
1334
1334
|
/** Large styles **/
|
|
1335
1335
|
|
|
1336
1336
|
.ft-button--large {
|
|
1337
|
-
${o.setVariable(
|
|
1338
|
-
${o.setVariable(
|
|
1339
|
-
|
|
1340
|
-
height: ${
|
|
1341
|
-
padding: 0 ${
|
|
1342
|
-
gap: ${
|
|
1343
|
-
border-radius: ${
|
|
1344
|
-
border-width: ${
|
|
1337
|
+
${o.setVariable(Io.size,tt.largeIconSize)};
|
|
1338
|
+
${o.setVariable(Mo.size,tt.largeIconSize)};
|
|
1339
|
+
|
|
1340
|
+
height: ${tt.largeHeight};
|
|
1341
|
+
padding: 0 ${tt.largeHorizontalPadding};
|
|
1342
|
+
gap: ${tt.largeGap};
|
|
1343
|
+
border-radius: ${tt.largeBorderRadius};
|
|
1344
|
+
border-width: ${tt.largeBorderWidth};
|
|
1345
1345
|
}
|
|
1346
1346
|
|
|
1347
1347
|
.ft-button--large:focus-visible {
|
|
1348
|
-
outline-width: ${
|
|
1349
|
-
outline-offset: ${
|
|
1348
|
+
outline-width: ${tt.largeFocusOutlineWidth};
|
|
1349
|
+
outline-offset: ${tt.largeFocusOutlineOffset};
|
|
1350
1350
|
}
|
|
1351
1351
|
|
|
1352
1352
|
.ft-button--large.ft-button--icon-only {
|
|
1353
|
-
width: ${
|
|
1353
|
+
width: ${tt.largeIconOnlyWidth};
|
|
1354
1354
|
padding: unset;
|
|
1355
1355
|
}
|
|
1356
1356
|
|
|
1357
1357
|
/** Small styles **/
|
|
1358
1358
|
|
|
1359
1359
|
.ft-button--small {
|
|
1360
|
-
${o.setVariable(
|
|
1361
|
-
${o.setVariable(
|
|
1362
|
-
|
|
1363
|
-
height: ${
|
|
1364
|
-
padding: 0 ${
|
|
1365
|
-
gap: ${
|
|
1366
|
-
border-radius: ${
|
|
1367
|
-
border-width: ${
|
|
1360
|
+
${o.setVariable(Io.size,tt.smallIconSize)};
|
|
1361
|
+
${o.setVariable(Mo.size,tt.smallIconSize)};
|
|
1362
|
+
|
|
1363
|
+
height: ${tt.smallHeight};
|
|
1364
|
+
padding: 0 ${tt.smallHorizontalPadding};
|
|
1365
|
+
gap: ${tt.smallGap};
|
|
1366
|
+
border-radius: ${tt.smallBorderRadius};
|
|
1367
|
+
border-width: ${tt.smallBorderWidth};
|
|
1368
1368
|
}
|
|
1369
1369
|
|
|
1370
1370
|
.ft-button--small:focus-visible {
|
|
1371
|
-
outline-width: ${
|
|
1372
|
-
outline-offset: ${
|
|
1371
|
+
outline-width: ${tt.smallFocusOutlineWidth};
|
|
1372
|
+
outline-offset: ${tt.smallFocusOutlineOffset};
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
1375
1375
|
.ft-button--small.ft-button--icon-only {
|
|
1376
|
-
width: ${
|
|
1376
|
+
width: ${tt.smallIconOnlyWidth};
|
|
1377
1377
|
padding: unset;
|
|
1378
1378
|
}
|
|
1379
|
-
`,o.noTextSelect];var
|
|
1379
|
+
`,o.noTextSelect];var be=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class me extends he{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?V.caption1medium:V.body2medium}}me.styles=[o.safariEllipsisFix,ue],be([i.property({type:Boolean})],me.prototype,"primary",void 0),be([i.property({type:Boolean})],me.prototype,"secondary",void 0),be([i.property({type:Boolean})],me.prototype,"tertiary",void 0),be([i.property({type:Boolean})],me.prototype,"neutral",void 0),be([i.property({type:Boolean})],me.prototype,"small",void 0),o.customElement("ft-button")(ye),o.customElement("ftds-button")(me);class xe extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const ve={headerBackground:o.FtCssVariableFactory.create("--ft-filterable-table-header-background","","COLOR","whitesmoke"),oddRowBackground:o.FtCssVariableFactory.create("--ft-filterable-table-odd-row-background","","COLOR","#FFFFFF"),evenRowBackground:o.FtCssVariableFactory.create("--ft-filterable-table-even-row-background","","COLOR","#fdfdfd"),rowHoverBackground:o.FtCssVariableFactory.create("--ft-filterable-table-row-hover-background","","COLOR","#fafafa"),stickyHeaderZIndex:o.FtCssVariableFactory.create("--ft-filterable-table-sticky-header-zindex","","NUMBER","100"),cellVerticalBorderWidth:o.FtCssVariableFactory.create("--ft-filterable-table-cell-vertical-border-width","","SIZE","1px"),colorOnSurfaceHigh:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceHigh,"Design system"),titleFont:o.FtCssVariableFactory.external(o.designSystemVariables.titleFont,"Design system"),contentFont:o.FtCssVariableFactory.external(o.designSystemVariables.contentFont,"Design system")},Oe=e.css`
|
|
1380
1380
|
:host {
|
|
1381
1381
|
display: block;
|
|
1382
1382
|
}
|
|
@@ -1392,15 +1392,15 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
1392
1392
|
.header-cell {
|
|
1393
1393
|
display: flex;
|
|
1394
1394
|
flex-direction: column;
|
|
1395
|
-
background: ${
|
|
1396
|
-
color: ${
|
|
1395
|
+
background: ${ve.headerBackground};
|
|
1396
|
+
color: ${ve.colorOnSurfaceHigh};
|
|
1397
1397
|
padding: .5rem 1rem;
|
|
1398
|
-
font-family: ${
|
|
1398
|
+
font-family: ${ve.titleFont};
|
|
1399
1399
|
}
|
|
1400
1400
|
|
|
1401
1401
|
.header-cell--sticky {
|
|
1402
1402
|
top: 0;
|
|
1403
|
-
z-index: ${
|
|
1403
|
+
z-index: ${ve.stickyHeaderZIndex};
|
|
1404
1404
|
position: sticky;
|
|
1405
1405
|
}
|
|
1406
1406
|
|
|
@@ -1418,8 +1418,8 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
1418
1418
|
}
|
|
1419
1419
|
|
|
1420
1420
|
.column-title-container ft-button {
|
|
1421
|
-
${o.setVariable(
|
|
1422
|
-
${o.setVariable(
|
|
1421
|
+
${o.setVariable(Vo.backgroundColor,ve.headerBackground)};
|
|
1422
|
+
${o.setVariable(Vo.color,ve.colorOnSurfaceHigh)};
|
|
1423
1423
|
}
|
|
1424
1424
|
|
|
1425
1425
|
.column-title {
|
|
@@ -1448,31 +1448,31 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
1448
1448
|
|
|
1449
1449
|
.cell {
|
|
1450
1450
|
padding: 1rem;
|
|
1451
|
-
border-left-color: ${
|
|
1451
|
+
border-left-color: ${ve.headerBackground};
|
|
1452
1452
|
border-left-style: solid;
|
|
1453
|
-
border-left-width: ${
|
|
1454
|
-
border-bottom: 1px solid ${
|
|
1453
|
+
border-left-width: ${ve.cellVerticalBorderWidth};
|
|
1454
|
+
border-bottom: 1px solid ${ve.headerBackground};
|
|
1455
1455
|
overflow-x: auto;
|
|
1456
1456
|
display: flex;
|
|
1457
1457
|
align-items: center;
|
|
1458
|
-
font-family: ${
|
|
1458
|
+
font-family: ${ve.contentFont};
|
|
1459
1459
|
}
|
|
1460
1460
|
|
|
1461
1461
|
/* Even is 2n+1 and odd is 2n because of the header */
|
|
1462
1462
|
.row:nth-child(2n) > .cell {
|
|
1463
|
-
background: ${
|
|
1463
|
+
background: ${ve.oddRowBackground};
|
|
1464
1464
|
}
|
|
1465
1465
|
|
|
1466
1466
|
.row:nth-child(2n + 1) > .cell {
|
|
1467
|
-
background: ${
|
|
1467
|
+
background: ${ve.evenRowBackground};
|
|
1468
1468
|
}
|
|
1469
1469
|
|
|
1470
1470
|
.row:hover > .cell {
|
|
1471
|
-
background: ${
|
|
1471
|
+
background: ${ve.rowHoverBackground};
|
|
1472
1472
|
}
|
|
1473
1473
|
|
|
1474
1474
|
.cell:last-of-type {
|
|
1475
|
-
border-right: 1px solid ${
|
|
1475
|
+
border-right: 1px solid ${ve.headerBackground};
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
1478
|
.row:last-of-type .cell:first-of-type {
|
|
@@ -1486,7 +1486,7 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
1486
1486
|
.hidden {
|
|
1487
1487
|
visibility: hidden;
|
|
1488
1488
|
}
|
|
1489
|
-
`;var
|
|
1489
|
+
`;var $e=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Ne=t=>e.html`${t}`,Se=(t,o)=>t-o;class we extends o.FtLitElement{constructor(){super(...arguments),this.data=[],this.columns=[],this.stickyHeaders=!1,this.filters=[],this.selectData=[]}init(t,o,e){this.data=t,this.columns=o,this.sort=e}render(){let t=this.sortData(this.filterData());return e.html`
|
|
1490
1490
|
<style>
|
|
1491
1491
|
.table {
|
|
1492
1492
|
grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
|
|
@@ -1498,12 +1498,12 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
1498
1498
|
</div>
|
|
1499
1499
|
${r.repeat(t,((t,o)=>"row-"+o),((t,o)=>e.html`
|
|
1500
1500
|
<div class="row"
|
|
1501
|
-
@click=${()=>this.dispatchEvent(new
|
|
1501
|
+
@click=${()=>this.dispatchEvent(new xe(t))}>
|
|
1502
1502
|
${r.repeat(this.columns,((t,e)=>"cell-"+e+"-"+o),((e,i)=>this.renderCell(e,i,t,o)))}
|
|
1503
1503
|
</div>
|
|
1504
1504
|
`))}
|
|
1505
1505
|
</div>
|
|
1506
|
-
`}filterData(){return this.filters.reduce(((t,o,e)=>{var i;const r=this.columns[e];if(o&&o.value)switch(null!==(i=r.filter)&&void 0!==i?i:"text"){case"text":return t.filter((t=>this.getValueAsString(r,t,e).toLowerCase().includes(o.value.toLowerCase())));case"select":return t.filter((t=>this.getValueAsString(r,t,e)===o.value))}return t}),this.data)}sortData(t){var o;if(this.currentSort){const e=this.columns[this.currentSort.column],i=null!==(o=e.comparator)&&void 0!==o?o:
|
|
1506
|
+
`}filterData(){return this.filters.reduce(((t,o,e)=>{var i;const r=this.columns[e];if(o&&o.value)switch(null!==(i=r.filter)&&void 0!==i?i:"text"){case"text":return t.filter((t=>this.getValueAsString(r,t,e).toLowerCase().includes(o.value.toLowerCase())));case"select":return t.filter((t=>this.getValueAsString(r,t,e)===o.value))}return t}),this.data)}sortData(t){var o;if(this.currentSort){const e=this.columns[this.currentSort.column],i=null!==(o=e.comparator)&&void 0!==o?o:Se,r="asc"===this.currentSort.order?i:(t,o)=>-i(t,o);return[...t].sort(((t,o)=>r(this.getValue(e,t),this.getValue(e,o))))}return t}update(t){super.update(t),t.has("sort")&&(this.currentSort=this.sort),(t.has("data")||t.has("columns"))&&this.updateSelectData()}updateSelectData(){this.selectData=[];const t=this.data,o=this.columns;for(let e in o){const i=o[e];"select"===i.filter&&(this.selectData[e]=[...new Set(t.map(((t,o)=>this.getValueAsString(i,t,o))))].sort(((t,o)=>t.localeCompare(o))))}this.requestUpdate()}renderHeader(t,o){const i={"header-cell":!0,"header-cell--sticky":this.stickyHeaders};return e.html`
|
|
1507
1507
|
<div class="${n.classMap(i)}"
|
|
1508
1508
|
part="${this.columnPart("header-cell",o)}">
|
|
1509
1509
|
<div class="column-title-container">
|
|
@@ -1545,9 +1545,9 @@ const Fo={fontSize:o.FtCssVariableFactory.create("--ft-text-field-font-size","",
|
|
|
1545
1545
|
`))}
|
|
1546
1546
|
</ft-select>
|
|
1547
1547
|
</div>
|
|
1548
|
-
`:e.nothing}return e.nothing}columnPart(t,o){return`${t} ${t}-column-${o}`}renderCell(t,o,i,r){var n;const l=null!==(n=t.render)&&void 0!==n?n:
|
|
1548
|
+
`:e.nothing}return e.nothing}columnPart(t,o){return`${t} ${t}-column-${o}`}renderCell(t,o,i,r){var n;const l=null!==(n=t.render)&&void 0!==n?n:Ne;return e.html`
|
|
1549
1549
|
<div class="cell"
|
|
1550
1550
|
part="${this.columnPart("cell",o)} cell-row-${r} cell-column-${o}-row-${r}">
|
|
1551
1551
|
${(t=>{const o=l(t,r);return"string"==typeof o?a.unsafeHTML(o):o})(this.getValue(t,i))}
|
|
1552
1552
|
</div>
|
|
1553
|
-
`}getValue(t,o){return"string"==typeof t.getter?o[t.getter]:t.getter(o)}getValueAsString(t,o,e){const i=this.getValue(t,o);return"function"==typeof t.stringify?t.stringify(i,e):(t=>""+t)(i)}}
|
|
1553
|
+
`}getValue(t,o){return"string"==typeof t.getter?o[t.getter]:t.getter(o)}getValueAsString(t,o,e){const i=this.getValue(t,o);return"function"==typeof t.stringify?t.stringify(i,e):(t=>""+t)(i)}}we.styles=Oe,$e([i.property({attribute:!1})],we.prototype,"data",void 0),$e([i.property({attribute:!1})],we.prototype,"columns",void 0),$e([i.property({attribute:!1})],we.prototype,"sort",void 0),$e([i.property()],we.prototype,"stickyHeaders",void 0),$e([i.state()],we.prototype,"currentSort",void 0),o.customElement("ft-filterable-table")(we),t.FtFilterableTable=we,t.FtFilterableTableCssVariables=ve,t.RowClickEvent=xe,t.styles=Oe}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);
|