@fluid-topics/ft-search-selected-facets 1.1.105 → 1.1.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var Ld=Object.create;var Yi=Object.defineProperty;var Pd=Object.getOwnPropertyDescriptor;var Id=Object.getOwnPropertyNames;var kd=Object.getPrototypeOf,_d=Object.prototype.hasOwnProperty;var er=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Dd=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Id(e))!_d.call(t,i)&&i!==r&&Yi(t,i,{get:()=>e[i],enumerable:!(n=Pd(e,i))||n.enumerable});return t};var h=(t,e,r)=>(r=t!=null?Ld(kd(t)):{},Dd(e||!t||!t.__esModule?Yi(r,"default",{value:t,enumerable:!0}):r,t));var w=er((nf,Xi)=>{Xi.exports=ftGlobals.wcUtils});var P=er((af,Qi)=>{Qi.exports=ftGlobals.lit});var Pn=er((sf,Ji)=>{Ji.exports=ftGlobals.litRepeat});var j=er((cf,oa)=>{oa.exports=ftGlobals.litDecorators});var sa=er((_t,aa)=>{var wo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Ao=function(){function t(){this.fetch=!1,this.DOMException=wo.DOMException}return t.prototype=wo,new t}();(function(t){var e=function(r){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},i={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function a(u){return u&&DataView.prototype.isPrototypeOf(u)}if(i.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(u){return u&&s.indexOf(Object.prototype.toString.call(u))>-1};function d(u){if(typeof u!="string"&&(u=String(u)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(u)||u==="")throw new TypeError('Invalid character in header field name: "'+u+'"');return u.toLowerCase()}function f(u){return typeof u!="string"&&(u=String(u)),u}function m(u){var b={next:function(){var L=u.shift();return{done:L===void 0,value:L}}};return i.iterable&&(b[Symbol.iterator]=function(){return b}),b}function y(u){this.map={},u instanceof y?u.forEach(function(b,L){this.append(L,b)},this):Array.isArray(u)?u.forEach(function(b){if(b.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+b.length);this.append(b[0],b[1])},this):u&&Object.getOwnPropertyNames(u).forEach(function(b){this.append(b,u[b])},this)}y.prototype.append=function(u,b){u=d(u),b=f(b);var L=this.map[u];this.map[u]=L?L+", "+b:b},y.prototype.delete=function(u){delete this.map[d(u)]},y.prototype.get=function(u){return u=d(u),this.has(u)?this.map[u]:null},y.prototype.has=function(u){return this.map.hasOwnProperty(d(u))},y.prototype.set=function(u,b){this.map[d(u)]=f(b)},y.prototype.forEach=function(u,b){for(var L in this.map)this.map.hasOwnProperty(L)&&u.call(b,this.map[L],L,this)},y.prototype.keys=function(){var u=[];return this.forEach(function(b,L){u.push(L)}),m(u)},y.prototype.values=function(){var u=[];return this.forEach(function(b){u.push(b)}),m(u)},y.prototype.entries=function(){var u=[];return this.forEach(function(b,L){u.push([L,b])}),m(u)},i.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function g(u){if(!u._noBody){if(u.bodyUsed)return Promise.reject(new TypeError("Already read"));u.bodyUsed=!0}}function v(u){return new Promise(function(b,L){u.onload=function(){b(u.result)},u.onerror=function(){L(u.error)}})}function x(u){var b=new FileReader,L=v(b);return b.readAsArrayBuffer(u),L}function S(u){var b=new FileReader,L=v(b),G=/charset=([A-Za-z0-9_-]+)/.exec(u.type),ee=G?G[1]:"utf-8";return b.readAsText(u,ee),L}function T(u){for(var b=new Uint8Array(u),L=new Array(b.length),G=0;G<b.length;G++)L[G]=String.fromCharCode(b[G]);return L.join("")}function R(u){if(u.slice)return u.slice(0);var b=new Uint8Array(u.byteLength);return b.set(new Uint8Array(u)),b.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(u){this.bodyUsed=this.bodyUsed,this._bodyInit=u,u?typeof u=="string"?this._bodyText=u:i.blob&&Blob.prototype.isPrototypeOf(u)?this._bodyBlob=u:i.formData&&FormData.prototype.isPrototypeOf(u)?this._bodyFormData=u:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(u)?this._bodyText=u.toString():i.arrayBuffer&&i.blob&&a(u)?(this._bodyArrayBuffer=R(u.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(u)||l(u))?this._bodyArrayBuffer=R(u):this._bodyText=u=Object.prototype.toString.call(u):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof u=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(u)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var u=g(this);if(u)return u;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(){if(this._bodyArrayBuffer){var u=g(this);return u||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(i.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var u=g(this);if(u)return u;if(this._bodyBlob)return S(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(T(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then(Le)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function D(u){var b=u.toUpperCase();return k.indexOf(b)>-1?b:u}function M(u,b){if(!(this instanceof M))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');b=b||{};var L=b.body;if(u instanceof M){if(u.bodyUsed)throw new TypeError("Already read");this.url=u.url,this.credentials=u.credentials,b.headers||(this.headers=new y(u.headers)),this.method=u.method,this.mode=u.mode,this.signal=u.signal,!L&&u._bodyInit!=null&&(L=u._bodyInit,u.bodyUsed=!0)}else this.url=String(u);if(this.credentials=b.credentials||this.credentials||"same-origin",(b.headers||!this.headers)&&(this.headers=new y(b.headers)),this.method=D(b.method||this.method||"GET"),this.mode=b.mode||this.mode||null,this.signal=b.signal||this.signal||function(){if("AbortController"in n){var U=new AbortController;return U.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&L)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(L),(this.method==="GET"||this.method==="HEAD")&&(b.cache==="no-store"||b.cache==="no-cache")){var G=/([?&])_=[^&]*/;if(G.test(this.url))this.url=this.url.replace(G,"$1_="+new Date().getTime());else{var ee=/\?/;this.url+=(ee.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}M.prototype.clone=function(){return new M(this,{body:this._bodyInit})};function Le(u){var b=new FormData;return u.trim().split("&").forEach(function(L){if(L){var G=L.split("="),ee=G.shift().replace(/\+/g," "),U=G.join("=").replace(/\+/g," ");b.append(decodeURIComponent(ee),decodeURIComponent(U))}}),b}function dt(u){var b=new y,L=u.replace(/\r?\n[\t ]+/g," ");return L.split("\r").map(function(G){return G.indexOf(`
|
|
2
|
+
`)===0?G.substr(1,G.length):G}).forEach(function(G){var ee=G.split(":"),U=ee.shift().trim();if(U){var Eo=ee.join(":").trim();try{b.append(U,Eo)}catch(Ln){console.warn("Response "+Ln.message)}}}),b}N.call(M.prototype);function Ce(u,b){if(!(this instanceof Ce))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(b||(b={}),this.type="default",this.status=b.status===void 0?200:b.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=b.statusText===void 0?"":""+b.statusText,this.headers=new y(b.headers),this.url=b.url||"",this._initBody(u)}N.call(Ce.prototype),Ce.prototype.clone=function(){return new Ce(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},Ce.error=function(){var u=new Ce(null,{status:200,statusText:""});return u.ok=!1,u.status=0,u.type="error",u};var pt=[301,302,303,307,308];Ce.redirect=function(u,b){if(pt.indexOf(b)===-1)throw new RangeError("Invalid status code");return new Ce(null,{status:b,headers:{location:u}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(b,L){this.message=b,this.name=L;var G=Error(b);this.stack=G.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function me(u,b){return new Promise(function(L,G){var ee=new M(u,b);if(ee.signal&&ee.signal.aborted)return G(new r.DOMException("Aborted","AbortError"));var U=new XMLHttpRequest;function Eo(){U.abort()}U.onload=function(){var ye={statusText:U.statusText,headers:dt(U.getAllResponseHeaders()||"")};ee.url.indexOf("file://")===0&&(U.status<200||U.status>599)?ye.status=200:ye.status=U.status,ye.url="responseURL"in U?U.responseURL:ye.headers.get("X-Request-URL");var Jt="response"in U?U.response:U.responseText;setTimeout(function(){L(new Ce(Jt,ye))},0)},U.onerror=function(){setTimeout(function(){G(new TypeError("Network request failed"))},0)},U.ontimeout=function(){setTimeout(function(){G(new TypeError("Network request timed out"))},0)},U.onabort=function(){setTimeout(function(){G(new r.DOMException("Aborted","AbortError"))},0)};function Ln(ye){try{return ye===""&&n.location.href?n.location.href:ye}catch{return ye}}if(U.open(ee.method,Ln(ee.url),!0),ee.credentials==="include"?U.withCredentials=!0:ee.credentials==="omit"&&(U.withCredentials=!1),"responseType"in U&&(i.blob?U.responseType="blob":i.arrayBuffer&&(U.responseType="arraybuffer")),b&&typeof b.headers=="object"&&!(b.headers instanceof y||n.Headers&&b.headers instanceof n.Headers)){var qi=[];Object.getOwnPropertyNames(b.headers).forEach(function(ye){qi.push(d(ye)),U.setRequestHeader(ye,f(b.headers[ye]))}),ee.headers.forEach(function(ye,Jt){qi.indexOf(Jt)===-1&&U.setRequestHeader(Jt,ye)})}else ee.headers.forEach(function(ye,Jt){U.setRequestHeader(Jt,ye)});ee.signal&&(ee.signal.addEventListener("abort",Eo),U.onreadystatechange=function(){U.readyState===4&&ee.signal.removeEventListener("abort",Eo)}),U.send(typeof ee._bodyInit>"u"?null:ee._bodyInit)})}return me.polyfill=!0,n.fetch||(n.fetch=me,n.Headers=y,n.Request=M,n.Response=Ce),r.Headers=y,r.Request=M,r.Response=Ce,r.fetch=me,r}({})})(Ao);Ao.fetch.ponyfill=!0;delete Ao.fetch.polyfill;var Sr=wo.fetch?wo:Ao;_t=Sr.fetch;_t.default=Sr.fetch;_t.fetch=Sr.fetch;_t.Headers=Sr.Headers;_t.Request=Sr.Request;_t.Response=Sr.Response;aa.exports=_t});var Vt=er((Yh,Os)=>{Os.exports=ftGlobals.litClassMap});var Ml=er((Yb,Bl)=>{Bl.exports=ftGlobals.litUnsafeHTML});var Td=h(w());var It=h(P()),Ki=h(Pn()),Yr=h(w());var ea=h(P()),ta=h(w()),$d={spacing:ta.FtCssVariableFactory.create("--ft-search-selected-facets-spacing","","SIZE","8px")},ra=ea.css`
|
|
2
3
|
.ft-search-selected-facets--container {
|
|
3
4
|
display: flex;
|
|
4
5
|
flex-wrap: wrap;
|
|
5
|
-
gap: ${
|
|
6
|
+
gap: ${$d.spacing};
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
.ft-search-selected-facets--container > * {
|
|
9
10
|
min-width: 0;
|
|
10
11
|
}
|
|
11
|
-
`;var
|
|
12
|
-
`;var
|
|
12
|
+
`;var vs=h(w()),Ss=h(j());var ht=h(w());var na=h(w()),Bd={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},setRequestClusterSortCriterion:(t,e)=>{var r;t.request.clusterSortCriterions=(r=e.payload)!==null&&r!==void 0?r:[]},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},setRequestPeriodFilter:(t,e)=>{t.request.periodFilter=e.payload}},ia=t=>na.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",clusterSortCriterions:[],filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:Bd});var Md=h(sa(),1);var la;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(la||(la={}));var ca;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ca||(ca={}));var da;(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"})(da||(da={}));var pa;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(pa||(pa={}));var fa;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(fa||(fa={}));var ua;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(ua||(ua={}));var ha;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ha||(ha={}));var ma;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ma||(ma={}));var Ro;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Ro||(Ro={}));var ya;(function(t){t.ASC="ASC",t.DESC="DESC"})(ya||(ya={}));var ga;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(ga||(ga={}));var Or;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Or||(Or={}));var ba;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(ba||(ba={}));var xa;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(xa||(xa={}));var va;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(va||(va={}));var Sa;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Sa||(Sa={}));var Cr;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(Cr||(Cr={}));var de;(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.GENERATIVE_AI_USER="GENERATIVE_AI_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"})(de||(de={}));var Oa;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Oa||(Oa={}));var mf={[de.PERSONAL_BOOK_SHARE_USER]:[de.PERSONAL_BOOK_USER],[de.HTML_EXPORT_USER]:[de.PERSONAL_BOOK_USER],[de.PDF_EXPORT_USER]:[de.PERSONAL_BOOK_USER],[de.KHUB_ADMIN]:[de.CONTENT_PUBLISHER],[de.ADMIN]:[de.KHUB_ADMIN,de.USERS_ADMIN,de.PORTAL_ADMIN],[de.DEVELOPER]:[de.BETA_USER,de.DEBUG_USER]};var xs=h(w());var Ra=h(P()),Ge=h(j()),et=h(w());var Ca=h(P());var Ea=Ca.css`
|
|
13
|
+
`;var No=h(w()),Ud="ft-app-info",In=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Fd={session:(t,e)=>{(0,No.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>I.eventBus.dispatchEvent(new In(e.payload)),0))}},I=No.FtReduxStore.get({name:Ud,reducers:Fd,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Dt=h(w());var kn=h(w());var tr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=I.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=I.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var ft=class{constructor(e=!0,r){var n;this.overrideApi=r;let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new kn.CacheRegistry,this.cache=e?i.commonCache:new kn.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:tr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):tr.await()}clearCache(){this.cache.clearAll()}};var wa,zd=Symbol("clearAfterUnitTest"),To=class extends ft{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[wa]=()=>{this.defaultMessages={},this.cache=new Dt.CacheRegistry,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=I.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,Dt.deepEqual)(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Dt.ParametrizedLabelResolver((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(r){console.error(r)}}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,Dt.delay)(0).then(()=>r()).catch(()=>null)))}};wa=zd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends To{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends To{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var rr=window.FluidTopicsI18nService,Aa=window.FluidTopicsCustomI18nService;var Ee=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},re=class extends et.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>tr.get(),this.messageContexts=[],this.cache=new et.CacheRegistry,this.cleanSessionDebouncer=new et.Debouncer}render(){return Ra.html`
|
|
13
14
|
<slot></slot>
|
|
14
|
-
`}update(e){super.update(e),e.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&P.actions.noCustom(this.noCustom),e.has("editorMode")&&P.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&P.actions.session(this.session),e.has("availableUiLocales")&&P.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>Xt.addContext(r)),e.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};te.elementDefinitions={};te.styles=ga;Oe([(0,je.property)()],te.prototype,"baseUrl",void 0);Oe([(0,je.property)()],te.prototype,"apiIntegrationIdentifier",void 0);Oe([(0,je.property)()],te.prototype,"uiLocale",void 0);Oe([(0,Je.jsonProperty)(null)],te.prototype,"availableUiLocales",void 0);Oe([(0,Je.jsonProperty)(null)],te.prototype,"metadataConfiguration",void 0);Oe([(0,je.property)({type:Boolean})],te.prototype,"editorMode",void 0);Oe([(0,je.property)({type:Boolean})],te.prototype,"noCustom",void 0);Oe([(0,je.property)({type:Boolean})],te.prototype,"openExternalDocumentInNewTab",void 0);Oe([(0,je.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],te.prototype,"noCustomComponent",void 0);Oe([(0,je.property)({type:Boolean})],te.prototype,"withManualResources",void 0);Oe([(0,je.property)({type:Boolean})],te.prototype,"navigatorOnline",void 0);Oe([(0,je.property)({type:Boolean})],te.prototype,"forcedOffline",void 0);Oe([(0,je.property)({type:Object})],te.prototype,"apiProvider",void 0);Oe([(0,Je.jsonProperty)([])],te.prototype,"messageContexts",void 0);Oe([(0,Je.jsonProperty)(void 0)],te.prototype,"session",void 0);var xp=h(H());function _d(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,n,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Eo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Eo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){var a=i[n];if(!Eo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Eo(t,e){try{return _d(t,e)}catch{return!1}}function Nn(t,e){return!Eo(t,e)}var Dd=h(H(),1);var wo=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};var Kr=h(H(),1);var Sa=h(H(),1);function Oa(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,Sa.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Nn,...e??{}})}var Ao=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){i(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Ea=h(I(),1);var Ro=window,$d=Ro.ShadowRoot&&(Ro.ShadyCSS===void 0||Ro.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Wf=Symbol();var Ca=(t,e)=>{$d?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let n=document.createElement("style"),i=Ro.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)})};var No=class extends Ea.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Ca(n,e.elementStyles),n}};var To=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Na,wa=Symbol("constructorPrototype"),Aa=Symbol("constructorName"),Ta=Symbol("exportpartsDebouncer"),Ra=Symbol("dynamicDependenciesLoaded"),Pt=class extends No{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Na]=new Ao(5),this[Aa]=this.constructor.name,this[wa]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Aa]&&Object.setPrototypeOf(this,this[wa])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[Ra]||(e[Ra]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Ta].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,n,i,a,s,l;let p=g=>g!=null&&g.trim().length>0,f=e.filter(p).map(g=>g.trim());if(f.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let g of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let x=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],b=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...x,...b).filter(p).map(S=>S.trim()).forEach(S=>u.add(S))}if(u.size===0){this.removeAttribute("exportparts");return}let y=[...u.values()].flatMap(g=>f.map(x=>`${g}:${x}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};Na=Ta;To([(0,Kr.property)()],Pt.prototype,"exportpartsPrefix",void 0);To([Oa([])],Pt.prototype,"exportpartsPrefixes",void 0);To([(0,Kr.property)()],Pt.prototype,"customStylesheet",void 0);To([(0,Kr.state)()],Pt.prototype,"useAdoptedStyleSheets",void 0);function Zr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var La,Ia,Pa,Lo=Symbol("internalReduxEventsUnsubscribers"),kt=Symbol("internalStoresUnsubscribers"),Qt=Symbol("internalStores"),qr=class extends Pt{constructor(){super(...arguments),this[La]=new Map,this[Ia]=new Map,this[Pa]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[Qt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Qt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Qt].get(e)}addStore(e,r){var n;r=(n=r??(Zr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[Qt].delete(r)}setupStore(e,r){this[Qt].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Qt].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(e.store);i&&(e.store?this[kt].has(e.store):this[kt].size>0)&&(this[r]=e.selector(i.getState(),this))}})}subscribeToStore(e,r){var n;this[kt].set(e,r.subscribe(()=>this.updateFromStores())),Zr(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=l=>this[a](l);r.eventBus.addEventListener(i.eventName,s),this[Lo].push(()=>r.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[kt].forEach((e,r)=>this.unsubscribeFromStore(r)),this[Lo].forEach(e=>e()),this[Lo]=[]}unsubscribeFromStore(e){this[kt].has(e)&&this[kt].get(e)(),this[kt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};La=kt,Ia=Qt,Pa=Lo;qr.reduxProperties=new Map;qr.reduxReactiveProperties=new Set;qr.reduxEventListeners=new Map;function Ge(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function yt(t){return!!t&&!!t[Y]}function et(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Vd}(t)||Array.isArray(t)||!!t[Ua]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ua])||Bn(t)||Mn(t))}function Jt(t,e,r){r===void 0&&(r=!1),vr(t)===0?(r?Object.keys:xr)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function vr(t){var e=t[Y];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Bn(t)?2:Mn(t)?3:0}function br(t,e){return vr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Bd(t,e){return vr(t)===2?t.get(e):t[e]}function Fa(t,e,r){var n=vr(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function za(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Bn(t){return Wd&&t instanceof Map}function Mn(t){return Hd&&t instanceof Set}function _t(t){return t.o||t.t}function Un(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Va(t);delete e[Y];for(var r=xr(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Fn(t,e){return e===void 0&&(e=!1),zn(t)||yt(t)||!et(t)||(vr(t)>1&&(t.set=t.add=t.clear=t.delete=Md),Object.freeze(t),e&&Jt(t,function(r,n){return Fn(n,!0)},!0)),t}function Md(){Ge(2)}function zn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function dt(t){var e=$n[t];return e||Ge(18,t),e}function Ud(t,e){$n[t]||($n[t]=e)}function kn(){return Xr}function Tn(t,e){e&&(dt("Patches"),t.u=[],t.s=[],t.v=e)}function Io(t){_n(t),t.p.forEach(Fd),t.p=null}function _n(t){t===Xr&&(Xr=t.l)}function ka(t){return Xr={p:[],l:Xr,h:t,m:!0,_:0}}function Fd(t){var e=t[Y];e.i===0||e.i===1?e.j():e.g=!0}function Ln(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||dt("ES5").S(e,t,n),n?(r[Y].P&&(Io(e),Ge(4)),et(t)&&(t=Po(e,t),e.l||ko(e,t)),e.u&&dt("Patches").M(r[Y].t,t,e.u,e.s)):t=Po(e,r,[]),Io(e),e.u&&e.v(e.u,e.s),t!==Ha?t:void 0}function Po(t,e,r){if(zn(e))return e;var n=e[Y];if(!n)return Jt(e,function(l,p){return _a(t,n,e,l,p,r)},!0),e;if(n.A!==t)return e;if(!n.P)return ko(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Un(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Jt(a,function(l,p){return _a(t,n,i,l,p,r,s)}),ko(t,i,!1),r&&t.u&&dt("Patches").N(n,r,t.u,t.s)}return n.o}function _a(t,e,r,n,i,a,s){if(yt(i)){var l=Po(t,i,a&&e&&e.i!==3&&!br(e.R,n)?a.concat(n):void 0);if(Fa(r,n,l),!yt(l))return;t.m=!1}else s&&r.add(i);if(et(i)&&!zn(i)){if(!t.h.D&&t._<1)return;Po(t,i),e&&e.A.l||ko(t,i)}}function ko(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Fn(e,r)}function In(t,e){var r=t[Y];return(r?_t(r):t)[e]}function Da(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Dt(t){t.P||(t.P=!0,t.l&&Dt(t.l))}function Pn(t){t.o||(t.o=Un(t.t))}function Dn(t,e,r){var n=Bn(e)?dt("MapSet").F(e,r):Mn(e)?dt("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:kn(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},p=l,f=Qr;s&&(p=[l],f=Yr);var u=Proxy.revocable(p,f),y=u.revoke,g=u.proxy;return l.k=g,l.j=y,g}(e,r):dt("ES5").J(e,r);return(r?r.A:kn()).p.push(n),n}function zd(t){return yt(t)||Ge(22,t),function e(r){if(!et(r))return r;var n,i=r[Y],a=vr(r);if(i){if(!i.P&&(i.i<4||!dt("ES5").K(i)))return i.t;i.I=!0,n=$a(r,a),i.I=!1}else n=$a(r,a);return Jt(n,function(s,l){i&&Bd(i.t,s)===l||Fa(n,s,e(l))}),a===3?new Set(n):n}(t)}function $a(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Un(t)}function Wa(){function t(s,l){var p=a[s];return p?p.enumerable=l:a[s]=p={configurable:!0,enumerable:l,get:function(){var f=this[Y];return Qr.get(f,s)},set:function(f){var u=this[Y];Qr.set(u,s,f)}},p}function e(s){for(var l=s.length-1;l>=0;l--){var p=s[l][Y];if(!p.P)switch(p.i){case 5:n(p)&&Dt(p);break;case 4:r(p)&&Dt(p)}}}function r(s){for(var l=s.t,p=s.k,f=xr(p),u=f.length-1;u>=0;u--){var y=f[u];if(y!==Y){var g=l[y];if(g===void 0&&!br(l,y))return!0;var x=p[y],b=x&&x[Y];if(b?b.t!==g:!za(x,g))return!0}}var S=!!l[Y];return f.length!==xr(l).length+(S?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(l,l.length-1);if(p&&!p.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&Ge(3,JSON.stringify(_t(s)))}var a={};Ud("ES5",{J:function(s,l){var p=Array.isArray(s),f=function(y,g){if(y){for(var x=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(x,""+b,t(b,!0));return x}var S=Va(g);delete S[Y];for(var T=xr(S),R=0;R<T.length;R++){var N=T[R];S[N]=t(N,y||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(p,s),u={i:p?5:4,A:l?l.A:kn(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Y,{value:u,writable:!0}),f},S:function(s,l,p){p?yt(l)&&l[Y].A===s&&e(s.p):(s.u&&function f(u){if(u&&typeof u=="object"){var y=u[Y];if(y){var g=y.t,x=y.k,b=y.R,S=y.i;if(S===4)Jt(x,function(k){k!==Y&&(g[k]!==void 0||br(g,k)?b[k]||f(x[k]):(b[k]=!0,Dt(y)))}),Jt(g,function(k){x[k]!==void 0||br(x,k)||(b[k]=!1,Dt(y))});else if(S===5){if(n(y)&&(Dt(y),b.length=!0),x.length<g.length)for(var T=x.length;T<g.length;T++)b[T]=!1;else for(var R=g.length;R<x.length;R++)b[R]=!0;for(var N=Math.min(x.length,g.length),_=0;_<N;_++)x.hasOwnProperty(_)||(b[_]=!0),b[_]===void 0&&f(x[_])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Ba,Xr,Wn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Wd=typeof Map<"u",Hd=typeof Set<"u",Ma=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ha=Wn?Symbol.for("immer-nothing"):((Ba={})["immer-nothing"]=!0,Ba),Ua=Wn?Symbol.for("immer-draftable"):"__$immer_draftable",Y=Wn?Symbol.for("immer-state"):"__$immer_state";var Vd=""+Object.prototype.constructor,xr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Va=Object.getOwnPropertyDescriptors||function(t){var e={};return xr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},$n={},Qr={get:function(t,e){if(e===Y)return t;var r=_t(t);if(!br(r,e))return function(i,a,s){var l,p=Da(a,s);return p?"value"in p?p.value:(l=p.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!et(n)?n:n===In(t.t,e)?(Pn(t),t.o[e]=Dn(t.A.h,n,t)):n},has:function(t,e){return e in _t(t)},ownKeys:function(t){return Reflect.ownKeys(_t(t))},set:function(t,e,r){var n=Da(_t(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=In(_t(t),e),a=i?.[Y];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(za(r,i)&&(r!==void 0||br(t.t,e)))return!0;Pn(t),Dt(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return In(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Pn(t),Dt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=_t(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Ge(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ge(12)}},Yr={};Jt(Qr,function(t,e){Yr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Yr.deleteProperty=function(t,e){return Yr.set.call(this,t,e,void 0)},Yr.set=function(t,e,r){return Qr.set.call(this,t[0],e,r,t[0])};var jd=function(){function t(r){var n=this;this.O=Ma,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var p=n;return function(S){var T=this;S===void 0&&(S=l);for(var R=arguments.length,N=Array(R>1?R-1:0),_=1;_<R;_++)N[_-1]=arguments[_];return p.produce(S,function(k){var V;return(V=a).call.apply(V,[T,k].concat(N))})}}var f;if(typeof a!="function"&&Ge(6),s!==void 0&&typeof s!="function"&&Ge(7),et(i)){var u=ka(n),y=Dn(n,i,void 0),g=!0;try{f=a(y),g=!1}finally{g?Io(u):_n(u)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return Tn(u,s),Ln(S,u)},function(S){throw Io(u),S}):(Tn(u,s),Ln(f,u))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===Ha&&(f=void 0),n.D&&Fn(f,!0),s){var x=[],b=[];dt("Patches").M(i,f,x,b),s(x,b)}return f}Ge(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var u=arguments.length,y=Array(u>1?u-1:0),g=1;g<u;g++)y[g-1]=arguments[g];return n.produceWithPatches(f,function(x){return i.apply(void 0,[x].concat(y))})};var s,l,p=n.produce(i,a,function(f,u){s=f,l=u});return typeof Promise<"u"&&p instanceof Promise?p.then(function(f){return[f,s,l]}):[p,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){et(r)||Ge(8),yt(r)&&(r=zd(r));var n=ka(this),i=Dn(this,r,void 0);return i[Y].C=!0,_n(n),i},e.finishDraft=function(r,n){var i=r&&r[Y],a=i.A;return Tn(a,n),Ln(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Ma&&Ge(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=dt("Patches").$;return yt(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},t}(),$e=new jd,Gd=$e.produce,eu=$e.produceWithPatches.bind($e),tu=$e.setAutoFreeze.bind($e),ru=$e.setUseProxies.bind($e),ou=$e.applyPatches.bind($e),nu=$e.createDraft.bind($e),iu=$e.finishDraft.bind($e),_o=Gd;function $t(t){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$t(t)}function Hn(t,e){if($t(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if($t(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vn(t){var e=Hn(t,"string");return $t(e)==="symbol"?e:String(e)}function jn(t,e,r){return e=Vn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ja(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Do(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ja(Object(r),!0).forEach(function(n){jn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ja(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function xe(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Ga=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Gn=function(){return Math.random().toString(36).substring(7).split("").join(".")},$o={INIT:"@@redux/INIT"+Gn(),REPLACE:"@@redux/REPLACE"+Gn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Gn()}};function Kd(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Kn(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(xe(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(xe(1));return r(Kn)(t,e)}if(typeof t!="function")throw new Error(xe(2));var i=t,a=e,s=[],l=s,p=!1;function f(){l===s&&(l=s.slice())}function u(){if(p)throw new Error(xe(3));return a}function y(S){if(typeof S!="function")throw new Error(xe(4));if(p)throw new Error(xe(5));var T=!0;return f(),l.push(S),function(){if(T){if(p)throw new Error(xe(6));T=!1,f();var N=l.indexOf(S);l.splice(N,1),s=null}}}function g(S){if(!Kd(S))throw new Error(xe(7));if(typeof S.type>"u")throw new Error(xe(8));if(p)throw new Error(xe(9));try{p=!0,a=i(a,S)}finally{p=!1}for(var T=s=l,R=0;R<T.length;R++){var N=T[R];N()}return S}function x(S){if(typeof S!="function")throw new Error(xe(10));i=S,g({type:$o.REPLACE})}function b(){var S,T=y;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(xe(11));function _(){N.next&&N.next(u())}_();var k=T(_);return{unsubscribe:k}}},S[Ga]=function(){return this},S}return g({type:$o.INIT}),n={dispatch:g,subscribe:y,getState:u,replaceReducer:x},n[Ga]=b,n}function Zd(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:$o.INIT});if(typeof n>"u")throw new Error(xe(12));if(typeof r(void 0,{type:$o.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(xe(13))})}function Ka(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,l;try{Zd(r)}catch(p){l=p}return function(f,u){if(f===void 0&&(f={}),l)throw l;if(0)var y;for(var g=!1,x={},b=0;b<a.length;b++){var S=a[b],T=r[S],R=f[S],N=T(R,u);if(typeof N>"u"){var _=u&&u.type;throw new Error(xe(14))}x[S]=N,g=g||N!==R}return g=g||a.length!==Object.keys(f).length,g?x:f}}function Sr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Za(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(xe(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(p){return p(s)});return a=Sr.apply(void 0,l)(i.dispatch),Do(Do({},i),{},{dispatch:a})}}}function qa(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var Ya=qa();Ya.withExtraArgument=qa;var Zn=Ya;var ts=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),qd=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(u){return p([f,u])}}function p(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){r.label=f[1];break}if(f[0]===6&&r.label<a[1]){r.label=a[1],a=f;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(f);break}a[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(u){f=[6,u],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Or=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Yd=Object.defineProperty,Xd=Object.defineProperties,Qd=Object.getOwnPropertyDescriptors,Xa=Object.getOwnPropertySymbols,Jd=Object.prototype.hasOwnProperty,ep=Object.prototype.propertyIsEnumerable,Qa=function(t,e,r){return e in t?Yd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Bt=function(t,e){for(var r in e||(e={}))Jd.call(e,r)&&Qa(t,r,e[r]);if(Xa)for(var n=0,i=Xa(e);n<i.length;n++){var r=i[n];ep.call(e,r)&&Qa(t,r,e[r])}return t},qn=function(t,e){return Xd(t,Qd(e))},tp=function(t,e,r){return new Promise(function(n,i){var a=function(p){try{l(r.next(p))}catch(f){i(f)}},s=function(p){try{l(r.throw(p))}catch(f){i(f)}},l=function(p){return p.done?n(p.value):Promise.resolve(p.value).then(a,s)};l((r=r.apply(t,e)).next())})};var rp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Sr:Sr.apply(null,arguments)},Cu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function op(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var np=function(t){ts(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Or([void 0],r[0].concat(this)))):new(e.bind.apply(e,Or([void 0],r.concat(this))))},e}(Array),ip=function(t){ts(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Or([void 0],r[0].concat(this)))):new(e.bind.apply(e,Or([void 0],r.concat(this))))},e}(Array);function Qn(t){return et(t)?_o(t,function(){}):t}function ap(t){return typeof t=="boolean"}function sp(){return function(e){return lp(e)}}function lp(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new np;if(r&&(ap(r)?l.push(Zn):l.push(Zn.withExtraArgument(r.extraArgument))),0){if(i)var p;if(s)var f}return l}var Yn=!0;function rs(t){var e=sp(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,l=r.devTools,p=l===void 0?!0:l,f=r.preloadedState,u=f===void 0?void 0:f,y=r.enhancers,g=y===void 0?void 0:y,x;if(typeof i=="function")x=i;else if(op(i))x=Ka(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var b=s;if(typeof b=="function"&&(b=b(e),!Yn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Yn&&b.some(function(k){return typeof k!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=Za.apply(void 0,b),T=Sr;p&&(T=rp(Bt({trace:!Yn},typeof p=="object"&&p)));var R=new ip(S),N=R;Array.isArray(g)?N=Or([S],g):typeof g=="function"&&(N=g(R));var _=T.apply(void 0,N);return Kn(x,u,_)}function Mt(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return Bt(Bt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function os(t){var e={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function cp(t){return typeof t=="function"}function dp(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?os(e):[e,r,n],a=i[0],s=i[1],l=i[2],p;if(cp(t))p=function(){return Qn(t())};else{var f=Qn(t);p=function(){return f}}function u(y,g){y===void 0&&(y=p());var x=Or([a[g.type]],s.filter(function(b){var S=b.matcher;return S(g)}).map(function(b){var S=b.reducer;return S}));return x.filter(function(b){return!!b}).length===0&&(x=[l]),x.reduce(function(b,S){if(S)if(yt(b)){var T=b,R=S(T,g);return R===void 0?b:R}else{if(et(b))return _o(b,function(N){return S(N,g)});var R=S(b,g);if(R===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return b},y)}return u.getInitialState=p,u}function pp(t,e){return t+"/"+e}function ns(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:Qn(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(u){var y=n[u],g=pp(e,u),x,b;"reducer"in y?(x=y.reducer,b=y.prepare):x=y,a[u]=x,s[g]=x,l[u]=b?Mt(g,b):Mt(g)});function p(){var u=typeof t.extraReducers=="function"?os(t.extraReducers):[t.extraReducers],y=u[0],g=y===void 0?{}:y,x=u[1],b=x===void 0?[]:x,S=u[2],T=S===void 0?void 0:S,R=Bt(Bt({},g),s);return dp(r,function(N){for(var _ in R)N.addCase(_,R[_]);for(var k=0,V=b;k<V.length;k++){var Ne=V[k];N.addMatcher(Ne.matcher,Ne.reducer)}T&&N.addDefaultCase(T)})}var f;return{name:e,reducer:function(u,y){return f||(f=p()),f(u,y)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=p()),f.getInitialState()}}}var fp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",up=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=fp[Math.random()*64|0];return e},hp=["name","message","stack","code"],Xn=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Ja=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),mp=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=hp;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},Ru=function(){function t(e,r,n){var i=Mt(e+"/fulfilled",function(u,y,g,x){return{payload:u,meta:qn(Bt({},x||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),a=Mt(e+"/pending",function(u,y,g){return{payload:void 0,meta:qn(Bt({},g||{}),{arg:y,requestId:u,requestStatus:"pending"})}}),s=Mt(e+"/rejected",function(u,y,g,x,b){return{payload:x,error:(n&&n.serializeError||mp)(u||"Rejected"),meta:qn(Bt({},b||{}),{arg:g,requestId:y,rejectedWithValue:!!x,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),l=!1,p=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function f(u){return function(y,g,x){var b=n?.idGenerator?n.idGenerator(u):up(),S=new p,T,R=!1;function N(k){T=k,S.abort()}var _=function(){return tp(this,null,function(){var k,V,Ne,se,jr,Ve,m;return qd(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),se=(k=n?.condition)==null?void 0:k.call(n,u,{getState:g,extra:x}),gp(se)?[4,se]:[3,2];case 1:se=v.sent(),v.label=2;case 2:if(se===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,jr=new Promise(function(L,q){return S.signal.addEventListener("abort",function(){return q({name:"AbortError",message:T||"Aborted"})})}),y(a(b,u,(V=n?.getPendingMeta)==null?void 0:V.call(n,{requestId:b,arg:u},{getState:g,extra:x}))),[4,Promise.race([jr,Promise.resolve(r(u,{dispatch:y,getState:g,extra:x,requestId:b,signal:S.signal,abort:N,rejectWithValue:function(L,q){return new Xn(L,q)},fulfillWithValue:function(L,q){return new Ja(L,q)}})).then(function(L){if(L instanceof Xn)throw L;return L instanceof Ja?i(L.payload,b,u,L.meta):i(L,b,u)})])];case 3:return Ne=v.sent(),[3,5];case 4:return Ve=v.sent(),Ne=Ve instanceof Xn?s(null,b,u,Ve.payload,Ve.meta):s(Ve,b,u),[3,5];case 5:return m=n&&!n.dispatchConditionRejection&&s.match(Ne)&&Ne.meta.condition,m||y(Ne),[2,Ne]}})})}();return Object.assign(_,{abort:N,requestId:b,arg:u,unwrap:function(){return _.then(yp)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function yp(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function gp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var is="listener",as="completed",ss="cancelled",Nu="task-"+ss,Tu="task-"+as,Lu=is+"-"+ss,Iu=is+"-"+as;var Jn="listenerMiddleware";var Pu=Mt(Jn+"/add"),ku=Mt(Jn+"/removeAll"),_u=Mt(Jn+"/remove");var es,Du=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(es||(es=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},bp=function(t){return function(e){setTimeout(e,t)}},$u=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:bp(10);Wa();window.ftReduxStores||(window.ftReduxStores={});var ls=class t{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Zr(a))return a;if(i==null)return;let s=ns({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=rs({reducer:(p,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...f.overwrites}:s.reducer(p,f)});return window.ftReduxStores[i.name]=new t(s,l)}constructor(e,r){this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new wo,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...p)=>{let f=l(...p);return this.reduxStore.dispatch(f),f}:p=>{this.setState({[s]:p})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Fo=h(w());var Bo=class extends ct{async listMySearches(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Mo=class extends ct{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var vp="ft-user-assets",Uo=Fo.FtReduxStore.get({name:vp,initialState:{savedSearches:void 0,bookmarks:void 0}}),ei=class{constructor(){this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Mo,this.savedSearchesService=new Bo,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=P.getState();(0,Fo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Uo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Uo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Uo.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Uo.actions.bookmarks(r)}}},cs=new ei;var ti=class{addCommand(e,r=!1){P.commands.add(e,r)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ti;var ds=h(w()),ri=class{highlightHtml(e,r,n){(0,ds.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new ri;var ps=h(w());var oi=class{isDate(e){var r,n,i,a;return(a=(i=((n=(r=P.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var n,i,a;return ps.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:P.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new oi;(0,fs.customElement)("ft-app-context")(te);var zo=class extends ct{async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0)}};var eo=t=>t.request.virtualField===yr.TITLE_ONLY&&t.request.scope===gr.DOCUMENTS,Wo=class t extends Event{constructor(){super(t.eventName)}};Wo.eventName="search-context-clear-all-filters";var Jr=class t{static build(e,r){return new t(Qi(e.trim()||"context"),r)}constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new pt.Debouncer(10),this.searchDebouncer=new pt.Debouncer(100),this.suggestDebouncer=new pt.Debouncer(300),this.service=r??new zo}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.setLiveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){let r=this.store.getState().locales,n=this.store.getState().request.contentLocale;if(e!=n){if(r){let i=a=>r.some(s=>s.lang==a);i(e)||(e=i(n)?n:r[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let r=e.filter(n=>n.values.length>0);this.store.actions.setRequestFilters(r),this.store.actions.setPageNumber(1),r.forEach(n=>{this.facetIds.includes(n.key)||(this.facetIds=[...this.facetIds,n.key])}),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(yr.TITLE_ONLY),this.store.actions.setRequestScope(gr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(yr.EVERYWHERE),this.store.actions.setRequestScope(gr.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return eo(this.store.getState())}get periodFilter(){return this.store.getState().request.periodFilter}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Wo)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,r){let n=this.facetIds.filter(i=>i!=e);r&&n.push(r),this.facetIds=n,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map(e=>e.id)}set facetIds(e){let n=[...new Set(e)].map(i=>({id:i}));this.store.actions.setRequestFacets(n)}setFilter(e,r){let n=this.store.getState().request.filters,i={key:e,values:r,negative:!1},a=[...n.filter(s=>s.key!==e),i];this.setFilters(a)}setLiveQuery(e){this.store.actions.setLiveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest(e),this.store.actions.setLiveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setPeriodFilter(e){this.store.actions.setRequestPeriodFilter(e),this.store.actions.setPageNumber(1),this.launchSearch()}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,r;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let n=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&n.query.length==0)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=(0,pt.cancelable)(this.service.launchSearch(n));let 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 a=((r=this.store.getState().results)!==null&&r!==void 0?r:[]).concat(i.results);this.store.actions.setResults(a)}this.store.actions.setPaging(i.paging)}}catch(n){!(n instanceof pt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(n)}}async fetchSuggestData(){var e;try{let r=this.store.getState(),n=r.request,i={input:r.liveQuery,filters:n.filters,sort:n.sort,contentLocale:n.contentLocale,scope:n.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=(0,pt.cancelable)(this.service.launchSuggest(i));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(r){!(r instanceof pt.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(r)}}clear(){this.store.clear()}};var Sp=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ii=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},ni=Symbol("registerInterval");function Op(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[ni]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[ni]):this.dispatchEvent(new ii)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=ni,Sp([(0,hs.state)()],r.prototype,"stateManager",void 0),r}var Ut=class extends Op(us.FtLitElementRedux){};var Ii=h(w());var ln=h(I()),we=h(H()),Rc=h(Ft()),dn=h(w());var ws=h(w());var Cs=h(I()),ye=h(H()),Es=h(Ft()),to=h(w());var Ss=h(I()),ie=h(w()),ys=ie.FtCssVariableFactory.extend("--ft-ripple-color","",ie.designSystemVariables.colorContent),M={color:ys,backgroundColor:ie.FtCssVariableFactory.extend("--ft-ripple-background-color","",ys),opacityContentOnSurfacePressed:ie.FtCssVariableFactory.external(ie.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ie.FtCssVariableFactory.external(ie.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ie.FtCssVariableFactory.external(ie.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ie.FtCssVariableFactory.external(ie.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ie.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},gs=ie.FtCssVariableFactory.extend("--ft-ripple-color","",ie.designSystemVariables.colorPrimary),bs={color:gs,backgroundColor:ie.FtCssVariableFactory.extend("--ft-ripple-background-color","",gs)},xs=ie.FtCssVariableFactory.extend("--ft-ripple-color","",ie.designSystemVariables.colorSecondary),vs={color:xs,backgroundColor:ie.FtCssVariableFactory.extend("--ft-ripple-background-color","",xs)},Os=Ss.css`
|
|
15
|
+
`}update(e){super.update(e),e.has("baseUrl")&&(I.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&I.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&I.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&I.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&I.actions.noCustom(this.noCustom),e.has("editorMode")&&I.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&I.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&I.actions.session(this.session),e.has("availableUiLocales")&&I.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>rr.addContext(r)),e.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};re.elementDefinitions={};re.styles=Ea;Ee([(0,Ge.property)()],re.prototype,"baseUrl",void 0);Ee([(0,Ge.property)()],re.prototype,"apiIntegrationIdentifier",void 0);Ee([(0,Ge.property)()],re.prototype,"uiLocale",void 0);Ee([(0,et.jsonProperty)(null)],re.prototype,"availableUiLocales",void 0);Ee([(0,et.jsonProperty)(null)],re.prototype,"metadataConfiguration",void 0);Ee([(0,Ge.property)({type:Boolean})],re.prototype,"editorMode",void 0);Ee([(0,Ge.property)({type:Boolean})],re.prototype,"noCustom",void 0);Ee([(0,Ge.property)({type:Boolean})],re.prototype,"openExternalDocumentInNewTab",void 0);Ee([(0,Ge.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],re.prototype,"noCustomComponent",void 0);Ee([(0,Ge.property)({type:Boolean})],re.prototype,"withManualResources",void 0);Ee([(0,Ge.property)({type:Boolean})],re.prototype,"navigatorOnline",void 0);Ee([(0,Ge.property)({type:Boolean})],re.prototype,"forcedOffline",void 0);Ee([(0,Ge.property)({type:Object})],re.prototype,"apiProvider",void 0);Ee([(0,et.jsonProperty)([])],re.prototype,"messageContexts",void 0);Ee([(0,et.jsonProperty)(void 0)],re.prototype,"session",void 0);var Rp=h(j());function Wd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,n,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Lo(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!Lo(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){var a=i[n];if(!Lo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Lo(t,e){try{return Wd(t,e)}catch{return!1}}function _n(t,e){return!Lo(t,e)}var Hd=h(j(),1);var Po=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};var Xr=h(j(),1);var Na=h(j(),1);function Ta(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,Na.property)({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:_n,...e??{}})}var Io=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(l){i(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Pa=h(P(),1);var ko=window,Vd=ko.ShadowRoot&&(ko.ShadyCSS===void 0||ko.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Zf=Symbol();var La=(t,e)=>{Vd?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let n=document.createElement("style"),i=ko.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)})};var _o=class extends Pa.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return La(n,e.elementStyles),n}};var Do=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Da,Ia=Symbol("constructorPrototype"),ka=Symbol("constructorName"),$a=Symbol("exportpartsDebouncer"),_a=Symbol("dynamicDependenciesLoaded"),$t=class extends _o{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Da]=new Io(5),this[ka]=this.constructor.name,this[Ia]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ka]&&Object.setPrototypeOf(this,this[Ia])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[_a]||(e[_a]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[$a].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,n,i,a,s,l;let d=g=>g!=null&&g.trim().length>0,f=e.filter(d).map(g=>g.trim());if(f.length===0){this.removeAttribute("exportparts");return}let m=new Set;for(let g of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let v=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],x=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(S=>S.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...v,...x).filter(d).map(S=>S.trim()).forEach(S=>m.add(S))}if(m.size===0){this.removeAttribute("exportparts");return}let y=[...m.values()].flatMap(g=>f.map(v=>`${g}:${v}--${g}`));this.setAttribute("exportparts",[...this.part,...y].join(", "))}};Da=$a;Do([(0,Xr.property)()],$t.prototype,"exportpartsPrefix",void 0);Do([Ta([])],$t.prototype,"exportpartsPrefixes",void 0);Do([(0,Xr.property)()],$t.prototype,"customStylesheet",void 0);Do([(0,Xr.state)()],$t.prototype,"useAdoptedStyleSheets",void 0);function Qr(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ba,Ma,Ua,$o=Symbol("internalReduxEventsUnsubscribers"),Bt=Symbol("internalStoresUnsubscribers"),or=Symbol("internalStores"),Jr=class extends $t{constructor(){super(...arguments),this[Ba]=new Map,this[Ma]=new Map,this[Ua]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[or].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[or].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[or].get(e)}addStore(e,r){var n;r=(n=r??(Qr(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[or].delete(r)}setupStore(e,r){this[or].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[or].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(e.store);i&&(e.store?this[Bt].has(e.store):this[Bt].size>0)&&(this[r]=e.selector(i.getState(),this))}})}subscribeToStore(e,r){var n;this[Bt].set(e,r.subscribe(()=>this.updateFromStores())),Qr(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=l=>this[a](l);r.eventBus.addEventListener(i.eventName,s),this[$o].push(()=>r.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Bt].forEach((e,r)=>this.unsubscribeFromStore(r)),this[$o].forEach(e=>e()),this[$o]=[]}unsubscribeFromStore(e){this[Bt].has(e)&&this[Bt].get(e)(),this[Bt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ba=Bt,Ma=or,Ua=$o;Jr.reduxProperties=new Map;Jr.reduxReactiveProperties=new Set;Jr.reduxEventListeners=new Map;function Ke(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function xt(t){return!!t&&!!t[Y]}function tt(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Qd}(t)||Array.isArray(t)||!!t[Ga]||!!(!((e=t.constructor)===null||e===void 0)&&e[Ga])||Hn(t)||Vn(t))}function nr(t,e,r){r===void 0&&(r=!1),Ar(t)===0?(r?Object.keys:wr)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function Ar(t){var e=t[Y];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Hn(t)?2:Vn(t)?3:0}function Er(t,e){return Ar(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function jd(t,e){return Ar(t)===2?t.get(e):t[e]}function Ka(t,e,r){var n=Ar(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Za(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Hn(t){return Yd&&t instanceof Map}function Vn(t){return Xd&&t instanceof Set}function Mt(t){return t.o||t.t}function jn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Xa(t);delete e[Y];for(var r=wr(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Gn(t,e){return e===void 0&&(e=!1),Kn(t)||xt(t)||!tt(t)||(Ar(t)>1&&(t.set=t.add=t.clear=t.delete=Gd),Object.freeze(t),e&&nr(t,function(r,n){return Gn(n,!0)},!0)),t}function Gd(){Ke(2)}function Kn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ut(t){var e=Wn[t];return e||Ke(18,t),e}function Kd(t,e){Wn[t]||(Wn[t]=e)}function Un(){return to}function Dn(t,e){e&&(ut("Patches"),t.u=[],t.s=[],t.v=e)}function Bo(t){Fn(t),t.p.forEach(Zd),t.p=null}function Fn(t){t===to&&(to=t.l)}function Fa(t){return to={p:[],l:to,h:t,m:!0,_:0}}function Zd(t){var e=t[Y];e.i===0||e.i===1?e.j():e.g=!0}function $n(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||ut("ES5").S(e,t,n),n?(r[Y].P&&(Bo(e),Ke(4)),tt(t)&&(t=Mo(e,t),e.l||Uo(e,t)),e.u&&ut("Patches").M(r[Y].t,t,e.u,e.s)):t=Mo(e,r,[]),Bo(e),e.u&&e.v(e.u,e.s),t!==Ya?t:void 0}function Mo(t,e,r){if(Kn(e))return e;var n=e[Y];if(!n)return nr(e,function(l,d){return za(t,n,e,l,d,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Uo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=jn(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),nr(a,function(l,d){return za(t,n,i,l,d,r,s)}),Uo(t,i,!1),r&&t.u&&ut("Patches").N(n,r,t.u,t.s)}return n.o}function za(t,e,r,n,i,a,s){if(xt(i)){var l=Mo(t,i,a&&e&&e.i!==3&&!Er(e.R,n)?a.concat(n):void 0);if(Ka(r,n,l),!xt(l))return;t.m=!1}else s&&r.add(i);if(tt(i)&&!Kn(i)){if(!t.h.D&&t._<1)return;Mo(t,i),e&&e.A.l||Uo(t,i)}}function Uo(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Gn(e,r)}function Bn(t,e){var r=t[Y];return(r?Mt(r):t)[e]}function Wa(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function Ut(t){t.P||(t.P=!0,t.l&&Ut(t.l))}function Mn(t){t.o||(t.o=jn(t.t))}function zn(t,e,r){var n=Hn(e)?ut("MapSet").F(e,r):Vn(e)?ut("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:Un(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=l,f=ro;s&&(d=[l],f=eo);var m=Proxy.revocable(d,f),y=m.revoke,g=m.proxy;return l.k=g,l.j=y,g}(e,r):ut("ES5").J(e,r);return(r?r.A:Un()).p.push(n),n}function qd(t){return xt(t)||Ke(22,t),function e(r){if(!tt(r))return r;var n,i=r[Y],a=Ar(r);if(i){if(!i.P&&(i.i<4||!ut("ES5").K(i)))return i.t;i.I=!0,n=Ha(r,a),i.I=!1}else n=Ha(r,a);return nr(n,function(s,l){i&&jd(i.t,s)===l||Ka(n,s,e(l))}),a===3?new Set(n):n}(t)}function Ha(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return jn(t)}function qa(){function t(s,l){var d=a[s];return d?d.enumerable=l:a[s]=d={configurable:!0,enumerable:l,get:function(){var f=this[Y];return ro.get(f,s)},set:function(f){var m=this[Y];ro.set(m,s,f)}},d}function e(s){for(var l=s.length-1;l>=0;l--){var d=s[l][Y];if(!d.P)switch(d.i){case 5:n(d)&&Ut(d);break;case 4:r(d)&&Ut(d)}}}function r(s){for(var l=s.t,d=s.k,f=wr(d),m=f.length-1;m>=0;m--){var y=f[m];if(y!==Y){var g=l[y];if(g===void 0&&!Er(l,y))return!0;var v=d[y],x=v&&v[Y];if(x?x.t!==g:!Za(v,g))return!0}}var S=!!l[Y];return f.length!==wr(l).length+(S?0:1)}function n(s){var l=s.k;if(l.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(l,l.length-1);if(d&&!d.get)return!0;for(var f=0;f<l.length;f++)if(!l.hasOwnProperty(f))return!0;return!1}function i(s){s.g&&Ke(3,JSON.stringify(Mt(s)))}var a={};Kd("ES5",{J:function(s,l){var d=Array.isArray(s),f=function(y,g){if(y){for(var v=Array(g.length),x=0;x<g.length;x++)Object.defineProperty(v,""+x,t(x,!0));return v}var S=Xa(g);delete S[Y];for(var T=wr(S),R=0;R<T.length;R++){var N=T[R];S[N]=t(N,y||!!S[N].enumerable)}return Object.create(Object.getPrototypeOf(g),S)}(d,s),m={i:d?5:4,A:l?l.A:Un(),P:!1,I:!1,R:{},l,t:s,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,Y,{value:m,writable:!0}),f},S:function(s,l,d){d?xt(l)&&l[Y].A===s&&e(s.p):(s.u&&function f(m){if(m&&typeof m=="object"){var y=m[Y];if(y){var g=y.t,v=y.k,x=y.R,S=y.i;if(S===4)nr(v,function(D){D!==Y&&(g[D]!==void 0||Er(g,D)?x[D]||f(v[D]):(x[D]=!0,Ut(y)))}),nr(g,function(D){v[D]!==void 0||Er(v,D)||(x[D]=!1,Ut(y))});else if(S===5){if(n(y)&&(Ut(y),x.length=!0),v.length<g.length)for(var T=v.length;T<g.length;T++)x[T]=!1;else for(var R=g.length;R<v.length;R++)x[R]=!0;for(var N=Math.min(v.length,g.length),k=0;k<N;k++)v.hasOwnProperty(k)||(x[k]=!0),x[k]===void 0&&f(v[k])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var Va,to,Zn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Yd=typeof Map<"u",Xd=typeof Set<"u",ja=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Ya=Zn?Symbol.for("immer-nothing"):((Va={})["immer-nothing"]=!0,Va),Ga=Zn?Symbol.for("immer-draftable"):"__$immer_draftable",Y=Zn?Symbol.for("immer-state"):"__$immer_state";var Qd=""+Object.prototype.constructor,wr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Xa=Object.getOwnPropertyDescriptors||function(t){var e={};return wr(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Wn={},ro={get:function(t,e){if(e===Y)return t;var r=Mt(t);if(!Er(r,e))return function(i,a,s){var l,d=Wa(a,s);return d?"value"in d?d.value:(l=d.get)===null||l===void 0?void 0:l.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!tt(n)?n:n===Bn(t.t,e)?(Mn(t),t.o[e]=zn(t.A.h,n,t)):n},has:function(t,e){return e in Mt(t)},ownKeys:function(t){return Reflect.ownKeys(Mt(t))},set:function(t,e,r){var n=Wa(Mt(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Bn(Mt(t),e),a=i?.[Y];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Za(r,i)&&(r!==void 0||Er(t.t,e)))return!0;Mn(t),Ut(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Bn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Mn(t),Ut(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Mt(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){Ke(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ke(12)}},eo={};nr(ro,function(t,e){eo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),eo.deleteProperty=function(t,e){return eo.set.call(this,t,e,void 0)},eo.set=function(t,e,r){return ro.set.call(this,t[0],e,r,t[0])};var Jd=function(){function t(r){var n=this;this.O=ja,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var d=n;return function(S){var T=this;S===void 0&&(S=l);for(var R=arguments.length,N=Array(R>1?R-1:0),k=1;k<R;k++)N[k-1]=arguments[k];return d.produce(S,function(D){var M;return(M=a).call.apply(M,[T,D].concat(N))})}}var f;if(typeof a!="function"&&Ke(6),s!==void 0&&typeof s!="function"&&Ke(7),tt(i)){var m=Fa(n),y=zn(n,i,void 0),g=!0;try{f=a(y),g=!1}finally{g?Bo(m):Fn(m)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(S){return Dn(m,s),$n(S,m)},function(S){throw Bo(m),S}):(Dn(m,s),$n(f,m))}if(!i||typeof i!="object"){if((f=a(i))===void 0&&(f=i),f===Ya&&(f=void 0),n.D&&Gn(f,!0),s){var v=[],x=[];ut("Patches").M(i,f,v,x),s(v,x)}return f}Ke(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(f){for(var m=arguments.length,y=Array(m>1?m-1:0),g=1;g<m;g++)y[g-1]=arguments[g];return n.produceWithPatches(f,function(v){return i.apply(void 0,[v].concat(y))})};var s,l,d=n.produce(i,a,function(f,m){s=f,l=m});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,s,l]}):[d,s,l]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){tt(r)||Ke(8),xt(r)&&(r=qd(r));var n=Fa(this),i=zn(this,r,void 0);return i[Y].C=!0,Fn(n),i},e.finishDraft=function(r,n){var i=r&&r[Y],a=i.A;return Dn(a,n),$n(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ja&&Ke(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ut("Patches").$;return xt(r)?s(r,n):this.produce(r,function(l){return s(l,n)})},t}(),Me=new Jd,ep=Me.produce,au=Me.produceWithPatches.bind(Me),su=Me.setAutoFreeze.bind(Me),lu=Me.setUseProxies.bind(Me),cu=Me.applyPatches.bind(Me),du=Me.createDraft.bind(Me),pu=Me.finishDraft.bind(Me),Fo=ep;function Ft(t){"@babel/helpers - typeof";return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ft(t)}function qn(t,e){if(Ft(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(Ft(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Yn(t){var e=qn(t,"string");return Ft(e)==="symbol"?e:String(e)}function Xn(t,e,r){return e=Yn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qa(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function zo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Qa(Object(r),!0).forEach(function(n){Xn(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qa(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ve(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Ja=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Qn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Wo={INIT:"@@redux/INIT"+Qn(),REPLACE:"@@redux/REPLACE"+Qn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Qn()}};function tp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function Jn(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ve(1));return r(Jn)(t,e)}if(typeof t!="function")throw new Error(ve(2));var i=t,a=e,s=[],l=s,d=!1;function f(){l===s&&(l=s.slice())}function m(){if(d)throw new Error(ve(3));return a}function y(S){if(typeof S!="function")throw new Error(ve(4));if(d)throw new Error(ve(5));var T=!0;return f(),l.push(S),function(){if(T){if(d)throw new Error(ve(6));T=!1,f();var N=l.indexOf(S);l.splice(N,1),s=null}}}function g(S){if(!tp(S))throw new Error(ve(7));if(typeof S.type>"u")throw new Error(ve(8));if(d)throw new Error(ve(9));try{d=!0,a=i(a,S)}finally{d=!1}for(var T=s=l,R=0;R<T.length;R++){var N=T[R];N()}return S}function v(S){if(typeof S!="function")throw new Error(ve(10));i=S,g({type:Wo.REPLACE})}function x(){var S,T=y;return S={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(ve(11));function k(){N.next&&N.next(m())}k();var D=T(k);return{unsubscribe:D}}},S[Ja]=function(){return this},S}return g({type:Wo.INIT}),n={dispatch:g,subscribe:y,getState:m,replaceReducer:v},n[Ja]=x,n}function rp(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Wo.INIT});if(typeof n>"u")throw new Error(ve(12));if(typeof r(void 0,{type:Wo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ve(13))})}function es(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,l;try{rp(r)}catch(d){l=d}return function(f,m){if(f===void 0&&(f={}),l)throw l;if(0)var y;for(var g=!1,v={},x=0;x<a.length;x++){var S=a[x],T=r[S],R=f[S],N=T(R,m);if(typeof N>"u"){var k=m&&m.type;throw new Error(ve(14))}v[S]=N,g=g||N!==R}return g=g||a.length!==Object.keys(f).length,g?v:f}}function Rr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function ts(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(ve(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(d){return d(s)});return a=Rr.apply(void 0,l)(i.dispatch),zo(zo({},i),{},{dispatch:a})}}}function rs(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,t):s(l)}}};return e}var os=rs();os.withExtraArgument=rs;var ei=os;var ls=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),op=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(m){return d([f,m])}}function d(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,i=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){r.label=f[1];break}if(f[0]===6&&r.label<a[1]){r.label=a[1],a=f;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(f);break}a[2]&&r.ops.pop(),r.trys.pop();continue}f=e.call(t,r)}catch(m){f=[6,m],i=0}finally{n=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Nr=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},np=Object.defineProperty,ip=Object.defineProperties,ap=Object.getOwnPropertyDescriptors,ns=Object.getOwnPropertySymbols,sp=Object.prototype.hasOwnProperty,lp=Object.prototype.propertyIsEnumerable,is=function(t,e,r){return e in t?np(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},zt=function(t,e){for(var r in e||(e={}))sp.call(e,r)&&is(t,r,e[r]);if(ns)for(var n=0,i=ns(e);n<i.length;n++){var r=i[n];lp.call(e,r)&&is(t,r,e[r])}return t},ti=function(t,e){return ip(t,ap(e))},cp=function(t,e,r){return new Promise(function(n,i){var a=function(d){try{l(r.next(d))}catch(f){i(f)}},s=function(d){try{l(r.throw(d))}catch(f){i(f)}},l=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};l((r=r.apply(t,e)).next())})};var dp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Rr:Rr.apply(null,arguments)},Tu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function pp(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var fp=function(t){ls(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Nr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],r.concat(this))))},e}(Array),up=function(t){ls(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Nr([void 0],r[0].concat(this)))):new(e.bind.apply(e,Nr([void 0],r.concat(this))))},e}(Array);function ni(t){return tt(t)?Fo(t,function(){}):t}function hp(t){return typeof t=="boolean"}function mp(){return function(e){return yp(e)}}function yp(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,l=new fp;if(r&&(hp(r)?l.push(ei):l.push(ei.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var f}return l}var ri=!0;function cs(t){var e=mp(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,l=r.devTools,d=l===void 0?!0:l,f=r.preloadedState,m=f===void 0?void 0:f,y=r.enhancers,g=y===void 0?void 0:y,v;if(typeof i=="function")v=i;else if(pp(i))v=es(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(e),!ri&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ri&&x.some(function(D){return typeof D!="function"}))throw new Error("each middleware provided to configureStore must be a function");var S=ts.apply(void 0,x),T=Rr;d&&(T=dp(zt({trace:!ri},typeof d=="object"&&d)));var R=new up(S),N=R;Array.isArray(g)?N=Nr([S],g):typeof g=="function"&&(N=g(R));var k=T.apply(void 0,N);return Jn(v,m,k)}function Wt(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return zt(zt({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function ds(t){var e={},r=[],n,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function gp(t){return typeof t=="function"}function bp(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?ds(e):[e,r,n],a=i[0],s=i[1],l=i[2],d;if(gp(t))d=function(){return ni(t())};else{var f=ni(t);d=function(){return f}}function m(y,g){y===void 0&&(y=d());var v=Nr([a[g.type]],s.filter(function(x){var S=x.matcher;return S(g)}).map(function(x){var S=x.reducer;return S}));return v.filter(function(x){return!!x}).length===0&&(v=[l]),v.reduce(function(x,S){if(S)if(xt(x)){var T=x,R=S(T,g);return R===void 0?x:R}else{if(tt(x))return Fo(x,function(N){return S(N,g)});var R=S(x,g);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},y)}return m.getInitialState=d,m}function xp(t,e){return t+"/"+e}function ps(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:ni(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},l={};i.forEach(function(m){var y=n[m],g=xp(e,m),v,x;"reducer"in y?(v=y.reducer,x=y.prepare):v=y,a[m]=v,s[g]=v,l[m]=x?Wt(g,x):Wt(g)});function d(){var m=typeof t.extraReducers=="function"?ds(t.extraReducers):[t.extraReducers],y=m[0],g=y===void 0?{}:y,v=m[1],x=v===void 0?[]:v,S=m[2],T=S===void 0?void 0:S,R=zt(zt({},g),s);return bp(r,function(N){for(var k in R)N.addCase(k,R[k]);for(var D=0,M=x;D<M.length;D++){var Le=M[D];N.addMatcher(Le.matcher,Le.reducer)}T&&N.addDefaultCase(T)})}var f;return{name:e,reducer:function(m,y){return f||(f=d()),f(m,y)},actions:l,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}var vp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Sp=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=vp[Math.random()*64|0];return e},Op=["name","message","stack","code"],oi=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),as=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Cp=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=Op;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},ku=function(){function t(e,r,n){var i=Wt(e+"/fulfilled",function(m,y,g,v){return{payload:m,meta:ti(zt({},v||{}),{arg:g,requestId:y,requestStatus:"fulfilled"})}}),a=Wt(e+"/pending",function(m,y,g){return{payload:void 0,meta:ti(zt({},g||{}),{arg:y,requestId:m,requestStatus:"pending"})}}),s=Wt(e+"/rejected",function(m,y,g,v,x){return{payload:v,error:(n&&n.serializeError||Cp)(m||"Rejected"),meta:ti(zt({},x||{}),{arg:g,requestId:y,rejectedWithValue:!!v,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),l=!1,d=typeof AbortController<"u"?AbortController:function(){function m(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return m.prototype.abort=function(){},m}();function f(m){return function(y,g,v){var x=n?.idGenerator?n.idGenerator(m):Sp(),S=new d,T,R=!1;function N(D){T=D,S.abort()}var k=function(){return cp(this,null,function(){var D,M,Le,dt,Ce,pt,me;return op(this,function(u){switch(u.label){case 0:return u.trys.push([0,4,,5]),dt=(D=n?.condition)==null?void 0:D.call(n,m,{getState:g,extra:v}),wp(dt)?[4,dt]:[3,2];case 1:dt=u.sent(),u.label=2;case 2:if(dt===!1||S.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,Ce=new Promise(function(b,L){return S.signal.addEventListener("abort",function(){return L({name:"AbortError",message:T||"Aborted"})})}),y(a(x,m,(M=n?.getPendingMeta)==null?void 0:M.call(n,{requestId:x,arg:m},{getState:g,extra:v}))),[4,Promise.race([Ce,Promise.resolve(r(m,{dispatch:y,getState:g,extra:v,requestId:x,signal:S.signal,abort:N,rejectWithValue:function(b,L){return new oi(b,L)},fulfillWithValue:function(b,L){return new as(b,L)}})).then(function(b){if(b instanceof oi)throw b;return b instanceof as?i(b.payload,x,m,b.meta):i(b,x,m)})])];case 3:return Le=u.sent(),[3,5];case 4:return pt=u.sent(),Le=pt instanceof oi?s(null,x,m,pt.payload,pt.meta):s(pt,x,m),[3,5];case 5:return me=n&&!n.dispatchConditionRejection&&s.match(Le)&&Le.meta.condition,me||y(Le),[2,Le]}})})}();return Object.assign(k,{abort:N,requestId:x,arg:m,unwrap:function(){return k.then(Ep)}})}}return Object.assign(f,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function Ep(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function wp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var fs="listener",us="completed",hs="cancelled",_u="task-"+hs,Du="task-"+us,$u=fs+"-"+hs,Bu=fs+"-"+us;var ii="listenerMiddleware";var Mu=Wt(ii+"/add"),Uu=Wt(ii+"/removeAll"),Fu=Wt(ii+"/remove");var ss,zu=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(ss||(ss=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Ap=function(t){return function(e){setTimeout(e,t)}},Wu=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ap(10);qa();window.ftReduxStores||(window.ftReduxStores={});var ms=class t{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(Qr(a))return a;if(i==null)return;let s=ps({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),l=cs({reducer:(d,f)=>f.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...f.overwrites}:s.reducer(d,f)});return window.ftReduxStores[i.name]=new t(s,l)}constructor(e,r){this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Po,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,l=n[s];return l?(...d)=>{let f=l(...d);return this.reduxStore.dispatch(f),f}:d=>{this.setState({[s]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Go=h(w());var Ho=class extends ft{async listMySearches(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Vo=class extends ft{async listMyBookmarks(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Np="ft-user-assets",jo=Go.FtReduxStore.get({name:Np,initialState:{savedSearches:void 0,bookmarks:void 0}}),ai=class{constructor(){this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Vo,this.savedSearchesService=new Ho,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=I.getState();(0,Go.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),jo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),jo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();jo.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;jo.actions.bookmarks(r)}}},ys=new ai;var si=class{addCommand(e,r=!1){I.commands.add(e,r)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new si;var gs=h(w()),li=class{highlightHtml(e,r,n){(0,gs.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new li;var bs=h(w());var ci=class{isDate(e){var r,n,i,a;return(a=(i=((n=(r=I.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var n,i,a;return bs.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:I.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ci;(0,xs.customElement)("ft-app-context")(re);var Ko=class extends ft{async launchSearch(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).search(e),2*60*1e3)}async launchSuggest(e){return this.cache.get(this.hash(e),async()=>(await this.awaitApi).getSuggestions(e),2*60*1e3)}async getAvailableSearchLocales(){return this.cache.get("available-locales",async()=>(await this.awaitApi).getAvailableSearchLocales())}hash(e){return""+Array.from(JSON.stringify(e)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0)}};var no=t=>t.request.virtualField===Or.TITLE_ONLY&&t.request.scope===Cr.DOCUMENTS,Zo=class t extends Event{constructor(){super(t.eventName)}};Zo.eventName="search-context-clear-all-filters";var oo=class t{static build(e,r){return new t(ia(e.trim()||"context"),r)}constructor(e,r){this.store=e,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.localesDebouncer=new ht.Debouncer(10),this.searchDebouncer=new ht.Debouncer(100),this.suggestDebouncer=new ht.Debouncer(300),this.service=r??new Ko}async initService(){return this.updateLocales(),this.launchSearch()}setQuery(e){this.store.actions.setRequestQuery(e),this.store.actions.setLiveQuery(e),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(e){let r=this.store.getState().locales,n=this.store.getState().request.contentLocale;if(e!=n){if(r){let i=a=>r.some(s=>s.lang==a);i(e)||(e=i(n)?n:r[0].lang)}this.store.actions.setRequestContentLocale(e),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return e}setPageSize(e){this.store.actions.setPageSize(e),this.launchSearch()}setPageNumber(e){this.store.actions.setPageNumber(e),this.launchSearch()}setSort(e){this.store.actions.setRequestSort(e),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(e){let r=e.filter(n=>n.values.length>0);this.store.actions.setRequestFilters(r),this.store.actions.setPageNumber(1),r.forEach(n=>{this.facetIds.includes(n.key)||(this.facetIds=[...this.facetIds,n.key])}),this.launchSearch()}setClusterSortCriterion(e){this.store.actions.setRequestClusterSortCriterion(e),this.launchSearch()}setSearchInDocumentTitlesOnly(e){e?(this.store.actions.setRequestVirtualField(Or.TITLE_ONLY),this.store.actions.setRequestScope(Cr.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Or.EVERYWHERE),this.store.actions.setRequestScope(Cr.DEFAULT)),this.launchSearch()}setVirtualField(e){this.store.actions.setRequestVirtualField(e),this.launchSearch()}get searchInDocumentTitlesOnly(){return no(this.store.getState())}get periodFilter(){return this.store.getState().request.periodFilter}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Zo)}addFacet(e){this.facetIds=[...this.facetIds,e],this.launchSearch()}replaceFacet(e,r){let n=this.facetIds.filter(i=>i!=e);r&&n.push(r),this.facetIds=n,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map(e=>e.id)}set facetIds(e){let n=[...new Set(e)].map(i=>({id:i}));this.store.actions.setRequestFacets(n)}setFilter(e,r){let n=this.store.getState().request.filters,i={key:e,values:r,negative:!1},a=[...n.filter(s=>s.key!==e),i];this.setFilters(a)}setLiveQuery(e){this.store.actions.setLiveQuery(e),this.launchSuggest()}setRequest(e){this.store.actions.setRequest(e),this.store.actions.setLiveQuery(e.query),this.store.actions.setPageNumber(1),this.launchSearch()}setScope(e){this.store.actions.setRequestScope(e),this.launchSearch()}setIgnoreEmptyQuery(e){this.ignoreEmptyQuery=e,this.launchSearch()}setOpenExternalDocumentInNewTab(e){this.openExternalDocumentInNewTab=e}setPeriodFilter(e){this.store.actions.setRequestPeriodFilter(e),this.store.actions.setPageNumber(1),this.launchSearch()}updateLocales(){return this.localesDebouncer.run(async()=>this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales))}launchSearch(){return this.searchDebouncer.run(()=>this.fetchSearchData())}launchSuggest(){return this.suggestDebouncer.run(()=>this.fetchSuggestData())}async fetchSearchData(){var e,r;try{(e=this.cancelableSearch)===null||e===void 0||e.cancel();let n=this.store.getState().request;if(this.store.actions.setPaging(void 0),this.ignoreEmptyQuery&&n.query.length==0)this.store.actions.setResults(void 0),this.store.actions.setFacets(void 0),this.store.actions.setSpellcheck(void 0);else{this.cancelableSearch=(0,ht.cancelable)(this.service.launchSearch(n));let 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 a=((r=this.store.getState().results)!==null&&r!==void 0?r:[]).concat(i.results);this.store.actions.setResults(a)}this.store.actions.setPaging(i.paging)}}catch(n){!(n instanceof ht.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(n)}}async fetchSuggestData(){var e;try{let r=this.store.getState(),n=r.request,i={input:r.liveQuery,filters:n.filters,sort:n.sort,contentLocale:n.contentLocale,scope:n.scope};(e=this.cancelableSuggest)===null||e===void 0||e.cancel(),this.cancelableSuggest=(0,ht.cancelable)(this.service.launchSuggest(i));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(r){!(r instanceof ht.CanceledPromiseError)&&this.errorHandler&&this.errorHandler(r)}}clear(){this.store.clear()}};var Tp=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},pi=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},di=Symbol("registerInterval");function Lp(t){var e;class r extends t{constructor(){super(...arguments),this[e]=0}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[di]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[di]):this.dispatchEvent(new pi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=di,Tp([(0,Ss.state)()],r.prototype,"stateManager",void 0),r}var Ht=class extends Lp(vs.FtLitElementRedux){};var Bi=h(w());var hn=h(P()),Re=h(j()),_c=h(Vt()),yn=h(w());var Is=h(w());var Ls=h(P()),ge=h(j()),Ps=h(Vt()),io=h(w());var Ns=h(P()),ae=h(w()),Cs=ae.FtCssVariableFactory.extend("--ft-ripple-color","",ae.designSystemVariables.colorContent),F={color:Cs,backgroundColor:ae.FtCssVariableFactory.extend("--ft-ripple-background-color","",Cs),opacityContentOnSurfacePressed:ae.FtCssVariableFactory.external(ae.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ae.FtCssVariableFactory.external(ae.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ae.FtCssVariableFactory.external(ae.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ae.FtCssVariableFactory.external(ae.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ae.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Es=ae.FtCssVariableFactory.extend("--ft-ripple-color","",ae.designSystemVariables.colorPrimary),ws={color:Es,backgroundColor:ae.FtCssVariableFactory.extend("--ft-ripple-background-color","",Es)},As=ae.FtCssVariableFactory.extend("--ft-ripple-color","",ae.designSystemVariables.colorSecondary),Rs={color:As,backgroundColor:ae.FtCssVariableFactory.extend("--ft-ripple-background-color","",As)},Ts=Ns.css`
|
|
15
16
|
:host {
|
|
16
17
|
display: contents;
|
|
17
18
|
}
|
|
@@ -24,7 +25,7 @@
|
|
|
24
25
|
|
|
25
26
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
26
27
|
overflow: hidden;
|
|
27
|
-
border-radius: ${
|
|
28
|
+
border-radius: ${F.borderRadius};
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.ft-ripple .ft-ripple--background,
|
|
@@ -58,27 +59,27 @@
|
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
.ft-ripple .ft-ripple--background {
|
|
61
|
-
background-color: ${
|
|
62
|
+
background-color: ${F.backgroundColor};
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
.ft-ripple .ft-ripple--effect {
|
|
65
|
-
background-color: ${
|
|
66
|
+
background-color: ${F.color};
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
69
|
-
background-color: ${
|
|
70
|
+
background-color: ${Rs.backgroundColor};
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
73
|
-
background-color: ${
|
|
74
|
+
background-color: ${Rs.color};
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
77
|
-
background-color: ${
|
|
78
|
+
background-color: ${ws.backgroundColor};
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
81
|
-
background-color: ${
|
|
82
|
+
background-color: ${ws.color};
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
.ft-ripple .ft-ripple--background {
|
|
@@ -108,37 +109,37 @@
|
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
111
|
-
opacity: ${
|
|
112
|
+
opacity: ${F.opacityContentOnSurfaceHover};
|
|
112
113
|
}
|
|
113
114
|
|
|
114
115
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
115
|
-
opacity: ${
|
|
116
|
+
opacity: ${F.opacityContentOnSurfaceSelected};
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
119
|
-
opacity: ${
|
|
120
|
+
opacity: ${F.opacityContentOnSurfaceFocused};
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
123
|
-
opacity: ${
|
|
124
|
+
opacity: ${F.opacityContentOnSurfacePressed};
|
|
124
125
|
transform: translate(-50%, -50%) scale(1);
|
|
125
126
|
}
|
|
126
|
-
`;var
|
|
127
|
+
`;var Pe=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},H=class extends io.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new io.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new io.Debouncer(10),this.moveRipple=e=>{var r,n;let{x:i,y:a}=this.getCoordinates(e),s=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Ls.html`
|
|
127
128
|
<style>
|
|
128
129
|
.ft-ripple .ft-ripple--effect {
|
|
129
130
|
left: ${this.originX}px;
|
|
130
131
|
top: ${this.originY}px;
|
|
131
132
|
}
|
|
132
133
|
</style>
|
|
133
|
-
<div class="${(0,
|
|
134
|
+
<div class="${(0,Ps.classMap)(e)}">
|
|
134
135
|
<div class="ft-ripple--background"></div>
|
|
135
136
|
<div class="ft-ripple--effect"></div>
|
|
136
137
|
</div>
|
|
137
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>
|
|
138
|
-
\f\r]`,
|
|
139
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ts=/'/g,Ls=/"/g,Ds=/^(?:script|style|textarea|title)$/i,$s=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Bs=$s(1),Ms=$s(2),no=Symbol.for("lit-noChange"),pe=Symbol.for("lit-nothing"),Is=new WeakMap,tr=rr.createTreeWalker(rr,129);function Us(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return As!==void 0?As.createHTML(e):e}var wp=(t,e)=>{let r=t.length-1,n=[],i,a=e===2?"<svg>":"",s=ro;for(let l=0;l<r;l++){let p=t[l],f,u,y=-1,g=0;for(;g<p.length&&(s.lastIndex=g,u=s.exec(p),u!==null);)g=s.lastIndex,s===ro?u[1]==="!--"?s=Rs:u[1]!==void 0?s=Ns:u[2]!==void 0?(Ds.test(u[2])&&(i=RegExp("</"+u[2],"g")),s=er):u[3]!==void 0&&(s=er):s===er?u[0]===">"?(s=i??ro,y=-1):u[1]===void 0?y=-2:(y=s.lastIndex-u[2].length,f=u[1],s=u[3]===void 0?er:u[3]==='"'?Ls:Ts):s===Ls||s===Ts?s=er:s===Rs||s===Ns?s=ro:(s=er,i=void 0);let x=s===er&&t[l+1].startsWith("/>")?" ":"";a+=s===ro?p+Cp:y>=0?(n.push(f),p.slice(0,y)+Ps+p.slice(y)+zt+x):p+zt+(y===-2?l:x)}return[Us(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),n]},io=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let a=0,s=0,l=e.length-1,p=this.parts,[f,u]=wp(e,r);if(this.el=t.createElement(f,n),tr.currentNode=this.el.content,r===2){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(i=tr.nextNode())!==null&&p.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let y of i.getAttributeNames())if(y.endsWith(Ps)){let g=u[s++],x=i.getAttribute(y).split(zt),b=/([.?@])?(.*)/.exec(g);p.push({type:1,index:a,name:b[2],strings:x,ctor:b[1]==="."?li:b[1]==="?"?ci:b[1]==="@"?di:Er}),i.removeAttribute(y)}else y.startsWith(zt)&&(p.push({type:6,index:a}),i.removeAttribute(y));if(Ds.test(i.tagName)){let y=i.textContent.split(zt),g=y.length-1;if(g>0){i.textContent=Ho?Ho.emptyScript:"";for(let x=0;x<g;x++)i.append(y[x],Vo()),tr.nextNode(),p.push({type:2,index:++a});i.append(y[g],Vo())}}}else if(i.nodeType===8)if(i.data===ks)p.push({type:2,index:a});else{let y=-1;for(;(y=i.data.indexOf(zt,y+1))!==-1;)p.push({type:7,index:a}),y+=zt.length-1}a++}}static createElement(e,r){let n=rr.createElement("template");return n.innerHTML=e,n}};function Cr(t,e,r=t,n){if(e===no)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,a=oo(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=Cr(t,i._$AS(t,e.values),i,n)),e}var si=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??rr).importNode(r,!0);tr.currentNode=i;let a=tr.nextNode(),s=0,l=0,p=n[0];for(;p!==void 0;){if(s===p.index){let f;p.type===2?f=new jo(a,a.nextSibling,this,e):p.type===1?f=new p.ctor(a,p.name,p.strings,this,e):p.type===6&&(f=new pi(a,this,e)),this._$AV.push(f),p=n[++l]}s!==p?.index&&(a=tr.nextNode(),s++)}return tr.currentNode=rr,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},jo=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=pe,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Cr(this,e,r),oo(e)?e===pe||e==null||e===""?(this._$AH!==pe&&this._$AR(),this._$AH=pe):e!==this._$AH&&e!==no&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ep(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==pe&&oo(this._$AH)?this._$AA.nextSibling.data=e:this.$(rr.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=io.createElement(Us(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new si(i,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=Is.get(e.strings);return r===void 0&&Is.set(e.strings,r=new io(e)),r}T(e){_s(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let a of e)i===r.length?r.push(n=new t(this.k(Vo()),this.k(Vo()),this,this.options)):n=r[i],n._$AI(a),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Er=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,a){this.type=1,this._$AH=pe,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=pe}_$AI(e,r=this,n,i){let a=this.strings,s=!1;if(a===void 0)e=Cr(this,e,r,0),s=!oo(e)||e!==this._$AH&&e!==no,s&&(this._$AH=e);else{let l=e,p,f;for(e=a[0],p=0;p<a.length-1;p++)f=Cr(this,l[n+p],r,p),f===no&&(f=this._$AH[p]),s||=!oo(f)||f!==this._$AH[p],f===pe?e=pe:e!==pe&&(e+=(f??"")+a[p+1]),this._$AH[p]=f}s&&!i&&this.O(e)}O(e){e===pe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},li=class extends Er{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===pe?void 0:e}},ci=class extends Er{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==pe)}},di=class extends Er{constructor(e,r,n,i,a){super(e,r,n,i,a),this.type=5}_$AI(e,r=this){if((e=Cr(this,e,r,0)??pe)===no)return;let n=this._$AH,i=e===pe&&n!==pe||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==pe&&(n===pe||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},pi=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Cr(this,e)}};var Ap=fi.litHtmlPolyfillSupport;Ap?.(io,jo),(fi.litHtmlVersions??=[]).push("3.1.0");var zs=Symbol.for(""),Rp=t=>{if(t?.r===zs)return t?._$litStatic$},ui=t=>({_$litStatic$:t,r:zs});var Fs=new Map,Ws=t=>(e,...r)=>{let n=r.length,i,a,s=[],l=[],p,f=0,u=!1;for(;f<n;){for(p=e[f];f<n&&(a=r[f],(i=Rp(a))!==void 0);)p+=i+e[++f],u=!0;f!==n&&l.push(a),s.push(p),f++}if(f===n&&s.push(e[n]),u){let y=s.join("$$lit$$");(e=Fs.get(y))===void 0&&(s.raw=s,Fs.set(y,e=s)),r=l}return t(e,...r)},hi=Ws(Bs),tm=Ws(Ms);var mi=h(H()),Nl=h(w());var Ke;(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"})(Ke||(Ke={}));var Ze=h(I()),E=h(w());var gt=h(I(),1),Wt=t=>typeof t=="string"?(0,gt.unsafeCSS)(t):t,o=class{static create(e,r,n,i){let a=l=>Wt(l??i),s=gt.css`var(${Wt(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=n,s.defaultValue=i,s.defaultCssValue=a,s.get=l=>gt.css`var(${Wt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,r,n,i){let a=l=>n.get(l??i),s=gt.css`var(${Wt(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=n.category,s.fallbackVariable=n,s.defaultValue=i,s.defaultCssValue=a,s.get=l=>gt.css`var(${Wt(e)}, ${a(l)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>i??n.lastResortDefaultValue(),s}static external(e,r){let n=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):Wt(a??e.lastResortDefaultValue()),i=gt.css`var(${Wt(e.name)}, ${n(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=r,i.defaultCssValue=n,i.get=a=>gt.css`var(${Wt(e.name)}, ${n(a)})`,i.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Hs={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},Vs={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},js={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Gs={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Ks={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Zs={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},qs={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Ys={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Xs={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Np={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Qs={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Js={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},el={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},tl={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},rl={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},ol={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},nl={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},il={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},al={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},sl={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ll={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},cl={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},dl={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},pl={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},fl={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},ul={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Go={display:Hs,"title-1":Vs,"title-2":js,"title-3":Gs,"body-1-regular":Ks,"body-1-medium":Zs,"body-1-semibold":qs,"body-2-regular":Ys,"body-2-medium":Xs,"body-2-medium-underline":Np,"body-2-semibold":Qs,"label-1-medium":Js,"label-1-semibold":el,"label-1-bold":tl,"label-2-medium":rl,"label-2-semibold":ol,"label-2-bold":nl,"caption-1-medium":il,"caption-1-semibold":al,"caption-1-bold":sl,"caption-2-medium":ll,"caption-2-semibold":cl,"caption-2-bold":dl,"caption-3-medium":pl,"caption-3-semibold":fl,"caption-3-bold":ul};var d={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
140
|
-
Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80)};var O={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBackgroundColor:o.extend("--ft-button-primary-background-color","",d.backgroundActionPrimary),primaryColor:o.extend("--ft-button-primary-color","",d.contentGlobalOnColor),primaryIconColor:o.extend("--ft-button-primary-icon-color","",d.contentGlobalOnColor),primaryStateLayerColor:o.extend("--ft-button-primary-state-layer-color","",d.contentGlobalOnColor),primaryHoverStateLayerOpacity:o.extend("--ft-button-primary-hover-state-layer-opacity","",c.opacity16),primaryFocusStateLayerOpacity:o.extend("--ft-button-primary-focus-state-layer-opacity","",c.opacity16),primaryActiveStateLayerOpacity:o.extend("--ft-button-primary-active-state-layer-opacity","",c.opacity24),primaryDisabledComponentOpacity:o.extend("--ft-button-primary-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBackgroundColor:o.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:o.extend("--ft-button-tertiary-color","",d.contentActionPrimary),tertiaryIconColor:o.extend("--ft-button-tertiary-icon-color","",d.contentActionPrimary),tertiaryStateLayerColor:o.extend("--ft-button-tertiary-state-layer-color","",d.contentActionPrimary),tertiaryHoverStateLayerOpacity:o.extend("--ft-button-tertiary-hover-state-layer-opacity","",c.opacity8),tertiaryFocusStateLayerOpacity:o.extend("--ft-button-tertiary-focus-state-layer-opacity","",c.opacity8),tertiaryActiveStateLayerOpacity:o.extend("--ft-button-tertiary-active-state-layer-opacity","",c.opacity16),tertiaryDisabledComponentOpacity:o.extend("--ft-button-tertiary-disabled-component-opacity","",c.opacity40),secondaryBackgroundColor:o.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:o.extend("--ft-button-secondary-color","",d.contentActionPrimary),secondaryIconColor:o.extend("--ft-button-secondary-icon-color","",d.contentActionPrimary),secondaryStateLayerColor:o.extend("--ft-button-secondary-state-layer-color","",d.contentActionPrimary),secondaryHoverStateLayerOpacity:o.extend("--ft-button-secondary-hover-state-layer-opacity","",c.opacity8),secondaryFocusStateLayerOpacity:o.extend("--ft-button-secondary-focus-state-layer-opacity","",c.opacity8),secondaryActiveStateLayerOpacity:o.extend("--ft-button-secondary-active-state-layer-opacity","",c.opacity16),secondaryDisabledComponentOpacity:o.extend("--ft-button-secondary-disabled-component-opacity","",c.opacity40),secondaryBorderColor:o.extend("--ft-button-secondary-border-color","",d.borderActionPrimary),neutralBackgroundColor:o.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:o.extend("--ft-button-neutral-icon-color","",d.contentGlobalSecondary),neutralColor:o.extend("--ft-button-neutral-color","",d.contentGlobalSecondary),neutralStateLayerColor:o.extend("--ft-button-neutral-state-layer-color","",d.contentGlobalSecondary),neutralHoverStateLayerOpacity:o.extend("--ft-button-neutral-hover-state-layer-opacity","",c.opacity8),neutralFocusStateLayerOpacity:o.extend("--ft-button-neutral-focus-state-layer-opacity","",c.opacity8),neutralActiveStateLayerOpacity:o.extend("--ft-button-neutral-active-state-layer-opacity","",c.opacity16),neutralDisabledComponentOpacity:o.extend("--ft-button-neutral-disabled-component-opacity","",c.opacity40)};var B={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",d.borderErrorSubtle)};var Cm={focusOpacity:o.extend("--ft-link-focus-opacity","",c.opacity80),focusFocusRingColor:o.extend("--ft-link-focus-focus-ring-color","",d.borderActionFocusRing),brandColor:o.extend("--ft-link-brand-color","",d.contentActionPrimary),infoColor:o.extend("--ft-link-info-color","",d.contentInfoPrimary)};var Nm={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",d.borderInfoSubtle)};var km={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",d.contentActionPrimary)};var Mm={horizontalGap:o.extend("--ft-breadcrumb-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-breadcrumb-vertical-gap","",c.spacing2),currentColor:o.extend("--ft-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:o.extend("--ft-breadcrumb-icon-color","",d.contentGlobalSubtle)};var Hm={horizontalPadding:o.extend("--ft-page-header-horizontal-padding","",c.spacing6),horizontalGap:o.extend("--ft-page-header-horizontal-gap","",c.spacing4),verticalGap:o.extend("--ft-page-header-vertical-gap","",c.spacing2),classicVerticalPadding:o.extend("--ft-page-header-classic-vertical-padding","",c.spacing6),multilineVerticalPadding:o.extend("--ft-page-header-multiline-vertical-padding","",c.spacing4),inlineVerticalPadding:o.extend("--ft-page-header-inline-vertical-padding","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",d.borderGlobalSubtle),titleColor:o.extend("--ft-page-header-title-color","",d.contentGlobalPrimary),subtitleColor:o.extend("--ft-page-header-subtitle-color","",d.contentGlobalSecondary)};var Zm={smallContainerWidth:o.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:o.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),containerMargin:o.extend("--ft-modal-container-margin","",c.spacing3),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-modal-header-trailing-icon-color","",d.contentGlobalSecondary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottom:o.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)};var Jm={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing4),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var ny={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var cy={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var hy={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusM)};var xy={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",d.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var Ey={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var Ty={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusM)};var _y={backgroundColor:o.extend("--ft-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",d.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",d.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",d.contentActionPrimary),gap:o.extend("--ft-popover-gap","",c.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02)};var Uy={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",d.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Vy={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var Zy={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200)};var Jy={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",d.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",d.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",d.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",d.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",d.contentSuccessIconOnly)};var ng={color:o.extend("--ft-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-checkbox-gap","",c.spacing3)};var cg={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",d.contentActionPrimary),color:o.extend("--ft-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var hg={color:o.extend("--ft-radio-color","",d.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-radio-gap","",c.spacing3)};var xg={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",d.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)};var Eg={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)};var Ko;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Ko||(Ko={}));var Ce;(function(t){t.large="large",t.medium="medium",t.small="small"})(Ce||(Ce={}));var Zo=h(I());function hl(t){let e=Go[t];return Zo.css`
|
|
141
|
-
.ft-typography--${(0,
|
|
138
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,r;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...l)=>d=>{l.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(d)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&r("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",i,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",n,s),e.removeEventListener("touchstart",i,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,n=e,i,a;return r.x!=null?{x:i,y:a}=r:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};H.elementDefinitions={};H.styles=Ts;Pe([(0,ge.property)({type:Boolean})],H.prototype,"primary",void 0);Pe([(0,ge.property)({type:Boolean})],H.prototype,"secondary",void 0);Pe([(0,ge.property)({type:Boolean})],H.prototype,"unbounded",void 0);Pe([(0,ge.property)({type:Boolean})],H.prototype,"activated",void 0);Pe([(0,ge.property)({type:Boolean})],H.prototype,"selected",void 0);Pe([(0,ge.property)({type:Boolean})],H.prototype,"disabled",void 0);Pe([(0,ge.state)()],H.prototype,"hovered",void 0);Pe([(0,ge.state)()],H.prototype,"focused",void 0);Pe([(0,ge.state)()],H.prototype,"pressed",void 0);Pe([(0,ge.state)()],H.prototype,"rippling",void 0);Pe([(0,ge.state)()],H.prototype,"originX",void 0);Pe([(0,ge.state)()],H.prototype,"originY",void 0);Pe([(0,ge.query)(".ft-ripple")],H.prototype,"ripple",void 0);Pe([(0,ge.query)(".ft-ripple--effect")],H.prototype,"rippleEffect",void 0);(0,Is.customElement)("ft-ripple")(H);var $l=h(w());var bi=globalThis,qo=bi.trustedTypes,ks=qo?qo.createPolicy("lit-html",{createHTML:t=>t}):void 0,Us="$lit$",jt=`lit$${(Math.random()+"").slice(9)}$`,Fs="?"+jt,Pp=`<${Fs}>`,sr=document,Yo=()=>sr.createComment(""),so=t=>t===null||typeof t!="object"&&typeof t!="function",zs=Array.isArray,Ip=t=>zs(t)||typeof t?.[Symbol.iterator]=="function",fi=`[
|
|
139
|
+
\f\r]`,ao=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_s=/-->/g,Ds=/>/g,ir=RegExp(`>|${fi}(?:([^\\s"'>=/]+)(${fi}*=${fi}*(?:[^
|
|
140
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),$s=/'/g,Bs=/"/g,Ws=/^(?:script|style|textarea|title)$/i,Hs=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Vs=Hs(1),js=Hs(2),lo=Symbol.for("lit-noChange"),pe=Symbol.for("lit-nothing"),Ms=new WeakMap,ar=sr.createTreeWalker(sr,129);function Gs(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ks!==void 0?ks.createHTML(e):e}var kp=(t,e)=>{let r=t.length-1,n=[],i,a=e===2?"<svg>":"",s=ao;for(let l=0;l<r;l++){let d=t[l],f,m,y=-1,g=0;for(;g<d.length&&(s.lastIndex=g,m=s.exec(d),m!==null);)g=s.lastIndex,s===ao?m[1]==="!--"?s=_s:m[1]!==void 0?s=Ds:m[2]!==void 0?(Ws.test(m[2])&&(i=RegExp("</"+m[2],"g")),s=ir):m[3]!==void 0&&(s=ir):s===ir?m[0]===">"?(s=i??ao,y=-1):m[1]===void 0?y=-2:(y=s.lastIndex-m[2].length,f=m[1],s=m[3]===void 0?ir:m[3]==='"'?Bs:$s):s===Bs||s===$s?s=ir:s===_s||s===Ds?s=ao:(s=ir,i=void 0);let v=s===ir&&t[l+1].startsWith("/>")?" ":"";a+=s===ao?d+Pp:y>=0?(n.push(f),d.slice(0,y)+Us+d.slice(y)+jt+v):d+jt+(y===-2?l:v)}return[Gs(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),n]},co=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let a=0,s=0,l=e.length-1,d=this.parts,[f,m]=kp(e,r);if(this.el=t.createElement(f,n),ar.currentNode=this.el.content,r===2){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(i=ar.nextNode())!==null&&d.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let y of i.getAttributeNames())if(y.endsWith(Us)){let g=m[s++],v=i.getAttribute(y).split(jt),x=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:x[2],strings:v,ctor:x[1]==="."?hi:x[1]==="?"?mi:x[1]==="@"?yi:Lr}),i.removeAttribute(y)}else y.startsWith(jt)&&(d.push({type:6,index:a}),i.removeAttribute(y));if(Ws.test(i.tagName)){let y=i.textContent.split(jt),g=y.length-1;if(g>0){i.textContent=qo?qo.emptyScript:"";for(let v=0;v<g;v++)i.append(y[v],Yo()),ar.nextNode(),d.push({type:2,index:++a});i.append(y[g],Yo())}}}else if(i.nodeType===8)if(i.data===Fs)d.push({type:2,index:a});else{let y=-1;for(;(y=i.data.indexOf(jt,y+1))!==-1;)d.push({type:7,index:a}),y+=jt.length-1}a++}}static createElement(e,r){let n=sr.createElement("template");return n.innerHTML=e,n}};function Tr(t,e,r=t,n){if(e===lo)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,a=so(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=Tr(t,i._$AS(t,e.values),i,n)),e}var ui=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??sr).importNode(r,!0);ar.currentNode=i;let a=ar.nextNode(),s=0,l=0,d=n[0];for(;d!==void 0;){if(s===d.index){let f;d.type===2?f=new Xo(a,a.nextSibling,this,e):d.type===1?f=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(f=new gi(a,this,e)),this._$AV.push(f),d=n[++l]}s!==d?.index&&(a=ar.nextNode(),s++)}return ar.currentNode=sr,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Xo=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=pe,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Tr(this,e,r),so(e)?e===pe||e==null||e===""?(this._$AH!==pe&&this._$AR(),this._$AH=pe):e!==this._$AH&&e!==lo&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ip(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==pe&&so(this._$AH)?this._$AA.nextSibling.data=e:this.$(sr.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=co.createElement(Gs(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new ui(i,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=Ms.get(e.strings);return r===void 0&&Ms.set(e.strings,r=new co(e)),r}T(e){zs(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let a of e)i===r.length?r.push(n=new t(this.k(Yo()),this.k(Yo()),this,this.options)):n=r[i],n._$AI(a),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Lr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,a){this.type=1,this._$AH=pe,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=pe}_$AI(e,r=this,n,i){let a=this.strings,s=!1;if(a===void 0)e=Tr(this,e,r,0),s=!so(e)||e!==this._$AH&&e!==lo,s&&(this._$AH=e);else{let l=e,d,f;for(e=a[0],d=0;d<a.length-1;d++)f=Tr(this,l[n+d],r,d),f===lo&&(f=this._$AH[d]),s||=!so(f)||f!==this._$AH[d],f===pe?e=pe:e!==pe&&(e+=(f??"")+a[d+1]),this._$AH[d]=f}s&&!i&&this.O(e)}O(e){e===pe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},hi=class extends Lr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===pe?void 0:e}},mi=class extends Lr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==pe)}},yi=class extends Lr{constructor(e,r,n,i,a){super(e,r,n,i,a),this.type=5}_$AI(e,r=this){if((e=Tr(this,e,r,0)??pe)===lo)return;let n=this._$AH,i=e===pe&&n!==pe||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==pe&&(n===pe||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},gi=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Tr(this,e)}};var _p=bi.litHtmlPolyfillSupport;_p?.(co,Xo),(bi.litHtmlVersions??=[]).push("3.1.0");var Zs=Symbol.for(""),Dp=t=>{if(t?.r===Zs)return t?._$litStatic$},xi=t=>({_$litStatic$:t,r:Zs});var Ks=new Map,qs=t=>(e,...r)=>{let n=r.length,i,a,s=[],l=[],d,f=0,m=!1;for(;f<n;){for(d=e[f];f<n&&(a=r[f],(i=Dp(a))!==void 0);)d+=i+e[++f],m=!0;f!==n&&l.push(a),s.push(d),f++}if(f===n&&s.push(e[n]),m){let y=s.join("$$lit$$");(e=Ks.get(y))===void 0&&(s.raw=s,Ks.set(y,e=s)),r=l}return t(e,...r)},vi=qs(Vs),sm=qs(js);var Si=h(j()),Dl=h(w());var Ze;(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"})(Ze||(Ze={}));var qe=h(P()),E=h(w());var vt=h(P(),1),Gt=t=>typeof t=="string"?(0,vt.unsafeCSS)(t):t,o=class{static create(e,r,n,i){let a=l=>Gt(l??i),s=vt.css`var(${Gt(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=n,s.defaultValue=i,s.defaultCssValue=a,s.get=l=>vt.css`var(${Gt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,r,n,i){let a=l=>n.get(l??i),s=vt.css`var(${Gt(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=n.category,s.fallbackVariable=n,s.defaultValue=i,s.defaultCssValue=a,s.get=l=>vt.css`var(${Gt(e)}, ${a(l)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>i??n.lastResortDefaultValue(),s}static external(e,r){let n=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):Gt(a??e.lastResortDefaultValue()),i=vt.css`var(${Gt(e.name)}, ${n(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=r,i.defaultCssValue=n,i.get=a=>vt.css`var(${Gt(e.name)}, ${n(a)})`,i.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};var c={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Ys={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},Xs={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Qs={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Js={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},el={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},tl={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},rl={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},ol={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},nl={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},$p={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},il={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},al={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},sl={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},ll={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},cl={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},dl={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},pl={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},fl={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},ul={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},hl={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ml={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},yl={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},gl={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},bl={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},xl={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},vl={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Qo={display:Ys,"title-1":Xs,"title-2":Qs,"title-3":Js,"body-1-regular":el,"body-1-medium":tl,"body-1-semibold":rl,"body-2-regular":ol,"body-2-medium":nl,"body-2-medium-underline":$p,"body-2-semibold":il,"label-1-medium":al,"label-1-semibold":sl,"label-1-bold":ll,"label-2-medium":cl,"label-2-semibold":dl,"label-2-bold":pl,"caption-1-medium":fl,"caption-1-semibold":ul,"caption-1-bold":hl,"caption-2-medium":ml,"caption-2-semibold":yl,"caption-2-bold":gl,"caption-3-medium":bl,"caption-3-semibold":xl,"caption-3-bold":vl};var p={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
141
|
+
Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80)};var O={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:o.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:o.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBackgroundColor:o.extend("--ft-button-primary-background-color","",p.backgroundActionPrimary),primaryColor:o.extend("--ft-button-primary-color","",p.contentGlobalOnColor),primaryIconColor:o.extend("--ft-button-primary-icon-color","",p.contentGlobalOnColor),primaryStateLayerColor:o.extend("--ft-button-primary-state-layer-color","",p.contentGlobalOnColor),primaryHoverStateLayerOpacity:o.extend("--ft-button-primary-hover-state-layer-opacity","",c.opacity16),primaryFocusStateLayerOpacity:o.extend("--ft-button-primary-focus-state-layer-opacity","",c.opacity16),primaryActiveStateLayerOpacity:o.extend("--ft-button-primary-active-state-layer-opacity","",c.opacity24),primaryDisabledComponentOpacity:o.extend("--ft-button-primary-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBackgroundColor:o.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:o.extend("--ft-button-tertiary-color","",p.contentActionPrimary),tertiaryIconColor:o.extend("--ft-button-tertiary-icon-color","",p.contentActionPrimary),tertiaryStateLayerColor:o.extend("--ft-button-tertiary-state-layer-color","",p.contentActionPrimary),tertiaryHoverStateLayerOpacity:o.extend("--ft-button-tertiary-hover-state-layer-opacity","",c.opacity8),tertiaryFocusStateLayerOpacity:o.extend("--ft-button-tertiary-focus-state-layer-opacity","",c.opacity8),tertiaryActiveStateLayerOpacity:o.extend("--ft-button-tertiary-active-state-layer-opacity","",c.opacity16),tertiaryDisabledComponentOpacity:o.extend("--ft-button-tertiary-disabled-component-opacity","",c.opacity40),secondaryBackgroundColor:o.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:o.extend("--ft-button-secondary-color","",p.contentActionPrimary),secondaryIconColor:o.extend("--ft-button-secondary-icon-color","",p.contentActionPrimary),secondaryStateLayerColor:o.extend("--ft-button-secondary-state-layer-color","",p.contentActionPrimary),secondaryHoverStateLayerOpacity:o.extend("--ft-button-secondary-hover-state-layer-opacity","",c.opacity8),secondaryFocusStateLayerOpacity:o.extend("--ft-button-secondary-focus-state-layer-opacity","",c.opacity8),secondaryActiveStateLayerOpacity:o.extend("--ft-button-secondary-active-state-layer-opacity","",c.opacity16),secondaryDisabledComponentOpacity:o.extend("--ft-button-secondary-disabled-component-opacity","",c.opacity40),secondaryBorderColor:o.extend("--ft-button-secondary-border-color","",p.borderActionPrimary),neutralBackgroundColor:o.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:o.extend("--ft-button-neutral-icon-color","",p.contentGlobalSecondary),neutralColor:o.extend("--ft-button-neutral-color","",p.contentGlobalSecondary),neutralStateLayerColor:o.extend("--ft-button-neutral-state-layer-color","",p.contentGlobalSecondary),neutralHoverStateLayerOpacity:o.extend("--ft-button-neutral-hover-state-layer-opacity","",c.opacity8),neutralFocusStateLayerOpacity:o.extend("--ft-button-neutral-focus-state-layer-opacity","",c.opacity8),neutralActiveStateLayerOpacity:o.extend("--ft-button-neutral-active-state-layer-opacity","",c.opacity16),neutralDisabledComponentOpacity:o.extend("--ft-button-neutral-disabled-component-opacity","",c.opacity40)};var B={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:o.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:o.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",p.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",p.borderErrorSubtle)};var Tm={focusOpacity:o.extend("--ft-link-focus-opacity","",c.opacity80),focusFocusRingColor:o.extend("--ft-link-focus-focus-ring-color","",p.borderActionFocusRing),brandColor:o.extend("--ft-link-brand-color","",p.contentActionPrimary),infoColor:o.extend("--ft-link-info-color","",p.contentInfoPrimary)};var _m={iconSize:o.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",p.borderInfoSubtle)};var Um={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:o.extend("--ft-badge-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",p.contentActionPrimary)};var Vm={horizontalGap:o.extend("--ft-breadcrumb-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-breadcrumb-vertical-gap","",c.spacing2),currentColor:o.extend("--ft-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:o.extend("--ft-breadcrumb-icon-color","",p.contentGlobalSubtle)};var qm={horizontalPadding:o.extend("--ft-page-header-horizontal-padding","",c.spacing6),horizontalGap:o.extend("--ft-page-header-horizontal-gap","",c.spacing4),verticalGap:o.extend("--ft-page-header-vertical-gap","",c.spacing2),classicVerticalPadding:o.extend("--ft-page-header-classic-vertical-padding","",c.spacing6),multilineVerticalPadding:o.extend("--ft-page-header-multiline-vertical-padding","",c.spacing4),inlineVerticalPadding:o.extend("--ft-page-header-inline-vertical-padding","",c.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",p.borderGlobalSubtle),titleColor:o.extend("--ft-page-header-title-color","",p.contentGlobalPrimary),subtitleColor:o.extend("--ft-page-header-subtitle-color","",p.contentGlobalSecondary)};var ey={smallContainerWidth:o.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:o.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",c.spacing6),containerMargin:o.extend("--ft-modal-container-margin","",c.spacing3),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-modal-header-trailing-icon-color","",p.contentGlobalSecondary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:o.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottom:o.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",c.borderRadiusM)};var iy={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:o.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing4),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var dy={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",c.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity24),onColor:o.extend("--ft-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",p.borderActionFocusRing)};var my={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var vy={backgroundColor:o.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",c.borderRadiusM)};var wy={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",p.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",c.shadowElevation02)};var Ly={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",p.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",p.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",p.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",p.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var Dy={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",p.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",p.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",p.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",p.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusM)};var Fy={backgroundColor:o.extend("--ft-popover-background-color","",p.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:o.extend("--ft-popover-title-color","",p.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",p.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",p.contentActionPrimary),gap:o.extend("--ft-popover-gap","",c.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",c.shadowElevation02)};var jy={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:o.extend("--ft-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",p.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Yy={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:o.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:o.extend("--ft-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:o.extend("--ft-switch-on-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var eg={color1Light:o.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",c.colorRed40),color5Base:o.extend("--ft-chart-5-base","",c.colorRed60),color6Light:o.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",c.colorGray50),color10Base:o.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",c.colorBrand200)};var ig={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:o.extend("--ft-notice-gap","",c.spacing2),iconSize:o.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",p.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",p.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",p.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",p.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",p.contentSuccessIconOnly)};var dg={color:o.extend("--ft-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-checkbox-gap","",c.spacing3)};var mg={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",p.contentActionPrimary),color:o.extend("--ft-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",c.spacing3)};var vg={color:o.extend("--ft-radio-color","",p.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-radio-gap","",c.spacing3)};var wg={iconSize:o.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",p.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",p.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",p.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",p.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",p.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",c.spacing8)};var Lg={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:o.extend("--ft-tooltip-color","",p.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:o.extend("--ft-tooltip-shadow","",c.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",c.spacing05)};var Jo;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Jo||(Jo={}));var we;(function(t){t.large="large",t.medium="medium",t.small="small"})(we||(we={}));var en=h(P());function Sl(t){let e=Qo[t];return en.css`
|
|
142
|
+
.ft-typography--${(0,en.unsafeCSS)(t)} {
|
|
142
143
|
font-family: ${e.fontFamily};
|
|
143
144
|
font-size: ${e.fontSize};
|
|
144
145
|
font-weight: ${e.fontWeight};
|
|
@@ -146,110 +147,110 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
146
147
|
line-height: ${e.lineHeight};
|
|
147
148
|
text-transform: ${e.textCase};
|
|
148
149
|
}
|
|
149
|
-
`}var
|
|
150
|
+
`}var Ol=E.FtCssVariableFactory.extend("--ft-typography-font-family","",E.designSystemVariables.titleFont),St=E.FtCssVariableFactory.extend("--ft-typography-font-family","",E.designSystemVariables.contentFont),A={fontFamily:St,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")},Pr={fontFamily:E.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ol),fontSize:E.FtCssVariableFactory.extend("--ft-typography-title-font-size","",A.fontSize,"20px"),fontWeight:E.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",A.fontWeight,"normal"),letterSpacing:E.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",A.letterSpacing,"0.15px"),lineHeight:E.FtCssVariableFactory.extend("--ft-typography-title-line-height","",A.lineHeight,"1.2"),textTransform:E.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",A.textTransform,"inherit")},Ir={fontFamily:E.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ol),fontSize:E.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",A.fontSize,"14px"),fontWeight:E.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",A.fontWeight,"normal"),letterSpacing:E.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",A.letterSpacing,"0.105px"),lineHeight:E.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",A.lineHeight,"1.7"),textTransform:E.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",A.textTransform,"inherit")},kr={fontFamily:E.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",St),fontSize:E.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",A.fontSize,"16px"),fontWeight:E.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",A.fontWeight,"600"),letterSpacing:E.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",A.letterSpacing,"0.144px"),lineHeight:E.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",A.lineHeight,"1.5"),textTransform:E.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",A.textTransform,"inherit")},_r={fontFamily:E.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",St),fontSize:E.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",A.fontSize,"14px"),fontWeight:E.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",A.fontWeight,"normal"),letterSpacing:E.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",A.letterSpacing,"0.098px"),lineHeight:E.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",A.lineHeight,"1.7"),textTransform:E.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",A.textTransform,"inherit")},Dr={fontFamily:E.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",St),fontSize:E.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",A.fontSize,"16px"),fontWeight:E.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",A.fontWeight,"normal"),letterSpacing:E.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",A.letterSpacing,"0.496px"),lineHeight:E.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",A.lineHeight,"1.5"),textTransform:E.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",A.textTransform,"inherit")},be={fontFamily:E.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",St),fontSize:E.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",A.fontSize,"14px"),fontWeight:E.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",A.fontWeight,"normal"),letterSpacing:E.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",A.letterSpacing,"0.252px"),lineHeight:E.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",A.lineHeight,"1.4"),textTransform:E.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",A.textTransform,"inherit")},$r={fontFamily:E.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",St),fontSize:E.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",A.fontSize,"12px"),fontWeight:E.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",A.fontWeight,"normal"),letterSpacing:E.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",A.letterSpacing,"0.396px"),lineHeight:E.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",A.lineHeight,"1.33"),textTransform:E.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",A.textTransform,"inherit")},Br={fontFamily:E.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",St),fontSize:E.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",A.fontSize,"10px"),fontWeight:E.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",A.fontWeight,"normal"),letterSpacing:E.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",A.letterSpacing,"0.33px"),lineHeight:E.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",A.lineHeight,"1.6"),textTransform:E.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",A.textTransform,"inherit")},Mr={fontFamily:E.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",St),fontSize:E.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",A.fontSize,"10px"),fontWeight:E.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",A.fontWeight,"normal"),letterSpacing:E.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",A.letterSpacing,"1.5px"),lineHeight:E.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",A.lineHeight,"1.6"),textTransform:E.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",A.textTransform,"uppercase")},mt={fontFamily:E.FtCssVariableFactory.extend("--ft-typography-button-font-family","",St),fontSize:E.FtCssVariableFactory.extend("--ft-typography-button-font-size","",A.fontSize,"14px"),fontWeight:E.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",A.fontWeight,"600"),letterSpacing:E.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",A.letterSpacing,"1.246px"),lineHeight:E.FtCssVariableFactory.extend("--ft-typography-button-line-height","",A.lineHeight,"1.15"),textTransform:E.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",A.textTransform,"uppercase")},Cl=qe.css`
|
|
150
151
|
.ft-typography--title {
|
|
151
|
-
font-family: ${
|
|
152
|
-
font-size: ${
|
|
153
|
-
font-weight: ${
|
|
154
|
-
letter-spacing: ${
|
|
155
|
-
line-height: ${
|
|
156
|
-
text-transform: ${
|
|
157
|
-
}
|
|
158
|
-
`,
|
|
152
|
+
font-family: ${Pr.fontFamily};
|
|
153
|
+
font-size: ${Pr.fontSize};
|
|
154
|
+
font-weight: ${Pr.fontWeight};
|
|
155
|
+
letter-spacing: ${Pr.letterSpacing};
|
|
156
|
+
line-height: ${Pr.lineHeight};
|
|
157
|
+
text-transform: ${Pr.textTransform};
|
|
158
|
+
}
|
|
159
|
+
`,El=qe.css`
|
|
159
160
|
.ft-typography--title-dense {
|
|
160
|
-
font-family: ${
|
|
161
|
-
font-size: ${
|
|
162
|
-
font-weight: ${
|
|
163
|
-
letter-spacing: ${
|
|
164
|
-
line-height: ${
|
|
165
|
-
text-transform: ${
|
|
166
|
-
}
|
|
167
|
-
`,
|
|
161
|
+
font-family: ${Ir.fontFamily};
|
|
162
|
+
font-size: ${Ir.fontSize};
|
|
163
|
+
font-weight: ${Ir.fontWeight};
|
|
164
|
+
letter-spacing: ${Ir.letterSpacing};
|
|
165
|
+
line-height: ${Ir.lineHeight};
|
|
166
|
+
text-transform: ${Ir.textTransform};
|
|
167
|
+
}
|
|
168
|
+
`,wl=qe.css`
|
|
168
169
|
.ft-typography--subtitle1 {
|
|
169
|
-
font-family: ${
|
|
170
|
-
font-size: ${
|
|
171
|
-
font-weight: ${
|
|
172
|
-
letter-spacing: ${
|
|
173
|
-
line-height: ${
|
|
174
|
-
text-transform: ${
|
|
175
|
-
}
|
|
176
|
-
`,
|
|
170
|
+
font-family: ${kr.fontFamily};
|
|
171
|
+
font-size: ${kr.fontSize};
|
|
172
|
+
font-weight: ${kr.fontWeight};
|
|
173
|
+
letter-spacing: ${kr.letterSpacing};
|
|
174
|
+
line-height: ${kr.lineHeight};
|
|
175
|
+
text-transform: ${kr.textTransform};
|
|
176
|
+
}
|
|
177
|
+
`,Al=qe.css`
|
|
177
178
|
.ft-typography--subtitle2 {
|
|
178
|
-
font-family: ${
|
|
179
|
-
font-size: ${
|
|
180
|
-
font-weight: ${
|
|
181
|
-
letter-spacing: ${
|
|
182
|
-
line-height: ${
|
|
183
|
-
text-transform: ${
|
|
179
|
+
font-family: ${_r.fontFamily};
|
|
180
|
+
font-size: ${_r.fontSize};
|
|
181
|
+
font-weight: ${_r.fontWeight};
|
|
182
|
+
letter-spacing: ${_r.letterSpacing};
|
|
183
|
+
line-height: ${_r.lineHeight};
|
|
184
|
+
text-transform: ${_r.textTransform};
|
|
184
185
|
}
|
|
185
186
|
|
|
186
|
-
`,
|
|
187
|
+
`,Rl=qe.css`
|
|
187
188
|
.ft-typography--body1 {
|
|
188
|
-
font-family: ${
|
|
189
|
-
font-size: ${
|
|
190
|
-
font-weight: ${
|
|
191
|
-
letter-spacing: ${
|
|
192
|
-
line-height: ${
|
|
193
|
-
text-transform: ${
|
|
194
|
-
}
|
|
195
|
-
`,
|
|
189
|
+
font-family: ${Dr.fontFamily};
|
|
190
|
+
font-size: ${Dr.fontSize};
|
|
191
|
+
font-weight: ${Dr.fontWeight};
|
|
192
|
+
letter-spacing: ${Dr.letterSpacing};
|
|
193
|
+
line-height: ${Dr.lineHeight};
|
|
194
|
+
text-transform: ${Dr.textTransform};
|
|
195
|
+
}
|
|
196
|
+
`,Nl=qe.css`
|
|
196
197
|
.ft-typography--body2 {
|
|
197
|
-
font-family: ${
|
|
198
|
-
font-size: ${
|
|
199
|
-
font-weight: ${
|
|
200
|
-
letter-spacing: ${
|
|
201
|
-
line-height: ${
|
|
202
|
-
text-transform: ${
|
|
203
|
-
}
|
|
204
|
-
`,
|
|
198
|
+
font-family: ${be.fontFamily};
|
|
199
|
+
font-size: ${be.fontSize};
|
|
200
|
+
font-weight: ${be.fontWeight};
|
|
201
|
+
letter-spacing: ${be.letterSpacing};
|
|
202
|
+
line-height: ${be.lineHeight};
|
|
203
|
+
text-transform: ${be.textTransform};
|
|
204
|
+
}
|
|
205
|
+
`,tn=qe.css`
|
|
205
206
|
.ft-typography--caption {
|
|
206
|
-
font-family: ${
|
|
207
|
-
font-size: ${
|
|
208
|
-
font-weight: ${
|
|
209
|
-
letter-spacing: ${
|
|
210
|
-
line-height: ${
|
|
211
|
-
text-transform: ${
|
|
212
|
-
}
|
|
213
|
-
`,
|
|
207
|
+
font-family: ${$r.fontFamily};
|
|
208
|
+
font-size: ${$r.fontSize};
|
|
209
|
+
font-weight: ${$r.fontWeight};
|
|
210
|
+
letter-spacing: ${$r.letterSpacing};
|
|
211
|
+
line-height: ${$r.lineHeight};
|
|
212
|
+
text-transform: ${$r.textTransform};
|
|
213
|
+
}
|
|
214
|
+
`,Tl=qe.css`
|
|
214
215
|
.ft-typography--breadcrumb {
|
|
215
|
-
font-family: ${
|
|
216
|
-
font-size: ${
|
|
217
|
-
font-weight: ${
|
|
218
|
-
letter-spacing: ${
|
|
219
|
-
line-height: ${
|
|
220
|
-
text-transform: ${
|
|
221
|
-
}
|
|
222
|
-
`,
|
|
216
|
+
font-family: ${Br.fontFamily};
|
|
217
|
+
font-size: ${Br.fontSize};
|
|
218
|
+
font-weight: ${Br.fontWeight};
|
|
219
|
+
letter-spacing: ${Br.letterSpacing};
|
|
220
|
+
line-height: ${Br.lineHeight};
|
|
221
|
+
text-transform: ${Br.textTransform};
|
|
222
|
+
}
|
|
223
|
+
`,Ll=qe.css`
|
|
223
224
|
.ft-typography--overline {
|
|
224
|
-
font-family: ${
|
|
225
|
-
font-size: ${
|
|
226
|
-
font-weight: ${
|
|
227
|
-
letter-spacing: ${
|
|
228
|
-
line-height: ${
|
|
229
|
-
text-transform: ${
|
|
230
|
-
}
|
|
231
|
-
`,
|
|
225
|
+
font-family: ${Mr.fontFamily};
|
|
226
|
+
font-size: ${Mr.fontSize};
|
|
227
|
+
font-weight: ${Mr.fontWeight};
|
|
228
|
+
letter-spacing: ${Mr.letterSpacing};
|
|
229
|
+
line-height: ${Mr.lineHeight};
|
|
230
|
+
text-transform: ${Mr.textTransform};
|
|
231
|
+
}
|
|
232
|
+
`,Pl=qe.css`
|
|
232
233
|
.ft-typography--button {
|
|
233
|
-
font-family: ${
|
|
234
|
-
font-size: ${
|
|
235
|
-
font-weight: ${
|
|
236
|
-
letter-spacing: ${
|
|
237
|
-
line-height: ${
|
|
238
|
-
text-transform: ${
|
|
239
|
-
}
|
|
240
|
-
`,
|
|
234
|
+
font-family: ${mt.fontFamily};
|
|
235
|
+
font-size: ${mt.fontSize};
|
|
236
|
+
font-weight: ${mt.fontWeight};
|
|
237
|
+
letter-spacing: ${mt.letterSpacing};
|
|
238
|
+
line-height: ${mt.lineHeight};
|
|
239
|
+
text-transform: ${mt.textTransform};
|
|
240
|
+
}
|
|
241
|
+
`,Il=qe.css`
|
|
241
242
|
.ft-typography {
|
|
242
243
|
vertical-align: inherit;
|
|
243
244
|
}
|
|
244
|
-
`,
|
|
245
|
-
<${
|
|
245
|
+
`,kl=[Object.keys(Qo).map(t=>Sl(t))];var _l=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Z=class extends Dl.FtLitElement{constructor(){super(...arguments),this.variant=Ze.body1}render(){return this.element?vi`
|
|
246
|
+
<${xi(this.element)}
|
|
246
247
|
part="text"
|
|
247
248
|
class="ft-typography ft-typography--${this.variant}">
|
|
248
249
|
<slot></slot>
|
|
249
|
-
</${
|
|
250
|
-
`:
|
|
250
|
+
</${xi(this.element)}>
|
|
251
|
+
`:vi`
|
|
251
252
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
252
|
-
`}};
|
|
253
|
+
`}};Z.styles=[Cl,El,wl,Al,Rl,Nl,tn,Tl,Ll,Pl,Il,...kl];_l([(0,Si.property)()],Z.prototype,"element",void 0);_l([(0,Si.property)()],Z.prototype,"variant",void 0);(0,$l.customElement)("ft-typography")(Z);var Hl=h(w());var po=h(P()),lr=h(j()),zl=h(w()),Wl=h(Ml());var Ur;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",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="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.EYE="",t.SHARE="󨃱"})(Ur||(Ur={}));var C;(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=""})(C||(C={}));var Xb=new Map([...["abw"].map(t=>[t,C.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,C.AUDIO]),...["avi"].map(t=>[t,C.AVI]),...["chm","xhs"].map(t=>[t,C.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,C.CODE]),...["csv"].map(t=>[t,C.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,C.DITA]),...["epub"].map(t=>[t,C.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,C.EXCEL]),...["flac"].map(t=>[t,C.FLAC]),...["gif"].map(t=>[t,C.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,C.GZIP]),...["html","htm","xhtml"].map(t=>[t,C.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,C.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,C.JPEG]),...["json"].map(t=>[t,C.JSON]),...["m4a","m4p"].map(t=>[t,C.M4A]),...["mov","qt"].map(t=>[t,C.MOV]),...["mp3"].map(t=>[t,C.MP3]),...["mp4","m4v"].map(t=>[t,C.MP4]),...["ogg","oga"].map(t=>[t,C.OGG]),...["pdf","ps"].map(t=>[t,C.PDF]),...["png"].map(t=>[t,C.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,C.POWERPOINT]),...["rar"].map(t=>[t,C.RAR]),...["stp"].map(t=>[t,C.STP]),...["txt","rtf","md","mdown"].map(t=>[t,C.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,C.VIDEO]),...["wav"].map(t=>[t,C.WAV]),...["wma"].map(t=>[t,C.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,C.WORD]),...["xml","xsl","rdf"].map(t=>[t,C.XML]),...["yaml","yml","x-yaml"].map(t=>[t,C.YAML]),...["zip"].map(t=>[t,C.ZIP])]);var Qb={[C.ABW]:"#91ABC6",[C.AUDIO]:"#1795E3",[C.AVI]:"#E63324",[C.CHM]:"#71C3EB",[C.CODE]:"#71C3EB",[C.CSV]:"#1F7345",[C.DITA]:"#71C3EB",[C.EPUB]:"#85B926",[C.EXCEL]:"#1F7345",[C.FLAC]:"#1795E3",[C.GIF]:"#59B031",[C.GZIP]:"#F8AB36",[C.HTML]:"#71C3EB",[C.IMAGE]:"#59B031",[C.JPEG]:"#59B031",[C.JSON]:"#71C3EB",[C.M4A]:"#1795E3",[C.MOV]:"#E63324",[C.MP3]:"#1795E3",[C.MP4]:"#E63324",[C.OGG]:"#1795E3",[C.PDF]:"#E44948",[C.PNG]:"#59B031",[C.POWERPOINT]:"#B54A2B",[C.RAR]:"#F8AB36",[C.STP]:"#3764B1",[C.TEXT]:"#3162AB",[C.UNKNOWN]:"#999999",[C.VIDEO]:"#E63324",[C.WAV]:"#1795E3",[C.WMA]:"#1795E3",[C.WORD]:"#3162AB",[C.XML]:"#71C3EB",[C.YAML]:"#71C3EB",[C.ZIP]:"#F8AB36"};var Ul=h(P()),Ot=h(w()),se={size:Ot.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ot.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ot.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ot.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ot.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ot.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ot.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ot.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Fl=Ul.css`
|
|
253
254
|
:host, i.ft-icon {
|
|
254
255
|
display: inline-flex;
|
|
255
256
|
align-items: center;
|
|
@@ -258,14 +259,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
258
259
|
}
|
|
259
260
|
|
|
260
261
|
:host {
|
|
261
|
-
width: ${
|
|
262
|
-
height: ${
|
|
262
|
+
width: ${se.size};
|
|
263
|
+
height: ${se.size};
|
|
263
264
|
}
|
|
264
265
|
|
|
265
266
|
i.ft-icon {
|
|
266
267
|
width: 100%;
|
|
267
268
|
height: 100%;
|
|
268
|
-
font-size: ${
|
|
269
|
+
font-size: ${se.size};
|
|
269
270
|
line-height: 1;
|
|
270
271
|
font-weight: normal;
|
|
271
272
|
text-transform: none;
|
|
@@ -276,33 +277,33 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
276
277
|
text-rendering: auto;
|
|
277
278
|
-webkit-font-smoothing: antialiased;
|
|
278
279
|
-moz-osx-font-smoothing: grayscale;
|
|
279
|
-
vertical-align: ${
|
|
280
|
+
vertical-align: ${se.verticalAlign};
|
|
280
281
|
}
|
|
281
282
|
|
|
282
283
|
i.ft-icon.ft-icon--fluid-topics {
|
|
283
|
-
font-family: ${
|
|
284
|
+
font-family: ${se.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
284
285
|
|
|
285
286
|
/* Ugly fix because font is broken */
|
|
286
|
-
font-size: calc(0.75 * ${
|
|
287
|
-
line-height: ${
|
|
287
|
+
font-size: calc(0.75 * ${se.size});
|
|
288
|
+
line-height: ${se.size};
|
|
288
289
|
position: relative;
|
|
289
290
|
top: -4%;
|
|
290
291
|
justify-content: center;
|
|
291
292
|
}
|
|
292
293
|
|
|
293
294
|
.ft-icon--file-format {
|
|
294
|
-
font-family: ${
|
|
295
|
+
font-family: ${se.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
295
296
|
}
|
|
296
297
|
|
|
297
298
|
.ft-icon--material {
|
|
298
|
-
font-family: ${
|
|
299
|
+
font-family: ${se.materialFontFamily}, "Material Icons", sans-serif;
|
|
299
300
|
}
|
|
300
|
-
`;var
|
|
301
|
+
`;var Ye;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ye||(Ye={}));var rn=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},fe=class extends zl.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=po.nothing}render(){let e=this.variant&&Object.values(Ye).includes(this.variant)?this.variant:Ye.fluid_topics,r=e!==Ye.material||!!this.value;return po.html`
|
|
301
302
|
<i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
|
|
302
|
-
${(0,
|
|
303
|
+
${(0,Wl.unsafeHTML)(this.resolvedIcon)}
|
|
303
304
|
<slot ?hidden=${r}></slot>
|
|
304
305
|
</i>
|
|
305
|
-
`}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let n=this.value||this.textContent;switch(this.variant){case
|
|
306
|
+
`}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let n=this.value||this.textContent;switch(this.variant){case Ye.file_format:this.resolvedIcon=(e=C[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Ye.material:this.resolvedIcon=this.value||po.nothing;break;default:this.resolvedIcon=(r=Ur[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};fe.elementDefinitions={};fe.styles=Fl;rn([(0,lr.property)()],fe.prototype,"variant",void 0);rn([(0,lr.property)()],fe.prototype,"value",void 0);rn([(0,lr.state)()],fe.prototype,"resolvedIcon",void 0);rn([(0,lr.query)("slot")],fe.prototype,"slottedContent",void 0);(0,Hl.customElement)("ft-icon")(fe);var un=h(P()),$=h(w());var ki=h(w());var xo=h(j()),Rc=h(w());var Zl=h(P()),_=h(w());var Vl=h(P()),fo=h(w()),Ae={color:fo.FtCssVariableFactory.extend("--ft-loader-color","",fo.designSystemVariables.colorPrimary),size:fo.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},jl=Vl.css`
|
|
306
307
|
:host {
|
|
307
308
|
line-height: 0;
|
|
308
309
|
}
|
|
@@ -311,8 +312,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
311
312
|
display: inline-block;
|
|
312
313
|
position: relative;
|
|
313
314
|
|
|
314
|
-
width: ${
|
|
315
|
-
height: ${
|
|
315
|
+
width: ${Ae.size};
|
|
316
|
+
height: ${Ae.size};
|
|
316
317
|
}
|
|
317
318
|
|
|
318
319
|
.ft-loader div {
|
|
@@ -321,7 +322,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
321
322
|
width: 25%;
|
|
322
323
|
height: 25%;
|
|
323
324
|
border-radius: 50%;
|
|
324
|
-
background: ${
|
|
325
|
+
background: ${Ae.color};
|
|
325
326
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
326
327
|
}
|
|
327
328
|
|
|
@@ -368,10 +369,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
368
369
|
transform: translate(0, 0);
|
|
369
370
|
}
|
|
370
371
|
100% {
|
|
371
|
-
transform: translate(calc(0.35 * ${
|
|
372
|
+
transform: translate(calc(0.35 * ${Ae.size}), 0);
|
|
372
373
|
}
|
|
373
374
|
}
|
|
374
|
-
`;var
|
|
375
|
+
`;var Gl=_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorPrimary),V={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorSurface),borderRadius:_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusL),color:Gl,fontSize:_.FtCssVariableFactory.extend("--ft-button-font-size","",mt.fontSize),iconSize:_.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:_.FtCssVariableFactory.extend("--ft-button-ripple-color","",Gl),verticalPadding:_.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:_.FtCssVariableFactory.external(_.designSystemVariables.colorOpacityDisabled,"Design system")},Kl=_.FtCssVariableFactory.extend("--ft-button-primary-color","",_.FtCssVariableFactory.extend("--ft-button-color","",_.designSystemVariables.colorOnPrimary)),Oi={backgroundColor:_.FtCssVariableFactory.extend("--ft-button-primary-background-color","",_.FtCssVariableFactory.extend("--ft-button-background-color","",_.designSystemVariables.colorPrimary)),color:Kl,rippleColor:_.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Kl)},yt={borderRadius:_.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",_.FtCssVariableFactory.extend("--ft-button-border-radius","",_.designSystemVariables.borderRadiusM)),verticalPadding:_.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:_.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:_.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},ql=[Zl.css`
|
|
375
376
|
:host {
|
|
376
377
|
display: inline-block;
|
|
377
378
|
max-width: 100%;
|
|
@@ -382,7 +383,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
382
383
|
box-shadow: 0px 0px 0px transparent;
|
|
383
384
|
border: 0px solid transparent;
|
|
384
385
|
text-shadow: 0px 0px 0px transparent;
|
|
385
|
-
font-size: ${
|
|
386
|
+
font-size: ${V.fontSize};
|
|
386
387
|
}
|
|
387
388
|
|
|
388
389
|
button:hover {
|
|
@@ -411,31 +412,31 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
411
412
|
border: none;
|
|
412
413
|
pointer-events: auto;
|
|
413
414
|
|
|
414
|
-
--ft-button-internal-line-height: max(calc(${
|
|
415
|
-
--ft-button-internal-color: ${
|
|
416
|
-
${(0,
|
|
417
|
-
${(0,
|
|
415
|
+
--ft-button-internal-line-height: max(calc(${V.fontSize} + 2px), ${V.iconSize});
|
|
416
|
+
--ft-button-internal-color: ${V.color};
|
|
417
|
+
${(0,_.setVariable)(se.size,V.iconSize)};
|
|
418
|
+
${(0,_.setVariable)(F.color,V.rippleColor)};
|
|
418
419
|
|
|
419
|
-
border-radius: ${
|
|
420
|
-
padding: ${
|
|
421
|
-
background-color: ${
|
|
420
|
+
border-radius: ${V.borderRadius};
|
|
421
|
+
padding: ${V.verticalPadding} ${V.horizontalPadding};
|
|
422
|
+
background-color: ${V.backgroundColor};
|
|
422
423
|
color: var(--ft-button-internal-color);
|
|
423
424
|
-webkit-mask-image: radial-gradient(white, black);
|
|
424
425
|
}
|
|
425
426
|
|
|
426
427
|
.ft-button.ft-button--outlined {
|
|
427
428
|
border: 1px solid var(--ft-button-internal-color);
|
|
428
|
-
padding: calc(${
|
|
429
|
+
padding: calc(${V.verticalPadding} - 1px) calc(${V.horizontalPadding} - 1px);
|
|
429
430
|
}
|
|
430
431
|
|
|
431
432
|
.ft-button.ft-button--dense {
|
|
432
|
-
padding: ${
|
|
433
|
-
border-radius: ${
|
|
434
|
-
gap: ${
|
|
433
|
+
padding: ${yt.verticalPadding} ${yt.horizontalPadding};
|
|
434
|
+
border-radius: ${yt.borderRadius};
|
|
435
|
+
gap: ${yt.iconPadding};
|
|
435
436
|
}
|
|
436
437
|
|
|
437
438
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
438
|
-
padding: calc(${
|
|
439
|
+
padding: calc(${yt.verticalPadding} - 1px) calc(${yt.horizontalPadding} - 1px);
|
|
439
440
|
}
|
|
440
441
|
|
|
441
442
|
.ft-button:not([disabled]):hover {
|
|
@@ -443,22 +444,22 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
443
444
|
}
|
|
444
445
|
|
|
445
446
|
.ft-button--round {
|
|
446
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
447
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${V.verticalPadding});
|
|
447
448
|
}
|
|
448
449
|
|
|
449
450
|
.ft-button--round.ft-button--dense {
|
|
450
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
451
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${yt.verticalPadding});
|
|
451
452
|
}
|
|
452
453
|
|
|
453
454
|
.ft-button[disabled] {
|
|
454
455
|
filter: grayscale(1);
|
|
455
|
-
opacity: ${
|
|
456
|
+
opacity: ${V.opacityDisabled};
|
|
456
457
|
}
|
|
457
458
|
|
|
458
459
|
.ft-button.ft-button--primary {
|
|
459
|
-
background-color: ${
|
|
460
|
-
--ft-button-internal-color: ${
|
|
461
|
-
${(0,
|
|
460
|
+
background-color: ${Oi.backgroundColor};
|
|
461
|
+
--ft-button-internal-color: ${Oi.color};
|
|
462
|
+
${(0,_.setVariable)(F.color,Oi.rippleColor)};
|
|
462
463
|
}
|
|
463
464
|
|
|
464
465
|
.ft-button:focus {
|
|
@@ -471,13 +472,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
471
472
|
white-space: nowrap;
|
|
472
473
|
text-overflow: ellipsis;
|
|
473
474
|
display: block;
|
|
474
|
-
margin: 0 ${
|
|
475
|
-
${(0,
|
|
476
|
-
${(0,
|
|
475
|
+
margin: 0 ${V.iconPadding};
|
|
476
|
+
${(0,_.setVariable)(mt.fontSize,"1em")};
|
|
477
|
+
${(0,_.setVariable)(mt.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
477
478
|
}
|
|
478
479
|
|
|
479
480
|
.ft-button--dense .ft-button--label {
|
|
480
|
-
margin: 0 ${
|
|
481
|
+
margin: 0 ${yt.iconPadding};
|
|
481
482
|
}
|
|
482
483
|
|
|
483
484
|
.ft-button--label[hidden] {
|
|
@@ -490,13 +491,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
490
491
|
}
|
|
491
492
|
|
|
492
493
|
.ft-button--label[hidden] + [part="icon"] {
|
|
493
|
-
margin: 0 calc(${
|
|
494
|
-
padding: 0 ${
|
|
494
|
+
margin: 0 calc(${V.horizontalPadding} * -1);
|
|
495
|
+
padding: 0 ${V.verticalPadding};
|
|
495
496
|
}
|
|
496
497
|
|
|
497
498
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
498
|
-
margin: 0 calc(${
|
|
499
|
-
padding: 0 ${
|
|
499
|
+
margin: 0 calc(${yt.horizontalPadding} * -1);
|
|
500
|
+
padding: 0 ${yt.verticalPadding};
|
|
500
501
|
}
|
|
501
502
|
|
|
502
503
|
.ft-button:not(.ft-button--trailing-icon) [part="label"]{
|
|
@@ -504,10 +505,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
504
505
|
}
|
|
505
506
|
|
|
506
507
|
ft-loader {
|
|
507
|
-
${(0,
|
|
508
|
-
${(0,
|
|
508
|
+
${(0,_.setVariable)(Ae.size,V.iconSize)};
|
|
509
|
+
${(0,_.setVariable)(Ae.color,"var(--ft-button-internal-color)")};
|
|
509
510
|
}
|
|
510
|
-
`,
|
|
511
|
+
`,_.noTextSelect];var jr=h(w());var Oc=h(w());var Sc=h(P()),le=h(j()),bo=h(w());var Yl=h(P()),Ct=h(w()),Fr={distance:Ct.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ct.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ct.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Ct.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Ct.FtCssVariableFactory.external(Ct.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Ct.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Xl=Yl.css`
|
|
511
512
|
.ft-tooltip--container {
|
|
512
513
|
display: block;
|
|
513
514
|
}
|
|
@@ -522,21 +523,21 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
522
523
|
box-sizing: border-box;
|
|
523
524
|
overflow: hidden;
|
|
524
525
|
width: max-content;
|
|
525
|
-
max-width: ${
|
|
526
|
+
max-width: ${Fr.maxWidth};
|
|
526
527
|
text-align: center;
|
|
527
|
-
padding: ${
|
|
528
|
-
z-index: ${
|
|
528
|
+
padding: ${Fr.distance};
|
|
529
|
+
z-index: ${Fr.zIndex};
|
|
529
530
|
}
|
|
530
531
|
|
|
531
532
|
.ft-tooltip--content {
|
|
532
533
|
padding: 4px 8px;
|
|
533
|
-
border-radius: ${
|
|
534
|
-
background-color: ${
|
|
535
|
-
color: ${
|
|
534
|
+
border-radius: ${Fr.borderRadiusS};
|
|
535
|
+
background-color: ${Fr.backgroundColor};
|
|
536
|
+
color: ${Fr.color};
|
|
536
537
|
position: relative;
|
|
537
538
|
word-break: break-word;
|
|
538
539
|
}
|
|
539
|
-
`;var Gl=["top","right","bottom","left"],jl=["start","end"],bi=Gl.reduce((t,e)=>t.concat(e,e+"-"+jl[0],e+"-"+jl[1]),[]),lo=Math.min,Ht=Math.max,co=Math.round;var St=t=>({x:t,y:t}),Tp={left:"right",right:"left",bottom:"top",top:"bottom"},Lp={start:"end",end:"start"};function xi(t,e,r){return Ht(t,lo(e,r))}function Xo(t,e){return typeof t=="function"?t(e):t}function Dr(t){return t.split("-")[0]}function Vt(t){return t.split("-")[1]}function vi(t){return t==="x"?"y":"x"}function Si(t){return t==="y"?"height":"width"}function Qo(t){return["top","bottom"].includes(Dr(t))?"y":"x"}function Oi(t){return vi(Qo(t))}function Kl(t,e,r){r===void 0&&(r=!1);let n=Vt(t),i=Oi(t),a=Si(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=gi(s)),[s,gi(s)]}function Zl(t){return t.replace(/start|end/g,e=>Lp[e])}function gi(t){return t.replace(/left|right|bottom|top/g,e=>Tp[e])}function Ip(t){return{top:0,right:0,bottom:0,left:0,...t}}function ql(t){return typeof t!="number"?Ip(t):{top:t,right:t,bottom:t,left:t}}function nr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Yl(t,e,r){let{reference:n,floating:i}=t,a=Qo(e),s=Oi(e),l=Si(s),p=Dr(e),f=a==="y",u=n.x+n.width/2-i.width/2,y=n.y+n.height/2-i.height/2,g=n[l]/2-i[l]/2,x;switch(p){case"top":x={x:u,y:n.y-i.height};break;case"bottom":x={x:u,y:n.y+n.height};break;case"right":x={x:n.x+n.width,y};break;case"left":x={x:n.x-i.width,y};break;default:x={x:n.x,y:n.y}}switch(Vt(e)){case"start":x[s]-=g*(r&&f?-1:1);break;case"end":x[s]+=g*(r&&f?-1:1);break}return x}var Xl=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y}=Yl(f,n,p),g=n,x={},b=0;for(let S=0;S<l.length;S++){let{name:T,fn:R}=l[S],{x:N,y:_,data:k,reset:V}=await R({x:u,y,initialPlacement:n,placement:g,strategy:i,middlewareData:x,rects:f,platform:s,elements:{reference:t,floating:e}});if(u=N??u,y=_??y,x={...x,[T]:{...x[T],...k}},V&&b<=50){b++,typeof V=="object"&&(V.placement&&(g=V.placement),V.rects&&(f=V.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):V.rects),{x:u,y}=Yl(f,g,p)),S=-1;continue}}return{x:u,y,placement:g,strategy:i,middlewareData:x}};async function Ci(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:a,rects:s,elements:l,strategy:p}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:y="floating",altBoundary:g=!1,padding:x=0}=Xo(e,t),b=ql(x),T=l[g?y==="floating"?"reference":"floating":y],R=nr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(T)))==null||r?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:u,strategy:p})),N=y==="floating"?{...s.floating,x:n,y:i}:s.reference,_=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),k=await(a.isElement==null?void 0:a.isElement(_))?await(a.getScale==null?void 0:a.getScale(_))||{x:1,y:1}:{x:1,y:1},V=nr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:N,offsetParent:_,strategy:p}):N);return{top:(R.top-V.top+b.top)/k.y,bottom:(V.bottom-R.bottom+b.bottom)/k.y,left:(R.left-V.left+b.left)/k.x,right:(V.right-R.right+b.right)/k.x}}function Pp(t,e,r){return(t?[...r.filter(i=>Vt(i)===t),...r.filter(i=>Vt(i)!==t)]:r.filter(i=>Dr(i)===i)).filter(i=>t?Vt(i)===t||(e?Zl(i)!==i:!1):!0)}var Ei=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:a,middlewareData:s,placement:l,platform:p,elements:f}=e,{crossAxis:u=!1,alignment:y,allowedPlacements:g=bi,autoAlignment:x=!0,...b}=Xo(t,e),S=y!==void 0||g===bi?Pp(y||null,x,g):g,T=await Ci(e,b),R=((r=s.autoPlacement)==null?void 0:r.index)||0,N=S[R];if(N==null)return{};let _=Kl(N,a,await(p.isRTL==null?void 0:p.isRTL(f.floating)));if(l!==N)return{reset:{placement:S[0]}};let k=[T[Dr(N)],T[_[0]],T[_[1]]],V=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:k}],Ne=S[R+1];if(Ne)return{data:{index:R+1,overflows:V},reset:{placement:Ne}};let se=V.map(m=>{let v=Vt(m.placement);return[m.placement,v&&u?m.overflows.slice(0,2).reduce((L,q)=>L+q,0):m.overflows[0],m.overflows]}).sort((m,v)=>m[1]-v[1]),Ve=((i=se.filter(m=>m[2].slice(0,Vt(m[0])?2:3).every(v=>v<=0))[0])==null?void 0:i[0])||se[0][0];return Ve!==l?{data:{index:R+1,overflows:V},reset:{placement:Ve}}:{}}}};var wi=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:T=>{let{x:R,y:N}=T;return{x:R,y:N}}},...p}=Xo(t,e),f={x:r,y:n},u=await Ci(e,p),y=Qo(Dr(i)),g=vi(y),x=f[g],b=f[y];if(a){let T=g==="y"?"top":"left",R=g==="y"?"bottom":"right",N=x+u[T],_=x-u[R];x=xi(N,x,_)}if(s){let T=y==="y"?"top":"left",R=y==="y"?"bottom":"right",N=b+u[T],_=b-u[R];b=xi(N,b,_)}let S=l.fn({...e,[g]:x,[y]:b});return{...S,data:{x:S.x-r,y:S.y-n}}}}};function Ot(t){return Jl(t)?(t.nodeName||"").toLowerCase():"#document"}function Le(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ct(t){var e;return(e=(Jl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Jl(t){return t instanceof Node||t instanceof Le(t).Node}function ht(t){return t instanceof Element||t instanceof Le(t).Element}function tt(t){return t instanceof HTMLElement||t instanceof Le(t).HTMLElement}function Ql(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Le(t).ShadowRoot}function $r(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=Be(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function ec(t){return["table","td","th"].includes(Ot(t))}function en(t){let e=tn(),r=Be(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function tc(t){let e=ir(t);for(;tt(e)&&!po(e);){if(en(e))return e;e=ir(e)}return null}function tn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function po(t){return["html","body","#document"].includes(Ot(t))}function Be(t){return Le(t).getComputedStyle(t)}function fo(t){return ht(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ir(t){if(Ot(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ql(t)&&t.host||Ct(t);return Ql(e)?e.host:e}function rc(t){let e=ir(t);return po(e)?t.ownerDocument?t.ownerDocument.body:t.body:tt(e)&&$r(e)?e:rc(e)}function Jo(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=rc(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),s=Le(i);return a?e.concat(s,s.visualViewport||[],$r(i)?i:[],s.frameElement&&r?Jo(s.frameElement):[]):e.concat(i,Jo(i,[],r))}function ic(t){let e=Be(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=tt(t),a=i?t.offsetWidth:r,s=i?t.offsetHeight:n,l=co(r)!==a||co(n)!==s;return l&&(r=a,n=s),{width:r,height:n,$:l}}function ac(t){return ht(t)?t:t.contextElement}function Br(t){let e=ac(t);if(!tt(e))return St(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:a}=ic(e),s=(a?co(r.width):r.width)/n,l=(a?co(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var kp=St(0);function sc(t){let e=Le(t);return!tn()||!e.visualViewport?kp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _p(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Le(t)?!1:e}function uo(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),a=ac(t),s=St(1);e&&(n?ht(n)&&(s=Br(n)):s=Br(t));let l=_p(a,r,n)?sc(a):St(0),p=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,u=i.width/s.x,y=i.height/s.y;if(a){let g=Le(a),x=n&&ht(n)?Le(n):n,b=g.frameElement;for(;b&&n&&x!==g;){let S=Br(b),T=b.getBoundingClientRect(),R=Be(b),N=T.left+(b.clientLeft+parseFloat(R.paddingLeft))*S.x,_=T.top+(b.clientTop+parseFloat(R.paddingTop))*S.y;p*=S.x,f*=S.y,u*=S.x,y*=S.y,p+=N,f+=_,b=Le(b).frameElement}}return nr({width:u,height:y,x:p,y:f})}function Dp(t){let{rect:e,offsetParent:r,strategy:n}=t,i=tt(r),a=Ct(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},l=St(1),p=St(0);if((i||!i&&n!=="fixed")&&((Ot(r)!=="body"||$r(a))&&(s=fo(r)),tt(r))){let f=uo(r);l=Br(r),p.x=f.x+r.clientLeft,p.y=f.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+p.x,y:e.y*l.y-s.scrollTop*l.y+p.y}}function $p(t){return Array.from(t.getClientRects())}function lc(t){return uo(Ct(t)).left+fo(t).scrollLeft}function Bp(t){let e=Ct(t),r=fo(t),n=t.ownerDocument.body,i=Ht(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Ht(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+lc(t),l=-r.scrollTop;return Be(n).direction==="rtl"&&(s+=Ht(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:l}}function Mp(t,e){let r=Le(t),n=Ct(t),i=r.visualViewport,a=n.clientWidth,s=n.clientHeight,l=0,p=0;if(i){a=i.width,s=i.height;let f=tn();(!f||f&&e==="fixed")&&(l=i.offsetLeft,p=i.offsetTop)}return{width:a,height:s,x:l,y:p}}function Up(t,e){let r=uo(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,a=tt(t)?Br(t):St(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,p=i*a.x,f=n*a.y;return{width:s,height:l,x:p,y:f}}function oc(t,e,r){let n;if(e==="viewport")n=Mp(t,r);else if(e==="document")n=Bp(Ct(t));else if(ht(e))n=Up(e,r);else{let i=sc(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return nr(n)}function cc(t,e){let r=ir(t);return r===e||!ht(r)||po(r)?!1:Be(r).position==="fixed"||cc(r,e)}function Fp(t,e){let r=e.get(t);if(r)return r;let n=Jo(t,[],!1).filter(l=>ht(l)&&Ot(l)!=="body"),i=null,a=Be(t).position==="fixed",s=a?ir(t):t;for(;ht(s)&&!po(s);){let l=Be(s),p=en(s);!p&&l.position==="fixed"&&(i=null),(a?!p&&!i:!p&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||$r(s)&&!p&&cc(t,s))?n=n.filter(u=>u!==s):i=l,s=ir(s)}return e.set(t,n),n}function zp(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,s=[...r==="clippingAncestors"?Fp(e,this._c):[].concat(r),n],l=s[0],p=s.reduce((f,u)=>{let y=oc(e,u,i);return f.top=Ht(y.top,f.top),f.right=lo(y.right,f.right),f.bottom=lo(y.bottom,f.bottom),f.left=Ht(y.left,f.left),f},oc(e,l,i));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Wp(t){return ic(t)}function Hp(t,e,r){let n=tt(e),i=Ct(e),a=r==="fixed",s=uo(t,!0,a,e),l={scrollLeft:0,scrollTop:0},p=St(0);if(n||!n&&!a)if((Ot(e)!=="body"||$r(i))&&(l=fo(e)),n){let f=uo(e,!0,a,e);p.x=f.x+e.clientLeft,p.y=f.y+e.clientTop}else i&&(p.x=lc(i));return{x:s.left+l.scrollLeft-p.x,y:s.top+l.scrollTop-p.y,width:s.width,height:s.height}}function nc(t,e){return!tt(t)||Be(t).position==="fixed"?null:e?e(t):t.offsetParent}function dc(t,e){let r=Le(t);if(!tt(t))return r;let n=nc(t,e);for(;n&&ec(n)&&Be(n).position==="static";)n=nc(n,e);return n&&(Ot(n)==="html"||Ot(n)==="body"&&Be(n).position==="static"&&!en(n))?r:n||tc(t)||r}var Vp=async function(t){let{reference:e,floating:r,strategy:n}=t,i=this.getOffsetParent||dc,a=this.getDimensions;return{reference:Hp(e,await i(r),n),floating:{x:0,y:0,...await a(r)}}};function jp(t){return Be(t).direction==="rtl"}var rn={convertOffsetParentRelativeRectToViewportRelativeRect:Dp,getDocumentElement:Ct,getClippingRect:zp,getOffsetParent:dc,getElementRects:Vp,getClientRects:$p,getDimensions:Wp,getScale:Br,isElement:ht,isRTL:jp};var pc=(t,e,r)=>{let n=new Map,i={platform:rn,...r},a={...i.platform,_c:n};return Xl(t,e,{...i,platform:a})};function fc(t){return Gp(t)}function Ai(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Gp(t){for(let e=t;e;e=Ai(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ai(t);e;e=Ai(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function uc(t,e,r){return pc(t,e,{platform:{...rn,getOffsetParent:n=>rn.getOffsetParent(n,fc)},middleware:[wi({crossAxis:!0}),Ei({allowedPlacements:[r]})]})}var Ie=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},X=class extends ho.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new ho.Debouncer,this.revealDebouncer=new ho.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return hc.html`
|
|
540
|
+
`;var Jl=["top","right","bottom","left"],Ql=["start","end"],Ei=Jl.reduce((t,e)=>t.concat(e,e+"-"+Ql[0],e+"-"+Ql[1]),[]),uo=Math.min,Kt=Math.max,ho=Math.round;var Et=t=>({x:t,y:t}),Bp={left:"right",right:"left",bottom:"top",top:"bottom"},Mp={start:"end",end:"start"};function wi(t,e,r){return Kt(t,uo(e,r))}function on(t,e){return typeof t=="function"?t(e):t}function zr(t){return t.split("-")[0]}function Zt(t){return t.split("-")[1]}function Ai(t){return t==="x"?"y":"x"}function Ri(t){return t==="y"?"height":"width"}function nn(t){return["top","bottom"].includes(zr(t))?"y":"x"}function Ni(t){return Ai(nn(t))}function ec(t,e,r){r===void 0&&(r=!1);let n=Zt(t),i=Ni(t),a=Ri(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Ci(s)),[s,Ci(s)]}function tc(t){return t.replace(/start|end/g,e=>Mp[e])}function Ci(t){return t.replace(/left|right|bottom|top/g,e=>Bp[e])}function Up(t){return{top:0,right:0,bottom:0,left:0,...t}}function rc(t){return typeof t!="number"?Up(t):{top:t,right:t,bottom:t,left:t}}function cr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function oc(t,e,r){let{reference:n,floating:i}=t,a=nn(e),s=Ni(e),l=Ri(s),d=zr(e),f=a==="y",m=n.x+n.width/2-i.width/2,y=n.y+n.height/2-i.height/2,g=n[l]/2-i[l]/2,v;switch(d){case"top":v={x:m,y:n.y-i.height};break;case"bottom":v={x:m,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y};break;case"left":v={x:n.x-i.width,y};break;default:v={x:n.x,y:n.y}}switch(Zt(e)){case"start":v[s]-=g*(r&&f?-1:1);break;case"end":v[s]+=g*(r&&f?-1:1);break}return v}var nc=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,l=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(e)),f=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:m,y}=oc(f,n,d),g=n,v={},x=0;for(let S=0;S<l.length;S++){let{name:T,fn:R}=l[S],{x:N,y:k,data:D,reset:M}=await R({x:m,y,initialPlacement:n,placement:g,strategy:i,middlewareData:v,rects:f,platform:s,elements:{reference:t,floating:e}});if(m=N??m,y=k??y,v={...v,[T]:{...v[T],...D}},M&&x<=50){x++,typeof M=="object"&&(M.placement&&(g=M.placement),M.rects&&(f=M.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):M.rects),{x:m,y}=oc(f,g,d)),S=-1;continue}}return{x:m,y,placement:g,strategy:i,middlewareData:v}};async function Ti(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:a,rects:s,elements:l,strategy:d}=t,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:g=!1,padding:v=0}=on(e,t),x=rc(v),T=l[g?y==="floating"?"reference":"floating":y],R=cr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(T)))==null||r?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:f,rootBoundary:m,strategy:d})),N=y==="floating"?{...s.floating,x:n,y:i}:s.reference,k=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),D=await(a.isElement==null?void 0:a.isElement(k))?await(a.getScale==null?void 0:a.getScale(k))||{x:1,y:1}:{x:1,y:1},M=cr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:N,offsetParent:k,strategy:d}):N);return{top:(R.top-M.top+x.top)/D.y,bottom:(M.bottom-R.bottom+x.bottom)/D.y,left:(R.left-M.left+x.left)/D.x,right:(M.right-R.right+x.right)/D.x}}function Fp(t,e,r){return(t?[...r.filter(i=>Zt(i)===t),...r.filter(i=>Zt(i)!==t)]:r.filter(i=>zr(i)===i)).filter(i=>t?Zt(i)===t||(e?tc(i)!==i:!1):!0)}var Li=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:a,middlewareData:s,placement:l,platform:d,elements:f}=e,{crossAxis:m=!1,alignment:y,allowedPlacements:g=Ei,autoAlignment:v=!0,...x}=on(t,e),S=y!==void 0||g===Ei?Fp(y||null,v,g):g,T=await Ti(e,x),R=((r=s.autoPlacement)==null?void 0:r.index)||0,N=S[R];if(N==null)return{};let k=ec(N,a,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(l!==N)return{reset:{placement:S[0]}};let D=[T[zr(N)],T[k[0]],T[k[1]]],M=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:N,overflows:D}],Le=S[R+1];if(Le)return{data:{index:R+1,overflows:M},reset:{placement:Le}};let dt=M.map(me=>{let u=Zt(me.placement);return[me.placement,u&&m?me.overflows.slice(0,2).reduce((b,L)=>b+L,0):me.overflows[0],me.overflows]}).sort((me,u)=>me[1]-u[1]),pt=((i=dt.filter(me=>me[2].slice(0,Zt(me[0])?2:3).every(u=>u<=0))[0])==null?void 0:i[0])||dt[0][0];return pt!==l?{data:{index:R+1,overflows:M},reset:{placement:pt}}:{}}}};var Pi=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:T=>{let{x:R,y:N}=T;return{x:R,y:N}}},...d}=on(t,e),f={x:r,y:n},m=await Ti(e,d),y=nn(zr(i)),g=Ai(y),v=f[g],x=f[y];if(a){let T=g==="y"?"top":"left",R=g==="y"?"bottom":"right",N=v+m[T],k=v-m[R];v=wi(N,v,k)}if(s){let T=y==="y"?"top":"left",R=y==="y"?"bottom":"right",N=x+m[T],k=x-m[R];x=wi(N,x,k)}let S=l.fn({...e,[g]:v,[y]:x});return{...S,data:{x:S.x-r,y:S.y-n}}}}};function wt(t){return ac(t)?(t.nodeName||"").toLowerCase():"#document"}function Ie(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function At(t){var e;return(e=(ac(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ac(t){return t instanceof Node||t instanceof Ie(t).Node}function gt(t){return t instanceof Element||t instanceof Ie(t).Element}function rt(t){return t instanceof HTMLElement||t instanceof Ie(t).HTMLElement}function ic(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ie(t).ShadowRoot}function Wr(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=Ue(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function sc(t){return["table","td","th"].includes(wt(t))}function sn(t){let e=ln(),r=Ue(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function lc(t){let e=dr(t);for(;rt(e)&&!mo(e);){if(sn(e))return e;e=dr(e)}return null}function ln(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function mo(t){return["html","body","#document"].includes(wt(t))}function Ue(t){return Ie(t).getComputedStyle(t)}function yo(t){return gt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function dr(t){if(wt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||ic(t)&&t.host||At(t);return ic(e)?e.host:e}function cc(t){let e=dr(t);return mo(e)?t.ownerDocument?t.ownerDocument.body:t.body:rt(e)&&Wr(e)?e:cc(e)}function an(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=cc(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),s=Ie(i);return a?e.concat(s,s.visualViewport||[],Wr(i)?i:[],s.frameElement&&r?an(s.frameElement):[]):e.concat(i,an(i,[],r))}function fc(t){let e=Ue(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=rt(t),a=i?t.offsetWidth:r,s=i?t.offsetHeight:n,l=ho(r)!==a||ho(n)!==s;return l&&(r=a,n=s),{width:r,height:n,$:l}}function uc(t){return gt(t)?t:t.contextElement}function Hr(t){let e=uc(t);if(!rt(e))return Et(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:a}=fc(e),s=(a?ho(r.width):r.width)/n,l=(a?ho(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var zp=Et(0);function hc(t){let e=Ie(t);return!ln()||!e.visualViewport?zp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Wp(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Ie(t)?!1:e}function go(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),a=uc(t),s=Et(1);e&&(n?gt(n)&&(s=Hr(n)):s=Hr(t));let l=Wp(a,r,n)?hc(a):Et(0),d=(i.left+l.x)/s.x,f=(i.top+l.y)/s.y,m=i.width/s.x,y=i.height/s.y;if(a){let g=Ie(a),v=n&>(n)?Ie(n):n,x=g.frameElement;for(;x&&n&&v!==g;){let S=Hr(x),T=x.getBoundingClientRect(),R=Ue(x),N=T.left+(x.clientLeft+parseFloat(R.paddingLeft))*S.x,k=T.top+(x.clientTop+parseFloat(R.paddingTop))*S.y;d*=S.x,f*=S.y,m*=S.x,y*=S.y,d+=N,f+=k,x=Ie(x).frameElement}}return cr({width:m,height:y,x:d,y:f})}function Hp(t){let{rect:e,offsetParent:r,strategy:n}=t,i=rt(r),a=At(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},l=Et(1),d=Et(0);if((i||!i&&n!=="fixed")&&((wt(r)!=="body"||Wr(a))&&(s=yo(r)),rt(r))){let f=go(r);l=Hr(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+d.x,y:e.y*l.y-s.scrollTop*l.y+d.y}}function Vp(t){return Array.from(t.getClientRects())}function mc(t){return go(At(t)).left+yo(t).scrollLeft}function jp(t){let e=At(t),r=yo(t),n=t.ownerDocument.body,i=Kt(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Kt(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+mc(t),l=-r.scrollTop;return Ue(n).direction==="rtl"&&(s+=Kt(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:l}}function Gp(t,e){let r=Ie(t),n=At(t),i=r.visualViewport,a=n.clientWidth,s=n.clientHeight,l=0,d=0;if(i){a=i.width,s=i.height;let f=ln();(!f||f&&e==="fixed")&&(l=i.offsetLeft,d=i.offsetTop)}return{width:a,height:s,x:l,y:d}}function Kp(t,e){let r=go(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,a=rt(t)?Hr(t):Et(1),s=t.clientWidth*a.x,l=t.clientHeight*a.y,d=i*a.x,f=n*a.y;return{width:s,height:l,x:d,y:f}}function dc(t,e,r){let n;if(e==="viewport")n=Gp(t,r);else if(e==="document")n=jp(At(t));else if(gt(e))n=Kp(e,r);else{let i=hc(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return cr(n)}function yc(t,e){let r=dr(t);return r===e||!gt(r)||mo(r)?!1:Ue(r).position==="fixed"||yc(r,e)}function Zp(t,e){let r=e.get(t);if(r)return r;let n=an(t,[],!1).filter(l=>gt(l)&&wt(l)!=="body"),i=null,a=Ue(t).position==="fixed",s=a?dr(t):t;for(;gt(s)&&!mo(s);){let l=Ue(s),d=sn(s);!d&&l.position==="fixed"&&(i=null),(a?!d&&!i:!d&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Wr(s)&&!d&&yc(t,s))?n=n.filter(m=>m!==s):i=l,s=dr(s)}return e.set(t,n),n}function qp(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,s=[...r==="clippingAncestors"?Zp(e,this._c):[].concat(r),n],l=s[0],d=s.reduce((f,m)=>{let y=dc(e,m,i);return f.top=Kt(y.top,f.top),f.right=uo(y.right,f.right),f.bottom=uo(y.bottom,f.bottom),f.left=Kt(y.left,f.left),f},dc(e,l,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Yp(t){return fc(t)}function Xp(t,e,r){let n=rt(e),i=At(e),a=r==="fixed",s=go(t,!0,a,e),l={scrollLeft:0,scrollTop:0},d=Et(0);if(n||!n&&!a)if((wt(e)!=="body"||Wr(i))&&(l=yo(e)),n){let f=go(e,!0,a,e);d.x=f.x+e.clientLeft,d.y=f.y+e.clientTop}else i&&(d.x=mc(i));return{x:s.left+l.scrollLeft-d.x,y:s.top+l.scrollTop-d.y,width:s.width,height:s.height}}function pc(t,e){return!rt(t)||Ue(t).position==="fixed"?null:e?e(t):t.offsetParent}function gc(t,e){let r=Ie(t);if(!rt(t))return r;let n=pc(t,e);for(;n&&sc(n)&&Ue(n).position==="static";)n=pc(n,e);return n&&(wt(n)==="html"||wt(n)==="body"&&Ue(n).position==="static"&&!sn(n))?r:n||lc(t)||r}var Qp=async function(t){let{reference:e,floating:r,strategy:n}=t,i=this.getOffsetParent||gc,a=this.getDimensions;return{reference:Xp(e,await i(r),n),floating:{x:0,y:0,...await a(r)}}};function Jp(t){return Ue(t).direction==="rtl"}var cn={convertOffsetParentRelativeRectToViewportRelativeRect:Hp,getDocumentElement:At,getClippingRect:qp,getOffsetParent:gc,getElementRects:Qp,getClientRects:Vp,getDimensions:Yp,getScale:Hr,isElement:gt,isRTL:Jp};var bc=(t,e,r)=>{let n=new Map,i={platform:cn,...r},a={...i.platform,_c:n};return nc(t,e,{...i,platform:a})};function xc(t){return ef(t)}function Ii(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function ef(t){for(let e=t;e;e=Ii(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ii(t);e;e=Ii(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function vc(t,e,r){return bc(t,e,{platform:{...cn,getOffsetParent:n=>cn.getOffsetParent(n,xc)},middleware:[Pi({crossAxis:!0}),Li({allowedPlacements:[r]})]})}var ke=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},X=class extends bo.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new bo.Debouncer,this.revealDebouncer=new bo.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Sc.html`
|
|
540
541
|
<div part="container"
|
|
541
542
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
542
543
|
@mouseenter=${this.onHover}
|
|
@@ -554,40 +555,40 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
554
555
|
</div>
|
|
555
556
|
</div>
|
|
556
557
|
</div>
|
|
557
|
-
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",
|
|
558
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",vc(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,r){return Math.max(e,Math.min(0,-r))}};X.elementDefinitions={"ft-typography":Z};X.styles=Xl;ke([(0,le.property)()],X.prototype,"text",void 0);ke([(0,le.property)({type:Boolean})],X.prototype,"manual",void 0);ke([(0,le.property)({type:Boolean})],X.prototype,"inline",void 0);ke([(0,le.property)({type:Number})],X.prototype,"delay",void 0);ke([(0,le.property)()],X.prototype,"position",void 0);ke([(0,le.queryAssignedNodes)()],X.prototype,"slotNodes",void 0);ke([(0,le.query)(".ft-tooltip--container")],X.prototype,"container",void 0);ke([(0,le.query)(".ft-tooltip")],X.prototype,"tooltip",void 0);ke([(0,le.query)(".ft-tooltip--content")],X.prototype,"tooltipContent",void 0);ke([(0,le.state)()],X.prototype,"visible",void 0);ke([(0,le.eventOptions)({passive:!0})],X.prototype,"onTouch",null);ke([(0,le.eventOptions)({passive:!0})],X.prototype,"onHover",null);ke([(0,le.eventOptions)({passive:!0})],X.prototype,"onOut",null);ke([(0,le.eventOptions)({passive:!0})],X.prototype,"onClick",null);(0,Oc.customElement)("ft-tooltip")(X);var wc=h(w());var Cc=h(P()),Ec=h(w());var pr=class extends Ec.FtLitElement{render(){return Cc.html`
|
|
558
559
|
<div class="ft-loader">
|
|
559
560
|
<div></div>
|
|
560
561
|
<div></div>
|
|
561
562
|
<div></div>
|
|
562
563
|
<div></div>
|
|
563
564
|
</div>
|
|
564
|
-
`}};
|
|
565
|
+
`}};pr.styles=jl;(0,wc.customElement)("ft-loader")(pr);var Vr=h(P()),Ac=h(Vt()),Se=h(j()),_e=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},oe=class extends(0,jr.toFtFormComponent)(jr.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e;return this.addTooltipIfNeeded(Vr.html`
|
|
565
566
|
<button part="button"
|
|
566
|
-
class="${(0,
|
|
567
|
+
class="${(0,Ac.classMap)(this.buttonClasses)}"
|
|
567
568
|
aria-label="${(e=this.ariaLabel)!==null&&e!==void 0?e:this.getLabel()}"
|
|
568
569
|
?disabled=${this.isDisabled()}>
|
|
569
570
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
570
571
|
<ft-typography part="label"
|
|
571
572
|
variant=${this.typographyVariant}
|
|
572
573
|
element="span"
|
|
573
|
-
class="ft-button--label ${
|
|
574
|
+
class="ft-button--label ${jr.isSafari?"ft-safari-ellipsis-fix":""}"
|
|
574
575
|
?hidden=${!this.hasTextContent()}>
|
|
575
576
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
576
577
|
</ft-typography>
|
|
577
578
|
${this.resolveIcon()}
|
|
578
579
|
</button>
|
|
579
|
-
`)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
580
|
+
`)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Vr.html`
|
|
580
581
|
<ft-tooltip part="tooltip"
|
|
581
582
|
text="${this.getLabel()}"
|
|
582
583
|
position="${this.tooltipPosition}">
|
|
583
584
|
${e}
|
|
584
585
|
</ft-tooltip>
|
|
585
|
-
`:e}resolveIcon(){return this.loading?
|
|
586
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
586
|
+
`:e}resolveIcon(){return this.loading?Vr.html`
|
|
587
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?Vr.html`
|
|
587
588
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
588
|
-
`:
|
|
589
|
+
`:Vr.html`
|
|
589
590
|
<slot part="icon" name="icon"></slot>
|
|
590
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(r=>this.unslotText(r)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};
|
|
591
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(r=>this.unslotText(r)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};oe.elementDefinitions={"ft-ripple":H,"ft-tooltip":X,"ft-typography":Z,"ft-icon":fe,"ft-loader":pr};_e([(0,Se.property)({type:String,reflect:!0})],oe.prototype,"role",void 0);_e([(0,Se.property)()],oe.prototype,"type",void 0);_e([(0,Se.property)({type:Boolean})],oe.prototype,"disabled",void 0);_e([(0,Se.property)()],oe.prototype,"label",void 0);_e([(0,Se.property)()],oe.prototype,"icon",void 0);_e([(0,Se.property)()],oe.prototype,"iconVariant",void 0);_e([(0,Se.property)({type:Boolean})],oe.prototype,"trailingIcon",void 0);_e([(0,Se.property)({type:Boolean})],oe.prototype,"loading",void 0);_e([(0,Se.property)({attribute:"aria-label"})],oe.prototype,"ariaLabel",void 0);_e([(0,Se.property)()],oe.prototype,"tooltipPosition",void 0);_e([(0,Se.property)({type:Boolean})],oe.prototype,"hideTooltip",void 0);_e([(0,Se.property)({type:Boolean})],oe.prototype,"forceTooltip",void 0);_e([(0,Se.query)(".ft-button")],oe.prototype,"button",void 0);_e([(0,Se.query)(".ft-button--label slot")],oe.prototype,"slottedContent",void 0);var dn=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},xe=class extends oe{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};xe.styles=[Rc.safariEllipsisFix,ql];dn([(0,xo.property)({type:Boolean})],xe.prototype,"primary",void 0);dn([(0,xo.property)({type:Boolean})],xe.prototype,"outlined",void 0);dn([(0,xo.property)({type:Boolean})],xe.prototype,"dense",void 0);dn([(0,xo.property)({type:Boolean})],xe.prototype,"round",void 0);var vo=h(j());var fn=h(w());var Nc=h(P()),z=h(w());var Tc=[Nc.css`
|
|
591
592
|
:host {
|
|
592
593
|
display: inline-block;
|
|
593
594
|
max-width: 100%;
|
|
@@ -671,13 +672,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
671
672
|
/** Primary styles **/
|
|
672
673
|
|
|
673
674
|
.ft-button--primary {
|
|
674
|
-
${(0,
|
|
675
|
+
${(0,z.setVariable)(Ae.color,O.primaryIconColor)};
|
|
675
676
|
|
|
676
|
-
${(0,
|
|
677
|
-
${(0,
|
|
678
|
-
${(0,
|
|
679
|
-
${(0,
|
|
680
|
-
${(0,
|
|
677
|
+
${(0,z.setVariable)(F.color,O.primaryStateLayerColor)};
|
|
678
|
+
${(0,z.setVariable)(F.opacityContentOnSurfaceHover,O.primaryHoverStateLayerOpacity)};
|
|
679
|
+
${(0,z.setVariable)(F.opacityContentOnSurfaceFocused,O.primaryFocusStateLayerOpacity)};
|
|
680
|
+
${(0,z.setVariable)(F.opacityContentOnSurfaceSelected,O.primaryActiveStateLayerOpacity)};
|
|
681
|
+
${(0,z.setVariable)(F.opacityContentOnSurfacePressed,O.primaryActiveStateLayerOpacity)};
|
|
681
682
|
|
|
682
683
|
background-color: ${O.primaryBackgroundColor};
|
|
683
684
|
color: ${O.primaryColor};
|
|
@@ -695,13 +696,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
695
696
|
/** Secondary styles **/
|
|
696
697
|
|
|
697
698
|
.ft-button--secondary {
|
|
698
|
-
${(0,
|
|
699
|
+
${(0,z.setVariable)(Ae.color,O.secondaryIconColor)};
|
|
699
700
|
|
|
700
|
-
${(0,
|
|
701
|
-
${(0,
|
|
702
|
-
${(0,
|
|
703
|
-
${(0,
|
|
704
|
-
${(0,
|
|
701
|
+
${(0,z.setVariable)(F.color,O.secondaryStateLayerColor)};
|
|
702
|
+
${(0,z.setVariable)(F.opacityContentOnSurfaceHover,O.secondaryHoverStateLayerOpacity)};
|
|
703
|
+
${(0,z.setVariable)(F.opacityContentOnSurfaceFocused,O.secondaryFocusStateLayerOpacity)};
|
|
704
|
+
${(0,z.setVariable)(F.opacityContentOnSurfaceSelected,O.secondaryActiveStateLayerOpacity)};
|
|
705
|
+
${(0,z.setVariable)(F.opacityContentOnSurfacePressed,O.secondaryActiveStateLayerOpacity)};
|
|
705
706
|
|
|
706
707
|
background-color: ${O.secondaryBackgroundColor};
|
|
707
708
|
color: ${O.secondaryColor};
|
|
@@ -720,13 +721,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
720
721
|
/** Tertiary styles **/
|
|
721
722
|
|
|
722
723
|
.ft-button--tertiary {
|
|
723
|
-
${(0,
|
|
724
|
+
${(0,z.setVariable)(Ae.color,O.tertiaryIconColor)};
|
|
724
725
|
|
|
725
|
-
${(0,
|
|
726
|
-
${(0,
|
|
727
|
-
${(0,
|
|
728
|
-
${(0,
|
|
729
|
-
${(0,
|
|
726
|
+
${(0,z.setVariable)(F.color,O.tertiaryStateLayerColor)};
|
|
727
|
+
${(0,z.setVariable)(F.opacityContentOnSurfaceHover,O.tertiaryHoverStateLayerOpacity)};
|
|
728
|
+
${(0,z.setVariable)(F.opacityContentOnSurfaceFocused,O.tertiaryFocusStateLayerOpacity)};
|
|
729
|
+
${(0,z.setVariable)(F.opacityContentOnSurfaceSelected,O.tertiaryActiveStateLayerOpacity)};
|
|
730
|
+
${(0,z.setVariable)(F.opacityContentOnSurfacePressed,O.tertiaryActiveStateLayerOpacity)};
|
|
730
731
|
|
|
731
732
|
background-color: ${O.tertiaryBackgroundColor};
|
|
732
733
|
color: ${O.tertiaryColor};
|
|
@@ -744,13 +745,13 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
744
745
|
/** Neutral styles **/
|
|
745
746
|
|
|
746
747
|
.ftds--family-neutral {
|
|
747
|
-
${(0,
|
|
748
|
+
${(0,z.setVariable)(Ae.color,O.neutralIconColor)};
|
|
748
749
|
|
|
749
|
-
${(0,
|
|
750
|
-
${(0,
|
|
751
|
-
${(0,
|
|
752
|
-
${(0,
|
|
753
|
-
${(0,
|
|
750
|
+
${(0,z.setVariable)(F.backgroundColor,O.neutralStateLayerColor)};
|
|
751
|
+
${(0,z.setVariable)(F.opacityContentOnSurfaceHover,O.neutralHoverStateLayerOpacity)};
|
|
752
|
+
${(0,z.setVariable)(F.opacityContentOnSurfaceFocused,O.neutralFocusStateLayerOpacity)};
|
|
753
|
+
${(0,z.setVariable)(F.opacityContentOnSurfaceSelected,O.neutralActiveStateLayerOpacity)};
|
|
754
|
+
${(0,z.setVariable)(F.opacityContentOnSurfacePressed,O.neutralActiveStateLayerOpacity)};
|
|
754
755
|
|
|
755
756
|
background-color: ${O.neutralBackgroundColor};
|
|
756
757
|
color: ${O.neutralColor};
|
|
@@ -768,8 +769,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
768
769
|
/** Large styles **/
|
|
769
770
|
|
|
770
771
|
.ftds--size-large {
|
|
771
|
-
${(0,
|
|
772
|
-
${(0,
|
|
772
|
+
${(0,z.setVariable)(se.size,O.largeIconSize)};
|
|
773
|
+
${(0,z.setVariable)(Ae.size,O.largeIconSize)};
|
|
773
774
|
|
|
774
775
|
height: ${O.largeHeight};
|
|
775
776
|
padding: 0 ${O.largeHorizontalPadding};
|
|
@@ -790,8 +791,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
790
791
|
/** Small styles **/
|
|
791
792
|
|
|
792
793
|
.ftds--size-medium {
|
|
793
|
-
${(0,
|
|
794
|
-
${(0,
|
|
794
|
+
${(0,z.setVariable)(se.size,O.mediumIconSize)};
|
|
795
|
+
${(0,z.setVariable)(Ae.size,O.mediumIconSize)};
|
|
795
796
|
|
|
796
797
|
height: ${O.mediumHeight};
|
|
797
798
|
padding: 0 ${O.mediumHorizontalPadding};
|
|
@@ -813,8 +814,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
813
814
|
/** Small styles **/
|
|
814
815
|
|
|
815
816
|
.ftds--size-small {
|
|
816
|
-
${(0,
|
|
817
|
-
${(0,
|
|
817
|
+
${(0,z.setVariable)(se.size,O.smallIconSize)};
|
|
818
|
+
${(0,z.setVariable)(Ae.size,O.smallIconSize)};
|
|
818
819
|
|
|
819
820
|
height: ${O.smallHeight};
|
|
820
821
|
padding: 0 ${O.smallHorizontalPadding};
|
|
@@ -831,7 +832,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
831
832
|
.ftds--size-small.ft-button--icon-only {
|
|
832
833
|
width: ${O.smallIconOnlyWidth};
|
|
833
834
|
}
|
|
834
|
-
`,
|
|
835
|
+
`,z.noTextSelect];var pn=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ot=class extends(0,fn.toFtdsBase)(oe){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Jo.brand,this.iconVariant=Ye.fluid_topics}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,"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,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case we.large:return Ze.body2medium;case we.medium:return Ze.caption1medium;case we.small:return Ze.caption2medium}}};ot.styles=[fn.safariEllipsisFix,Tc];pn([(0,vo.property)({type:Boolean})],ot.prototype,"primary",void 0);pn([(0,vo.property)({type:Boolean})],ot.prototype,"secondary",void 0);pn([(0,vo.property)({type:Boolean})],ot.prototype,"tertiary",void 0);pn([(0,vo.property)({type:Boolean})],ot.prototype,"round",void 0);(0,ki.customElement)("ft-button")(xe);(0,ki.customElement)("ftds-button")(ot);var Lc=$.FtCssVariableFactory.extend("--ft-chip-color","",$.designSystemVariables.colorOnSurface),Xe={backgroundColor:$.FtCssVariableFactory.extend("--ft-chip-background-color","",$.designSystemVariables.colorSurface),color:Lc,fontSize:$.FtCssVariableFactory.extend("--ft-chip-font-size","",be.fontSize),iconSize:$.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:$.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:$.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Lc),horizontalPadding:$.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:$.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:$.FtCssVariableFactory.external($.designSystemVariables.colorOutline,"Design system"),opacityDisabled:$.FtCssVariableFactory.external($.designSystemVariables.colorOpacityDisabled,"Design system")},Pc=$.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",$.FtCssVariableFactory.extend("--ft-chip-color","",$.designSystemVariables.colorOnPrimary)),_i={backgroundColor:$.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",$.FtCssVariableFactory.extend("--ft-chip-background-color","",$.designSystemVariables.colorPrimary)),color:Pc,rippleColor:$.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Pc)},Ic={horizontalPadding:$.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:$.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},kc=[$.noTextSelect,un.css`
|
|
835
836
|
:host {
|
|
836
837
|
display: inline-block;
|
|
837
838
|
max-width: 100%;
|
|
@@ -847,20 +848,20 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
847
848
|
box-sizing: border-box;
|
|
848
849
|
pointer-events: auto;
|
|
849
850
|
|
|
850
|
-
--ft-chip-internal-font-size: ${
|
|
851
|
+
--ft-chip-internal-font-size: ${Xe.fontSize};
|
|
851
852
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
852
|
-
${(0,$.setVariable)(
|
|
853
|
-
--ft-chip-internal-vertical-padding: ${
|
|
854
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
853
|
+
${(0,$.setVariable)(se.size,Xe.iconSize)};
|
|
854
|
+
--ft-chip-internal-vertical-padding: ${Xe.verticalPadding};
|
|
855
|
+
--ft-chip-internal-horizontal-padding: ${Xe.horizontalPadding};
|
|
855
856
|
--ft-chip-internal-icon-padding: 3px;
|
|
856
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
857
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Xe.iconSize});
|
|
857
858
|
|
|
858
|
-
border: 1px solid ${
|
|
859
|
-
color: ${
|
|
860
|
-
${(0,$.setVariable)(
|
|
861
|
-
border-radius: var(${(0,
|
|
859
|
+
border: 1px solid ${Xe.colorOutline};
|
|
860
|
+
color: ${Xe.color};
|
|
861
|
+
${(0,$.setVariable)(F.color,Xe.rippleColor)};
|
|
862
|
+
border-radius: var(${(0,un.unsafeCSS)(Xe.borderRadius.name)}, calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding)));
|
|
862
863
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
863
|
-
background-color: ${
|
|
864
|
+
background-color: ${Xe.backgroundColor};
|
|
864
865
|
line-height: var(--ft-chip-internal-content-height);
|
|
865
866
|
}
|
|
866
867
|
|
|
@@ -870,8 +871,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
870
871
|
|
|
871
872
|
.ft-chip--dense {
|
|
872
873
|
--ft-chip-internal-icon-padding: 3px;
|
|
873
|
-
--ft-chip-internal-vertical-padding: ${
|
|
874
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
874
|
+
--ft-chip-internal-vertical-padding: ${Ic.verticalPadding};
|
|
875
|
+
--ft-chip-internal-horizontal-padding: ${Ic.horizontalPadding};
|
|
875
876
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
876
877
|
}
|
|
877
878
|
|
|
@@ -883,15 +884,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
883
884
|
cursor: default;
|
|
884
885
|
pointer-events: none;
|
|
885
886
|
filter: grayscale(1);
|
|
886
|
-
opacity: ${
|
|
887
|
+
opacity: ${Xe.opacityDisabled};
|
|
887
888
|
}
|
|
888
889
|
|
|
889
890
|
.ft-chip--highlighted {
|
|
890
891
|
border: none;
|
|
891
892
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
892
|
-
background-color: ${
|
|
893
|
-
${(0,$.setVariable)(
|
|
894
|
-
color: ${
|
|
893
|
+
background-color: ${_i.backgroundColor};
|
|
894
|
+
${(0,$.setVariable)(F.color,_i.rippleColor)};
|
|
895
|
+
color: ${_i.color};
|
|
895
896
|
}
|
|
896
897
|
|
|
897
898
|
.ft-chip--clickable {
|
|
@@ -921,9 +922,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
921
922
|
}
|
|
922
923
|
|
|
923
924
|
.ft-chip--icon-button {
|
|
924
|
-
${(0,$.setVariable)(
|
|
925
|
-
${(0,$.setVariable)(
|
|
926
|
-
${(0,$.setVariable)(
|
|
925
|
+
${(0,$.setVariable)(V.iconSize,Xe.iconSize)};
|
|
926
|
+
${(0,$.setVariable)(V.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
927
|
+
${(0,$.setVariable)(V.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
927
928
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
928
929
|
}
|
|
929
930
|
|
|
@@ -931,8 +932,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
931
932
|
vertical-align: bottom;
|
|
932
933
|
display: block;
|
|
933
934
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
934
|
-
${(0,$.setVariable)(
|
|
935
|
-
${(0,$.setVariable)(
|
|
935
|
+
${(0,$.setVariable)(be.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
936
|
+
${(0,$.setVariable)(be.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
936
937
|
}
|
|
937
938
|
|
|
938
939
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -968,8 +969,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
968
969
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
969
970
|
order: -1;
|
|
970
971
|
}
|
|
971
|
-
`];var
|
|
972
|
-
<div class="${(0,
|
|
972
|
+
`];var Fe=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},mn=class extends CustomEvent{constructor(){super("icon-click")}},ne=class extends yn.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){let e={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":yn.isSafari};return hn.html`
|
|
973
|
+
<div class="${(0,_c.classMap)(e)}"
|
|
973
974
|
aria-label="${this.getLabel()}"
|
|
974
975
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
975
976
|
@keyup=${this.onKeyUp}
|
|
@@ -980,7 +981,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
980
981
|
</ft-typography>
|
|
981
982
|
${this.internalIcon?this.renderIcon():null}
|
|
982
983
|
</div>
|
|
983
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?
|
|
984
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?hn.html`
|
|
984
985
|
<ft-button round
|
|
985
986
|
class="ft-chip--icon-button"
|
|
986
987
|
@click=${this.onIconClick}
|
|
@@ -990,11 +991,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
990
991
|
tooltipposition="top"
|
|
991
992
|
part="icon-button"
|
|
992
993
|
></ft-button>
|
|
993
|
-
`:
|
|
994
|
+
`:hn.html`
|
|
994
995
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
995
996
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
|
|
996
997
|
</div>
|
|
997
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
998
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new mn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new mn))}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ne.elementDefinitions={"ft-ripple":H,"ft-typography":Z,"ft-icon":fe,"ft-button":xe};ne.styles=kc;Fe([(0,Re.property)({type:Boolean})],ne.prototype,"highlighted",void 0);Fe([(0,Re.property)({type:Boolean})],ne.prototype,"removable",void 0);Fe([(0,Re.property)({type:Boolean})],ne.prototype,"disabled",void 0);Fe([(0,Re.property)({type:Boolean})],ne.prototype,"clickable",void 0);Fe([(0,Re.property)({type:Boolean})],ne.prototype,"iconClickable",void 0);Fe([(0,Re.property)({type:Boolean})],ne.prototype,"dense",void 0);Fe([(0,Re.property)({type:Boolean})],ne.prototype,"multiLine",void 0);Fe([(0,Re.property)()],ne.prototype,"label",void 0);Fe([(0,Re.property)()],ne.prototype,"iconLabel",void 0);Fe([(0,Re.property)()],ne.prototype,"icon",void 0);Fe([(0,Re.property)()],ne.prototype,"iconVariant",void 0);Fe([(0,Re.property)({type:Boolean})],ne.prototype,"trailingIcon",void 0);Fe([(0,Re.query)("ft-typography slot")],ne.prototype,"slottedContent",void 0);var fr=h(P()),ur=h(j()),Bc=h(Vt()),gn=h(w());var Dc=h(P());var Di=h(w());var $c=[Dc.css`
|
|
998
999
|
:host {
|
|
999
1000
|
display: inline-block;
|
|
1000
1001
|
max-width: 100%;
|
|
@@ -1018,7 +1019,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1018
1019
|
border-width: ${B.mediumBorderWidth};
|
|
1019
1020
|
border-style: solid;
|
|
1020
1021
|
gap: ${B.mediumGap};
|
|
1021
|
-
${(0,
|
|
1022
|
+
${(0,Di.setVariable)(se.size,B.mediumIconSize)}
|
|
1022
1023
|
}
|
|
1023
1024
|
|
|
1024
1025
|
.ftds--size-medium.ftds-chip--removable {
|
|
@@ -1034,7 +1035,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1034
1035
|
border-width: ${B.largeBorderWidth};
|
|
1035
1036
|
border-style: solid;
|
|
1036
1037
|
gap: ${B.largeGap};
|
|
1037
|
-
${(0,
|
|
1038
|
+
${(0,Di.setVariable)(se.size,B.largeIconSize)}
|
|
1038
1039
|
}
|
|
1039
1040
|
|
|
1040
1041
|
.ftds--size-large.ftds-chip--removable {
|
|
@@ -1100,8 +1101,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1100
1101
|
.ftds--family-error .ftds-chip--icon-container {
|
|
1101
1102
|
color: ${B.errorIconColor};
|
|
1102
1103
|
}
|
|
1103
|
-
`];var
|
|
1104
|
-
<div class="${(0,
|
|
1104
|
+
`];var So=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},$i=class extends CustomEvent{constructor(){super("remove")}},nt=class extends gn.FtdsBase{constructor(){super(...arguments),this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--removable":this.removable,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return fr.html`
|
|
1105
|
+
<div class="${(0,Bc.classMap)(e)}"
|
|
1105
1106
|
aria-label="${this.getLabel()}"
|
|
1106
1107
|
part="chip">
|
|
1107
1108
|
${this.renderIcon()}
|
|
@@ -1110,38 +1111,38 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1110
1111
|
</ft-typography>
|
|
1111
1112
|
${this.renderRemoveButton()}
|
|
1112
1113
|
</div>
|
|
1113
|
-
`}renderIcon(){return this.icon?
|
|
1114
|
+
`}renderIcon(){return this.icon?fr.html`
|
|
1114
1115
|
<div class="ftds-chip--icon-container" part="icon-container">
|
|
1115
|
-
<ft-icon .variant=${
|
|
1116
|
+
<ft-icon .variant=${Ye.fluid_topics} .value="${this.icon}" part="icon"></ft-icon>
|
|
1116
1117
|
</div>
|
|
1117
|
-
`:
|
|
1118
|
+
`:fr.nothing}renderRemoveButton(){return this.removable?fr.html`
|
|
1118
1119
|
<ftds-button round
|
|
1119
1120
|
class="ftds-chip--remove-button"
|
|
1120
1121
|
@click=${this.dispatchRemoveEvent}
|
|
1121
|
-
icon=${
|
|
1122
|
+
icon=${Ur.X_MARK}
|
|
1122
1123
|
label=${this.removeButtonLabel}
|
|
1123
|
-
family=${
|
|
1124
|
+
family=${gn.DesignSystemFamily.neutral}
|
|
1124
1125
|
size=${this.resolveButtonSize()}
|
|
1125
1126
|
part="icon-button"
|
|
1126
1127
|
></ftds-button>
|
|
1127
|
-
`:
|
|
1128
|
-
`;var
|
|
1128
|
+
`:fr.nothing}resolveButtonSize(){switch(this.size){case we.large:return we.medium;case we.medium:case we.small:return we.small}}getLabel(){return this.label||this.textContent}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new $i)}typographyVariant(){switch(this.size){case we.large:return Ze.body2medium;case we.medium:return Ze.caption1medium;case we.small:return Ze.caption2medium}}};nt.elementDefinitions={"ft-typography":Z,"ft-icon":fe,"ftds-button":ot};nt.styles=$c;So([(0,ur.property)({type:Boolean})],nt.prototype,"removable",void 0);So([(0,ur.property)()],nt.prototype,"removeButtonLabel",void 0);So([(0,ur.property)()],nt.prototype,"label",void 0);So([(0,ur.property)()],nt.prototype,"icon",void 0);So([(0,ur.query)("ft-typography slot")],nt.prototype,"slottedContent",void 0);(0,Bi.customElement)("ft-chip")(ne);(0,Bi.customElement)("ftds-chip")(nt);var Wc=h(w());var Sn=h(P()),On=h(j()),Cn=h(w());var Mc=h(P());var Uc=Mc.css`
|
|
1129
|
+
`;var vn=h(w());var zc=h(j()),tf=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Mi=Symbol("i18nAttributes"),bn=Symbol("i18nProperties"),Oo=Symbol("i18nUnsubs");function qt(t){var e;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Aa:rr}i18n(i,a,...s){var l;if(typeof i=="string")return this.i18nService.resolveMessage(i,a,...s);let d=(l=i.args)!==null&&l!==void 0?l:i.argsProvider?i.argsProvider(this):[];return this.i18nService.resolveMessage(i.context,i.key,...d)}onI18nUpdate(i){var a,s;(a=this[Mi])===null||a===void 0||a.forEach((l,d)=>{var f;let m=this.getI18nAttributeValue(d);((f=m?.context)===null||f===void 0?void 0:f.toLowerCase())===i.toLowerCase()&&this.updateI18nAttributeMessage(d,m,l)}),(s=this[bn])===null||s===void 0||s.forEach((l,d)=>{l.context.toLowerCase()===i.toLowerCase()&&(this[d]=this.i18n(l))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(i,a,s){this[i]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(i){var a,s;super.update(i),(a=this[Mi])===null||a===void 0||a.forEach((l,d)=>{let f=this.getI18nAttributeValue(d);f?.context&&f.key&&(i.has(d)||l.argsProvider!=null)&&(i.has(d)&&this.addI18nContext(f.context),this.updateI18nAttributeMessage(d,f,l))}),(s=this[bn])===null||s===void 0||s.forEach((l,d)=>{l.argsProvider!=null&&(this[d]=this.i18n(l))})}getI18nAttributeValue(i){return this[i]}connectedCallback(){var i,a,s,l;super.connectedCallback(),new Set([...(a=(i=this[bn])===null||i===void 0?void 0:i.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[Mi])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(d=>this.getI18nAttributeValue(d))].map(d=>d?.context)).forEach(d=>d&&this.addI18nMessages(d))}addI18nMessages(i,a){i=i.toLowerCase(),this[Oo].has(i)||this[Oo].set(i,this.i18nService.subscribe(i,()=>this.onI18nUpdate(i))),this.i18nService.prepareContext(i,a??{}),this.onI18nUpdate(i)}addI18nContext(i,a){this.addI18nMessages(typeof i=="string"?i:i.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[Oo].forEach(i=>i()),this[Oo].clear()}}return e=Oo,tf([(0,zc.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var Fc=class extends qt(vn.FtLitElement){},xn=class extends qt(vn.FtLitElementRedux){};var Co=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},it=class extends xn{constructor(){super(),this.editorMode=!1,this.addStore(I)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Sn.nothing:Sn.html`
|
|
1129
1130
|
<span class="ft-i18n">
|
|
1130
1131
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1131
1132
|
</span>
|
|
1132
|
-
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};
|
|
1133
|
-
`;var
|
|
1133
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};it.elementDefinitions={};it.styles=Uc;Co([(0,Cn.redux)()],it.prototype,"editorMode",void 0);Co([(0,On.property)()],it.prototype,"context",void 0);Co([(0,On.property)()],it.prototype,"key",void 0);Co([(0,Cn.jsonProperty)([])],it.prototype,"args",void 0);Co([(0,On.property)()],it.prototype,"defaultMessage",void 0);var Gr=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(r,n)=>{let i=n;return a=>({context:this.name,key:i,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...i)=>rr.resolveMessage(this.name,n,...i)}),this.rawMessages=new Proxy({},{get:(r,n)=>rr.resolveRawMessage(this.name,n)})}};(0,Wc.customElement)("ft-i18n")(it);var Gc=h(w());var jc=h(P()),Rt=h(j()),Qe=h(w());var Hc=h(P());var Vc=Hc.css`
|
|
1134
|
+
`;var Oe=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ui=class extends CustomEvent{constructor(e){super("ft-search-load-error",{detail:e})}},Fi=class extends CustomEvent{constructor(e){super("ft-search-request-change",{detail:e})}},zi=class extends CustomEvent{constructor(e,r,n){super("ft-search-results-change",{detail:{request:e,paging:r,spellcheck:n}})}},te=class extends Qe.FtLitElementRedux{get stateManager(){if(this._stateManager==null){let e=this.searchServiceProvider?this.searchServiceProvider():void 0;this._stateManager=oo.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),e),this._stateManager.errorHandler=r=>this.handleLoadError(r),this.addStore(this.stateManager.store,"search")}return this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.ignoreEmptyQuery=!1,this.openExternalDocumentInNewTab=!1,this.filters=[],this.sort=[],this.addStore(I)}render(){return jc.html`
|
|
1134
1135
|
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1135
|
-
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("periodFilter")&&this.periodFilter&&this.stateManager.setPeriodFilter(this.periodFilter),e.has("session")&&this.session!==void 0&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),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(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new
|
|
1136
|
-
`;var
|
|
1136
|
+
`}update(e){super.update(e),e.has("query")&&this.query!==void 0&&this.stateManager.setQuery(this.query),e.has("contentLocale")&&this.contentLocale!==void 0&&this.stateManager.setContentLocale(this.contentLocale),e.has("filters")&&this.filters!==void 0&&this.stateManager.setFilters(this.filters),e.has("sort")&&this.sort!==void 0&&this.stateManager.setSort(this.sort),e.has("pageSize")&&this.pageSize!==void 0&&this.stateManager.setPageSize(this.pageSize),e.has("searchInDocumentTitlesOnly")&&this.searchInDocumentTitlesOnly!==void 0&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly),e.has("scope")&&this.scope!==void 0&&this.stateManager.setScope(this.scope),e.has("virtualField")&&this.virtualField!==void 0&&this.stateManager.setVirtualField(this.virtualField),e.has("ignoreEmptyQuery")&&this.ignoreEmptyQuery!==void 0&&this.stateManager.setIgnoreEmptyQuery(this.ignoreEmptyQuery),e.has("openExternalDocumentInNewTab")&&this.openExternalDocumentInNewTab!==void 0&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("periodFilter")&&this.periodFilter&&this.stateManager.setPeriodFilter(this.periodFilter),e.has("session")&&this.session!==void 0&&(this.stateManager.service.clearCache(),this.stateManager.initService())}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),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(e){super.contentAvailableCallback(e),e.has("request")&&this.request&&this.dispatchEvent(new Fi(this.request)),e.has("paging")&&this.paging!==void 0&&this.dispatchEvent(new zi(this.request,this.paging,this.autocorrect))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setSearchStateManager(this.stateManager)}handleLoadError(e){this.dispatchEvent(new Ui(e))}reloadSavedSearches(){ys.clearMySearches()}clear(){this.stateManager.clear()}};te.elementDefinitions={};te.styles=Vc;Oe([(0,Qe.redux)({store:I.name})],te.prototype,"session",void 0);Oe([(0,Rt.property)()],te.prototype,"query",void 0);Oe([(0,Rt.property)()],te.prototype,"contentLocale",void 0);Oe([(0,Rt.property)({type:Number})],te.prototype,"pageSize",void 0);Oe([(0,Rt.property)({type:Boolean})],te.prototype,"searchInDocumentTitlesOnly",void 0);Oe([(0,Qe.jsonProperty)(null)],te.prototype,"periodFilter",void 0);Oe([(0,Rt.property)()],te.prototype,"scope",void 0);Oe([(0,Rt.property)()],te.prototype,"virtualField",void 0);Oe([(0,Rt.property)({type:Boolean})],te.prototype,"ignoreEmptyQuery",void 0);Oe([(0,Qe.redux)({store:I.name})],te.prototype,"openExternalDocumentInNewTab",void 0);Oe([(0,Qe.jsonProperty)([])],te.prototype,"filters",void 0);Oe([(0,Qe.jsonProperty)([])],te.prototype,"sort",void 0);Oe([(0,Qe.redux)({store:"search"})],te.prototype,"request",void 0);Oe([(0,Qe.redux)({store:"search"})],te.prototype,"paging",void 0);Oe([(0,Qe.redux)({store:"search",selector:t=>t.spellcheck})],te.prototype,"autocorrect",void 0);Oe([(0,Rt.property)({attribute:!1})],te.prototype,"searchServiceProvider",void 0);(0,Gc.customElement)("ft-search-context")(te);var wd=h(w());var Od=h(P()),Cd=h(w());var Kc=h(P());var Zc=Kc.css`
|
|
1137
|
+
`;var ji=h(w());var gr=h(P()),K=h(j()),Je=h(w());var He=h(P()),ue=h(j()),fd=h(Pn()),An=h(w());var ed=h(w());var Xc=h(P()),Tt=h(j()),Qc=h(w()),Jc=h(Vt());var ze=h(w()),qc=h(P());var Nt={textColor:ze.FtCssVariableFactory.extend("--ft-checkbox-text-color","",ze.designSystemVariables.colorOnSurfaceHigh),fontSize:ze.FtCssVariableFactory.extend("--ft-checkbox-font-size","",A.fontSize),colorPrimary:ze.FtCssVariableFactory.external(ze.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ze.FtCssVariableFactory.external(ze.designSystemVariables.colorOnPrimary,"Design system"),borderColor:ze.FtCssVariableFactory.extend("--ft-checkbox-border-color","",ze.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:ze.FtCssVariableFactory.external(ze.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Yc=qc.css`
|
|
1137
1138
|
* {
|
|
1138
1139
|
box-sizing: border-box;
|
|
1139
1140
|
}
|
|
1140
1141
|
|
|
1141
1142
|
.ft-checkbox {
|
|
1142
1143
|
box-sizing: border-box;
|
|
1143
|
-
color: ${
|
|
1144
|
-
font-size: ${
|
|
1144
|
+
color: ${Nt.textColor};
|
|
1145
|
+
font-size: ${Nt.fontSize};
|
|
1145
1146
|
|
|
1146
1147
|
display: inline-flex;
|
|
1147
1148
|
align-items: center;
|
|
@@ -1149,7 +1150,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1149
1150
|
}
|
|
1150
1151
|
|
|
1151
1152
|
.ft-checkbox--disabled {
|
|
1152
|
-
color: ${
|
|
1153
|
+
color: ${Nt.colorOnSurfaceDisabled};
|
|
1153
1154
|
}
|
|
1154
1155
|
|
|
1155
1156
|
input {
|
|
@@ -1173,26 +1174,26 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1173
1174
|
|
|
1174
1175
|
.ft-checkbox--box {
|
|
1175
1176
|
display: flex;
|
|
1176
|
-
border: 2px solid ${
|
|
1177
|
+
border: 2px solid ${Nt.borderColor};
|
|
1177
1178
|
border-radius: 2px;
|
|
1178
1179
|
|
|
1179
1180
|
width: 18px;
|
|
1180
1181
|
height: 18px;
|
|
1181
1182
|
|
|
1182
|
-
color: ${
|
|
1183
|
+
color: ${Nt.colorOnPrimary};
|
|
1183
1184
|
}
|
|
1184
1185
|
|
|
1185
1186
|
|
|
1186
1187
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
1187
1188
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
1188
|
-
border-color: ${
|
|
1189
|
-
background-color: ${
|
|
1189
|
+
border-color: ${Nt.colorPrimary};
|
|
1190
|
+
background-color: ${Nt.colorPrimary};
|
|
1190
1191
|
}
|
|
1191
1192
|
|
|
1192
1193
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
1193
|
-
border-color: ${
|
|
1194
|
+
border-color: ${Nt.colorOnSurfaceDisabled};
|
|
1194
1195
|
background-color: transparent;
|
|
1195
|
-
color: ${
|
|
1196
|
+
color: ${Nt.colorOnSurfaceDisabled};
|
|
1196
1197
|
}
|
|
1197
1198
|
|
|
1198
1199
|
.ft-checkbox--checkmark {
|
|
@@ -1211,8 +1212,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1211
1212
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
1212
1213
|
opacity: 1;
|
|
1213
1214
|
}
|
|
1214
|
-
`;var
|
|
1215
|
-
<label class="${(0,
|
|
1215
|
+
`;var hr=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ne=class extends Qc.FtLitElement{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){let e={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return Xc.html`
|
|
1216
|
+
<label class="${(0,Jc.classMap)(e)}" for="checkbox-input">
|
|
1216
1217
|
<div class="ft-checkbox--box-container">
|
|
1217
1218
|
<ft-ripple
|
|
1218
1219
|
?disabled=${this.disabled}
|
|
@@ -1238,14 +1239,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1238
1239
|
<slot></slot>
|
|
1239
1240
|
</ft-typography>
|
|
1240
1241
|
</label>
|
|
1241
|
-
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}};
|
|
1242
|
+
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}};Ne.elementDefinitions={"ft-ripple":H,"ft-typography":Z};Ne.styles=Yc;hr([(0,Tt.property)()],Ne.prototype,"name",void 0);hr([(0,Tt.property)({type:Boolean,reflect:!0})],Ne.prototype,"checked",void 0);hr([(0,Tt.property)({type:Boolean})],Ne.prototype,"indeterminate",void 0);hr([(0,Tt.property)({type:Boolean})],Ne.prototype,"disabled",void 0);hr([(0,Tt.query)(".ft-checkbox")],Ne.prototype,"container",void 0);hr([(0,Tt.query)("ft-ripple")],Ne.prototype,"ripple",void 0);hr([(0,Tt.query)("input")],Ne.prototype,"input",void 0);(0,ed.customElement)("ft-checkbox")(Ne);var Wi=h(w());var od=h(P()),at=h(j()),nd=h(w()),id=h(Vt());var td=h(P()),We=h(w()),mr={textColor:We.FtCssVariableFactory.extend("--ft-radio-text-color","",We.designSystemVariables.colorOnSurfaceHigh),colorPrimary:We.FtCssVariableFactory.external(We.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:We.FtCssVariableFactory.external(We.designSystemVariables.colorOnPrimary,"Design system"),borderColor:We.FtCssVariableFactory.extend("--ft-radio-border-color","",We.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:We.FtCssVariableFactory.external(We.designSystemVariables.colorOnSurfaceDisabled,"Design system")},rd=td.css`
|
|
1242
1243
|
* {
|
|
1243
1244
|
box-sizing: border-box;
|
|
1244
1245
|
}
|
|
1245
1246
|
|
|
1246
1247
|
.ft-radio {
|
|
1247
1248
|
box-sizing: border-box;
|
|
1248
|
-
color: ${
|
|
1249
|
+
color: ${mr.textColor};
|
|
1249
1250
|
|
|
1250
1251
|
display: inline-flex;
|
|
1251
1252
|
align-items: center;
|
|
@@ -1253,7 +1254,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1253
1254
|
}
|
|
1254
1255
|
|
|
1255
1256
|
.ft-radio--disabled {
|
|
1256
|
-
color: ${
|
|
1257
|
+
color: ${mr.colorOnSurfaceDisabled};
|
|
1257
1258
|
}
|
|
1258
1259
|
|
|
1259
1260
|
input {
|
|
@@ -1276,7 +1277,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1276
1277
|
}
|
|
1277
1278
|
|
|
1278
1279
|
.ft-radio--box {
|
|
1279
|
-
border: 2px solid ${
|
|
1280
|
+
border: 2px solid ${mr.borderColor};
|
|
1280
1281
|
border-radius: 50%;
|
|
1281
1282
|
|
|
1282
1283
|
display: flex;
|
|
@@ -1289,7 +1290,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1289
1290
|
|
|
1290
1291
|
.ft-radio--box:after {
|
|
1291
1292
|
content: " ";
|
|
1292
|
-
background-color: ${
|
|
1293
|
+
background-color: ${mr.colorPrimary};
|
|
1293
1294
|
|
|
1294
1295
|
border-radius: 50%;
|
|
1295
1296
|
|
|
@@ -1301,7 +1302,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1301
1302
|
}
|
|
1302
1303
|
|
|
1303
1304
|
.ft-radio--checked .ft-radio--box {
|
|
1304
|
-
border-color: ${
|
|
1305
|
+
border-color: ${mr.colorPrimary};
|
|
1305
1306
|
}
|
|
1306
1307
|
|
|
1307
1308
|
|
|
@@ -1310,24 +1311,24 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1310
1311
|
}
|
|
1311
1312
|
|
|
1312
1313
|
.ft-radio--disabled .ft-radio--box {
|
|
1313
|
-
border-color: ${
|
|
1314
|
+
border-color: ${mr.colorOnSurfaceDisabled};
|
|
1314
1315
|
background-color: transparent;
|
|
1315
1316
|
}
|
|
1316
1317
|
|
|
1317
1318
|
.ft-radio--disabled .ft-radio--box:after {
|
|
1318
|
-
background-color: ${
|
|
1319
|
+
background-color: ${mr.colorOnSurfaceDisabled};
|
|
1319
1320
|
}
|
|
1320
1321
|
|
|
1321
1322
|
.ft-radio:has(:focus-visible) {
|
|
1322
|
-
outline: 2px solid ${
|
|
1323
|
+
outline: 2px solid ${We.designSystemVariables.colorPrimary};
|
|
1323
1324
|
outline-offset: -2px;
|
|
1324
1325
|
}
|
|
1325
1326
|
|
|
1326
1327
|
.ft-radio ft-typography {
|
|
1327
1328
|
padding-right: 2px;
|
|
1328
1329
|
}
|
|
1329
|
-
`;var
|
|
1330
|
-
<div class="${(0,
|
|
1330
|
+
`;var Lt=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},En=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ce=class extends nd.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1,this.role="radio"}render(){let e={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return od.html`
|
|
1331
|
+
<div class="${(0,id.classMap)(e)}">
|
|
1331
1332
|
<div class="ft-radio--box-container">
|
|
1332
1333
|
<ft-ripple
|
|
1333
1334
|
?disabled=${this.disabled}
|
|
@@ -1351,7 +1352,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1351
1352
|
</ft-typography>
|
|
1352
1353
|
</label>
|
|
1353
1354
|
</div>
|
|
1354
|
-
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new
|
|
1355
|
+
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new En(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new En(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};ce.elementDefinitions={"ft-ripple":H,"ft-typography":Z};ce.styles=rd;Lt([(0,at.property)()],ce.prototype,"value",void 0);Lt([(0,at.property)()],ce.prototype,"name",void 0);Lt([(0,at.property)({type:Boolean,reflect:!0})],ce.prototype,"checked",void 0);Lt([(0,at.property)({attribute:"aria-checked",reflect:!0})],ce.prototype,"ariaChecked",void 0);Lt([(0,at.property)({type:Boolean})],ce.prototype,"disabled",void 0);Lt([(0,at.property)({reflect:!0,attribute:"role"})],ce.prototype,"role",void 0);Lt([(0,at.query)(".ft-radio")],ce.prototype,"container",void 0);Lt([(0,at.query)("ft-ripple")],ce.prototype,"ripple",void 0);Lt([(0,at.query)("input")],ce.prototype,"input",void 0);var ld=h(w()),Pt=h(j()),cd=h(P());var ad=h(P());var sd=ad.css`
|
|
1355
1356
|
:host {
|
|
1356
1357
|
display: block;
|
|
1357
1358
|
}
|
|
@@ -1359,12 +1360,12 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1359
1360
|
:host(:focus-visible) {
|
|
1360
1361
|
outline: none;
|
|
1361
1362
|
}
|
|
1362
|
-
`;var
|
|
1363
|
+
`;var Kr=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},De=class extends ld.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.tabIndex=0,this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{this.tabIndex==0&&(this.tabIndex=-1,setTimeout(()=>this.focusCurrentChecked(),100))},this.onFocusOut=e=>{!this.contains(e.relatedTarget)&&(this.tabIndex=0)}}render(){return cd.html`
|
|
1363
1364
|
<slot @slotchange=${this.onSlotChange}
|
|
1364
1365
|
@change=${this.onChange}
|
|
1365
1366
|
@keydown=${this.onKeyDown}
|
|
1366
1367
|
></slot>
|
|
1367
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};
|
|
1368
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let n=this.currentSelectedIndex-1;this.radioButtons[n<0?this.radioButtons.length-1:n].select(),this.radioButtons[n<0?this.radioButtons.length-1:n].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let n=this.currentSelectedIndex+1;this.radioButtons[n>this.radioButtons.length-1?0:n].select(),this.radioButtons[n>this.radioButtons.length-1?0:n].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};De.elementDefinitions={};De.styles=sd;Kr([(0,Pt.property)()],De.prototype,"name",void 0);Kr([(0,Pt.property)({reflect:!0,attribute:"role"})],De.prototype,"role",void 0);Kr([(0,Pt.property)({reflect:!0})],De.prototype,"tabIndex",void 0);Kr([(0,Pt.property)({reflect:!0,attribute:"aria-labelledby"})],De.prototype,"ariaLabelledBy",void 0);Kr([(0,Pt.queryAssignedElements)()],De.prototype,"radioButtons",void 0);Kr([(0,Pt.state)()],De.prototype,"currentSelectedIndex",void 0);(0,Wi.customElement)("ft-radio")(ce);(0,Wi.customElement)("ft-radio-group")(De);var dd=h(P()),Q=h(w());var wn={borderRadiusM:Q.FtCssVariableFactory.external(Q.designSystemVariables.borderRadiusM,"Design system"),colorOutline:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOutline,"Design system"),colorOnSurface:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:Q.FtCssVariableFactory.external(be.fontFamily,"Body2 typography"),fontSize:Q.FtCssVariableFactory.external(be.fontSize,"Body2 typography"),fontWeight:Q.FtCssVariableFactory.external(be.fontWeight,"Body2 typography"),letterSpacing:Q.FtCssVariableFactory.external(be.letterSpacing,"Body2 typography"),lineHeight:Q.FtCssVariableFactory.external(be.lineHeight,"Body2 typography"),textTransform:Q.FtCssVariableFactory.external(be.textTransform,"Body2 typography")},pd=dd.css`
|
|
1368
1369
|
.ft-filter-level--container {
|
|
1369
1370
|
display: flex;
|
|
1370
1371
|
flex-direction: column;
|
|
@@ -1378,14 +1379,14 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1378
1379
|
flex-shrink: 0;
|
|
1379
1380
|
text-decoration: none;
|
|
1380
1381
|
position: relative;
|
|
1381
|
-
border-radius: ${
|
|
1382
|
+
border-radius: ${wn.borderRadiusM};
|
|
1382
1383
|
overflow: hidden;
|
|
1383
1384
|
display: flex;
|
|
1384
1385
|
align-items: center;
|
|
1385
1386
|
padding: 4px 4px;
|
|
1386
1387
|
gap: 4px;
|
|
1387
1388
|
cursor: pointer;
|
|
1388
|
-
color: ${
|
|
1389
|
+
color: ${wn.colorOnSurface};
|
|
1389
1390
|
}
|
|
1390
1391
|
|
|
1391
1392
|
.ft-filter-level--go-back:focus {
|
|
@@ -1414,7 +1415,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1414
1415
|
}
|
|
1415
1416
|
|
|
1416
1417
|
ft-button {
|
|
1417
|
-
${(0,Q.setVariable)(
|
|
1418
|
+
${(0,Q.setVariable)(V.color,wn.colorOnSurface)};
|
|
1418
1419
|
}
|
|
1419
1420
|
|
|
1420
1421
|
ft-radio, ft-checkbox {
|
|
@@ -1428,11 +1429,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1428
1429
|
|
|
1429
1430
|
.ft-filter-level--no-values {
|
|
1430
1431
|
margin: 10px 0;
|
|
1431
|
-
color: ${
|
|
1432
|
+
color: ${wn.colorOnSurfaceMedium};
|
|
1432
1433
|
}
|
|
1433
|
-
`;var
|
|
1434
|
+
`;var Te=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ie=class extends An.FtLitElement{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}render(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(n=>!n.selected)),this.filter&&(e=e.filter(n=>n.label.toLowerCase().includes(this.filter.toLowerCase())));let r=e.slice(0,this.limit);return He.html`
|
|
1434
1435
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1435
|
-
${this.parent==null?null:
|
|
1436
|
+
${this.parent==null?null:He.html`
|
|
1436
1437
|
<div tabindex="0"
|
|
1437
1438
|
part="controls go-back"
|
|
1438
1439
|
class="ft-filter-level--go-back"
|
|
@@ -1445,15 +1446,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1445
1446
|
<ft-typography variant="body2">${this.parent.label}</ft-typography>
|
|
1446
1447
|
</div>
|
|
1447
1448
|
`}
|
|
1448
|
-
${this.options.length===0&&this.noValuesLabel?
|
|
1449
|
+
${this.options.length===0&&this.noValuesLabel?He.html`
|
|
1449
1450
|
<ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
|
|
1450
1451
|
${this.noValuesLabel}
|
|
1451
1452
|
</ft-typography>
|
|
1452
|
-
`:
|
|
1453
|
-
${(0,
|
|
1453
|
+
`:He.nothing}
|
|
1454
|
+
${(0,fd.repeat)(r,n=>n.value,n=>{var i;return He.html`
|
|
1454
1455
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1455
1456
|
${this.multivalued?this.buildMultiValuedOption(n):this.buildMonoValuedOption(n)}
|
|
1456
|
-
${this.preventNavigation||n.selected||((i=n.subOptions)!==null&&i!==void 0?i:[]).length===0?
|
|
1457
|
+
${this.preventNavigation||n.selected||((i=n.subOptions)!==null&&i!==void 0?i:[]).length===0?He.nothing:He.html`
|
|
1457
1458
|
<ft-button icon="thin_arrow_right"
|
|
1458
1459
|
part="controls navigate-hierarchy"
|
|
1459
1460
|
aria-label="expand node"
|
|
@@ -1464,7 +1465,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1464
1465
|
`}
|
|
1465
1466
|
</div>
|
|
1466
1467
|
`})}
|
|
1467
|
-
${r.length<e.length?
|
|
1468
|
+
${r.length<e.length?He.html`
|
|
1468
1469
|
<ft-button
|
|
1469
1470
|
class="ft-filter-level--display-more"
|
|
1470
1471
|
icon="thin_arrow"
|
|
@@ -1473,19 +1474,19 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1473
1474
|
@click=${this.displayMore}>
|
|
1474
1475
|
${this.moreValuesButtonLabel}
|
|
1475
1476
|
</ft-button>
|
|
1476
|
-
`:
|
|
1477
|
+
`:He.nothing}
|
|
1477
1478
|
</div>
|
|
1478
|
-
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(e){var r;return
|
|
1479
|
+
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(e){var r;return He.html`
|
|
1479
1480
|
<ft-checkbox name="${this.filterId}"
|
|
1480
1481
|
part="multivalued-option"
|
|
1481
1482
|
data-value="${e.value}"
|
|
1482
1483
|
.checked=${e.selected}
|
|
1483
1484
|
.disabled=${this.disabled}
|
|
1484
|
-
.indeterminate=${(0,
|
|
1485
|
+
.indeterminate=${(0,An.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],n=>{var i;return(i=n.subOptions)!==null&&i!==void 0?i:[]}).some(n=>n.selected)}
|
|
1485
1486
|
@change=${n=>this.optionsChanged(n,e)}>
|
|
1486
1487
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1487
1488
|
</ft-checkbox>
|
|
1488
|
-
`}buildMonoValuedOption(e){return
|
|
1489
|
+
`}buildMonoValuedOption(e){return He.html`
|
|
1489
1490
|
<ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
|
|
1490
1491
|
part="monovalued-option"
|
|
1491
1492
|
data-value="${e.value}"
|
|
@@ -1496,7 +1497,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1496
1497
|
@change=${r=>this.optionsChanged(r,e)}>
|
|
1497
1498
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1498
1499
|
</ft-radio>
|
|
1499
|
-
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};
|
|
1500
|
+
`}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};ie.elementDefinitions={"ft-button":xe,"ft-ripple":H,"ft-typography":Z,"ft-checkbox":Ne,"ft-icon":fe,"ft-radio":ce};ie.styles=pd;Te([(0,ue.property)({type:String})],ie.prototype,"filterId",void 0);Te([(0,ue.property)({type:Object})],ie.prototype,"parent",void 0);Te([(0,ue.property)({type:Array})],ie.prototype,"options",void 0);Te([(0,ue.property)({type:Boolean})],ie.prototype,"multivalued",void 0);Te([(0,ue.property)({type:Boolean})],ie.prototype,"disabled",void 0);Te([(0,ue.property)({type:Boolean})],ie.prototype,"hideSelectedOptions",void 0);Te([(0,ue.property)({type:Boolean})],ie.prototype,"displayCount",void 0);Te([(0,ue.property)({type:Boolean})],ie.prototype,"preventNavigation",void 0);Te([(0,ue.property)({type:String})],ie.prototype,"filter",void 0);Te([(0,ue.property)({type:String})],ie.prototype,"moreValuesButtonLabel",void 0);Te([(0,ue.property)({type:String})],ie.prototype,"noValuesLabel",void 0);Te([(0,ue.property)({type:Number})],ie.prototype,"displayedValuesLimit",void 0);Te([(0,ue.query)(".ft-filter-level--container")],ie.prototype,"container",void 0);Te([(0,ue.state)()],ie.prototype,"radios",void 0);Te([(0,ue.state)()],ie.prototype,"displayedPages",void 0);var gd=h(w());var md=h(P()),Ve=h(j()),yr=h(w());var yd=h(Vt());var ud=h(P()),st=h(w());var Yt={buttonsColor:st.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",st.designSystemVariables.colorPrimary),buttonsZIndex:st.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:st.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:st.FtCssVariableFactory.external(st.designSystemVariables.colorSurface,"Design system")},hd=ud.css`
|
|
1500
1501
|
.ft-snap-scroll {
|
|
1501
1502
|
box-sizing: border-box;
|
|
1502
1503
|
position: relative;
|
|
@@ -1531,7 +1532,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1531
1532
|
flex-wrap: nowrap;
|
|
1532
1533
|
align-items: flex-start;
|
|
1533
1534
|
justify-content: flex-start;
|
|
1534
|
-
gap: ${
|
|
1535
|
+
gap: ${Yt.gap};
|
|
1535
1536
|
}
|
|
1536
1537
|
|
|
1537
1538
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1574,11 +1575,11 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1574
1575
|
.ft-snap-scroll--next {
|
|
1575
1576
|
position: absolute;
|
|
1576
1577
|
display: flex;
|
|
1577
|
-
z-index: ${
|
|
1578
|
+
z-index: ${Yt.buttonsZIndex};
|
|
1578
1579
|
opacity: 1;
|
|
1579
1580
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1580
|
-
${(0,
|
|
1581
|
-
${(0,
|
|
1581
|
+
${(0,st.setVariable)(V.backgroundColor,"transparent")};
|
|
1582
|
+
${(0,st.setVariable)(V.color,Yt.buttonsColor)};
|
|
1582
1583
|
}
|
|
1583
1584
|
|
|
1584
1585
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1591,37 +1592,37 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1591
1592
|
top: 0;
|
|
1592
1593
|
left: -1px;
|
|
1593
1594
|
bottom: 0;
|
|
1594
|
-
background: linear-gradient(to right, ${
|
|
1595
|
+
background: linear-gradient(to right, ${Yt.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1595
1596
|
}
|
|
1596
1597
|
|
|
1597
1598
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1598
1599
|
top: -1px;
|
|
1599
1600
|
left: 0;
|
|
1600
1601
|
right: 0;
|
|
1601
|
-
background: linear-gradient(to bottom, ${
|
|
1602
|
+
background: linear-gradient(to bottom, ${Yt.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1602
1603
|
}
|
|
1603
1604
|
|
|
1604
1605
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1605
1606
|
top: 0;
|
|
1606
1607
|
right: -1px;
|
|
1607
1608
|
bottom: 0;
|
|
1608
|
-
background: linear-gradient(to left, ${
|
|
1609
|
+
background: linear-gradient(to left, ${Yt.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1609
1610
|
}
|
|
1610
1611
|
|
|
1611
1612
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1612
1613
|
left: 0;
|
|
1613
1614
|
right: 0;
|
|
1614
1615
|
bottom: -1px;
|
|
1615
|
-
background: linear-gradient(to top, ${
|
|
1616
|
+
background: linear-gradient(to top, ${Yt.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1616
1617
|
}
|
|
1617
1618
|
|
|
1618
1619
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1619
1620
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1620
1621
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1621
1622
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1622
|
-
background-color: ${
|
|
1623
|
+
background-color: ${Yt.colorSurface};
|
|
1623
1624
|
}
|
|
1624
|
-
`;var
|
|
1625
|
+
`;var bt=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Hi=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},he=class extends yr.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new yr.Debouncer(200),this.updateScrollDebouncer=new yr.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let n=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<i||r[this.offsetAttribute]+r[this.sizeAttribute]>n)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,yd.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":yr.isSafari}),r=this.controls&&this.withScroll;return md.html`
|
|
1625
1626
|
<div part="container" class="${e}">
|
|
1626
1627
|
<ft-button
|
|
1627
1628
|
class="ft-snap-scroll--previous"
|
|
@@ -1645,7 +1646,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1645
1646
|
@click=${this.next}
|
|
1646
1647
|
></ft-button>
|
|
1647
1648
|
</div>
|
|
1648
|
-
`}update(e){super.update(e),e.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")),e.has("currentElement")&&this.dispatchEvent(new
|
|
1649
|
+
`}update(e){super.update(e),e.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")),e.has("currentElement")&&this.dispatchEvent(new Hi(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,n;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(n=this.contentSlot)===null||n===void 0||n.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(n=>n))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,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 e=this.elements[0];return e?e[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(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};he.elementDefinitions={"ft-button":xe};he.styles=hd;bt([(0,Ve.property)({type:Boolean})],he.prototype,"horizontal",void 0);bt([(0,Ve.property)({type:Boolean})],he.prototype,"hideScrollbar",void 0);bt([(0,Ve.property)({type:Boolean})],he.prototype,"controls",void 0);bt([(0,Ve.property)({type:Boolean})],he.prototype,"limitSize",void 0);bt([(0,Ve.state)()],he.prototype,"elements",void 0);bt([(0,Ve.state)()],he.prototype,"currentElement",void 0);bt([(0,Ve.state)()],he.prototype,"withScroll",void 0);bt([(0,Ve.state)()],he.prototype,"startReached",void 0);bt([(0,Ve.state)()],he.prototype,"endReached",void 0);bt([(0,Ve.query)(".ft-snap-scroll--content")],he.prototype,"contentSlot",void 0);(0,gd.customElement)("ft-snap-scroll")(he);var bd=h(P()),q=h(w());var $e={colorOutline:q.FtCssVariableFactory.external(q.designSystemVariables.colorOutline,"Design system"),colorOnSurface:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:q.FtCssVariableFactory.external(q.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:q.FtCssVariableFactory.external(q.designSystemVariables.colorPrimary,"Design system"),colorSurface:q.FtCssVariableFactory.external(q.designSystemVariables.colorSurface,"Design system"),transitionDuration:q.FtCssVariableFactory.external(q.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:q.FtCssVariableFactory.external(q.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:q.FtCssVariableFactory.extend("--ft-filter-label-color","",q.designSystemVariables.colorOnSurface),labelFontSize:q.FtCssVariableFactory.extend("--ft-filter-label-font-size","",A.fontSize,"16px")},xd=[tn,q.noTextInputDefaultClearButton,bd.css`
|
|
1649
1650
|
:host {
|
|
1650
1651
|
display: flex;
|
|
1651
1652
|
max-height: 100%;
|
|
@@ -1673,7 +1674,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1673
1674
|
.ft-filter--header ft-button {
|
|
1674
1675
|
flex-shrink: 0;
|
|
1675
1676
|
margin-left: auto;
|
|
1676
|
-
${(0,
|
|
1677
|
+
${(0,q.setVariable)(V.iconSize,"18px")};
|
|
1677
1678
|
}
|
|
1678
1679
|
|
|
1679
1680
|
.filter-label {
|
|
@@ -1685,10 +1686,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1685
1686
|
flex-shrink: 1;
|
|
1686
1687
|
flex-grow: 1;
|
|
1687
1688
|
word-break: break-word;
|
|
1688
|
-
color: ${
|
|
1689
|
-
font-size: ${
|
|
1690
|
-
${(0,
|
|
1691
|
-
${(0,
|
|
1689
|
+
color: ${$e.labelColor};
|
|
1690
|
+
font-size: ${$e.labelFontSize};
|
|
1691
|
+
${(0,q.setVariable)(A.lineHeight,"22px")};
|
|
1692
|
+
${(0,q.setVariable)(A.fontWeight,"bold")};
|
|
1692
1693
|
}
|
|
1693
1694
|
|
|
1694
1695
|
.ft-filter--filter {
|
|
@@ -1699,8 +1700,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1699
1700
|
padding: 0 10px;
|
|
1700
1701
|
overflow: hidden;
|
|
1701
1702
|
height: 32px;
|
|
1702
|
-
transition: height ${
|
|
1703
|
-
margin ${
|
|
1703
|
+
transition: height ${$e.transitionDuration} ${$e.transitionTimingFunction},
|
|
1704
|
+
margin ${$e.transitionDuration} ${$e.transitionTimingFunction};
|
|
1704
1705
|
transition-delay: 500ms;
|
|
1705
1706
|
}
|
|
1706
1707
|
|
|
@@ -1713,15 +1714,15 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1713
1714
|
display: block;
|
|
1714
1715
|
width: 100%;
|
|
1715
1716
|
border-radius: 4px;
|
|
1716
|
-
border: 1px solid ${
|
|
1717
|
+
border: 1px solid ${$e.colorOutline};
|
|
1717
1718
|
padding: 4px;
|
|
1718
|
-
background-color: ${
|
|
1719
|
-
color: ${
|
|
1720
|
-
outline-color: ${
|
|
1719
|
+
background-color: ${$e.colorSurface};
|
|
1720
|
+
color: ${$e.colorOnSurface};
|
|
1721
|
+
outline-color: ${$e.colorPrimary};
|
|
1721
1722
|
}
|
|
1722
1723
|
|
|
1723
1724
|
input::placeholder {
|
|
1724
|
-
color: ${
|
|
1725
|
+
color: ${$e.colorOnSurfaceMedium};
|
|
1725
1726
|
}
|
|
1726
1727
|
|
|
1727
1728
|
input:placeholder-shown {
|
|
@@ -1737,7 +1738,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1737
1738
|
}
|
|
1738
1739
|
|
|
1739
1740
|
.ft-filter--separator {
|
|
1740
|
-
border-top: 1px solid ${
|
|
1741
|
+
border-top: 1px solid ${$e.colorOutline};
|
|
1741
1742
|
margin: 4px 10px;
|
|
1742
1743
|
}
|
|
1743
1744
|
|
|
@@ -1762,10 +1763,10 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1762
1763
|
slot:not([name]) {
|
|
1763
1764
|
display: none;
|
|
1764
1765
|
}
|
|
1765
|
-
`];var J=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},
|
|
1766
|
+
`];var J=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Vi=class extends CustomEvent{constructor(e){super("change",{detail:e})}},W=class extends Je.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new Je.Debouncer(300),this.changeDebouncer=new Je.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,Je.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,Je.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(i=>i.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,n=this.filterPlaceHolder.replace("{0}",this.label);return gr.html`
|
|
1766
1767
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1767
1768
|
part="container">
|
|
1768
|
-
${!this.label&&!e?null:
|
|
1769
|
+
${!this.label&&!e?null:gr.html`
|
|
1769
1770
|
|
|
1770
1771
|
<div class="ft-filter--header" part="header">
|
|
1771
1772
|
<div class="filter-label" id="id-group-${this.id}">
|
|
@@ -1774,7 +1775,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1774
1775
|
</ft-typography>
|
|
1775
1776
|
<slot name="label"></slot>
|
|
1776
1777
|
</div>
|
|
1777
|
-
${e&&!this.hideClearButton?
|
|
1778
|
+
${e&&!this.hideClearButton?gr.html`
|
|
1778
1779
|
<ft-button icon="close" dense @click=${this.clear} part="clear-button">
|
|
1779
1780
|
${this.clearButtonLabel}
|
|
1780
1781
|
</ft-button>
|
|
@@ -1798,8 +1799,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1798
1799
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1799
1800
|
@option-change=${this.optionsChanged}></slot>
|
|
1800
1801
|
</div>
|
|
1801
|
-
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(n=>n.value));this.displayedLevels=this.displayedLevels.filter(n=>r.has(n)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,n,i,a,s;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&setTimeout(()=>{var l;(l=this.levelsContainer)===null||l===void 0||l.next(),this.slideIn=void 0},0),e.has("slideOut")&&this.slideOut&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(s=(a=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||a===void 0?void 0:a.hasHiddenValues)!==null&&s!==void 0?s:!1}renderLevels(){let e=this.flatOptions,r=e.filter(a=>a.selected),n=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,i=n<0?"ft-filter--level-center":"ft-filter--level-left";return
|
|
1802
|
-
${this.raiseSelectedOptions&&r.length>0?
|
|
1802
|
+
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(n=>n.value));this.displayedLevels=this.displayedLevels.filter(n=>r.has(n)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,n,i,a,s;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&setTimeout(()=>{var l;(l=this.levelsContainer)===null||l===void 0||l.next(),this.slideIn=void 0},0),e.has("slideOut")&&this.slideOut&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(s=(a=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||a===void 0?void 0:a.hasHiddenValues)!==null&&s!==void 0?s:!1}renderLevels(){let e=this.flatOptions,r=e.filter(a=>a.selected),n=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,i=n<0?"ft-filter--level-center":"ft-filter--level-left";return gr.html`
|
|
1803
|
+
${this.raiseSelectedOptions&&r.length>0?gr.html`
|
|
1803
1804
|
<ft-filter-level
|
|
1804
1805
|
filterId="${this.id}"
|
|
1805
1806
|
?multivalued=${this.multivalued}
|
|
@@ -1817,9 +1818,9 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1817
1818
|
class="ft-filter--levels"
|
|
1818
1819
|
@current-element-change=${a=>this.levelsScrollDebouncer.run(()=>{for(;a.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
|
|
1819
1820
|
${this.renderLevel(i,this.options)}
|
|
1820
|
-
${this.displayedLevels.map(a=>e.find(s=>s.value===a)).map((a,s)=>{var l;let
|
|
1821
|
+
${this.displayedLevels.map(a=>e.find(s=>s.value===a)).map((a,s)=>{var l;let d=a?.value===this.slideIn||a?.value===this.slideOut?"ft-filter--level-right":s===n?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(d,(l=a?.subOptions)!==null&&l!==void 0?l:[],a)})}
|
|
1821
1822
|
</ft-snap-scroll>
|
|
1822
|
-
`}renderLevel(e,r,n){return
|
|
1823
|
+
`}renderLevel(e,r,n){return gr.html`
|
|
1823
1824
|
<ft-filter-level
|
|
1824
1825
|
class="${e}"
|
|
1825
1826
|
filterId="${this.id}"
|
|
@@ -1839,18 +1840,18 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1839
1840
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1840
1841
|
noValuesLabel="${this.noValuesLabel}"
|
|
1841
1842
|
></ft-filter-level>
|
|
1842
|
-
`}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let n=this.flatOptions.find(a=>a.value===e.detail.value);n.selected=!n.selected;let i=a=>{var s;a!==n&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(i)};this.multivalued?(r=n.subOptions)===null||r===void 0||r.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,
|
|
1843
|
+
`}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let n=this.flatOptions.find(a=>a.value===e.detail.value);n.selected=!n.selected;let i=a=>{var s;a!==n&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(i)};this.multivalued?(r=n.subOptions)===null||r===void 0||r.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Je.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Vi(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};W.elementDefinitions={"ft-button":xe,"ft-filter-level":ie,"ft-snap-scroll":he,"ft-typography":Z};W.styles=xd;J([(0,K.property)({type:String})],W.prototype,"id",void 0);J([(0,K.property)({type:String})],W.prototype,"label",void 0);J([(0,K.property)({type:String})],W.prototype,"filterPlaceHolder",void 0);J([(0,K.property)({type:String})],W.prototype,"clearButtonLabel",void 0);J([(0,K.property)({type:String})],W.prototype,"moreValuesButtonLabel",void 0);J([(0,K.property)({type:String})],W.prototype,"noValuesLabel",void 0);J([(0,Je.jsonProperty)([])],W.prototype,"options",void 0);J([(0,K.property)({type:Boolean})],W.prototype,"multivalued",void 0);J([(0,K.property)({type:Boolean})],W.prototype,"disabled",void 0);J([(0,K.property)({type:Boolean})],W.prototype,"raiseSelectedOptions",void 0);J([(0,K.property)({type:Boolean})],W.prototype,"displayCount",void 0);J([(0,K.property)({type:Number})],W.prototype,"displayedValuesLimit",void 0);J([(0,K.property)({type:Boolean})],W.prototype,"hideClearButton",void 0);J([(0,K.query)(".ft-filter--slot")],W.prototype,"slotElement",void 0);J([(0,K.query)(".ft-filter--container")],W.prototype,"container",void 0);J([(0,K.query)(".ft-filter--values")],W.prototype,"valuesContainer",void 0);J([(0,K.query)(".ft-filter--levels")],W.prototype,"levelsContainer",void 0);J([(0,K.state)()],W.prototype,"lastLevelHasHiddenvalues",void 0);J([(0,K.query)(".ft-filter--filter input")],W.prototype,"filterInput",void 0);J([(0,K.queryAll)(".ft-filter--levels ft-filter-level")],W.prototype,"levels",void 0);J([(0,K.state)()],W.prototype,"withScroll",void 0);J([(0,K.state)()],W.prototype,"filter",void 0);J([(0,K.state)()],W.prototype,"slideIn",void 0);J([(0,K.state)()],W.prototype,"slideOut",void 0);var Rn=h(w()),br=h(j()),vd=h(P()),Zr=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},lt=class extends Rn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return vd.html`
|
|
1843
1844
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1844
|
-
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};
|
|
1845
|
+
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};lt.elementDefinitions={};Zr([(0,br.property)({type:String})],lt.prototype,"label",void 0);Zr([(0,br.property)({type:Object,converter:t=>t})],lt.prototype,"value",void 0);Zr([(0,br.property)({type:Boolean,reflect:!0})],lt.prototype,"selected",void 0);Zr([(0,br.property)({type:Object})],lt.prototype,"subOptions",void 0);Zr([(0,Rn.jsonProperty)({})],lt.prototype,"renderOption",void 0);Zr([(0,br.query)(".ft-filter-option--slot")],lt.prototype,"slotElement",void 0);(0,ji.customElement)("ft-filter")(W);(0,ji.customElement)("ft-filter-option")(lt);var Xt=Gr.build("designedSearchType"),Nn={label:"Search scope",documentTitlesOnly:"Search in document titles only"};var Ed=h(j());var Sd=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Qt=class extends qt(Ht){constructor(){super(),this.options={searchInDocumentTitlesOnly:{label:()=>Xt.messages.documentTitlesOnly(),selected:()=>!!this.searchInDocumentTitlesOnly,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setSearchInDocumentTitlesOnly(e)}}},this.addI18nContext(Xt,Nn)}render(){return Od.html`
|
|
1845
1846
|
<ft-filter
|
|
1846
|
-
label=${
|
|
1847
|
-
.options=${
|
|
1847
|
+
label=${Xt.messages.label()}
|
|
1848
|
+
.options=${Object.keys(this.options).map(e=>({value:e,label:this.options[e].label(),selected:this.options[e].selected()}))}
|
|
1848
1849
|
part="filter"
|
|
1849
1850
|
.exportpartsPrefixes=${["filter"]}
|
|
1850
1851
|
multivalued
|
|
1851
|
-
@change=${this.
|
|
1852
|
+
@change=${()=>this.onSelectionChange()}
|
|
1852
1853
|
></ft-filter>
|
|
1853
|
-
`}
|
|
1854
|
+
`}onSelectionChange(){var e;(e=this.filter)===null||e===void 0||e.options.forEach(r=>this.options[r.value].onChange(!!r.selected))}};Qt.elementDefinitions={"ft-filter":W};Qt.styles=Zc;Sd([(0,Cd.redux)({selector:no})],Qt.prototype,"searchInDocumentTitlesOnly",void 0);Sd([(0,Ed.query)("ft-filter")],Qt.prototype,"filter",void 0);(0,wd.customElement)("ft-search-type")(Qt);var Nd=h(w());var ct=h(P());var Ad=h(P()),xr=h(w());var rf={headerColor:xr.FtCssVariableFactory.extend("--ft-search-period-filter-header-color","",xr.designSystemVariables.colorOnSurface)},Rd=Ad.css`
|
|
1854
1855
|
[part="container"] {
|
|
1855
1856
|
flex-grow: 1;
|
|
1856
1857
|
display: flex;
|
|
@@ -1865,7 +1866,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1865
1866
|
overflow: auto;
|
|
1866
1867
|
display: flex;
|
|
1867
1868
|
flex-direction: column;
|
|
1868
|
-
${(0,
|
|
1869
|
+
${(0,xr.setVariable)(A.lineHeight,"22px")};
|
|
1869
1870
|
}
|
|
1870
1871
|
|
|
1871
1872
|
[part="header"] {
|
|
@@ -1875,7 +1876,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1875
1876
|
flex-shrink: 0;
|
|
1876
1877
|
padding: 0 10px;
|
|
1877
1878
|
margin-bottom: 8px;
|
|
1878
|
-
color: ${
|
|
1879
|
+
color: ${rf.headerColor};
|
|
1879
1880
|
}
|
|
1880
1881
|
|
|
1881
1882
|
[part="label"] {
|
|
@@ -1883,30 +1884,30 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1883
1884
|
flex-shrink: 1;
|
|
1884
1885
|
flex-grow: 1;
|
|
1885
1886
|
word-break: break-word;
|
|
1886
|
-
font-size: ${
|
|
1887
|
-
${(0,
|
|
1887
|
+
font-size: ${$e.labelFontSize};
|
|
1888
|
+
${(0,xr.setVariable)(A.fontWeight,"bold")};
|
|
1888
1889
|
}
|
|
1889
1890
|
|
|
1890
|
-
`;var
|
|
1891
|
+
`;var Gi=h(w());var Be=Gr.build("designedSearchPeriodFilter"),Tn={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var qr=h(j());var vr=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},je=class extends qt(Ht){constructor(){super(),this.key="ft:lastEdition",this.metadataDescriptors=[],this.addI18nContext(Be,Tn),this.addStore(I)}render(){var e,r,n,i;return ct.html`<div part="container">
|
|
1891
1892
|
<div part="header">
|
|
1892
1893
|
<ft-typography variant="overline" part="label" id="label">
|
|
1893
1894
|
${this.header()}
|
|
1894
1895
|
</ft-typography>
|
|
1895
1896
|
</div>
|
|
1896
1897
|
<ft-radio-group @change=${a=>this.setPeriodFilter(a)} aria-labelledby="label">
|
|
1897
|
-
<ft-radio value="anyTime" ?checked=${this.periodFilter===void 0||this.periodFilter.periodType===void 0}>${
|
|
1898
|
-
${this.lessThanAWeek?
|
|
1899
|
-
${this.lessThanAMonth?
|
|
1900
|
-
${this.lessThanAQuarter?
|
|
1901
|
-
${this.lessThanAYear?
|
|
1898
|
+
<ft-radio value="anyTime" ?checked=${this.periodFilter===void 0||this.periodFilter.periodType===void 0}>${Be.messages.anyTime()}</ft-radio>
|
|
1899
|
+
${this.lessThanAWeek?ct.html`<ft-radio ?checked=${((e=this.periodFilter)===null||e===void 0?void 0:e.periodType)=="LAST_WEEK"} value="LAST_WEEK">${Be.messages.LAST_WEEK()}</ft-radio>`:ct.nothing}
|
|
1900
|
+
${this.lessThanAMonth?ct.html`<ft-radio ?checked=${((r=this.periodFilter)===null||r===void 0?void 0:r.periodType)=="LAST_MONTH"} value="LAST_MONTH">${Be.messages.LAST_MONTH()}</ft-radio>`:ct.nothing}
|
|
1901
|
+
${this.lessThanAQuarter?ct.html`<ft-radio ?checked=${((n=this.periodFilter)===null||n===void 0?void 0:n.periodType)=="LAST_QUARTER"} value="LAST_QUARTER">${Be.messages.LAST_QUARTER()}</ft-radio>`:ct.nothing}
|
|
1902
|
+
${this.lessThanAYear?ct.html`<ft-radio ?checked=${((i=this.periodFilter)===null||i===void 0?void 0:i.periodType)=="LAST_YEAR"} value="LAST_YEAR">${Be.messages.LAST_YEAR()}</ft-radio>`:ct.nothing}
|
|
1902
1903
|
</ft-radio-group>
|
|
1903
|
-
</div>`}setPeriodFilter(e){var r;let n=
|
|
1904
|
+
</div>`}setPeriodFilter(e){var r;let n=Ro[e.detail];(r=this.stateManager)===null||r===void 0||r.setPeriodFilter(n===void 0?void 0:{key:this.key,periodType:n})}header(){var e,r,n;return this.key==="ft:lastEdition"?Be.messages.label():(n=(r=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(i=>i.key==this.key))===null||r===void 0?void 0:r.label)!==null&&n!==void 0?n:this.key}};je.elementDefinitions={"ft-radio-group":De,"ft-radio":ce,"ft-typography":Z};je.styles=Rd;vr([(0,qr.property)({type:String})],je.prototype,"key",void 0);vr([(0,qr.property)({type:Boolean})],je.prototype,"lessThanAWeek",void 0);vr([(0,qr.property)({type:Boolean})],je.prototype,"lessThanAMonth",void 0);vr([(0,qr.property)({type:Boolean})],je.prototype,"lessThanAQuarter",void 0);vr([(0,qr.property)({type:Boolean})],je.prototype,"lessThanAYear",void 0);vr([(0,Gi.redux)({store:"search",selector:t=>t.request.periodFilter})],je.prototype,"periodFilter",void 0);vr([(0,Gi.redux)({store:I.name,selector:t=>{var e,r;return(r=(e=t.metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[]}})],je.prototype,"metadataDescriptors",void 0);(0,Nd.customElement)("ft-search-period-filter")(je);var Zi=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},kt=class extends qt(Ht){get hasSomethingToDisplay(){var e;return this.searchInDocumentTitlesOnly||((e=this.facets)===null||e===void 0?void 0:e.some(r=>this.getSelectedValues(r).length>0))||this.periodFilter&&this.periodFilter.periodType}constructor(){super(),this.addI18nContext(Xt,Nn),this.addI18nContext(Be,Tn)}render(){return this.hasSomethingToDisplay?It.html`
|
|
1904
1905
|
<div class="ft-search-selected-facets--container">
|
|
1905
|
-
${(0,
|
|
1906
|
+
${(0,Ki.repeat)(this.facets||[],e=>e.key,e=>{let r=this.getSelectedValues(e);return(0,Ki.repeat)(r,n=>e.key+"-"+n,n=>this.renderFacet(e.key,e.label,r,n))})}
|
|
1906
1907
|
${this.renderSearchInDocumentTitlesOnly()}
|
|
1907
1908
|
${this.renderPeriodFilter()}
|
|
1908
1909
|
</div>
|
|
1909
|
-
`:
|
|
1910
|
+
`:It.nothing}renderFacet(e,r,n,i){let a=r+": "+this.getBreadcrumbFromValue(i),s=e.replace(":","-");return It.html`
|
|
1910
1911
|
<ft-tooltip inline text="${a}"
|
|
1911
1912
|
part="tooltips tooltip-${s}">
|
|
1912
1913
|
<ft-chip
|
|
@@ -1914,33 +1915,33 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ft-conte
|
|
|
1914
1915
|
removable
|
|
1915
1916
|
label="${a}"
|
|
1916
1917
|
iconLabel=${"Remove "+a}
|
|
1917
|
-
@icon-click=${()=>{var l;return(l=this.stateManager)===null||l===void 0?void 0:l.setFilter(e,n.filter(
|
|
1918
|
+
@icon-click=${()=>{var l;return(l=this.stateManager)===null||l===void 0?void 0:l.setFilter(e,n.filter(d=>d!==i))}}
|
|
1918
1919
|
data-key="${e}"
|
|
1919
1920
|
data-value="${i}">
|
|
1920
1921
|
${this.getLabelFromValue(i)}
|
|
1921
1922
|
</ft-chip>
|
|
1922
1923
|
</ft-tooltip>
|
|
1923
|
-
`}getSelectedValues(e){return(0,
|
|
1924
|
-
<ft-tooltip inline text="${
|
|
1924
|
+
`}getSelectedValues(e){return(0,Yr.flatDeep)(e.rootNodes,r=>r.selected?[]:r.childNodes).filter(r=>r.selected).map(r=>r.value)}getLabelFromValue(e){return this.unquote(e).split("|").pop()}getBreadcrumbFromValue(e){return this.unquote(e).split("|").join(" > ")}unquote(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}renderSearchInDocumentTitlesOnly(){return this.searchInDocumentTitlesOnly?It.html`
|
|
1925
|
+
<ft-tooltip inline text="${Xt.messages.documentTitlesOnly()}"
|
|
1925
1926
|
part="tooltips tooltip-search-in-document-titles-only">
|
|
1926
1927
|
<ft-chip
|
|
1927
1928
|
part="ft-search-selected-facets ft-search-selected-facet-search-in-document-titles-only"
|
|
1928
1929
|
removable
|
|
1929
1930
|
@icon-click=${()=>{var e;return(e=this.stateManager)===null||e===void 0?void 0:e.setSearchInDocumentTitlesOnly(!1)}}>
|
|
1930
|
-
${
|
|
1931
|
+
${Xt.messages.documentTitlesOnly()}
|
|
1931
1932
|
</ft-chip>
|
|
1932
1933
|
</ft-tooltip>
|
|
1933
|
-
`:
|
|
1934
|
-
<ft-tooltip inline text="${
|
|
1934
|
+
`:It.nothing}renderPeriodFilter(){var e,r;return this.periodFilter&&this.periodFilter.periodType?It.html`
|
|
1935
|
+
<ft-tooltip inline text="${Be.messages.period(this.periodFilter.periodType==="CUSTOM"?Be.messages.customPeriod((e=this.periodFilter.period)===null||e===void 0?void 0:e.from,(r=this.periodFilter.period)===null||r===void 0?void 0:r.to):Be.messages[this.periodFilter.periodType]())}"
|
|
1935
1936
|
part=" tooltips tooltip-search-period-filter">
|
|
1936
1937
|
<ft-chip
|
|
1937
1938
|
part="ft-search-selected-facets ft-search-selected-facet-period-filter"
|
|
1938
1939
|
removable
|
|
1939
1940
|
@icon-click=${()=>{var n;return(n=this.stateManager)===null||n===void 0?void 0:n.setPeriodFilter(void 0)}}>
|
|
1940
|
-
${
|
|
1941
|
+
${Be.messages[this.periodFilter.periodType]()}
|
|
1941
1942
|
</ft-chip>
|
|
1942
1943
|
</ft-tooltip>
|
|
1943
|
-
`:
|
|
1944
|
+
`:It.nothing}};kt.elementDefinitions={"ft-chip":ne,"ft-tooltip":X};kt.styles=ra;Zi([(0,Yr.redux)({store:"search"})],kt.prototype,"facets",void 0);Zi([(0,Yr.redux)({store:"search",selector:no})],kt.prototype,"searchInDocumentTitlesOnly",void 0);Zi([(0,Yr.redux)({store:"search",selector:t=>t.request.periodFilter})],kt.prototype,"periodFilter",void 0);(0,Td.customElement)("ft-search-selected-facets")(kt);})();
|
|
1944
1945
|
/*! Bundled license information:
|
|
1945
1946
|
|
|
1946
1947
|
@lit/reactive-element/css-tag.js:
|