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