@fluid-topics/ft-search-selected-facets 1.1.0 → 1.1.1
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.
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
`,c={setRequest:(t,e)=>{t.request=e.payload},setRequestQuery:(t,e)=>{t.request.query=e.payload},setRequestContentLocale:(t,e)=>{t.request.contentLocale=e.payload},setPageSize:(t,e)=>{t.request.paging.perPage=e.payload},setPageNumber:(t,e)=>{t.request.paging.page=e.payload},setRequestSort:(t,e)=>{t.request.sort=e.payload},setRequestFilters:(t,e)=>{t.request.filters=e.payload},setRequestFacets:(t,e)=>{t.request.facets=e.payload},setRequestVirtualField:(t,e)=>{t.request.virtualField=e.payload},setRequestScope:(t,e)=>{t.request.scope=e.payload},setResults:(t,e)=>{t.results=e.payload},setFacets:(t,e)=>{t.facets=e.payload},setSpellcheck:(t,e)=>{t.spellcheck=e.payload},setLocales:(t,e)=>{t.locales=e.payload},setPaging:(t,e)=>{t.paging=e.payload},setLiveQuery:(t,e)=>{t.liveQuery=e.payload},setSuggestResults:(t,e)=>{t.suggestResults=e.payload}};var h,p,f,d,u,g,y,b,m,v,x,O,S,N;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function p(t){var e=new FileReader,o=h(e);return e.readAsArrayBuffer(t),o}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,e,o,i=c(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,o=h(e),e.readAsText(t),o;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,i,r=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),u.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},d.call(g.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var a=new g(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=g,t.Response=b),e.Headers=l,e.Request=g,e.Response=b,e.fetch=v,Object.defineProperty(e,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(h||(h={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(p||(p={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(f||(f={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(d||(d={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(u||(u={})),function(t){t.ASC="ASC",t.DESC="DESC"}(g||(g={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(y||(y={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(b||(b={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(m||(m={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(v||(v={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(x||(x={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(O||(O={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(S||(S={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(N||(N={})),N.PERSONAL_BOOK_SHARE_USER,N.PERSONAL_BOOK_USER,N.HTML_EXPORT_USER,N.PERSONAL_BOOK_USER,N.PDF_EXPORT_USER,N.PERSONAL_BOOK_USER,N.KHUB_ADMIN,N.CONTENT_PUBLISHER,N.ADMIN,N.KHUB_ADMIN,N.USERS_ADMIN,N.PORTAL_ADMIN,N.DEVELOPER,N.BETA_USER,N.DEBUG_USER;const $=o.css`
|
|
8
8
|
`,w=e.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class C{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=w.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?C.build(t):null!==(e=C.API)&&void 0!==e?e:C.API=C.build()}static await(t){return new Promise((e=>{let o=C.get(t);if(o)e(o);else{const i=w.subscribe((()=>{o=C.get(t),o&&(i(),e(o))}))}}))}}var k;const I=Symbol("clearAfterUnitTest");class E{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={},this.currentUiLocale="",this[k]=()=>{this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={}},this.currentUiLocale=w.getState().uiLocale,w.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=w.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var i;if(t=t.toLowerCase(),Object.keys(o).length>0){const r={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...o};e.deepEqual(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,o,...i){var r,n,a;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(n=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==n?n:{};return new e.ParametrizedLabelResolver(null!==(a=this.defaultMessages[t])&&void 0!==a?a:{},s).resolve(o,...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,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}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=>e.delay(0).then((()=>t())).catch((()=>null)))))}}k=I,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new E((async(t,e)=>(await C.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new E((async(t,e)=>(await C.await()).getCustomMessageContext(t,e))));const R=window.FluidTopicsI18nService,U=window.FluidTopicsCustomI18nService;var L=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class W extends e.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=()=>C.get(),this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return o.html`
|
|
9
9
|
<slot></slot>
|
|
10
|
-
`}update(t){super.update(t),t.has("baseUrl")&&w.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&w.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&w.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&w.actions.setNoCustom(this.noCustom),t.has("editorMode")&&w.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&w.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&w.actions.setSession(this.session),t.has("availableUiLocales")&&w.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>R.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 e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}W.elementDefinitions={},W.styles=$,L([r.property()],W.prototype,"baseUrl",void 0),L([r.property()],W.prototype,"apiIntegrationIdentifier",void 0),L([r.property()],W.prototype,"uiLocale",void 0),L([e.jsonProperty([])],W.prototype,"availableUiLocales",void 0),L([r.property({type:Boolean})],W.prototype,"editorMode",void 0),L([r.property({type:Boolean})],W.prototype,"noCustom",void 0),L([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],W.prototype,"noCustomComponent",void 0),L([r.property({type:Boolean})],W.prototype,"withManualResources",void 0),L([e.jsonProperty([])],W.prototype,"messageContexts",void 0),L([e.jsonProperty(void 0)],W.prototype,"session",void 0),L([r.property({type:Object})],W.prototype,"apiProvider",void 0);class z{async listMySearches(){var t;return(null===(t=w.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await C.await()).listMySearches(w.getState().session.profile.userId):[]}}const B=new e.CacheRegistry;class K{async listMyBookmarks(){return B.get("bookmarks",(async()=>(await C.await()).listMyBookmarks(w.getState().session.profile.userId)))}clearCache(){B.clear("bookmarks")}}const D=e.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const A=new class{constructor(){this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new K,w.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=w.getState();e.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){D.actions.savedSearches(void 0)}clearMyBookmarks(){D.actions.bookmarks(void 0)}async reloadMySearches(){const t=new z,e=await t.listMySearches();D.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;D.actions.bookmarks(e)}}};e.customElement("ft-app-context")(W);class Z{static async build(){return new Z(await C.await())}constructor(t){this.api=t,this.cache=new e.CacheRegistry,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const F=t=>t.request.virtualField===b.TITLE_ONLY&&t.request.scope===S.DOCUMENTS;class T extends Event{constructor(){super(T.eventName)}}T.eventName="search-context-clear-all-filters";class H{static build(t){return new H((t=>e.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:c}))(t.trim()||"context"),Z.build)}constructor(t,o){this.store=t,this.serviceProvider=o,this.searchDebouncer=new e.Debouncer(100),this.suggestDebouncer=new e.Debouncer(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await e.delay(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const i=t=>e.some((e=>e.lang==t));i(t)||(t=i(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(b.TITLE_ONLY),this.store.actions.setRequestScope(S.DOCUMENTS)):(this.store.actions.setRequestVirtualField(b.EVERYWHERE),this.store.actions.setRequestScope(S.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return F(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new T)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,i={key:t,values:e,negative:!1},r=[...o.filter((e=>e.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel(),this.cancelableSearch=e.cancelable(this.service.launchSearch(this.store.getState().request));const i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.setResults(i.results),this.store.actions.setFacets(i.facets),this.store.actions.setSpellcheck(i.spellcheck);else{let t=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(i.results);this.store.actions.setResults(t)}this.store.actions.setPaging(i.paging)}catch(t){t instanceof e.CanceledPromiseError||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const o=this.store.getState(),i=o.request,r={input:o.liveQuery,filters:i.filters,sort:i.sort,contentLocale:i.contentLocale,scope:i.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=e.cancelable(this.service.launchSuggest(r));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e.CanceledPromiseError||!this.errorHandler||this.errorHandler(t)}}}var P=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class j extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const M=Symbol("registerInterval");class _ extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=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[M]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[M]):this.dispatchEvent(new j)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=M,P([r.state()],o.prototype,"stateManager",void 0),o}(e.FtLitElementRedux)){}const G=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorContent),V={color:G,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color","",G),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},q=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorPrimary),Y=q,X=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",q),Q=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorSecondary),J=Q,tt=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",Q),et=o.css`
|
|
10
|
+
`}update(t){super.update(t),t.has("baseUrl")&&w.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&w.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&w.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&w.actions.setNoCustom(this.noCustom),t.has("editorMode")&&w.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&w.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&w.actions.setSession(this.session),t.has("availableUiLocales")&&w.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>R.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 e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}W.elementDefinitions={},W.styles=$,L([r.property()],W.prototype,"baseUrl",void 0),L([r.property()],W.prototype,"apiIntegrationIdentifier",void 0),L([r.property()],W.prototype,"uiLocale",void 0),L([e.jsonProperty([])],W.prototype,"availableUiLocales",void 0),L([r.property({type:Boolean})],W.prototype,"editorMode",void 0),L([r.property({type:Boolean})],W.prototype,"noCustom",void 0),L([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],W.prototype,"noCustomComponent",void 0),L([r.property({type:Boolean})],W.prototype,"withManualResources",void 0),L([e.jsonProperty([])],W.prototype,"messageContexts",void 0),L([e.jsonProperty(void 0)],W.prototype,"session",void 0),L([r.property({type:Object})],W.prototype,"apiProvider",void 0);class z{async listMySearches(){var t;return(null===(t=w.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await C.await()).listMySearches(w.getState().session.profile.userId):[]}}const B=new e.CacheRegistry;class K{async listMyBookmarks(){return B.get("bookmarks",(async()=>(await C.await()).listMyBookmarks(w.getState().session.profile.userId)))}clearCache(){B.clear("bookmarks")}}const D=e.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const A=new class{constructor(){this.currentSession=w.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new K,w.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=w.getState();e.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){D.actions.savedSearches(void 0)}clearMyBookmarks(){D.actions.bookmarks(void 0)}async reloadMySearches(){const t=new z,e=await t.listMySearches();D.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;D.actions.bookmarks(e)}}};e.customElement("ft-app-context")(W);class Z{static async build(){return new Z(await C.await())}constructor(t){this.api=t,this.cache=new e.CacheRegistry,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const F=t=>t.request.virtualField===b.TITLE_ONLY&&t.request.scope===S.DOCUMENTS;class T extends Event{constructor(){super(T.eventName)}}T.eventName="search-context-clear-all-filters";class H{static build(t){return new H((t=>e.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:c}))(t.trim()||"context"),Z.build)}constructor(t,o){this.store=t,this.serviceProvider=o,this.ignoreEmptyQuery=!1,this.searchDebouncer=new e.Debouncer(100),this.suggestDebouncer=new e.Debouncer(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await e.delay(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const i=t=>e.some((e=>e.lang==t));i(t)||(t=i(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(b.TITLE_ONLY),this.store.actions.setRequestScope(S.DOCUMENTS)):(this.store.actions.setRequestVirtualField(b.EVERYWHERE),this.store.actions.setRequestScope(S.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return F(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new T)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,i={key:t,values:e,negative:!1},r=[...o.filter((e=>e.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let i=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==i.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=e.cancelable(this.service.launchSearch(i));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e.CanceledPromiseError||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const o=this.store.getState(),i=o.request,r={input:o.liveQuery,filters:i.filters,sort:i.sort,contentLocale:i.contentLocale,scope:i.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=e.cancelable(this.service.launchSuggest(r));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e.CanceledPromiseError||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var P=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class j extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const M=Symbol("registerInterval");class _ extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=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[M]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[M]):this.dispatchEvent(new j)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=M,P([r.state()],o.prototype,"stateManager",void 0),o}(e.FtLitElementRedux)){}const G=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorContent),V={color:G,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color","",G),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},q=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorPrimary),Y=q,Q=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",q),X=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorSecondary),J=X,tt=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",X),et=o.css`
|
|
11
11
|
:host {
|
|
12
12
|
display: contents;
|
|
13
13
|
}
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
73
|
-
background-color: ${
|
|
73
|
+
background-color: ${Q};
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
@@ -142,7 +142,7 @@ const rt=globalThis,nt=rt.trustedTypes,at=nt?nt.createPolicy("lit-html",{createH
|
|
|
142
142
|
* Copyright 2020 Google LLC
|
|
143
143
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
144
144
|
*/
|
|
145
|
-
const Ft=Symbol.for(""),Tt=t=>{if(t?.r===Ft)return t?._$litStatic$},Ht=t=>({_$litStatic$:t,r:Ft}),Pt=new Map,jt=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,h=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Tt(n));)l+=r+e[++c],h=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),h){const t=a.join("$$lit$$");void 0===(e=Pt.get(t))&&(a.raw=a,Pt.set(t,e=a)),o=s}return t(e,...o)})(Nt);var Mt;!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"}(Mt||(Mt={}));const _t=t=>"string"==typeof t?o.unsafeCSS(t):t;class Gt{static create(t,e,i,r){const n=t=>_t(null!=t?t:r),a=o.css`var(${_t(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${_t(t)}, ${n(e)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>r,a}static extend(t,e,i,r){const n=t=>i.get(null!=t?t:r),a=o.css`var(${_t(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i.category,a.fallbackVariable=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${_t(t)}, ${n(e)})`,a.breadcrumb=()=>[i.name,...i.breadcrumb()],a.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),a}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):_t(null!=e?e:t.lastResortDefaultValue()),r=o.css`var(${_t(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=i,r.get=e=>o.css`var(${_t(t.name)}, ${i(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const Vt={colorWhite:Gt.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Gt.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Gt.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Gt.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Gt.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Gt.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Gt.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Gt.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Gt.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Gt.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Gt.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Gt.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Gt.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Gt.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Gt.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Gt.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Gt.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Gt.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Gt.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Gt.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Gt.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Gt.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Gt.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Gt.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Gt.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Gt.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Gt.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Gt.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Gt.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Gt.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Gt.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Gt.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Gt.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Gt.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Gt.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Gt.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Gt.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Gt.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Gt.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Gt.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Gt.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Gt.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Gt.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Gt.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Gt.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Gt.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Gt.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Gt.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Gt.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Gt.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Gt.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Gt.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Gt.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Gt.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Gt.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Gt.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Gt.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Gt.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Gt.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Gt.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Gt.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Gt.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Gt.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Gt.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Gt.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Gt.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Gt.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Gt.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Gt.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Gt.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Gt.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Gt.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Gt.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Gt.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Gt.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Gt.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Gt.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Gt.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Gt.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Gt.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Gt.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Gt.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Gt.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Gt.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Gt.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Gt.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Gt.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Gt.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Gt.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Gt.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Gt.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Gt.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Gt.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Gt.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Gt.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Gt.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Gt.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Gt.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Gt.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Gt.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Gt.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Gt.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Gt.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Gt.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Gt.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Gt.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Gt.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Gt.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Gt.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Gt.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Gt.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Gt.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Gt.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Gt.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Gt.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Gt.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Gt.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Gt.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Gt.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Gt.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Gt.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Gt.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Gt.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Gt.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Gt.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Gt.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Gt.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Gt.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Gt.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Gt.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Gt.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Gt.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Gt.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Gt.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Gt.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Gt.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Gt.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Gt.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Gt.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Gt.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Gt.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Gt.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Gt.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Gt.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Gt.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Gt.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Gt.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Gt.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Gt.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Gt.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Gt.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Gt.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Gt.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Gt.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Gt.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Gt.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Gt.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Gt.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Gt.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Gt.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Gt.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Gt.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Gt.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Gt.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Gt.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Gt.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Gt.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Gt.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Gt.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Gt.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Gt.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Gt.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Gt.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Gt.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Gt.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Gt.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Gt.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Gt.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Gt.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Gt.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Gt.create("--ft-opacity-0","","NUMBER","0"),opacity8:Gt.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Gt.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Gt.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Gt.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Gt.create("--ft-opacity-80","","NUMBER","0.8")},qt={display:{fontFamily:Gt.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Gt.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Gt.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Gt.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Gt.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Gt.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Gt.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Gt.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Gt.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Gt.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Gt.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Gt.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Gt.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Gt.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Gt.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Gt.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Gt.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Gt.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Gt.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Gt.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Gt.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Gt.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Gt.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Gt.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Gt.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Gt.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Gt.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Gt.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Gt.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Gt.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Gt.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Gt.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Gt.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Gt.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Gt.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Gt.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Gt.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Gt.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Gt.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Gt.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Gt.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Gt.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Gt.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Gt.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Gt.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Gt.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Gt.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Gt.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Gt.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Gt.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Gt.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Gt.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Gt.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Gt.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Gt.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Gt.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Gt.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Gt.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Gt.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Gt.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Gt.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Gt.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Gt.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Gt.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Gt.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Gt.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Gt.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Gt.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Gt.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Gt.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Gt.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Gt.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Gt.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Gt.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Gt.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Gt.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Gt.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Gt.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Gt.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Gt.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Gt.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Gt.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Gt.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Gt.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Gt.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Gt.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Gt.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Gt.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Gt.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Gt.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Gt.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Gt.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Gt.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Gt.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Gt.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Gt.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Gt.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Gt.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Gt.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Gt.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Gt.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Gt.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Gt.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Gt.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Gt.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Gt.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Gt.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Gt.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Gt.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Gt.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Gt.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Gt.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Yt={backgroundActionPrimary:Gt.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Vt.colorBrand0),backgroundErrorPrimary:Gt.extend("--ft-background-error-primary","Used as background of error components.",Vt.colorRed0),backgroundErrorSubtle:Gt.extend("--ft-background-error-subtle","Used as background of subtle error components.",Vt.colorRed10),backgroundInfoPrimary:Gt.extend("--ft-background-info-primary","Used as background of information components.",Vt.colorCyan200),backgroundInfoSubtle:Gt.extend("--ft-background-info-subtle","Used as background of subtle information components.",Vt.colorCyan10),backgroundWarningPrimary:Gt.extend("--ft-background-warning-primary","Used as background of warning components.",Vt.colorOrange300),backgroundWarningSubtle:Gt.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Vt.colorOrange10),backgroundSuccessPrimary:Gt.extend("--ft-background-success-primary","Used as background of success components.",Vt.colorGreen200),backgroundSuccessSubtle:Gt.extend("--ft-background-success-subtle","Used as background of subtle success components.",Vt.colorGreen10),backgroundGlobalSurface:Gt.extend("--ft-background-global-surface","Used as app background.",Vt.colorWhite),backgroundGlobalOnSurface:Gt.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Vt.colorGray10),backgroundGlobalOnSurfaceDark:Gt.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Vt.colorGray30),contentActionPrimary:Gt.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Vt.colorBrand0),contentWarningPrimary:Gt.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Vt.colorOrange300),contentWarningIconOnly:Gt.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Vt.colorOrange0),contentErrorPrimary:Gt.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Vt.colorRed0),contentErrorIconOnly:Gt.extend("--ft-content-error-icon-only","Used on error status icons alone",Vt.colorRed0),contentInfoPrimary:Gt.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Vt.colorCyan200),contentInfoIconOnly:Gt.extend("--ft-content-info-icon-only","Used on info status icons alone",Vt.colorCyan0),contentSuccessIconOnly:Gt.extend("--ft-content-success-icon-only","Used on success status icons alone",Vt.colorGreen0),contentSuccessPrimary:Gt.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Vt.colorGreen200),contentGlobalPrimary:Gt.extend("--ft-content-global-primary","Used for main content on the page.",Vt.colorGray500),contentGlobalSecondary:Gt.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Vt.colorGray200),contentGlobalSubtle:Gt.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Vt.colorGray0),contentGlobalOnColor:Gt.extend("--ft-content-global-on-color","Used for content on a dominant color.",Vt.colorWhite),borderActionPrimary:Gt.extend("--ft-border-action-primary","Used as border for primary action components.",Vt.colorBrand0),borderActionFocusRing:Gt.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Vt.colorCyan0),borderWarningPrimary:Gt.extend("--ft-border-warning-primary","Used as border for warning components.",Vt.colorOrange30),borderSuccessPrimary:Gt.extend("--ft-border-success-primary","Used as border for success components.",Vt.colorGreen30),borderErrorPrimary:Gt.extend("--ft-border-error-primary","Used as border for error components.",Vt.colorRed30),borderInfoPrimary:Gt.extend("--ft-border-info-primary","Used as border for information components.",Vt.colorCyan30),borderGlobalSubtle:Gt.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Vt.colorGray30),borderGlobalPrimary:Gt.extend("--ft-border-global-primary","Used as border for element like input.",Vt.colorGray50),borderInputPrimary:Gt.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Vt.colorGray80)},Xt={largeHeight:Gt.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Gt.extend("--ft-button-large-horizontal-padding","",Vt.spacing4),largeGap:Gt.extend("--ft-button-large-gap","",Vt.spacing2),largeBorderRadius:Gt.extend("--ft-button-large-border-radius","",Vt.borderRadiusS),largeIconSize:Gt.extend("--ft-button-large-icon-size","",Vt.iconSize3),largeBorderWidth:Gt.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Gt.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Gt.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Gt.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Gt.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Gt.extend("--ft-button-small-horizontal-padding","",Vt.spacing3),smallGap:Gt.extend("--ft-button-small-gap","",Vt.spacing2),smallBorderRadius:Gt.extend("--ft-button-small-border-radius","",Vt.borderRadiusS),smallIconSize:Gt.extend("--ft-button-small-icon-size","",Vt.iconSize2),smallBorderWidth:Gt.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Gt.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Gt.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Gt.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Gt.extend("--ft-button-primary-background-color","",Yt.backgroundActionPrimary),primaryColor:Gt.extend("--ft-button-primary-color","",Yt.contentGlobalOnColor),primaryIconColor:Gt.extend("--ft-button-primary-icon-color","",Yt.contentGlobalOnColor),primaryStateLayerColor:Gt.extend("--ft-button-primary-state-layer-color","",Yt.contentGlobalOnColor),primaryStateLayerOpacityHover:Gt.extend("--ft-button-primary-state-layer-opacity-hover","",Vt.opacity16),primaryStateLayerOpacityFocus:Gt.extend("--ft-button-primary-state-layer-opacity-focus","",Vt.opacity16),primaryStateLayerOpacityActive:Gt.extend("--ft-button-primary-state-layer-opacity-active","",Vt.opacity24),primaryComponentOpacityDisabled:Gt.extend("--ft-button-primary-component-opacity-disabled","",Vt.opacity40),focusFocusRingColor:Gt.extend("--ft-button-focus-focus-ring-color","",Yt.borderActionFocusRing),tertiaryBackgroundColor:Gt.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Gt.extend("--ft-button-tertiary-color","",Yt.contentActionPrimary),tertiaryIconColor:Gt.extend("--ft-button-tertiary-icon-color","",Yt.contentActionPrimary),tertiaryStateLayerColor:Gt.extend("--ft-button-tertiary-state-layer-color","",Yt.contentActionPrimary),tertiaryStateLayerOpacityHover:Gt.extend("--ft-button-tertiary-state-layer-opacity-hover","",Vt.opacity8),tertiaryStateLayerOpacityFocus:Gt.extend("--ft-button-tertiary-state-layer-opacity-focus","",Vt.opacity8),tertiaryStateLayerOpacityActive:Gt.extend("--ft-button-tertiary-state-layer-opacity-active","",Vt.opacity16),tertiaryComponentOpacityDisabled:Gt.extend("--ft-button-tertiary-component-opacity-disabled","",Vt.opacity40),secondaryBackgroundColor:Gt.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Gt.extend("--ft-button-secondary-color","",Yt.contentActionPrimary),secondaryIconColor:Gt.extend("--ft-button-secondary-icon-color","",Yt.contentActionPrimary),secondaryStateLayerColor:Gt.extend("--ft-button-secondary-state-layer-color","",Yt.contentActionPrimary),secondaryStateLayerOpacityHover:Gt.extend("--ft-button-secondary-state-layer-opacity-hover","",Vt.opacity8),secondaryStateLayerOpacityFocus:Gt.extend("--ft-button-secondary-state-layer-opacity-focus","",Vt.opacity8),secondaryStateLayerOpacityActive:Gt.extend("--ft-button-secondary-state-layer-opacity-active","",Vt.opacity16),secondaryComponentOpacityDisabled:Gt.extend("--ft-button-secondary-component-opacity-disabled","",Vt.opacity40),secondaryBorderColor:Gt.extend("--ft-button-secondary-border-color","",Yt.borderActionPrimary),neutralBackgroundColor:Gt.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Gt.extend("--ft-button-neutral-icon-color","",Yt.contentGlobalSecondary),neutralColor:Gt.extend("--ft-button-neutral-color","",Yt.contentGlobalSecondary),neutralStateLayerColor:Gt.extend("--ft-button-neutral-state-layer-color","",Yt.contentGlobalSecondary),neutralStateLayerOpacityHover:Gt.extend("--ft-button-neutral-state-layer-opacity-hover","",Vt.opacity8),neutralStateLayerOpacityFocus:Gt.extend("--ft-button-neutral-state-layer-opacity-focus","",Vt.opacity8),neutralStateLayerOpacityActive:Gt.extend("--ft-button-neutral-state-layer-opacity-active","",Vt.opacity16),neutralComponentOpacityDisabled:Gt.extend("--ft-button-neutral-component-opacity-disabled","",Vt.opacity40)};Gt.extend("--ft-tabs-top-left-border-radius","",Vt.borderRadiusS),Gt.extend("--ft-tabs-top-right-border-radius","",Vt.borderRadiusS),Gt.extend("--ft-tabs-label-horizontal-padding","",Vt.spacing4),Gt.extend("--ft-tabs-label-vertical-padding","",Vt.spacing3),Gt.extend("--ft-tabs-label-gap","",Vt.spacing1),Gt.extend("--ft-switch-group-horizontal-padding","",Vt.spacing1),Gt.extend("--ft-switch-group-vertical-padding","",Vt.spacing1),Gt.extend("--ft-switch-group-gap","",Vt.spacing1),Gt.extend("--ft-switch-group-background-color","",Yt.backgroundGlobalSurface),Gt.extend("--ft-switch-group-border-color","",Yt.borderGlobalSubtle),Gt.create("--ft-switch-group-border-radius","","SIZE","6px"),Gt.extend("--ft-switch-label-horizontal-padding","",Vt.spacing2),Gt.extend("--ft-switch-label-vertical-padding","",Vt.spacing1),Gt.extend("--ft-switch-icon-horizontal-padding","",Vt.spacing1),Gt.extend("--ft-switch-icon-vertical-padding","",Vt.spacing1),Gt.create("--ft-switch-focus-outline-width","","SIZE","2px"),Gt.extend("--ft-switch-focus-focus-ring-color","",Yt.borderActionFocusRing),Gt.extend("--ft-switch-option-border-radius","",Vt.borderRadiusS),Gt.extend("--ft-switch-off-state-layer-opacity-hover","",Vt.opacity8),Gt.extend("--ft-switch-off-state-layer-opacity-focus","",Vt.opacity8),Gt.extend("--ft-switch-off-state-layer-opacity-active","",Vt.opacity16),Gt.extend("--ft-switch-off-component-opacity-disabled","",Vt.opacity40),Gt.extend("--ft-switch-off-color","",Yt.contentGlobalSubtle),Gt.extend("--ft-switch-off-state-layer-color","",Yt.contentGlobalSubtle),Gt.extend("--ft-chart-1-light","for area color charts",Vt.colorBrand40),Gt.extend("--ft-chart-1-base","for line charts",Vt.colorBrand0),Gt.extend("--ft-chart-2-light","for area color charts",Vt.colorYellow60),Gt.extend("--ft-chart-2-base","for line charts",Vt.colorYellow100),Gt.extend("--ft-chart-3-light","",Vt.colorUltramarine40),Gt.extend("--ft-chart-3-base","",Vt.colorUltramarine70),Gt.extend("--ft-chart-4-light","",Vt.colorCyan50),Gt.extend("--ft-chart-4-base","",Vt.colorCyan100),Gt.extend("--ft-chart-5-light","",Vt.colorRed40),Gt.extend("--ft-chart-5-base","",Vt.colorRed60),Gt.extend("--ft-chart-6-light","",Vt.colorGreen40),Gt.extend("--ft-chart-6-base","",Vt.colorGreen70),Gt.extend("--ft-chart-7-light","",Vt.colorOrange70),Gt.extend("--ft-chart-7-base","",Vt.colorOrange100),Gt.extend("--ft-chart-8-light","",Vt.colorAvocado70),Gt.extend("--ft-chart-8-base","",Vt.colorAvocado200),Gt.extend("--ft-chart-9-light","",Vt.colorBrown50),Gt.extend("--ft-chart-9-base","",Vt.colorBrown200),Gt.extend("--ft-chart-10-light","",Vt.colorGray50),Gt.extend("--ft-chart-10-base","",Vt.colorGray80),Gt.extend("--ft-chart-monochrome-10","",Vt.colorBrand10),Gt.extend("--ft-chart-monochrome-20","",Vt.colorBrand20),Gt.extend("--ft-chart-monochrome-30","",Vt.colorBrand40),Gt.extend("--ft-chart-monochrome-40","",Vt.colorBrand60),Gt.extend("--ft-chart-monochrome-50","",Vt.colorBrand0),Gt.extend("--ft-chart-monochrome-60","",Vt.colorBrand200),Gt.extend("--ft-chip-large-horizontal-padding","",Vt.spacing4),Gt.extend("--ft-chip-large-vertical-padding","",Vt.spacing2),Gt.extend("--ft-chip-large-gap","",Vt.spacing1),Gt.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Gt.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Gt.extend("--ft-chip-large-border-radius","",Vt.borderRadiusPill),Gt.create("--ft-chip-large-border-width","","SIZE","1px"),Gt.extend("--ft-chip-large-icon-size","",Vt.iconSize3),Gt.extend("--ft-chip-medium-horizontal-padding","",Vt.spacing3),Gt.extend("--ft-chip-medium-vertical-padding","",Vt.spacing1),Gt.extend("--ft-chip-medium-gap","",Vt.spacing1),Gt.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Gt.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Gt.extend("--ft-chip-medium-border-radius","",Vt.borderRadiusPill),Gt.create("--ft-chip-medium-border-width","","SIZE","1px"),Gt.extend("--ft-chip-medium-icon-size","",Vt.iconSize2),Gt.extend("--ft-chip-small-horizontal-padding","",Vt.spacing2),Gt.extend("--ft-chip-small-vertical-padding","",Vt.spacing05),Gt.extend("--ft-chip-small-gap","",Vt.spacing1),Gt.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Gt.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Gt.extend("--ft-chip-small-border-radius","",Vt.borderRadiusPill),Gt.create("--ft-chip-small-border-width","","SIZE","1px"),Gt.extend("--ft-chip-small-icon-size","",Vt.iconSize1),Gt.extend("--ft-chip-neutral-background-color","",Yt.backgroundGlobalOnSurface),Gt.extend("--ft-chip-neutral-color","",Yt.contentGlobalPrimary),Gt.extend("--ft-chip-neutral-border-color","",Yt.borderGlobalSubtle),Gt.extend("--ft-chip-info-background-color","",Yt.backgroundInfoSubtle),Gt.extend("--ft-chip-info-color","",Yt.contentInfoPrimary),Gt.extend("--ft-chip-info-border-color","",Yt.borderInfoPrimary),Gt.extend("--ft-chip-success-background-color","",Yt.backgroundSuccessSubtle),Gt.extend("--ft-chip-success-color","",Yt.contentSuccessPrimary),Gt.extend("--ft-chip-success-border-color","",Yt.borderSuccessPrimary),Gt.extend("--ft-chip-warning-background-color","",Yt.backgroundWarningSubtle),Gt.extend("--ft-chip-warning-color","",Yt.contentWarningPrimary),Gt.extend("--ft-chip-warning-border-color","",Yt.borderWarningPrimary),Gt.extend("--ft-chip-error-background-color","",Yt.backgroundErrorSubtle),Gt.extend("--ft-chip-error-color","",Yt.contentErrorPrimary),Gt.extend("--ft-chip-error-border-color","",Yt.borderErrorPrimary),Gt.create("--ft-notice-border-width","","SIZE","1px"),Gt.extend("--ft-notice-horizontal-padding","",Vt.spacing2),Gt.extend("--ft-notice-vertical-padding","",Vt.spacing1),Gt.extend("--ft-notice-border-radius","",Vt.borderRadiusS),Gt.extend("--ft-notice-gap","",Vt.spacing2),Gt.extend("--ft-notice-icon-size","",Vt.iconSize3),Gt.extend("--ft-notice-info-background-color","",Yt.backgroundInfoSubtle),Gt.extend("--ft-notice-info-border-color","",Yt.borderInfoPrimary),Gt.extend("--ft-notice-info-color","",Yt.contentInfoPrimary),Gt.extend("--ft-notice-warning-background-color","",Yt.backgroundWarningSubtle),Gt.extend("--ft-notice-warning-border-color","",Yt.borderWarningPrimary),Gt.extend("--ft-notice-warning-color","",Yt.contentWarningPrimary),Gt.extend("--ft-checkbox-label-color","",Yt.contentGlobalPrimary),Gt.extend("--ft-checkbox-checked-background-color","",Yt.contentActionPrimary),Gt.extend("--ft-checkbox-checked-state-layer-color","",Yt.contentActionPrimary),Gt.extend("--ft-checkbox-checked-color","",Yt.contentGlobalOnColor),Gt.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Vt.opacity16),Gt.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Vt.opacity16),Gt.extend("--ft-checkbox-checked-state-layer-opacity-active","",Vt.opacity24),Gt.extend("--ft-checkbox-checked-component-opacity-disabled","",Vt.opacity40),Gt.extend("--ft-checkbox-unchecked-border-color","",Vt.colorGray80),Gt.extend("--ft-checkbox-unchecked-state-layer-color","",Vt.colorGray80),Gt.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Vt.opacity16),Gt.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Vt.opacity16),Gt.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Vt.opacity24),Gt.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Vt.opacity40),Gt.extend("--ft-checkbox-focus-focus-ring-color","",Yt.borderActionFocusRing),Gt.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Gt.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Gt.extend("--ft-checkbox-gap","",Vt.spacing3),Gt.extend("--ft-toggle-off-state-layer-opacity-hover","",Vt.opacity16),Gt.extend("--ft-toggle-off-state-layer-opacity-focus","",Vt.opacity16),Gt.extend("--ft-toggle-off-state-layer-opacity-active","",Vt.opacity24),Gt.extend("--ft-toggle-off-component-opacity-disabled","",Vt.opacity40),Gt.extend("--ft-toggle-off-background-color","",Yt.contentGlobalSubtle),Gt.extend("--ft-toggle-off-icon-color","",Yt.contentGlobalSubtle),Gt.extend("--ft-toggle-off-state-layer-color","",Yt.contentGlobalSubtle),Gt.extend("--ft-toggle-on-state-layer-opacity-hover","",Vt.opacity16),Gt.extend("--ft-toggle-on-state-layer-opacity-focus","",Vt.opacity16),Gt.extend("--ft-toggle-on-state-layer-opacity-active","",Vt.opacity24),Gt.extend("--ft-toggle-on-component-opacity-disabled","",Vt.opacity40),Gt.extend("--ft-toggle-on-background-color","",Yt.contentActionPrimary),Gt.extend("--ft-toggle-on-icon-color","",Yt.contentActionPrimary),Gt.extend("--ft-toggle-on-state-layer-color","",Yt.contentActionPrimary),Gt.extend("--ft-toggle-label-color","",Yt.contentGlobalPrimary),Gt.extend("--ft-toggle-focus-focus-ring-color","",Yt.borderActionFocusRing),Gt.extend("--ft-toggle-gap","",Vt.spacing3),Gt.extend("--ft-radio-label-color","",Yt.contentGlobalPrimary),Gt.extend("--ft-radio-selected-color","",Yt.contentActionPrimary),Gt.extend("--ft-radio-selected-state-layer-color","",Yt.contentActionPrimary),Gt.extend("--ft-radio-selected-state-layer-opacity-hover","",Vt.opacity16),Gt.extend("--ft-radio-selected-state-layer-opacity-focus","",Vt.opacity16),Gt.extend("--ft-radio-selected-state-layer-opacity-active","",Vt.opacity24),Gt.extend("--ft-radio-selected-component-opacity-disabled","",Vt.opacity40),Gt.extend("--ft-radio-unselected-state-layer-color","",Vt.colorGray80),Gt.extend("--ft-radio-unselected-state-layer-opacity-hover","",Vt.opacity16),Gt.extend("--ft-radio-unselected-state-layer-opacity-focus","",Vt.opacity16),Gt.extend("--ft-radio-unselected-state-layer-opacity-active","",Vt.opacity24),Gt.extend("--ft-radio-unselected-component-opacity-disabled","",Vt.opacity40),Gt.extend("--ft-radio-focus-focus-ring-color","",Yt.borderActionFocusRing),Gt.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Gt.create("--ft-radio-focus-outline-width","","SIZE","2px"),Gt.extend("--ft-radio-gap","",Vt.spacing3),Gt.extend("--ft-notification-icon-size","",Vt.iconSize4),Gt.extend("--ft-notification-horizontal-padding","",Vt.spacing4),Gt.extend("--ft-notification-vertical-padding","",Vt.spacing4),Gt.extend("--ft-notification-info-background-color","",Yt.backgroundInfoSubtle),Gt.extend("--ft-notification-info-color","",Yt.contentInfoPrimary),Gt.extend("--ft-notification-info-border-color","",Yt.borderInfoPrimary),Gt.extend("--ft-notification-success-background-color","",Yt.backgroundSuccessSubtle),Gt.extend("--ft-notification-success-color","",Yt.contentSuccessPrimary),Gt.extend("--ft-notification-success-border-color","",Yt.borderSuccessPrimary),Gt.extend("--ft-notification-warning-background-color","",Yt.backgroundWarningSubtle),Gt.extend("--ft-notification-warning-color","",Yt.contentWarningPrimary),Gt.extend("--ft-notification-warning-border-color","",Yt.borderWarningPrimary),Gt.extend("--ft-notification-error-background-color","",Yt.backgroundErrorSubtle),Gt.extend("--ft-notification-error-color","",Yt.contentErrorPrimary),Gt.extend("--ft-notification-error-border-color","",Yt.borderErrorPrimary),Gt.extend("--ft-notification-border-radius","",Vt.borderRadiusPill),Gt.create("--ft-notification-border-width","","SIZE","1px"),Gt.extend("--ft-notification-gap-leading","",Vt.spacing2),Gt.extend("--ft-notification-gap-trailing","",Vt.spacing8);const Qt=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.titleFont),Jt=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.contentFont),te={fontFamily:Jt,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ee=e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Qt),oe=e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",te.fontSize,"20px"),ie=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",te.fontWeight,"normal"),re=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",te.letterSpacing,"0.15px"),ne=e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",te.lineHeight,"1.2"),ae=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",te.textTransform,"inherit"),se=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Qt),le=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",te.fontSize,"14px"),ce=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",te.fontWeight,"normal"),he=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",te.letterSpacing,"0.105px"),pe=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",te.lineHeight,"1.7"),fe=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",te.textTransform,"inherit"),de=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Jt),ue=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",te.fontSize,"16px"),ge=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",te.fontWeight,"600"),ye=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",te.letterSpacing,"0.144px"),be=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",te.lineHeight,"1.5"),me=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",te.textTransform,"inherit"),ve=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Jt),xe=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",te.fontSize,"14px"),Oe=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",te.fontWeight,"normal"),Se=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",te.letterSpacing,"0.098px"),Ne=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",te.lineHeight,"1.7"),$e=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",te.textTransform,"inherit"),we=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Jt),Ce=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",te.fontSize,"16px"),ke=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",te.fontWeight,"normal"),Ie=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",te.letterSpacing,"0.496px"),Ee=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",te.lineHeight,"1.5"),Re=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",te.textTransform,"inherit"),Ue={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Jt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",te.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",te.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",te.letterSpacing,"0.252px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",te.lineHeight,"1.4"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",te.textTransform,"inherit")},Le=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Jt),We=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",te.fontSize,"12px"),ze=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",te.fontWeight,"normal"),Be=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",te.letterSpacing,"0.396px"),Ke=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",te.lineHeight,"1.33"),De=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",te.textTransform,"inherit"),Ae=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Jt),Ze=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",te.fontSize,"10px"),Fe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",te.fontWeight,"normal"),Te=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",te.letterSpacing,"0.33px"),He=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",te.lineHeight,"1.6"),Pe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",te.textTransform,"inherit"),je=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Jt),Me=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",te.fontSize,"10px"),_e=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",te.fontWeight,"normal"),Ge=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",te.letterSpacing,"1.5px"),Ve=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",te.lineHeight,"1.6"),qe=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",te.textTransform,"uppercase"),Ye={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Jt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",te.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",te.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",te.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",te.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",te.textTransform,"uppercase")},Xe=o.css`
|
|
145
|
+
const Ft=Symbol.for(""),Tt=t=>{if(t?.r===Ft)return t?._$litStatic$},Ht=t=>({_$litStatic$:t,r:Ft}),Pt=new Map,jt=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,h=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Tt(n));)l+=r+e[++c],h=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),h){const t=a.join("$$lit$$");void 0===(e=Pt.get(t))&&(a.raw=a,Pt.set(t,e=a)),o=s}return t(e,...o)})(Nt);var Mt;!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"}(Mt||(Mt={}));const _t=t=>"string"==typeof t?o.unsafeCSS(t):t;class Gt{static create(t,e,i,r){const n=t=>_t(null!=t?t:r),a=o.css`var(${_t(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${_t(t)}, ${n(e)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>r,a}static extend(t,e,i,r){const n=t=>i.get(null!=t?t:r),a=o.css`var(${_t(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i.category,a.fallbackVariable=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${_t(t)}, ${n(e)})`,a.breadcrumb=()=>[i.name,...i.breadcrumb()],a.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),a}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):_t(null!=e?e:t.lastResortDefaultValue()),r=o.css`var(${_t(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=i,r.get=e=>o.css`var(${_t(t.name)}, ${i(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const Vt={colorWhite:Gt.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Gt.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Gt.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Gt.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Gt.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Gt.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Gt.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Gt.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Gt.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Gt.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Gt.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Gt.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Gt.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Gt.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Gt.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Gt.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Gt.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Gt.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Gt.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Gt.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Gt.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Gt.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Gt.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Gt.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Gt.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Gt.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Gt.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Gt.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Gt.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Gt.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Gt.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Gt.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Gt.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Gt.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Gt.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Gt.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Gt.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Gt.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Gt.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Gt.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Gt.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Gt.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Gt.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Gt.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Gt.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Gt.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Gt.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Gt.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Gt.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Gt.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Gt.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Gt.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Gt.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Gt.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Gt.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Gt.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Gt.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Gt.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Gt.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Gt.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Gt.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Gt.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Gt.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Gt.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Gt.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Gt.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Gt.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Gt.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Gt.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Gt.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Gt.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Gt.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Gt.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Gt.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Gt.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Gt.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Gt.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Gt.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Gt.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Gt.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Gt.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Gt.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Gt.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Gt.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Gt.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Gt.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Gt.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Gt.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Gt.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Gt.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Gt.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Gt.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Gt.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Gt.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Gt.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Gt.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Gt.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Gt.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Gt.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Gt.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Gt.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Gt.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Gt.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Gt.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Gt.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Gt.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Gt.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Gt.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Gt.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Gt.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Gt.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Gt.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Gt.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Gt.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Gt.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Gt.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Gt.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Gt.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Gt.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Gt.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Gt.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Gt.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Gt.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Gt.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Gt.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Gt.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Gt.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Gt.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Gt.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Gt.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Gt.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Gt.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Gt.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Gt.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Gt.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Gt.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Gt.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Gt.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Gt.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Gt.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Gt.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Gt.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Gt.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Gt.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Gt.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Gt.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Gt.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Gt.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Gt.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Gt.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Gt.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Gt.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Gt.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Gt.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Gt.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Gt.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Gt.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Gt.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Gt.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Gt.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Gt.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Gt.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Gt.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Gt.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Gt.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Gt.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Gt.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Gt.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Gt.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Gt.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Gt.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Gt.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Gt.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Gt.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Gt.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Gt.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Gt.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Gt.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Gt.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Gt.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Gt.create("--ft-opacity-0","","NUMBER","0"),opacity8:Gt.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Gt.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Gt.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Gt.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Gt.create("--ft-opacity-80","","NUMBER","0.8")},qt={display:{fontFamily:Gt.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Gt.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Gt.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Gt.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Gt.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Gt.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Gt.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Gt.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Gt.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Gt.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Gt.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Gt.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Gt.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Gt.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Gt.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Gt.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Gt.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Gt.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Gt.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Gt.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Gt.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Gt.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Gt.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Gt.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Gt.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Gt.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Gt.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Gt.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Gt.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Gt.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Gt.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Gt.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Gt.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Gt.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Gt.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Gt.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Gt.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Gt.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Gt.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Gt.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Gt.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Gt.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Gt.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Gt.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Gt.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Gt.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Gt.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Gt.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Gt.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Gt.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Gt.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Gt.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Gt.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Gt.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Gt.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Gt.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Gt.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Gt.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Gt.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Gt.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Gt.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Gt.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Gt.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Gt.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Gt.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Gt.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Gt.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Gt.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Gt.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Gt.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Gt.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Gt.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Gt.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Gt.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Gt.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Gt.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Gt.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Gt.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Gt.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Gt.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Gt.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Gt.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Gt.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Gt.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Gt.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Gt.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Gt.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Gt.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Gt.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Gt.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Gt.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Gt.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Gt.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Gt.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Gt.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Gt.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Gt.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Gt.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Gt.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Gt.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Gt.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Gt.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Gt.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Gt.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Gt.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Gt.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Gt.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Gt.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Gt.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Gt.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Gt.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Gt.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Gt.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Gt.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Gt.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Gt.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Gt.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Yt={backgroundActionPrimary:Gt.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Vt.colorBrand0),backgroundErrorPrimary:Gt.extend("--ft-background-error-primary","Used as background of error components.",Vt.colorRed0),backgroundErrorSubtle:Gt.extend("--ft-background-error-subtle","Used as background of subtle error components.",Vt.colorRed10),backgroundInfoPrimary:Gt.extend("--ft-background-info-primary","Used as background of information components.",Vt.colorCyan200),backgroundInfoSubtle:Gt.extend("--ft-background-info-subtle","Used as background of subtle information components.",Vt.colorCyan10),backgroundWarningPrimary:Gt.extend("--ft-background-warning-primary","Used as background of warning components.",Vt.colorOrange300),backgroundWarningSubtle:Gt.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Vt.colorOrange10),backgroundSuccessPrimary:Gt.extend("--ft-background-success-primary","Used as background of success components.",Vt.colorGreen200),backgroundSuccessSubtle:Gt.extend("--ft-background-success-subtle","Used as background of subtle success components.",Vt.colorGreen10),backgroundGlobalSurface:Gt.extend("--ft-background-global-surface","Used as app background.",Vt.colorWhite),backgroundGlobalOnSurface:Gt.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Vt.colorGray10),backgroundGlobalOnSurfaceDark:Gt.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Vt.colorGray30),contentActionPrimary:Gt.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Vt.colorBrand0),contentWarningPrimary:Gt.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Vt.colorOrange300),contentWarningIconOnly:Gt.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Vt.colorOrange0),contentErrorPrimary:Gt.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Vt.colorRed0),contentErrorIconOnly:Gt.extend("--ft-content-error-icon-only","Used on error status icons alone",Vt.colorRed0),contentInfoPrimary:Gt.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Vt.colorCyan200),contentInfoIconOnly:Gt.extend("--ft-content-info-icon-only","Used on info status icons alone",Vt.colorCyan0),contentSuccessIconOnly:Gt.extend("--ft-content-success-icon-only","Used on success status icons alone",Vt.colorGreen0),contentSuccessPrimary:Gt.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Vt.colorGreen200),contentGlobalPrimary:Gt.extend("--ft-content-global-primary","Used for main content on the page.",Vt.colorGray500),contentGlobalSecondary:Gt.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Vt.colorGray200),contentGlobalSubtle:Gt.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Vt.colorGray0),contentGlobalOnColor:Gt.extend("--ft-content-global-on-color","Used for content on a dominant color.",Vt.colorWhite),borderActionPrimary:Gt.extend("--ft-border-action-primary","Used as border for primary action components.",Vt.colorBrand0),borderActionFocusRing:Gt.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Vt.colorCyan0),borderWarningPrimary:Gt.extend("--ft-border-warning-primary","Used as border for warning components.",Vt.colorOrange30),borderSuccessPrimary:Gt.extend("--ft-border-success-primary","Used as border for success components.",Vt.colorGreen30),borderErrorPrimary:Gt.extend("--ft-border-error-primary","Used as border for error components.",Vt.colorRed30),borderInfoPrimary:Gt.extend("--ft-border-info-primary","Used as border for information components.",Vt.colorCyan30),borderGlobalSubtle:Gt.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Vt.colorGray30),borderGlobalPrimary:Gt.extend("--ft-border-global-primary","Used as border for element like input.",Vt.colorGray50),borderInputPrimary:Gt.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Vt.colorGray80)},Qt={largeHeight:Gt.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Gt.extend("--ft-button-large-horizontal-padding","",Vt.spacing4),largeGap:Gt.extend("--ft-button-large-gap","",Vt.spacing2),largeBorderRadius:Gt.extend("--ft-button-large-border-radius","",Vt.borderRadiusS),largeIconSize:Gt.extend("--ft-button-large-icon-size","",Vt.iconSize3),largeBorderWidth:Gt.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Gt.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Gt.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Gt.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Gt.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Gt.extend("--ft-button-small-horizontal-padding","",Vt.spacing3),smallGap:Gt.extend("--ft-button-small-gap","",Vt.spacing2),smallBorderRadius:Gt.extend("--ft-button-small-border-radius","",Vt.borderRadiusS),smallIconSize:Gt.extend("--ft-button-small-icon-size","",Vt.iconSize2),smallBorderWidth:Gt.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Gt.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Gt.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Gt.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Gt.extend("--ft-button-primary-background-color","",Yt.backgroundActionPrimary),primaryColor:Gt.extend("--ft-button-primary-color","",Yt.contentGlobalOnColor),primaryIconColor:Gt.extend("--ft-button-primary-icon-color","",Yt.contentGlobalOnColor),primaryStateLayerColor:Gt.extend("--ft-button-primary-state-layer-color","",Yt.contentGlobalOnColor),primaryStateLayerOpacityHover:Gt.extend("--ft-button-primary-state-layer-opacity-hover","",Vt.opacity16),primaryStateLayerOpacityFocus:Gt.extend("--ft-button-primary-state-layer-opacity-focus","",Vt.opacity16),primaryStateLayerOpacityActive:Gt.extend("--ft-button-primary-state-layer-opacity-active","",Vt.opacity24),primaryComponentOpacityDisabled:Gt.extend("--ft-button-primary-component-opacity-disabled","",Vt.opacity40),focusFocusRingColor:Gt.extend("--ft-button-focus-focus-ring-color","",Yt.borderActionFocusRing),tertiaryBackgroundColor:Gt.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Gt.extend("--ft-button-tertiary-color","",Yt.contentActionPrimary),tertiaryIconColor:Gt.extend("--ft-button-tertiary-icon-color","",Yt.contentActionPrimary),tertiaryStateLayerColor:Gt.extend("--ft-button-tertiary-state-layer-color","",Yt.contentActionPrimary),tertiaryStateLayerOpacityHover:Gt.extend("--ft-button-tertiary-state-layer-opacity-hover","",Vt.opacity8),tertiaryStateLayerOpacityFocus:Gt.extend("--ft-button-tertiary-state-layer-opacity-focus","",Vt.opacity8),tertiaryStateLayerOpacityActive:Gt.extend("--ft-button-tertiary-state-layer-opacity-active","",Vt.opacity16),tertiaryComponentOpacityDisabled:Gt.extend("--ft-button-tertiary-component-opacity-disabled","",Vt.opacity40),secondaryBackgroundColor:Gt.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:Gt.extend("--ft-button-secondary-color","",Yt.contentActionPrimary),secondaryIconColor:Gt.extend("--ft-button-secondary-icon-color","",Yt.contentActionPrimary),secondaryStateLayerColor:Gt.extend("--ft-button-secondary-state-layer-color","",Yt.contentActionPrimary),secondaryStateLayerOpacityHover:Gt.extend("--ft-button-secondary-state-layer-opacity-hover","",Vt.opacity8),secondaryStateLayerOpacityFocus:Gt.extend("--ft-button-secondary-state-layer-opacity-focus","",Vt.opacity8),secondaryStateLayerOpacityActive:Gt.extend("--ft-button-secondary-state-layer-opacity-active","",Vt.opacity16),secondaryComponentOpacityDisabled:Gt.extend("--ft-button-secondary-component-opacity-disabled","",Vt.opacity40),secondaryBorderColor:Gt.extend("--ft-button-secondary-border-color","",Yt.borderActionPrimary),neutralBackgroundColor:Gt.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Gt.extend("--ft-button-neutral-icon-color","",Yt.contentGlobalSecondary),neutralColor:Gt.extend("--ft-button-neutral-color","",Yt.contentGlobalSecondary),neutralStateLayerColor:Gt.extend("--ft-button-neutral-state-layer-color","",Yt.contentGlobalSecondary),neutralStateLayerOpacityHover:Gt.extend("--ft-button-neutral-state-layer-opacity-hover","",Vt.opacity8),neutralStateLayerOpacityFocus:Gt.extend("--ft-button-neutral-state-layer-opacity-focus","",Vt.opacity8),neutralStateLayerOpacityActive:Gt.extend("--ft-button-neutral-state-layer-opacity-active","",Vt.opacity16),neutralComponentOpacityDisabled:Gt.extend("--ft-button-neutral-component-opacity-disabled","",Vt.opacity40)};Gt.extend("--ft-tabs-top-left-border-radius","",Vt.borderRadiusS),Gt.extend("--ft-tabs-top-right-border-radius","",Vt.borderRadiusS),Gt.extend("--ft-tabs-label-horizontal-padding","",Vt.spacing4),Gt.extend("--ft-tabs-label-vertical-padding","",Vt.spacing3),Gt.extend("--ft-tabs-label-gap","",Vt.spacing1),Gt.extend("--ft-switch-group-horizontal-padding","",Vt.spacing1),Gt.extend("--ft-switch-group-vertical-padding","",Vt.spacing1),Gt.extend("--ft-switch-group-gap","",Vt.spacing1),Gt.extend("--ft-switch-group-background-color","",Yt.backgroundGlobalSurface),Gt.extend("--ft-switch-group-border-color","",Yt.borderGlobalSubtle),Gt.create("--ft-switch-group-border-radius","","SIZE","6px"),Gt.extend("--ft-switch-label-horizontal-padding","",Vt.spacing2),Gt.extend("--ft-switch-label-vertical-padding","",Vt.spacing1),Gt.extend("--ft-switch-icon-horizontal-padding","",Vt.spacing1),Gt.extend("--ft-switch-icon-vertical-padding","",Vt.spacing1),Gt.create("--ft-switch-focus-outline-width","","SIZE","2px"),Gt.extend("--ft-switch-focus-focus-ring-color","",Yt.borderActionFocusRing),Gt.extend("--ft-switch-option-border-radius","",Vt.borderRadiusS),Gt.extend("--ft-switch-off-state-layer-opacity-hover","",Vt.opacity8),Gt.extend("--ft-switch-off-state-layer-opacity-focus","",Vt.opacity8),Gt.extend("--ft-switch-off-state-layer-opacity-active","",Vt.opacity16),Gt.extend("--ft-switch-off-component-opacity-disabled","",Vt.opacity40),Gt.extend("--ft-switch-off-color","",Yt.contentGlobalSubtle),Gt.extend("--ft-switch-off-state-layer-color","",Yt.contentGlobalSubtle),Gt.extend("--ft-chart-1-light","for area color charts",Vt.colorBrand40),Gt.extend("--ft-chart-1-base","for line charts",Vt.colorBrand0),Gt.extend("--ft-chart-2-light","for area color charts",Vt.colorYellow60),Gt.extend("--ft-chart-2-base","for line charts",Vt.colorYellow100),Gt.extend("--ft-chart-3-light","",Vt.colorUltramarine40),Gt.extend("--ft-chart-3-base","",Vt.colorUltramarine70),Gt.extend("--ft-chart-4-light","",Vt.colorCyan50),Gt.extend("--ft-chart-4-base","",Vt.colorCyan100),Gt.extend("--ft-chart-5-light","",Vt.colorRed40),Gt.extend("--ft-chart-5-base","",Vt.colorRed60),Gt.extend("--ft-chart-6-light","",Vt.colorGreen40),Gt.extend("--ft-chart-6-base","",Vt.colorGreen70),Gt.extend("--ft-chart-7-light","",Vt.colorOrange70),Gt.extend("--ft-chart-7-base","",Vt.colorOrange100),Gt.extend("--ft-chart-8-light","",Vt.colorAvocado70),Gt.extend("--ft-chart-8-base","",Vt.colorAvocado200),Gt.extend("--ft-chart-9-light","",Vt.colorBrown50),Gt.extend("--ft-chart-9-base","",Vt.colorBrown200),Gt.extend("--ft-chart-10-light","",Vt.colorGray50),Gt.extend("--ft-chart-10-base","",Vt.colorGray80),Gt.extend("--ft-chart-monochrome-10","",Vt.colorBrand10),Gt.extend("--ft-chart-monochrome-20","",Vt.colorBrand20),Gt.extend("--ft-chart-monochrome-30","",Vt.colorBrand40),Gt.extend("--ft-chart-monochrome-40","",Vt.colorBrand60),Gt.extend("--ft-chart-monochrome-50","",Vt.colorBrand0),Gt.extend("--ft-chart-monochrome-60","",Vt.colorBrand200),Gt.extend("--ft-chip-large-horizontal-padding","",Vt.spacing4),Gt.extend("--ft-chip-large-vertical-padding","",Vt.spacing2),Gt.extend("--ft-chip-large-gap","",Vt.spacing1),Gt.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Gt.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Gt.extend("--ft-chip-large-border-radius","",Vt.borderRadiusPill),Gt.create("--ft-chip-large-border-width","","SIZE","1px"),Gt.extend("--ft-chip-large-icon-size","",Vt.iconSize3),Gt.extend("--ft-chip-medium-horizontal-padding","",Vt.spacing3),Gt.extend("--ft-chip-medium-vertical-padding","",Vt.spacing1),Gt.extend("--ft-chip-medium-gap","",Vt.spacing1),Gt.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Gt.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Gt.extend("--ft-chip-medium-border-radius","",Vt.borderRadiusPill),Gt.create("--ft-chip-medium-border-width","","SIZE","1px"),Gt.extend("--ft-chip-medium-icon-size","",Vt.iconSize2),Gt.extend("--ft-chip-small-horizontal-padding","",Vt.spacing2),Gt.extend("--ft-chip-small-vertical-padding","",Vt.spacing05),Gt.extend("--ft-chip-small-gap","",Vt.spacing1),Gt.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Gt.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Gt.extend("--ft-chip-small-border-radius","",Vt.borderRadiusPill),Gt.create("--ft-chip-small-border-width","","SIZE","1px"),Gt.extend("--ft-chip-small-icon-size","",Vt.iconSize1),Gt.extend("--ft-chip-neutral-background-color","",Yt.backgroundGlobalOnSurface),Gt.extend("--ft-chip-neutral-color","",Yt.contentGlobalPrimary),Gt.extend("--ft-chip-neutral-border-color","",Yt.borderGlobalSubtle),Gt.extend("--ft-chip-info-background-color","",Yt.backgroundInfoSubtle),Gt.extend("--ft-chip-info-color","",Yt.contentInfoPrimary),Gt.extend("--ft-chip-info-border-color","",Yt.borderInfoPrimary),Gt.extend("--ft-chip-success-background-color","",Yt.backgroundSuccessSubtle),Gt.extend("--ft-chip-success-color","",Yt.contentSuccessPrimary),Gt.extend("--ft-chip-success-border-color","",Yt.borderSuccessPrimary),Gt.extend("--ft-chip-warning-background-color","",Yt.backgroundWarningSubtle),Gt.extend("--ft-chip-warning-color","",Yt.contentWarningPrimary),Gt.extend("--ft-chip-warning-border-color","",Yt.borderWarningPrimary),Gt.extend("--ft-chip-error-background-color","",Yt.backgroundErrorSubtle),Gt.extend("--ft-chip-error-color","",Yt.contentErrorPrimary),Gt.extend("--ft-chip-error-border-color","",Yt.borderErrorPrimary),Gt.create("--ft-notice-border-width","","SIZE","1px"),Gt.extend("--ft-notice-horizontal-padding","",Vt.spacing2),Gt.extend("--ft-notice-vertical-padding","",Vt.spacing1),Gt.extend("--ft-notice-border-radius","",Vt.borderRadiusS),Gt.extend("--ft-notice-gap","",Vt.spacing2),Gt.extend("--ft-notice-icon-size","",Vt.iconSize3),Gt.extend("--ft-notice-info-background-color","",Yt.backgroundInfoSubtle),Gt.extend("--ft-notice-info-border-color","",Yt.borderInfoPrimary),Gt.extend("--ft-notice-info-color","",Yt.contentInfoPrimary),Gt.extend("--ft-notice-warning-background-color","",Yt.backgroundWarningSubtle),Gt.extend("--ft-notice-warning-border-color","",Yt.borderWarningPrimary),Gt.extend("--ft-notice-warning-color","",Yt.contentWarningPrimary),Gt.extend("--ft-checkbox-label-color","",Yt.contentGlobalPrimary),Gt.extend("--ft-checkbox-checked-background-color","",Yt.contentActionPrimary),Gt.extend("--ft-checkbox-checked-state-layer-color","",Yt.contentActionPrimary),Gt.extend("--ft-checkbox-checked-color","",Yt.contentGlobalOnColor),Gt.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Vt.opacity16),Gt.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Vt.opacity16),Gt.extend("--ft-checkbox-checked-state-layer-opacity-active","",Vt.opacity24),Gt.extend("--ft-checkbox-checked-component-opacity-disabled","",Vt.opacity40),Gt.extend("--ft-checkbox-unchecked-border-color","",Vt.colorGray80),Gt.extend("--ft-checkbox-unchecked-state-layer-color","",Vt.colorGray80),Gt.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Vt.opacity16),Gt.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Vt.opacity16),Gt.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Vt.opacity24),Gt.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Vt.opacity40),Gt.extend("--ft-checkbox-focus-focus-ring-color","",Yt.borderActionFocusRing),Gt.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Gt.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Gt.extend("--ft-checkbox-gap","",Vt.spacing3),Gt.extend("--ft-toggle-off-state-layer-opacity-hover","",Vt.opacity16),Gt.extend("--ft-toggle-off-state-layer-opacity-focus","",Vt.opacity16),Gt.extend("--ft-toggle-off-state-layer-opacity-active","",Vt.opacity24),Gt.extend("--ft-toggle-off-component-opacity-disabled","",Vt.opacity40),Gt.extend("--ft-toggle-off-background-color","",Yt.contentGlobalSubtle),Gt.extend("--ft-toggle-off-icon-color","",Yt.contentGlobalSubtle),Gt.extend("--ft-toggle-off-state-layer-color","",Yt.contentGlobalSubtle),Gt.extend("--ft-toggle-on-state-layer-opacity-hover","",Vt.opacity16),Gt.extend("--ft-toggle-on-state-layer-opacity-focus","",Vt.opacity16),Gt.extend("--ft-toggle-on-state-layer-opacity-active","",Vt.opacity24),Gt.extend("--ft-toggle-on-component-opacity-disabled","",Vt.opacity40),Gt.extend("--ft-toggle-on-background-color","",Yt.contentActionPrimary),Gt.extend("--ft-toggle-on-icon-color","",Yt.contentActionPrimary),Gt.extend("--ft-toggle-on-state-layer-color","",Yt.contentActionPrimary),Gt.extend("--ft-toggle-label-color","",Yt.contentGlobalPrimary),Gt.extend("--ft-toggle-focus-focus-ring-color","",Yt.borderActionFocusRing),Gt.extend("--ft-toggle-gap","",Vt.spacing3),Gt.extend("--ft-radio-label-color","",Yt.contentGlobalPrimary),Gt.extend("--ft-radio-selected-color","",Yt.contentActionPrimary),Gt.extend("--ft-radio-selected-state-layer-color","",Yt.contentActionPrimary),Gt.extend("--ft-radio-selected-state-layer-opacity-hover","",Vt.opacity16),Gt.extend("--ft-radio-selected-state-layer-opacity-focus","",Vt.opacity16),Gt.extend("--ft-radio-selected-state-layer-opacity-active","",Vt.opacity24),Gt.extend("--ft-radio-selected-component-opacity-disabled","",Vt.opacity40),Gt.extend("--ft-radio-unselected-state-layer-color","",Vt.colorGray80),Gt.extend("--ft-radio-unselected-state-layer-opacity-hover","",Vt.opacity16),Gt.extend("--ft-radio-unselected-state-layer-opacity-focus","",Vt.opacity16),Gt.extend("--ft-radio-unselected-state-layer-opacity-active","",Vt.opacity24),Gt.extend("--ft-radio-unselected-component-opacity-disabled","",Vt.opacity40),Gt.extend("--ft-radio-focus-focus-ring-color","",Yt.borderActionFocusRing),Gt.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Gt.create("--ft-radio-focus-outline-width","","SIZE","2px"),Gt.extend("--ft-radio-gap","",Vt.spacing3),Gt.extend("--ft-notification-icon-size","",Vt.iconSize4),Gt.extend("--ft-notification-horizontal-padding","",Vt.spacing4),Gt.extend("--ft-notification-vertical-padding","",Vt.spacing4),Gt.extend("--ft-notification-info-background-color","",Yt.backgroundInfoSubtle),Gt.extend("--ft-notification-info-color","",Yt.contentInfoPrimary),Gt.extend("--ft-notification-info-border-color","",Yt.borderInfoPrimary),Gt.extend("--ft-notification-success-background-color","",Yt.backgroundSuccessSubtle),Gt.extend("--ft-notification-success-color","",Yt.contentSuccessPrimary),Gt.extend("--ft-notification-success-border-color","",Yt.borderSuccessPrimary),Gt.extend("--ft-notification-warning-background-color","",Yt.backgroundWarningSubtle),Gt.extend("--ft-notification-warning-color","",Yt.contentWarningPrimary),Gt.extend("--ft-notification-warning-border-color","",Yt.borderWarningPrimary),Gt.extend("--ft-notification-error-background-color","",Yt.backgroundErrorSubtle),Gt.extend("--ft-notification-error-color","",Yt.contentErrorPrimary),Gt.extend("--ft-notification-error-border-color","",Yt.borderErrorPrimary),Gt.extend("--ft-notification-border-radius","",Vt.borderRadiusPill),Gt.create("--ft-notification-border-width","","SIZE","1px"),Gt.extend("--ft-notification-gap-leading","",Vt.spacing2),Gt.extend("--ft-notification-gap-trailing","",Vt.spacing8);const Xt=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.titleFont),Jt=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.contentFont),te={fontFamily:Jt,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ee=e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Xt),oe=e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",te.fontSize,"20px"),ie=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",te.fontWeight,"normal"),re=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",te.letterSpacing,"0.15px"),ne=e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",te.lineHeight,"1.2"),ae=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",te.textTransform,"inherit"),se=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Xt),le=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",te.fontSize,"14px"),ce=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",te.fontWeight,"normal"),he=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",te.letterSpacing,"0.105px"),pe=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",te.lineHeight,"1.7"),fe=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",te.textTransform,"inherit"),de=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",Jt),ue=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",te.fontSize,"16px"),ge=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",te.fontWeight,"600"),ye=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",te.letterSpacing,"0.144px"),be=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",te.lineHeight,"1.5"),me=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",te.textTransform,"inherit"),ve=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",Jt),xe=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",te.fontSize,"14px"),Oe=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",te.fontWeight,"normal"),Se=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",te.letterSpacing,"0.098px"),Ne=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",te.lineHeight,"1.7"),$e=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",te.textTransform,"inherit"),we=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",Jt),Ce=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",te.fontSize,"16px"),ke=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",te.fontWeight,"normal"),Ie=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",te.letterSpacing,"0.496px"),Ee=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",te.lineHeight,"1.5"),Re=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",te.textTransform,"inherit"),Ue={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",Jt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",te.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",te.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",te.letterSpacing,"0.252px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",te.lineHeight,"1.4"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",te.textTransform,"inherit")},Le=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",Jt),We=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",te.fontSize,"12px"),ze=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",te.fontWeight,"normal"),Be=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",te.letterSpacing,"0.396px"),Ke=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",te.lineHeight,"1.33"),De=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",te.textTransform,"inherit"),Ae=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",Jt),Ze=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",te.fontSize,"10px"),Fe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",te.fontWeight,"normal"),Te=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",te.letterSpacing,"0.33px"),He=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",te.lineHeight,"1.6"),Pe=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",te.textTransform,"inherit"),je=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",Jt),Me=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",te.fontSize,"10px"),_e=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",te.fontWeight,"normal"),Ge=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",te.letterSpacing,"1.5px"),Ve=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",te.lineHeight,"1.6"),qe=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",te.textTransform,"uppercase"),Ye={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",Jt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",te.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",te.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",te.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",te.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",te.textTransform,"uppercase")},Qe=o.css`
|
|
146
146
|
.ft-typography--title {
|
|
147
147
|
font-family: ${ee};
|
|
148
148
|
font-size: ${oe};
|
|
@@ -151,7 +151,7 @@ const Ft=Symbol.for(""),Tt=t=>{if(t?.r===Ft)return t?._$litStatic$},Ht=t=>({_$li
|
|
|
151
151
|
line-height: ${ne};
|
|
152
152
|
text-transform: ${ae};
|
|
153
153
|
}
|
|
154
|
-
`,
|
|
154
|
+
`,Xe=o.css`
|
|
155
155
|
.ft-typography--title-dense {
|
|
156
156
|
font-family: ${se};
|
|
157
157
|
font-size: ${le};
|
|
@@ -253,7 +253,7 @@ const Ft=Symbol.for(""),Tt=t=>{if(t?.r===Ft)return t?._$litStatic$},Ht=t=>({_$li
|
|
|
253
253
|
</${Ht(this.element)}>
|
|
254
254
|
`:jt`
|
|
255
255
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
256
|
-
`}}fo.styles=[Xe,
|
|
256
|
+
`}}fo.styles=[Qe,Xe,Je,to,eo,oo,io,ro,no,ao,so,...lo],po([r.property()],fo.prototype,"element",void 0),po([r.property()],fo.prototype,"variant",void 0),e.customElement("ft-typography")(fo),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=""}(co||(co={})),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=""}(ho||(ho={})),new Map([...["abw"].map((t=>[t,ho.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,ho.AUDIO])),...["avi"].map((t=>[t,ho.AVI])),...["chm","xhs"].map((t=>[t,ho.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,ho.CODE])),...["csv"].map((t=>[t,ho.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ho.DITA])),...["epub"].map((t=>[t,ho.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ho.EXCEL])),...["flac"].map((t=>[t,ho.FLAC])),...["gif"].map((t=>[t,ho.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ho.GZIP])),...["html","htm","xhtml"].map((t=>[t,ho.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,ho.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ho.JPEG])),...["json"].map((t=>[t,ho.JSON])),...["m4a","m4p"].map((t=>[t,ho.M4A])),...["mov","qt"].map((t=>[t,ho.MOV])),...["mp3"].map((t=>[t,ho.MP3])),...["mp4","m4v"].map((t=>[t,ho.MP4])),...["ogg","oga"].map((t=>[t,ho.OGG])),...["pdf","ps"].map((t=>[t,ho.PDF])),...["png"].map((t=>[t,ho.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ho.POWERPOINT])),...["rar"].map((t=>[t,ho.RAR])),...["stp"].map((t=>[t,ho.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ho.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,ho.VIDEO])),...["wav"].map((t=>[t,ho.WAV])),...["wma"].map((t=>[t,ho.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ho.WORD])),...["xml","xsl","rdf"].map((t=>[t,ho.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ho.YAML])),...["zip"].map((t=>[t,ho.ZIP]))]);const uo={size:e.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},go=o.css`
|
|
257
257
|
:host, i.ft-icon {
|
|
258
258
|
display: inline-flex;
|
|
259
259
|
align-items: center;
|
|
@@ -639,7 +639,7 @@ const Ft=Symbol.for(""),Tt=t=>{if(t?.r===Ft)return t?._$litStatic$},Ht=t=>({_$li
|
|
|
639
639
|
}
|
|
640
640
|
|
|
641
641
|
.ft-button:focus-visible {
|
|
642
|
-
outline-color: ${
|
|
642
|
+
outline-color: ${Qt.focusFocusRingColor};
|
|
643
643
|
outline-style: solid;
|
|
644
644
|
}
|
|
645
645
|
|
|
@@ -668,146 +668,146 @@ const Ft=Symbol.for(""),Tt=t=>{if(t?.r===Ft)return t?._$litStatic$},Ht=t=>({_$li
|
|
|
668
668
|
/** Primary styles **/
|
|
669
669
|
|
|
670
670
|
.ft-button--primary {
|
|
671
|
-
${e.setVariable(vo.color,
|
|
671
|
+
${e.setVariable(vo.color,Qt.primaryIconColor)};
|
|
672
672
|
|
|
673
|
-
${e.setVariable(V.color,
|
|
674
|
-
${e.setVariable(V.opacityContentOnSurfaceHover,
|
|
675
|
-
${e.setVariable(V.opacityContentOnSurfaceFocused,
|
|
676
|
-
${e.setVariable(V.opacityContentOnSurfaceSelected,
|
|
677
|
-
${e.setVariable(V.opacityContentOnSurfacePressed,
|
|
673
|
+
${e.setVariable(V.color,Qt.primaryStateLayerColor)};
|
|
674
|
+
${e.setVariable(V.opacityContentOnSurfaceHover,Qt.primaryStateLayerOpacityHover)};
|
|
675
|
+
${e.setVariable(V.opacityContentOnSurfaceFocused,Qt.primaryStateLayerOpacityFocus)};
|
|
676
|
+
${e.setVariable(V.opacityContentOnSurfaceSelected,Qt.primaryStateLayerOpacityActive)};
|
|
677
|
+
${e.setVariable(V.opacityContentOnSurfacePressed,Qt.primaryStateLayerOpacityActive)};
|
|
678
678
|
|
|
679
|
-
background-color: ${
|
|
680
|
-
color: ${
|
|
679
|
+
background-color: ${Qt.primaryBackgroundColor};
|
|
680
|
+
color: ${Qt.primaryColor};
|
|
681
681
|
border-style: none;
|
|
682
682
|
}
|
|
683
683
|
|
|
684
684
|
.ft-button--primary[disabled] {
|
|
685
|
-
opacity: ${
|
|
685
|
+
opacity: ${Qt.primaryComponentOpacityDisabled};
|
|
686
686
|
}
|
|
687
687
|
|
|
688
688
|
.ft-button--primary ft-icon {
|
|
689
|
-
color: ${
|
|
689
|
+
color: ${Qt.primaryIconColor};
|
|
690
690
|
}
|
|
691
691
|
|
|
692
692
|
/** Secondary styles **/
|
|
693
693
|
|
|
694
694
|
.ft-button--secondary {
|
|
695
|
-
${e.setVariable(vo.color,
|
|
695
|
+
${e.setVariable(vo.color,Qt.secondaryIconColor)};
|
|
696
696
|
|
|
697
|
-
${e.setVariable(V.color,
|
|
698
|
-
${e.setVariable(V.opacityContentOnSurfaceHover,
|
|
699
|
-
${e.setVariable(V.opacityContentOnSurfaceFocused,
|
|
700
|
-
${e.setVariable(V.opacityContentOnSurfaceSelected,
|
|
701
|
-
${e.setVariable(V.opacityContentOnSurfacePressed,
|
|
697
|
+
${e.setVariable(V.color,Qt.secondaryStateLayerColor)};
|
|
698
|
+
${e.setVariable(V.opacityContentOnSurfaceHover,Qt.secondaryStateLayerOpacityHover)};
|
|
699
|
+
${e.setVariable(V.opacityContentOnSurfaceFocused,Qt.secondaryStateLayerOpacityFocus)};
|
|
700
|
+
${e.setVariable(V.opacityContentOnSurfaceSelected,Qt.secondaryStateLayerOpacityActive)};
|
|
701
|
+
${e.setVariable(V.opacityContentOnSurfacePressed,Qt.secondaryStateLayerOpacityActive)};
|
|
702
702
|
|
|
703
|
-
background-color: ${
|
|
704
|
-
color: ${
|
|
705
|
-
border-color: ${
|
|
703
|
+
background-color: ${Qt.secondaryBackgroundColor};
|
|
704
|
+
color: ${Qt.secondaryColor};
|
|
705
|
+
border-color: ${Qt.secondaryBorderColor};
|
|
706
706
|
border-style: solid;
|
|
707
707
|
}
|
|
708
708
|
|
|
709
709
|
.ft-button--secondary[disabled] {
|
|
710
|
-
opacity: ${
|
|
710
|
+
opacity: ${Qt.secondaryComponentOpacityDisabled};
|
|
711
711
|
}
|
|
712
712
|
|
|
713
713
|
.ft-button--secondary ft-icon {
|
|
714
|
-
color: ${
|
|
714
|
+
color: ${Qt.secondaryIconColor};
|
|
715
715
|
}
|
|
716
716
|
|
|
717
717
|
/** Tertiary styles **/
|
|
718
718
|
|
|
719
719
|
.ft-button--tertiary {
|
|
720
|
-
${e.setVariable(vo.color,
|
|
720
|
+
${e.setVariable(vo.color,Qt.tertiaryIconColor)};
|
|
721
721
|
|
|
722
|
-
${e.setVariable(V.color,
|
|
723
|
-
${e.setVariable(V.opacityContentOnSurfaceHover,
|
|
724
|
-
${e.setVariable(V.opacityContentOnSurfaceFocused,
|
|
725
|
-
${e.setVariable(V.opacityContentOnSurfaceSelected,
|
|
726
|
-
${e.setVariable(V.opacityContentOnSurfacePressed,
|
|
722
|
+
${e.setVariable(V.color,Qt.tertiaryStateLayerColor)};
|
|
723
|
+
${e.setVariable(V.opacityContentOnSurfaceHover,Qt.tertiaryStateLayerOpacityHover)};
|
|
724
|
+
${e.setVariable(V.opacityContentOnSurfaceFocused,Qt.tertiaryStateLayerOpacityFocus)};
|
|
725
|
+
${e.setVariable(V.opacityContentOnSurfaceSelected,Qt.tertiaryStateLayerOpacityActive)};
|
|
726
|
+
${e.setVariable(V.opacityContentOnSurfacePressed,Qt.tertiaryStateLayerOpacityActive)};
|
|
727
727
|
|
|
728
|
-
background-color: ${
|
|
729
|
-
color: ${
|
|
728
|
+
background-color: ${Qt.tertiaryBackgroundColor};
|
|
729
|
+
color: ${Qt.tertiaryColor};
|
|
730
730
|
border-style: none;
|
|
731
731
|
}
|
|
732
732
|
|
|
733
733
|
.ft-button--tertiary[disabled] {
|
|
734
|
-
opacity: ${
|
|
734
|
+
opacity: ${Qt.tertiaryComponentOpacityDisabled};
|
|
735
735
|
}
|
|
736
736
|
|
|
737
737
|
.ft-button--tertiary ft-icon {
|
|
738
|
-
color: ${
|
|
738
|
+
color: ${Qt.tertiaryIconColor};
|
|
739
739
|
}
|
|
740
740
|
|
|
741
741
|
/** Neutral styles **/
|
|
742
742
|
|
|
743
743
|
.ft-button--neutral {
|
|
744
|
-
${e.setVariable(vo.color,
|
|
744
|
+
${e.setVariable(vo.color,Qt.neutralIconColor)};
|
|
745
745
|
|
|
746
|
-
${e.setVariable(V.backgroundColor,
|
|
747
|
-
${e.setVariable(V.opacityContentOnSurfaceHover,
|
|
748
|
-
${e.setVariable(V.opacityContentOnSurfaceFocused,
|
|
749
|
-
${e.setVariable(V.opacityContentOnSurfaceSelected,
|
|
750
|
-
${e.setVariable(V.opacityContentOnSurfacePressed,
|
|
746
|
+
${e.setVariable(V.backgroundColor,Qt.neutralStateLayerColor)};
|
|
747
|
+
${e.setVariable(V.opacityContentOnSurfaceHover,Qt.neutralStateLayerOpacityHover)};
|
|
748
|
+
${e.setVariable(V.opacityContentOnSurfaceFocused,Qt.neutralStateLayerOpacityFocus)};
|
|
749
|
+
${e.setVariable(V.opacityContentOnSurfaceSelected,Qt.neutralStateLayerOpacityActive)};
|
|
750
|
+
${e.setVariable(V.opacityContentOnSurfacePressed,Qt.neutralStateLayerOpacityActive)};
|
|
751
751
|
|
|
752
|
-
background-color: ${
|
|
753
|
-
color: ${
|
|
752
|
+
background-color: ${Qt.neutralBackgroundColor};
|
|
753
|
+
color: ${Qt.neutralColor};
|
|
754
754
|
border-style: none;
|
|
755
755
|
}
|
|
756
756
|
|
|
757
757
|
.ft-button--neutral[disabled] {
|
|
758
|
-
opacity: ${
|
|
758
|
+
opacity: ${Qt.neutralComponentOpacityDisabled};
|
|
759
759
|
}
|
|
760
760
|
|
|
761
761
|
.ft-button--neutral ft-icon {
|
|
762
|
-
color: ${
|
|
762
|
+
color: ${Qt.neutralIconColor};
|
|
763
763
|
}
|
|
764
764
|
|
|
765
765
|
/** Large styles **/
|
|
766
766
|
|
|
767
767
|
.ft-button--large {
|
|
768
|
-
${e.setVariable(uo.size,
|
|
769
|
-
${e.setVariable(vo.size,
|
|
768
|
+
${e.setVariable(uo.size,Qt.largeIconSize)};
|
|
769
|
+
${e.setVariable(vo.size,Qt.largeIconSize)};
|
|
770
770
|
|
|
771
|
-
height: ${
|
|
772
|
-
padding: 0 ${
|
|
773
|
-
gap: ${
|
|
774
|
-
border-radius: ${
|
|
775
|
-
border-width: ${
|
|
771
|
+
height: ${Qt.largeHeight};
|
|
772
|
+
padding: 0 ${Qt.largeHorizontalPadding};
|
|
773
|
+
gap: ${Qt.largeGap};
|
|
774
|
+
border-radius: ${Qt.largeBorderRadius};
|
|
775
|
+
border-width: ${Qt.largeBorderWidth};
|
|
776
776
|
}
|
|
777
777
|
|
|
778
778
|
.ft-button--large:focus-visible {
|
|
779
|
-
outline-width: ${
|
|
780
|
-
outline-offset: ${
|
|
779
|
+
outline-width: ${Qt.largeFocusOutlineWidth};
|
|
780
|
+
outline-offset: ${Qt.largeFocusOutlineOffset};
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
.ft-button--large.ft-button--icon-only {
|
|
784
|
-
width: ${
|
|
784
|
+
width: ${Qt.largeIconOnlyWidth};
|
|
785
785
|
padding: unset;
|
|
786
786
|
}
|
|
787
787
|
|
|
788
788
|
/** Small styles **/
|
|
789
789
|
|
|
790
790
|
.ft-button--small {
|
|
791
|
-
${e.setVariable(uo.size,
|
|
792
|
-
${e.setVariable(vo.size,
|
|
791
|
+
${e.setVariable(uo.size,Qt.smallIconSize)};
|
|
792
|
+
${e.setVariable(vo.size,Qt.smallIconSize)};
|
|
793
793
|
|
|
794
|
-
height: ${
|
|
795
|
-
padding: 0 ${
|
|
796
|
-
gap: ${
|
|
797
|
-
border-radius: ${
|
|
798
|
-
border-width: ${
|
|
794
|
+
height: ${Qt.smallHeight};
|
|
795
|
+
padding: 0 ${Qt.smallHorizontalPadding};
|
|
796
|
+
gap: ${Qt.smallGap};
|
|
797
|
+
border-radius: ${Qt.smallBorderRadius};
|
|
798
|
+
border-width: ${Qt.smallBorderWidth};
|
|
799
799
|
}
|
|
800
800
|
|
|
801
801
|
.ft-button--small:focus-visible {
|
|
802
|
-
outline-width: ${
|
|
803
|
-
outline-offset: ${
|
|
802
|
+
outline-width: ${Qt.smallFocusOutlineWidth};
|
|
803
|
+
outline-offset: ${Qt.smallFocusOutlineOffset};
|
|
804
804
|
}
|
|
805
805
|
|
|
806
806
|
.ft-button--small.ft-button--icon-only {
|
|
807
|
-
width: ${
|
|
807
|
+
width: ${Qt.smallIconOnlyWidth};
|
|
808
808
|
padding: unset;
|
|
809
809
|
}
|
|
810
|
-
`,e.noTextSelect];var Mo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class _o extends To{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?Mt.caption1medium:Mt.body2medium}}_o.styles=[e.safariEllipsisFix,jo],Mo([r.property({type:Boolean})],_o.prototype,"primary",void 0),Mo([r.property({type:Boolean})],_o.prototype,"secondary",void 0),Mo([r.property({type:Boolean})],_o.prototype,"tertiary",void 0),Mo([r.property({type:Boolean})],_o.prototype,"neutral",void 0),Mo([r.property({type:Boolean})],_o.prototype,"small",void 0),e.customElement("ft-button")(Po),e.customElement("ftds-button")(_o);const Go=e.FtCssVariableFactory.extend("--ft-chip-color","",e.designSystemVariables.colorOnSurface),Vo={backgroundColor:e.FtCssVariableFactory.extend("--ft-chip-background-color","",e.designSystemVariables.colorSurface),color:Go,fontSize:e.FtCssVariableFactory.extend("--ft-chip-font-size","",Ue.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:e.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Go),horizontalPadding:e.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:e.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},qo=e.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",e.FtCssVariableFactory.extend("--ft-chip-color","",e.designSystemVariables.colorOnPrimary)),Yo={backgroundColor:e.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",e.FtCssVariableFactory.extend("--ft-chip-background-color","",e.designSystemVariables.colorPrimary)),color:qo,rippleColor:e.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",qo)},
|
|
810
|
+
`,e.noTextSelect];var Mo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class _o extends To{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?Mt.caption1medium:Mt.body2medium}}_o.styles=[e.safariEllipsisFix,jo],Mo([r.property({type:Boolean})],_o.prototype,"primary",void 0),Mo([r.property({type:Boolean})],_o.prototype,"secondary",void 0),Mo([r.property({type:Boolean})],_o.prototype,"tertiary",void 0),Mo([r.property({type:Boolean})],_o.prototype,"neutral",void 0),Mo([r.property({type:Boolean})],_o.prototype,"small",void 0),e.customElement("ft-button")(Po),e.customElement("ftds-button")(_o);const Go=e.FtCssVariableFactory.extend("--ft-chip-color","",e.designSystemVariables.colorOnSurface),Vo={backgroundColor:e.FtCssVariableFactory.extend("--ft-chip-background-color","",e.designSystemVariables.colorSurface),color:Go,fontSize:e.FtCssVariableFactory.extend("--ft-chip-font-size","",Ue.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:e.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Go),horizontalPadding:e.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:e.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},qo=e.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",e.FtCssVariableFactory.extend("--ft-chip-color","",e.designSystemVariables.colorOnPrimary)),Yo={backgroundColor:e.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",e.FtCssVariableFactory.extend("--ft-chip-background-color","",e.designSystemVariables.colorPrimary)),color:qo,rippleColor:e.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",qo)},Qo=e.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),Xo=e.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),Jo=[e.noTextSelect,o.css`
|
|
811
811
|
:host {
|
|
812
812
|
display: inline-block;
|
|
813
813
|
max-width: 100%;
|
|
@@ -846,8 +846,8 @@ const Ft=Symbol.for(""),Tt=t=>{if(t?.r===Ft)return t?._$litStatic$},Ht=t=>({_$li
|
|
|
846
846
|
|
|
847
847
|
.ft-chip--dense {
|
|
848
848
|
--ft-chip-internal-icon-padding: 3px;
|
|
849
|
-
--ft-chip-internal-vertical-padding: ${
|
|
850
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
849
|
+
--ft-chip-internal-vertical-padding: ${Xo};
|
|
850
|
+
--ft-chip-internal-horizontal-padding: ${Qo};
|
|
851
851
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
852
852
|
}
|
|
853
853
|
|
|
@@ -973,9 +973,9 @@ const Ft=Symbol.for(""),Tt=t=>{if(t?.r===Ft)return t?._$litStatic$},Ht=t=>({_$li
|
|
|
973
973
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
974
974
|
</span>
|
|
975
975
|
`:this.editorMode?"Select a context and a label key.":o.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}pi.elementDefinitions={},pi.styles=ii,hi([e.redux()],pi.prototype,"editorMode",void 0),hi([r.property()],pi.prototype,"context",void 0),hi([r.property()],pi.prototype,"key",void 0),hi([e.jsonProperty([])],pi.prototype,"args",void 0),hi([r.property()],pi.prototype,"defaultMessage",void 0);class fi{static build(t){return new fi(t)}static fromGwt(t){return new fi(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>R.resolveMessage(this.name,e,...t)})}}e.customElement("ft-i18n")(pi);const di=o.css`
|
|
976
|
-
`;var ui=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class gi extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class yi extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class bi extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class mi extends e.FtLitElementRedux{get stateManager(){return null==this._stateManager&&(this._stateManager=H.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.filters=[],this.sort=[],this.addStore(w)}render(){return o.html`
|
|
976
|
+
`;var ui=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class gi extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class yi extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class bi extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class mi extends e.FtLitElementRedux{get stateManager(){return null==this._stateManager&&(this._stateManager=H.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.filters=[],this.sort=[],this.addStore(w)}render(){return o.html`
|
|
977
977
|
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
978
|
-
`}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new yi(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new bi(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new gi(t))}reloadSavedSearches(){A.clearMySearches()}}mi.elementDefinitions={},mi.styles=di,ui([r.property()],mi.prototype,"query",void 0),ui([r.property()],mi.prototype,"contentLocale",void 0),ui([r.property({type:Number})],mi.prototype,"pageSize",void 0),ui([r.property({type:Boolean})],mi.prototype,"searchInDocumentTitlesOnly",void 0),ui([e.jsonProperty([])],mi.prototype,"filters",void 0),ui([e.jsonProperty([])],mi.prototype,"sort",void 0),ui([e.redux({store:"search"})],mi.prototype,"request",void 0),ui([e.redux({store:"search"})],mi.prototype,"paging",void 0),ui([e.redux({store:"search",selector:t=>t.spellcheck})],mi.prototype,"autocorrect",void 0),ui([e.redux({store:w.name})],mi.prototype,"session",void 0),e.customElement("ft-search-context")(mi);const vi=o.css`
|
|
978
|
+
`}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new yi(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new bi(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new gi(t))}reloadSavedSearches(){A.clearMySearches()}clear(){this.stateManager.clear()}}mi.elementDefinitions={},mi.styles=di,ui([r.property()],mi.prototype,"query",void 0),ui([r.property()],mi.prototype,"contentLocale",void 0),ui([r.property({type:Number})],mi.prototype,"pageSize",void 0),ui([r.property({type:Boolean})],mi.prototype,"searchInDocumentTitlesOnly",void 0),ui([r.property()],mi.prototype,"scope",void 0),ui([r.property({type:Boolean})],mi.prototype,"ignoreEmptyQuery",void 0),ui([e.jsonProperty([])],mi.prototype,"filters",void 0),ui([e.jsonProperty([])],mi.prototype,"sort",void 0),ui([e.redux({store:"search"})],mi.prototype,"request",void 0),ui([e.redux({store:"search"})],mi.prototype,"paging",void 0),ui([e.redux({store:"search",selector:t=>t.spellcheck})],mi.prototype,"autocorrect",void 0),ui([e.redux({store:w.name})],mi.prototype,"session",void 0),e.customElement("ft-search-context")(mi);const vi=o.css`
|
|
979
979
|
`,xi=e.FtCssVariableFactory.extend("--ft-checkbox-text-color","",e.designSystemVariables.colorOnSurfaceHigh),Oi=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),Si=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnPrimary,"Design system"),Ni=e.FtCssVariableFactory.extend("--ft-checkbox-border-color","",e.designSystemVariables.colorOnSurfaceMedium),$i=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),wi=o.css`
|
|
980
980
|
* {
|
|
981
981
|
box-sizing: border-box;
|
|
@@ -1471,7 +1471,7 @@ const Ft=Symbol.for(""),Tt=t=>{if(t?.r===Ft)return t?._$litStatic$},Ht=t=>({_$li
|
|
|
1471
1471
|
@click=${this.next}
|
|
1472
1472
|
></ft-button>
|
|
1473
1473
|
</div>
|
|
1474
|
-
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new _i(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,o;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(o=this.contentSlot)||void 0===o||o.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}Gi.elementDefinitions={"ft-button":Po},Gi.styles=ji,Mi([r.property({type:Boolean})],Gi.prototype,"horizontal",void 0),Mi([r.property({type:Boolean})],Gi.prototype,"hideScrollbar",void 0),Mi([r.property({type:Boolean})],Gi.prototype,"controls",void 0),Mi([r.property({type:Boolean})],Gi.prototype,"limitSize",void 0),Mi([r.state()],Gi.prototype,"elements",void 0),Mi([r.state()],Gi.prototype,"currentElement",void 0),Mi([r.state()],Gi.prototype,"withScroll",void 0),Mi([r.state()],Gi.prototype,"startReached",void 0),Mi([r.state()],Gi.prototype,"endReached",void 0),Mi([r.query(".ft-snap-scroll--content")],Gi.prototype,"contentSlot",void 0),e.customElement("ft-snap-scroll")(Gi);const Vi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),qi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),Yi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),
|
|
1474
|
+
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new _i(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,o;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(o=this.contentSlot)||void 0===o||o.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}Gi.elementDefinitions={"ft-button":Po},Gi.styles=ji,Mi([r.property({type:Boolean})],Gi.prototype,"horizontal",void 0),Mi([r.property({type:Boolean})],Gi.prototype,"hideScrollbar",void 0),Mi([r.property({type:Boolean})],Gi.prototype,"controls",void 0),Mi([r.property({type:Boolean})],Gi.prototype,"limitSize",void 0),Mi([r.state()],Gi.prototype,"elements",void 0),Mi([r.state()],Gi.prototype,"currentElement",void 0),Mi([r.state()],Gi.prototype,"withScroll",void 0),Mi([r.state()],Gi.prototype,"startReached",void 0),Mi([r.state()],Gi.prototype,"endReached",void 0),Mi([r.query(".ft-snap-scroll--content")],Gi.prototype,"contentSlot",void 0),e.customElement("ft-snap-scroll")(Gi);const Vi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),qi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),Yi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),Qi=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),Xi=e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),Ji=e.FtCssVariableFactory.external(e.designSystemVariables.transitionDuration,"Design system"),tr=e.FtCssVariableFactory.external(e.designSystemVariables.transitionTimingFunction,"Design system"),er=[io,o.css`
|
|
1475
1475
|
:host {
|
|
1476
1476
|
display: flex;
|
|
1477
1477
|
max-height: 100%;
|
|
@@ -1536,9 +1536,9 @@ const Ft=Symbol.for(""),Tt=t=>{if(t?.r===Ft)return t?._$litStatic$},Ht=t=>({_$li
|
|
|
1536
1536
|
border-radius: 4px;
|
|
1537
1537
|
border: 1px solid ${Vi};
|
|
1538
1538
|
padding: 4px;
|
|
1539
|
-
background-color: ${
|
|
1539
|
+
background-color: ${Xi};
|
|
1540
1540
|
color: ${qi};
|
|
1541
|
-
outline-color: ${
|
|
1541
|
+
outline-color: ${Qi};
|
|
1542
1542
|
}
|
|
1543
1543
|
|
|
1544
1544
|
input::placeholder {
|
|
@@ -137,7 +137,7 @@ let Ce=class extends _t{constructor(){super(...arguments),this.renderOptions={ho
|
|
|
137
137
|
*/var pr,dr,ur,yr,gr,br,vr,mr,xr,Or,wr,Sr,Nr,$r;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function f(t){var e=new FileReader,o=h(e);return e.readAsArrayBuffer(t),o}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,o=h(e);return e.readAsText(t),o}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=s(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=s(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),a(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,e){var o,i,r=(e=e||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),u.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var v=[301,302,303,307,308];b.redirect=function(t,e){if(-1===v.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function m(t,i){return new Promise((function(r,n){var s=new y(t,i);if(s.signal&&s.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var t,e,o={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in a?a.responseURL:o.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new b(i,o))},a.onerror=function(){n(new TypeError("Network request failed"))},a.ontimeout=function(){n(new TypeError("Network request failed"))},a.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o.blob&&(a.responseType="blob"),s.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),s.signal&&(s.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",c)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}m.polyfill=!0,t.fetch||(t.fetch=m,t.Headers=l,t.Request=y,t.Response=b),e.Headers=l,e.Request=y,e.Response=b,e.fetch=m,Object.defineProperty(e,"W",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(pr||(pr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(dr||(dr={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(ur||(ur={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(yr||(yr={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(gr||(gr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(br||(br={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(vr||(vr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(mr||(mr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(xr||(xr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Or||(Or={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(wr||(wr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Sr||(Sr={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Nr||(Nr={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}($r||($r={})),$r.PERSONAL_BOOK_SHARE_USER,$r.PERSONAL_BOOK_USER,$r.HTML_EXPORT_USER,$r.PERSONAL_BOOK_USER,$r.PDF_EXPORT_USER,$r.PERSONAL_BOOK_USER,$r.KHUB_ADMIN,$r.CONTENT_PUBLISHER,$r.ADMIN,$r.KHUB_ADMIN,$r.USERS_ADMIN,$r.PORTAL_ADMIN,$r.DEVELOPER,$r.BETA_USER,$r.DEBUG_USER;const Cr=Rt`
|
|
138
138
|
`,Er=Zi.get({name:"ft-app-info",reducers:{setBaseUrl:(t,e)=>{t.baseUrl=e.payload},setApiIntegrationIdentifier:(t,e)=>{t.apiIntegrationIdentifier=e.payload},setUiLocale:(t,e)=>{t.uiLocale=e.payload},setAvailableUiLocales:(t,e)=>{t.availableUiLocales=e.payload},setEditorMode:(t,e)=>{t.editorMode=e.payload},setNoCustom:(t,e)=>{t.noCustom=e.payload},setNoCustomComponent:(t,e)=>{t.noCustomComponent=e.payload},setSession:(t,e)=>{t.session=e.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class kr{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Er.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?kr.build(t):null!==(e=kr.API)&&void 0!==e?e:kr.API=kr.build()}static await(t){return new Promise((e=>{let o=kr.get(t);if(o)e(o);else{const i=Er.subscribe((()=>{o=kr.get(t),o&&(i(),e(o))}))}}))}}var Rr;const Ir=Symbol("clearAfterUnitTest");class Ur{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new r,this.listeners={},this.currentUiLocale="",this[Rr]=()=>{this.defaultMessages={},this.cache=new r,this.listeners={}},this.currentUiLocale=Er.getState().uiLocale,Er.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Er.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const i={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};z(this.defaultMessages[t],i)||(this.defaultMessages[t]=i,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var i,r,n;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(r=null===(i=this.cache.getNow(t))||void 0===i?void 0:i.messages)&&void 0!==r?r:{};return new Ge(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},s).resolve(e,...o)}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,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}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=>W(0).then((()=>t())).catch((()=>null)))))}}Rr=Ir,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new Ur((async(t,e)=>(await kr.await()).getFluidTopicsMessageContext(t,e)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new Ur((async(t,e)=>(await kr.await()).getCustomMessageContext(t,e))));const Lr=window.FluidTopicsI18nService,Ar=window.FluidTopicsCustomI18nService;var Wr=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class jr extends Ze{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=()=>kr.get(),this.cache=new r,this.cleanSessionDebouncer=new n}render(){return fe`
|
|
139
139
|
<slot></slot>
|
|
140
|
-
`}update(t){super.update(t),t.has("baseUrl")&&Er.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Er.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Er.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Er.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Er.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Er.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Er.actions.setSession(this.session),t.has("availableUiLocales")&&Er.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Lr.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 e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}jr.elementDefinitions={},jr.styles=Cr,Wr([R()],jr.prototype,"baseUrl",void 0),Wr([R()],jr.prototype,"apiIntegrationIdentifier",void 0),Wr([R()],jr.prototype,"uiLocale",void 0),Wr([D([])],jr.prototype,"availableUiLocales",void 0),Wr([R({type:Boolean})],jr.prototype,"editorMode",void 0),Wr([R({type:Boolean})],jr.prototype,"noCustom",void 0),Wr([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],jr.prototype,"noCustomComponent",void 0),Wr([R({type:Boolean})],jr.prototype,"withManualResources",void 0),Wr([D([])],jr.prototype,"messageContexts",void 0),Wr([D(void 0)],jr.prototype,"session",void 0),Wr([R({type:Object})],jr.prototype,"apiProvider",void 0);class zr{async listMySearches(){var t;return(null===(t=Er.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await kr.await()).listMySearches(Er.getState().session.profile.userId):[]}}const Fr=new r;class Dr{async listMyBookmarks(){return Fr.get("bookmarks",(async()=>(await kr.await()).listMyBookmarks(Er.getState().session.profile.userId)))}clearCache(){Fr.clear("bookmarks")}}const Br=Zi.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Pr=new class{constructor(){this.currentSession=Er.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Dr,Er.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Er.getState();z(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(){Br.actions.savedSearches(void 0)}clearMyBookmarks(){Br.actions.bookmarks(void 0)}async reloadMySearches(){const t=new zr,e=await t.listMySearches();Br.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Br.actions.bookmarks(e)}}};F("ft-app-context")(jr);class Kr{static async build(){return new Kr(await kr.await())}constructor(t){this.api=t,this.cache=new r,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const Mr=t=>t.request.virtualField===mr.TITLE_ONLY&&t.request.scope===Nr.DOCUMENTS;class Tr extends Event{constructor(){super(Tr.eventName)}}Tr.eventName="search-context-clear-all-filters";class Zr{static build(t){return new Zr((t=>Zi.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:fr}))(t.trim()||"context"),Kr.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.searchDebouncer=new n(100),this.suggestDebouncer=new n(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await W(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const i=t=>e.some((e=>e.lang==t));i(t)||(t=i(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(mr.TITLE_ONLY),this.store.actions.setRequestScope(Nr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(mr.EVERYWHERE),this.store.actions.setRequestScope(Nr.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return Mr(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Tr)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,i={key:t,values:e,negative:!1},r=[...o.filter((e=>e.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel(),this.
|
|
140
|
+
`}update(t){super.update(t),t.has("baseUrl")&&Er.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Er.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Er.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Er.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Er.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Er.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Er.actions.setSession(this.session),t.has("availableUiLocales")&&Er.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Lr.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 e=await t.getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),e.idleTimeoutInMillis),e}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}jr.elementDefinitions={},jr.styles=Cr,Wr([R()],jr.prototype,"baseUrl",void 0),Wr([R()],jr.prototype,"apiIntegrationIdentifier",void 0),Wr([R()],jr.prototype,"uiLocale",void 0),Wr([D([])],jr.prototype,"availableUiLocales",void 0),Wr([R({type:Boolean})],jr.prototype,"editorMode",void 0),Wr([R({type:Boolean})],jr.prototype,"noCustom",void 0),Wr([R({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],jr.prototype,"noCustomComponent",void 0),Wr([R({type:Boolean})],jr.prototype,"withManualResources",void 0),Wr([D([])],jr.prototype,"messageContexts",void 0),Wr([D(void 0)],jr.prototype,"session",void 0),Wr([R({type:Object})],jr.prototype,"apiProvider",void 0);class zr{async listMySearches(){var t;return(null===(t=Er.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await kr.await()).listMySearches(Er.getState().session.profile.userId):[]}}const Fr=new r;class Dr{async listMyBookmarks(){return Fr.get("bookmarks",(async()=>(await kr.await()).listMyBookmarks(Er.getState().session.profile.userId)))}clearCache(){Fr.clear("bookmarks")}}const Br=Zi.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Pr=new class{constructor(){this.currentSession=Er.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Dr,Er.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Er.getState();z(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(){Br.actions.savedSearches(void 0)}clearMyBookmarks(){Br.actions.bookmarks(void 0)}async reloadMySearches(){const t=new zr,e=await t.listMySearches();Br.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Br.actions.bookmarks(e)}}};F("ft-app-context")(jr);class Kr{static async build(){return new Kr(await kr.await())}constructor(t){this.api=t,this.cache=new r,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const Mr=t=>t.request.virtualField===mr.TITLE_ONLY&&t.request.scope===Nr.DOCUMENTS;class Tr extends Event{constructor(){super(Tr.eventName)}}Tr.eventName="search-context-clear-all-filters";class Zr{static build(t){return new Zr((t=>Zi.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:fr}))(t.trim()||"context"),Kr.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.ignoreEmptyQuery=!1,this.searchDebouncer=new n(100),this.suggestDebouncer=new n(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await W(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let e=this.store.getState().locales,o=this.store.getState().request.contentLocale;if(t!=o){if(e){const i=t=>e.some((e=>e.lang==t));i(t)||(t=i(o)?o:e[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const e=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(e),this.store.actions.setPageNumber(1),e.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(mr.TITLE_ONLY),this.store.actions.setRequestScope(Nr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(mr.EVERYWHERE),this.store.actions.setRequestScope(Nr.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return Mr(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Tr)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,e){let o=this.facetIds.filter((e=>e!=t));e&&o.push(e),this.facetIds=o,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let e=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(e)}setFilter(t,e){let o=this.store.getState().request.filters,i={key:t,values:e,negative:!1},r=[...o.filter((e=>e.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(t){this.store.actions.setRequestScope(t),this.launchSearch()}setIgnoreEmptyQuery(t){this.ignoreEmptyQuery=t,this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,o;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel();let e=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&0==e.query.length)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=i(this.service.launchSearch(e));const t=await this.cancelableSearch;if(t.paging.currentPage<=1)this.store.actions.setResults(t.results),this.store.actions.setFacets(t.facets),this.store.actions.setSpellcheck(t.spellcheck);else{let e=(null!==(o=this.store.getState().results)&&void 0!==o?o:[]).concat(t.results);this.store.actions.setResults(e)}this.store.actions.setPaging(t.paging)}}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),o=e.request,r={input:e.liveQuery,filters:o.filters,sort:o.sort,contentLocale:o.contentLocale,scope:o.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=i(this.service.launchSuggest(r));let n=await this.cancelableSuggest;this.store.actions.setSuggestResults(n.suggestions)}catch(t){t instanceof e||!this.errorHandler||this.errorHandler(t)}}clear(){this.store.clear()}}var _r=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class Hr extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Gr=Symbol("registerInterval");class Vr extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=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[Gr]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Gr]):this.dispatchEvent(new Hr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Gr,_r([I()],o.prototype,"stateManager",void 0),o}(eo)){}
|
|
141
141
|
/**
|
|
142
142
|
* @license
|
|
143
143
|
* Copyright 2018 Google LLC
|
|
@@ -1114,9 +1114,9 @@ function(t){return(e,o)=>{const{slot:i}=t??{},r="slot"+(i?`[name=${i}]`:":not([n
|
|
|
1114
1114
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1115
1115
|
</span>
|
|
1116
1116
|
`:this.editorMode?"Select a context and a label key.":de}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}ka.elementDefinitions={},ka.styles=xa,Ea([_i()],ka.prototype,"editorMode",void 0),Ea([R()],ka.prototype,"context",void 0),Ea([R()],ka.prototype,"key",void 0),Ea([D([])],ka.prototype,"args",void 0),Ea([R()],ka.prototype,"defaultMessage",void 0);class Ra{static build(t){return new Ra(t)}static fromGwt(t){return new Ra(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Lr.resolveMessage(this.name,e,...t)})}}F("ft-i18n")(ka);const Ia=Rt`
|
|
1117
|
-
`;var Ua=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class La extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class Aa extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class Wa extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class ja extends eo{get stateManager(){return null==this._stateManager&&(this._stateManager=Zr.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.filters=[],this.sort=[],this.addStore(Er)}render(){return fe`
|
|
1117
|
+
`;var Ua=function(t,e,o,i){for(var r,n=arguments.length,s=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,a=t.length-1;a>=0;a--)(r=t[a])&&(s=(n<3?r(s):n>3?r(e,o,s):r(e,o))||s);return n>3&&s&&Object.defineProperty(e,o,s),s};class La extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class Aa extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class Wa extends CustomEvent{constructor(t,e,o){super("ft-search-results-change",{detail:{request:t,paging:e,spellcheck:o}})}}class ja extends eo{get stateManager(){return null==this._stateManager&&(this._stateManager=Zr.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.filters=[],this.sort=[],this.addStore(Er)}render(){return fe`
|
|
1118
1118
|
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1119
|
-
`}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new Aa(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new Wa(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new La(t))}reloadSavedSearches(){Pr.clearMySearches()}}ja.elementDefinitions={},ja.styles=Ia,Ua([R()],ja.prototype,"query",void 0),Ua([R()],ja.prototype,"contentLocale",void 0),Ua([R({type:Number})],ja.prototype,"pageSize",void 0),Ua([R({type:Boolean})],ja.prototype,"searchInDocumentTitlesOnly",void 0),Ua([D([])],ja.prototype,"filters",void 0),Ua([D([])],ja.prototype,"sort",void 0),Ua([_i({store:"search"})],ja.prototype,"request",void 0),Ua([_i({store:"search"})],ja.prototype,"paging",void 0),Ua([_i({store:"search",selector:t=>t.spellcheck})],ja.prototype,"autocorrect",void 0),Ua([_i({store:Er.name})],ja.prototype,"session",void 0),F("ft-search-context")(ja);const za=Rt`
|
|
1119
|
+
`}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),t.has("scope")&&void 0!==this.scope&&this.stateManager.setScope(this.scope),t.has("ignoreEmptyQuery")&&void 0!==this.ignoreEmptyQuery&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new Aa(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new Wa(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new La(t))}reloadSavedSearches(){Pr.clearMySearches()}clear(){this.stateManager.clear()}}ja.elementDefinitions={},ja.styles=Ia,Ua([R()],ja.prototype,"query",void 0),Ua([R()],ja.prototype,"contentLocale",void 0),Ua([R({type:Number})],ja.prototype,"pageSize",void 0),Ua([R({type:Boolean})],ja.prototype,"searchInDocumentTitlesOnly",void 0),Ua([R()],ja.prototype,"scope",void 0),Ua([R({type:Boolean})],ja.prototype,"ignoreEmptyQuery",void 0),Ua([D([])],ja.prototype,"filters",void 0),Ua([D([])],ja.prototype,"sort",void 0),Ua([_i({store:"search"})],ja.prototype,"request",void 0),Ua([_i({store:"search"})],ja.prototype,"paging",void 0),Ua([_i({store:"search",selector:t=>t.spellcheck})],ja.prototype,"autocorrect",void 0),Ua([_i({store:Er.name})],ja.prototype,"session",void 0),F("ft-search-context")(ja);const za=Rt`
|
|
1120
1120
|
`,Fa=Re.extend("--ft-checkbox-text-color","",je.colorOnSurfaceHigh),Da=Re.external(je.colorPrimary,"Design system"),Ba=Re.external(je.colorOnPrimary,"Design system"),Pa=Re.extend("--ft-checkbox-border-color","",je.colorOnSurfaceMedium),Ka=Re.external(je.colorOnSurfaceDisabled,"Design system"),Ma=Rt`
|
|
1121
1121
|
* {
|
|
1122
1122
|
box-sizing: border-box;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-search-selected-facets",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "List of selected facets in a designed search page context",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-chip": "1.1.
|
|
23
|
-
"@fluid-topics/ft-search-context": "1.1.
|
|
24
|
-
"@fluid-topics/ft-search-type": "1.1.
|
|
25
|
-
"@fluid-topics/ft-tooltip": "1.1.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "1.1.
|
|
22
|
+
"@fluid-topics/ft-chip": "1.1.1",
|
|
23
|
+
"@fluid-topics/ft-search-context": "1.1.1",
|
|
24
|
+
"@fluid-topics/ft-search-type": "1.1.1",
|
|
25
|
+
"@fluid-topics/ft-tooltip": "1.1.1",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.1.1",
|
|
27
27
|
"lit": "3.1.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
|
|
30
30
|
}
|