@fluid-topics/ft-search-bar 1.3.47 → 1.3.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-search-bar.light.js +323 -320
- package/build/ft-search-bar.min.js +244 -241
- package/package.json +15 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
`)===0?
|
|
1
|
+
"use strict";(()=>{var Zu=Object.create;var Ms=Object.defineProperty;var qu=Object.getOwnPropertyDescriptor;var Yu=Object.getOwnPropertyNames;var Xu=Object.getPrototypeOf,Qu=Object.prototype.hasOwnProperty;var zr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ju=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Yu(e))!Qu.call(t,n)&&n!==r&&Ms(t,n,{get:()=>e[n],enumerable:!(i=qu(e,n))||i.enumerable});return t};var f=(t,e,r)=>(r=t!=null?Zu(Xu(t)):{},Ju(e||!t||!t.__esModule?Ms(r,"default",{value:t,enumerable:!0}):r,t));var w=zr((Rh,zs)=>{zs.exports=ftGlobals.wcUtils});var k=zr((Lh,Us)=>{Us.exports=ftGlobals.lit});var ee=zr((Ih,Hs)=>{Hs.exports=ftGlobals.litDecorators});var Ur=zr((kh,Ws)=>{Ws.exports=ftGlobals.litRepeat});var vt=zr((yv,Kl)=>{Kl.exports=ftGlobals.litClassMap});var Ic=zr((Sr,Lc)=>{var Vi=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Gi=function(){function t(){this.fetch=!1,this.DOMException=Vi.DOMException}return t.prototype=Vi,new t}();(function(t){var e=function(r){var i=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(g){return g&&DataView.prototype.isPrototypeOf(g)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(g){return g&&s.indexOf(Object.prototype.toString.call(g))>-1};function p(g){if(typeof g!="string"&&(g=String(g)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(g)||g==="")throw new TypeError('Invalid character in header field name: "'+g+'"');return g.toLowerCase()}function u(g){return typeof g!="string"&&(g=String(g)),g}function m(g){var x={next:function(){var _=g.shift();return{done:_===void 0,value:_}}};return n.iterable&&(x[Symbol.iterator]=function(){return x}),x}function y(g){this.map={},g instanceof y?g.forEach(function(x,_){this.append(_,x)},this):Array.isArray(g)?g.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):g&&Object.getOwnPropertyNames(g).forEach(function(x){this.append(x,g[x])},this)}y.prototype.append=function(g,x){g=p(g),x=u(x);var _=this.map[g];this.map[g]=_?_+", "+x:x},y.prototype.delete=function(g){delete this.map[p(g)]},y.prototype.get=function(g){return g=p(g),this.has(g)?this.map[g]:null},y.prototype.has=function(g){return this.map.hasOwnProperty(p(g))},y.prototype.set=function(g,x){this.map[p(g)]=u(x)},y.prototype.forEach=function(g,x){for(var _ in this.map)this.map.hasOwnProperty(_)&&g.call(x,this.map[_],_,this)},y.prototype.keys=function(){var g=[];return this.forEach(function(x,_){g.push(_)}),m(g)},y.prototype.values=function(){var g=[];return this.forEach(function(x){g.push(x)}),m(g)},y.prototype.entries=function(){var g=[];return this.forEach(function(x,_){g.push([_,x])}),m(g)},n.iterable&&(y.prototype[Symbol.iterator]=y.prototype.entries);function b(g){if(!g._noBody){if(g.bodyUsed)return Promise.reject(new TypeError("Already read"));g.bodyUsed=!0}}function O(g){return new Promise(function(x,_){g.onload=function(){x(g.result)},g.onerror=function(){_(g.error)}})}function v(g){var x=new FileReader,_=O(x);return x.readAsArrayBuffer(g),_}function E(g){var x=new FileReader,_=O(x),ne=/charset=([A-Za-z0-9_-]+)/.exec(g.type),be=ne?ne[1]:"utf-8";return x.readAsText(g,be),_}function $(g){for(var x=new Uint8Array(g),_=new Array(x.length),ne=0;ne<x.length;ne++)_[ne]=String.fromCharCode(x[ne]);return _.join("")}function T(g){if(g.slice)return g.slice(0);var x=new Uint8Array(g.byteLength);return x.set(new Uint8Array(g)),x.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(g){this.bodyUsed=this.bodyUsed,this._bodyInit=g,g?typeof g=="string"?this._bodyText=g:n.blob&&Blob.prototype.isPrototypeOf(g)?this._bodyBlob=g:n.formData&&FormData.prototype.isPrototypeOf(g)?this._bodyFormData=g:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(g)?this._bodyText=g.toString():n.arrayBuffer&&n.blob&&a(g)?(this._bodyArrayBuffer=T(g.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(g)||c(g))?this._bodyArrayBuffer=T(g):this._bodyText=g=Object.prototype.toString.call(g):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof g=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(g)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var g=b(this);if(g)return g;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 g=b(this);return g||(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(n.blob)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var g=b(this);if(g)return g;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve($(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(tt)}),this.json=function(){return this.text().then(JSON.parse)},this}var z=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Z(g){var x=g.toUpperCase();return z.indexOf(x)>-1?x:g}function X(g,x){if(!(this instanceof X))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var _=x.body;if(g instanceof X){if(g.bodyUsed)throw new TypeError("Already read");this.url=g.url,this.credentials=g.credentials,x.headers||(this.headers=new y(g.headers)),this.method=g.method,this.mode=g.mode,this.signal=g.signal,!_&&g._bodyInit!=null&&(_=g._bodyInit,g.bodyUsed=!0)}else this.url=String(g);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new y(x.headers)),this.method=Z(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in i){var Q=new AbortController;return Q.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(_),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var ne=/([?&])_=[^&]*/;if(ne.test(this.url))this.url=this.url.replace(ne,"$1_="+new Date().getTime());else{var be=/\?/;this.url+=(be.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}X.prototype.clone=function(){return new X(this,{body:this._bodyInit})};function tt(g){var x=new FormData;return g.trim().split("&").forEach(function(_){if(_){var ne=_.split("="),be=ne.shift().replace(/\+/g," "),Q=ne.join("=").replace(/\+/g," ");x.append(decodeURIComponent(be),decodeURIComponent(Q))}}),x}function Wt(g){var x=new y,_=g.replace(/\r?\n[\t ]+/g," ");return _.split("\r").map(function(ne){return ne.indexOf(`
|
|
2
|
+
`)===0?ne.substr(1,ne.length):ne}).forEach(function(ne){var be=ne.split(":"),Q=be.shift().trim();if(Q){var Li=be.join(":").trim();try{x.append(Q,Li)}catch(Bn){console.warn("Response "+Bn.message)}}}),x}N.call(X.prototype);function Ye(g,x){if(!(this instanceof Ye))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.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=x.statusText===void 0?"":""+x.statusText,this.headers=new y(x.headers),this.url=x.url||"",this._initBody(g)}N.call(Ye.prototype),Ye.prototype.clone=function(){return new Ye(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},Ye.error=function(){var g=new Ye(null,{status:200,statusText:""});return g.ok=!1,g.status=0,g.type="error",g};var Vt=[301,302,303,307,308];Ye.redirect=function(g,x){if(Vt.indexOf(x)===-1)throw new RangeError("Invalid status code");return new Ye(null,{status:x,headers:{location:g}})},r.DOMException=i.DOMException;try{new r.DOMException}catch{r.DOMException=function(x,_){this.message=x,this.name=_;var ne=Error(x);this.stack=ne.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function De(g,x){return new Promise(function(_,ne){var be=new X(g,x);if(be.signal&&be.signal.aborted)return ne(new r.DOMException("Aborted","AbortError"));var Q=new XMLHttpRequest;function Li(){Q.abort()}Q.onload=function(){var Fe={statusText:Q.statusText,headers:Wt(Q.getAllResponseHeaders()||"")};be.url.indexOf("file://")===0&&(Q.status<200||Q.status>599)?Fe.status=200:Fe.status=Q.status,Fe.url="responseURL"in Q?Q.responseURL:Fe.headers.get("X-Request-URL");var Mr="response"in Q?Q.response:Q.responseText;setTimeout(function(){_(new Ye(Mr,Fe))},0)},Q.onerror=function(){setTimeout(function(){ne(new TypeError("Network request failed"))},0)},Q.ontimeout=function(){setTimeout(function(){ne(new TypeError("Network request timed out"))},0)},Q.onabort=function(){setTimeout(function(){ne(new r.DOMException("Aborted","AbortError"))},0)};function Bn(Fe){try{return Fe===""&&i.location.href?i.location.href:Fe}catch{return Fe}}if(Q.open(be.method,Bn(be.url),!0),be.credentials==="include"?Q.withCredentials=!0:be.credentials==="omit"&&(Q.withCredentials=!1),"responseType"in Q&&(n.blob?Q.responseType="blob":n.arrayBuffer&&(Q.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof y||i.Headers&&x.headers instanceof i.Headers)){var Fs=[];Object.getOwnPropertyNames(x.headers).forEach(function(Fe){Fs.push(p(Fe)),Q.setRequestHeader(Fe,u(x.headers[Fe]))}),be.headers.forEach(function(Fe,Mr){Fs.indexOf(Mr)===-1&&Q.setRequestHeader(Mr,Fe)})}else be.headers.forEach(function(Fe,Mr){Q.setRequestHeader(Mr,Fe)});be.signal&&(be.signal.addEventListener("abort",Li),Q.onreadystatechange=function(){Q.readyState===4&&be.signal.removeEventListener("abort",Li)}),Q.send(typeof be._bodyInit>"u"?null:be._bodyInit)})}return De.polyfill=!0,i.fetch||(i.fetch=De,i.Headers=y,i.Request=X,i.Response=Ye),r.Headers=y,r.Request=X,r.Response=Ye,r.fetch=De,r}({})})(Gi);Gi.fetch.ponyfill=!0;delete Gi.fetch.polyfill;var ko=Vi.fetch?Vi:Gi;Sr=ko.fetch;Sr.default=ko.fetch;Sr.fetch=ko.fetch;Sr.Headers=ko.Headers;Sr.Request=ko.Request;Sr.Response=ko.Response;Lc.exports=Sr});var Sp=zr((JC,vp)=>{vp.exports=ftGlobals.litUnsafeHTML});var Ku=f(w());var te=f(k()),K=f(ee()),Ri=f(Ur()),le=f(w());var Ks=f(w());var js=f(k()),Hr=f(ee()),Ii=f(w());var bt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(bt||(bt={}));var Vs=f(k());var Gs=Vs.css`
|
|
3
3
|
.ft-size-watcher--pixel {
|
|
4
4
|
width: 0;
|
|
5
5
|
height: 0;
|
|
@@ -18,24 +18,24 @@
|
|
|
18
18
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
19
19
|
width: 100%;
|
|
20
20
|
}
|
|
21
|
-
`;var
|
|
21
|
+
`;var jo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Dn=class extends CustomEvent{constructor(e,r){super("change",{detail:{size:e,category:r}})}},st=class extends Ii.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=bt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new Ii.Debouncer}render(){return js.html`
|
|
22
22
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
23
23
|
<div class="ft-size-watcher--watcher"></div>
|
|
24
24
|
</div>
|
|
25
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=
|
|
26
|
-
\f\r]`,
|
|
27
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ks=/'/g,Zs=/"/g,Qs=/^(?:script|style|textarea|title)$/i,Wn=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),Js=Wn(1),el=Wn(2),tl=Wn(3),Ko=Symbol.for("lit-noChange"),Ce=Symbol.for("lit-nothing"),qs=new WeakMap,Vr=Gr.createTreeWalker(Gr,129);function rl(t,e){if(!Hn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vs!==void 0?Vs.createHTML(e):e}var Xu=(t,e)=>{let o=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Go;for(let c=0;c<o;c++){let p=t[c],u,m,y=-1,b=0;for(;b<p.length&&(s.lastIndex=b,m=s.exec(p),m!==null);)b=s.lastIndex,s===Go?m[1]==="!--"?s=Gs:m[1]!==void 0?s=js:m[2]!==void 0?(Qs.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=Wr):m[3]!==void 0&&(s=Wr):s===Wr?m[0]===">"?(s=n??Go,y=-1):m[1]===void 0?y=-2:(y=s.lastIndex-m[2].length,u=m[1],s=m[3]===void 0?Wr:m[3]==='"'?Zs:Ks):s===Zs||s===Ks?s=Wr:s===Gs||s===js?s=Go:(s=Wr,n=void 0);let O=s===Wr&&t[c+1].startsWith("/>")?" ":"";a+=s===Go?p+qu:y>=0?(i.push(u),p.slice(0,y)+Ys+p.slice(y)+yr+O):p+yr+(y===-2?c:O)}return[rl(t,a+(t[o]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Zo=class t{constructor({strings:e,_$litType$:o},i){let n;this.parts=[];let a=0,s=0,c=e.length-1,p=this.parts,[u,m]=Xu(e,o);if(this.el=t.createElement(u,i),Vr.currentNode=this.el.content,o===2||o===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(n=Vr.nextNode())!==null&&p.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let y of n.getAttributeNames())if(y.endsWith(Ys)){let b=m[s++],O=n.getAttribute(y).split(yr),v=/([.?@])?(.*)/.exec(b);p.push({type:1,index:a,name:v[2],strings:O,ctor:v[1]==="."?Dn:v[1]==="?"?Fn:v[1]==="@"?Mn:fo}),n.removeAttribute(y)}else y.startsWith(yr)&&(p.push({type:6,index:a}),n.removeAttribute(y));if(Qs.test(n.tagName)){let y=n.textContent.split(yr),b=y.length-1;if(b>0){n.textContent=Li?Li.emptyScript:"";for(let O=0;O<b;O++)n.append(y[O],Ii()),Vr.nextNode(),p.push({type:2,index:++a});n.append(y[b],Ii())}}}else if(n.nodeType===8)if(n.data===Xs)p.push({type:2,index:a});else{let y=-1;for(;(y=n.data.indexOf(yr,y+1))!==-1;)p.push({type:7,index:a}),y+=yr.length-1}a++}}static createElement(e,o){let i=Gr.createElement("template");return i.innerHTML=e,i}};function uo(t,e,o=t,i){if(e===Ko)return e;let n=i!==void 0?o._$Co?.[i]:o._$Cl,a=jo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,o,i)),i!==void 0?(o._$Co??=[])[i]=n:o._$Cl=n),n!==void 0&&(e=uo(t,n._$AS(t,e.values),n,i)),e}var Bn=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:i}=this._$AD,n=(e?.creationScope??Gr).importNode(o,!0);Vr.currentNode=n;let a=Vr.nextNode(),s=0,c=0,p=i[0];for(;p!==void 0;){if(s===p.index){let u;p.type===2?u=new ki(a,a.nextSibling,this,e):p.type===1?u=new p.ctor(a,p.name,p.strings,this,e):p.type===6&&(u=new zn(a,this,e)),this._$AV.push(u),p=i[++c]}s!==p?.index&&(a=Vr.nextNode(),s++)}return Vr.currentNode=Gr,n}p(e){let o=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,o),o+=i.strings.length-2):i._$AI(e[o])),o++}},ki=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,i,n){this.type=2,this._$AH=Ce,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=uo(this,e,o),jo(e)?e===Ce||e==null||e===""?(this._$AH!==Ce&&this._$AR(),this._$AH=Ce):e!==this._$AH&&e!==Ko&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Yu(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Ce&&jo(this._$AH)?this._$AA.nextSibling.data=e:this.T(Gr.createTextNode(e)),this._$AH=e}$(e){let{values:o,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Zo.createElement(rl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(o);else{let a=new Bn(n,this),s=a.u(this.options);a.p(o),this.T(s),this._$AH=a}}_$AC(e){let o=qs.get(e.strings);return o===void 0&&qs.set(e.strings,o=new Zo(e)),o}k(e){Hn(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,i,n=0;for(let a of e)n===o.length?o.push(i=new t(this.O(Ii()),this.O(Ii()),this,this.options)):i=o[n],i._$AI(a),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},fo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,i,n,a){this.type=1,this._$AH=Ce,this._$AN=void 0,this.element=e,this.name=o,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ce}_$AI(e,o=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=uo(this,e,o,0),s=!jo(e)||e!==this._$AH&&e!==Ko,s&&(this._$AH=e);else{let c=e,p,u;for(e=a[0],p=0;p<a.length-1;p++)u=uo(this,c[i+p],o,p),u===Ko&&(u=this._$AH[p]),s||=!jo(u)||u!==this._$AH[p],u===Ce?e=Ce:e!==Ce&&(e+=(u??"")+a[p+1]),this._$AH[p]=u}s&&!n&&this.j(e)}j(e){e===Ce?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Dn=class extends fo{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ce?void 0:e}},Fn=class extends fo{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Ce)}},Mn=class extends fo{constructor(e,o,i,n,a){super(e,o,i,n,a),this.type=5}_$AI(e,o=this){if((e=uo(this,e,o,0)??Ce)===Ko)return;let i=this._$AH,n=e===Ce&&i!==Ce||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==Ce&&(i===Ce||n);n&&this.element.removeEventListener(this.name,this,i),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)}},zn=class{constructor(e,o,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){uo(this,e)}};var Qu=Un.litHtmlPolyfillSupport;Qu?.(Zo,ki),(Un.litHtmlVersions??=[]).push("3.3.0");var il=Symbol.for(""),Ju=t=>{if(t?.r===il)return t?._$litStatic$},ho=t=>({_$litStatic$:t,r:il});var ol=new Map,Vn=t=>(e,...o)=>{let i=o.length,n,a,s=[],c=[],p,u=0,m=!1;for(;u<i;){for(p=e[u];u<i&&(a=o[u],(n=Ju(a))!==void 0);)p+=n+e[++u],m=!0;u!==i&&c.push(a),s.push(p),u++}if(u===i&&s.push(e[i]),m){let y=s.join("$$lit$$");(e=ol.get(y))===void 0&&(s.raw=s,ol.set(y,e=s)),o=c}return t(e,...o)},yo=Vn(Js),Mh=Vn(el),zh=Vn(tl);var ha=f(ee()),xl=f(w());var Ge;(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"})(Ge||(Ge={}));var St=f(k()),R=f(w());var ar=f(k(),1),mr=t=>typeof t=="string"?(0,ar.unsafeCSS)(t):t,r=class{static create(e,o,i,n){let a=c=>mr(c??n),s=ar.css`var(${mr(e)}, ${a(n)})`;return s.name=e,s.description=o,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>nl(s,c??a(n)),s.get=c=>ar.css`var(${mr(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,o,i,n){let a=c=>i.get(c??n),s=ar.css`var(${mr(e)}, ${a(n)})`;return s.name=e,s.description=o,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>nl(s,c??a(n)),s.get=c=>ar.css`var(${mr(e)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,o){let i=a=>e.defaultCssValue(a),n=ar.css`var(${mr(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=o,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>ar.css`var(${mr(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function nl(t,e){return mr(`${t.name}: ${e}`)}var l={colorWhite:r.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:r.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:r.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:r.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:r.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:r.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:r.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:r.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:r.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:r.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:r.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:r.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:r.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:r.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:r.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:r.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:r.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:r.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:r.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:r.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:r.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:r.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:r.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:r.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:r.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:r.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:r.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:r.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:r.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:r.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:r.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:r.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:r.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:r.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:r.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:r.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:r.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:r.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:r.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:r.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:r.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:r.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:r.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:r.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:r.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:r.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:r.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:r.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:r.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:r.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:r.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:r.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:r.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:r.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:r.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:r.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:r.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:r.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:r.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:r.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:r.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:r.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:r.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:r.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:r.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:r.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:r.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:r.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:r.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:r.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:r.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:r.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:r.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:r.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:r.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:r.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:r.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:r.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:r.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:r.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:r.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:r.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:r.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:r.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:r.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:r.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:r.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:r.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:r.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:r.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:r.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:r.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:r.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:r.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:r.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:r.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:r.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:r.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:r.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:r.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:r.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:r.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:r.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:r.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:r.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:r.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:r.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:r.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:r.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:r.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:r.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:r.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:r.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:r.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:r.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:r.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:r.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:r.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:r.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:r.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:r.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:r.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:r.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:r.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:r.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:r.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:r.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:r.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:r.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:r.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:r.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:r.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:r.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:r.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:r.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:r.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:r.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:r.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:r.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:r.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:r.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:r.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:r.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:r.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:r.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:r.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:r.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:r.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:r.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:r.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:r.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:r.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:r.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:r.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:r.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:r.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:r.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:r.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:r.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:r.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:r.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:r.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:r.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:r.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:r.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:r.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:r.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:r.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:r.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:r.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:r.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:r.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:r.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:r.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:r.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:r.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:r.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:r.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:r.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:r.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:r.create("--ftds-opacity-0","","NUMBER","0"),opacity8:r.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:r.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:r.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:r.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:r.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:r.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:r.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:r.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:r.create("--ftds-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:r.create("--ftds-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:r.create("--ftds-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:r.create("--ftds-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:r.create("--ftds-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:r.create("--ftds-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:r.create("--ftds-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:r.create("--ftds-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:r.create("--ftds-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)")},Gn={fontFamily:r.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:r.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:r.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:r.create("--ftds-typography-display-text-case","","UNKNOWN","none")},jn={fontFamily:r.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:r.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:r.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:r.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Kn={fontFamily:r.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:r.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:r.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:r.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Zn={fontFamily:r.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:r.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:r.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:r.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:r.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},qn={fontFamily:r.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:r.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:r.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:r.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:r.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:r.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Yn={fontFamily:r.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:r.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:r.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:r.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:r.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Xn={fontFamily:r.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:r.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:r.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:r.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:r.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Qn={fontFamily:r.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:r.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:r.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:r.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:r.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:r.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},jr={fontFamily:r.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:r.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:r.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:r.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:r.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},ef={fontFamily:r.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:r.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:r.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:r.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:r.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:r.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Jn={fontFamily:r.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:r.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:r.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:r.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:r.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},ea={fontFamily:r.create("--ftds-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ftds-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:r.create("--ftds-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:r.create("--ftds-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:r.create("--ftds-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ftds-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-label-1-medium-text-decoration","","UNKNOWN","none")},ta={fontFamily:r.create("--ftds-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ftds-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:r.create("--ftds-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:r.create("--ftds-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:r.create("--ftds-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ftds-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},ra={fontFamily:r.create("--ftds-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:r.create("--ftds-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:r.create("--ftds-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:r.create("--ftds-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:r.create("--ftds-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ftds-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-label-1-bold-text-decoration","","UNKNOWN","none")},oa={fontFamily:r.create("--ftds-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ftds-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:r.create("--ftds-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:r.create("--ftds-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:r.create("--ftds-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ftds-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-label-2-medium-text-decoration","","UNKNOWN","none")},ia={fontFamily:r.create("--ftds-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ftds-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:r.create("--ftds-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:r.create("--ftds-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:r.create("--ftds-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ftds-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},na={fontFamily:r.create("--ftds-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:r.create("--ftds-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:r.create("--ftds-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:r.create("--ftds-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:r.create("--ftds-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ftds-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-label-2-bold-text-decoration","","UNKNOWN","none")},aa={fontFamily:r.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:r.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:r.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:r.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},sa={fontFamily:r.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:r.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:r.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:r.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},la={fontFamily:r.create("--ftds-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:r.create("--ftds-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:r.create("--ftds-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:r.create("--ftds-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:r.create("--ftds-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ftds-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},gr={fontFamily:r.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:r.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:r.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:r.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},ca={fontFamily:r.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:r.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:r.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:r.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},da={fontFamily:r.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:r.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:r.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:r.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:r.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},pa={fontFamily:r.create("--ftds-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:r.create("--ftds-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:r.create("--ftds-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:r.create("--ftds-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:r.create("--ftds-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ftds-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},ua={fontFamily:r.create("--ftds-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:r.create("--ftds-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:r.create("--ftds-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:r.create("--ftds-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:r.create("--ftds-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ftds-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},fa={fontFamily:r.create("--ftds-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:r.create("--ftds-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:r.create("--ftds-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:r.create("--ftds-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:r.create("--ftds-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:r.create("--ftds-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:r.create("--ftds-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ftds-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:r.create("--ftds-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},Kr={display:Gn,"title-1":jn,"title-2":Kn,"title-3":Zn,"body-1-regular":qn,"body-1-medium":Yn,"body-1-semibold":Xn,"body-2-regular":Qn,"body-2-medium":jr,"body-2-medium-underline":ef,"body-2-semibold":Jn,"label-1-medium":ea,"label-1-semibold":ta,"label-1-bold":ra,"label-2-medium":oa,"label-2-semibold":ia,"label-2-bold":na,"caption-1-medium":aa,"caption-1-semibold":sa,"caption-1-bold":la,"caption-2-medium":gr,"caption-2-semibold":ca,"caption-2-bold":da,"caption-3-medium":pa,"caption-3-semibold":ua,"caption-3-bold":fa};var d={backgroundActionPrimary:r.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:r.extend("--ftds-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:r.extend("--ftds-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:r.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:r.extend("--ftds-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:r.extend("--ftds-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:r.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:r.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:r.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:r.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:r.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:r.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:r.extend("--ftds-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:r.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:r.extend("--ftds-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:r.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:r.extend("--ftds-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:r.extend("--ftds-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:r.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
28
|
-
Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:r.extend("--ftds-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:r.extend("--ftds-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:r.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:r.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:r.extend("--ftds-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:r.extend("--ftds-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:r.extend("--ftds-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:r.extend("--ftds-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:r.extend("--ftds-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:r.extend("--ftds-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:r.extend("--ftds-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:r.extend("--ftds-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:r.extend("--ftds-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:r.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:r.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var h={largeHeight:r.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:r.extend("--ftds-button-large-horizontal-padding","",l.spacing4),largeGap:r.extend("--ftds-button-large-gap","",l.spacing2),largeBorderRadius:r.extend("--ftds-button-large-border-radius","",l.borderRadiusS),largeIconSize:r.extend("--ftds-button-large-icon-size","",l.iconSize3),largeBorderWidth:r.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:r.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:r.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:r.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:r.extend("--ftds-button-medium-horizontal-padding","",l.spacing3),mediumGap:r.extend("--ftds-button-medium-gap","",l.spacing2),mediumBorderRadius:r.extend("--ftds-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:r.extend("--ftds-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:r.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:r.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:r.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:r.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ftds-button-small-horizontal-padding","",l.spacing2),smallGap:r.extend("--ftds-button-small-gap","",l.spacing1),smallBorderRadius:r.extend("--ftds-button-small-border-radius","",l.borderRadiusS),smallIconSize:r.extend("--ftds-button-small-icon-size","",l.iconSize1),smallBorderWidth:r.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:r.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:r.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:r.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:r.extend("--ftds-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:r.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:r.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:r.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:r.extend("--ftds-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:r.extend("--ftds-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:r.extend("--ftds-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:r.extend("--ftds-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:r.extend("--ftds-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:r.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:r.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:r.extend("--ftds-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:r.extend("--ftds-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ftds-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:r.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:r.extend("--ftds-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:r.extend("--ftds-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:r.extend("--ftds-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:r.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:r.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:r.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:r.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:r.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:r.extend("--ftds-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:r.extend("--ftds-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:r.extend("--ftds-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:r.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:r.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:r.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:r.extend("--ftds-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:r.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:r.extend("--ftds-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:r.extend("--ftds-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:r.extend("--ftds-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:r.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:r.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:r.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:r.extend("--ftds-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:r.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:r.extend("--ftds-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:r.extend("--ftds-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:r.extend("--ftds-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:r.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:r.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:r.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:r.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:r.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:r.extend("--ftds-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:r.extend("--ftds-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:r.extend("--ftds-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:r.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:r.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:r.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:r.extend("--ftds-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:r.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:r.extend("--ftds-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:r.extend("--ftds-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:r.extend("--ftds-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:r.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:r.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:r.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:r.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:r.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:r.extend("--ftds-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:r.extend("--ftds-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:r.extend("--ftds-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:r.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:r.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:r.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:r.extend("--ftds-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:r.extend("--ftds-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:r.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:r.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:r.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:r.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:r.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:r.extend("--ftds-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:r.extend("--ftds-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:r.extend("--ftds-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:r.extend("--ftds-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:r.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:r.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:r.extend("--ftds-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:r.extend("--ftds-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:r.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:r.extend("--ftds-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:r.extend("--ftds-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:r.extend("--ftds-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:r.extend("--ftds-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:r.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:r.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:r.extend("--ftds-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:r.extend("--ftds-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:r.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:r.extend("--ftds-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:r.extend("--ftds-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:r.extend("--ftds-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:r.extend("--ftds-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:r.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:r.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:r.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:r.extend("--ftds-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:r.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:r.extend("--ftds-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:r.extend("--ftds-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:r.extend("--ftds-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:r.extend("--ftds-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:r.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:r.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:r.extend("--ftds-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:r.extend("--ftds-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:r.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:r.extend("--ftds-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:r.extend("--ftds-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:r.extend("--ftds-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:r.extend("--ftds-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var iy={loadMoreIconSize:r.extend("--ftds-tree-list-load-more-icon-size","",l.iconSize2),loadMorePaddingLeft:r.extend("--ftds-tree-list-load-more-padding-left","",l.spacing6),loadMoreUnselectedDefaultBorderColor:r.extend("--ftds-tree-list-load-more-unselected-default-border-color","",d.borderGlobalSubtle),loadMoreIconColor:r.extend("--ftds-tree-list-load-more-icon-color","",d.contentActionPrimary),loadMoreLabelColor:r.extend("--ftds-tree-list-load-more-label-color","",d.contentActionPrimary),loadMoreHoverBorderColor:r.extend("--ftds-tree-list-load-more-hover-border-color","",l.colorBrand20),loadMoreHoverBackgroundColor:r.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:r.extend("--ftds-tree-list-load-more-active-border-color","",l.colorBrand20),loadMoreActiveBackgroundColor:r.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:r.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:r.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:r.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),loadMoreLabelMarginLeft:r.extend("--ftds-tree-list-load-more-label-margin-left","",l.spacing1),nodeIconSize:r.extend("--ftds-tree-list-node-icon-size","",l.iconSize2),nodeHeight:r.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:r.extend("--ftds-tree-list-node-parent-label-margin-left","",l.spacing2),nodeParentLabelMarginRight:r.extend("--ftds-tree-list-node-parent-label-margin-right","",l.spacing2),nodeRootPaddingLeft:r.extend("--ftds-tree-list-node-root-padding-left","",l.spacing3),nodeChildPaddingLeft:r.extend("--ftds-tree-list-node-child-padding-left","",l.spacing5),nodeLeafPaddingLeft:r.extend("--ftds-tree-list-node-leaf-padding-left","",l.spacing6),nodeUnselectedDefaultBorderColor:r.extend("--ftds-tree-list-node-unselected-default-border-color","",d.borderGlobalSubtle),nodeUnselectedIconColor:r.extend("--ftds-tree-list-node-unselected-icon-color","",d.contentGlobalSecondary),nodeUnselectedLabelColor:r.extend("--ftds-tree-list-node-unselected-label-color","",d.contentGlobalSecondary),nodeUnselectedCounterColor:r.extend("--ftds-tree-list-node-unselected-counter-color","",d.contentGlobalSecondary),nodeHoverBorderColor:r.extend("--ftds-tree-list-node-hover-border-color","",d.borderActionPrimary),nodeFocusFocusRingColor:r.extend("--ftds-tree-list-node-focus-focus-ring-color","",d.borderActionFocusRing),nodeFocusOutlineWidth:r.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:r.extend("--ftds-tree-list-node-selected-default-border-color","",d.borderGlobalPrimary),nodeSelectedIconColor:r.extend("--ftds-tree-list-node-selected-icon-color","",d.contentGlobalSecondary),nodeSelectedLabelColor:r.extend("--ftds-tree-list-node-selected-label-color","",d.contentGlobalPrimary),nodeSelectedCounterColor:r.extend("--ftds-tree-list-node-selected-counter-color","",d.contentGlobalSecondary),nodeSelectedBackgroundColor:r.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:r.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:r.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:r.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:r.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:r.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:r.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:r.extend("--ftds-tree-list-header-section-padding-left","",l.spacing3),headerSectionPaddingRight:r.extend("--ftds-tree-list-header-section-padding-right","",l.spacing3),headerSectionHorizontalGap:r.extend("--ftds-tree-list-header-section-horizontal-gap","",l.spacing2),headerSectionMarginBottom:r.extend("--ftds-tree-list-header-section-margin-bottom","",l.spacing2),headerSectionColor:r.extend("--ftds-tree-list-header-section-color","",d.contentGlobalPrimary),headerSectionCounterColor:r.extend("--ftds-tree-list-header-section-counter-color","",d.contentGlobalSecondary),listContainerBorderWidth:r.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:r.extend("--ftds-tree-list-list-container-background-color","",d.backgroundGlobalSurface),listContainerBorderColor:r.extend("--ftds-tree-list-list-container-border-color","",d.borderGlobalSubtle),emptyStateIllustrationWidth:r.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:r.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:r.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",l.spacing10),emptyStateContainerPaddingTop:r.extend("--ftds-tree-list-empty-state-container-padding-top","",l.spacing10),emptyStateContainerPaddingBottom:r.extend("--ftds-tree-list-empty-state-container-padding-bottom","",l.spacing10),emptyStateTitleMarginBottom:r.extend("--ftds-tree-list-empty-state-title-margin-bottom","",l.spacing2),emptyStateTitleLabelColor:r.extend("--ftds-tree-list-empty-state-title-label-color","",d.contentGlobalSecondary),emptyStateDescriptionLabelColor:r.extend("--ftds-tree-list-empty-state-description-label-color","",d.contentGlobalSecondary)};var cy={iconSize:r.extend("--ftds-checkbox-icon-size","",l.iconSize2),boxSize:r.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:r.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:r.create("--ftds-checkbox-border-radius","","SIZE","1px"),color:r.extend("--ftds-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:r.extend("--ftds-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:r.extend("--ftds-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:r.extend("--ftds-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:r.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:r.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:r.extend("--ftds-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:r.extend("--ftds-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:r.extend("--ftds-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:r.extend("--ftds-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:r.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:r.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:r.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:r.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ftds-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:r.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:r.extend("--ftds-checkbox-horizontal-gap","",l.spacing3),leftPadding:r.extend("--ftds-checkbox-left-padding","",l.spacing2)};var hy={circleSize:r.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:r.create("--ftds-radio-border-width","","SIZE","2px"),color:r.extend("--ftds-radio-color","",d.contentGlobalPrimary),selectedRadioColor:r.extend("--ftds-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:r.extend("--ftds-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:r.extend("--ftds-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:r.extend("--ftds-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:r.extend("--ftds-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:r.extend("--ftds-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:r.extend("--ftds-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:r.extend("--ftds-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:r.extend("--ftds-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:r.extend("--ftds-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:r.extend("--ftds-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:r.extend("--ftds-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ftds-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:r.extend("--ftds-radio-vertical-gap","",l.spacing3),horizontalGap:r.extend("--ftds-radio-horizontal-gap","",l.spacing3)};var xy={headerRowBorderWidth:r.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:r.extend("--ftds-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:r.extend("--ftds-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:r.extend("--ftds-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:r.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:r.extend("--ftds-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:r.extend("--ftds-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:r.extend("--ftds-table-data-row-color","",d.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:r.extend("--ftds-table-data-row-default-hover-background-color","",l.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:r.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",l.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:r.extend("--ftds-table-data-row-selectable-selected-default-background-color","",l.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:r.extend("--ftds-table-data-row-selectable-selected-default-border-color","",l.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:r.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",l.colorBrand20),dataRowSelectableSelectedHoverBorderColor:r.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",l.colorBrand30),dataRowSelectableSelectedColor:r.extend("--ftds-table-data-row-selectable-selected-color","",d.contentActionPrimary),dataRowClickableHoverBackgroundColor:r.extend("--ftds-table-data-row-clickable-hover-background-color","",l.colorGray30),dataRowClickableFocusBorderColor:r.extend("--ftds-table-data-row-clickable-focus-border-color","",d.borderActionFocusRing),dataRowClickableFocusBackgroundColor:r.extend("--ftds-table-data-row-clickable-focus-background-color","",l.colorGray30),dataRowClickableActiveBackgroundColor:r.extend("--ftds-table-data-row-clickable-active-background-color","",l.colorGray40),headerCellHorizontalGap:r.extend("--ftds-table-header-cell-horizontal-gap","",l.spacing1),headerCellVerticalPadding:r.extend("--ftds-table-header-cell-vertical-padding","",l.spacing2),headerCellHorizontalPadding:r.extend("--ftds-table-header-cell-horizontal-padding","",l.spacing3),dataCellVerticalPadding:r.extend("--ftds-table-data-cell-vertical-padding","",l.spacing2),dataCellHorizontalPadding:r.extend("--ftds-table-data-cell-horizontal-padding","",l.spacing3),dataCellVerticalGap:r.extend("--ftds-table-data-cell-vertical-gap","",l.spacing1)};var wy={neutralOffHoverStateLayerOpacity:r.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:r.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:r.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:r.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:r.extend("--ftds-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:r.extend("--ftds-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:r.extend("--ftds-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:r.extend("--ftds-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:r.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:r.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:r.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:r.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:r.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:r.extend("--ftds-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:r.extend("--ftds-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:r.extend("--ftds-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:r.extend("--ftds-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:r.extend("--ftds-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:r.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ftds-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:r.extend("--ftds-chip-choice-large-gap","",l.spacing1),largeBorderRadius:r.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ftds-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:r.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ftds-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:r.extend("--ftds-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:r.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ftds-chip-choice-medium-icon-size","",l.iconSize2)};var B={largeMinHeight:r.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ftds-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:r.extend("--ftds-chip-large-button-right-padding","",l.spacing1),largeGap:r.extend("--ftds-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:r.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:r.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ftds-chip-large-icon-size","",l.iconSize3),mediumMinHeight:r.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ftds-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:r.extend("--ftds-chip-medium-button-right-padding","",l.spacing05),mediumGap:r.extend("--ftds-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:r.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:r.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ftds-chip-medium-icon-size","",l.iconSize2),smallMinHeight:r.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ftds-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:r.extend("--ftds-chip-small-button-right-padding","",l.spacing05),smallGap:r.extend("--ftds-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:r.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:r.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:r.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:r.extend("--ftds-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:r.extend("--ftds-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:r.extend("--ftds-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:r.extend("--ftds-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:r.extend("--ftds-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:r.extend("--ftds-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ftds-chip-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ftds-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ftds-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:r.extend("--ftds-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:r.extend("--ftds-chip-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ftds-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:r.extend("--ftds-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:r.extend("--ftds-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:r.extend("--ftds-chip-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ftds-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:r.extend("--ftds-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:r.extend("--ftds-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:r.extend("--ftds-chip-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ftds-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:r.extend("--ftds-chip-error-border-color","",d.borderErrorSubtle)};var Ny={brandHoverOpacity:r.extend("--ftds-link-brand-hover-opacity","",l.opacity80),brandHoverColor:r.extend("--ftds-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:r.extend("--ftds-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:r.extend("--ftds-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:r.extend("--ftds-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:r.extend("--ftds-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:r.extend("--ftds-link-info-hover-opacity","",l.opacity80),infoHoverColor:r.extend("--ftds-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:r.extend("--ftds-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:r.extend("--ftds-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:r.extend("--ftds-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:r.extend("--ftds-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:r.extend("--ftds-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:r.extend("--ftds-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:r.extend("--ftds-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:r.extend("--ftds-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:r.extend("--ftds-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:r.extend("--ftds-link-neutral-visited-color","",l.colorBrand100)};var Fy={iconSize:r.extend("--ftds-banner-icon-size","",l.iconSize5),borderWidth:r.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:r.extend("--ftds-banner-left-padding","",l.spacing6),rightPadding:r.extend("--ftds-banner-right-padding","",l.spacing6),verticalPadding:r.extend("--ftds-banner-vertical-padding","",l.spacing6),horizontalSideGap:r.extend("--ftds-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:r.extend("--ftds-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:r.extend("--ftds-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:r.extend("--ftds-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:r.extend("--ftds-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ftds-banner-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ftds-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ftds-banner-info-border-color","",d.borderInfoSubtle)};var Wy={horizontalPadding:r.extend("--ftds-badge-horizontal-padding","",l.spacing1),verticalPadding:r.extend("--ftds-badge-vertical-padding","",l.spacing1),borderRadius:r.extend("--ftds-badge-border-radius","",l.borderRadiusPill),color:r.extend("--ftds-badge-color","",d.contentGlobalOnColor),backgroundColor:r.extend("--ftds-badge-background-color","",d.contentActionPrimary)};var Zy={horizontalGap:r.extend("--ftds-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:r.extend("--ftds-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:r.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:r.extend("--ftds-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var Jy={parentHorizontalPadding:r.extend("--ftds-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:r.extend("--ftds-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:r.extend("--ftds-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:r.extend("--ftds-page-header-parent-help-left-margin","",l.spacing1),parentTitleColor:r.extend("--ftds-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:r.extend("--ftds-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:r.extend("--ftds-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:r.extend("--ftds-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:r.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:r.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:r.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:r.extend("--ftds-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:r.extend("--ftds-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:r.extend("--ftds-page-header-child-top-padding","",l.spacing2),childBottomPadding:r.extend("--ftds-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:r.extend("--ftds-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:r.extend("--ftds-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:r.extend("--ftds-page-header-child-vertical-gap","",l.spacing2),childMinHeight:r.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:r.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:r.extend("--ftds-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:r.extend("--ftds-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:r.extend("--ftds-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:r.extend("--ftds-page-header-background-color","",l.colorWhite),bottomBorderColor:r.extend("--ftds-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:r.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var im={horizontalPadding:r.extend("--ftds-page-footer-horizontal-padding","",l.spacing6),verticalPadding:r.extend("--ftds-page-footer-vertical-padding","",l.spacing2),verticalGap:r.extend("--ftds-page-footer-vertical-gap","",l.spacing2),minHeight:r.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:r.extend("--ftds-page-footer-background-color","",l.colorWhite),topBorderColor:r.extend("--ftds-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:r.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:r.extend("--ftds-page-footer-buttons-group-gap","",l.spacing4)};var lm={contentHorizontalPadding:r.extend("--ftds-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:r.extend("--ftds-page-layout-content-vertical-padding","",l.spacing6)};var fm={smallContainerTargetWidth:r.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:r.extend("--ftds-modal-small-container-margin","",l.spacing6),mediumContainerTargetWidth:r.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:r.extend("--ftds-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:r.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:r.extend("--ftds-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:r.extend("--ftds-modal-overlay-background-color","",l.colorGray700),overlayOpacity:r.extend("--ftds-modal-overlay-opacity","",l.opacity40),shadow:r.extend("--ftds-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:r.extend("--ftds-modal-body-background-color","",l.colorWhite),bodyColor:r.extend("--ftds-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ftds-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:r.extend("--ftds-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:r.extend("--ftds-modal-body-vertical-gap","",l.spacing6),headerBackgroundColor:r.extend("--ftds-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ftds-modal-header-border-color","",d.borderGlobalSubtle),headerColor:r.extend("--ftds-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:r.extend("--ftds-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:r.extend("--ftds-modal-header-vertical-padding","",l.spacing1),headerRightPadding:r.extend("--ftds-modal-header-right-padding","",l.spacing1),headerLeftPadding:r.extend("--ftds-modal-header-left-padding","",l.spacing6),headerGap:r.extend("--ftds-modal-header-gap","",l.spacing2),headerBorderBottomWidth:r.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:r.extend("--ftds-modal-border-radius","",l.borderRadiusM)};var bm={overlayOpacity:r.extend("--ftds-drawer-overlay-opacity","",l.opacity40),shadow:r.extend("--ftds-drawer-shadow","",l.shadowElevation03),bodyColor:r.extend("--ftds-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ftds-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:r.extend("--ftds-drawer-body-vertical-padding","",l.spacing6),bodyGap:r.extend("--ftds-drawer-body-gap","",l.spacing6),bodyBackgroundColor:r.extend("--ftds-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:r.extend("--ftds-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ftds-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:r.extend("--ftds-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:r.extend("--ftds-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:r.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:r.extend("--ftds-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:r.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:r.extend("--ftds-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:r.extend("--ftds-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:r.extend("--ftds-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:r.extend("--ftds-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:r.extend("--ftds-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:r.extend("--ftds-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:r.extend("--ftds-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:r.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:r.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:r.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:r.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:r.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:r.extend("--ftds-drawer-overlay-background-color","",l.colorGray700)};var Cm={offBorderBottomWidth:r.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:r.extend("--ftds-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:r.extend("--ftds-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:r.extend("--ftds-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:r.extend("--ftds-tabs-off-disabled-component-opacity","",l.opacity40),offColor:r.extend("--ftds-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ftds-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:r.extend("--ftds-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:r.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:r.extend("--ftds-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:r.extend("--ftds-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:r.extend("--ftds-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:r.extend("--ftds-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:r.extend("--ftds-tabs-horizontal-gap","",l.spacing1),verticalGap:r.extend("--ftds-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:r.extend("--ftds-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:r.extend("--ftds-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:r.extend("--ftds-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:r.extend("--ftds-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:r.extend("--ftds-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ftds-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:r.extend("--ftds-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:r.extend("--ftds-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:r.extend("--ftds-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:r.extend("--ftds-tabs-alert-top-padding","",l.spacing1),alertRightPadding:r.extend("--ftds-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:r.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ftds-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var Lm={largeFieldHorizontalPadding:r.extend("--ftds-text-input-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:r.extend("--ftds-text-input-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:r.extend("--ftds-text-input-large-field-vertical-gap","",l.spacing05),largeFieldHeight:r.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:r.extend("--ftds-text-input-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:r.extend("--ftds-text-input-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:r.extend("--ftds-text-input-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:r.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:r.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:r.extend("--ftds-text-input-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:r.extend("--ftds-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ftds-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:r.extend("--ftds-text-input-helper-icon-size","",l.iconSize2),borderRadius:r.extend("--ftds-text-input-border-radius","",l.borderRadiusS),backgroundColor:r.extend("--ftds-text-input-background-color","",l.colorWhite),contentValueColor:r.extend("--ftds-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:r.extend("--ftds-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:r.extend("--ftds-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ftds-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ftds-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ftds-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ftds-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:r.extend("--ftds-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:r.extend("--ftds-text-input-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ftds-text-input-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ftds-text-input-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:r.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:r.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ftds-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ftds-text-input-disabled-component-opacity","",l.opacity40)};var Nm={backgroundColor:r.extend("--ftds-text-area-background-color","",l.colorWhite),contentValueColor:r.extend("--ftds-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:r.extend("--ftds-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ftds-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ftds-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ftds-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ftds-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:r.extend("--ftds-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:r.extend("--ftds-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ftds-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:r.extend("--ftds-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ftds-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ftds-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:r.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:r.extend("--ftds-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ftds-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:r.extend("--ftds-text-area-helper-icon-size","",l.iconSize2),borderRadius:r.extend("--ftds-text-area-border-radius","",l.borderRadiusS)};var Fm={height:r.create("--ftds-floating-menu-height","","SIZE","50px"),horizontalPadding:r.extend("--ftds-floating-menu-horizontal-padding","",l.spacing4),offIconColor:r.extend("--ftds-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:r.extend("--ftds-floating-menu-off-color","",d.contentGlobalPrimary),onColor:r.extend("--ftds-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ftds-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:r.extend("--ftds-floating-menu-gap","",l.spacing3),focusFocusRingColor:r.extend("--ftds-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:r.extend("--ftds-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:r.extend("--ftds-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:r.extend("--ftds-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:r.extend("--ftds-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:r.extend("--ftds-floating-menu-icon-size","",l.iconSize3),backgroundColor:r.extend("--ftds-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:r.extend("--ftds-floating-menu-shadow","",l.shadowElevation02)};var Wm={largeFieldHorizontalPadding:r.extend("--ftds-combobox-single-select-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:r.extend("--ftds-combobox-single-select-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:r.extend("--ftds-combobox-single-select-large-field-vertical-gap","",l.spacing05),largeFieldHeight:r.create("--ftds-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:r.extend("--ftds-combobox-single-select-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:r.extend("--ftds-combobox-single-select-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:r.extend("--ftds-combobox-single-select-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:r.create("--ftds-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:r.create("--ftds-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:r.extend("--ftds-combobox-single-select-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:r.extend("--ftds-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ftds-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:r.extend("--ftds-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:r.extend("--ftds-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:r.extend("--ftds-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:r.extend("--ftds-combobox-single-select-border-radius","",l.borderRadiusS),backgroundColor:r.extend("--ftds-combobox-single-select-background-color","",l.colorWhite),labelColor:r.extend("--ftds-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:r.extend("--ftds-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:r.extend("--ftds-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ftds-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ftds-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ftds-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ftds-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ftds-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ftds-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:r.create("--ftds-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ftds-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ftds-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ftds-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:r.create("--ftds-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ftds-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ftds-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ftds-combobox-single-select-disabled-component-opacity","",l.opacity40)};var Zm={backgroundColor:r.extend("--ftds-combobox-multi-select-background-color","",l.colorWhite),labelColor:r.extend("--ftds-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:r.extend("--ftds-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ftds-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ftds-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ftds-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:r.extend("--ftds-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ftds-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:r.extend("--ftds-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:r.create("--ftds-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ftds-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ftds-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ftds-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:r.create("--ftds-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ftds-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ftds-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ftds-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ftds-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:r.extend("--ftds-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ftds-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:r.extend("--ftds-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:r.extend("--ftds-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:r.extend("--ftds-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ftds-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ftds-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:r.extend("--ftds-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:r.create("--ftds-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:r.extend("--ftds-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:r.extend("--ftds-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:r.extend("--ftds-combobox-multi-select-border-radius","",l.borderRadiusS)};var Jm={backgroundColor:r.extend("--ftds-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:r.extend("--ftds-popover-horizontal-padding","",l.spacing6),verticalPadding:r.extend("--ftds-popover-vertical-padding","",l.spacing6),titleColor:r.extend("--ftds-popover-title-color","",d.contentGlobalPrimary),bodyColor:r.extend("--ftds-popover-body-color","",d.contentGlobalSecondary),gap:r.extend("--ftds-popover-gap","",l.spacing2),borderRadius:r.extend("--ftds-popover-border-radius","",l.borderRadiusM),shadow:r.extend("--ftds-popover-shadow","",l.shadowElevation02),maxWidth:r.create("--ftds-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:r.extend("--ftds-popover-content-section-vertical-gap","",l.spacing2),multiSectionVerticalGap:r.extend("--ftds-popover-multi-section-vertical-gap","",l.spacing6)};var ig={hoverStateLayerOpacity:r.extend("--ftds-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:r.extend("--ftds-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:r.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:r.extend("--ftds-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:r.extend("--ftds-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:r.extend("--ftds-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:r.extend("--ftds-collapsible-horizontal-padding","",l.spacing4),verticalPadding:r.extend("--ftds-collapsible-vertical-padding","",l.spacing3),color:r.extend("--ftds-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:r.extend("--ftds-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:r.extend("--ftds-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:r.extend("--ftds-collapsible-border-color","",d.borderGlobalSubtle),iconSize:r.extend("--ftds-collapsible-icon-size","",l.iconSize3)};var cg={groupHorizontalPadding:r.extend("--ftds-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:r.extend("--ftds-switch-group-vertical-padding","",l.spacing1),groupGap:r.extend("--ftds-switch-group-gap","",l.spacing1),groupBackgroundColor:r.extend("--ftds-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:r.extend("--ftds-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:r.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:r.extend("--ftds-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:r.extend("--ftds-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:r.extend("--ftds-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:r.extend("--ftds-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:r.extend("--ftds-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:r.extend("--ftds-switch-off-disabled-component-opacity","",l.opacity40),offColor:r.extend("--ftds-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ftds-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ftds-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:r.extend("--ftds-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:r.extend("--ftds-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:r.extend("--ftds-switch-on-disabled-component-opacity","",l.opacity40),onColor:r.extend("--ftds-switch-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ftds-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:r.extend("--ftds-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:r.extend("--ftds-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:r.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ftds-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:r.extend("--ftds-switch-option-border-radius","",l.borderRadiusS)};var fg={color1Light:r.extend("--ftds-chart-1-light","for area color charts",l.colorBrand40),color1Base:r.extend("--ftds-chart-1-base","for line charts",l.colorBrand0),color2Light:r.extend("--ftds-chart-2-light","for area color charts",l.colorYellow60),color2Base:r.extend("--ftds-chart-2-base","for line charts",l.colorYellow100),color3Light:r.extend("--ftds-chart-3-light","",l.colorUltramarine40),color3Base:r.extend("--ftds-chart-3-base","",l.colorUltramarine70),color4Light:r.extend("--ftds-chart-4-light","",l.colorCyan50),color4Base:r.extend("--ftds-chart-4-base","",l.colorCyan100),color5Light:r.extend("--ftds-chart-5-light","",l.colorRed40),color5Base:r.extend("--ftds-chart-5-base","",l.colorRed60),color6Light:r.extend("--ftds-chart-6-light","",l.colorGreen40),color6Base:r.extend("--ftds-chart-6-base","",l.colorGreen70),color7Light:r.extend("--ftds-chart-7-light","",l.colorOrange70),color7Base:r.extend("--ftds-chart-7-base","",l.colorOrange100),color8Light:r.extend("--ftds-chart-8-light","",l.colorAvocado70),color8Base:r.extend("--ftds-chart-8-base","",l.colorAvocado200),color9Light:r.extend("--ftds-chart-9-light","",l.colorBrown50),color9Base:r.extend("--ftds-chart-9-base","",l.colorBrown200),color10Light:r.extend("--ftds-chart-10-light","",l.colorGray50),color10Base:r.extend("--ftds-chart-10-base","",l.colorGray80),monochrome10:r.extend("--ftds-chart-monochrome-10","",l.colorBrand10),monochrome20:r.extend("--ftds-chart-monochrome-20","",l.colorBrand20),monochrome30:r.extend("--ftds-chart-monochrome-30","",l.colorBrand40),monochrome40:r.extend("--ftds-chart-monochrome-40","",l.colorBrand60),monochrome50:r.extend("--ftds-chart-monochrome-50","",l.colorBrand0),monochrome60:r.extend("--ftds-chart-monochrome-60","",l.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:r.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",l.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:r.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",l.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:r.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",l.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:r.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",l.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:r.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",l.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:r.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",l.opacity48),scatterplotDatapointInitialHoverBackgroundColor:r.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",l.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:r.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",l.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:r.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",l.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:r.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",l.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:r.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",l.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:r.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",l.colorGray70),scatterplotDatapointHoverHoverRingColor:r.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",l.colorCyan200)};var gg={color1IconColor:r.extend("--ftds-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:r.extend("--ftds-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:r.extend("--ftds-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:r.extend("--ftds-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:r.extend("--ftds-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:r.extend("--ftds-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:r.extend("--ftds-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:r.extend("--ftds-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:r.extend("--ftds-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:r.extend("--ftds-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:r.extend("--ftds-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:r.extend("--ftds-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:r.extend("--ftds-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:r.extend("--ftds-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:r.extend("--ftds-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:r.extend("--ftds-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var Og={borderWidth:r.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:r.extend("--ftds-notice-horizontal-padding","",l.spacing3),verticalPadding:r.extend("--ftds-notice-vertical-padding","",l.spacing2),borderRadius:r.extend("--ftds-notice-border-radius","",l.borderRadiusS),gap:r.extend("--ftds-notice-gap","",l.spacing2),iconSize:r.extend("--ftds-notice-icon-size","",l.iconSize3),infoBackgroundColor:r.extend("--ftds-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:r.extend("--ftds-notice-info-border-color","",d.borderInfoSubtle),infoColor:r.extend("--ftds-notice-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ftds-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:r.extend("--ftds-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:r.extend("--ftds-notice-warning-border-color","",d.borderWarningSubtle),warningColor:r.extend("--ftds-notice-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ftds-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:r.extend("--ftds-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:r.extend("--ftds-notice-error-border-color","",d.borderErrorSubtle),errorColor:r.extend("--ftds-notice-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ftds-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:r.extend("--ftds-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:r.extend("--ftds-notice-success-border-color","",d.borderSuccessSubtle),successColor:r.extend("--ftds-notice-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ftds-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:r.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:r.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:r.extend("--ftds-notice-dense-gap","",l.spacing1),denseIconSize:r.extend("--ftds-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:r.create("--ftds-notice-dense-border-width","","SIZE","0")};var Rg={offHoverStateLayerOpacity:r.extend("--ftds-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:r.extend("--ftds-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:r.extend("--ftds-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:r.extend("--ftds-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:r.extend("--ftds-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:r.extend("--ftds-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ftds-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ftds-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:r.extend("--ftds-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:r.extend("--ftds-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:r.extend("--ftds-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:r.extend("--ftds-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ftds-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:r.extend("--ftds-toggle-on-icon-color","",d.contentActionPrimary),color:r.extend("--ftds-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:r.extend("--ftds-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:r.extend("--ftds-toggle-gap","",l.spacing3)};var $g={iconSize:r.extend("--ftds-notification-icon-size","",l.iconSize4),leftPadding:r.extend("--ftds-notification-left-padding","",l.spacing5),rightPadding:r.extend("--ftds-notification-right-padding","",l.spacing4),verticalPadding:r.extend("--ftds-notification-vertical-padding","",l.spacing3),infoBackgroundColor:r.extend("--ftds-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ftds-notification-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ftds-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ftds-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:r.extend("--ftds-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:r.extend("--ftds-notification-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ftds-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:r.extend("--ftds-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:r.extend("--ftds-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:r.extend("--ftds-notification-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ftds-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:r.extend("--ftds-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:r.extend("--ftds-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:r.extend("--ftds-notification-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ftds-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:r.extend("--ftds-notification-error-border-color","",d.borderErrorSubtle),borderRadius:r.extend("--ftds-notification-border-radius","",l.borderRadiusPill),borderWidth:r.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:r.extend("--ftds-notification-leading-gap","",l.spacing2),trailingGap:r.extend("--ftds-notification-trailing-gap","",l.spacing8)};var Dg={horizontalPadding:r.extend("--ftds-tooltip-horizontal-padding","",l.spacing2),verticalPadding:r.extend("--ftds-tooltip-vertical-padding","",l.spacing2),borderRadius:r.extend("--ftds-tooltip-border-radius","",l.borderRadiusS),color:r.extend("--ftds-tooltip-color","",d.contentGlobalOnColor),backgroundColor:r.extend("--ftds-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:r.extend("--ftds-tooltip-background-opacity","",l.opacity80),shadow:r.extend("--ftds-tooltip-shadow","",l.shadowElevation02),maxWidth:r.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:r.extend("--ftds-tooltip-gap","",l.spacing05)};var Hg={verticalPadding:r.extend("--ftds-reorderable-list-vertical-padding","",l.spacing4),gap:r.extend("--ftds-reorderable-list-gap","",l.spacing1),borderRadius:r.extend("--ftds-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:r.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:r.extend("--ftds-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:r.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:r.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:r.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:r.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:r.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:r.extend("--ftds-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:r.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:r.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:r.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:r.extend("--ftds-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:r.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:r.extend("--ftds-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:r.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:r.extend("--ftds-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:r.extend("--ftds-reorderable-list-left-padding","",l.spacing2),rightPadding:r.extend("--ftds-reorderable-list-right-padding","",l.spacing6),borderColor:r.extend("--ftds-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:r.extend("--ftds-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var jg={menuHorizontalPadding:r.extend("--ftds-date-range-picker-menu-horizontal-padding","",l.spacing4),menuVerticalPadding:r.extend("--ftds-date-range-picker-menu-vertical-padding","",l.spacing4),menuVerticalGap:r.extend("--ftds-date-range-picker-menu-vertical-gap","",l.spacing4),menuButtonsVerticalGap:r.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",l.spacing2)};var br;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(br||(br={}));var Tt;(function(t){t.large="large",t.medium="medium",t.small="small"})(Tt||(Tt={}));var mo=f(k());function al(t,e){let o=Kr[t];return mo.css`
|
|
25
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=bt.S:this.size<976?this.category=bt.M:this.size<1024?this.category=bt.L:this.size<1440?this.category=bt.XL:this.category=bt.XXL,this.dispatchEvent(new Dn(this.size,this.category)))},this.debounceTimeout)}};st.elementDefinitions={};st.styles=Gs;jo([(0,Hr.property)({type:Number})],st.prototype,"debounceTimeout",void 0);jo([(0,Hr.property)({type:Boolean})],st.prototype,"local",void 0);jo([(0,Hr.property)({type:Number,reflect:!0})],st.prototype,"size",void 0);jo([(0,Hr.property)({type:String,reflect:!0})],st.prototype,"category",void 0);jo([(0,Hr.query)(".ft-size-watcher--watcher")],st.prototype,"watcher",void 0);(0,Ks.customElement)("ft-size-watcher")(st);var xa=f(w());var Vn=globalThis,ki=Vn.trustedTypes,Zs=ki?ki.createPolicy("lit-html",{createHTML:t=>t}):void 0,el="$lit$",yr=`lit$${Math.random().toFixed(9).slice(2)}$`,tl="?"+yr,ef=`<${tl}>`,Gr=document,Ti=()=>Gr.createComment(""),Zo=t=>t===null||typeof t!="object"&&typeof t!="function",Gn=Array.isArray,tf=t=>Gn(t)||typeof t?.[Symbol.iterator]=="function",Fn=`[
|
|
26
|
+
\f\r]`,Ko=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,qs=/-->/g,Ys=/>/g,Wr=RegExp(`>|${Fn}(?:([^\\s"'>=/]+)(${Fn}*=${Fn}*(?:[^
|
|
27
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xs=/'/g,Qs=/"/g,rl=/^(?:script|style|textarea|title)$/i,jn=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ol=jn(1),il=jn(2),nl=jn(3),qo=Symbol.for("lit-noChange"),we=Symbol.for("lit-nothing"),Js=new WeakMap,Vr=Gr.createTreeWalker(Gr,129);function al(t,e){if(!Gn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zs!==void 0?Zs.createHTML(e):e}var rf=(t,e)=>{let r=t.length-1,i=[],n,a=e===2?"<svg>":e===3?"<math>":"",s=Ko;for(let c=0;c<r;c++){let p=t[c],u,m,y=-1,b=0;for(;b<p.length&&(s.lastIndex=b,m=s.exec(p),m!==null);)b=s.lastIndex,s===Ko?m[1]==="!--"?s=qs:m[1]!==void 0?s=Ys:m[2]!==void 0?(rl.test(m[2])&&(n=RegExp("</"+m[2],"g")),s=Wr):m[3]!==void 0&&(s=Wr):s===Wr?m[0]===">"?(s=n??Ko,y=-1):m[1]===void 0?y=-2:(y=s.lastIndex-m[2].length,u=m[1],s=m[3]===void 0?Wr:m[3]==='"'?Qs:Xs):s===Qs||s===Xs?s=Wr:s===qs||s===Ys?s=Ko:(s=Wr,n=void 0);let O=s===Wr&&t[c+1].startsWith("/>")?" ":"";a+=s===Ko?p+ef:y>=0?(i.push(u),p.slice(0,y)+el+p.slice(y)+yr+O):p+yr+(y===-2?c:O)}return[al(t,a+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Yo=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let a=0,s=0,c=e.length-1,p=this.parts,[u,m]=rf(e,r);if(this.el=t.createElement(u,i),Vr.currentNode=this.el.content,r===2||r===3){let y=this.el.content.firstChild;y.replaceWith(...y.childNodes)}for(;(n=Vr.nextNode())!==null&&p.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let y of n.getAttributeNames())if(y.endsWith(el)){let b=m[s++],O=n.getAttribute(y).split(yr),v=/([.?@])?(.*)/.exec(b);p.push({type:1,index:a,name:v[2],strings:O,ctor:v[1]==="."?zn:v[1]==="?"?Un:v[1]==="@"?Hn:fo}),n.removeAttribute(y)}else y.startsWith(yr)&&(p.push({type:6,index:a}),n.removeAttribute(y));if(rl.test(n.tagName)){let y=n.textContent.split(yr),b=y.length-1;if(b>0){n.textContent=ki?ki.emptyScript:"";for(let O=0;O<b;O++)n.append(y[O],Ti()),Vr.nextNode(),p.push({type:2,index:++a});n.append(y[b],Ti())}}}else if(n.nodeType===8)if(n.data===tl)p.push({type:2,index:a});else{let y=-1;for(;(y=n.data.indexOf(yr,y+1))!==-1;)p.push({type:7,index:a}),y+=yr.length-1}a++}}static createElement(e,r){let i=Gr.createElement("template");return i.innerHTML=e,i}};function uo(t,e,r=t,i){if(e===qo)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,a=Zo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=uo(t,n._$AS(t,e.values),n,i)),e}var Mn=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:i}=this._$AD,n=(e?.creationScope??Gr).importNode(r,!0);Vr.currentNode=n;let a=Vr.nextNode(),s=0,c=0,p=i[0];for(;p!==void 0;){if(s===p.index){let u;p.type===2?u=new $i(a,a.nextSibling,this,e):p.type===1?u=new p.ctor(a,p.name,p.strings,this,e):p.type===6&&(u=new Wn(a,this,e)),this._$AV.push(u),p=i[++c]}s!==p?.index&&(a=Vr.nextNode(),s++)}return Vr.currentNode=Gr,n}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},$i=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=we,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.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=uo(this,e,r),Zo(e)?e===we||e==null||e===""?(this._$AH!==we&&this._$AR(),this._$AH=we):e!==this._$AH&&e!==qo&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):tf(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==we&&Zo(this._$AH)?this._$AA.nextSibling.data=e:this.T(Gr.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Yo.createElement(al(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let a=new Mn(n,this),s=a.u(this.options);a.p(r),this.T(s),this._$AH=a}}_$AC(e){let r=Js.get(e.strings);return r===void 0&&Js.set(e.strings,r=new Yo(e)),r}k(e){Gn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let a of e)n===r.length?r.push(i=new t(this.O(Ti()),this.O(Ti()),this,this.options)):i=r[n],i._$AI(a),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},fo=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,a){this.type=1,this._$AH=we,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=we}_$AI(e,r=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=uo(this,e,r,0),s=!Zo(e)||e!==this._$AH&&e!==qo,s&&(this._$AH=e);else{let c=e,p,u;for(e=a[0],p=0;p<a.length-1;p++)u=uo(this,c[i+p],r,p),u===qo&&(u=this._$AH[p]),s||=!Zo(u)||u!==this._$AH[p],u===we?e=we:e!==we&&(e+=(u??"")+a[p+1]),this._$AH[p]=u}s&&!n&&this.j(e)}j(e){e===we?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},zn=class extends fo{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===we?void 0:e}},Un=class extends fo{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==we)}},Hn=class extends fo{constructor(e,r,i,n,a){super(e,r,i,n,a),this.type=5}_$AI(e,r=this){if((e=uo(this,e,r,0)??we)===qo)return;let i=this._$AH,n=e===we&&i!==we||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==we&&(i===we||n);n&&this.element.removeEventListener(this.name,this,i),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)}},Wn=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){uo(this,e)}};var of=Vn.litHtmlPolyfillSupport;of?.(Yo,$i),(Vn.litHtmlVersions??=[]).push("3.3.0");var ll=Symbol.for(""),nf=t=>{if(t?.r===ll)return t?._$litStatic$},ho=t=>({_$litStatic$:t,r:ll});var sl=new Map,Kn=t=>(e,...r)=>{let i=r.length,n,a,s=[],c=[],p,u=0,m=!1;for(;u<i;){for(p=e[u];u<i&&(a=r[u],(n=nf(a))!==void 0);)p+=n+e[++u],m=!0;u!==i&&c.push(a),s.push(p),u++}if(u===i&&s.push(e[i]),m){let y=s.join("$$lit$$");(e=sl.get(y))===void 0&&(s.raw=s,sl.set(y,e=s)),r=c}return t(e,...r)},yo=Kn(ol),Wh=Kn(il),Vh=Kn(nl);var ga=f(ee()),Cl=f(w());var Pe;(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"})(Pe||(Pe={}));var xt=f(k()),R=f(w());var ar=f(k(),1),mr=t=>typeof t=="string"?(0,ar.unsafeCSS)(t):t,o=class{static create(e,r,i,n){let a=c=>mr(c??n),s=ar.css`var(${mr(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>cl(s,c??a(n)),s.get=c=>ar.css`var(${mr(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,r,i,n){let a=c=>i.get(c??n),s=ar.css`var(${mr(e)}, ${a(n)})`;return s.name=e,s.description=r,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.set=c=>cl(s,c??a(n)),s.get=c=>ar.css`var(${mr(e)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,r){let i=a=>e.defaultCssValue(a),n=ar.css`var(${mr(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=r,n.defaultCssValue=i,n.set=a=>e.set(a),n.get=a=>ar.css`var(${mr(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.breadcrumb(),n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function cl(t,e){return mr(`${t.name}: ${e}`)}var l={colorWhite:o.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:o.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:o.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:o.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:o.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:o.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:o.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:o.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:o.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:o.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:o.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:o.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:o.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:o.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:o.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ftds-opacity-0","","NUMBER","0"),opacity8:o.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:o.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:o.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:o.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:o.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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("--ftds-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)")},Zn={fontFamily:o.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:o.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-display-text-case","","UNKNOWN","none")},qn={fontFamily:o.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:o.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Yn={fontFamily:o.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:o.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Xn={fontFamily:o.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:o.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:o.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Qn={fontFamily:o.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Jn={fontFamily:o.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},ea={fontFamily:o.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:o.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},ta={fontFamily:o.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:o.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},jr={fontFamily:o.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},af={fontFamily:o.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:o.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:o.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},ra={fontFamily:o.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:o.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:o.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:o.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},oa={fontFamily:o.create("--ftds-typography-label-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-1-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-medium-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-medium-text-decoration","","UNKNOWN","none")},ia={fontFamily:o.create("--ftds-typography-label-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-1-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-semibold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-semibold-text-decoration","","UNKNOWN","none")},na={fontFamily:o.create("--ftds-typography-label-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-1-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-1-bold-font-size","","SIZE","0.875rem"),letterSpacing:o.create("--ftds-typography-label-1-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-1-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-1-bold-text-decoration","","UNKNOWN","none")},aa={fontFamily:o.create("--ftds-typography-label-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-label-2-medium-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-medium-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-medium-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-medium-text-decoration","","UNKNOWN","none")},sa={fontFamily:o.create("--ftds-typography-label-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-label-2-semibold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-semibold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-semibold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-semibold-text-decoration","","UNKNOWN","none")},la={fontFamily:o.create("--ftds-typography-label-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-label-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-label-2-bold-line-height","","SIZE","110%"),fontSize:o.create("--ftds-typography-label-2-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-label-2-bold-letter-spacing","","SIZE","0.04em"),textCase:o.create("--ftds-typography-label-2-bold-text-case","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ftds-typography-label-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-label-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-label-2-bold-text-decoration","","UNKNOWN","none")},ca={fontFamily:o.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},da={fontFamily:o.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},pa={fontFamily:o.create("--ftds-typography-caption-1-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-1-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-1-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-1-bold-font-size","","SIZE","0.75rem"),letterSpacing:o.create("--ftds-typography-caption-1-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-1-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-1-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-1-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-1-bold-text-decoration","","UNKNOWN","none")},gr={fontFamily:o.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},ua={fontFamily:o.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},fa={fontFamily:o.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:o.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},ha={fontFamily:o.create("--ftds-typography-caption-3-medium-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-medium-font-weight","","UNKNOWN","500"),lineHeight:o.create("--ftds-typography-caption-3-medium-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-medium-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-medium-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-medium-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-medium-text-decoration","","UNKNOWN","none")},ya={fontFamily:o.create("--ftds-typography-caption-3-semibold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-semibold-font-weight","","UNKNOWN","600"),lineHeight:o.create("--ftds-typography-caption-3-semibold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-semibold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-semibold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-semibold-text-decoration","","UNKNOWN","none")},ma={fontFamily:o.create("--ftds-typography-caption-3-bold-font-family","","UNKNOWN","Inter"),fontWeight:o.create("--ftds-typography-caption-3-bold-font-weight","","UNKNOWN","700"),lineHeight:o.create("--ftds-typography-caption-3-bold-line-height","","SIZE","1.3"),fontSize:o.create("--ftds-typography-caption-3-bold-font-size","","SIZE","0.625rem"),letterSpacing:o.create("--ftds-typography-caption-3-bold-letter-spacing","","SIZE","normal"),textCase:o.create("--ftds-typography-caption-3-bold-text-case","","UNKNOWN","none"),paragraphSpacing:o.create("--ftds-typography-caption-3-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ftds-typography-caption-3-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:o.create("--ftds-typography-caption-3-bold-text-decoration","","UNKNOWN","none")},Kr={display:Zn,"title-1":qn,"title-2":Yn,"title-3":Xn,"body-1-regular":Qn,"body-1-medium":Jn,"body-1-semibold":ea,"body-2-regular":ta,"body-2-medium":jr,"body-2-medium-underline":af,"body-2-semibold":ra,"label-1-medium":oa,"label-1-semibold":ia,"label-1-bold":na,"label-2-medium":aa,"label-2-semibold":sa,"label-2-bold":la,"caption-1-medium":ca,"caption-1-semibold":da,"caption-1-bold":pa,"caption-2-medium":gr,"caption-2-semibold":ua,"caption-2-bold":fa,"caption-3-medium":ha,"caption-3-semibold":ya,"caption-3-bold":ma};var d={backgroundActionPrimary:o.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:o.extend("--ftds-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:o.extend("--ftds-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:o.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:o.extend("--ftds-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:o.extend("--ftds-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:o.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:o.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:o.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:o.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:o.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:o.extend("--ftds-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:o.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:o.extend("--ftds-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:o.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:o.extend("--ftds-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:o.extend("--ftds-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:o.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
28
|
+
Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:o.extend("--ftds-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:o.extend("--ftds-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:o.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:o.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:o.extend("--ftds-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:o.extend("--ftds-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:o.extend("--ftds-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:o.extend("--ftds-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:o.extend("--ftds-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:o.extend("--ftds-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:o.extend("--ftds-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:o.extend("--ftds-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:o.extend("--ftds-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:o.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:o.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var h={largeHeight:o.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ftds-button-large-horizontal-padding","",l.spacing4),largeGap:o.extend("--ftds-button-large-gap","",l.spacing2),largeBorderRadius:o.extend("--ftds-button-large-border-radius","",l.borderRadiusS),largeIconSize:o.extend("--ftds-button-large-icon-size","",l.iconSize3),largeBorderWidth:o.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ftds-button-medium-horizontal-padding","",l.spacing3),mediumGap:o.extend("--ftds-button-medium-gap","",l.spacing2),mediumBorderRadius:o.extend("--ftds-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:o.extend("--ftds-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:o.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-button-small-horizontal-padding","",l.spacing2),smallGap:o.extend("--ftds-button-small-gap","",l.spacing1),smallBorderRadius:o.extend("--ftds-button-small-border-radius","",l.borderRadiusS),smallIconSize:o.extend("--ftds-button-small-icon-size","",l.iconSize1),smallBorderWidth:o.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ftds-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:o.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ftds-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ftds-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:o.extend("--ftds-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ftds-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ftds-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ftds-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ftds-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ftds-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ftds-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:o.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ftds-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ftds-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ftds-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ftds-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:o.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ftds-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ftds-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ftds-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ftds-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:o.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ftds-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ftds-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ftds-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:o.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ftds-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ftds-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ftds-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ftds-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:o.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ftds-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ftds-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ftds-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:o.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ftds-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:o.extend("--ftds-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ftds-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ftds-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:o.extend("--ftds-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:o.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ftds-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ftds-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ftds-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ftds-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ftds-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ftds-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:o.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ftds-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:o.extend("--ftds-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ftds-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ftds-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ftds-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ftds-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:o.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ftds-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:o.extend("--ftds-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ftds-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ftds-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ftds-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:o.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ftds-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:o.extend("--ftds-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ftds-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ftds-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ftds-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ftds-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:o.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ftds-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:o.extend("--ftds-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ftds-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ftds-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var ly={loadMoreIconSize:o.extend("--ftds-tree-list-load-more-icon-size","",l.iconSize2),loadMorePaddingLeft:o.extend("--ftds-tree-list-load-more-padding-left","",l.spacing6),loadMoreUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-unselected-default-border-color","",d.borderGlobalSubtle),loadMoreIconColor:o.extend("--ftds-tree-list-load-more-icon-color","",d.contentActionPrimary),loadMoreLabelColor:o.extend("--ftds-tree-list-load-more-label-color","",d.contentActionPrimary),loadMoreHoverBorderColor:o.extend("--ftds-tree-list-load-more-hover-border-color","",l.colorBrand20),loadMoreHoverBackgroundColor:o.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:o.extend("--ftds-tree-list-load-more-active-border-color","",l.colorBrand20),loadMoreActiveBackgroundColor:o.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:o.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:o.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),loadMoreLabelMarginLeft:o.extend("--ftds-tree-list-load-more-label-margin-left","",l.spacing1),nodeIconSize:o.extend("--ftds-tree-list-node-icon-size","",l.iconSize2),nodeHeight:o.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:o.extend("--ftds-tree-list-node-parent-label-margin-left","",l.spacing2),nodeParentLabelMarginRight:o.extend("--ftds-tree-list-node-parent-label-margin-right","",l.spacing2),nodeRootPaddingLeft:o.extend("--ftds-tree-list-node-root-padding-left","",l.spacing3),nodeChildPaddingLeft:o.extend("--ftds-tree-list-node-child-padding-left","",l.spacing5),nodeLeafPaddingLeft:o.extend("--ftds-tree-list-node-leaf-padding-left","",l.spacing6),nodeUnselectedDefaultBorderColor:o.extend("--ftds-tree-list-node-unselected-default-border-color","",d.borderGlobalSubtle),nodeUnselectedIconColor:o.extend("--ftds-tree-list-node-unselected-icon-color","",d.contentGlobalSecondary),nodeUnselectedLabelColor:o.extend("--ftds-tree-list-node-unselected-label-color","",d.contentGlobalSecondary),nodeUnselectedCounterColor:o.extend("--ftds-tree-list-node-unselected-counter-color","",d.contentGlobalSecondary),nodeHoverBorderColor:o.extend("--ftds-tree-list-node-hover-border-color","",d.borderActionPrimary),nodeFocusFocusRingColor:o.extend("--ftds-tree-list-node-focus-focus-ring-color","",d.borderActionFocusRing),nodeFocusOutlineWidth:o.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-selected-default-border-color","",d.borderGlobalPrimary),nodeSelectedIconColor:o.extend("--ftds-tree-list-node-selected-icon-color","",d.contentGlobalSecondary),nodeSelectedLabelColor:o.extend("--ftds-tree-list-node-selected-label-color","",d.contentGlobalPrimary),nodeSelectedCounterColor:o.extend("--ftds-tree-list-node-selected-counter-color","",d.contentGlobalSecondary),nodeSelectedBackgroundColor:o.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:o.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",d.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:o.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:o.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:o.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",d.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:o.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:o.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:o.extend("--ftds-tree-list-header-section-padding-left","",l.spacing3),headerSectionPaddingRight:o.extend("--ftds-tree-list-header-section-padding-right","",l.spacing3),headerSectionHorizontalGap:o.extend("--ftds-tree-list-header-section-horizontal-gap","",l.spacing2),headerSectionMarginBottom:o.extend("--ftds-tree-list-header-section-margin-bottom","",l.spacing2),headerSectionColor:o.extend("--ftds-tree-list-header-section-color","",d.contentGlobalPrimary),headerSectionCounterColor:o.extend("--ftds-tree-list-header-section-counter-color","",d.contentGlobalSecondary),listContainerBorderWidth:o.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:o.extend("--ftds-tree-list-list-container-background-color","",d.backgroundGlobalSurface),listContainerBorderColor:o.extend("--ftds-tree-list-list-container-border-color","",d.borderGlobalSubtle),emptyStateIllustrationWidth:o.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:o.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:o.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",l.spacing10),emptyStateContainerPaddingTop:o.extend("--ftds-tree-list-empty-state-container-padding-top","",l.spacing10),emptyStateContainerPaddingBottom:o.extend("--ftds-tree-list-empty-state-container-padding-bottom","",l.spacing10),emptyStateTitleMarginBottom:o.extend("--ftds-tree-list-empty-state-title-margin-bottom","",l.spacing2),emptyStateTitleLabelColor:o.extend("--ftds-tree-list-empty-state-title-label-color","",d.contentGlobalSecondary),emptyStateDescriptionLabelColor:o.extend("--ftds-tree-list-empty-state-description-label-color","",d.contentGlobalSecondary)};var fy={iconSize:o.extend("--ftds-checkbox-icon-size","",l.iconSize2),boxSize:o.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:o.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:o.create("--ftds-checkbox-border-radius","","SIZE","1px"),color:o.extend("--ftds-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ftds-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:o.extend("--ftds-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:o.extend("--ftds-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:o.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:o.extend("--ftds-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:o.extend("--ftds-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:o.extend("--ftds-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:o.extend("--ftds-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),borderWidth:o.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:o.extend("--ftds-checkbox-horizontal-gap","",l.spacing3),leftPadding:o.extend("--ftds-checkbox-left-padding","",l.spacing2)};var by={circleSize:o.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:o.create("--ftds-radio-border-width","","SIZE","2px"),color:o.extend("--ftds-radio-color","",d.contentGlobalPrimary),selectedRadioColor:o.extend("--ftds-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:o.extend("--ftds-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ftds-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:o.extend("--ftds-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:o.extend("--ftds-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:o.extend("--ftds-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:o.extend("--ftds-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:o.extend("--ftds-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ftds-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ftds-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ftds-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:o.extend("--ftds-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ftds-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:o.extend("--ftds-radio-vertical-gap","",l.spacing3),horizontalGap:o.extend("--ftds-radio-horizontal-gap","",l.spacing3)};var Cy={headerRowBorderWidth:o.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:o.extend("--ftds-table-header-row-background-color","",d.backgroundGlobalOnSurfaceDark),headerRowBorderColor:o.extend("--ftds-table-header-row-border-color","",d.borderGlobalPrimary),headerRowColor:o.extend("--ftds-table-header-row-color","",d.contentGlobalPrimary),dataRowBorderWidth:o.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:o.extend("--ftds-table-data-row-background-color","",d.backgroundGlobalOnSurface),dataRowBorderColor:o.extend("--ftds-table-data-row-border-color","",d.borderGlobalSubtle),dataRowColor:o.extend("--ftds-table-data-row-color","",d.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:o.extend("--ftds-table-data-row-default-hover-background-color","",l.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",l.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-default-background-color","",l.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:o.extend("--ftds-table-data-row-selectable-selected-default-border-color","",l.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:o.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",l.colorBrand20),dataRowSelectableSelectedHoverBorderColor:o.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",l.colorBrand30),dataRowSelectableSelectedColor:o.extend("--ftds-table-data-row-selectable-selected-color","",d.contentActionPrimary),dataRowClickableHoverBackgroundColor:o.extend("--ftds-table-data-row-clickable-hover-background-color","",l.colorGray30),dataRowClickableFocusBorderColor:o.extend("--ftds-table-data-row-clickable-focus-border-color","",d.borderActionFocusRing),dataRowClickableFocusBackgroundColor:o.extend("--ftds-table-data-row-clickable-focus-background-color","",l.colorGray30),dataRowClickableActiveBackgroundColor:o.extend("--ftds-table-data-row-clickable-active-background-color","",l.colorGray40),headerCellHorizontalGap:o.extend("--ftds-table-header-cell-horizontal-gap","",l.spacing1),headerCellVerticalPadding:o.extend("--ftds-table-header-cell-vertical-padding","",l.spacing2),headerCellHorizontalPadding:o.extend("--ftds-table-header-cell-horizontal-padding","",l.spacing3),dataCellVerticalPadding:o.extend("--ftds-table-data-cell-vertical-padding","",l.spacing2),dataCellHorizontalPadding:o.extend("--ftds-table-data-cell-horizontal-padding","",l.spacing3),dataCellVerticalGap:o.extend("--ftds-table-data-cell-vertical-gap","",l.spacing1)};var Ly={neutralOffHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:o.extend("--ftds-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ftds-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:o.extend("--ftds-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ftds-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:o.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:o.extend("--ftds-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ftds-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:o.extend("--ftds-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:o.extend("--ftds-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ftds-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:o.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:o.extend("--ftds-chip-choice-large-gap","",l.spacing1),largeBorderRadius:o.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:o.extend("--ftds-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:o.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-choice-medium-icon-size","",l.iconSize2)};var B={largeMinHeight:o.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ftds-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:o.extend("--ftds-chip-large-button-right-padding","",l.spacing1),largeGap:o.extend("--ftds-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:o.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ftds-chip-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ftds-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:o.extend("--ftds-chip-medium-button-right-padding","",l.spacing05),mediumGap:o.extend("--ftds-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:o.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ftds-chip-medium-icon-size","",l.iconSize2),smallMinHeight:o.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ftds-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:o.extend("--ftds-chip-small-button-right-padding","",l.spacing05),smallGap:o.extend("--ftds-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:o.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ftds-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:o.extend("--ftds-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:o.extend("--ftds-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:o.extend("--ftds-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:o.extend("--ftds-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:o.extend("--ftds-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-chip-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-chip-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-chip-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-chip-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-chip-error-border-color","",d.borderErrorSubtle)};var Dy={brandHoverOpacity:o.extend("--ftds-link-brand-hover-opacity","",l.opacity80),brandHoverColor:o.extend("--ftds-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ftds-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:o.extend("--ftds-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:o.extend("--ftds-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:o.extend("--ftds-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:o.extend("--ftds-link-info-hover-opacity","",l.opacity80),infoHoverColor:o.extend("--ftds-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ftds-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:o.extend("--ftds-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:o.extend("--ftds-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:o.extend("--ftds-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ftds-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:o.extend("--ftds-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:o.extend("--ftds-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:o.extend("--ftds-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:o.extend("--ftds-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:o.extend("--ftds-link-neutral-visited-color","",l.colorBrand100)};var Hy={iconSize:o.extend("--ftds-banner-icon-size","",l.iconSize5),borderWidth:o.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ftds-banner-left-padding","",l.spacing6),rightPadding:o.extend("--ftds-banner-right-padding","",l.spacing6),verticalPadding:o.extend("--ftds-banner-vertical-padding","",l.spacing6),horizontalSideGap:o.extend("--ftds-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:o.extend("--ftds-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:o.extend("--ftds-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:o.extend("--ftds-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:o.extend("--ftds-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-banner-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-banner-info-border-color","",d.borderInfoSubtle)};var Ky={horizontalPadding:o.extend("--ftds-badge-horizontal-padding","",l.spacing1),verticalPadding:o.extend("--ftds-badge-vertical-padding","",l.spacing1),borderRadius:o.extend("--ftds-badge-border-radius","",l.borderRadiusPill),color:o.extend("--ftds-badge-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-badge-background-color","",d.contentActionPrimary)};var Qy={horizontalGap:o.extend("--ftds-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:o.extend("--ftds-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:o.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:o.extend("--ftds-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var om={parentHorizontalPadding:o.extend("--ftds-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:o.extend("--ftds-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:o.extend("--ftds-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:o.extend("--ftds-page-header-parent-help-left-margin","",l.spacing1),parentTitleColor:o.extend("--ftds-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:o.extend("--ftds-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:o.extend("--ftds-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:o.extend("--ftds-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:o.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:o.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:o.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:o.extend("--ftds-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:o.extend("--ftds-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:o.extend("--ftds-page-header-child-top-padding","",l.spacing2),childBottomPadding:o.extend("--ftds-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:o.extend("--ftds-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:o.extend("--ftds-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:o.extend("--ftds-page-header-child-vertical-gap","",l.spacing2),childMinHeight:o.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:o.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:o.extend("--ftds-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:o.extend("--ftds-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:o.extend("--ftds-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:o.extend("--ftds-page-header-background-color","",l.colorWhite),bottomBorderColor:o.extend("--ftds-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:o.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var lm={horizontalPadding:o.extend("--ftds-page-footer-horizontal-padding","",l.spacing6),verticalPadding:o.extend("--ftds-page-footer-vertical-padding","",l.spacing2),verticalGap:o.extend("--ftds-page-footer-vertical-gap","",l.spacing2),minHeight:o.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:o.extend("--ftds-page-footer-background-color","",l.colorWhite),topBorderColor:o.extend("--ftds-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:o.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:o.extend("--ftds-page-footer-buttons-group-gap","",l.spacing4)};var um={contentHorizontalPadding:o.extend("--ftds-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:o.extend("--ftds-page-layout-content-vertical-padding","",l.spacing6)};var gm={smallContainerTargetWidth:o.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ftds-modal-small-container-margin","",l.spacing6),mediumContainerTargetWidth:o.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ftds-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:o.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ftds-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:o.extend("--ftds-modal-overlay-background-color","",l.colorGray700),overlayOpacity:o.extend("--ftds-modal-overlay-opacity","",l.opacity40),shadow:o.extend("--ftds-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:o.extend("--ftds-modal-body-background-color","",l.colorWhite),bodyColor:o.extend("--ftds-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ftds-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:o.extend("--ftds-modal-body-vertical-gap","",l.spacing6),headerBackgroundColor:o.extend("--ftds-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-modal-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ftds-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:o.extend("--ftds-modal-header-vertical-padding","",l.spacing1),headerRightPadding:o.extend("--ftds-modal-header-right-padding","",l.spacing1),headerLeftPadding:o.extend("--ftds-modal-header-left-padding","",l.spacing6),headerGap:o.extend("--ftds-modal-header-gap","",l.spacing2),headerBorderBottomWidth:o.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ftds-modal-border-radius","",l.borderRadiusM)};var Om={overlayOpacity:o.extend("--ftds-drawer-overlay-opacity","",l.opacity40),shadow:o.extend("--ftds-drawer-shadow","",l.shadowElevation03),bodyColor:o.extend("--ftds-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ftds-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ftds-drawer-body-vertical-padding","",l.spacing6),bodyGap:o.extend("--ftds-drawer-body-gap","",l.spacing6),bodyBackgroundColor:o.extend("--ftds-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:o.extend("--ftds-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ftds-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:o.extend("--ftds-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ftds-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:o.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ftds-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:o.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ftds-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:o.extend("--ftds-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ftds-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:o.extend("--ftds-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ftds-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:o.extend("--ftds-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:o.extend("--ftds-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:o.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ftds-drawer-overlay-background-color","",l.colorGray700)};var Rm={offBorderBottomWidth:o.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ftds-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:o.extend("--ftds-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:o.extend("--ftds-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:o.extend("--ftds-tabs-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ftds-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:o.extend("--ftds-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ftds-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:o.extend("--ftds-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:o.extend("--ftds-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:o.extend("--ftds-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:o.extend("--ftds-tabs-horizontal-gap","",l.spacing1),verticalGap:o.extend("--ftds-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:o.extend("--ftds-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:o.extend("--ftds-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:o.extend("--ftds-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ftds-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ftds-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:o.extend("--ftds-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:o.extend("--ftds-tabs-alert-top-padding","",l.spacing1),alertRightPadding:o.extend("--ftds-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:o.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var $m={largeFieldHorizontalPadding:o.extend("--ftds-text-input-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:o.extend("--ftds-text-input-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:o.extend("--ftds-text-input-large-field-vertical-gap","",l.spacing05),largeFieldHeight:o.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-text-input-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-text-input-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-text-input-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:o.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-text-input-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:o.extend("--ftds-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ftds-text-input-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ftds-text-input-border-radius","",l.borderRadiusS),backgroundColor:o.extend("--ftds-text-input-background-color","",l.colorWhite),contentValueColor:o.extend("--ftds-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:o.extend("--ftds-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderColor:o.extend("--ftds-text-input-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-text-input-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-text-input-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-input-disabled-component-opacity","",l.opacity40)};var Dm={backgroundColor:o.extend("--ftds-text-area-background-color","",l.colorWhite),contentValueColor:o.extend("--ftds-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:o.extend("--ftds-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:o.extend("--ftds-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:o.extend("--ftds-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:o.extend("--ftds-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ftds-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ftds-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:o.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ftds-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ftds-text-area-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ftds-text-area-border-radius","",l.borderRadiusS)};var Hm={height:o.create("--ftds-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ftds-floating-menu-horizontal-padding","",l.spacing4),offIconColor:o.extend("--ftds-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:o.extend("--ftds-floating-menu-off-color","",d.contentGlobalPrimary),onColor:o.extend("--ftds-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:o.extend("--ftds-floating-menu-gap","",l.spacing3),focusFocusRingColor:o.extend("--ftds-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ftds-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:o.extend("--ftds-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:o.extend("--ftds-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ftds-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:o.extend("--ftds-floating-menu-icon-size","",l.iconSize3),backgroundColor:o.extend("--ftds-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:o.extend("--ftds-floating-menu-shadow","",l.shadowElevation02)};var Km={largeFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-large-field-horizontal-padding","",l.spacing4),largeFieldHorizontalGap:o.extend("--ftds-combobox-single-select-large-field-horizontal-gap","",l.spacing3),largeFieldVerticalGap:o.extend("--ftds-combobox-single-select-large-field-vertical-gap","",l.spacing05),largeFieldHeight:o.create("--ftds-combobox-single-select-large-field-height","","SIZE","50px"),largeFieldIconSize:o.extend("--ftds-combobox-single-select-large-field-icon-size","",l.iconSize3),mediumFieldHorizontalPadding:o.extend("--ftds-combobox-single-select-medium-field-horizontal-padding","",l.spacing4),mediumFieldHorizontalGap:o.extend("--ftds-combobox-single-select-medium-field-horizontal-gap","",l.spacing3),mediumFieldVerticalGap:o.create("--ftds-combobox-single-select-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:o.create("--ftds-combobox-single-select-medium-field-height","","SIZE","40px"),mediumFieldIconSize:o.extend("--ftds-combobox-single-select-medium-field-icon-size","",l.iconSize3),helperHorizontalPadding:o.extend("--ftds-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ftds-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ftds-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:o.extend("--ftds-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:o.extend("--ftds-combobox-single-select-border-radius","",l.borderRadiusS),backgroundColor:o.extend("--ftds-combobox-single-select-background-color","",l.colorWhite),labelColor:o.extend("--ftds-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:o.extend("--ftds-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:o.extend("--ftds-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ftds-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ftds-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:o.create("--ftds-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:o.create("--ftds-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:o.create("--ftds-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-single-select-disabled-component-opacity","",l.opacity40)};var Qm={backgroundColor:o.extend("--ftds-combobox-multi-select-background-color","",l.colorWhite),labelColor:o.extend("--ftds-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:o.extend("--ftds-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:o.extend("--ftds-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:o.extend("--ftds-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:o.create("--ftds-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ftds-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:o.extend("--ftds-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:o.extend("--ftds-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:o.create("--ftds-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ftds-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:o.extend("--ftds-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:o.extend("--ftds-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:o.create("--ftds-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:o.create("--ftds-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ftds-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ftds-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:o.extend("--ftds-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ftds-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ftds-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ftds-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:o.extend("--ftds-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ftds-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ftds-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:o.extend("--ftds-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:o.create("--ftds-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ftds-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:o.extend("--ftds-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:o.extend("--ftds-combobox-multi-select-border-radius","",l.borderRadiusS)};var og={backgroundColor:o.extend("--ftds-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ftds-popover-horizontal-padding","",l.spacing6),verticalPadding:o.extend("--ftds-popover-vertical-padding","",l.spacing6),titleColor:o.extend("--ftds-popover-title-color","",d.contentGlobalPrimary),bodyColor:o.extend("--ftds-popover-body-color","",d.contentGlobalSecondary),gap:o.extend("--ftds-popover-gap","",l.spacing2),borderRadius:o.extend("--ftds-popover-border-radius","",l.borderRadiusM),shadow:o.extend("--ftds-popover-shadow","",l.shadowElevation02),maxWidth:o.create("--ftds-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:o.extend("--ftds-popover-content-section-vertical-gap","",l.spacing2),multiSectionVerticalGap:o.extend("--ftds-popover-multi-section-vertical-gap","",l.spacing6)};var lg={hoverStateLayerOpacity:o.extend("--ftds-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:o.extend("--ftds-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:o.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ftds-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ftds-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ftds-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:o.extend("--ftds-collapsible-horizontal-padding","",l.spacing4),verticalPadding:o.extend("--ftds-collapsible-vertical-padding","",l.spacing3),color:o.extend("--ftds-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:o.extend("--ftds-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:o.extend("--ftds-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:o.extend("--ftds-collapsible-border-color","",d.borderGlobalSubtle),iconSize:o.extend("--ftds-collapsible-icon-size","",l.iconSize3)};var fg={groupHorizontalPadding:o.extend("--ftds-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:o.extend("--ftds-switch-group-vertical-padding","",l.spacing1),groupGap:o.extend("--ftds-switch-group-gap","",l.spacing1),groupBackgroundColor:o.extend("--ftds-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:o.extend("--ftds-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:o.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ftds-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:o.extend("--ftds-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:o.extend("--ftds-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:o.extend("--ftds-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:o.extend("--ftds-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:o.extend("--ftds-switch-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ftds-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ftds-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:o.extend("--ftds-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:o.extend("--ftds-switch-on-disabled-component-opacity","",l.opacity40),onColor:o.extend("--ftds-switch-on-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:o.extend("--ftds-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:o.extend("--ftds-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:o.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ftds-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:o.extend("--ftds-switch-option-border-radius","",l.borderRadiusS)};var gg={color1Light:o.extend("--ftds-chart-1-light","for area color charts",l.colorBrand40),color1Base:o.extend("--ftds-chart-1-base","for line charts",l.colorBrand0),color2Light:o.extend("--ftds-chart-2-light","for area color charts",l.colorYellow60),color2Base:o.extend("--ftds-chart-2-base","for line charts",l.colorYellow100),color3Light:o.extend("--ftds-chart-3-light","",l.colorUltramarine40),color3Base:o.extend("--ftds-chart-3-base","",l.colorUltramarine70),color4Light:o.extend("--ftds-chart-4-light","",l.colorCyan50),color4Base:o.extend("--ftds-chart-4-base","",l.colorCyan100),color5Light:o.extend("--ftds-chart-5-light","",l.colorRed40),color5Base:o.extend("--ftds-chart-5-base","",l.colorRed60),color6Light:o.extend("--ftds-chart-6-light","",l.colorGreen40),color6Base:o.extend("--ftds-chart-6-base","",l.colorGreen70),color7Light:o.extend("--ftds-chart-7-light","",l.colorOrange70),color7Base:o.extend("--ftds-chart-7-base","",l.colorOrange100),color8Light:o.extend("--ftds-chart-8-light","",l.colorAvocado70),color8Base:o.extend("--ftds-chart-8-base","",l.colorAvocado200),color9Light:o.extend("--ftds-chart-9-light","",l.colorBrown50),color9Base:o.extend("--ftds-chart-9-base","",l.colorBrown200),color10Light:o.extend("--ftds-chart-10-light","",l.colorGray50),color10Base:o.extend("--ftds-chart-10-base","",l.colorGray80),monochrome10:o.extend("--ftds-chart-monochrome-10","",l.colorBrand10),monochrome20:o.extend("--ftds-chart-monochrome-20","",l.colorBrand20),monochrome30:o.extend("--ftds-chart-monochrome-30","",l.colorBrand40),monochrome40:o.extend("--ftds-chart-monochrome-40","",l.colorBrand60),monochrome50:o.extend("--ftds-chart-monochrome-50","",l.colorBrand0),monochrome60:o.extend("--ftds-chart-monochrome-60","",l.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",l.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",l.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",l.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:o.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",l.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",l.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",l.opacity48),scatterplotDatapointInitialHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",l.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",l.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",l.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",l.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:o.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",l.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:o.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",l.colorGray70),scatterplotDatapointHoverHoverRingColor:o.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",l.colorCyan200)};var Sg={color1IconColor:o.extend("--ftds-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:o.extend("--ftds-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:o.extend("--ftds-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:o.extend("--ftds-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:o.extend("--ftds-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:o.extend("--ftds-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:o.extend("--ftds-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:o.extend("--ftds-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:o.extend("--ftds-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:o.extend("--ftds-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:o.extend("--ftds-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:o.extend("--ftds-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:o.extend("--ftds-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:o.extend("--ftds-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:o.extend("--ftds-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:o.extend("--ftds-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var Ag={borderWidth:o.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ftds-notice-horizontal-padding","",l.spacing3),verticalPadding:o.extend("--ftds-notice-vertical-padding","",l.spacing2),borderRadius:o.extend("--ftds-notice-border-radius","",l.borderRadiusS),gap:o.extend("--ftds-notice-gap","",l.spacing2),iconSize:o.extend("--ftds-notice-icon-size","",l.iconSize3),infoBackgroundColor:o.extend("--ftds-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:o.extend("--ftds-notice-info-border-color","",d.borderInfoSubtle),infoColor:o.extend("--ftds-notice-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:o.extend("--ftds-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:o.extend("--ftds-notice-warning-border-color","",d.borderWarningSubtle),warningColor:o.extend("--ftds-notice-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:o.extend("--ftds-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:o.extend("--ftds-notice-error-border-color","",d.borderErrorSubtle),errorColor:o.extend("--ftds-notice-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:o.extend("--ftds-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:o.extend("--ftds-notice-success-border-color","",d.borderSuccessSubtle),successColor:o.extend("--ftds-notice-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:o.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:o.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:o.extend("--ftds-notice-dense-gap","",l.spacing1),denseIconSize:o.extend("--ftds-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:o.create("--ftds-notice-dense-border-width","","SIZE","0")};var Tg={offHoverStateLayerOpacity:o.extend("--ftds-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:o.extend("--ftds-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:o.extend("--ftds-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:o.extend("--ftds-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:o.extend("--ftds-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:o.extend("--ftds-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:o.extend("--ftds-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ftds-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:o.extend("--ftds-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ftds-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:o.extend("--ftds-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:o.extend("--ftds-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:o.extend("--ftds-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:o.extend("--ftds-toggle-on-icon-color","",d.contentActionPrimary),color:o.extend("--ftds-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:o.extend("--ftds-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:o.extend("--ftds-toggle-gap","",l.spacing3)};var Bg={iconSize:o.extend("--ftds-notification-icon-size","",l.iconSize4),leftPadding:o.extend("--ftds-notification-left-padding","",l.spacing5),rightPadding:o.extend("--ftds-notification-right-padding","",l.spacing4),verticalPadding:o.extend("--ftds-notification-vertical-padding","",l.spacing3),infoBackgroundColor:o.extend("--ftds-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:o.extend("--ftds-notification-info-color","",d.contentInfoPrimary),infoIconColor:o.extend("--ftds-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:o.extend("--ftds-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:o.extend("--ftds-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:o.extend("--ftds-notification-success-color","",d.contentSuccessPrimary),successIconColor:o.extend("--ftds-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:o.extend("--ftds-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:o.extend("--ftds-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:o.extend("--ftds-notification-warning-color","",d.contentWarningPrimary),warningIconColor:o.extend("--ftds-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:o.extend("--ftds-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:o.extend("--ftds-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:o.extend("--ftds-notification-error-color","",d.contentErrorPrimary),errorIconColor:o.extend("--ftds-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:o.extend("--ftds-notification-error-border-color","",d.borderErrorSubtle),borderRadius:o.extend("--ftds-notification-border-radius","",l.borderRadiusPill),borderWidth:o.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ftds-notification-leading-gap","",l.spacing2),trailingGap:o.extend("--ftds-notification-trailing-gap","",l.spacing8)};var Ug={horizontalPadding:o.extend("--ftds-tooltip-horizontal-padding","",l.spacing2),verticalPadding:o.extend("--ftds-tooltip-vertical-padding","",l.spacing2),borderRadius:o.extend("--ftds-tooltip-border-radius","",l.borderRadiusS),color:o.extend("--ftds-tooltip-color","",d.contentGlobalOnColor),backgroundColor:o.extend("--ftds-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:o.extend("--ftds-tooltip-background-opacity","",l.opacity80),shadow:o.extend("--ftds-tooltip-shadow","",l.shadowElevation02),maxWidth:o.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ftds-tooltip-gap","",l.spacing05)};var jg={verticalPadding:o.extend("--ftds-reorderable-list-vertical-padding","",l.spacing4),gap:o.extend("--ftds-reorderable-list-gap","",l.spacing1),borderRadius:o.extend("--ftds-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:o.extend("--ftds-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:o.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:o.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:o.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:o.extend("--ftds-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:o.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:o.extend("--ftds-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:o.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:o.extend("--ftds-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:o.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:o.extend("--ftds-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:o.extend("--ftds-reorderable-list-left-padding","",l.spacing2),rightPadding:o.extend("--ftds-reorderable-list-right-padding","",l.spacing6),borderColor:o.extend("--ftds-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:o.extend("--ftds-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var Yg={menuHorizontalPadding:o.extend("--ftds-date-range-picker-menu-horizontal-padding","",l.spacing4),menuVerticalPadding:o.extend("--ftds-date-range-picker-menu-vertical-padding","",l.spacing4),menuVerticalGap:o.extend("--ftds-date-range-picker-menu-vertical-gap","",l.spacing4),menuButtonsVerticalGap:o.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",l.spacing2)};var br;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(br||(br={}));var Tt;(function(t){t.large="large",t.medium="medium",t.small="small"})(Tt||(Tt={}));var mo=f(k());function dl(t,e){let r=Kr[t];return mo.css`
|
|
29
29
|
${e?(0,mo.unsafeCSS)(e):mo.css`.ft-typography--${(0,mo.unsafeCSS)(t)}`} {
|
|
30
|
-
font-family: ${
|
|
31
|
-
font-size: ${
|
|
32
|
-
font-weight: ${
|
|
33
|
-
letter-spacing: ${
|
|
34
|
-
line-height: ${
|
|
35
|
-
text-decoration: ${
|
|
36
|
-
text-transform: ${
|
|
37
|
-
}
|
|
38
|
-
`}var
|
|
30
|
+
font-family: ${r.fontFamily};
|
|
31
|
+
font-size: ${r.fontSize};
|
|
32
|
+
font-weight: ${r.fontWeight};
|
|
33
|
+
letter-spacing: ${r.letterSpacing};
|
|
34
|
+
line-height: ${r.lineHeight};
|
|
35
|
+
text-decoration: ${r.textDecoration};
|
|
36
|
+
text-transform: ${r.textCase};
|
|
37
|
+
}
|
|
38
|
+
`}var pl=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.titleFont),lr=R.FtCssVariableFactory.extend("--ft-typography-font-family","",R.designSystemVariables.contentFont),L={fontFamily:lr,fontSize:R.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:R.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:R.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:R.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:R.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},go={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-font-family","",pl),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit")},bo={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",pl),fontSize:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit")},xo={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",lr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit")},vo={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",lr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit")},sr={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",lr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit")},Ie={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",lr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit")},Be={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",lr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit")},So={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",lr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit")},Oo={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",lr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase")},Gt={fontFamily:R.FtCssVariableFactory.extend("--ft-typography-button-font-family","",lr),fontSize:R.FtCssVariableFactory.extend("--ft-typography-button-font-size","",L.fontSize,"14px"),fontWeight:R.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",L.fontWeight,"600"),letterSpacing:R.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",L.letterSpacing,"1.246px"),lineHeight:R.FtCssVariableFactory.extend("--ft-typography-button-line-height","",L.lineHeight,"1.15"),textTransform:R.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",L.textTransform,"uppercase")},ul=xt.css`
|
|
39
39
|
.ft-typography--title {
|
|
40
40
|
font-family: ${go.fontFamily};
|
|
41
41
|
font-size: ${go.fontSize};
|
|
@@ -44,7 +44,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
44
44
|
line-height: ${go.lineHeight};
|
|
45
45
|
text-transform: ${go.textTransform};
|
|
46
46
|
}
|
|
47
|
-
`,
|
|
47
|
+
`,fl=xt.css`
|
|
48
48
|
.ft-typography--title-dense {
|
|
49
49
|
font-family: ${bo.fontFamily};
|
|
50
50
|
font-size: ${bo.fontSize};
|
|
@@ -53,7 +53,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
53
53
|
line-height: ${bo.lineHeight};
|
|
54
54
|
text-transform: ${bo.textTransform};
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
56
|
+
`,hl=xt.css`
|
|
57
57
|
.ft-typography--subtitle1 {
|
|
58
58
|
font-family: ${xo.fontFamily};
|
|
59
59
|
font-size: ${xo.fontSize};
|
|
@@ -62,7 +62,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
62
62
|
line-height: ${xo.lineHeight};
|
|
63
63
|
text-transform: ${xo.textTransform};
|
|
64
64
|
}
|
|
65
|
-
`,
|
|
65
|
+
`,yl=xt.css`
|
|
66
66
|
.ft-typography--subtitle2 {
|
|
67
67
|
font-family: ${vo.fontFamily};
|
|
68
68
|
font-size: ${vo.fontSize};
|
|
@@ -72,7 +72,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
72
72
|
text-transform: ${vo.textTransform};
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
`,
|
|
75
|
+
`,ml=xt.css`
|
|
76
76
|
.ft-typography--body1 {
|
|
77
77
|
font-family: ${sr.fontFamily};
|
|
78
78
|
font-size: ${sr.fontSize};
|
|
@@ -81,7 +81,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
81
81
|
line-height: ${sr.lineHeight};
|
|
82
82
|
text-transform: ${sr.textTransform};
|
|
83
83
|
}
|
|
84
|
-
`,Co=
|
|
84
|
+
`,Co=xt.css`
|
|
85
85
|
.ft-typography--body2 {
|
|
86
86
|
font-family: ${Ie.fontFamily};
|
|
87
87
|
font-size: ${Ie.fontSize};
|
|
@@ -90,16 +90,16 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
90
90
|
line-height: ${Ie.lineHeight};
|
|
91
91
|
text-transform: ${Ie.textTransform};
|
|
92
92
|
}
|
|
93
|
-
`,jt=
|
|
93
|
+
`,jt=xt.css`
|
|
94
94
|
.ft-typography--caption {
|
|
95
|
-
font-family: ${
|
|
96
|
-
font-size: ${
|
|
97
|
-
font-weight: ${
|
|
98
|
-
letter-spacing: ${
|
|
99
|
-
line-height: ${
|
|
100
|
-
text-transform: ${
|
|
101
|
-
}
|
|
102
|
-
`,
|
|
95
|
+
font-family: ${Be.fontFamily};
|
|
96
|
+
font-size: ${Be.fontSize};
|
|
97
|
+
font-weight: ${Be.fontWeight};
|
|
98
|
+
letter-spacing: ${Be.letterSpacing};
|
|
99
|
+
line-height: ${Be.lineHeight};
|
|
100
|
+
text-transform: ${Be.textTransform};
|
|
101
|
+
}
|
|
102
|
+
`,gl=xt.css`
|
|
103
103
|
.ft-typography--breadcrumb {
|
|
104
104
|
font-family: ${So.fontFamily};
|
|
105
105
|
font-size: ${So.fontSize};
|
|
@@ -108,7 +108,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
108
108
|
line-height: ${So.lineHeight};
|
|
109
109
|
text-transform: ${So.textTransform};
|
|
110
110
|
}
|
|
111
|
-
`,
|
|
111
|
+
`,bl=xt.css`
|
|
112
112
|
.ft-typography--overline {
|
|
113
113
|
font-family: ${Oo.fontFamily};
|
|
114
114
|
font-size: ${Oo.fontSize};
|
|
@@ -117,7 +117,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
117
117
|
line-height: ${Oo.lineHeight};
|
|
118
118
|
text-transform: ${Oo.textTransform};
|
|
119
119
|
}
|
|
120
|
-
`,
|
|
120
|
+
`,xl=xt.css`
|
|
121
121
|
.ft-typography--button {
|
|
122
122
|
font-family: ${Gt.fontFamily};
|
|
123
123
|
font-size: ${Gt.fontSize};
|
|
@@ -126,11 +126,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
126
126
|
line-height: ${Gt.lineHeight};
|
|
127
127
|
text-transform: ${Gt.textTransform};
|
|
128
128
|
}
|
|
129
|
-
`,
|
|
129
|
+
`,vl=xt.css`
|
|
130
130
|
.ft-typography {
|
|
131
131
|
vertical-align: inherit;
|
|
132
132
|
}
|
|
133
|
-
`,
|
|
133
|
+
`,Sl=[Object.keys(Kr).map(t=>dl(t))];var Ol=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},oe=class extends Cl.FtLitElement{constructor(){super(...arguments),this.variant=Pe.body1}render(){return this.element?yo`
|
|
134
134
|
<${ho(this.element)}
|
|
135
135
|
part="text"
|
|
136
136
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -138,17 +138,17 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
138
138
|
</${ho(this.element)}>
|
|
139
139
|
`:yo`
|
|
140
140
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
141
|
-
`}};oe.styles=[
|
|
141
|
+
`}};oe.styles=[ul,fl,hl,yl,ml,Co,jt,gl,bl,xl,vl,...Sl];Ol([(0,ga.property)()],oe.prototype,"element",void 0);Ol([(0,ga.property)()],oe.prototype,"variant",void 0);var ba=f(ee()),Al=f(w());var lt;(function(t){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"})(lt||(lt={}));var wo=f(k());function sf(t,e){let r=Kr[t];return wo.css`
|
|
142
142
|
${e?(0,wo.unsafeCSS)(e):wo.css`.ftds-typography--${(0,wo.unsafeCSS)(t)}`} {
|
|
143
|
-
font-family: ${
|
|
144
|
-
font-size: ${
|
|
145
|
-
font-weight: ${
|
|
146
|
-
letter-spacing: ${
|
|
147
|
-
line-height: ${
|
|
148
|
-
text-decoration: ${
|
|
149
|
-
text-transform: ${
|
|
150
|
-
}
|
|
151
|
-
`}var
|
|
143
|
+
font-family: ${r.fontFamily};
|
|
144
|
+
font-size: ${r.fontSize};
|
|
145
|
+
font-weight: ${r.fontWeight};
|
|
146
|
+
letter-spacing: ${r.letterSpacing};
|
|
147
|
+
line-height: ${r.lineHeight};
|
|
148
|
+
text-decoration: ${r.textDecoration};
|
|
149
|
+
text-transform: ${r.textCase};
|
|
150
|
+
}
|
|
151
|
+
`}var wl=[Object.keys(Kr).map(t=>sf(t))];var El=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},$t=class extends Al.FtLitElement{constructor(){super(...arguments),this.variant=lt.body2medium}render(){return this.element?yo`
|
|
152
152
|
<${ho(this.element)}
|
|
153
153
|
part="text"
|
|
154
154
|
class="ftds-typography ftds-typography--${this.variant}">
|
|
@@ -156,7 +156,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
156
156
|
</${ho(this.element)}>
|
|
157
157
|
`:yo`
|
|
158
158
|
<slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
|
|
159
|
-
`}};$t.styles=[...
|
|
159
|
+
`}};$t.styles=[...wl];El([(0,ba.property)()],$t.prototype,"element",void 0);El([(0,ba.property)()],$t.prototype,"variant",void 0);(0,xa.customElement)("ft-typography")(oe);(0,xa.customElement)("ftds-typography")($t);var va=f(w());function Ni(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Rl(t){return Ni(t).split("|").pop()}function Ll(t){return Ni(t).split("|").join(" > ")}function Il(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(r=>Il(r,t.selected)),value:t.value}}function kl(t){return(0,va.flatDeep)(t.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]}).filter(e=>e.selected).map(e=>e.label)}function Sa(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>Il(e,!1))}}function Tl(t){return(0,va.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Cs=f(w());var ao=f(k()),ce=f(ee()),_e=f(w());var yt=f(k()),Ne=f(ee()),eu=f(Ur()),Lt=f(w());var vs=f(w());var yi=f(ee()),Ip=f(w());var Gl=f(k()),W=f(w());var Dl=f(k()),Ee=f(w()),$l=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorContent),S={color:$l,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",$l),opacityContentOnSurfacePressed:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Ee.FtCssVariableFactory.external(Ee.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Ee.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Nl=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorPrimary),_l={color:Nl,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Nl)},Pl=Ee.FtCssVariableFactory.extend("--ft-ripple-color","",Ee.designSystemVariables.colorSecondary),Bl={color:Pl,backgroundColor:Ee.FtCssVariableFactory.extend("--ft-ripple-background-color","",Pl)},Fl=Dl.css`
|
|
160
160
|
:host {
|
|
161
161
|
display: contents;
|
|
162
162
|
}
|
|
@@ -211,19 +211,19 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
214
|
-
background-color: ${
|
|
214
|
+
background-color: ${Bl.backgroundColor};
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
218
|
-
background-color: ${
|
|
218
|
+
background-color: ${Bl.color};
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
222
|
-
background-color: ${
|
|
222
|
+
background-color: ${_l.backgroundColor};
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
226
|
-
background-color: ${
|
|
226
|
+
background-color: ${_l.color};
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
.ft-ripple .ft-ripple--background {
|
|
@@ -268,7 +268,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
268
268
|
opacity: ${S.opacityContentOnSurfacePressed};
|
|
269
269
|
transform: translate(-50%, -50%) scale(1);
|
|
270
270
|
}
|
|
271
|
-
`;var
|
|
271
|
+
`;var Ml=f(k()),Xo=f(w()),ye={color:Xo.FtCssVariableFactory.extend("--ft-loader-color","",Xo.designSystemVariables.colorPrimary),size:Xo.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},zl=Ml.css`
|
|
272
272
|
:host {
|
|
273
273
|
line-height: 0;
|
|
274
274
|
}
|
|
@@ -337,7 +337,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
337
337
|
transform: translate(calc(0.35 * ${ye.size}), 0);
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
`;var
|
|
340
|
+
`;var Ul=f(k()),Nt=f(w()),xe={size:Nt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Nt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Nt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Nt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Nt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Nt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Nt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Nt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Hl=[Ul.css`
|
|
341
341
|
:host, i.ft-icon {
|
|
342
342
|
display: inline-flex;
|
|
343
343
|
align-items: center;
|
|
@@ -385,7 +385,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
385
385
|
.ft-icon--material {
|
|
386
386
|
font-family: ${xe.materialFontFamily}, "Material Icons", sans-serif;
|
|
387
387
|
}
|
|
388
|
-
`,Nt.noTextSelect];var
|
|
388
|
+
`,Nt.noTextSelect];var Wl=W.FtCssVariableFactory.extend("--ft-button-color","",W.designSystemVariables.colorPrimary),q={backgroundColor:W.FtCssVariableFactory.extend("--ft-button-background-color","",W.designSystemVariables.colorSurface),borderRadius:W.FtCssVariableFactory.extend("--ft-button-border-radius","",W.designSystemVariables.borderRadiusL),color:Wl,fontSize:W.FtCssVariableFactory.extend("--ft-button-font-size","",Gt.fontSize),iconSize:W.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:W.FtCssVariableFactory.extend("--ft-button-ripple-color","",Wl),verticalPadding:W.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:W.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:W.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:W.FtCssVariableFactory.external(W.designSystemVariables.colorOpacityDisabled,"Design system")},Vl=W.FtCssVariableFactory.extend("--ft-button-primary-color","",W.FtCssVariableFactory.extend("--ft-button-color","",W.designSystemVariables.colorOnPrimary)),Oa={backgroundColor:W.FtCssVariableFactory.extend("--ft-button-primary-background-color","",W.FtCssVariableFactory.extend("--ft-button-background-color","",W.designSystemVariables.colorPrimary)),color:Vl,rippleColor:W.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Vl)},Kt={borderRadius:W.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",W.FtCssVariableFactory.extend("--ft-button-border-radius","",W.designSystemVariables.borderRadiusM)),verticalPadding:W.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:W.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:W.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},jl=[Gl.css`
|
|
389
389
|
:host {
|
|
390
390
|
display: inline-block;
|
|
391
391
|
max-width: 100%;
|
|
@@ -471,9 +471,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
.ft-button.ft-button--primary {
|
|
474
|
-
background-color: ${
|
|
475
|
-
--button-internal-color: ${
|
|
476
|
-
${(0,W.setVariable)(S.color,
|
|
474
|
+
background-color: ${Oa.backgroundColor};
|
|
475
|
+
--button-internal-color: ${Oa.color};
|
|
476
|
+
${(0,W.setVariable)(S.color,Oa.rippleColor)};
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
.ft-button:focus {
|
|
@@ -522,18 +522,18 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
522
522
|
${(0,W.setVariable)(ye.size,q.iconSize)};
|
|
523
523
|
${(0,W.setVariable)(ye.color,"var(--button-internal-color)")};
|
|
524
524
|
}
|
|
525
|
-
`,W.noTextSelect];var
|
|
525
|
+
`,W.noTextSelect];var kr=f(w());var Yl=f(w());var Zl=f(k()),Me=f(ee()),ql=f(vt()),Qo=f(w());var rt=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Y=class extends Qo.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 Qo.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 Qo.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-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 Zl.html`
|
|
526
526
|
<style>
|
|
527
527
|
.ft-ripple .ft-ripple--effect {
|
|
528
528
|
left: ${this.originX}px;
|
|
529
529
|
top: ${this.originY}px;
|
|
530
530
|
}
|
|
531
531
|
</style>
|
|
532
|
-
<div class="${(0,
|
|
532
|
+
<div class="${(0,ql.classMap)(e)}">
|
|
533
533
|
<div class="ft-ripple--background"></div>
|
|
534
534
|
<div class="ft-ripple--effect"></div>
|
|
535
535
|
</div>
|
|
536
|
-
`}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
|
|
536
|
+
`}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,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.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 i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}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=(...c)=>p=>{c.forEach(u=>window.addEventListener(u,this.endPress,{once:!0})),this.startPress(p)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&r("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",n,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",i,s),e.removeEventListener("touchstart",n,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,i=e,n,a;return r.x!=null?{x:n,y:a}=r:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,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()}};Y.elementDefinitions={};Y.styles=Fl;rt([(0,Me.property)({type:Boolean})],Y.prototype,"primary",void 0);rt([(0,Me.property)({type:Boolean})],Y.prototype,"secondary",void 0);rt([(0,Me.property)({type:Boolean})],Y.prototype,"unbounded",void 0);rt([(0,Me.property)({type:Boolean})],Y.prototype,"activated",void 0);rt([(0,Me.property)({type:Boolean})],Y.prototype,"selected",void 0);rt([(0,Me.property)({type:Boolean})],Y.prototype,"disabled",void 0);rt([(0,Me.state)()],Y.prototype,"hovered",void 0);rt([(0,Me.state)()],Y.prototype,"focused",void 0);rt([(0,Me.state)()],Y.prototype,"pressed",void 0);rt([(0,Me.state)()],Y.prototype,"rippling",void 0);rt([(0,Me.state)()],Y.prototype,"originX",void 0);rt([(0,Me.state)()],Y.prototype,"originY",void 0);rt([(0,Me.query)(".ft-ripple")],Y.prototype,"ripple",void 0);rt([(0,Me.query)(".ft-ripple--effect")],Y.prototype,"rippleEffect",void 0);(0,Yl.customElement)("ft-ripple")(Y);var xp=f(w());var bp=f(k()),Et=f(ee()),wt=f(w());var Xl=f(k()),cr=f(w()),xr={distance:cr.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:cr.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:cr.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:cr.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:cr.FtCssVariableFactory.external(cr.designSystemVariables.borderRadiusS,"Design system"),maxWidth:cr.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ql=Xl.css`
|
|
537
537
|
.ft-tooltip--container {
|
|
538
538
|
display: block;
|
|
539
539
|
}
|
|
@@ -562,7 +562,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
562
562
|
position: relative;
|
|
563
563
|
word-break: break-word;
|
|
564
564
|
}
|
|
565
|
-
`;var Yl=["top","right","bottom","left"],ql=["start","end"],Sa=Yl.reduce((t,e)=>t.concat(e,e+"-"+ql[0],e+"-"+ql[1]),[]),Xl=Math.min,Ql=Math.max;var rf={left:"right",right:"left",bottom:"top",top:"bottom"},of={start:"end",end:"start"};function Oa(t,e,o){return Ql(t,Xl(e,o))}function $i(t,e){return typeof t=="function"?t(e):t}function Eo(t){return t.split("-")[0]}function vr(t){return t.split("-")[1]}function Ca(t){return t==="x"?"y":"x"}function wa(t){return t==="y"?"height":"width"}function Ni(t){return["top","bottom"].includes(Eo(t))?"y":"x"}function Ea(t){return Ca(Ni(t))}function Jl(t,e,o){o===void 0&&(o=!1);let i=vr(t),n=Ea(t),a=wa(n),s=n==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=va(s)),[s,va(s)]}function ec(t){return t.replace(/start|end/g,e=>of[e])}function va(t){return t.replace(/left|right|bottom|top/g,e=>rf[e])}function nf(t){return{top:0,right:0,bottom:0,left:0,...t}}function tc(t){return typeof t!="number"?nf(t):{top:t,right:t,bottom:t,left:t}}function Zr(t){let{x:e,y:o,width:i,height:n}=t;return{width:i,height:n,top:o,left:e,right:e+i,bottom:o+n,x:e,y:o}}function rc(t,e,o){let{reference:i,floating:n}=t,a=Ni(e),s=Ea(e),c=wa(s),p=Eo(e),u=a==="y",m=i.x+i.width/2-n.width/2,y=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,O;switch(p){case"top":O={x:m,y:i.y-n.height};break;case"bottom":O={x:m,y:i.y+i.height};break;case"right":O={x:i.x+i.width,y};break;case"left":O={x:i.x-n.width,y};break;default:O={x:i.x,y:i.y}}switch(vr(e)){case"start":O[s]-=b*(o&&u?-1:1);break;case"end":O[s]+=b*(o&&u?-1:1);break}return O}var oc=async(t,e,o)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,c=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y}=rc(u,i,p),b=i,O={},v=0;for(let E=0;E<c.length;E++){let{name:$,fn:T}=c[E],{x:N,y:z,data:Z,reset:X}=await T({x:m,y,initialPlacement:i,placement:b,strategy:n,middlewareData:O,rects:u,platform:s,elements:{reference:t,floating:e}});m=N??m,y=z??y,O={...O,[$]:{...O[$],...Z}},X&&v<=50&&(v++,typeof X=="object"&&(X.placement&&(b=X.placement),X.rects&&(u=X.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):X.rects),{x:m,y}=rc(u,b,p)),E=-1)}return{x:m,y,placement:b,strategy:n,middlewareData:O}};async function Aa(t,e){var o;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:b=!1,padding:O=0}=$i(e,t),v=tc(O),$=c[b?y==="floating"?"reference":"floating":y],T=Zr(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement($)))==null||o?$:$.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:p})),N=y==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,z=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),Z=await(a.isElement==null?void 0:a.isElement(z))?await(a.getScale==null?void 0:a.getScale(z))||{x:1,y:1}:{x:1,y:1},X=Zr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:z,strategy:p}):N);return{top:(T.top-X.top+v.top)/Z.y,bottom:(X.bottom-T.bottom+v.bottom)/Z.y,left:(T.left-X.left+v.left)/Z.x,right:(X.right-T.right+v.right)/Z.x}}function af(t,e,o){return(t?[...o.filter(n=>vr(n)===t),...o.filter(n=>vr(n)!==t)]:o.filter(n=>Eo(n)===n)).filter(n=>t?vr(n)===t||(e?ec(n)!==n:!1):!0)}var Ra=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,n;let{rects:a,middlewareData:s,placement:c,platform:p,elements:u}=e,{crossAxis:m=!1,alignment:y,allowedPlacements:b=Sa,autoAlignment:O=!0,...v}=$i(t,e),E=y!==void 0||b===Sa?af(y||null,O,b):b,$=await Aa(e,v),T=((o=s.autoPlacement)==null?void 0:o.index)||0,N=E[T];if(N==null)return{};let z=Jl(N,a,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(c!==N)return{reset:{placement:E[0]}};let Z=[$[Eo(N)],$[z[0]],$[z[1]]],X=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:N,overflows:Z}],tt=E[T+1];if(tt)return{data:{index:T+1,overflows:X},reset:{placement:tt}};let Wt=X.map(Be=>{let g=vr(Be.placement);return[Be.placement,g&&m?Be.overflows.slice(0,2).reduce((x,_)=>x+_,0):Be.overflows[0],Be.overflows]}).sort((Be,g)=>Be[1]-g[1]),Vt=((n=Wt.filter(Be=>Be[2].slice(0,vr(Be[0])?2:3).every(g=>g<=0))[0])==null?void 0:n[0])||Wt[0][0];return Vt!==c?{data:{index:T+1,overflows:X},reset:{placement:Vt}}:{}}}};var La=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:$=>{let{x:T,y:N}=$;return{x:T,y:N}}},...p}=$i(t,e),u={x:o,y:i},m=await Aa(e,p),y=Ni(Eo(n)),b=Ca(y),O=u[b],v=u[y];if(a){let $=b==="y"?"top":"left",T=b==="y"?"bottom":"right",N=O+m[$],z=O-m[T];O=Oa(N,O,z)}if(s){let $=y==="y"?"top":"left",T=y==="y"?"bottom":"right",N=v+m[$],z=v-m[T];v=Oa(N,v,z)}let E=c.fn({...e,[b]:O,[y]:v});return{...E,data:{x:E.x-o,y:E.y-i,enabled:{[b]:a,[y]:s}}}}}};var Ia=Math.min,Ao=Math.max,Xo=Math.round;var dr=t=>({x:t,y:t});function pr(t){return nc(t)?(t.nodeName||"").toLowerCase():"#document"}function ot(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ur(t){var e;return(e=(nc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function nc(t){return t instanceof Node||t instanceof ot(t).Node}function Zt(t){return t instanceof Element||t instanceof ot(t).Element}function _t(t){return t instanceof HTMLElement||t instanceof ot(t).HTMLElement}function ic(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ot(t).ShadowRoot}function Ro(t){let{overflow:e,overflowX:o,overflowY:i,display:n}=dt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function ac(t){return["table","td","th"].includes(pr(t))}function Pi(t){let e=Bi(),o=dt(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(o.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(o.contain||"").includes(i))}function sc(t){let e=qr(t);for(;_t(e)&&!Qo(e);){if(Pi(e))return e;e=qr(e)}return null}function Bi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Qo(t){return["html","body","#document"].includes(pr(t))}function dt(t){return ot(t).getComputedStyle(t)}function Jo(t){return Zt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qr(t){if(pr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||ic(t)&&t.host||ur(t);return ic(e)?e.host:e}function lc(t){let e=qr(t);return Qo(e)?t.ownerDocument?t.ownerDocument.body:t.body:_t(e)&&Ro(e)?e:lc(e)}function _i(t,e,o){var i;e===void 0&&(e=[]),o===void 0&&(o=!0);let n=lc(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=ot(n);return a?e.concat(s,s.visualViewport||[],Ro(n)?n:[],s.frameElement&&o?_i(s.frameElement):[]):e.concat(n,_i(n,[],o))}function pc(t){let e=dt(t),o=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=_t(t),a=n?t.offsetWidth:o,s=n?t.offsetHeight:i,c=Xo(o)!==a||Xo(i)!==s;return c&&(o=a,i=s),{width:o,height:i,$:c}}function uc(t){return Zt(t)?t:t.contextElement}function Lo(t){let e=uc(t);if(!_t(e))return dr(1);let o=e.getBoundingClientRect(),{width:i,height:n,$:a}=pc(e),s=(a?Xo(o.width):o.width)/i,c=(a?Xo(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var cf=dr(0);function fc(t){let e=ot(t);return!Bi()||!e.visualViewport?cf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function df(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==ot(t)?!1:e}function ei(t,e,o,i){e===void 0&&(e=!1),o===void 0&&(o=!1);let n=t.getBoundingClientRect(),a=uc(t),s=dr(1);e&&(i?Zt(i)&&(s=Lo(i)):s=Lo(t));let c=df(a,o,i)?fc(a):dr(0),p=(n.left+c.x)/s.x,u=(n.top+c.y)/s.y,m=n.width/s.x,y=n.height/s.y;if(a){let b=ot(a),O=i&&Zt(i)?ot(i):i,v=b.frameElement;for(;v&&i&&O!==b;){let E=Lo(v),$=v.getBoundingClientRect(),T=dt(v),N=$.left+(v.clientLeft+parseFloat(T.paddingLeft))*E.x,z=$.top+(v.clientTop+parseFloat(T.paddingTop))*E.y;p*=E.x,u*=E.y,m*=E.x,y*=E.y,p+=N,u+=z,v=ot(v).frameElement}}return Zr({width:m,height:y,x:p,y:u})}function pf(t){let{rect:e,offsetParent:o,strategy:i}=t,n=_t(o),a=ur(o);if(o===a)return e;let s={scrollLeft:0,scrollTop:0},c=dr(1),p=dr(0);if((n||!n&&i!=="fixed")&&((pr(o)!=="body"||Ro(a))&&(s=Jo(o)),_t(o))){let u=ei(o);c=Lo(o),p.x=u.x+o.clientLeft,p.y=u.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+p.x,y:e.y*c.y-s.scrollTop*c.y+p.y}}function uf(t){return Array.from(t.getClientRects())}function hc(t){return ei(ur(t)).left+Jo(t).scrollLeft}function ff(t){let e=ur(t),o=Jo(t),i=t.ownerDocument.body,n=Ao(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Ao(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-o.scrollLeft+hc(t),c=-o.scrollTop;return dt(i).direction==="rtl"&&(s+=Ao(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function hf(t,e){let o=ot(t),i=ur(t),n=o.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,p=0;if(n){a=n.width,s=n.height;let u=Bi();(!u||u&&e==="fixed")&&(c=n.offsetLeft,p=n.offsetTop)}return{width:a,height:s,x:c,y:p}}function yf(t,e){let o=ei(t,!0,e==="fixed"),i=o.top+t.clientTop,n=o.left+t.clientLeft,a=_t(t)?Lo(t):dr(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,p=n*a.x,u=i*a.y;return{width:s,height:c,x:p,y:u}}function cc(t,e,o){let i;if(e==="viewport")i=hf(t,o);else if(e==="document")i=ff(ur(t));else if(Zt(e))i=yf(e,o);else{let n=fc(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return Zr(i)}function yc(t,e){let o=qr(t);return o===e||!Zt(o)||Qo(o)?!1:dt(o).position==="fixed"||yc(o,e)}function mf(t,e){let o=e.get(t);if(o)return o;let i=_i(t,[],!1).filter(c=>Zt(c)&&pr(c)!=="body"),n=null,a=dt(t).position==="fixed",s=a?qr(t):t;for(;Zt(s)&&!Qo(s);){let c=dt(s),p=Pi(s);!p&&c.position==="fixed"&&(n=null),(a?!p&&!n:!p&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Ro(s)&&!p&&yc(t,s))?i=i.filter(m=>m!==s):n=c,s=qr(s)}return e.set(t,i),i}function gf(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t,s=[...o==="clippingAncestors"?mf(e,this._c):[].concat(o),i],c=s[0],p=s.reduce((u,m)=>{let y=cc(e,m,n);return u.top=Ao(y.top,u.top),u.right=Ia(y.right,u.right),u.bottom=Ia(y.bottom,u.bottom),u.left=Ao(y.left,u.left),u},cc(e,c,n));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function bf(t){return pc(t)}function xf(t,e,o){let i=_t(e),n=ur(e),a=o==="fixed",s=ei(t,!0,a,e),c={scrollLeft:0,scrollTop:0},p=dr(0);if(i||!i&&!a)if((pr(e)!=="body"||Ro(n))&&(c=Jo(e)),i){let u=ei(e,!0,a,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else n&&(p.x=hc(n));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function dc(t,e){return!_t(t)||dt(t).position==="fixed"?null:e?e(t):t.offsetParent}function mc(t,e){let o=ot(t);if(!_t(t))return o;let i=dc(t,e);for(;i&&ac(i)&&dt(i).position==="static";)i=dc(i,e);return i&&(pr(i)==="html"||pr(i)==="body"&&dt(i).position==="static"&&!Pi(i))?o:i||sc(t)||o}var vf=async function(t){let{reference:e,floating:o,strategy:i}=t,n=this.getOffsetParent||mc,a=this.getDimensions;return{reference:xf(e,await n(o),i),floating:{x:0,y:0,...await a(o)}}};function Sf(t){return dt(t).direction==="rtl"}var Di={convertOffsetParentRelativeRectToViewportRelativeRect:pf,getDocumentElement:ur,getClippingRect:gf,getOffsetParent:mc,getElementRects:vf,getClientRects:uf,getDimensions:bf,getScale:Lo,isElement:Zt,isRTL:Sf};var gc=(t,e,o)=>{let i=new Map,n={platform:Di,...o},a={...n.platform,_c:i};return oc(t,e,{...n,platform:a})};function bc(t){return Of(t)}function ka(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Of(t){for(let e=t;e;e=ka(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=ka(t);e;e=ka(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}async function xc(t,e,o){return gc(t,e,{platform:{...Di,getOffsetParent:i=>Di.getOffsetParent(i,bc)},middleware:[La({crossAxis:!0}),Ra({allowedPlacements:[o]})]})}var Pt=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Oe=class extends it.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new it.Debouncer,this.revealDebouncer=new it.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",o=>{o.composedPath().includes(this.container)||this.onOut(o)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)||this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return vc.html`
|
|
565
|
+
`;var ec=["top","right","bottom","left"],Jl=["start","end"],wa=ec.reduce((t,e)=>t.concat(e,e+"-"+Jl[0],e+"-"+Jl[1]),[]),tc=Math.min,rc=Math.max;var lf={left:"right",right:"left",bottom:"top",top:"bottom"},cf={start:"end",end:"start"};function Ea(t,e,r){return rc(t,tc(e,r))}function _i(t,e){return typeof t=="function"?t(e):t}function Eo(t){return t.split("-")[0]}function vr(t){return t.split("-")[1]}function Aa(t){return t==="x"?"y":"x"}function Ra(t){return t==="y"?"height":"width"}function Pi(t){return["top","bottom"].includes(Eo(t))?"y":"x"}function La(t){return Aa(Pi(t))}function oc(t,e,r){r===void 0&&(r=!1);let i=vr(t),n=La(t),a=Ra(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Ca(s)),[s,Ca(s)]}function ic(t){return t.replace(/start|end/g,e=>cf[e])}function Ca(t){return t.replace(/left|right|bottom|top/g,e=>lf[e])}function df(t){return{top:0,right:0,bottom:0,left:0,...t}}function nc(t){return typeof t!="number"?df(t):{top:t,right:t,bottom:t,left:t}}function Zr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function ac(t,e,r){let{reference:i,floating:n}=t,a=Pi(e),s=La(e),c=Ra(s),p=Eo(e),u=a==="y",m=i.x+i.width/2-n.width/2,y=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,O;switch(p){case"top":O={x:m,y:i.y-n.height};break;case"bottom":O={x:m,y:i.y+i.height};break;case"right":O={x:i.x+i.width,y};break;case"left":O={x:i.x-n.width,y};break;default:O={x:i.x,y:i.y}}switch(vr(e)){case"start":O[s]-=b*(r&&u?-1:1);break;case"end":O[s]+=b*(r&&u?-1:1);break}return O}var sc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),p=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:m,y}=ac(u,i,p),b=i,O={},v=0;for(let E=0;E<c.length;E++){let{name:$,fn:T}=c[E],{x:N,y:z,data:Z,reset:X}=await T({x:m,y,initialPlacement:i,placement:b,strategy:n,middlewareData:O,rects:u,platform:s,elements:{reference:t,floating:e}});m=N??m,y=z??y,O={...O,[$]:{...O[$],...Z}},X&&v<=50&&(v++,typeof X=="object"&&(X.placement&&(b=X.placement),X.rects&&(u=X.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):X.rects),{x:m,y}=ac(u,b,p)),E=-1)}return{x:m,y,placement:b,strategy:n,middlewareData:O}};async function Ia(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:p}=t,{boundary:u="clippingAncestors",rootBoundary:m="viewport",elementContext:y="floating",altBoundary:b=!1,padding:O=0}=_i(e,t),v=nc(O),$=c[b?y==="floating"?"reference":"floating":y],T=Zr(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement($)))==null||r?$:$.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:u,rootBoundary:m,strategy:p})),N=y==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,z=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),Z=await(a.isElement==null?void 0:a.isElement(z))?await(a.getScale==null?void 0:a.getScale(z))||{x:1,y:1}:{x:1,y:1},X=Zr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:N,offsetParent:z,strategy:p}):N);return{top:(T.top-X.top+v.top)/Z.y,bottom:(X.bottom-T.bottom+v.bottom)/Z.y,left:(T.left-X.left+v.left)/Z.x,right:(X.right-T.right+v.right)/Z.x}}function pf(t,e,r){return(t?[...r.filter(n=>vr(n)===t),...r.filter(n=>vr(n)!==t)]:r.filter(n=>Eo(n)===n)).filter(n=>t?vr(n)===t||(e?ic(n)!==n:!1):!0)}var ka=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:a,middlewareData:s,placement:c,platform:p,elements:u}=e,{crossAxis:m=!1,alignment:y,allowedPlacements:b=wa,autoAlignment:O=!0,...v}=_i(t,e),E=y!==void 0||b===wa?pf(y||null,O,b):b,$=await Ia(e,v),T=((r=s.autoPlacement)==null?void 0:r.index)||0,N=E[T];if(N==null)return{};let z=oc(N,a,await(p.isRTL==null?void 0:p.isRTL(u.floating)));if(c!==N)return{reset:{placement:E[0]}};let Z=[$[Eo(N)],$[z[0]],$[z[1]]],X=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:N,overflows:Z}],tt=E[T+1];if(tt)return{data:{index:T+1,overflows:X},reset:{placement:tt}};let Wt=X.map(De=>{let g=vr(De.placement);return[De.placement,g&&m?De.overflows.slice(0,2).reduce((x,_)=>x+_,0):De.overflows[0],De.overflows]}).sort((De,g)=>De[1]-g[1]),Vt=((n=Wt.filter(De=>De[2].slice(0,vr(De[0])?2:3).every(g=>g<=0))[0])==null?void 0:n[0])||Wt[0][0];return Vt!==c?{data:{index:T+1,overflows:X},reset:{placement:Vt}}:{}}}};var Ta=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:$=>{let{x:T,y:N}=$;return{x:T,y:N}}},...p}=_i(t,e),u={x:r,y:i},m=await Ia(e,p),y=Pi(Eo(n)),b=Aa(y),O=u[b],v=u[y];if(a){let $=b==="y"?"top":"left",T=b==="y"?"bottom":"right",N=O+m[$],z=O-m[T];O=Ea(N,O,z)}if(s){let $=y==="y"?"top":"left",T=y==="y"?"bottom":"right",N=v+m[$],z=v-m[T];v=Ea(N,v,z)}let E=c.fn({...e,[b]:O,[y]:v});return{...E,data:{x:E.x-r,y:E.y-i,enabled:{[b]:a,[y]:s}}}}}};var $a=Math.min,Ao=Math.max,Jo=Math.round;var dr=t=>({x:t,y:t});function pr(t){return cc(t)?(t.nodeName||"").toLowerCase():"#document"}function ot(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ur(t){var e;return(e=(cc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function cc(t){return t instanceof Node||t instanceof ot(t).Node}function Zt(t){return t instanceof Element||t instanceof ot(t).Element}function _t(t){return t instanceof HTMLElement||t instanceof ot(t).HTMLElement}function lc(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ot(t).ShadowRoot}function Ro(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=ct(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function dc(t){return["table","td","th"].includes(pr(t))}function Di(t){let e=Fi(),r=ct(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(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function pc(t){let e=qr(t);for(;_t(e)&&!ei(e);){if(Di(e))return e;e=qr(e)}return null}function Fi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ei(t){return["html","body","#document"].includes(pr(t))}function ct(t){return ot(t).getComputedStyle(t)}function ti(t){return Zt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qr(t){if(pr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||lc(t)&&t.host||ur(t);return lc(e)?e.host:e}function uc(t){let e=qr(t);return ei(e)?t.ownerDocument?t.ownerDocument.body:t.body:_t(e)&&Ro(e)?e:uc(e)}function Bi(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=uc(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=ot(n);return a?e.concat(s,s.visualViewport||[],Ro(n)?n:[],s.frameElement&&r?Bi(s.frameElement):[]):e.concat(n,Bi(n,[],r))}function yc(t){let e=ct(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=_t(t),a=n?t.offsetWidth:r,s=n?t.offsetHeight:i,c=Jo(r)!==a||Jo(i)!==s;return c&&(r=a,i=s),{width:r,height:i,$:c}}function mc(t){return Zt(t)?t:t.contextElement}function Lo(t){let e=mc(t);if(!_t(e))return dr(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:a}=yc(e),s=(a?Jo(r.width):r.width)/i,c=(a?Jo(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var hf=dr(0);function gc(t){let e=ot(t);return!Fi()||!e.visualViewport?hf:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function yf(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ot(t)?!1:e}function ri(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),a=mc(t),s=dr(1);e&&(i?Zt(i)&&(s=Lo(i)):s=Lo(t));let c=yf(a,r,i)?gc(a):dr(0),p=(n.left+c.x)/s.x,u=(n.top+c.y)/s.y,m=n.width/s.x,y=n.height/s.y;if(a){let b=ot(a),O=i&&Zt(i)?ot(i):i,v=b.frameElement;for(;v&&i&&O!==b;){let E=Lo(v),$=v.getBoundingClientRect(),T=ct(v),N=$.left+(v.clientLeft+parseFloat(T.paddingLeft))*E.x,z=$.top+(v.clientTop+parseFloat(T.paddingTop))*E.y;p*=E.x,u*=E.y,m*=E.x,y*=E.y,p+=N,u+=z,v=ot(v).frameElement}}return Zr({width:m,height:y,x:p,y:u})}function mf(t){let{rect:e,offsetParent:r,strategy:i}=t,n=_t(r),a=ur(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},c=dr(1),p=dr(0);if((n||!n&&i!=="fixed")&&((pr(r)!=="body"||Ro(a))&&(s=ti(r)),_t(r))){let u=ri(r);c=Lo(r),p.x=u.x+r.clientLeft,p.y=u.y+r.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+p.x,y:e.y*c.y-s.scrollTop*c.y+p.y}}function gf(t){return Array.from(t.getClientRects())}function bc(t){return ri(ur(t)).left+ti(t).scrollLeft}function bf(t){let e=ur(t),r=ti(t),i=t.ownerDocument.body,n=Ao(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Ao(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-r.scrollLeft+bc(t),c=-r.scrollTop;return ct(i).direction==="rtl"&&(s+=Ao(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function xf(t,e){let r=ot(t),i=ur(t),n=r.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,p=0;if(n){a=n.width,s=n.height;let u=Fi();(!u||u&&e==="fixed")&&(c=n.offsetLeft,p=n.offsetTop)}return{width:a,height:s,x:c,y:p}}function vf(t,e){let r=ri(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,a=_t(t)?Lo(t):dr(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,p=n*a.x,u=i*a.y;return{width:s,height:c,x:p,y:u}}function fc(t,e,r){let i;if(e==="viewport")i=xf(t,r);else if(e==="document")i=bf(ur(t));else if(Zt(e))i=vf(e,r);else{let n=gc(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return Zr(i)}function xc(t,e){let r=qr(t);return r===e||!Zt(r)||ei(r)?!1:ct(r).position==="fixed"||xc(r,e)}function Sf(t,e){let r=e.get(t);if(r)return r;let i=Bi(t,[],!1).filter(c=>Zt(c)&&pr(c)!=="body"),n=null,a=ct(t).position==="fixed",s=a?qr(t):t;for(;Zt(s)&&!ei(s);){let c=ct(s),p=Di(s);!p&&c.position==="fixed"&&(n=null),(a?!p&&!n:!p&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Ro(s)&&!p&&xc(t,s))?i=i.filter(m=>m!==s):n=c,s=qr(s)}return e.set(t,i),i}function Of(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=[...r==="clippingAncestors"?Sf(e,this._c):[].concat(r),i],c=s[0],p=s.reduce((u,m)=>{let y=fc(e,m,n);return u.top=Ao(y.top,u.top),u.right=$a(y.right,u.right),u.bottom=$a(y.bottom,u.bottom),u.left=Ao(y.left,u.left),u},fc(e,c,n));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Cf(t){return yc(t)}function wf(t,e,r){let i=_t(e),n=ur(e),a=r==="fixed",s=ri(t,!0,a,e),c={scrollLeft:0,scrollTop:0},p=dr(0);if(i||!i&&!a)if((pr(e)!=="body"||Ro(n))&&(c=ti(e)),i){let u=ri(e,!0,a,e);p.x=u.x+e.clientLeft,p.y=u.y+e.clientTop}else n&&(p.x=bc(n));return{x:s.left+c.scrollLeft-p.x,y:s.top+c.scrollTop-p.y,width:s.width,height:s.height}}function hc(t,e){return!_t(t)||ct(t).position==="fixed"?null:e?e(t):t.offsetParent}function vc(t,e){let r=ot(t);if(!_t(t))return r;let i=hc(t,e);for(;i&&dc(i)&&ct(i).position==="static";)i=hc(i,e);return i&&(pr(i)==="html"||pr(i)==="body"&&ct(i).position==="static"&&!Di(i))?r:i||pc(t)||r}var Ef=async function(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||vc,a=this.getDimensions;return{reference:wf(e,await n(r),i),floating:{x:0,y:0,...await a(r)}}};function Af(t){return ct(t).direction==="rtl"}var Mi={convertOffsetParentRelativeRectToViewportRelativeRect:mf,getDocumentElement:ur,getClippingRect:Of,getOffsetParent:vc,getElementRects:Ef,getClientRects:gf,getDimensions:Cf,getScale:Lo,isElement:Zt,isRTL:Af};var Sc=(t,e,r)=>{let i=new Map,n={platform:Mi,...r},a={...n.platform,_c:i};return sc(t,e,{...n,platform:a})};function Oc(t){return Rf(t)}function Na(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Rf(t){for(let e=t;e;e=Na(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Na(t);e;e=Na(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 Cc(t,e,r){return Sc(t,e,{platform:{...Mi,getOffsetParent:i=>Mi.getOffsetParent(i,Oc)},middleware:[Ta({crossAxis:!0}),ka({allowedPlacements:[r]})]})}var Mo=f(w());var cp=f(w());var fd=f(k()),ze=f(ee()),Pt=f(w());var wc=f(k());var Ec=wc.css`
|
|
566
|
+
`;var zi=f(w()),Lf="ft-app-info",Yr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Yr.eventName="authentication-change";var If={session:(t,e)=>{(0,zi.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>I.dispatchEvent(new Yr(e.payload)),0))}},I=zi.FtReduxStore.get({name:Lf,reducers:If,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var _a=f(w());var Xr=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=I.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=I.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var Ui=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Xr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Xr.await()}};var dt=class extends Ui{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[p])=>c.localeCompare(p)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new _a.CacheRegistry,this.cache=e?n.commonCache:new _a.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Hi=class extends dt{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 Pa=class{addCommand(e,r=!1){I.commands.add(e,r)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Pa;var St=f(w());var Ac,Io=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},kf=Symbol("clearAfterUnitTest"),Wi=class extends(0,St.withEventBus)(dt){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ac]=()=>{this.defaultMessages={},this.cache=new St.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 i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,St.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new St.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(n){!(n instanceof St.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Io({loadedContexts:e})),this.dispatchEvent(new Io({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Io({loadedContexts:[e]})),this.dispatchEvent(new Io({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,St.delay)(0).then(()=>i()).catch(()=>null)))}};Ac=kf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Wi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Wi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var oi=window.FluidTopicsI18nService,Ba=window.FluidTopicsCustomI18nService;var Rc=f(w()),Da=class{highlightHtml(e,r,i){(0,Rc.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Da;var $f=f(Ic(),1);var kc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(kc||(kc={}));var Tc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Tc||(Tc={}));var $c;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})($c||($c={}));var Nc;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Nc||(Nc={}));var _c;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(_c||(_c={}));var Pc;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Pc||(Pc={}));var Bc;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(Bc||(Bc={}));var Dc;(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"})(Dc||(Dc={}));var Fc;(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",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(Fc||(Fc={}));var Mc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Mc||(Mc={}));var zc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(zc||(zc={}));var Uc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Uc||(Uc={}));var Hc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Hc||(Hc={}));var Wc;(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"})(Wc||(Wc={}));var Vc;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Vc||(Vc={}));var Gc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Gc||(Gc={}));var jc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(jc||(jc={}));var Kc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Kc||(Kc={}));var Zc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Zc||(Zc={}));var qc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(qc||(qc={}));var Yc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Yc||(Yc={}));var Xc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Xc||(Xc={}));var Qc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Qc||(Qc={}));var Jc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Jc||(Jc={}));var ed;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(ed||(ed={}));var ke;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(ke||(ke={}));var Ot;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ot||(Ot={}));var td;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(td||(td={}));var rd;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(rd||(rd={}));var od;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(od||(od={}));var id;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(id||(id={}));var nd;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(nd||(nd={}));var Tf={[ke.PERSONAL_BOOK_SHARE_USER]:[ke.PERSONAL_BOOK_USER],[ke.HTML_EXPORT_USER]:[ke.PERSONAL_BOOK_USER],[ke.PDF_EXPORT_USER]:[ke.PERSONAL_BOOK_USER],[ke.KHUB_ADMIN]:[ke.CONTENT_PUBLISHER],[ke.ADMIN]:[ke.KHUB_ADMIN,ke.USERS_ADMIN,ke.PORTAL_ADMIN],[ke.GENERATIVE_AI_EXPORT_USER]:[ke.GENERATIVE_AI_USER]};function ad(t,e){return t===e||(Tf[t]??[]).some(r=>ad(r,e))}function sd(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>ad(i,e))}var ji=class extends dt{async listMySearches(){let{session:e}=I.getState();return sd(e,ke.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var ld=f(w());var Fa=class{isDate(e){var r,i,n,a;return(a=(n=((i=(r=I.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,r){var i,n,a;return ld.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:I.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Fa;var cd=f(w());var ii=class{static get(e,r){var i,n;let a=I.getState(),{lang:s,region:c}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new cd.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,r??`${s}-${c}`)}};var Ma=class{urlToSearchRequest(e){return ii.get().parse(e)}searchRequestToUrl(e){return ii.get().serialize(e)}};window.FluidTopicsUrlService=new Ma;var Or=f(w());var Qr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Qr.eventName="change";var za=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},dd=new za;var Ki=class t extends Or.WithEventBus{static build(){return new t(window.history,dd,()=>window.location,!1)}constructor(e,r,i,n){var a,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Or.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new Qr(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[a,s,c])=>{let p=r(),u={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:typeof c=="string"?c:(c??this.windowLocation()).href};i.apply(n,[u,s,c]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(Qr.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Qr.eventName,e)}currentItem(){return(0,Or.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Or.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Or.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let n=r??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Ki.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var pd=I;function ud(t,e){var r;return pd.getState().authenticationRequired&&!(!((r=pd.getState().session)===null||r===void 0)&&r.sessionAuthenticated)?Promise.resolve(e):t()}var Te=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},de=class extends Pt.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",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=()=>Xr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Pt.CacheRegistry,this.cleanSessionDebouncer=new Pt.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return fd.html`
|
|
567
|
+
<slot></slot>
|
|
568
|
+
`}connectedCallback(){super.connectedCallback(),I.addEventListener(Yr.eventName,this.reloadConfiguration)}disconnectedCallback(){I.addEventListener(Yr.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var r,i,n,a,s,c,p;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("apiIntegrationAppVersion")&&I.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),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("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>oi.addContext(u)),e.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(I.actions.defaultLocales((r=this.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales),I.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),I.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&I.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&I.actions.availableContentLocales((p=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&p!==void 0?p:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}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 updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>ud(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};de.elementDefinitions={};de.styles=Ec;Te([(0,ze.property)()],de.prototype,"baseUrl",void 0);Te([(0,ze.property)()],de.prototype,"apiIntegrationIdentifier",void 0);Te([(0,ze.property)()],de.prototype,"apiIntegrationAppVersion",void 0);Te([(0,ze.property)()],de.prototype,"uiLocale",void 0);Te([(0,Pt.jsonProperty)(null)],de.prototype,"availableUiLocales",void 0);Te([(0,Pt.jsonProperty)(null)],de.prototype,"metadataConfiguration",void 0);Te([(0,ze.property)({type:Boolean})],de.prototype,"editorMode",void 0);Te([(0,ze.property)({type:Boolean})],de.prototype,"noCustom",void 0);Te([(0,ze.property)({type:Boolean})],de.prototype,"openExternalDocumentInNewTab",void 0);Te([(0,ze.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],de.prototype,"noCustomComponent",void 0);Te([(0,ze.property)({type:Boolean})],de.prototype,"withManualResources",void 0);Te([(0,ze.property)({type:Boolean})],de.prototype,"navigatorOnline",void 0);Te([(0,ze.property)({type:Boolean})],de.prototype,"forcedOffline",void 0);Te([(0,ze.property)({type:Object})],de.prototype,"apiProvider",void 0);Te([(0,ze.property)({type:Boolean})],de.prototype,"authenticationRequired",void 0);Te([(0,Pt.jsonProperty)([])],de.prototype,"messageContexts",void 0);Te([(0,Pt.jsonProperty)(void 0)],de.prototype,"session",void 0);Te([(0,ze.state)()],de.prototype,"localesConfiguration",void 0);Te([(0,ze.state)()],de.prototype,"availableContentLocales",void 0);var ps=f(ee());function Nf(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i,n;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!Zi(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Zi(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[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();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(t),r=n.length,r!==a(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!Zi(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Zi(t,e){try{return Nf(t,e)}catch{return!1}}function ni(t,e){return!Zi(t,e)}function qi(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var hd=f(ee(),1);var Ua=t=>{let e=t??{};return(r,i)=>{var n;let a={hasChanged:ni,attribute:!1,...e};(0,hd.property)(a)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:c=>c[i],store:e.store})}};var Yi=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Jr=f(ee(),1);var yd=f(ee(),1);function md(t,e){let r=()=>JSON.parse(JSON.stringify(t));return(0,yd.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return r();try{return JSON.parse(i)}catch{return r()}},toAttribute:i=>JSON.stringify(i)},hasChanged:ni,...e??{}})}var Xi=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,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let n=(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 i)try{await s()}catch(c){n(c);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 bd=f(k(),1);var Qi=globalThis,_f=Qi.ShadowRoot&&(Qi.ShadyCSS===void 0||Qi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,vS=Symbol();var gd=(t,e)=>{if(_f)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),n=Qi.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)}};var Ji=class extends bd.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return gd(i,e.elementStyles),i}};function xd(t,e,...r){var i;let n=t.querySelector(e);for(let a of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var $o=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Cd,vd=Symbol("constructorPrototype"),Sd=Symbol("constructorName"),wd=Symbol("exportpartsDebouncer"),Od=Symbol("dynamicDependenciesLoaded"),To=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};To.eventName="exportparts-updated";var qt=class extends Ji{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Cd]=new Xi(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[wd].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Sd]=this.constructor.name,this[vd]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Sd]&&Object.setPrototypeOf(this,this[vd])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[Od]||(r[Od]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(To.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(To.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new To)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];r=xd(this.shadowRoot,...a)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}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)}}setExportpartsAttribute(e){var r,i,n,a,s,c;let p=b=>b!=null&&b.trim().length>0,u=e.filter(p).map(b=>b.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let b of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let O=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],v=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map($=>$.split(":")[1]))!==null&&c!==void 0?c:[],E=[...O,...v].filter(p).map($=>$.trim());for(let $ of E)m.add($)}if(m.size===0){this.exportparts=void 0;return}let y=[...m.values()].flatMap(b=>u.map(O=>`${b}:${O}--${b}`));this.exportparts=[...this.part,...y].join(", ")}};Cd=wd;$o([(0,Jr.property)()],qt.prototype,"exportpartsPrefix",void 0);$o([md([])],qt.prototype,"exportpartsPrefixes",void 0);$o([(0,Jr.property)({reflect:!0})],qt.prototype,"exportparts",void 0);$o([(0,Jr.property)()],qt.prototype,"customStylesheet",void 0);$o([(0,Jr.property)()],qt.prototype,"elementToFocus",void 0);$o([(0,Jr.state)()],qt.prototype,"useAdoptedStyleSheets",void 0);function en(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var ai=Symbol("internalReduxEventsUnsubscribers"),Cr=Symbol("internalStoresUnsubscribers"),eo=Symbol("internalStores"),Pf=qi(Symbol("withRedux"),function(t){var e,r,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[eo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[eo].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[eo].get(s)}addStore(s,c){var p;c=(p=c??s.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(c),this[eo].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[eo].delete(c)}setupStores(){this.unsubscribeFromStores(),this[eo].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let p=this.constructor.getPropertyOptions(c);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:c)){let u=this.getStore(s.store);u&&(s.store?this[Cr].has(s.store):this[Cr].size>0)&&(this[c]=s.selector(u.getState(),this))}})}subscribeToStore(s,c){var p;this[Cr].set(s,c.subscribe(()=>this.updateFromStores())),this[ai].set(s,[]),en(c)&&c.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||c.name===u.store)){let y=b=>this[m](b);c.addEventListener(u.eventName,y),this[ai].get(s).push(()=>c.removeEventListener(u.eventName,y))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Cr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[Cr].has(s)&&this[Cr].get(s)(),this[Cr].delete(s),(c=this[ai].get(s))===null||c===void 0||c.forEach(p=>p()),this[ai].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=Cr,r=eo,i=ai,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Ed=class extends Pf(qt){};function Ct(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];if(0)var n,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 fr(t){return!!t&&!!t[me]}function Bt(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Wf}(t)||Array.isArray(t)||!!t[$d]||!!(!((e=t.constructor)===null||e===void 0)&&e[$d])||Ya(t)||Xa(t))}function to(t,e,r){r===void 0&&(r=!1),Po(t)===0?(r?Object.keys:_o)(t).forEach(function(i){r&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Po(t){var e=t[me];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Ya(t)?2:Xa(t)?3:0}function No(t,e){return Po(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Bf(t,e){return Po(t)===2?t.get(e):t[e]}function Nd(t,e,r){var i=Po(t);i===2?t.set(e,r):i===3?t.add(r):t[e]=r}function _d(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Ya(t){return Uf&&t instanceof Map}function Xa(t){return Hf&&t instanceof Set}function wr(t){return t.o||t.t}function Qa(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Dd(t);delete e[me];for(var r=_o(e),i=0;i<r.length;i++){var n=r[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function Ja(t,e){return e===void 0&&(e=!1),es(t)||fr(t)||!Bt(t)||(Po(t)>1&&(t.set=t.add=t.clear=t.delete=Df),Object.freeze(t),e&&to(t,function(r,i){return Ja(i,!0)},!0)),t}function Df(){Ct(2)}function es(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Yt(t){var e=qa[t];return e||Ct(18,t),e}function Ff(t,e){qa[t]||(qa[t]=e)}function ja(){return li}function Ha(t,e){e&&(Yt("Patches"),t.u=[],t.s=[],t.v=e)}function tn(t){Ka(t),t.p.forEach(Mf),t.p=null}function Ka(t){t===li&&(li=t.l)}function Ad(t){return li={p:[],l:li,h:t,m:!0,_:0}}function Mf(t){var e=t[me];e.i===0||e.i===1?e.j():e.g=!0}function Wa(t,e){e._=e.p.length;var r=e.p[0],i=t!==void 0&&t!==r;return e.h.O||Yt("ES5").S(e,t,i),i?(r[me].P&&(tn(e),Ct(4)),Bt(t)&&(t=rn(e,t),e.l||on(e,t)),e.u&&Yt("Patches").M(r[me].t,t,e.u,e.s)):t=rn(e,r,[]),tn(e),e.u&&e.v(e.u,e.s),t!==Bd?t:void 0}function rn(t,e,r){if(es(e))return e;var i=e[me];if(!i)return to(e,function(c,p){return Rd(t,i,e,c,p,r)},!0),e;if(i.A!==t)return e;if(!i.P)return on(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Qa(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),to(a,function(c,p){return Rd(t,i,n,c,p,r,s)}),on(t,n,!1),r&&t.u&&Yt("Patches").N(i,r,t.u,t.s)}return i.o}function Rd(t,e,r,i,n,a,s){if(fr(n)){var c=rn(t,n,a&&e&&e.i!==3&&!No(e.R,i)?a.concat(i):void 0);if(Nd(r,i,c),!fr(c))return;t.m=!1}else s&&r.add(n);if(Bt(n)&&!es(n)){if(!t.h.D&&t._<1)return;rn(t,n),e&&e.A.l||on(t,n)}}function on(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ja(e,r)}function Va(t,e){var r=t[me];return(r?wr(r):t)[e]}function Ld(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Object.getPrototypeOf(r)}}function Er(t){t.P||(t.P=!0,t.l&&Er(t.l))}function Ga(t){t.o||(t.o=Qa(t.t))}function Za(t,e,r){var i=Ya(e)?Yt("MapSet").F(e,r):Xa(e)?Yt("MapSet").T(e,r):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:ja(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},p=c,u=ci;s&&(p=[c],u=si);var m=Proxy.revocable(p,u),y=m.revoke,b=m.proxy;return c.k=b,c.j=y,b}(e,r):Yt("ES5").J(e,r);return(r?r.A:ja()).p.push(i),i}function zf(t){return fr(t)||Ct(22,t),function e(r){if(!Bt(r))return r;var i,n=r[me],a=Po(r);if(n){if(!n.P&&(n.i<4||!Yt("ES5").K(n)))return n.t;n.I=!0,i=Id(r,a),n.I=!1}else i=Id(r,a);return to(i,function(s,c){n&&Bf(n.t,s)===c||Nd(i,s,e(c))}),a===3?new Set(i):i}(t)}function Id(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Qa(t)}function Pd(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var u=this[me];return ci.get(u,s)},set:function(u){var m=this[me];ci.set(m,s,u)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][me];if(!p.P)switch(p.i){case 5:i(p)&&Er(p);break;case 4:r(p)&&Er(p)}}}function r(s){for(var c=s.t,p=s.k,u=_o(p),m=u.length-1;m>=0;m--){var y=u[m];if(y!==me){var b=c[y];if(b===void 0&&!No(c,y))return!0;var O=p[y],v=O&&O[me];if(v?v.t!==b:!_d(O,b))return!0}}var E=!!c[me];return u.length!==_o(c).length+(E?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function n(s){s.g&&Ct(3,JSON.stringify(wr(s)))}var a={};Ff("ES5",{J:function(s,c){var p=Array.isArray(s),u=function(y,b){if(y){for(var O=Array(b.length),v=0;v<b.length;v++)Object.defineProperty(O,""+v,t(v,!0));return O}var E=Dd(b);delete E[me];for(var $=_o(E),T=0;T<$.length;T++){var N=$[T];E[N]=t(N,y||!!E[N].enumerable)}return Object.create(Object.getPrototypeOf(b),E)}(p,s),m={i:p?5:4,A:c?c.A:ja(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,me,{value:m,writable:!0}),u},S:function(s,c,p){p?fr(c)&&c[me].A===s&&e(s.p):(s.u&&function u(m){if(m&&typeof m=="object"){var y=m[me];if(y){var b=y.t,O=y.k,v=y.R,E=y.i;if(E===4)to(O,function(Z){Z!==me&&(b[Z]!==void 0||No(b,Z)?v[Z]||u(O[Z]):(v[Z]=!0,Er(y)))}),to(b,function(Z){O[Z]!==void 0||No(O,Z)||(v[Z]=!1,Er(y))});else if(E===5){if(i(y)&&(Er(y),v.length=!0),O.length<b.length)for(var $=O.length;$<b.length;$++)v[$]=!1;else for(var T=b.length;T<O.length;T++)v[T]=!0;for(var N=Math.min(O.length,b.length),z=0;z<N;z++)O.hasOwnProperty(z)||(v[z]=!0),v[z]===void 0&&u(O[z])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var kd,li,ts=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Uf=typeof Map<"u",Hf=typeof Set<"u",Td=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Bd=ts?Symbol.for("immer-nothing"):((kd={})["immer-nothing"]=!0,kd),$d=ts?Symbol.for("immer-draftable"):"__$immer_draftable",me=ts?Symbol.for("immer-state"):"__$immer_state";var Wf=""+Object.prototype.constructor,_o=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Dd=Object.getOwnPropertyDescriptors||function(t){var e={};return _o(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},qa={},ci={get:function(t,e){if(e===me)return t;var r=wr(t);if(!No(r,e))return function(n,a,s){var c,p=Ld(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(n.k):void 0}(t,r,e);var i=r[e];return t.I||!Bt(i)?i:i===Va(t.t,e)?(Ga(t),t.o[e]=Za(t.A.h,i,t)):i},has:function(t,e){return e in wr(t)},ownKeys:function(t){return Reflect.ownKeys(wr(t))},set:function(t,e,r){var i=Ld(wr(t),e);if(i?.set)return i.set.call(t.k,r),!0;if(!t.P){var n=Va(wr(t),e),a=n?.[me];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(_d(r,n)&&(r!==void 0||No(t.t,e)))return!0;Ga(t),Er(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 Va(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ga(t),Er(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=wr(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:r[e]}},defineProperty:function(){Ct(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Ct(12)}},si={};to(ci,function(t,e){si[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),si.deleteProperty=function(t,e){return si.set.call(this,t,e,void 0)},si.set=function(t,e,r){return ci.set.call(this,t[0],e,r,t[0])};var Vf=function(){function t(r){var i=this;this.O=Td,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var p=i;return function(E){var $=this;E===void 0&&(E=c);for(var T=arguments.length,N=Array(T>1?T-1:0),z=1;z<T;z++)N[z-1]=arguments[z];return p.produce(E,function(Z){var X;return(X=a).call.apply(X,[$,Z].concat(N))})}}var u;if(typeof a!="function"&&Ct(6),s!==void 0&&typeof s!="function"&&Ct(7),Bt(n)){var m=Ad(i),y=Za(i,n,void 0),b=!0;try{u=a(y),b=!1}finally{b?tn(m):Ka(m)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(E){return Ha(m,s),Wa(E,m)},function(E){throw tn(m),E}):(Ha(m,s),Wa(u,m))}if(!n||typeof n!="object"){if((u=a(n))===void 0&&(u=n),u===Bd&&(u=void 0),i.D&&Ja(u,!0),s){var O=[],v=[];Yt("Patches").M(n,u,O,v),s(O,v)}return u}Ct(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(u){for(var m=arguments.length,y=Array(m>1?m-1:0),b=1;b<m;b++)y[b-1]=arguments[b];return i.produceWithPatches(u,function(O){return n.apply(void 0,[O].concat(y))})};var s,c,p=i.produce(n,a,function(u,m){s=u,c=m});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,c]}):[p,s,c]},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){Bt(r)||Ct(8),fr(r)&&(r=zf(r));var i=Ad(this),n=Za(this,r,void 0);return n[me].C=!0,Ka(i),n},e.finishDraft=function(r,i){var n=r&&r[me],a=n.A;return Ha(a,i),Wa(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Td&&Ct(20),this.O=r},e.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Yt("Patches").$;return fr(r)?s(r,i):this.produce(r,function(c){return s(c,i)})},t}(),pt=new Vf,Gf=pt.produce,PS=pt.produceWithPatches.bind(pt),BS=pt.setAutoFreeze.bind(pt),DS=pt.setUseProxies.bind(pt),FS=pt.applyPatches.bind(pt),MS=pt.createDraft.bind(pt),zS=pt.finishDraft.bind(pt),nn=Gf;function ro(t){"@babel/helpers - typeof";return ro=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},ro(t)}function Fd(t,e){if(ro(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(ro(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Md(t){var e=Fd(t,"string");return ro(e)=="symbol"?e:e+""}function zd(t,e,r){return(e=Md(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ud(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function rs(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ud(Object(r),!0).forEach(function(i){zd(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ud(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function je(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 Hd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),os=function(){return Math.random().toString(36).substring(7).split("").join(".")},an={INIT:"@@redux/INIT"+os(),REPLACE:"@@redux/REPLACE"+os(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+os()}};function jf(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 is(t,e,r){var i;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(je(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(je(1));return r(is)(t,e)}if(typeof t!="function")throw new Error(je(2));var n=t,a=e,s=[],c=s,p=!1;function u(){c===s&&(c=s.slice())}function m(){if(p)throw new Error(je(3));return a}function y(E){if(typeof E!="function")throw new Error(je(4));if(p)throw new Error(je(5));var $=!0;return u(),c.push(E),function(){if($){if(p)throw new Error(je(6));$=!1,u();var N=c.indexOf(E);c.splice(N,1),s=null}}}function b(E){if(!jf(E))throw new Error(je(7));if(typeof E.type>"u")throw new Error(je(8));if(p)throw new Error(je(9));try{p=!0,a=n(a,E)}finally{p=!1}for(var $=s=c,T=0;T<$.length;T++){var N=$[T];N()}return E}function O(E){if(typeof E!="function")throw new Error(je(10));n=E,b({type:an.REPLACE})}function v(){var E,$=y;return E={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(je(11));function z(){N.next&&N.next(m())}z();var Z=$(z);return{unsubscribe:Z}}},E[Hd]=function(){return this},E}return b({type:an.INIT}),i={dispatch:b,subscribe:y,getState:m,replaceReducer:O},i[Hd]=v,i}function Kf(t){Object.keys(t).forEach(function(e){var r=t[e],i=r(void 0,{type:an.INIT});if(typeof i>"u")throw new Error(je(12));if(typeof r(void 0,{type:an.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(je(13))})}function Wd(t){for(var e=Object.keys(t),r={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(r[n]=t[n])}var a=Object.keys(r),s,c;try{Kf(r)}catch(p){c=p}return function(u,m){if(u===void 0&&(u={}),c)throw c;if(0)var y;for(var b=!1,O={},v=0;v<a.length;v++){var E=a[v],$=r[E],T=u[E],N=$(T,m);if(typeof N>"u"){var z=m&&m.type;throw new Error(je(14))}O[E]=N,b=b||N!==T}return b=b||a.length!==Object.keys(u).length,b?O:u}}function Bo(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Vd(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(je(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=Bo.apply(void 0,c)(n.dispatch),rs(rs({},n),{},{dispatch:a})}}}function Gd(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,t):s(c)}}};return e}var jd=Gd();jd.withExtraArgument=Gd;var ns=jd;var Xd=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[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 i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),Zf=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(m){return p([u,m])}}function p(u){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return r.label++,{value:u[1],done:!1};case 5:r.label++,n=u[1],u=[0];continue;case 7:u=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1],a=u;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(u);break}a[2]&&r.ops.pop(),r.trys.pop();continue}u=e.call(t,r)}catch(m){u=[6,m],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Do=function(t,e){for(var r=0,i=e.length,n=t.length;r<i;r++,n++)t[n]=e[r];return t},qf=Object.defineProperty,Yf=Object.defineProperties,Xf=Object.getOwnPropertyDescriptors,Kd=Object.getOwnPropertySymbols,Qf=Object.prototype.hasOwnProperty,Jf=Object.prototype.propertyIsEnumerable,Zd=function(t,e,r){return e in t?qf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},Ar=function(t,e){for(var r in e||(e={}))Qf.call(e,r)&&Zd(t,r,e[r]);if(Kd)for(var i=0,n=Kd(e);i<n.length;i++){var r=n[i];Jf.call(e,r)&&Zd(t,r,e[r])}return t},as=function(t,e){return Yf(t,Xf(e))},eh=function(t,e,r){return new Promise(function(i,n){var a=function(p){try{c(r.next(p))}catch(u){n(u)}},s=function(p){try{c(r.throw(p))}catch(u){n(u)}},c=function(p){return p.done?i(p.value):Promise.resolve(p.value).then(a,s)};c((r=r.apply(t,e)).next())})};var th=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Bo:Bo.apply(null,arguments)},iO=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function rh(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 oh=function(t){Xd(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Do([void 0],r[0].concat(this)))):new(e.bind.apply(e,Do([void 0],r.concat(this))))},e}(Array),ih=function(t){Xd(e,t);function e(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=t.apply(this,r)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Do([void 0],r[0].concat(this)))):new(e.bind.apply(e,Do([void 0],r.concat(this))))},e}(Array);function cs(t){return Bt(t)?nn(t,function(){}):t}function nh(t){return typeof t=="boolean"}function ah(){return function(e){return sh(e)}}function sh(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,c=new oh;if(r&&(nh(r)?c.push(ns):c.push(ns.withExtraArgument(r.extraArgument))),0){if(n)var p;if(s)var u}return c}var ss=!0;function Qd(t){var e=ah(),r=t||{},i=r.reducer,n=i===void 0?void 0:i,a=r.middleware,s=a===void 0?e():a,c=r.devTools,p=c===void 0?!0:c,u=r.preloadedState,m=u===void 0?void 0:u,y=r.enhancers,b=y===void 0?void 0:y,O;if(typeof n=="function")O=n;else if(rh(n))O=Wd(n);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 v=s;if(typeof v=="function"&&(v=v(e),!ss&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ss&&v.some(function(Z){return typeof Z!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=Vd.apply(void 0,v),$=Bo;p&&($=th(Ar({trace:!ss},typeof p=="object"&&p)));var T=new ih(E),N=T;Array.isArray(b)?N=Do([E],b):typeof b=="function"&&(N=b(T));var z=$.apply(void 0,N);return is(O,m,z)}function Rr(t,e){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Ar(Ar({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(i){return i.type===t},r}function Jd(t){var e={},r=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,n},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,r,i]}function lh(t){return typeof t=="function"}function ch(t,e,r,i){r===void 0&&(r=[]);var n=typeof e=="function"?Jd(e):[e,r,i],a=n[0],s=n[1],c=n[2],p;if(lh(t))p=function(){return cs(t())};else{var u=cs(t);p=function(){return u}}function m(y,b){y===void 0&&(y=p());var O=Do([a[b.type]],s.filter(function(v){var E=v.matcher;return E(b)}).map(function(v){var E=v.reducer;return E}));return O.filter(function(v){return!!v}).length===0&&(O=[c]),O.reduce(function(v,E){if(E)if(fr(v)){var $=v,T=E($,b);return T===void 0?v:T}else{if(Bt(v))return nn(v,function(N){return E(N,b)});var T=E(v,b);if(T===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return v},y)}return m.getInitialState=p,m}function dh(t,e){return t+"/"+e}function ep(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:cs(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(m){var y=i[m],b=dh(e,m),O,v;"reducer"in y?(O=y.reducer,v=y.prepare):O=y,a[m]=O,s[b]=O,c[m]=v?Rr(b,v):Rr(b)});function p(){var m=typeof t.extraReducers=="function"?Jd(t.extraReducers):[t.extraReducers],y=m[0],b=y===void 0?{}:y,O=m[1],v=O===void 0?[]:O,E=m[2],$=E===void 0?void 0:E,T=Ar(Ar({},b),s);return ch(r,function(N){for(var z in T)N.addCase(z,T[z]);for(var Z=0,X=v;Z<X.length;Z++){var tt=X[Z];N.addMatcher(tt.matcher,tt.reducer)}$&&N.addDefaultCase($)})}var u;return{name:e,reducer:function(m,y){return u||(u=p()),u(m,y)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var ph="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",uh=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=ph[Math.random()*64|0];return e},fh=["name","message","stack","code"],ls=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),qd=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),hh=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,i=fh;r<i.length;r++){var n=i[r];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},lO=function(){function t(e,r,i){var n=Rr(e+"/fulfilled",function(m,y,b,O){return{payload:m,meta:as(Ar({},O||{}),{arg:b,requestId:y,requestStatus:"fulfilled"})}}),a=Rr(e+"/pending",function(m,y,b){return{payload:void 0,meta:as(Ar({},b||{}),{arg:y,requestId:m,requestStatus:"pending"})}}),s=Rr(e+"/rejected",function(m,y,b,O,v){return{payload:O,error:(i&&i.serializeError||hh)(m||"Rejected"),meta:as(Ar({},v||{}),{arg:b,requestId:y,rejectedWithValue:!!O,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,p=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 u(m){return function(y,b,O){var v=i?.idGenerator?i.idGenerator(m):uh(),E=new p,$,T=!1;function N(Z){$=Z,E.abort()}var z=function(){return eh(this,null,function(){var Z,X,tt,Wt,Ye,Vt,De;return Zf(this,function(g){switch(g.label){case 0:return g.trys.push([0,4,,5]),Wt=(Z=i?.condition)==null?void 0:Z.call(i,m,{getState:b,extra:O}),mh(Wt)?[4,Wt]:[3,2];case 1:Wt=g.sent(),g.label=2;case 2:if(Wt===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,Ye=new Promise(function(x,_){return E.signal.addEventListener("abort",function(){return _({name:"AbortError",message:$||"Aborted"})})}),y(a(v,m,(X=i?.getPendingMeta)==null?void 0:X.call(i,{requestId:v,arg:m},{getState:b,extra:O}))),[4,Promise.race([Ye,Promise.resolve(r(m,{dispatch:y,getState:b,extra:O,requestId:v,signal:E.signal,abort:N,rejectWithValue:function(x,_){return new ls(x,_)},fulfillWithValue:function(x,_){return new qd(x,_)}})).then(function(x){if(x instanceof ls)throw x;return x instanceof qd?n(x.payload,v,m,x.meta):n(x,v,m)})])];case 3:return tt=g.sent(),[3,5];case 4:return Vt=g.sent(),tt=Vt instanceof ls?s(null,v,m,Vt.payload,Vt.meta):s(Vt,v,m),[3,5];case 5:return De=i&&!i.dispatchConditionRejection&&s.match(tt)&&tt.meta.condition,De||y(tt),[2,tt]}})})}();return Object.assign(z,{abort:N,requestId:v,arg:m,unwrap:function(){return z.then(yh)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function yh(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function mh(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var tp="listener",rp="completed",op="cancelled",cO="task-"+op,dO="task-"+rp,pO=tp+"-"+op,uO=tp+"-"+rp;var ds="listenerMiddleware";var fO=Rr(ds+"/add"),hO=Rr(ds+"/removeAll"),yO=Rr(ds+"/remove");var Yd,mO=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Yd||(Yd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},gh=function(t){return function(e){setTimeout(e,t)}},gO=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:gh(10);Pd();var bh=qi(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),sn=class extends bh(Object){};window.ftReduxStores||(window.ftReduxStores={});var ip=class t extends sn{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(en(a))return a;if(n==null)return;let s=ep({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),c=Qd({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[n.name]=new t(s,c,n.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Yi;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let p=s,u=a[p];return u?(...m)=>{let y=u(...m.map(n));return this.reduxStore.dispatch(y),y}:m=>{this.setState({[p]:n(m)})}}}),this.eventBus=i??this.eventBus}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 ln=class{static format(e,r,i,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,r,i,n)}static getMomentDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let c=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(a);return`${s} ${c}`}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var np=f(w()),cn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},UO=(0,np.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(I)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(c=>c.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?c=>ln.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return cn([(0,ps.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),cn([(0,ps.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),cn([Ua({store:I.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),cn([Ua({store:I.name})],e.prototype,"uiLocale",void 0),e});var un=f(w());var dn=class extends dt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=I.getState().session;return!!e?.sessionAuthenticated}};var pn=class extends dt{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=I.getState().session;return!!e?.sessionAuthenticated}};var xh="ft-user-assets",vh={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Ot).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:n}=e.payload;fs(t,r,[...us(t,r),n]),ap(t,r,1,i),sp(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;fs(t,r,us(t,r).map(n=>n.id===i.id?i:n)),sp(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;fs(t,r,us(t,r).filter(a=>a.id!==n)),ap(t,r,-1,i)}},lp={[Ot.SEARCHES]:"savedSearches",[Ot.BOOKMARKS]:"bookmarks",[Ot.BOOKS]:void 0,[Ot.COLLECTIONS]:void 0},us=(t,e)=>{var r;let i=lp[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},fs=(t,e,r)=>{let i=lp[e];i&&(t[i]=r)},ap=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===Ot.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+r)}},sp=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},ut=un.FtReduxStore.get({name:xh,reducers:vh,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ot).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),hs=class{constructor(e=new dn,r=new pn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Hi,this.savedSearchesService=new ji,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=I.getState();(0,un.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),ut.actions.clearAssetCount(),ut.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),ut.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),ut.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();ut.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();ut.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&ut.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&ut.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(ut.getState().assetCounts.bookmarkByMap).length!==0;e===Ot.BOOKMARKS&&r&&ut.actions.clearBookmarkCountByMap(),ut.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}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;ut.actions.bookmarks(r)}}},Sh=new hs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=Sh);(0,cp.customElement)("ft-app-context")(de);var dp=f(ee());var ys=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Fo=new ys;var Oh=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},pi=Symbol("i18nAttributes"),pp=Symbol("i18nListAttributes"),up=Symbol("i18nProperties"),fn=Symbol("i18nContexts"),di=Symbol("i18nUnsubs"),mn=(0,Mo.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Ba:oi}i18n(a){let{context:s,key:c,message:p}=a,{custom:u,args:m,argsProvider:y}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let b=m??(y?y(this):[]);return this.getI18nService(u).resolveMessage(s,c,...b)}return p}async awaitI18n(a){let{context:s,custom:c}=a;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Fo.isI18nKey(a)){let[c,p]=a.split(".");return this.i18n({custom:!0,context:c,key:p,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,p)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let p=this,u=(m,y,b)=>b?.context&&b.key&&a(m,y,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...m})}:b;(s=this[pi])===null||s===void 0||s.forEach((m,y)=>p[y]=u(m,y,p[y])),(c=this[pp])===null||c===void 0||c.forEach((m,y)=>{var b;return p[y]=(b=p[y])===null||b===void 0?void 0:b.map(O=>u(m,y,O))})}updateI18nProperties(a){var s;(s=this[up])===null||s===void 0||s.forEach((c,p)=>{a(c,p)&&(this[p]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let p=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[fn].set(p,{isCustomContext:c}),this[di].has(p)||this[di].set(p,this.getI18nService(c).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(c).prepareContext(p,s)}hasI18nContext(a){return this[fn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[fn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[di].forEach(a=>a()),this[di].clear()}}return e=fn,r=di,Oh([(0,dp.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),hn=class extends mn(Mo.FtLitElement){},yn=class extends mn(Mo.FtLitElementRedux){};var fp=f(w());var ms=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Fo.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Ch=new ms;var hp=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:fp.hasChanged,converter:Fo,...e}),r[pi]=(n=r[pi])!==null&&n!==void 0?n:new Map,r[pi].set(i,t??{})};var gp=f(w());var gn=f(k()),bn=f(ee()),xn=f(w());var yp=f(k());var mp=yp.css`
|
|
569
|
+
`;var ui=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Dt=class extends yn{constructor(){super(),this.editorMode=!1,this.addStore(I)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":gn.nothing:gn.html`
|
|
570
|
+
<span class="ft-i18n">
|
|
571
|
+
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
572
|
+
</span>
|
|
573
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Dt.elementDefinitions={};Dt.styles=mp;ui([(0,xn.redux)()],Dt.prototype,"editorMode",void 0);ui([(0,bn.property)()],Dt.prototype,"context",void 0);ui([(0,bn.property)()],Dt.prototype,"key",void 0);ui([(0,xn.jsonProperty)([])],Dt.prototype,"args",void 0);ui([(0,bn.property)()],Dt.prototype,"defaultMessage",void 0);(0,gp.customElement)("ft-i18n")(Dt);var Ft=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Oe=class extends hn{constructor(){super(...arguments),this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.ignoreMatchingElements=[],this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new wt.Debouncer,this.revealDebouncer=new wt.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)||this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return bp.html`
|
|
566
574
|
<div part="container"
|
|
567
575
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
568
576
|
<slot part="slot"></slot>
|
|
@@ -571,23 +579,25 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
571
579
|
?hidden=${!this.visible}>
|
|
572
580
|
<div part="tooltip-content" class="ft-tooltip--content">
|
|
573
581
|
<slot name="text"></slot>
|
|
574
|
-
<ft-typography variant="caption" ?hidden=${!this.text
|
|
582
|
+
<ft-typography variant="${Pe.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
|
|
583
|
+
${(r=this.text)===null||r===void 0?void 0:r.message}
|
|
584
|
+
</ft-typography>
|
|
575
585
|
</div>
|
|
576
586
|
</div>
|
|
577
587
|
</div>
|
|
578
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,o){let i=this.manual;this.manual=!0;let n=this.text;this.text=e,await this.show(o),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.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="",xc(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${it.designSystemVariables.transitionDuration}, left ${it.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,it.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};Oe.elementDefinitions={"ft-typography":oe};Oe.styles=Zl;Pt([(0,pt.property)()],Oe.prototype,"text",void 0);Pt([(0,pt.property)({type:Boolean})],Oe.prototype,"manual",void 0);Pt([(0,pt.property)({type:Boolean})],Oe.prototype,"inline",void 0);Pt([(0,it.numberProperty)()],Oe.prototype,"delay",void 0);Pt([(0,pt.property)()],Oe.prototype,"position",void 0);Pt([(0,it.jsonProperty)([])],Oe.prototype,"ignoreMatchingElements",void 0);Pt([(0,pt.queryAssignedNodes)()],Oe.prototype,"slotNodes",void 0);Pt([(0,pt.query)(".ft-tooltip--container")],Oe.prototype,"container",void 0);Pt([(0,pt.query)(".ft-tooltip")],Oe.prototype,"tooltip",void 0);Pt([(0,pt.query)(".ft-tooltip--content")],Oe.prototype,"tooltipContent",void 0);Pt([(0,pt.state)()],Oe.prototype,"visible",void 0);(0,Sc.customElement)("ft-tooltip")(Oe);var Rc=f(w());var ti=f(k()),Sr=f(ee()),Ec=f(w()),Ac=f(Cc());var ut;(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.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CLOUD_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID=""})(ut||(ut={}));var A;(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=""})(A||(A={}));var Ta=new Map([...["abw"].map(t=>[t,A.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,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.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,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.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,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]),Cf=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function wc(t,e){var o,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,c]=(((o=Cf.get(t))!==null&&o!==void 0?o:t)+"/").split("/");return(a=(n=(i=Ta.get(c))!==null&&i!==void 0?i:Ta.get(e))!==null&&n!==void 0?n:Ta.get(s))!==null&&a!==void 0?a:A.UNKNOWN}var Jv={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var Xe;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Xe||(Xe={}));var ri=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},de=class extends Ec.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ti.nothing}render(){let e=this.variant&&Object.values(Xe).includes(this.variant)?this.variant:Xe.fluid_topics,o=e!==Xe.material||!!this.value;return ti.html`
|
|
588
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseenter",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseenter",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}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()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return 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="",Cc(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 ${wt.designSystemVariables.transitionDuration}, left ${wt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}isIgnored(e){return this.manual||(0,wt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}};Oe.elementDefinitions={"ft-typography":oe};Oe.styles=Ql;Ft([hp()],Oe.prototype,"text",void 0);Ft([(0,Et.property)({type:Boolean})],Oe.prototype,"manual",void 0);Ft([(0,Et.property)({type:Boolean})],Oe.prototype,"inline",void 0);Ft([(0,wt.numberProperty)()],Oe.prototype,"delay",void 0);Ft([(0,Et.property)()],Oe.prototype,"position",void 0);Ft([(0,wt.jsonProperty)([])],Oe.prototype,"ignoreMatchingElements",void 0);Ft([(0,Et.queryAssignedNodes)()],Oe.prototype,"slotNodes",void 0);Ft([(0,Et.query)(".ft-tooltip--container")],Oe.prototype,"container",void 0);Ft([(0,Et.query)(".ft-tooltip")],Oe.prototype,"tooltip",void 0);Ft([(0,Et.query)(".ft-tooltip--content")],Oe.prototype,"tooltipContent",void 0);Ft([(0,Et.state)()],Oe.prototype,"visible",void 0);(0,xp.customElement)("ft-tooltip")(Oe);var Ep=f(w());var fi=f(k()),Lr=f(ee()),Cp=f(w()),wp=f(Sp());var ft;(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.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.EYE="",t.SHARE="󨃱",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CLOUD_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID=""})(ft||(ft={}));var A;(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=""})(A||(A={}));var gs=new Map([...["abw"].map(t=>[t,A.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,A.AUDIO]),...["avi"].map(t=>[t,A.AVI]),...["chm","xhs"].map(t=>[t,A.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,A.CODE]),...["csv"].map(t=>[t,A.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,A.DITA]),...["epub"].map(t=>[t,A.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,A.EXCEL]),...["flac"].map(t=>[t,A.FLAC]),...["gif"].map(t=>[t,A.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,A.GZIP]),...["html","htm","xhtml"].map(t=>[t,A.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,A.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,A.JPEG]),...["json"].map(t=>[t,A.JSON]),...["m4a","m4p"].map(t=>[t,A.M4A]),...["mov","qt"].map(t=>[t,A.MOV]),...["mp3"].map(t=>[t,A.MP3]),...["mp4","m4v"].map(t=>[t,A.MP4]),...["ogg","oga"].map(t=>[t,A.OGG]),...["pdf","ps"].map(t=>[t,A.PDF]),...["png"].map(t=>[t,A.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,A.POWERPOINT]),...["rar"].map(t=>[t,A.RAR]),...["stp"].map(t=>[t,A.STP]),...["txt","rtf","md","mdown"].map(t=>[t,A.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,A.VIDEO]),...["wav"].map(t=>[t,A.WAV]),...["wma"].map(t=>[t,A.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,A.WORD]),...["xml","xsl","rdf"].map(t=>[t,A.XML]),...["yaml","yml","x-yaml"].map(t=>[t,A.YAML]),...["zip"].map(t=>[t,A.ZIP])]),wh=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Op(t,e){var r,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,c]=(((r=wh.get(t))!==null&&r!==void 0?r:t)+"/").split("/");return(a=(n=(i=gs.get(c))!==null&&i!==void 0?i:gs.get(e))!==null&&n!==void 0?n:gs.get(s))!==null&&a!==void 0?a:A.UNKNOWN}var ew={[A.ABW]:"#91ABC6",[A.AUDIO]:"#1795E3",[A.AVI]:"#E63324",[A.CHM]:"#71C3EB",[A.CODE]:"#71C3EB",[A.CSV]:"#1F7345",[A.DITA]:"#71C3EB",[A.EPUB]:"#85B926",[A.EXCEL]:"#1F7345",[A.FLAC]:"#1795E3",[A.GIF]:"#59B031",[A.GZIP]:"#F8AB36",[A.HTML]:"#71C3EB",[A.IMAGE]:"#59B031",[A.JPEG]:"#59B031",[A.JSON]:"#71C3EB",[A.M4A]:"#1795E3",[A.MOV]:"#E63324",[A.MP3]:"#1795E3",[A.MP4]:"#E63324",[A.OGG]:"#1795E3",[A.PDF]:"#E44948",[A.PNG]:"#59B031",[A.POWERPOINT]:"#B54A2B",[A.RAR]:"#F8AB36",[A.STP]:"#3764B1",[A.TEXT]:"#3162AB",[A.UNKNOWN]:"#999999",[A.VIDEO]:"#E63324",[A.WAV]:"#1795E3",[A.WMA]:"#1795E3",[A.WORD]:"#3162AB",[A.XML]:"#71C3EB",[A.YAML]:"#71C3EB",[A.ZIP]:"#F8AB36"};var Xe;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Xe||(Xe={}));var hi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},pe=class extends Cp.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=fi.nothing}render(){let e=this.variant&&Object.values(Xe).includes(this.variant)?this.variant:Xe.fluid_topics,r=e!==Xe.material||!!this.value;return fi.html`
|
|
579
589
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
580
|
-
${(0,
|
|
581
|
-
<slot ?hidden=${
|
|
590
|
+
${(0,wp.unsafeHTML)(this.resolvedIcon)}
|
|
591
|
+
<slot ?hidden=${r}></slot>
|
|
582
592
|
</i>
|
|
583
|
-
`}getTextContent(){var e,
|
|
593
|
+
`}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.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 i=this.value||this.getTextContent();switch(this.variant){case Xe.file_format:this.resolvedIcon=(e=A[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Xe.material:this.resolvedIcon=this.value||fi.nothing;break;default:this.resolvedIcon=(r=ft[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};pe.elementDefinitions={};pe.styles=Hl;hi([(0,Lr.property)()],pe.prototype,"variant",void 0);hi([(0,Lr.property)()],pe.prototype,"value",void 0);hi([(0,Lr.property)({reflect:!0,attribute:"aria-hidden"})],pe.prototype,"ariaHidden",void 0);hi([(0,Lr.state)()],pe.prototype,"resolvedIcon",void 0);hi([(0,Lr.query)("slot")],pe.prototype,"slottedContent",void 0);(0,Ep.customElement)("ft-icon")(pe);var Lp=f(w());var Ap=f(k()),Rp=f(w());var oo=class extends Rp.FtLitElement{render(){return Ap.html`
|
|
584
594
|
<div class="ft-loader">
|
|
585
595
|
<div></div>
|
|
586
596
|
<div></div>
|
|
587
597
|
<div></div>
|
|
588
598
|
<div></div>
|
|
589
599
|
</div>
|
|
590
|
-
`}};
|
|
600
|
+
`}};oo.styles=zl;(0,Lp.customElement)("ft-loader")(oo);var Ir=f(k()),bs=f(vt()),Ce=f(ee());var zo=t=>t??we;var $e=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ie=class extends(0,kr.toFtFormComponent)(kr.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!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,r,i;let n=Ir.html`
|
|
591
601
|
<ft-ripple part="ripple"
|
|
592
602
|
?disabled=${this.isDisabled()}
|
|
593
603
|
?activated=${this.activated}
|
|
@@ -595,40 +605,41 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
595
605
|
<ft-or-ftds-typography part="label"
|
|
596
606
|
variant="${this.typographyVariant}"
|
|
597
607
|
element="span"
|
|
598
|
-
class="ft-button--label ${
|
|
608
|
+
class="ft-button--label ${kr.isSafari?"ft-safari-ellipsis-fix":""}"
|
|
599
609
|
?hidden=${!this.hasTextContent()}>
|
|
600
610
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
601
611
|
</ft-or-ftds-typography>
|
|
602
612
|
${this.resolveIcon()}
|
|
603
|
-
`,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?
|
|
613
|
+
`,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?Ir.html`
|
|
604
614
|
<a href="${a}"
|
|
605
615
|
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
606
616
|
part="button"
|
|
607
|
-
class="${(0
|
|
608
|
-
aria-label="${(
|
|
617
|
+
class="${(0,bs.classMap)(this.buttonClasses)}"
|
|
618
|
+
aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
|
|
609
619
|
?disabled=${this.isDisabled()}>
|
|
610
620
|
${n}
|
|
611
621
|
</a>
|
|
612
|
-
`:
|
|
622
|
+
`:Ir.html`
|
|
613
623
|
<button part="button"
|
|
614
|
-
class="${(0
|
|
624
|
+
class="${(0,bs.classMap)(this.buttonClasses)}"
|
|
615
625
|
aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
|
|
616
|
-
aria-haspopup="${
|
|
626
|
+
aria-haspopup="${zo(this.ariaHasPopup)}"
|
|
627
|
+
aria-pressed="${zo(this.ariaPressed)}"
|
|
617
628
|
?disabled=${this.isDisabled()}>
|
|
618
629
|
${n}
|
|
619
630
|
</button>
|
|
620
|
-
`)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?
|
|
631
|
+
`)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Ir.html`
|
|
621
632
|
<ft-tooltip part="tooltip"
|
|
622
633
|
text="${this.getLabel()}"
|
|
623
634
|
position="${this.tooltipPosition}">
|
|
624
635
|
${e}
|
|
625
636
|
</ft-tooltip>
|
|
626
|
-
`:e}resolveIcon(){return this.loading?
|
|
627
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
637
|
+
`:e}resolveIcon(){return this.loading?Ir.html`
|
|
638
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?Ir.html`
|
|
628
639
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
629
|
-
`:
|
|
640
|
+
`:Ir.html`
|
|
630
641
|
<slot part="icon" name="icon"></slot>
|
|
631
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,
|
|
642
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,kr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ie.elementDefinitions={"ft-ripple":Y,"ft-tooltip":Oe,"ft-icon":pe,"ft-loader":oo};$e([(0,Ce.property)()],ie.prototype,"href",void 0);$e([(0,Ce.property)()],ie.prototype,"target",void 0);$e([(0,Ce.property)()],ie.prototype,"type",void 0);$e([(0,Ce.property)({type:Boolean})],ie.prototype,"disabled",void 0);$e([(0,Ce.property)()],ie.prototype,"label",void 0);$e([(0,Ce.property)()],ie.prototype,"icon",void 0);$e([(0,Ce.property)()],ie.prototype,"iconVariant",void 0);$e([(0,Ce.property)({type:Boolean})],ie.prototype,"trailingIcon",void 0);$e([(0,Ce.property)({type:Boolean})],ie.prototype,"loading",void 0);$e([(0,Ce.property)({attribute:"aria-label"})],ie.prototype,"ariaLabel",void 0);$e([(0,Ce.property)()],ie.prototype,"ariaHasPopup",void 0);$e([(0,Ce.property)({attribute:"aria-pressed"})],ie.prototype,"ariaPressed",void 0);$e([(0,Ce.property)()],ie.prototype,"tooltipPosition",void 0);$e([(0,Ce.property)({type:Boolean})],ie.prototype,"hideTooltip",void 0);$e([(0,Ce.property)({type:Boolean})],ie.prototype,"forceTooltip",void 0);$e([(0,Ce.property)({type:Boolean})],ie.prototype,"activated",void 0);$e([(0,Ce.query)(".ft-button")],ie.prototype,"button",void 0);$e([(0,Ce.query)(".ft-button--label slot")],ie.prototype,"slottedContent",void 0);$e([(0,Ce.query)("[part=tooltip]")],ie.prototype,"tooltip",void 0);var vn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ae=class extends ie{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 Pe.button}};Ae.elementDefinitions={...ie.elementDefinitions,"ft-or-ftds-typography":oe};Ae.styles=[Ip.safariEllipsisFix,jl];vn([(0,yi.property)({type:Boolean})],Ae.prototype,"primary",void 0);vn([(0,yi.property)({type:Boolean})],Ae.prototype,"outlined",void 0);vn([(0,yi.property)({type:Boolean})],Ae.prototype,"dense",void 0);vn([(0,yi.property)({type:Boolean})],Ae.prototype,"round",void 0);var mi=f(ee()),On=f(w());var kp=f(k()),C=f(w());var xs={...h,iconOnlyScale:C.FtCssVariableFactory.create("--ft-button-icon-only-scale","","NUMBER","1")},Tp=[kp.css`
|
|
632
643
|
:host {
|
|
633
644
|
display: inline-block;
|
|
634
645
|
max-width: 100%;
|
|
@@ -711,7 +722,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
711
722
|
}
|
|
712
723
|
|
|
713
724
|
.ft-button.ft-button--icon-only ft-icon {
|
|
714
|
-
transform: scale(${
|
|
725
|
+
transform: scale(${xs.iconOnlyScale});
|
|
715
726
|
}
|
|
716
727
|
|
|
717
728
|
/** Brand Primary styles **/
|
|
@@ -1098,15 +1109,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1098
1109
|
.ftds--size-small.ft-button--icon-only {
|
|
1099
1110
|
width: ${h.smallIconOnlyWidth};
|
|
1100
1111
|
}
|
|
1101
|
-
`,C.noTextSelect];var
|
|
1112
|
+
`,C.noTextSelect];var Sn=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},At=class extends(0,On.toFtdsBase)(ie){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=br.brand,this.iconVariant=Xe.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 Tt.large:return lt.body2medium;case Tt.medium:return lt.caption1medium;case Tt.small:return lt.caption2medium}}};At.elementDefinitions={...ie.elementDefinitions,"ft-or-ftds-typography":$t};At.styles=[On.safariEllipsisFix,Tp];Sn([(0,mi.property)({type:Boolean})],At.prototype,"primary",void 0);Sn([(0,mi.property)({type:Boolean})],At.prototype,"secondary",void 0);Sn([(0,mi.property)({type:Boolean})],At.prototype,"tertiary",void 0);Sn([(0,mi.property)({type:Boolean})],At.prototype,"round",void 0);(0,vs.customElement)("ft-button")(Ae);(0,vs.customElement)("ftds-button")(At);var Dp=f(w());var _p=f(k()),Xt=f(ee()),Pp=f(w()),Bp=f(vt());var Ue=f(w()),$p=f(k());var ht={textColor:Ue.FtCssVariableFactory.extend("--ft-checkbox-text-color","",Ue.designSystemVariables.colorOnSurfaceHigh),fontSize:Ue.FtCssVariableFactory.extend("--ft-checkbox-font-size","",L.fontSize),activeColor:Ue.FtCssVariableFactory.extend("--ft-checkbox-active-color","",Ue.designSystemVariables.colorPrimary),checkColor:Ue.FtCssVariableFactory.extend("--ft-checkbox-check-color","",Ue.designSystemVariables.colorOnPrimary),borderColor:Ue.FtCssVariableFactory.extend("--ft-checkbox-border-color","",Ue.designSystemVariables.colorOnSurfaceMedium),disabledColor:Ue.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",Ue.designSystemVariables.colorOnSurfaceDisabled),errorColor:Ue.FtCssVariableFactory.extend("--ft-checkbox-error-color","",Ue.designSystemVariables.colorError)},Np=$p.css`
|
|
1102
1113
|
* {
|
|
1103
1114
|
box-sizing: border-box;
|
|
1104
1115
|
}
|
|
1105
1116
|
|
|
1106
1117
|
.ft-checkbox {
|
|
1107
1118
|
box-sizing: border-box;
|
|
1108
|
-
color: ${
|
|
1109
|
-
font-size: ${
|
|
1119
|
+
color: ${ht.textColor};
|
|
1120
|
+
font-size: ${ht.fontSize};
|
|
1110
1121
|
|
|
1111
1122
|
display: inline-flex;
|
|
1112
1123
|
align-items: center;
|
|
@@ -1114,7 +1125,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1114
1125
|
}
|
|
1115
1126
|
|
|
1116
1127
|
.ft-checkbox--disabled {
|
|
1117
|
-
color: ${
|
|
1128
|
+
color: ${ht.disabledColor};
|
|
1118
1129
|
}
|
|
1119
1130
|
|
|
1120
1131
|
input {
|
|
@@ -1138,26 +1149,26 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1138
1149
|
|
|
1139
1150
|
.ft-checkbox--box {
|
|
1140
1151
|
display: flex;
|
|
1141
|
-
border: 2px solid ${
|
|
1152
|
+
border: 2px solid ${ht.borderColor};
|
|
1142
1153
|
border-radius: 2px;
|
|
1143
1154
|
|
|
1144
1155
|
width: 18px;
|
|
1145
1156
|
height: 18px;
|
|
1146
1157
|
|
|
1147
|
-
color: ${
|
|
1158
|
+
color: ${ht.checkColor};
|
|
1148
1159
|
}
|
|
1149
1160
|
|
|
1150
1161
|
|
|
1151
1162
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
1152
1163
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
1153
|
-
border-color: ${
|
|
1154
|
-
background-color: ${
|
|
1164
|
+
border-color: ${ht.activeColor};
|
|
1165
|
+
background-color: ${ht.activeColor};
|
|
1155
1166
|
}
|
|
1156
1167
|
|
|
1157
1168
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
1158
|
-
border-color: ${
|
|
1169
|
+
border-color: ${ht.disabledColor};
|
|
1159
1170
|
background-color: transparent;
|
|
1160
|
-
color: ${
|
|
1171
|
+
color: ${ht.disabledColor};
|
|
1161
1172
|
}
|
|
1162
1173
|
|
|
1163
1174
|
.ft-checkbox--checkmark {
|
|
@@ -1178,21 +1189,21 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1178
1189
|
}
|
|
1179
1190
|
|
|
1180
1191
|
.ft-checkbox.ft-checkbox--error {
|
|
1181
|
-
color: ${
|
|
1182
|
-
${(0,
|
|
1192
|
+
color: ${ht.errorColor};
|
|
1193
|
+
${(0,Ue.setVariable)(S.color,ht.errorColor)};
|
|
1183
1194
|
|
|
1184
1195
|
.ft-checkbox--box {
|
|
1185
|
-
border-color: ${
|
|
1196
|
+
border-color: ${ht.errorColor};
|
|
1186
1197
|
}
|
|
1187
1198
|
|
|
1188
1199
|
&.ft-checkbox--checked, &.ft-checkbox--indeterminate {
|
|
1189
1200
|
.ft-checkbox--box {
|
|
1190
|
-
background-color: ${
|
|
1201
|
+
background-color: ${ht.errorColor};
|
|
1191
1202
|
}
|
|
1192
1203
|
}
|
|
1193
1204
|
}
|
|
1194
|
-
`;var
|
|
1195
|
-
<label class="${(0,
|
|
1205
|
+
`;var Tr=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ke=class extends Pp.FtLitElement{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}render(){let e={"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return _p.html`
|
|
1206
|
+
<label class="${(0,Bp.classMap)(e)}" for="checkbox-input" part="checkbox-label">
|
|
1196
1207
|
<div class="ft-checkbox--box-container" part="checkbox-box-container">
|
|
1197
1208
|
<ft-ripple part="checkbox-ripple"
|
|
1198
1209
|
?disabled=${this.disabled}
|
|
@@ -1218,8 +1229,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1218
1229
|
<slot></slot>
|
|
1219
1230
|
</ft-typography>
|
|
1220
1231
|
</label>
|
|
1221
|
-
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var
|
|
1222
|
-
<div class="${(0,
|
|
1232
|
+
`}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()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};Ke.elementDefinitions={"ft-ripple":Y,"ft-typography":oe};Ke.styles=Np;Tr([(0,Xt.property)()],Ke.prototype,"name",void 0);Tr([(0,Xt.property)({type:Boolean,reflect:!0})],Ke.prototype,"checked",void 0);Tr([(0,Xt.property)({type:Boolean})],Ke.prototype,"indeterminate",void 0);Tr([(0,Xt.property)({type:Boolean})],Ke.prototype,"disabled",void 0);Tr([(0,Xt.property)({type:Boolean})],Ke.prototype,"error",void 0);Tr([(0,Xt.query)(".ft-checkbox")],Ke.prototype,"container",void 0);Tr([(0,Xt.query)("ft-ripple")],Ke.prototype,"ripple",void 0);Tr([(0,Xt.query)("input")],Ke.prototype,"input",void 0);(0,Dp.customElement)("ft-checkbox")(Ke);var xi=f(w());var Fp=f(k()),Qt=f(ee()),Mp=f(w()),zp=f(vt());var $r=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Cn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},He=class extends Mp.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}get typographyVariant(){return""}render(){return Fp.html`
|
|
1233
|
+
<div class="${(0,zp.classMap)(this.radioClasses)}"
|
|
1223
1234
|
@click=${this.onClick}>
|
|
1224
1235
|
<div class="ft-radio--box-container">
|
|
1225
1236
|
<ft-ripple
|
|
@@ -1244,15 +1255,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1244
1255
|
</ft-or-ftds-typography>
|
|
1245
1256
|
</label>
|
|
1246
1257
|
</div>
|
|
1247
|
-
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new
|
|
1258
|
+
`}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Cn(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 Cn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};He.elementDefinitions={"ft-ripple":Y};$r([(0,Qt.property)()],He.prototype,"value",void 0);$r([(0,Qt.property)()],He.prototype,"name",void 0);$r([(0,Qt.property)({type:Boolean,reflect:!0})],He.prototype,"checked",void 0);$r([(0,Qt.property)({attribute:"aria-checked",reflect:!0})],He.prototype,"ariaChecked",void 0);$r([(0,Qt.property)({type:Boolean})],He.prototype,"disabled",void 0);$r([(0,Qt.query)(".ft-radio")],He.prototype,"container",void 0);$r([(0,Qt.query)("ft-ripple")],He.prototype,"ripple",void 0);$r([(0,Qt.query)("input")],He.prototype,"input",void 0);var Up=f(k()),it=f(w());var Nr={textColor:it.FtCssVariableFactory.extend("--ft-radio-text-color","",it.designSystemVariables.colorOnSurfaceHigh),fontSize:it.FtCssVariableFactory.extend("--ft-radio-font-size","",L.fontSize),colorPrimary:it.FtCssVariableFactory.external(it.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:it.FtCssVariableFactory.external(it.designSystemVariables.colorOnPrimary,"Design system"),borderColor:it.FtCssVariableFactory.extend("--ft-radio-border-color","",it.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:it.FtCssVariableFactory.external(it.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Hp=Up.css`
|
|
1248
1259
|
* {
|
|
1249
1260
|
box-sizing: border-box;
|
|
1250
1261
|
}
|
|
1251
1262
|
|
|
1252
1263
|
.ft-radio {
|
|
1253
1264
|
box-sizing: border-box;
|
|
1254
|
-
color: ${
|
|
1255
|
-
font-size: ${
|
|
1265
|
+
color: ${Nr.textColor};
|
|
1266
|
+
font-size: ${Nr.fontSize};
|
|
1256
1267
|
|
|
1257
1268
|
display: inline-flex;
|
|
1258
1269
|
align-items: center;
|
|
@@ -1260,7 +1271,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1260
1271
|
}
|
|
1261
1272
|
|
|
1262
1273
|
.ft-radio--disabled {
|
|
1263
|
-
color: ${
|
|
1274
|
+
color: ${Nr.colorOnSurfaceDisabled};
|
|
1264
1275
|
}
|
|
1265
1276
|
|
|
1266
1277
|
input {
|
|
@@ -1283,7 +1294,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1283
1294
|
}
|
|
1284
1295
|
|
|
1285
1296
|
.ft-radio--box {
|
|
1286
|
-
border: 2px solid ${
|
|
1297
|
+
border: 2px solid ${Nr.borderColor};
|
|
1287
1298
|
border-radius: 50%;
|
|
1288
1299
|
|
|
1289
1300
|
display: flex;
|
|
@@ -1296,7 +1307,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1296
1307
|
|
|
1297
1308
|
.ft-radio--box:after {
|
|
1298
1309
|
content: " ";
|
|
1299
|
-
background-color: ${
|
|
1310
|
+
background-color: ${Nr.colorPrimary};
|
|
1300
1311
|
|
|
1301
1312
|
border-radius: 50%;
|
|
1302
1313
|
|
|
@@ -1308,7 +1319,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1308
1319
|
}
|
|
1309
1320
|
|
|
1310
1321
|
.ft-radio--checked .ft-radio--box {
|
|
1311
|
-
border-color: ${
|
|
1322
|
+
border-color: ${Nr.colorPrimary};
|
|
1312
1323
|
}
|
|
1313
1324
|
|
|
1314
1325
|
|
|
@@ -1317,23 +1328,23 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1317
1328
|
}
|
|
1318
1329
|
|
|
1319
1330
|
.ft-radio--disabled .ft-radio--box {
|
|
1320
|
-
border-color: ${
|
|
1331
|
+
border-color: ${Nr.colorOnSurfaceDisabled};
|
|
1321
1332
|
background-color: transparent;
|
|
1322
1333
|
}
|
|
1323
1334
|
|
|
1324
1335
|
.ft-radio--disabled .ft-radio--box:after {
|
|
1325
|
-
background-color: ${
|
|
1336
|
+
background-color: ${Nr.colorOnSurfaceDisabled};
|
|
1326
1337
|
}
|
|
1327
1338
|
|
|
1328
1339
|
.ft-radio:has(:focus-visible) {
|
|
1329
|
-
outline: 2px solid ${
|
|
1340
|
+
outline: 2px solid ${it.designSystemVariables.colorPrimary};
|
|
1330
1341
|
outline-offset: -2px;
|
|
1331
1342
|
}
|
|
1332
1343
|
|
|
1333
1344
|
.ft-radio ft-or-ftds-typography {
|
|
1334
1345
|
padding-right: 2px;
|
|
1335
1346
|
}
|
|
1336
|
-
`;var
|
|
1347
|
+
`;var Jt=class extends He{get typographyVariant(){return Pe.body2}};Jt.elementDefinitions={...He.elementDefinitions,"ft-or-ftds-typography":oe};Jt.styles=Hp;var wn=f(w());var Wp=f(k()),U=f(w());var Vp=Wp.css`
|
|
1337
1348
|
* {
|
|
1338
1349
|
box-sizing: border-box;
|
|
1339
1350
|
--input-size: calc(${U.radio.circleSize} + 2 * (${U.radio.focusOutlineOffset} + ${U.radio.focusOutlineWidth}));
|
|
@@ -1441,12 +1452,12 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1441
1452
|
.ft-radio ft-or-ftds-typography {
|
|
1442
1453
|
padding-right: 2px;
|
|
1443
1454
|
}
|
|
1444
|
-
`;var
|
|
1455
|
+
`;var Uo=class extends(0,wn.toFtdsBase)(He){constructor(){super(...arguments),this.family=br.brand}get radioClasses(){return{...super.radioClasses,...this.getDesignSystemBaseClasses()}}get typographyVariant(){return lt.body2medium}};Uo.elementDefinitions={...He.elementDefinitions,"ft-or-ftds-typography":oe};Uo.styles=[wn.safariEllipsisFix,Vp];var Gp=f(w()),_r=f(ee()),jp=f(k()),gi=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Rt=class extends Gp.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)},this.onFocusOut=e=>{}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return jp.html`
|
|
1445
1456
|
<slot @slotchange=${this.onSlotChange}
|
|
1446
1457
|
@change=${this.onChange}
|
|
1447
1458
|
@keydown=${this.onKeyDown}
|
|
1448
1459
|
></slot>
|
|
1449
|
-
`}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(
|
|
1460
|
+
`}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 i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].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,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Rt.elementDefinitions={};gi([(0,_r.property)()],Rt.prototype,"name",void 0);gi([(0,_r.property)({reflect:!0,attribute:"role"})],Rt.prototype,"role",void 0);gi([(0,_r.property)({reflect:!0,attribute:"aria-labelledby"})],Rt.prototype,"ariaLabelledBy",void 0);gi([(0,_r.queryAssignedElements)()],Rt.prototype,"assignedElements",void 0);gi([(0,_r.state)()],Rt.prototype,"currentSelectedIndex",void 0);var Kp=f(k());var Zp=Kp.css`
|
|
1450
1461
|
:host {
|
|
1451
1462
|
display: block;
|
|
1452
1463
|
}
|
|
@@ -1454,17 +1465,17 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1454
1465
|
:host(:focus-visible) {
|
|
1455
1466
|
outline: none;
|
|
1456
1467
|
}
|
|
1457
|
-
`;var
|
|
1468
|
+
`;var io=class extends Rt{};io.styles=Zp;var En=f(w());var qp=f(k()),Yp=f(w()),Xp=qp.css`
|
|
1458
1469
|
:host {
|
|
1459
1470
|
display: flex;
|
|
1460
1471
|
flex-direction: column;
|
|
1461
|
-
gap: ${
|
|
1472
|
+
gap: ${Yp.radio.verticalGap}
|
|
1462
1473
|
}
|
|
1463
1474
|
|
|
1464
1475
|
:host(:focus-visible) {
|
|
1465
1476
|
outline: none;
|
|
1466
1477
|
}
|
|
1467
|
-
`;var
|
|
1478
|
+
`;var bi=class extends(0,En.toFtdsBase)(Rt){constructor(){super(...arguments),this.family=br.brand}};bi.styles=[En.safariEllipsisFix,Xp];(0,xi.customElement)("ft-radio")(Jt);(0,xi.customElement)("ftds-radio")(Uo);(0,xi.customElement)("ft-radio-group")(io);(0,xi.customElement)("ftds-radio-group")(bi);var Qp=f(k()),ae=f(w());var vi={buttonMoreColor:ae.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",ae.designSystemVariables.colorOnSurface),borderRadiusM:ae.FtCssVariableFactory.external(ae.designSystemVariables.borderRadiusM,"Design system"),colorOutline:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:ae.FtCssVariableFactory.external(Ie.fontFamily,"Body2 typography"),fontSize:ae.FtCssVariableFactory.external(Ie.fontSize,"Body2 typography"),fontWeight:ae.FtCssVariableFactory.external(Ie.fontWeight,"Body2 typography"),letterSpacing:ae.FtCssVariableFactory.external(Ie.letterSpacing,"Body2 typography"),lineHeight:ae.FtCssVariableFactory.external(Ie.lineHeight,"Body2 typography"),textTransform:ae.FtCssVariableFactory.external(Ie.textTransform,"Body2 typography")},Jp=Qp.css`
|
|
1468
1479
|
.ft-filter-level--container {
|
|
1469
1480
|
display: flex;
|
|
1470
1481
|
flex-direction: column;
|
|
@@ -1478,14 +1489,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1478
1489
|
flex-shrink: 0;
|
|
1479
1490
|
text-decoration: none;
|
|
1480
1491
|
position: relative;
|
|
1481
|
-
border-radius: ${
|
|
1492
|
+
border-radius: ${vi.borderRadiusM};
|
|
1482
1493
|
overflow: hidden;
|
|
1483
1494
|
display: flex;
|
|
1484
1495
|
align-items: center;
|
|
1485
1496
|
padding: 4px 4px;
|
|
1486
1497
|
gap: 4px;
|
|
1487
1498
|
cursor: pointer;
|
|
1488
|
-
color: ${
|
|
1499
|
+
color: ${vi.colorOnSurface};
|
|
1489
1500
|
}
|
|
1490
1501
|
|
|
1491
1502
|
.ft-filter-level--go-back:focus {
|
|
@@ -1514,11 +1525,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1514
1525
|
}
|
|
1515
1526
|
|
|
1516
1527
|
ft-button {
|
|
1517
|
-
${(0,ae.setVariable)(q.color,
|
|
1528
|
+
${(0,ae.setVariable)(q.color,vi.colorOnSurface)};
|
|
1518
1529
|
}
|
|
1519
1530
|
|
|
1520
1531
|
ft-button.ft-filter-level--display-more {
|
|
1521
|
-
${(0,ae.setVariable)(q.color,
|
|
1532
|
+
${(0,ae.setVariable)(q.color,vi.buttonMoreColor)};
|
|
1522
1533
|
}
|
|
1523
1534
|
|
|
1524
1535
|
ft-radio, ft-checkbox {
|
|
@@ -1532,19 +1543,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1532
1543
|
|
|
1533
1544
|
.ft-filter-level--no-values {
|
|
1534
1545
|
margin: 10px 0;
|
|
1535
|
-
color: ${
|
|
1546
|
+
color: ${vi.colorOnSurfaceMedium};
|
|
1536
1547
|
}
|
|
1537
|
-
`;var
|
|
1538
|
-
`;var Mo=f(w());var Wp=f(w());var Kd=f(k()),Ue=f(ee()),Bt=f(w());var id=f(k());var nd=id.css`
|
|
1539
|
-
`;var Vi=f(w()),wf="ft-app-info",Qr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Qr.eventName="authentication-change";var Ef={session:(t,e)=>{(0,Vi.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>I.dispatchEvent(new Qr(e.payload)),0))}},I=Vi.FtReduxStore.get({name:wf,reducers:Ef,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Pa=f(w());var Jr=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:i}=I.getState(),n=e??i;if(o&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,n,!0)}static await(e){return new Promise(o=>{let i=t.get(e);if(i)o(i);else{let n=I.subscribe(()=>{i=t.get(e),i&&(n(),o(i))})}})}};var Gi=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Jr.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Jr.await()}};var ht=class extends Gi{constructor(e=!0,o){var i;super(o),this.sortObjectFields=(a,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([c],[p])=>c.localeCompare(p)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Pa.CacheRegistry,this.cache=e?n.commonCache:new Pa.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((o,i)=>0|31*o+i.charCodeAt(0),0))}};var ji=class extends ht{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 Ba=class{addCommand(e,o=!1){I.commands.add(e,o)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ba;var Et=f(w());var ad,ko=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},Af=Symbol("clearAfterUnitTest"),Ki=class extends(0,Et.withEventBus)(ht){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ad]=()=>{this.defaultMessages={},this.cache=new Et.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 o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var i;if(e=e.toLowerCase(),o&&Object.keys(o).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...o};(0,Et.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var o,i;return this.fetchContext(e),(i=(o=this.cache.getNow(e))===null||o===void 0?void 0:o.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,o){let i=e.toLowerCase();return this.resolveContext(i)[o]}resolveMessage(e,o,...i){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Et.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(o,...i)}async fetchContext(e){let o=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),o&&await this.notify(e)}catch(n){!(n instanceof Et.CanceledPromiseError)&&o&&console.error(n)}return i}subscribe(e,o){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(o),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(o)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ko({loadedContexts:e})),this.dispatchEvent(new ko({loadedContexts:e})),await Promise.all(e.map(o=>this.notify(o,!1)))}async notify(e,o=!0){o&&(document.body.dispatchEvent(new ko({loadedContexts:[e]})),this.dispatchEvent(new ko({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Et.delay)(0).then(()=>i()).catch(()=>null)))}};ad=Af;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ki{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ki{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var di=window.FluidTopicsI18nService,Da=window.FluidTopicsCustomI18nService;var sd=f(w()),Fa=class{highlightHtml(e,o,i){(0,sd.highlightHtml)(e,o,i)}};window.FluidTopicsHighlightHtmlService=new Fa;var Lf=f(cd(),1);var dd;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(dd||(dd={}));var pd;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(pd||(pd={}));var ud;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(ud||(ud={}));var fd;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(fd||(fd={}));var hd;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(hd||(hd={}));var yd;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(yd||(yd={}));var md;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__AI_TRANSLATE="DOCUMENT__AI_TRANSLATE",t.DOCUMENT__DISPLAY="DOCUMENT__DISPLAY",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__DISPLAY="TOPIC__DISPLAY",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(md||(md={}));var gd;(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"})(gd||(gd={}));var bd;(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",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT"})(bd||(bd={}));var xd;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(xd||(xd={}));var vd;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(vd||(vd={}));var Sd;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Sd||(Sd={}));var Od;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Od||(Od={}));var Cd;(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"})(Cd||(Cd={}));var wd;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(wd||(wd={}));var Ed;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ed||(Ed={}));var Ad;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ad||(Ad={}));var Rd;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Rd||(Rd={}));var Ld;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ld||(Ld={}));var Id;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Id||(Id={}));var kd;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(kd||(kd={}));var Td;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Td||(Td={}));var $d;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})($d||($d={}));var Nd;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Nd||(Nd={}));var _d;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(_d||(_d={}));var ke;(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.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_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.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(ke||(ke={}));var At;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(At||(At={}));var Pd;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Pd||(Pd={}));var Bd;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Bd||(Bd={}));var Dd;(function(t){t.USER="USER",t.ASSISTANT="ASSISTANT"})(Dd||(Dd={}));var Fd;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Fd||(Fd={}));var Md;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Md||(Md={}));var Rf={[ke.PERSONAL_BOOK_SHARE_USER]:[ke.PERSONAL_BOOK_USER],[ke.HTML_EXPORT_USER]:[ke.PERSONAL_BOOK_USER],[ke.PDF_EXPORT_USER]:[ke.PERSONAL_BOOK_USER],[ke.KHUB_ADMIN]:[ke.CONTENT_PUBLISHER],[ke.ADMIN]:[ke.KHUB_ADMIN,ke.USERS_ADMIN,ke.PORTAL_ADMIN],[ke.GENERATIVE_AI_EXPORT_USER]:[ke.GENERATIVE_AI_USER]};function zd(t,e){return t===e||(Rf[t]??[]).some(o=>zd(o,e))}function Ud(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>zd(i,e))}var Yi=class extends ht{async listMySearches(){let{session:e}=I.getState();return Ud(e,ke.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Hd=f(w());var Ma=class{isDate(e){var o,i,n,a;return(a=(n=((i=(o=I.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,o){var i,n,a;return Hd.DateFormatter.format(e,(i=o?.locale)!==null&&i!==void 0?i:I.getState().uiLocale,(n=o?.longFormat)!==null&&n!==void 0?n:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Ma;var Wd=f(w());var pi=class{static get(e,o){var i,n;let a=I.getState(),{lang:s,region:c}=(n=(i=a.defaultLocales)===null||i===void 0?void 0:i.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Wd.SearchPlaceConverter(a.baseUrl,e??20,a.searchInAllLanguagesAllowed,o??`${s}-${c}`)}};var za=class{urlToSearchRequest(e){return pi.get().parse(e)}searchRequestToUrl(e){return pi.get().serialize(e)}};window.FluidTopicsUrlService=new za;var Ir=f(w());var eo=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};eo.eventName="change";var Ua=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let o=sessionStorage.getItem(this.itemName(e));return o?JSON.parse(o):void 0}set(e,o){sessionStorage.setItem(this.itemName(e),JSON.stringify(o))}},Vd=new Ua;var Xi=class t extends Ir.WithEventBus{static build(){return new t(window.history,Vd,()=>window.location,!1)}constructor(e,o,i,n){var a,s;super(),this.history=e,this.historyStorage=o,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(a=e.state)===null||a===void 0?void 0:a.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,o=!1){let i=o&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Ir.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new eo(this.currentItem())),0)}installProxies(){let e=o=>(i,n,[a,s,c])=>{let p=o(),u={...p===this.currentIndex?this.currentState:void 0,...a,index:p,href:typeof c=="string"?c:(c??this.windowLocation()).href};i.apply(n,[u,s,c]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let o=this.history.length-1;o>=0;o--)e?this.states[o]=this.historyStorage.get(o):setTimeout(()=>this.states[o]=this.historyStorage.get(o),this.history.length-o)}updateCurrentState(e){var o;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(o=e?.title)!==null&&o!==void 0?o:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(eo.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(eo.eventName,e)}currentItem(){return(0,Ir.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Ir.deepCopy)(this.states[this.previousDifferentMajorPosition()])}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Ir.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var o;let i=(o=this.states[e])===null||o===void 0?void 0:o.majorStateId;if(!i)return e;let n=e,a=e+1;for(;this.states.length>a&&!this.isDifferentMajorState(a,i);)this.hasState(a)&&(n=a),a++;return n}buildCurrentState(){var e,o;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(o=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&o!==void 0?o:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,o){var i;if(!this.hasState(e))return!1;let n=o??this.currentState.majorStateId,a=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return a==null||a!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Xi.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var Gd=I;function jd(t,e){var o;return Gd.getState().authenticationRequired&&!(!((o=Gd.getState().session)===null||o===void 0)&&o.sessionAuthenticated)?Promise.resolve(e):t()}var Te=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},pe=class extends Bt.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",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=()=>Jr.get(),this.authenticationRequired=!1,this.messageContexts=[],this.cache=new Bt.CacheRegistry,this.cleanSessionDebouncer=new Bt.Debouncer,this.reloadConfiguration=()=>{this.cache.clear("availableContentLocales"),this.updateAvailableContentLocales()}}render(){return Kd.html`
|
|
1540
|
-
<slot></slot>
|
|
1541
|
-
`}connectedCallback(){super.connectedCallback(),I.addEventListener(Qr.eventName,this.reloadConfiguration)}disconnectedCallback(){I.addEventListener(Qr.eventName,this.reloadConfiguration),super.disconnectedCallback()}update(e){var o,i,n,a,s,c,p;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("apiIntegrationAppVersion")&&I.actions.apiIntegrationAppVersion(this.apiIntegrationAppVersion),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("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(u=>di.addContext(u)),e.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&I.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(I.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),I.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),I.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),e.has("authenticationRequired")&&I.actions.authenticationRequired(this.authenticationRequired),e.has("availableContentLocales")&&I.actions.availableContentLocales((p=(c=this.availableContentLocales)===null||c===void 0?void 0:c.contentLocales)!==null&&p!==void 0?p:[]),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),this.availableContentLocales==null&&this.updateAvailableContentLocales())}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 updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}async updateAvailableContentLocales(){this.availableContentLocales=await this.cache.get("availableContentLocales",()=>jd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}))}};pe.elementDefinitions={};pe.styles=nd;Te([(0,Ue.property)()],pe.prototype,"baseUrl",void 0);Te([(0,Ue.property)()],pe.prototype,"apiIntegrationIdentifier",void 0);Te([(0,Ue.property)()],pe.prototype,"apiIntegrationAppVersion",void 0);Te([(0,Ue.property)()],pe.prototype,"uiLocale",void 0);Te([(0,Bt.jsonProperty)(null)],pe.prototype,"availableUiLocales",void 0);Te([(0,Bt.jsonProperty)(null)],pe.prototype,"metadataConfiguration",void 0);Te([(0,Ue.property)({type:Boolean})],pe.prototype,"editorMode",void 0);Te([(0,Ue.property)({type:Boolean})],pe.prototype,"noCustom",void 0);Te([(0,Ue.property)({type:Boolean})],pe.prototype,"openExternalDocumentInNewTab",void 0);Te([(0,Ue.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],pe.prototype,"noCustomComponent",void 0);Te([(0,Ue.property)({type:Boolean})],pe.prototype,"withManualResources",void 0);Te([(0,Ue.property)({type:Boolean})],pe.prototype,"navigatorOnline",void 0);Te([(0,Ue.property)({type:Boolean})],pe.prototype,"forcedOffline",void 0);Te([(0,Ue.property)({type:Object})],pe.prototype,"apiProvider",void 0);Te([(0,Ue.property)({type:Boolean})],pe.prototype,"authenticationRequired",void 0);Te([(0,Bt.jsonProperty)([])],pe.prototype,"messageContexts",void 0);Te([(0,Bt.jsonProperty)(void 0)],pe.prototype,"session",void 0);Te([(0,Ue.state)()],pe.prototype,"localesConfiguration",void 0);Te([(0,Ue.state)()],pe.prototype,"availableContentLocales",void 0);var us=f(ee());function If(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let o,i,n;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(i=o;i--!==0;)if(!Qi(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Qi(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[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();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(t),o=n.length,o!==a(e).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=o;i--!==0;){let s=n[i];if(!Qi(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Qi(t,e){try{return If(t,e)}catch{return!1}}function ui(t,e){return!Qi(t,e)}function Ji(t,e){let o=i=>i[t]===!0;return i=>{if(o(i))return i;let n=e(i);return n[t]=!0,n}}var Zd=f(ee(),1);var Ha=t=>{let e=t??{};return(o,i)=>{var n;let a={hasChanged:ui,attribute:!1,...e};(0,Zd.property)(a)(o,i);let s=o.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:c=>c[i],store:e.store})}};var en=class{constructor(){this.queue=[]}add(e,o=!1){o&&this.clear(e.type),this.queue.push(e)}consume(e){let o=this.queue.find(i=>i.type===e);return o&&(this.queue=this.queue.filter(i=>i!==o)),o}clear(e){typeof e=="string"?this.queue=this.queue.filter(o=>o.type!==e):this.queue=this.queue.filter(o=>!e.test(o.type))}};var to=f(ee(),1);var qd=f(ee(),1);function Yd(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,qd.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return o();try{return JSON.parse(i)}catch{return o()}},toAttribute:i=>JSON.stringify(i)},hasChanged:ui,...e??{}})}var tn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,i)=>{this.resolvePromise=o,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let s of i)try{await s()}catch(c){n(c);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 Qd=f(k(),1);var rn=globalThis,kf=rn.ShadowRoot&&(rn.ShadyCSS===void 0||rn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,IC=Symbol();var Xd=(t,e)=>{if(kf)t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet);else for(let o of e){let i=document.createElement("style"),n=rn.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i)}};var on=class extends Qd.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let o={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(o);return Xd(i,e.elementStyles),i}};function Jd(t,e,...o){var i;let n=t.querySelector(e);for(let a of o)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(a);return n}var No=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},op,ep=Symbol("constructorPrototype"),tp=Symbol("constructorName"),ip=Symbol("exportpartsDebouncer"),rp=Symbol("dynamicDependenciesLoaded"),$o=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};$o.eventName="exportparts-updated";var Qt=class extends on{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[op]=new tn(5),this.scheduleExportpartsUpdate=()=>{var e,o,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&i!==void 0&&i)&&this[ip].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[tp]=this.constructor.name,this[ep]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[tp]&&Object.setPrototypeOf(this,this[ep])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let o=this.constructor;o[rp]||(o[rp]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener($o.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener($o.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new $o)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:o,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let a=[...n??[],i];o=Jd(this.shadowRoot,...a)}o?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||o?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var o,i,n;if(((i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}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)}}setExportpartsAttribute(e){var o,i,n,a,s,c;let p=b=>b!=null&&b.trim().length>0,u=e.filter(p).map(b=>b.trim());if(u.length===0){this.exportparts=void 0;return}let m=new Set;for(let b of(i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let O=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],v=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map($=>$.split(":")[1]))!==null&&c!==void 0?c:[],E=[...O,...v].filter(p).map($=>$.trim());for(let $ of E)m.add($)}if(m.size===0){this.exportparts=void 0;return}let y=[...m.values()].flatMap(b=>u.map(O=>`${b}:${O}--${b}`));this.exportparts=[...this.part,...y].join(", ")}};op=ip;No([(0,to.property)()],Qt.prototype,"exportpartsPrefix",void 0);No([Yd([])],Qt.prototype,"exportpartsPrefixes",void 0);No([(0,to.property)({reflect:!0})],Qt.prototype,"exportparts",void 0);No([(0,to.property)()],Qt.prototype,"customStylesheet",void 0);No([(0,to.property)()],Qt.prototype,"elementToFocus",void 0);No([(0,to.state)()],Qt.prototype,"useAdoptedStyleSheets",void 0);function nn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var fi=Symbol("internalReduxEventsUnsubscribers"),kr=Symbol("internalStoresUnsubscribers"),ro=Symbol("internalStores"),Tf=Ji(Symbol("withRedux"),function(t){var e,o,i;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[o]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(c=>s.has(c))&&this.updateFromStores()}getUnnamedStore(){if(this[ro].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[ro].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[ro].get(s)}addStore(s,c){var p;c=(p=c??s.name)!==null&&p!==void 0?p:"default-store",this.unsubscribeFromStore(c),this[ro].set(c,s),this.subscribeToStore(c,s),this.updateFromStores()}removeStore(s){let c=typeof s=="string"?s:s.name;this.unsubscribeFromStore(c),this[ro].delete(c)}setupStores(){this.unsubscribeFromStores(),this[ro].forEach((s,c)=>this.subscribeToStore(c,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,c)=>{let p=this.constructor.getPropertyOptions(c);if(!p?.attribute||!this.hasAttribute(typeof p?.attribute=="string"?p.attribute:c)){let u=this.getStore(s.store);u&&(s.store?this[kr].has(s.store):this[kr].size>0)&&(this[c]=s.selector(u.getState(),this))}})}subscribeToStore(s,c){var p;this[kr].set(s,c.subscribe(()=>this.updateFromStores())),this[fi].set(s,[]),nn(c)&&c.eventBus&&((p=this.reduxConstructor.reduxEventListeners)===null||p===void 0||p.forEach((u,m)=>{if(typeof this[m]=="function"&&(!u.store||c.name===u.store)){let y=b=>this[m](b);c.addEventListener(u.eventName,y),this[fi].get(s).push(()=>c.removeEventListener(u.eventName,y))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[kr].forEach((s,c)=>this.unsubscribeFromStore(c))}unsubscribeFromStore(s){var c;this[kr].has(s)&&this[kr].get(s)(),this[kr].delete(s),(c=this[fi].get(s))===null||c===void 0||c.forEach(p=>p()),this[fi].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=kr,o=ro,i=fi,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),np=class extends Tf(Qt){};function Rt(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function fr(t){return!!t&&!!t[me]}function Dt(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var i=Object.getPrototypeOf(o);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Mf}(t)||Array.isArray(t)||!!t[up]||!!(!((e=t.constructor)===null||e===void 0)&&e[up])||Xa(t)||Qa(t))}function oo(t,e,o){o===void 0&&(o=!1),Bo(t)===0?(o?Object.keys:Po)(t).forEach(function(i){o&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Bo(t){var e=t[me];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Xa(t)?2:Qa(t)?3:0}function _o(t,e){return Bo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function $f(t,e){return Bo(t)===2?t.get(e):t[e]}function fp(t,e,o){var i=Bo(t);i===2?t.set(e,o):i===3?t.add(o):t[e]=o}function hp(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Xa(t){return Df&&t instanceof Map}function Qa(t){return Ff&&t instanceof Set}function Tr(t){return t.o||t.t}function Ja(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=gp(t);delete e[me];for(var o=Po(e),i=0;i<o.length;i++){var n=o[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function es(t,e){return e===void 0&&(e=!1),ts(t)||fr(t)||!Dt(t)||(Bo(t)>1&&(t.set=t.add=t.clear=t.delete=Nf),Object.freeze(t),e&&oo(t,function(o,i){return es(i,!0)},!0)),t}function Nf(){Rt(2)}function ts(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Jt(t){var e=Ya[t];return e||Rt(18,t),e}function _f(t,e){Ya[t]||(Ya[t]=e)}function Ka(){return yi}function Wa(t,e){e&&(Jt("Patches"),t.u=[],t.s=[],t.v=e)}function an(t){Za(t),t.p.forEach(Pf),t.p=null}function Za(t){t===yi&&(yi=t.l)}function ap(t){return yi={p:[],l:yi,h:t,m:!0,_:0}}function Pf(t){var e=t[me];e.i===0||e.i===1?e.j():e.g=!0}function Va(t,e){e._=e.p.length;var o=e.p[0],i=t!==void 0&&t!==o;return e.h.O||Jt("ES5").S(e,t,i),i?(o[me].P&&(an(e),Rt(4)),Dt(t)&&(t=sn(e,t),e.l||ln(e,t)),e.u&&Jt("Patches").M(o[me].t,t,e.u,e.s)):t=sn(e,o,[]),an(e),e.u&&e.v(e.u,e.s),t!==mp?t:void 0}function sn(t,e,o){if(ts(e))return e;var i=e[me];if(!i)return oo(e,function(c,p){return sp(t,i,e,c,p,o)},!0),e;if(i.A!==t)return e;if(!i.P)return ln(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Ja(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),oo(a,function(c,p){return sp(t,i,n,c,p,o,s)}),ln(t,n,!1),o&&t.u&&Jt("Patches").N(i,o,t.u,t.s)}return i.o}function sp(t,e,o,i,n,a,s){if(fr(n)){var c=sn(t,n,a&&e&&e.i!==3&&!_o(e.R,i)?a.concat(i):void 0);if(fp(o,i,c),!fr(c))return;t.m=!1}else s&&o.add(n);if(Dt(n)&&!ts(n)){if(!t.h.D&&t._<1)return;sn(t,n),e&&e.A.l||ln(t,n)}}function ln(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&es(e,o)}function Ga(t,e){var o=t[me];return(o?Tr(o):t)[e]}function lp(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function $r(t){t.P||(t.P=!0,t.l&&$r(t.l))}function ja(t){t.o||(t.o=Ja(t.t))}function qa(t,e,o){var i=Xa(e)?Jt("MapSet").F(e,o):Qa(e)?Jt("MapSet").T(e,o):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:Ka(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},p=c,u=mi;s&&(p=[c],u=hi);var m=Proxy.revocable(p,u),y=m.revoke,b=m.proxy;return c.k=b,c.j=y,b}(e,o):Jt("ES5").J(e,o);return(o?o.A:Ka()).p.push(i),i}function Bf(t){return fr(t)||Rt(22,t),function e(o){if(!Dt(o))return o;var i,n=o[me],a=Bo(o);if(n){if(!n.P&&(n.i<4||!Jt("ES5").K(n)))return n.t;n.I=!0,i=cp(o,a),n.I=!1}else i=cp(o,a);return oo(i,function(s,c){n&&$f(n.t,s)===c||fp(i,s,e(c))}),a===3?new Set(i):i}(t)}function cp(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ja(t)}function yp(){function t(s,c){var p=a[s];return p?p.enumerable=c:a[s]=p={configurable:!0,enumerable:c,get:function(){var u=this[me];return mi.get(u,s)},set:function(u){var m=this[me];mi.set(m,s,u)}},p}function e(s){for(var c=s.length-1;c>=0;c--){var p=s[c][me];if(!p.P)switch(p.i){case 5:i(p)&&$r(p);break;case 4:o(p)&&$r(p)}}}function o(s){for(var c=s.t,p=s.k,u=Po(p),m=u.length-1;m>=0;m--){var y=u[m];if(y!==me){var b=c[y];if(b===void 0&&!_o(c,y))return!0;var O=p[y],v=O&&O[me];if(v?v.t!==b:!hp(O,b))return!0}}var E=!!c[me];return u.length!==Po(c).length+(E?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var p=Object.getOwnPropertyDescriptor(c,c.length-1);if(p&&!p.get)return!0;for(var u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function n(s){s.g&&Rt(3,JSON.stringify(Tr(s)))}var a={};_f("ES5",{J:function(s,c){var p=Array.isArray(s),u=function(y,b){if(y){for(var O=Array(b.length),v=0;v<b.length;v++)Object.defineProperty(O,""+v,t(v,!0));return O}var E=gp(b);delete E[me];for(var $=Po(E),T=0;T<$.length;T++){var N=$[T];E[N]=t(N,y||!!E[N].enumerable)}return Object.create(Object.getPrototypeOf(b),E)}(p,s),m={i:p?5:4,A:c?c.A:Ka(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,me,{value:m,writable:!0}),u},S:function(s,c,p){p?fr(c)&&c[me].A===s&&e(s.p):(s.u&&function u(m){if(m&&typeof m=="object"){var y=m[me];if(y){var b=y.t,O=y.k,v=y.R,E=y.i;if(E===4)oo(O,function(Z){Z!==me&&(b[Z]!==void 0||_o(b,Z)?v[Z]||u(O[Z]):(v[Z]=!0,$r(y)))}),oo(b,function(Z){O[Z]!==void 0||_o(O,Z)||(v[Z]=!1,$r(y))});else if(E===5){if(i(y)&&($r(y),v.length=!0),O.length<b.length)for(var $=O.length;$<b.length;$++)v[$]=!1;else for(var T=b.length;T<O.length;T++)v[T]=!0;for(var N=Math.min(O.length,b.length),z=0;z<N;z++)O.hasOwnProperty(z)||(v[z]=!0),v[z]===void 0&&u(O[z])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):i(s)}})}var dp,yi,rs=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Df=typeof Map<"u",Ff=typeof Set<"u",pp=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mp=rs?Symbol.for("immer-nothing"):((dp={})["immer-nothing"]=!0,dp),up=rs?Symbol.for("immer-draftable"):"__$immer_draftable",me=rs?Symbol.for("immer-state"):"__$immer_state";var Mf=""+Object.prototype.constructor,Po=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,gp=Object.getOwnPropertyDescriptors||function(t){var e={};return Po(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Ya={},mi={get:function(t,e){if(e===me)return t;var o=Tr(t);if(!_o(o,e))return function(n,a,s){var c,p=lp(a,s);return p?"value"in p?p.value:(c=p.get)===null||c===void 0?void 0:c.call(n.k):void 0}(t,o,e);var i=o[e];return t.I||!Dt(i)?i:i===Ga(t.t,e)?(ja(t),t.o[e]=qa(t.A.h,i,t)):i},has:function(t,e){return e in Tr(t)},ownKeys:function(t){return Reflect.ownKeys(Tr(t))},set:function(t,e,o){var i=lp(Tr(t),e);if(i?.set)return i.set.call(t.k,o),!0;if(!t.P){var n=Ga(Tr(t),e),a=n?.[me];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(hp(o,n)&&(o!==void 0||_o(t.t,e)))return!0;ja(t),$r(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ga(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ja(t),$r(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Tr(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:o[e]}},defineProperty:function(){Rt(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){Rt(12)}},hi={};oo(mi,function(t,e){hi[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),hi.deleteProperty=function(t,e){return hi.set.call(this,t,e,void 0)},hi.set=function(t,e,o){return mi.set.call(this,t[0],e,o,t[0])};var zf=function(){function t(o){var i=this;this.O=pp,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var p=i;return function(E){var $=this;E===void 0&&(E=c);for(var T=arguments.length,N=Array(T>1?T-1:0),z=1;z<T;z++)N[z-1]=arguments[z];return p.produce(E,function(Z){var X;return(X=a).call.apply(X,[$,Z].concat(N))})}}var u;if(typeof a!="function"&&Rt(6),s!==void 0&&typeof s!="function"&&Rt(7),Dt(n)){var m=ap(i),y=qa(i,n,void 0),b=!0;try{u=a(y),b=!1}finally{b?an(m):Za(m)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(E){return Wa(m,s),Va(E,m)},function(E){throw an(m),E}):(Wa(m,s),Va(u,m))}if(!n||typeof n!="object"){if((u=a(n))===void 0&&(u=n),u===mp&&(u=void 0),i.D&&es(u,!0),s){var O=[],v=[];Jt("Patches").M(n,u,O,v),s(O,v)}return u}Rt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(u){for(var m=arguments.length,y=Array(m>1?m-1:0),b=1;b<m;b++)y[b-1]=arguments[b];return i.produceWithPatches(u,function(O){return n.apply(void 0,[O].concat(y))})};var s,c,p=i.produce(n,a,function(u,m){s=u,c=m});return typeof Promise<"u"&&p instanceof Promise?p.then(function(u){return[u,s,c]}):[p,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){Dt(o)||Rt(8),fr(o)&&(o=Bf(o));var i=ap(this),n=qa(this,o,void 0);return n[me].C=!0,Za(i),n},e.finishDraft=function(o,i){var n=o&&o[me],a=n.A;return Wa(a,i),Va(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!pp&&Rt(20),this.O=o},e.applyPatches=function(o,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}n>-1&&(i=i.slice(n+1));var s=Jt("Patches").$;return fr(o)?s(o,i):this.produce(o,function(c){return s(c,i)})},t}(),yt=new zf,Uf=yt.produce,VC=yt.produceWithPatches.bind(yt),GC=yt.setAutoFreeze.bind(yt),jC=yt.setUseProxies.bind(yt),KC=yt.applyPatches.bind(yt),ZC=yt.createDraft.bind(yt),qC=yt.finishDraft.bind(yt),cn=Uf;function io(t){"@babel/helpers - typeof";return io=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},io(t)}function bp(t,e){if(io(t)!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,e||"default");if(io(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function xp(t){var e=bp(t,"string");return io(e)=="symbol"?e:e+""}function vp(t,e,o){return(e=xp(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Sp(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function os(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Sp(Object(o),!0).forEach(function(i){vp(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Sp(Object(o)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))})}return t}function Ke(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 Op=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),is=function(){return Math.random().toString(36).substring(7).split("").join(".")},dn={INIT:"@@redux/INIT"+is(),REPLACE:"@@redux/REPLACE"+is(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+is()}};function Hf(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 ns(t,e,o){var i;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Ke(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Ke(1));return o(ns)(t,e)}if(typeof t!="function")throw new Error(Ke(2));var n=t,a=e,s=[],c=s,p=!1;function u(){c===s&&(c=s.slice())}function m(){if(p)throw new Error(Ke(3));return a}function y(E){if(typeof E!="function")throw new Error(Ke(4));if(p)throw new Error(Ke(5));var $=!0;return u(),c.push(E),function(){if($){if(p)throw new Error(Ke(6));$=!1,u();var N=c.indexOf(E);c.splice(N,1),s=null}}}function b(E){if(!Hf(E))throw new Error(Ke(7));if(typeof E.type>"u")throw new Error(Ke(8));if(p)throw new Error(Ke(9));try{p=!0,a=n(a,E)}finally{p=!1}for(var $=s=c,T=0;T<$.length;T++){var N=$[T];N()}return E}function O(E){if(typeof E!="function")throw new Error(Ke(10));n=E,b({type:dn.REPLACE})}function v(){var E,$=y;return E={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(Ke(11));function z(){N.next&&N.next(m())}z();var Z=$(z);return{unsubscribe:Z}}},E[Op]=function(){return this},E}return b({type:dn.INIT}),i={dispatch:b,subscribe:y,getState:m,replaceReducer:O},i[Op]=v,i}function Wf(t){Object.keys(t).forEach(function(e){var o=t[e],i=o(void 0,{type:dn.INIT});if(typeof i>"u")throw new Error(Ke(12));if(typeof o(void 0,{type:dn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ke(13))})}function Cp(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(o[n]=t[n])}var a=Object.keys(o),s,c;try{Wf(o)}catch(p){c=p}return function(u,m){if(u===void 0&&(u={}),c)throw c;if(0)var y;for(var b=!1,O={},v=0;v<a.length;v++){var E=a[v],$=o[E],T=u[E],N=$(T,m);if(typeof N>"u"){var z=m&&m.type;throw new Error(Ke(14))}O[E]=N,b=b||N!==T}return b=b||a.length!==Object.keys(u).length,b?O:u}}function Do(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function wp(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Ke(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(p){return p(s)});return a=Do.apply(void 0,c)(n.dispatch),os(os({},n),{},{dispatch:a})}}}function Ep(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,t):s(c)}}};return e}var Ap=Ep();Ap.withExtraArgument=Ep;var as=Ap;var Tp=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function i(){this.constructor=e}e.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)}}(),Vf=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(u){return function(m){return p([u,m])}}function p(u){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){o=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(u[0]===6&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(m){u=[6,m],n=0}finally{i=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Fo=function(t,e){for(var o=0,i=e.length,n=t.length;o<i;o++,n++)t[n]=e[o];return t},Gf=Object.defineProperty,jf=Object.defineProperties,Kf=Object.getOwnPropertyDescriptors,Rp=Object.getOwnPropertySymbols,Zf=Object.prototype.hasOwnProperty,qf=Object.prototype.propertyIsEnumerable,Lp=function(t,e,o){return e in t?Gf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},Nr=function(t,e){for(var o in e||(e={}))Zf.call(e,o)&&Lp(t,o,e[o]);if(Rp)for(var i=0,n=Rp(e);i<n.length;i++){var o=n[i];qf.call(e,o)&&Lp(t,o,e[o])}return t},ss=function(t,e){return jf(t,Kf(e))},Yf=function(t,e,o){return new Promise(function(i,n){var a=function(p){try{c(o.next(p))}catch(u){n(u)}},s=function(p){try{c(o.throw(p))}catch(u){n(u)}},c=function(p){return p.done?i(p.value):Promise.resolve(p.value).then(a,s)};c((o=o.apply(t,e)).next())})};var Xf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Do:Do.apply(null,arguments)},fw=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Qf(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var Jf=function(t){Tp(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Fo([void 0],o[0].concat(this)))):new(e.bind.apply(e,Fo([void 0],o.concat(this))))},e}(Array),eh=function(t){Tp(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Fo([void 0],o[0].concat(this)))):new(e.bind.apply(e,Fo([void 0],o.concat(this))))},e}(Array);function ds(t){return Dt(t)?cn(t,function(){}):t}function th(t){return typeof t=="boolean"}function rh(){return function(e){return oh(e)}}function oh(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,s=a===void 0?!0:a,c=new Jf;if(o&&(th(o)?c.push(as):c.push(as.withExtraArgument(o.extraArgument))),0){if(n)var p;if(s)var u}return c}var ls=!0;function $p(t){var e=rh(),o=t||{},i=o.reducer,n=i===void 0?void 0:i,a=o.middleware,s=a===void 0?e():a,c=o.devTools,p=c===void 0?!0:c,u=o.preloadedState,m=u===void 0?void 0:u,y=o.enhancers,b=y===void 0?void 0:y,O;if(typeof n=="function")O=n;else if(Qf(n))O=Cp(n);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 v=s;if(typeof v=="function"&&(v=v(e),!ls&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!ls&&v.some(function(Z){return typeof Z!="function"}))throw new Error("each middleware provided to configureStore must be a function");var E=wp.apply(void 0,v),$=Do;p&&($=Xf(Nr({trace:!ls},typeof p=="object"&&p)));var T=new eh(E),N=T;Array.isArray(b)?N=Fo([E],b):typeof b=="function"&&(N=b(T));var z=$.apply(void 0,N);return ns(O,m,z)}function _r(t,e){function o(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return Nr(Nr({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(i){return i.type===t},o}function Np(t){var e={},o=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,n},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,o,i]}function ih(t){return typeof t=="function"}function nh(t,e,o,i){o===void 0&&(o=[]);var n=typeof e=="function"?Np(e):[e,o,i],a=n[0],s=n[1],c=n[2],p;if(ih(t))p=function(){return ds(t())};else{var u=ds(t);p=function(){return u}}function m(y,b){y===void 0&&(y=p());var O=Fo([a[b.type]],s.filter(function(v){var E=v.matcher;return E(b)}).map(function(v){var E=v.reducer;return E}));return O.filter(function(v){return!!v}).length===0&&(O=[c]),O.reduce(function(v,E){if(E)if(fr(v)){var $=v,T=E($,b);return T===void 0?v:T}else{if(Dt(v))return cn(v,function(N){return E(N,b)});var T=E(v,b);if(T===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return v},y)}return m.getInitialState=p,m}function ah(t,e){return t+"/"+e}function _p(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:ds(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(m){var y=i[m],b=ah(e,m),O,v;"reducer"in y?(O=y.reducer,v=y.prepare):O=y,a[m]=O,s[b]=O,c[m]=v?_r(b,v):_r(b)});function p(){var m=typeof t.extraReducers=="function"?Np(t.extraReducers):[t.extraReducers],y=m[0],b=y===void 0?{}:y,O=m[1],v=O===void 0?[]:O,E=m[2],$=E===void 0?void 0:E,T=Nr(Nr({},b),s);return nh(o,function(N){for(var z in T)N.addCase(z,T[z]);for(var Z=0,X=v;Z<X.length;Z++){var tt=X[Z];N.addMatcher(tt.matcher,tt.reducer)}$&&N.addDefaultCase($)})}var u;return{name:e,reducer:function(m,y){return u||(u=p()),u(m,y)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=p()),u.getInitialState()}}}var sh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",lh=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=sh[Math.random()*64|0];return e},ch=["name","message","stack","code"],cs=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ip=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),dh=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,i=ch;o<i.length;o++){var n=i[o];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},gw=function(){function t(e,o,i){var n=_r(e+"/fulfilled",function(m,y,b,O){return{payload:m,meta:ss(Nr({},O||{}),{arg:b,requestId:y,requestStatus:"fulfilled"})}}),a=_r(e+"/pending",function(m,y,b){return{payload:void 0,meta:ss(Nr({},b||{}),{arg:y,requestId:m,requestStatus:"pending"})}}),s=_r(e+"/rejected",function(m,y,b,O,v){return{payload:O,error:(i&&i.serializeError||dh)(m||"Rejected"),meta:ss(Nr({},v||{}),{arg:b,requestId:y,rejectedWithValue:!!O,requestStatus:"rejected",aborted:m?.name==="AbortError",condition:m?.name==="ConditionError"})}}),c=!1,p=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 u(m){return function(y,b,O){var v=i?.idGenerator?i.idGenerator(m):lh(),E=new p,$,T=!1;function N(Z){$=Z,E.abort()}var z=function(){return Yf(this,null,function(){var Z,X,tt,Wt,Ye,Vt,Be;return Vf(this,function(g){switch(g.label){case 0:return g.trys.push([0,4,,5]),Wt=(Z=i?.condition)==null?void 0:Z.call(i,m,{getState:b,extra:O}),uh(Wt)?[4,Wt]:[3,2];case 1:Wt=g.sent(),g.label=2;case 2:if(Wt===!1||E.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,Ye=new Promise(function(x,_){return E.signal.addEventListener("abort",function(){return _({name:"AbortError",message:$||"Aborted"})})}),y(a(v,m,(X=i?.getPendingMeta)==null?void 0:X.call(i,{requestId:v,arg:m},{getState:b,extra:O}))),[4,Promise.race([Ye,Promise.resolve(o(m,{dispatch:y,getState:b,extra:O,requestId:v,signal:E.signal,abort:N,rejectWithValue:function(x,_){return new cs(x,_)},fulfillWithValue:function(x,_){return new Ip(x,_)}})).then(function(x){if(x instanceof cs)throw x;return x instanceof Ip?n(x.payload,v,m,x.meta):n(x,v,m)})])];case 3:return tt=g.sent(),[3,5];case 4:return Vt=g.sent(),tt=Vt instanceof cs?s(null,v,m,Vt.payload,Vt.meta):s(Vt,v,m),[3,5];case 5:return Be=i&&!i.dispatchConditionRejection&&s.match(tt)&&tt.meta.condition,Be||y(tt),[2,tt]}})})}();return Object.assign(z,{abort:N,requestId:v,arg:m,unwrap:function(){return z.then(ph)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function ph(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function uh(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Pp="listener",Bp="completed",Dp="cancelled",bw="task-"+Dp,xw="task-"+Bp,vw=Pp+"-"+Dp,Sw=Pp+"-"+Bp;var ps="listenerMiddleware";var Ow=_r(ps+"/add"),Cw=_r(ps+"/removeAll"),ww=_r(ps+"/remove");var kp,Ew=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(kp||(kp=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},fh=function(t){return function(e){setTimeout(e,t)}},Aw=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:fh(10);yp();var hh=Ji(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(o,i,n){this.eventBus.addEventListener(o,i,n)}dispatchEvent(o){return this.eventBus.dispatchEvent(o)}removeEventListener(o,i,n){this.eventBus.removeEventListener(o,i,n)}}}),pn=class extends hh(Object){};window.ftReduxStores||(window.ftReduxStores={});var Fp=class t extends pn{static get(e){var o;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(nn(a))return a;if(n==null)return;let s=_p({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),c=$p({reducer:(p,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...p,...u.overwrites}:s.reducer(p,u)});return window.ftReduxStores[n.name]=new t(s,c,n.eventBus)}constructor(e,o,i){super(),this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new en;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let p=s,u=a[p];return u?(...m)=>{let y=u(...m.map(n));return this.reduxStore.dispatch(y),y}:m=>{this.setState({[p]:n(m)})}}}),this.eventBus=i??this.eventBus}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 un=class{static format(e,o,i,n){return window.moment?window.moment(e).locale(o).format(this.getMomentDateFormat(i,n)):this.getIntlDateTime(e,o,i,n)}static getMomentDateFormat(e,o){return e?o?"lll":"ll":o?"L LT":"L"}static getIntlDateTime(e,o,i,n){let a=typeof e=="string"?new Date(e):e,s=new Intl.DateTimeFormat(o,{dateStyle:i?"medium":"short"}).format(a);if(!n)return s;let c=new Intl.DateTimeFormat(o,{timeStyle:"short"}).format(a);return`${s} ${c}`}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),o=new Date().getTimezoneOffset();return`${o<0?"+":"-"}${e(Math.abs(o)/60)}:${e(Math.abs(o)%60)}`}};var Mp=f(w()),fn=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Yw=(0,Mp.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(I)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,a;return((a=(n=this.metadataDescriptors.find(c=>c.key===i))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1)?c=>un.format(c,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return fn([(0,us.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),fn([(0,us.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),fn([Ha({store:I.name,selector:o=>{var i,n;return(n=(i=o.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),fn([Ha({store:I.name})],e.prototype,"uiLocale",void 0),e});var mn=f(w());var hn=class extends ht{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=I.getState().session;return!!e?.sessionAuthenticated}};var yn=class extends ht{constructor(){super(...arguments),this.CACHE_DURATION=3*60*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=I.getState().session;return!!e?.sessionAuthenticated}};var yh="ft-user-assets",mh={setAssetCount:(t,e)=>{let{userAssetType:o,count:i}=e.payload.assetCount;t.assetCounts.allAsset[o]=i},clearAssetCount:t=>{Object.values(At).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let o=e.payload.mapId;t.assetCounts.bookmarkByMap[o]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:o,mapId:i,asset:n}=e.payload;hs(t,o,[...fs(t,o),n]),zp(t,o,1,i),Up(t,n)},editAsset:(t,e)=>{let{assetType:o,asset:i}=e.payload;hs(t,o,fs(t,o).map(n=>n.id===i.id?i:n)),Up(t,i)},removeAsset:(t,e)=>{let{assetType:o,mapId:i,assetId:n}=e.payload;hs(t,o,fs(t,o).filter(a=>a.id!==n)),zp(t,o,-1,i)}},Hp={[At.SEARCHES]:"savedSearches",[At.BOOKMARKS]:"bookmarks",[At.BOOKS]:void 0,[At.COLLECTIONS]:void 0},fs=(t,e)=>{var o;let i=Hp[e];return i?(o=t[i])!==null&&o!==void 0?o:[]:[]},hs=(t,e,o)=>{let i=Hp[e];i&&(t[i]=o)},zp=(t,e,o,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+o),e===At.BOOKMARKS&&i)){let a=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,a+o)}},Up=(t,e)=>{let o=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!o.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},mt=mn.FtReduxStore.get({name:yh,reducers:mh,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(At).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ys=class{constructor(e=new hn,o=new yn){this.assetCountsService=e,this.assetLabelsService=o,this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ji,this.savedSearchesService=new Yi,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=I.getState();(0,mn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),mt.actions.clearAssetCount(),mt.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),mt.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),mt.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();mt.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();mt.actions.assetLabels(e)}async loadAssetCount(e){let o=await this.assetCountsService.getUserAssetCount(e);o&&mt.actions.setAssetCount({assetCount:o})}async loadBookmarkByMapId(e){let o=await this.assetCountsService.getUserBookmarkCountByMap(e);o&&mt.actions.setBookmarkCountByMap({count:o.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let o=Object.keys(mt.getState().assetCounts.bookmarkByMap).length!==0;e===At.BOOKMARKS&&o&&mt.actions.clearBookmarkCountByMap(),mt.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;mt.actions.bookmarks(o)}}},gh=new ys;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=gh);(0,Wp.customElement)("ft-app-context")(pe);var jp=f(ee());var ms=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,n]=e.split(".");return{context:i,key:n,custom:!0,message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Vp=new ms;var bh=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},xh=Symbol("i18nAttributes"),vh=Symbol("i18nListAttributes"),Kp=Symbol("i18nProperties"),gn=Symbol("i18nContexts"),gi=Symbol("i18nUnsubs"),xn=(0,Mo.applyMixinOnce)(Symbol("withI18n"),function(t){var e,o;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}getI18nService(a){return a??this.useCustomMessageContexts?Da:di}i18n(a){let{context:s,key:c,message:p}=a,{custom:u,args:m,argsProvider:y}=a;if(s&&c){this.hasI18nContext(s)||this.addI18nContext(s,void 0,u);let b=m??(y?y(this):[]);return this.getI18nService(u).resolveMessage(s,c,...b)}return p}async awaitI18n(a){let{context:s,custom:c}=a;return s&&await this.getI18nService(c).prepareContext(s),this.i18n(a)}customI18n(a,s){if(Vp.isI18nKey(a)){let[c,p]=a.split(".");return this.i18n({custom:!0,context:c,key:p,...s})||a}return a}firstUpdated(a){super.firstUpdated(a),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(a){super.update(a),this.updateI18nAttributes((s,c,p)=>a.has(c)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(a){this.updateI18nAttributes((s,c,p)=>{var u;return((u=p?.context)===null||u===void 0?void 0:u.toLowerCase())===a}),this.updateI18nProperties(s=>s.context.toLowerCase()===a),this.requestUpdate()}updateI18nAttributes(a){var s,c;let p=this,u=(m,y,b)=>b?.context&&b.key&&a(m,y,b)?{...b,message:this.i18n({context:b.context,key:b.key,custom:b.custom,...m})}:b;(s=this[xh])===null||s===void 0||s.forEach((m,y)=>p[y]=u(m,y,p[y])),(c=this[vh])===null||c===void 0||c.forEach((m,y)=>{var b;return p[y]=(b=p[y])===null||b===void 0?void 0:b.map(O=>u(m,y,O))})}updateI18nProperties(a){var s;(s=this[Kp])===null||s===void 0||s.forEach((c,p)=>{a(c,p)&&(this[p]=this.i18n(c))})}addI18nMessages(a,s,c){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(a,s,c)}addI18nContext(a,s,c){let p=(typeof a=="string"?a:a.name).toLowerCase();c=typeof a=="string"?c:a.custom,this[gn].set(p,{isCustomContext:c}),this[gi].has(p)||this[gi].set(p,this.getI18nService(c).subscribe(p,()=>this.onI18nUpdate(p))),this.getI18nService(c).prepareContext(p,s)}hasI18nContext(a){return this[gn].has(a.toLowerCase())}connectedCallback(){super.connectedCallback(),this[gn].forEach((a,s)=>this.addI18nContext(s,void 0,a.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[gi].forEach(a=>a()),this[gi].clear()}}return e=gn,o=gi,bh([(0,jp.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Gp=class extends xn(Mo.FtLitElement){},bn=class extends xn(Mo.FtLitElementRedux){};var bi=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Ft=class extends bn{constructor(){super(),this.editorMode=!1,this.addStore(I)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":vn.nothing:vn.html`
|
|
1542
|
-
<span class="ft-i18n">
|
|
1543
|
-
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
1544
|
-
</span>
|
|
1545
|
-
`}update(e){var o;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};Ft.elementDefinitions={};Ft.styles=od;bi([(0,On.redux)()],Ft.prototype,"editorMode",void 0);bi([(0,Sn.property)()],Ft.prototype,"context",void 0);bi([(0,Sn.property)()],Ft.prototype,"key",void 0);bi([(0,On.jsonProperty)([])],Ft.prototype,"args",void 0);bi([(0,Sn.property)()],Ft.prototype,"defaultMessage",void 0);(0,Zp.customElement)("ft-i18n")(Ft);var He=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,o,a):s(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ve=class extends xn((0,Lt.withAriaNotification)(Lt.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,this.filteredOptions=[],this.ariaNotificationDebouncer=new Lt.Debouncer(500)}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,o;return(o=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&o!==void 0?o:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(o=>!o.selected)),this.filter&&(e=e.filter(o=>o.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return gt.html`
|
|
1548
|
+
`;var We=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},ve=class extends mn((0,Lt.withAriaNotification)(Lt.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,this.filteredOptions=[],this.ariaNotificationDebouncer=new Lt.Debouncer(500)}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}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return yt.html`
|
|
1546
1549
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1547
|
-
${this.parent==null?null:
|
|
1550
|
+
${this.parent==null?null:yt.html`
|
|
1548
1551
|
<div tabindex="0"
|
|
1549
1552
|
part="controls go-back"
|
|
1550
1553
|
class="ft-filter-level--go-back"
|
|
@@ -1555,29 +1558,29 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1555
1558
|
@click=${this.goBackOnClick}>
|
|
1556
1559
|
<ft-ripple></ft-ripple>
|
|
1557
1560
|
<ft-icon>thin_arrow_left</ft-icon>
|
|
1558
|
-
<ft-typography variant="${
|
|
1561
|
+
<ft-typography variant="${Pe.body2}">${this.parent.label}</ft-typography>
|
|
1559
1562
|
</div>
|
|
1560
1563
|
`}
|
|
1561
|
-
${this.filteredOptions.length===0&&this.noValuesLabel?
|
|
1562
|
-
<ft-typography class="ft-filter-level--no-values" element="span" variant="${
|
|
1564
|
+
${this.filteredOptions.length===0&&this.noValuesLabel?yt.html`
|
|
1565
|
+
<ft-typography class="ft-filter-level--no-values" element="span" variant="${Pe.body2}">
|
|
1563
1566
|
${this.noValuesLabel}
|
|
1564
1567
|
</ft-typography>
|
|
1565
|
-
`:
|
|
1566
|
-
${(0,
|
|
1568
|
+
`:yt.nothing}
|
|
1569
|
+
${(0,eu.repeat)(e,r=>r.value,r=>{var i;return yt.html`
|
|
1567
1570
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1568
|
-
${this.multivalued?this.buildMultiValuedOption(
|
|
1569
|
-
${this.preventNavigation||
|
|
1571
|
+
${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
|
|
1572
|
+
${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?yt.nothing:yt.html`
|
|
1570
1573
|
<ft-button icon="thin_arrow_right"
|
|
1571
1574
|
part="controls navigate-hierarchy"
|
|
1572
1575
|
aria-label="Expand node"
|
|
1573
|
-
data-value="${
|
|
1576
|
+
data-value="${r.value}"
|
|
1574
1577
|
?disabled=${this.disabled}
|
|
1575
1578
|
hideTooltip
|
|
1576
|
-
@click=${()=>this.displayLevel(
|
|
1579
|
+
@click=${()=>this.displayLevel(r)}></ft-button>
|
|
1577
1580
|
`}
|
|
1578
1581
|
</div>
|
|
1579
1582
|
`})}
|
|
1580
|
-
${e.length<this.filteredOptions.length?
|
|
1583
|
+
${e.length<this.filteredOptions.length?yt.html`
|
|
1581
1584
|
<ft-button
|
|
1582
1585
|
class="ft-filter-level--display-more"
|
|
1583
1586
|
icon="thin_arrow"
|
|
@@ -1586,30 +1589,30 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1586
1589
|
@click=${this.displayMore}>
|
|
1587
1590
|
${this.moreValuesButtonLabel}
|
|
1588
1591
|
</ft-button>
|
|
1589
|
-
`:
|
|
1592
|
+
`:yt.nothing}
|
|
1590
1593
|
</div>
|
|
1591
|
-
`}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(){var e;let
|
|
1594
|
+
`}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(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}buildMultiValuedOption(e){var r;return yt.html`
|
|
1592
1595
|
<ft-checkbox name="${this.filterId}"
|
|
1593
1596
|
part="multivalued-option option"
|
|
1594
1597
|
data-value="${e.value}"
|
|
1595
1598
|
.checked=${e.selected}
|
|
1596
1599
|
.disabled=${this.disabled}
|
|
1597
|
-
.indeterminate=${(0,Lt.flatDeep)((
|
|
1600
|
+
.indeterminate=${(0,Lt.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
|
|
1598
1601
|
@change=${i=>this.optionsChanged(i,e)}>
|
|
1599
1602
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1600
1603
|
</ft-checkbox>
|
|
1601
|
-
`}buildMonoValuedOption(e){return
|
|
1604
|
+
`}buildMonoValuedOption(e){return yt.html`
|
|
1602
1605
|
<ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
|
|
1603
1606
|
part="monovalued-option option"
|
|
1604
1607
|
data-value="${e.value}"
|
|
1605
1608
|
value="${e.value}"
|
|
1606
1609
|
.checked=${e.selected}
|
|
1607
1610
|
.disabled=${this.disabled}
|
|
1608
|
-
@keydown=${
|
|
1609
|
-
@change=${
|
|
1611
|
+
@keydown=${r=>this.onRadioKeyDown(r,e)}
|
|
1612
|
+
@change=${r=>this.optionsChanged(r,e)}>
|
|
1610
1613
|
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1611
1614
|
</ft-radio>
|
|
1612
|
-
`}onRadioKeyDown(e,
|
|
1615
|
+
`}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}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};ve.elementDefinitions={"ft-button":Ae,"ft-ripple":Y,"ft-typography":oe,"ft-checkbox":Ke,"ft-icon":pe,"ft-radio":Jt};ve.styles=Jp;We([(0,Ne.property)({type:String})],ve.prototype,"filterId",void 0);We([(0,Ne.property)({type:Object})],ve.prototype,"parent",void 0);We([(0,Ne.property)({type:Array,hasChanged:Lt.hasChanged})],ve.prototype,"options",void 0);We([(0,Ne.property)({type:Boolean})],ve.prototype,"multivalued",void 0);We([(0,Ne.property)({type:Boolean})],ve.prototype,"disabled",void 0);We([(0,Ne.property)({type:Boolean})],ve.prototype,"hideSelectedOptions",void 0);We([(0,Ne.property)({type:Boolean})],ve.prototype,"displayCount",void 0);We([(0,Ne.property)({type:Boolean})],ve.prototype,"preventNavigation",void 0);We([(0,Ne.property)({type:String})],ve.prototype,"filter",void 0);We([(0,Ne.property)({type:String})],ve.prototype,"moreValuesButtonLabel",void 0);We([(0,Ne.property)({type:String})],ve.prototype,"noValuesLabel",void 0);We([(0,Ne.property)()],ve.prototype,"filteredOptionsNumberAriaNotification",void 0);We([(0,Lt.numberProperty)()],ve.prototype,"displayedValuesLimit",void 0);We([(0,Ne.query)(".ft-filter-level--container")],ve.prototype,"container",void 0);We([(0,Ne.state)()],ve.prototype,"radios",void 0);We([(0,Ne.state)()],ve.prototype,"displayedPages",void 0);We([(0,Ne.state)()],ve.prototype,"filteredOptions",void 0);var nu=f(w());var ou=f(k()),mt=f(ee()),no=f(w());var iu=f(vt());var tu=f(k()),Mt=f(w());var Qe={buttonsColor:Mt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Mt.designSystemVariables.colorPrimary),buttonsZIndex:Mt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Mt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Mt.FtCssVariableFactory.external(Mt.designSystemVariables.colorSurface,"Design system")},ru=tu.css`
|
|
1613
1616
|
.ft-snap-scroll {
|
|
1614
1617
|
box-sizing: border-box;
|
|
1615
1618
|
position: relative;
|
|
@@ -1734,15 +1737,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1734
1737
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1735
1738
|
background-color: ${Qe.colorSurface};
|
|
1736
1739
|
}
|
|
1737
|
-
`;var er=function(t,e,
|
|
1740
|
+
`;var er=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Ss=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},Re=class extends no.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 no.Debouncer(200),this.updateScrollDebouncer=new no.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&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,iu.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":no.isSafari}),r=this.controls&&this.withScroll;return ou.html`
|
|
1738
1741
|
<div part="container" class="${e}">
|
|
1739
1742
|
<ft-button
|
|
1740
1743
|
class="ft-snap-scroll--previous"
|
|
1741
1744
|
part="controls"
|
|
1742
1745
|
primary
|
|
1743
1746
|
icon="${this.horizontal?"THIN_ARROW_LEFT":"THIN_ARROW_UP"}"
|
|
1744
|
-
?hidden=${!
|
|
1745
|
-
?disabled=${!
|
|
1747
|
+
?hidden=${!r||this.startReached}
|
|
1748
|
+
?disabled=${!r||this.startReached}
|
|
1746
1749
|
@click=${this.previous}
|
|
1747
1750
|
></ft-button>
|
|
1748
1751
|
<slot class="ft-snap-scroll--content"
|
|
@@ -1753,12 +1756,12 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1753
1756
|
part="controls"
|
|
1754
1757
|
primary
|
|
1755
1758
|
icon="${this.horizontal?"THIN_ARROW_RIGHT":"THIN_ARROW"}"
|
|
1756
|
-
?hidden=${!
|
|
1757
|
-
?disabled=${!
|
|
1759
|
+
?hidden=${!r||this.endReached}
|
|
1760
|
+
?disabled=${!r||this.endReached}
|
|
1758
1761
|
@click=${this.next}
|
|
1759
1762
|
></ft-button>
|
|
1760
1763
|
</div>
|
|
1761
|
-
`}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
|
|
1764
|
+
`}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 Ss(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,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.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(i=>i))!==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)}};Re.elementDefinitions={"ft-button":Ae};Re.styles=ru;er([(0,mt.property)({type:Boolean})],Re.prototype,"horizontal",void 0);er([(0,mt.property)({type:Boolean})],Re.prototype,"hideScrollbar",void 0);er([(0,mt.property)({type:Boolean})],Re.prototype,"controls",void 0);er([(0,mt.property)({type:Boolean})],Re.prototype,"limitSize",void 0);er([(0,mt.state)()],Re.prototype,"elements",void 0);er([(0,mt.state)()],Re.prototype,"currentElement",void 0);er([(0,mt.state)()],Re.prototype,"withScroll",void 0);er([(0,mt.state)()],Re.prototype,"startReached",void 0);er([(0,mt.state)()],Re.prototype,"endReached",void 0);er([(0,mt.query)(".ft-snap-scroll--content")],Re.prototype,"contentSlot",void 0);(0,nu.customElement)("ft-snap-scroll")(Re);var au=f(k()),ue=f(w());var nt={colorOutline:ue.FtCssVariableFactory.external(ue.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ue.FtCssVariableFactory.external(ue.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ue.FtCssVariableFactory.external(ue.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:ue.FtCssVariableFactory.external(ue.designSystemVariables.colorPrimary,"Design system"),colorSurface:ue.FtCssVariableFactory.external(ue.designSystemVariables.colorSurface,"Design system"),transitionDuration:ue.FtCssVariableFactory.external(ue.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:ue.FtCssVariableFactory.external(ue.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:ue.FtCssVariableFactory.extend("--ft-filter-label-color","",ue.designSystemVariables.colorOnSurface),labelFontSize:ue.FtCssVariableFactory.extend("--ft-filter-label-font-size","",L.fontSize,"16px")},su=[jt,ue.noTextInputDefaultClearButton,au.css`
|
|
1762
1765
|
:host {
|
|
1763
1766
|
display: flex;
|
|
1764
1767
|
max-height: 100%;
|
|
@@ -1798,8 +1801,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1798
1801
|
flex-shrink: 1;
|
|
1799
1802
|
flex-grow: 1;
|
|
1800
1803
|
word-break: break-word;
|
|
1801
|
-
color: ${
|
|
1802
|
-
font-size: ${
|
|
1804
|
+
color: ${nt.labelColor};
|
|
1805
|
+
font-size: ${nt.labelFontSize};
|
|
1803
1806
|
${(0,ue.setVariable)(L.lineHeight,"22px")};
|
|
1804
1807
|
${(0,ue.setVariable)(L.fontWeight,"bold")};
|
|
1805
1808
|
}
|
|
@@ -1812,8 +1815,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1812
1815
|
padding: 0 10px;
|
|
1813
1816
|
overflow: hidden;
|
|
1814
1817
|
height: 32px;
|
|
1815
|
-
transition: height ${
|
|
1816
|
-
margin ${
|
|
1818
|
+
transition: height ${nt.transitionDuration} ${nt.transitionTimingFunction},
|
|
1819
|
+
margin ${nt.transitionDuration} ${nt.transitionTimingFunction};
|
|
1817
1820
|
transition-delay: 500ms;
|
|
1818
1821
|
}
|
|
1819
1822
|
|
|
@@ -1826,15 +1829,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1826
1829
|
display: block;
|
|
1827
1830
|
width: 100%;
|
|
1828
1831
|
border-radius: 4px;
|
|
1829
|
-
border: 1px solid ${
|
|
1832
|
+
border: 1px solid ${nt.colorOutline};
|
|
1830
1833
|
padding: 4px;
|
|
1831
|
-
background-color: ${
|
|
1832
|
-
color: ${
|
|
1833
|
-
outline-color: ${
|
|
1834
|
+
background-color: ${nt.colorSurface};
|
|
1835
|
+
color: ${nt.colorOnSurface};
|
|
1836
|
+
outline-color: ${nt.colorPrimary};
|
|
1834
1837
|
}
|
|
1835
1838
|
|
|
1836
1839
|
input::placeholder {
|
|
1837
|
-
color: ${
|
|
1840
|
+
color: ${nt.colorOnSurfaceMedium};
|
|
1838
1841
|
}
|
|
1839
1842
|
|
|
1840
1843
|
input:placeholder-shown {
|
|
@@ -1850,7 +1853,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1850
1853
|
}
|
|
1851
1854
|
|
|
1852
1855
|
.ft-filter--separator {
|
|
1853
|
-
border-top: 1px solid ${
|
|
1856
|
+
border-top: 1px solid ${nt.colorOutline};
|
|
1854
1857
|
margin: 4px 10px;
|
|
1855
1858
|
}
|
|
1856
1859
|
|
|
@@ -1875,14 +1878,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1875
1878
|
slot:not([name]) {
|
|
1876
1879
|
display: none;
|
|
1877
1880
|
}
|
|
1878
|
-
`];var fe=function(t,e,
|
|
1881
|
+
`];var fe=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},Os=class extends CustomEvent{constructor(e){super("change",{detail:e})}},J=class extends _e.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 _e.Debouncer(300),this.changeDebouncer=new _e.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,_e.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,_e.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(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return ao.html`
|
|
1879
1882
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1880
1883
|
part="container">
|
|
1881
1884
|
${!this.label&&!e?null:ao.html`
|
|
1882
1885
|
|
|
1883
1886
|
<div class="ft-filter--header" part="header">
|
|
1884
1887
|
<div class="filter-label" id="id-group-${this.id}">
|
|
1885
|
-
<ft-typography class="ft-filter--label" variant="${
|
|
1888
|
+
<ft-typography class="ft-filter--label" variant="${Pe.overline}" part="label">
|
|
1886
1889
|
${this.label}
|
|
1887
1890
|
</ft-typography>
|
|
1888
1891
|
<slot name="label"></slot>
|
|
@@ -1898,13 +1901,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1898
1901
|
`:null}
|
|
1899
1902
|
</div>
|
|
1900
1903
|
`}
|
|
1901
|
-
<div class="ft-filter--filter" ?hidden=${!
|
|
1904
|
+
<div class="ft-filter--filter" ?hidden=${!r}>
|
|
1902
1905
|
<input type="search"
|
|
1903
1906
|
part="input"
|
|
1904
1907
|
class="ft-typography--caption"
|
|
1905
|
-
?disabled=${!
|
|
1908
|
+
?disabled=${!r}
|
|
1906
1909
|
placeholder="${i}"
|
|
1907
|
-
size="${
|
|
1910
|
+
size="${r?i.length:0}"
|
|
1908
1911
|
@search=${this.onFilterChange}
|
|
1909
1912
|
@keyup=${this.onFilterChange}>
|
|
1910
1913
|
</div>
|
|
@@ -1915,15 +1918,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1915
1918
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1916
1919
|
@option-change=${this.optionsChanged}></slot>
|
|
1917
1920
|
</div>
|
|
1918
|
-
`}update(e){if(super.update(e),e.has("options")){let
|
|
1919
|
-
${this.raiseSelectedOptions&&
|
|
1921
|
+
`}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,n,a,s,c;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&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),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=(c=(s=(a=this.shadowRoot)===null||a===void 0?void 0:a.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||s===void 0?void 0:s.hasHiddenValues)!==null&&c!==void 0?c:!1}renderLevels(){let e=this.flatOptions,r=e.filter(a=>a.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return ao.html`
|
|
1922
|
+
${this.raiseSelectedOptions&&r.length>0?ao.html`
|
|
1920
1923
|
<ft-filter-level
|
|
1921
1924
|
filterId="${this.id}"
|
|
1922
1925
|
?multivalued=${this.multivalued}
|
|
1923
1926
|
?disabled=${this.disabled}
|
|
1924
1927
|
?displayCount=${this.displayCount}
|
|
1925
1928
|
preventNavigation
|
|
1926
|
-
.options=${
|
|
1929
|
+
.options=${r}
|
|
1927
1930
|
@change=${this.onChange}
|
|
1928
1931
|
part="values selected-values"
|
|
1929
1932
|
.exportpartsPrefixes=${["values","selected-values"]}
|
|
@@ -1937,7 +1940,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1937
1940
|
${this.renderLevel(n,this.options)}
|
|
1938
1941
|
${this.displayedLevels.map(a=>e.find(s=>s.value===a)).map((a,s)=>{var c;let p=a?.value===this.slideIn||a?.value===this.slideOut?"ft-filter--level-right":s===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(p,(c=a?.subOptions)!==null&&c!==void 0?c:[],a)})}
|
|
1939
1942
|
</ft-snap-scroll>
|
|
1940
|
-
`}renderLevel(e,
|
|
1943
|
+
`}renderLevel(e,r,i){return ao.html`
|
|
1941
1944
|
<ft-filter-level
|
|
1942
1945
|
class="${e}"
|
|
1943
1946
|
filterId="${this.id}"
|
|
@@ -1948,7 +1951,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1948
1951
|
?hideSelectedOptions=${this.raiseSelectedOptions}
|
|
1949
1952
|
?displayCount=${this.displayCount}
|
|
1950
1953
|
.parent=${i}
|
|
1951
|
-
.options=${
|
|
1954
|
+
.options=${r}
|
|
1952
1955
|
.displayedValuesLimit=${this.displayedValuesLimit}
|
|
1953
1956
|
@change=${this.onChange}
|
|
1954
1957
|
@go-back=${this.goBack}
|
|
@@ -1958,17 +1961,17 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
1958
1961
|
noValuesLabel="${this.noValuesLabel}"
|
|
1959
1962
|
.filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
|
|
1960
1963
|
></ft-filter-level>
|
|
1961
|
-
`}goBack(e){this.slideOut=e.detail.value,(0,
|
|
1964
|
+
`}goBack(e){this.slideOut=e.detail.value,(0,_e.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,_e.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,_e.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}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 i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var s;a!==i&&(a.selected=!1),(s=a.subOptions)===null||s===void 0||s.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,_e.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Os(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)}};J.elementDefinitions={"ft-button":Ae,"ft-filter-level":ve,"ft-snap-scroll":Re,"ft-typography":oe};J.styles=su;fe([(0,ce.property)({type:String})],J.prototype,"id",void 0);fe([(0,ce.property)({type:String})],J.prototype,"label",void 0);fe([(0,ce.property)({type:String})],J.prototype,"filterPlaceHolder",void 0);fe([(0,ce.property)({type:String})],J.prototype,"clearButtonLabel",void 0);fe([(0,ce.property)({type:String})],J.prototype,"moreValuesButtonLabel",void 0);fe([(0,ce.property)({type:String})],J.prototype,"noValuesLabel",void 0);fe([(0,_e.jsonProperty)([])],J.prototype,"options",void 0);fe([(0,ce.property)({type:Boolean})],J.prototype,"multivalued",void 0);fe([(0,ce.property)({type:Boolean})],J.prototype,"disabled",void 0);fe([(0,ce.property)({type:Boolean})],J.prototype,"raiseSelectedOptions",void 0);fe([(0,ce.property)({type:Boolean})],J.prototype,"displayCount",void 0);fe([(0,_e.numberProperty)()],J.prototype,"displayedValuesLimit",void 0);fe([(0,_e.jsonProperty)(void 0)],J.prototype,"filteredOptionsNumberAriaNotification",void 0);fe([(0,ce.property)({type:Boolean})],J.prototype,"hideClearButton",void 0);fe([(0,ce.query)(".ft-filter--slot")],J.prototype,"slotElement",void 0);fe([(0,ce.query)(".ft-filter--container")],J.prototype,"container",void 0);fe([(0,ce.query)(".ft-filter--values")],J.prototype,"valuesContainer",void 0);fe([(0,ce.query)(".ft-filter--levels")],J.prototype,"levelsContainer",void 0);fe([(0,ce.state)()],J.prototype,"lastLevelHasHiddenvalues",void 0);fe([(0,ce.query)(".ft-filter--filter input")],J.prototype,"filterInput",void 0);fe([(0,ce.queryAll)(".ft-filter--levels ft-filter-level")],J.prototype,"levels",void 0);fe([(0,ce.state)()],J.prototype,"withScroll",void 0);fe([(0,ce.state)()],J.prototype,"filter",void 0);fe([(0,ce.state)()],J.prototype,"slideIn",void 0);fe([(0,ce.state)()],J.prototype,"slideOut",void 0);var An=f(w()),so=f(ee()),lu=f(k()),Ho=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},gt=class extends An.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return lu.html`
|
|
1962
1965
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1963
|
-
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(
|
|
1966
|
+
`}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}))}};gt.elementDefinitions={};Ho([(0,so.property)({type:String})],gt.prototype,"label",void 0);Ho([(0,so.property)({type:Object,converter:t=>t})],gt.prototype,"value",void 0);Ho([(0,so.property)({type:Boolean,reflect:!0})],gt.prototype,"selected",void 0);Ho([(0,so.property)({type:Object})],gt.prototype,"subOptions",void 0);Ho([(0,An.jsonProperty)({})],gt.prototype,"renderOption",void 0);Ho([(0,so.query)(".ft-filter-option--slot")],gt.prototype,"slotElement",void 0);(0,Cs.customElement)("ft-filter")(J);(0,Cs.customElement)("ft-filter-option")(gt);var ws=f(w());var uu=f(k()),Rn=f(ee()),fu=f(w());var cu=f(k());var du=cu.css`
|
|
1964
1967
|
.ft-accordion {
|
|
1965
1968
|
box-sizing: border-box;
|
|
1966
1969
|
}
|
|
1967
|
-
`;var
|
|
1970
|
+
`;var pu=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},tr=class extends fu.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return uu.html`
|
|
1968
1971
|
<div class="ft-accordion">
|
|
1969
1972
|
<slot @activated=${this.onChange}></slot>
|
|
1970
1973
|
</div>
|
|
1971
|
-
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(
|
|
1974
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(r=>r.active=r===e.target)}};tr.elementDefinitions={};tr.styles=du;pu([(0,Rn.property)({type:Boolean})],tr.prototype,"multi",void 0);pu([(0,Rn.query)("slot")],tr.prototype,"content",void 0);var Si=f(k()),Oi=f(ee()),mu=f(w());var hu=f(k()),co=f(w()),lo={horizontalSpacing:co.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:co.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:co.FtCssVariableFactory.external(co.designSystemVariables.colorOutline,"Design system"),backgroundColor:co.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},yu=hu.css`
|
|
1972
1975
|
.ft-accordion-item {
|
|
1973
1976
|
display: flex;
|
|
1974
1977
|
flex-direction: column;
|
|
@@ -2014,7 +2017,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2014
2017
|
.ft-accordion-item--separator {
|
|
2015
2018
|
border-bottom: 1px solid ${lo.colorOutline};
|
|
2016
2019
|
}
|
|
2017
|
-
`;var
|
|
2020
|
+
`;var Ln=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},It=class extends mu.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return Si.html`
|
|
2018
2021
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
2019
2022
|
<div class="ft-accordion-item--toggle"
|
|
2020
2023
|
part="toggle"
|
|
@@ -2025,13 +2028,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2025
2028
|
aria-controls="ft-accordion-item-content"
|
|
2026
2029
|
aria-expanded="${this.active}">
|
|
2027
2030
|
<ft-ripple part="toggle-ripple"></ft-ripple>
|
|
2028
|
-
${this.icon?
|
|
2031
|
+
${this.icon?Si.html`
|
|
2029
2032
|
<ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
|
|
2030
2033
|
`:null}
|
|
2031
|
-
${this.label?
|
|
2034
|
+
${this.label?Si.html`
|
|
2032
2035
|
<ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
|
|
2033
2036
|
</ft-typography>
|
|
2034
|
-
`:
|
|
2037
|
+
`:Si.html`
|
|
2035
2038
|
<slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
|
|
2036
2039
|
`}
|
|
2037
2040
|
<ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
|
|
@@ -2044,7 +2047,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2044
2047
|
</div>
|
|
2045
2048
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
2046
2049
|
</div>
|
|
2047
|
-
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};It.elementDefinitions={"ft-ripple":Y,"ft-typography":oe,"ft-icon":
|
|
2050
|
+
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};It.elementDefinitions={"ft-ripple":Y,"ft-typography":oe,"ft-icon":pe};It.styles=yu;Ln([(0,Oi.property)()],It.prototype,"icon",void 0);Ln([(0,Oi.property)()],It.prototype,"iconVariant",void 0);Ln([(0,Oi.property)()],It.prototype,"label",void 0);Ln([(0,Oi.property)({type:Boolean,reflect:!0})],It.prototype,"active",void 0);(0,ws.customElement)("ft-accordion")(tr);(0,ws.customElement)("ft-accordion-item")(It);var Rs=f(w());var In=f(k()),Ze=f(ee()),Su=f(vt()),Wo=f(w());var Ci=f(k()),V=f(w());var gu=V.FtCssVariableFactory.extend("--ft-chip-color","",V.designSystemVariables.colorOnSurface),Ve={backgroundColor:V.FtCssVariableFactory.extend("--ft-chip-background-color","",V.designSystemVariables.colorSurface),color:gu,fontSize:V.FtCssVariableFactory.extend("--ft-chip-font-size","",Ie.fontSize),fontWeight:V.FtCssVariableFactory.extend("--ft-chip-font-weight","",Ie.fontWeight),iconSize:V.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:V.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:V.FtCssVariableFactory.extend("--ft-chip-ripple-color","",gu),horizontalPadding:V.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:V.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:V.FtCssVariableFactory.extend("--ft-chip-border-color","",V.designSystemVariables.colorOutline),opacityDisabled:V.FtCssVariableFactory.external(V.designSystemVariables.colorOpacityDisabled,"Design system")},bu=V.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",V.FtCssVariableFactory.extend("--ft-chip-color","",V.designSystemVariables.colorOnPrimary)),Es={backgroundColor:V.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",V.FtCssVariableFactory.extend("--ft-chip-background-color","",V.designSystemVariables.colorPrimary)),color:bu,rippleColor:V.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",bu)},xu={horizontalPadding:V.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:V.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},vu=[V.noTextSelect,Ci.css`
|
|
2048
2051
|
:host {
|
|
2049
2052
|
display: inline-block;
|
|
2050
2053
|
max-width: 100%;
|
|
@@ -2060,21 +2063,21 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2060
2063
|
box-sizing: border-box;
|
|
2061
2064
|
pointer-events: auto;
|
|
2062
2065
|
|
|
2063
|
-
--chip-internal-font-size: ${
|
|
2064
|
-
--chip-internal-font-weight: ${
|
|
2066
|
+
--chip-internal-font-size: ${Ve.fontSize};
|
|
2067
|
+
--chip-internal-font-weight: ${Ve.fontWeight};
|
|
2065
2068
|
--chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
|
|
2066
|
-
${(0,V.setVariable)(xe.size,
|
|
2067
|
-
--chip-internal-vertical-padding: ${
|
|
2068
|
-
--chip-internal-horizontal-padding: ${
|
|
2069
|
+
${(0,V.setVariable)(xe.size,Ve.iconSize)};
|
|
2070
|
+
--chip-internal-vertical-padding: ${Ve.verticalPadding};
|
|
2071
|
+
--chip-internal-horizontal-padding: ${Ve.horizontalPadding};
|
|
2069
2072
|
--chip-internal-icon-padding: 3px;
|
|
2070
|
-
--chip-internal-content-height: max(var(--chip-internal-line-height), ${
|
|
2073
|
+
--chip-internal-content-height: max(var(--chip-internal-line-height), ${Ve.iconSize});
|
|
2071
2074
|
|
|
2072
|
-
border: 1px solid ${
|
|
2073
|
-
color: ${
|
|
2074
|
-
${(0,V.setVariable)(S.color,
|
|
2075
|
-
border-radius: var(${(0,
|
|
2075
|
+
border: 1px solid ${Ve.borderColor};
|
|
2076
|
+
color: ${Ve.color};
|
|
2077
|
+
${(0,V.setVariable)(S.color,Ve.rippleColor)};
|
|
2078
|
+
border-radius: var(${(0,Ci.unsafeCSS)(Ve.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
2076
2079
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
2077
|
-
background-color: ${
|
|
2080
|
+
background-color: ${Ve.backgroundColor};
|
|
2078
2081
|
line-height: var(--chip-internal-content-height);
|
|
2079
2082
|
}
|
|
2080
2083
|
|
|
@@ -2084,28 +2087,28 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2084
2087
|
|
|
2085
2088
|
.ft-chip--dense {
|
|
2086
2089
|
--chip-internal-icon-padding: 3px;
|
|
2087
|
-
--chip-internal-vertical-padding: ${
|
|
2088
|
-
--chip-internal-horizontal-padding: ${
|
|
2090
|
+
--chip-internal-vertical-padding: ${xu.verticalPadding};
|
|
2091
|
+
--chip-internal-horizontal-padding: ${xu.horizontalPadding};
|
|
2089
2092
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
2090
2093
|
}
|
|
2091
2094
|
|
|
2092
2095
|
.ft-chip--no-content {
|
|
2093
|
-
--chip-internal-horizontal-padding: ${
|
|
2096
|
+
--chip-internal-horizontal-padding: ${Ve.horizontalPadding.get(Ci.css`var(--chip-internal-vertical-padding)`)};
|
|
2094
2097
|
}
|
|
2095
2098
|
|
|
2096
2099
|
.ft-chip--disabled {
|
|
2097
2100
|
cursor: default;
|
|
2098
2101
|
pointer-events: none;
|
|
2099
2102
|
filter: grayscale(1);
|
|
2100
|
-
opacity: ${
|
|
2103
|
+
opacity: ${Ve.opacityDisabled};
|
|
2101
2104
|
}
|
|
2102
2105
|
|
|
2103
2106
|
.ft-chip--highlighted {
|
|
2104
2107
|
border: none;
|
|
2105
2108
|
padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
|
|
2106
|
-
background-color: ${
|
|
2107
|
-
${(0,V.setVariable)(S.color,
|
|
2108
|
-
color: ${
|
|
2109
|
+
background-color: ${Es.backgroundColor};
|
|
2110
|
+
${(0,V.setVariable)(S.color,Es.rippleColor)};
|
|
2111
|
+
color: ${Es.color};
|
|
2109
2112
|
}
|
|
2110
2113
|
|
|
2111
2114
|
.ft-chip--clickable {
|
|
@@ -2136,7 +2139,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2136
2139
|
}
|
|
2137
2140
|
|
|
2138
2141
|
.ft-chip--icon-button {
|
|
2139
|
-
${(0,V.setVariable)(q.iconSize,
|
|
2142
|
+
${(0,V.setVariable)(q.iconSize,Ve.iconSize)};
|
|
2140
2143
|
${(0,V.setVariable)(q.horizontalPadding,"var(--chip-internal-icon-padding)")};
|
|
2141
2144
|
${(0,V.setVariable)(q.verticalPadding,"var(--chip-internal-icon-padding)")};
|
|
2142
2145
|
margin: calc((-1) * var(--chip-internal-icon-padding));
|
|
@@ -2184,8 +2187,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2184
2187
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
2185
2188
|
order: -1;
|
|
2186
2189
|
}
|
|
2187
|
-
`];var
|
|
2188
|
-
<div class="${(0,
|
|
2190
|
+
`];var at=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},kn=class extends CustomEvent{constructor(){super("icon-click")}},Se=class extends Wo.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.hideIconTooltip=!1,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":Wo.isSafari};return In.html`
|
|
2191
|
+
<div class="${(0,Su.classMap)(e)}"
|
|
2189
2192
|
aria-label="${this.getLabel()}"
|
|
2190
2193
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
2191
2194
|
@keyup=${this.onKeyUp}
|
|
@@ -2196,7 +2199,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2196
2199
|
</ft-typography>
|
|
2197
2200
|
${this.internalIcon?this.renderIcon():null}
|
|
2198
2201
|
</div>
|
|
2199
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?
|
|
2202
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?In.html`
|
|
2200
2203
|
<ft-button round
|
|
2201
2204
|
class="ft-chip--icon-button"
|
|
2202
2205
|
@click=${this.onIconClick}
|
|
@@ -2207,11 +2210,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2207
2210
|
part="icon-button"
|
|
2208
2211
|
?hideTooltip=${this.hideIconTooltip}
|
|
2209
2212
|
></ft-button>
|
|
2210
|
-
`:
|
|
2213
|
+
`:In.html`
|
|
2211
2214
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
2212
2215
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
2213
2216
|
</div>
|
|
2214
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new
|
|
2217
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new kn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new kn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Wo.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Se.elementDefinitions={"ft-ripple":Y,"ft-typography":oe,"ft-icon":pe,"ft-button":Ae};Se.styles=vu;at([(0,Ze.property)({type:Boolean})],Se.prototype,"highlighted",void 0);at([(0,Ze.property)({type:Boolean})],Se.prototype,"removable",void 0);at([(0,Ze.property)({type:Boolean})],Se.prototype,"disabled",void 0);at([(0,Ze.property)({type:Boolean})],Se.prototype,"clickable",void 0);at([(0,Ze.property)({type:Boolean})],Se.prototype,"iconClickable",void 0);at([(0,Ze.property)({type:Boolean})],Se.prototype,"dense",void 0);at([(0,Ze.property)({type:Boolean})],Se.prototype,"multiLine",void 0);at([(0,Ze.property)()],Se.prototype,"label",void 0);at([(0,Ze.property)()],Se.prototype,"iconLabel",void 0);at([(0,Ze.property)({type:Boolean})],Se.prototype,"hideIconTooltip",void 0);at([(0,Ze.property)()],Se.prototype,"icon",void 0);at([(0,Ze.property)()],Se.prototype,"iconVariant",void 0);at([(0,Ze.property)({type:Boolean})],Se.prototype,"trailingIcon",void 0);at([(0,Ze.query)("ft-typography slot")],Se.prototype,"slottedContent",void 0);var Pr=f(k()),Br=f(ee()),wu=f(vt()),$n=f(w());var Ou=f(k());var Tn=f(w());var Cu=[Ou.css`
|
|
2215
2218
|
:host {
|
|
2216
2219
|
display: inline-block;
|
|
2217
2220
|
max-width: 100%;
|
|
@@ -2250,7 +2253,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2250
2253
|
border-radius: ${B.smallBorderRadius};
|
|
2251
2254
|
border-width: ${B.smallBorderWidth};
|
|
2252
2255
|
border-style: solid;
|
|
2253
|
-
${(0,
|
|
2256
|
+
${(0,Tn.setVariable)(xe.size,B.smallIconSize)}
|
|
2254
2257
|
}
|
|
2255
2258
|
|
|
2256
2259
|
.ftds--size-small.ftds-chip--with-action {
|
|
@@ -2274,7 +2277,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2274
2277
|
top: -3px;
|
|
2275
2278
|
height: ${B.smallIconSize};
|
|
2276
2279
|
transform: scale(.75); /* Little trick to have a (even) bigger icon inside of the button */
|
|
2277
|
-
${
|
|
2280
|
+
${xs.smallIconOnlyWidth.set("15px")};
|
|
2278
2281
|
}
|
|
2279
2282
|
|
|
2280
2283
|
.ftds--size-small .ftds-chip--remove-button::part(icon) {
|
|
@@ -2289,7 +2292,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2289
2292
|
border-width: ${B.mediumBorderWidth};
|
|
2290
2293
|
border-style: solid;
|
|
2291
2294
|
gap: ${B.mediumGap};
|
|
2292
|
-
${(0,
|
|
2295
|
+
${(0,Tn.setVariable)(xe.size,B.mediumIconSize)}
|
|
2293
2296
|
}
|
|
2294
2297
|
|
|
2295
2298
|
.ftds--size-medium.ftds-chip--with-action {
|
|
@@ -2308,7 +2311,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2308
2311
|
border-width: ${B.largeBorderWidth};
|
|
2309
2312
|
border-style: solid;
|
|
2310
2313
|
gap: ${B.largeGap};
|
|
2311
|
-
${(0,
|
|
2314
|
+
${(0,Tn.setVariable)(xe.size,B.largeIconSize)}
|
|
2312
2315
|
}
|
|
2313
2316
|
|
|
2314
2317
|
.ftds--size-large.ftds-chip--with-action {
|
|
@@ -2378,8 +2381,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2378
2381
|
.ftds--family-error .ftds-chip--icon-container {
|
|
2379
2382
|
color: ${B.errorIconColor};
|
|
2380
2383
|
}
|
|
2381
|
-
`];var
|
|
2382
|
-
<div class="${(0,
|
|
2384
|
+
`];var Vo=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},As=class extends CustomEvent{constructor(){super("remove")}},kt=class extends $n.FtdsBase{constructor(){super(...arguments),this.withAction=!1,this.removable=!1,this.removeButtonLabel="Remove",this.label=""}render(){let e={"ftds-chip":!0,"ftds-chip--with-action":this.removable||this.withAction,"ftds-chip--with-icon":!!this.icon,...this.getDesignSystemBaseClasses()};return Pr.html`
|
|
2385
|
+
<div class="${(0,wu.classMap)(e)}"
|
|
2383
2386
|
aria-label="${this.getLabel()}"
|
|
2384
2387
|
part="chip">
|
|
2385
2388
|
${this.renderIcon()}
|
|
@@ -2396,15 +2399,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2396
2399
|
<ftds-button round
|
|
2397
2400
|
class="ftds-chip--remove-button"
|
|
2398
2401
|
@click=${this.dispatchRemoveEvent}
|
|
2399
|
-
icon="${
|
|
2402
|
+
icon="${ft.X_MARK}"
|
|
2400
2403
|
label="${this.removeButtonLabel}"
|
|
2401
|
-
family="${
|
|
2404
|
+
family="${$n.DesignSystemFamily.neutral}"
|
|
2402
2405
|
size="${this.resolveButtonSize()}"
|
|
2403
2406
|
part="icon-button"
|
|
2404
2407
|
></ftds-button>
|
|
2405
2408
|
`:this.withAction?Pr.html`
|
|
2406
2409
|
<slot name="action"></slot>
|
|
2407
|
-
`:Pr.nothing}resolveButtonSize(){switch(this.size){case Tt.large:return Tt.medium;default:return Tt.small}}getLabel(){return this.label||this.getTextContent()}getTextContent(){var e,
|
|
2410
|
+
`:Pr.nothing}resolveButtonSize(){switch(this.size){case Tt.large:return Tt.medium;default:return Tt.small}}getLabel(){return this.label||this.getTextContent()}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}onSlotchange(){this.requestUpdate()}dispatchRemoveEvent(){this.dispatchEvent(new As)}typographyVariant(){switch(this.size){case Tt.large:return lt.body2medium;default:return lt.caption1medium}}};kt.elementDefinitions={"ftds-typography":$t,"ft-icon":pe,"ftds-button":At};kt.styles=Cu;Vo([(0,Br.property)({type:Boolean})],kt.prototype,"withAction",void 0);Vo([(0,Br.property)({type:Boolean})],kt.prototype,"removable",void 0);Vo([(0,Br.property)()],kt.prototype,"removeButtonLabel",void 0);Vo([(0,Br.property)()],kt.prototype,"label",void 0);Vo([(0,Br.property)()],kt.prototype,"icon",void 0);Vo([(0,Br.query)("ftds-typography slot")],kt.prototype,"slottedContent",void 0);(0,Rs.customElement)("ft-chip")(Se);(0,Rs.customElement)("ftds-chip")(kt);var Ns=f(w());var po=f(k()),se=f(ee()),$s=f(vt()),Pu=f(Ur());function Nn(t,e,r){return t?e(t):r?.(t)}var Dr=f(w());var Ts=f(w());var _n=f(ee());var Eu=f(k()),he=f(w());var M={fontSize:he.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:he.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:he.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:he.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:he.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:he.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:he.FtCssVariableFactory.extend("--ft-input-label-border-color","",he.designSystemVariables.colorOutline),textColor:he.FtCssVariableFactory.extend("--ft-input-label-text-color","",he.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:he.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",he.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:he.FtCssVariableFactory.extend("--ft-input-label-background-color","",he.designSystemVariables.colorSurface),borderRadius:he.FtCssVariableFactory.extend("--ft-input-label-border-radius","",he.designSystemVariables.borderRadiusS),colorError:he.FtCssVariableFactory.external(he.designSystemVariables.colorError,"Design system")},Au=Eu.css`
|
|
2408
2411
|
.ft-input-label {
|
|
2409
2412
|
position: absolute;
|
|
2410
2413
|
inset: 0;
|
|
@@ -2455,8 +2458,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2455
2458
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
2456
2459
|
max-width: calc(${M.labelMaxWidth} - 2 * (${M.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
2457
2460
|
text-overflow: ellipsis;
|
|
2458
|
-
${(0,he.setVariable)(
|
|
2459
|
-
${(0,he.setVariable)(
|
|
2461
|
+
${(0,he.setVariable)(Be.fontSize,M.fontSize)};
|
|
2462
|
+
${(0,he.setVariable)(Be.lineHeight,M.fontSize)};
|
|
2460
2463
|
}
|
|
2461
2464
|
|
|
2462
2465
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -2476,7 +2479,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2476
2479
|
|
|
2477
2480
|
.ft-input-label--floating-text {
|
|
2478
2481
|
position: absolute;
|
|
2479
|
-
top: calc(50% - ${
|
|
2482
|
+
top: calc(50% - ${Be.lineHeight} / 2);
|
|
2480
2483
|
transition: top 250ms;
|
|
2481
2484
|
overflow: hidden;
|
|
2482
2485
|
white-space: nowrap;
|
|
@@ -2488,8 +2491,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2488
2491
|
}
|
|
2489
2492
|
|
|
2490
2493
|
.ft-input-label--raised .ft-input-label--text {
|
|
2491
|
-
${(0,he.setVariable)(
|
|
2492
|
-
${(0,he.setVariable)(
|
|
2494
|
+
${(0,he.setVariable)(Be.fontSize,M.raisedFontSize)};
|
|
2495
|
+
${(0,he.setVariable)(Be.lineHeight,M.raisedFontSize)};
|
|
2493
2496
|
}
|
|
2494
2497
|
|
|
2495
2498
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -2520,22 +2523,22 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2520
2523
|
z-index: ${M.raisedZIndex};
|
|
2521
2524
|
background-color: ${M.backgroundColor};
|
|
2522
2525
|
border-radius: ${M.borderRadius};
|
|
2523
|
-
top: calc((${
|
|
2526
|
+
top: calc((${Be.lineHeight} / -2) + 2px);
|
|
2524
2527
|
}
|
|
2525
2528
|
|
|
2526
2529
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
2527
2530
|
border-top: none;
|
|
2528
2531
|
}
|
|
2529
|
-
`;var
|
|
2530
|
-
<div class="${(0,
|
|
2531
|
-
${
|
|
2532
|
+
`;var Ls=f(k()),Is=f(ee());var Lu=f(vt()),Iu=f(w()),Ru=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},hr=class extends Iu.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Ls.html`
|
|
2533
|
+
<div class="${(0,Lu.classMap)(this.inputLabelClasses)}">
|
|
2534
|
+
${Nn(this.text,()=>Ls.html`
|
|
2532
2535
|
<div class="ft-input-label--text ft-typography--caption">
|
|
2533
2536
|
<label class="ft-input-label--floating-text">${this.text}</label>
|
|
2534
2537
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
2535
2538
|
</div>
|
|
2536
2539
|
`)}
|
|
2537
2540
|
</div>
|
|
2538
|
-
`}};hr.elementDefinitions={};
|
|
2541
|
+
`}};hr.elementDefinitions={};Ru([(0,Is.property)({type:String})],hr.prototype,"text",void 0);Ru([(0,Is.property)({type:Boolean})],hr.prototype,"raised",void 0);var ks=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},zt=class extends hr{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};zt.elementDefinitions={};zt.styles=[jt,Au];ks([(0,_n.property)({type:Boolean})],zt.prototype,"outlined",void 0);ks([(0,_n.property)({type:Boolean})],zt.prototype,"error",void 0);ks([(0,_n.property)({type:Boolean})],zt.prototype,"disabled",void 0);var $u=f(w());var ku=f(k());var Le=f(w()),qe={fontSize:Le.FtCssVariableFactory.extend("--ft-input-label-font-size","",jr.fontSize),fontSizeRaised:Le.FtCssVariableFactory.extend("--ft-input-label-font-size-raised","",gr.fontSize),lineHeight:Le.FtCssVariableFactory.extend("--ft-input-label-line-height","",gr.lineHeight),color:Le.FtCssVariableFactory.extend("--ft-input-label-color","",Le.semantic.contentGlobalSubtle),largeFieldHeight:Le.FtCssVariableFactory.create("--ft-input-label-large-height","","SIZE","50px"),largeFieldVerticalGap:Le.FtCssVariableFactory.extend("--ft-input-label-large-field-vertical-gap","",l.spacing05),largeFieldHorizontalPadding:Le.FtCssVariableFactory.extend("--ft-input-label-large-field-horizontal-padding","",l.spacing4),mediumFieldHeight:Le.FtCssVariableFactory.create("--ft-input-label-medium-height","","SIZE","40px"),mediumFieldVerticalGap:Le.FtCssVariableFactory.create("--ft-input-label-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHorizontalPadding:Le.FtCssVariableFactory.extend("--ft-input-label-medium-field-horizontal-padding","",l.spacing4),additionalPaddingLeft:Le.FtCssVariableFactory.create("--ft-input-label-additional-padding-left","","SIZE","0px"),additionalPaddingRight:Le.FtCssVariableFactory.create("--ft-input-label-additional-padding-right","","SIZE","0px")},Tu=[ku.css`
|
|
2539
2542
|
|
|
2540
2543
|
:root {
|
|
2541
2544
|
--field-height: ${qe.largeFieldHeight};
|
|
@@ -2577,8 +2580,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2577
2580
|
z-index: 10;
|
|
2578
2581
|
width: 100%;
|
|
2579
2582
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
2580
|
-
${(0,Le.setVariable)(
|
|
2581
|
-
${(0,Le.setVariable)(
|
|
2583
|
+
${(0,Le.setVariable)(Be.fontSize,qe.fontSize)};
|
|
2584
|
+
${(0,Le.setVariable)(Be.lineHeight,qe.lineHeight)};
|
|
2582
2585
|
}
|
|
2583
2586
|
|
|
2584
2587
|
.ft-input-label--hidden-text {
|
|
@@ -2609,15 +2612,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2609
2612
|
}
|
|
2610
2613
|
|
|
2611
2614
|
.ft-input-label--raised .ft-input-label--text {
|
|
2612
|
-
${(0,Le.setVariable)(
|
|
2613
|
-
${(0,Le.setVariable)(
|
|
2615
|
+
${(0,Le.setVariable)(Be.fontSize,qe.fontSizeRaised)};
|
|
2616
|
+
${(0,Le.setVariable)(Be.lineHeight,qe.lineHeight)};
|
|
2614
2617
|
}
|
|
2615
2618
|
|
|
2616
2619
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
2617
2620
|
top: var(--input-content-vertical-padding);
|
|
2618
2621
|
}
|
|
2619
2622
|
|
|
2620
|
-
`];var
|
|
2623
|
+
`];var wi=class extends(0,$u.toFtdsBase)(hr){get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,...this.getDesignSystemBaseClasses()}}};wi.styles=[jt,Tu];(0,Ts.customElement)("ft-input-label")(zt);(0,Ts.customElement)("ftds-input-label")(wi);var Nu=f(k()),H=f(w());var G={labelSize:H.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:H.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:H.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:H.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:H.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:H.FtCssVariableFactory.extend("--ft-select-selected-option-color","",H.designSystemVariables.colorOnSurface),helperColor:H.FtCssVariableFactory.extend("--ft-select-helper-color","",H.designSystemVariables.colorOnSurfaceMedium),optionsColor:H.FtCssVariableFactory.extend("--ft-select-options-color","",H.designSystemVariables.colorOnSurface),optionsZIndex:H.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),backgroundColor:H.FtCssVariableFactory.extend("--ft-select-background-color","",H.designSystemVariables.colorSurface),colorOnSurfaceDisabled:H.FtCssVariableFactory.external(H.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:H.FtCssVariableFactory.external(H.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:H.FtCssVariableFactory.external(H.designSystemVariables.borderRadiusS,"Design system"),elevation02:H.FtCssVariableFactory.external(H.designSystemVariables.elevation02,"Design system"),colorError:H.FtCssVariableFactory.external(H.designSystemVariables.colorError,"Design system")},_u=Nu.css`
|
|
2621
2624
|
*:focus {
|
|
2622
2625
|
outline: none;
|
|
2623
2626
|
}
|
|
@@ -2767,8 +2770,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2767
2770
|
.ft-select--in-error .ft-select--helper-text {
|
|
2768
2771
|
color: ${G.colorError};
|
|
2769
2772
|
}
|
|
2770
|
-
`;var ge=function(t,e,
|
|
2771
|
-
<div class="${(0
|
|
2773
|
+
`;var ge=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a},rr=class extends Dr.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return po.html``}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};rr.elementDefinitions={};ge([(0,se.property)({type:String})],rr.prototype,"label",void 0);ge([(0,se.property)({type:Object,converter:t=>t})],rr.prototype,"value",void 0);ge([(0,se.property)({type:Boolean,reflect:!0})],rr.prototype,"selected",void 0);var re=class t extends Dr.FtLitElement{constructor(){super(...arguments),this.label="",this.ariaLabel=null,this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.currentSearch="",this.lastSearchInputDate=new Date("01/01/1970"),this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}render(){var e,r,i,n,a;let s=this.hasOptionsMenuOpen,c=this.disabled||!this.hasOptions,p=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(r=this.selectedOption)===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:"").length>0,u={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":c,"ft-select--options-displayed":s,"ft-select--has-option-selected":p,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return po.html`
|
|
2774
|
+
<div class="${(0,$s.classMap)(u)}" part="container">
|
|
2772
2775
|
<div class="ft-select--main-panel" part="main-panel">
|
|
2773
2776
|
<ft-input-label text="${this.label}"
|
|
2774
2777
|
part="label"
|
|
@@ -2783,74 +2786,74 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2783
2786
|
tabindex="${c?"-1":"0"}"
|
|
2784
2787
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
2785
2788
|
@keydown=${this.onMainPanelKeyDown}
|
|
2786
|
-
aria-label="${
|
|
2787
|
-
aria-labelledby="${
|
|
2789
|
+
aria-label="${zo(this.ariaLabel)}"
|
|
2790
|
+
aria-labelledby="${Nn(!this.ariaLabel,()=>"label")}"
|
|
2788
2791
|
aria-haspopup="listbox"
|
|
2789
2792
|
aria-expanded="${s}"
|
|
2790
|
-
aria-activedescendant="${
|
|
2793
|
+
aria-activedescendant="${zo(this.getOptionId(this.selectedOption))}"
|
|
2791
2794
|
role="combobox">
|
|
2792
2795
|
<ft-ripple ?disabled=${c} ?activated=${!this.outlined}></ft-ripple>
|
|
2793
|
-
<ft-typography variant="${
|
|
2796
|
+
<ft-typography variant="${Pe.body1}" class="ft-select--selected-option">
|
|
2794
2797
|
${(a=(n=this.selectedOption)===null||n===void 0?void 0:n.label)!==null&&a!==void 0?a:""}
|
|
2795
2798
|
</ft-typography>
|
|
2796
|
-
<ft-icon aria-hidden="true" .value=${s?
|
|
2799
|
+
<ft-icon aria-hidden="true" .value=${s?ft.THIN_ARROW_UP:ft.THIN_ARROW}></ft-icon>
|
|
2797
2800
|
</div>
|
|
2798
2801
|
<div class="ft-select--options"
|
|
2799
2802
|
part="options"
|
|
2800
2803
|
@keydown=${this.onOptionsKeyDown}
|
|
2801
2804
|
role="listbox">
|
|
2802
|
-
${(0,
|
|
2805
|
+
${(0,Pu.repeat)(this.options,m=>m.value,(m,y)=>this.renderOption(m,y))}
|
|
2803
2806
|
</div>
|
|
2804
2807
|
</div>
|
|
2805
2808
|
<slot name="helper" part="helper">
|
|
2806
2809
|
${this.helper?po.html`
|
|
2807
|
-
<ft-typography class="ft-select--helper-text" variant="${
|
|
2810
|
+
<ft-typography class="ft-select--helper-text" variant="${Pe.caption}">${this.helper}
|
|
2808
2811
|
</ft-typography>`:po.nothing}
|
|
2809
2812
|
</slot>
|
|
2810
2813
|
</div>
|
|
2811
2814
|
<slot @slotchange=${this.updateOptionsFromSlot}
|
|
2812
2815
|
@option-change=${this.updateOptionsFromSlot}
|
|
2813
2816
|
></slot>
|
|
2814
|
-
`}renderOption(e,
|
|
2815
|
-
<div class="${(0
|
|
2817
|
+
`}renderOption(e,r){var i,n;let a=this.selectedOption===e;return po.html`
|
|
2818
|
+
<div class="${(0,$s.classMap)({"ft-select--option":!0,"ft-select--option-selected":a,"ft-typography--body2":!0})}"
|
|
2816
2819
|
part="option option-${(n=(i=e.value)===null||i===void 0?void 0:i.toString())===null||n===void 0?void 0:n.replace(/[^\w-]/g,"")}"
|
|
2817
2820
|
tabindex="0"
|
|
2818
2821
|
aria-label="${e.label}"
|
|
2819
2822
|
data-value="${e.value}"
|
|
2820
|
-
id="${"option-"+
|
|
2823
|
+
id="${"option-"+r}"
|
|
2821
2824
|
@keydown=${c=>this.onOptionKeyDown(c,e)}
|
|
2822
2825
|
@click=${()=>this.selectOption(e)}>
|
|
2823
2826
|
<ft-ripple ?primary=${a} ?activated=${a}></ft-ripple>
|
|
2824
2827
|
<span>${e.label}</span>
|
|
2825
2828
|
</div>
|
|
2826
|
-
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(
|
|
2829
|
+
`}willUpdate(e){super.willUpdate(e),e.has("options")&&(this.selectedOption=this.options.filter(r=>r.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var r,i;if(super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(r=this.selectedOptionElement)!==null&&r!==void 0?r:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen){this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px";let n=["bottom","top"];(0,Dr.computeOffsetAutoPosition)(this.mainPanel,this.optionsMenu,"bottom",n,"fixed",G.optionsHeight,0).then(({x:a,y:s})=>{this.optionsMenu.style.left=`${a}px`,this.optionsMenu.style.top=`${s}px`})}}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var r;e.stopPropagation();let i=(r=this.optionsSlot)===null||r===void 0?void 0:r.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var r,i,n,a,s;let c;switch(e.key){case"Escape":this.optionsDisplayed=!1,(r=this.mainPanel)===null||r===void 0||r.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),c=(n=(i=this.focusedOption)===null||i===void 0?void 0:i.previousElementSibling)!==null&&n!==void 0?n:this.lastOption;break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),c=(s=(a=this.focusedOption)===null||a===void 0?void 0:a.nextElementSibling)!==null&&s!==void 0?s:this.firstOption;break;default:if(e.key.length!=1)break;this.isKeyAlphanumeric(e.key)&&(c=this.handleAlphanumericPress(e.key));break}c?.focus()}isKeyAlphanumeric(e){let r=e.charCodeAt(0);return r>47&&r<58||r>64&&r<91||r>96&&r<123}handleAlphanumericPress(e){var r,i;let n=new Date;n.getTime()-this.lastSearchInputDate.getTime()>t.searchTimeoutMilliseconds&&(this.currentSearch=""),this.currentSearch+=e.toLowerCase();let a=this.options.find(c=>{var p;return((p=c.label)===null||p===void 0?void 0:p.toLowerCase().substring(0,this.currentSearch.length))===this.currentSearch});if(a===void 0){this.lastSearchInputDate=n;return}let s=(i=(r=this.optionsMenu)===null||r===void 0?void 0:r.querySelector(`[data-value="${a.value}"]`))!==null&&i!==void 0?i:void 0;return this.lastSearchInputDate=n,s}onOptionKeyDown(e,r){var i;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),this.selectOption(r),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus())}getOptionId(e){if(!e)return;let r=this.options.findIndex(i=>(0,Dr.deepEqual)(i.value,e.value));if(r!==-1)return`option-${r}`}selectOption(e){var r,i;if(!(0,Dr.deepEqual)((r=this.selectedOption)===null||r===void 0?void 0:r.value,e.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;this.dispatchEvent(new CustomEvent("change",{detail:(i=this.selectedOption)===null||i===void 0?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};re.elementDefinitions={"ft-input-label":zt,"ft-typography":oe,"ft-ripple":Y,"ft-icon":pe};re.searchTimeoutMilliseconds=2e3;re.styles=[Co,jt,_u];ge([(0,se.property)({type:String})],re.prototype,"label",void 0);ge([(0,se.property)({type:String})],re.prototype,"ariaLabel",void 0);ge([(0,se.property)({type:String})],re.prototype,"helper",void 0);ge([(0,se.property)({type:Boolean})],re.prototype,"outlined",void 0);ge([(0,se.property)({type:Boolean})],re.prototype,"disabled",void 0);ge([(0,se.property)({type:Boolean})],re.prototype,"error",void 0);ge([(0,se.property)({type:Boolean})],re.prototype,"fixedMenuPosition",void 0);ge([(0,se.property)({type:Array})],re.prototype,"options",void 0);ge([(0,se.state)()],re.prototype,"selectedOption",void 0);ge([(0,se.state)()],re.prototype,"optionsDisplayed",void 0);ge([(0,se.state)()],re.prototype,"focusOptions",void 0);ge([(0,se.state)()],re.prototype,"currentSearch",void 0);ge([(0,se.state)()],re.prototype,"lastSearchInputDate",void 0);ge([(0,se.query)(".ft-select")],re.prototype,"container",void 0);ge([(0,se.query)(".ft-select--options")],re.prototype,"optionsMenu",void 0);ge([(0,se.query)(".ft-select--input-panel")],re.prototype,"mainPanel",void 0);ge([(0,se.query)(".ft-select--option:first-child")],re.prototype,"firstOption",void 0);ge([(0,se.query)(".ft-select--option:focus")],re.prototype,"focusedOption",void 0);ge([(0,se.query)(".ft-select--option.ft-select--option-selected")],re.prototype,"selectedOptionElement",void 0);ge([(0,se.query)(".ft-select--option:last-child")],re.prototype,"lastOption",void 0);ge([(0,se.query)("slot:not([name])")],re.prototype,"optionsSlot",void 0);(0,Ns.customElement)("ft-select")(re);(0,Ns.customElement)("ft-select-option")(rr);var F=f(w()),_s=f(k());var Bu=f(k()),Ut=f(w()),Ge={display:Ut.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:Ut.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:Ut.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:Ut.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:Ut.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:Ut.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:Ut.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:Ut.FtCssVariableFactory.external(Ut.designSystemVariables.borderRadiusM,"Design system")},Du=Bu.css`
|
|
2827
2830
|
:host {
|
|
2828
|
-
width: ${
|
|
2829
|
-
height: ${
|
|
2830
|
-
display: ${
|
|
2831
|
+
width: ${Ge.width};
|
|
2832
|
+
height: ${Ge.height};
|
|
2833
|
+
display: ${Ge.display};
|
|
2831
2834
|
overflow: hidden;
|
|
2832
|
-
border-radius: ${
|
|
2835
|
+
border-radius: ${Ge.borderRadiusM};
|
|
2833
2836
|
background: linear-gradient(
|
|
2834
2837
|
90deg,
|
|
2835
2838
|
transparent,
|
|
2836
|
-
${
|
|
2837
|
-
${
|
|
2838
|
-
transparent ${
|
|
2839
|
-
), ${
|
|
2839
|
+
${Ge.glareColor} calc(0.45 * ${Ge.glareWidth}),
|
|
2840
|
+
${Ge.glareColor} calc(0.55 * ${Ge.glareWidth}),
|
|
2841
|
+
transparent ${Ge.glareWidth}
|
|
2842
|
+
), ${Ge.backgroundColor};
|
|
2840
2843
|
background-repeat: repeat-y;
|
|
2841
2844
|
background-size: 100vw 100vh;
|
|
2842
2845
|
background-attachment: fixed;
|
|
2843
|
-
background-position: calc(${
|
|
2844
|
-
animation: shine ${
|
|
2846
|
+
background-position: calc(${Ge.glareWidth} * -1) 0;
|
|
2847
|
+
animation: shine ${Ge.animationDuration} infinite;
|
|
2845
2848
|
animation-timing-function: linear;
|
|
2846
2849
|
}
|
|
2847
2850
|
|
|
2848
2851
|
@keyframes shine {
|
|
2849
2852
|
to {
|
|
2850
|
-
background-position: calc(100vw + ${
|
|
2853
|
+
background-position: calc(100vw + ${Ge.glareWidth}) 0, calc(${Ge.glareWidth} * -1) 0;
|
|
2851
2854
|
}
|
|
2852
2855
|
}
|
|
2853
|
-
`;var P={height:F.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:F.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",F.designSystemVariables.borderRadiusS),mobileOpenPosition:F.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:F.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:F.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:F.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:F.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:F.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:F.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:F.FtCssVariableFactory.external(F.designSystemVariables.colorSurface,"Design system"),colorOnSurface:F.FtCssVariableFactory.external(F.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:F.FtCssVariableFactory.external(F.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:F.FtCssVariableFactory.external(F.designSystemVariables.colorOutline,"Design system"),colorPrimary:F.FtCssVariableFactory.external(F.designSystemVariables.colorPrimary,"Design system"),elevation02:F.FtCssVariableFactory.external(F.designSystemVariables.elevation02,"Design system"),buttonColor:F.FtCssVariableFactory.external(q.color,"Button"),buttonRippleColor:F.FtCssVariableFactory.external(q.rippleColor,"Button"),activeItemBorderColor:F.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",F.designSystemVariables.colorPrimary)},
|
|
2856
|
+
`;var P={height:F.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:F.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",F.designSystemVariables.borderRadiusS),mobileOpenPosition:F.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:F.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:F.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:F.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:F.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:F.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:F.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:F.FtCssVariableFactory.external(F.designSystemVariables.colorSurface,"Design system"),colorOnSurface:F.FtCssVariableFactory.external(F.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:F.FtCssVariableFactory.external(F.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:F.FtCssVariableFactory.external(F.designSystemVariables.colorOutline,"Design system"),colorPrimary:F.FtCssVariableFactory.external(F.designSystemVariables.colorPrimary,"Design system"),elevation02:F.FtCssVariableFactory.external(F.designSystemVariables.elevation02,"Design system"),buttonColor:F.FtCssVariableFactory.external(q.color,"Button"),buttonRippleColor:F.FtCssVariableFactory.external(q.rippleColor,"Button"),activeItemBorderColor:F.FtCssVariableFactory.extend("--ft-search-bar-active-border-color","",F.designSystemVariables.colorPrimary)},Fu=_s.css`
|
|
2854
2857
|
* {
|
|
2855
2858
|
box-sizing: border-box;
|
|
2856
2859
|
}
|
|
@@ -2898,8 +2901,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
2898
2901
|
}
|
|
2899
2902
|
|
|
2900
2903
|
.ft-search-bar--skeleton {
|
|
2901
|
-
${(0,F.setVariable)(
|
|
2902
|
-
${(0,F.setVariable)(
|
|
2904
|
+
${(0,F.setVariable)(Ge.height,P.height)};
|
|
2905
|
+
${(0,F.setVariable)(Ge.borderRadiusM,P.borderRadius)};
|
|
2903
2906
|
}
|
|
2904
2907
|
|
|
2905
2908
|
.ft-search-bar--floating-panel-open .ft-search-bar {
|
|
@@ -3015,7 +3018,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3015
3018
|
flex-direction: column;
|
|
3016
3019
|
max-height: 100%;
|
|
3017
3020
|
max-width: 100%;
|
|
3018
|
-
color: ${
|
|
3021
|
+
color: ${nt.colorOnSurface};
|
|
3019
3022
|
}
|
|
3020
3023
|
|
|
3021
3024
|
[part="content-locale-selector"] > ft-radio-group {
|
|
@@ -3045,7 +3048,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3045
3048
|
${(0,F.setVariable)(L.fontWeight,"bold")};
|
|
3046
3049
|
}
|
|
3047
3050
|
|
|
3048
|
-
`,
|
|
3051
|
+
`,Mu=_s.css`
|
|
3049
3052
|
.ft-search-bar--presets {
|
|
3050
3053
|
min-width: 200px;
|
|
3051
3054
|
}
|
|
@@ -3206,63 +3209,63 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3206
3209
|
.ft-search-bar--desktop-menu .ft-search-bar--launch-search {
|
|
3207
3210
|
margin: 0;
|
|
3208
3211
|
}
|
|
3209
|
-
`;var
|
|
3210
|
-
`}};Fr.elementDefinitions={};Fr.styles
|
|
3212
|
+
`;var Hu=f(w());var zu=f(k()),Uu=f(w());var Fr=class extends Uu.FtLitElement{render(){return zu.html`
|
|
3213
|
+
`}};Fr.elementDefinitions={};Fr.styles=Du;(0,Hu.customElement)("ft-skeleton")(Fr);var or=f(k()),Ps=f(Ur());var Go=f(w());var ir=class{constructor(e,r=300){this.listboxId="suggestManager",this.searchBar=e,this.updateDebouncer=new Go.Debouncer(r)}render(){let e=this.recentSearchesMatchingQuery;return or.html`
|
|
3211
3214
|
<div class="ft-search-bar--suggestions ft-word-wrap ${this.shouldDisplaySuggestions?"ft-search-bar--suggestions-not-empty":""}"
|
|
3212
3215
|
id="${this.listboxId}"
|
|
3213
3216
|
role="listbox"
|
|
3214
3217
|
aria-label="${this.searchBar.labelResolver.resolve("suggestionsAriaLabel")}"
|
|
3215
3218
|
part="suggestions-container">
|
|
3216
|
-
${(0,
|
|
3219
|
+
${(0,Ps.repeat)(e.slice(0,5),r=>r,(r,i)=>or.html`
|
|
3217
3220
|
<div part="suggestion-container"
|
|
3218
3221
|
class=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)?"ft-search-bar--suggestions-selected":or.nothing}>
|
|
3219
|
-
<a href="${this.getRequestWithQuery(
|
|
3222
|
+
<a href="${this.getRequestWithQuery(r)}"
|
|
3220
3223
|
part="suggestions"
|
|
3221
3224
|
class="ft-search-bar--suggestion ft-search-bar--recent-search"
|
|
3222
3225
|
role="option"
|
|
3223
3226
|
id="${this.recentSearchId(i)}"
|
|
3224
3227
|
aria-selected="${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)}"
|
|
3225
3228
|
tabindex="-1"
|
|
3226
|
-
aria-label="${
|
|
3227
|
-
@click=${n=>this.onSuggestClick(n,
|
|
3229
|
+
aria-label="${r}"
|
|
3230
|
+
@click=${n=>this.onSuggestClick(n,r)}>
|
|
3228
3231
|
<ft-ripple ?activated=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)&&!this.searchBar.selectedSuggestRemoveRecent}></ft-ripple>
|
|
3229
3232
|
<ft-icon variant="material" value="history" part="suggestion-icon"></ft-icon>
|
|
3230
|
-
<ft-typography variant="body1">${
|
|
3233
|
+
<ft-typography variant="body1">${r}</ft-typography>
|
|
3231
3234
|
</a>
|
|
3232
3235
|
<ft-button icon="close"
|
|
3233
3236
|
round
|
|
3234
3237
|
part="remove-suggestion"
|
|
3235
3238
|
?dense=${!this.searchBar.isMobile}
|
|
3236
3239
|
id="remove-${this.recentSearchId(i)}"
|
|
3237
|
-
label="${this.searchBar.labelResolver.resolve("removeRecentSearch",
|
|
3240
|
+
label="${this.searchBar.labelResolver.resolve("removeRecentSearch",r)}"
|
|
3238
3241
|
tooltipPosition="left"
|
|
3239
3242
|
tabindex="-1"
|
|
3240
3243
|
?activated=${this.searchBar.selectedSuggestOptionId===this.recentSearchId(i)&&this.searchBar.selectedSuggestRemoveRecent}
|
|
3241
|
-
@click=${n=>this.removeRecentSearch(n,
|
|
3244
|
+
@click=${n=>this.removeRecentSearch(n,r)}>
|
|
3242
3245
|
</ft-button>
|
|
3243
3246
|
</div>
|
|
3244
3247
|
`)}
|
|
3245
|
-
${(0,
|
|
3248
|
+
${(0,Ps.repeat)(this.searchBar.suggestions,r=>r.value,(r,i)=>or.html`
|
|
3246
3249
|
<div part="suggestion-container"
|
|
3247
3250
|
class=${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)?"ft-search-bar--suggestions-selected":or.nothing}>
|
|
3248
|
-
<a href="${this.getRequestWithQuery(
|
|
3251
|
+
<a href="${this.getRequestWithQuery(r.value)}"
|
|
3249
3252
|
part="suggestions"
|
|
3250
3253
|
class="ft-search-bar--suggestion"
|
|
3251
3254
|
id="${this.suggestionId(i)}"
|
|
3252
3255
|
aria-selected="${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)}"
|
|
3253
3256
|
role="option"
|
|
3254
3257
|
tabindex="-1"
|
|
3255
|
-
@click=${n=>this.onSuggestClick(n,
|
|
3258
|
+
@click=${n=>this.onSuggestClick(n,r.value)}>
|
|
3256
3259
|
<ft-ripple ?activated=${this.searchBar.selectedSuggestOptionId===this.suggestionId(i)}></ft-ripple>
|
|
3257
|
-
${this.getIcon(
|
|
3258
|
-
<ft-typography variant="body1">${
|
|
3260
|
+
${this.getIcon(r)}
|
|
3261
|
+
<ft-typography variant="body1">${r.value}</ft-typography>
|
|
3259
3262
|
</a>
|
|
3260
3263
|
</div>
|
|
3261
3264
|
`)}
|
|
3262
3265
|
</div>
|
|
3263
|
-
`}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,
|
|
3264
|
-
<ft-icon .variant="${
|
|
3265
|
-
`}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var
|
|
3266
|
+
`}recentSearchId(e){return this.listboxId+"-recent-"+e}suggestionId(e){return this.listboxId+"-suggest-"+e}getRequestWithQuery(e){return this.searchBar.searchRequestSerializer({...this.searchBar.request,paging:{page:1},query:e})}update(){return new Promise((e,r)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestClick(e,r){this.searchBar.setQuery(r),this.searchBar.onLaunchSearch()}removeRecentSearch(e,r){e.preventDefault(),e.stopPropagation(),this.selectSuggestion(null),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(i=>i.toLowerCase()!==r.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let r=e.type==="DOCUMENT"?Xe.file_format:Xe.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?ft.BOOK:ft.ARTICLE;break;case"DOCUMENT":i=Op(e.mimeType,e.filenameExtension);break;case"TOPIC":i=ft.TOPICS;break}return or.html`
|
|
3267
|
+
<ft-icon .variant="${r}" .value="${i}" part="suggestion-icon"></ft-icon>
|
|
3268
|
+
`}focusNextSuggestion(){this.selectSuggestion(this.nextSuggestionElement())}focusPreviousSuggestion(){this.selectSuggestion(this.previousSuggestionElement())}nextSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.nextElementSibling:this.getFirstSuggestionElement()}getFirstSuggestionElement(){return this.searchBar.querySelector("[part=suggestion-container]")}previousSuggestionElement(){let e=this.selectedSuggestOption;return e?e?.previousElementSibling:this.getLastSuggestionElement()}get selectedSuggestOption(){var e;return(e=this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']"))===null||e===void 0?void 0:e.parentElement}get selectedSuggestOptionLink(){return this.searchBar.querySelector("[id='"+this.searchBar.selectedSuggestOptionId+"']")}get selectedSuggestRemoveRecentButton(){var e;return(e=this.selectedSuggestOption)===null||e===void 0?void 0:e.querySelector("[part=remove-suggestion]")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll("[part=suggestion-container]");return e.length>0?e[e.length-1]:null}selectSuggestion(e){var r;this.searchBar.selectedSuggestRemoveRecent=!1,e?this.searchBar.selectedSuggestOptionId=(r=e.querySelector("[part=suggestions]"))===null||r===void 0?void 0:r.id:this.searchBar.selectedSuggestOptionId=void 0}focusArrowLeft(){this.searchBar.selectedSuggestRemoveRecent?this.searchBar.selectedSuggestRemoveRecent=!1:this.selectSuggestion(null)}focusArrowRight(){!this.searchBar.selectedSuggestRemoveRecent&&this.selectedSuggestRemoveRecentButton?this.searchBar.selectedSuggestRemoveRecent=!0:this.selectSuggestion(null)}get shouldDisplaySuggestions(){return this.searchBar.displaySuggestListbox&&(this.searchBar.suggestions.length>0||this.recentSearchesMatchingQuery.length>0)}get recentSearchesMatchingQuery(){return this.searchBar.recentSearches.filter(e=>e.toLowerCase().includes(this.searchBar.query.toLowerCase()))}};ir.styles=[Go.wordWrap,or.css`
|
|
3266
3269
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
3267
3270
|
flex-grow: 1;
|
|
3268
3271
|
flex-shrink: 1;
|
|
@@ -3350,9 +3353,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3350
3353
|
}
|
|
3351
3354
|
|
|
3352
3355
|
ft-ripple {
|
|
3353
|
-
${(0,
|
|
3356
|
+
${(0,Go.setVariable)(S.opacityContentOnSurfaceHover,S.opacityContentOnSurfaceSelected)}
|
|
3354
3357
|
}
|
|
3355
|
-
`];var Je=f(k())
|
|
3358
|
+
`];var Je=f(k()),Bs=f(Ur());var Pn=f(w());var nr=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return Je.html``;let e=this.searchBar.isMobile(),r=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=Je.html`
|
|
3356
3359
|
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?Je.html`
|
|
3357
3360
|
<ft-chip part="selected-filters selected-filter-ft-locale"
|
|
3358
3361
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -3363,7 +3366,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3363
3366
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
3364
3367
|
</ft-chip>
|
|
3365
3368
|
`:null}
|
|
3366
|
-
${(0
|
|
3369
|
+
${(0,Bs.repeat)(this.searchBar.facets,n=>n.key,n=>{let a=Tl(n);return(0,Bs.repeat)(a,s=>{let c=n.label+": "+Ll(s),p=n.key.replace(":","-"),u=Je.html`
|
|
3367
3370
|
<ft-chip
|
|
3368
3371
|
part="selected-filters selected-filter-${p}"
|
|
3369
3372
|
?dense=${this.searchBar.dense&&!e}
|
|
@@ -3371,14 +3374,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3371
3374
|
?removable=${!e}
|
|
3372
3375
|
icon=${e?Je.nothing:"close"}
|
|
3373
3376
|
label="${c}"
|
|
3374
|
-
title=${
|
|
3377
|
+
title=${r?c:Je.nothing}
|
|
3375
3378
|
@click=${()=>this.openMobileFilters(n.key)}
|
|
3376
3379
|
@icon-click=${()=>this.searchBar.setFilter(n.key,a.filter(m=>m!==s))}
|
|
3377
3380
|
data-key="${n.key}"
|
|
3378
3381
|
data-value="${s}">
|
|
3379
|
-
${
|
|
3382
|
+
${Rl(s)}
|
|
3380
3383
|
</ft-chip>
|
|
3381
|
-
`;return
|
|
3384
|
+
`;return r?u:Je.html`
|
|
3382
3385
|
<ft-tooltip inline text="${c}">
|
|
3383
3386
|
${u}
|
|
3384
3387
|
</ft-tooltip>
|
|
@@ -3391,7 +3394,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3391
3394
|
${this.searchBar.labelResolver.resolve("filtersButton")}
|
|
3392
3395
|
</ft-chip>
|
|
3393
3396
|
`:Je.nothing}
|
|
3394
|
-
`;return
|
|
3397
|
+
`;return r?Je.html`
|
|
3395
3398
|
<ft-snap-scroll horizontal controls hideScrollbar limitSize
|
|
3396
3399
|
class="ft-search-bar--selected-filters"
|
|
3397
3400
|
part="selected-filters-container"
|
|
@@ -3402,7 +3405,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3402
3405
|
<div class="ft-search-bar--selected-filters" part="selected-filters-container">
|
|
3403
3406
|
${i}
|
|
3404
3407
|
</div>
|
|
3405
|
-
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var
|
|
3408
|
+
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var r;return(r=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&r!==void 0?r:e}};nr.styles=Je.css`
|
|
3406
3409
|
.ft-search-bar--selected-filters:not(ft-snap-scroll) {
|
|
3407
3410
|
flex-shrink: 0;
|
|
3408
3411
|
display: flex;
|
|
@@ -3413,7 +3416,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3413
3416
|
|
|
3414
3417
|
ft-snap-scroll.ft-search-bar--selected-filters {
|
|
3415
3418
|
overflow: hidden;
|
|
3416
|
-
${(0
|
|
3419
|
+
${(0,Pn.setVariable)(Qe.gap,"4px")};
|
|
3417
3420
|
}
|
|
3418
3421
|
|
|
3419
3422
|
ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
|
|
@@ -3421,8 +3424,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3421
3424
|
}
|
|
3422
3425
|
|
|
3423
3426
|
.ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
|
|
3424
|
-
${(0
|
|
3425
|
-
${(0
|
|
3427
|
+
${(0,Pn.setVariable)(Ve.iconSize,"17px")};
|
|
3428
|
+
${(0,Pn.setVariable)(Ve.fontSize,"12px")};
|
|
3426
3429
|
}
|
|
3427
3430
|
|
|
3428
3431
|
.ft-search-bar--selected-filters * {
|
|
@@ -3432,8 +3435,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3432
3435
|
.ft-search-bar--selected-filters ft-chip {
|
|
3433
3436
|
flex-grow: 0;
|
|
3434
3437
|
}
|
|
3435
|
-
`;var Ht=f(k());var
|
|
3436
|
-
<div class="${(0,
|
|
3438
|
+
`;var Ht=f(k());var Wu=f(vt()),Ei=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new nr(e),this.suggestManager=i??new ir(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return Ht.html`
|
|
3439
|
+
<div class="${(0,Wu.classMap)(r)}" part="container" tabindex="-1">
|
|
3437
3440
|
<div class="ft-search-bar" role="search">
|
|
3438
3441
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
3439
3442
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
@@ -3486,13 +3489,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3486
3489
|
round
|
|
3487
3490
|
label="${this.searchBar.labelResolver.resolve("searchButton")}"
|
|
3488
3491
|
tooltipPosition="left"
|
|
3489
|
-
@click=${()=>{var
|
|
3492
|
+
@click=${()=>{var r;return this.searchBar.isMobileMenuOpen()?this.searchBar.onLaunchSearch():(r=this.searchBar.input)===null||r===void 0?void 0:r.focus()}}
|
|
3490
3493
|
></ft-button>
|
|
3491
3494
|
</div>
|
|
3492
|
-
`}onSearchBarKeyDown(e){var
|
|
3495
|
+
`}onSearchBarKeyDown(e){var r;switch(e.key){case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}};Ei.styles=Ht.css`
|
|
3493
3496
|
|
|
3494
|
-
`;var et=f(k()),
|
|
3495
|
-
<div class="${(0,
|
|
3497
|
+
`;var et=f(k()),Vu=f(Ur());var Gu=f(vt()),Ai=class{constructor(e,r,i){this.searchBar=e,this.selectedFacetsManager=r??new nr(e),this.suggestManager=i??new ir(e)}render(){var e;let r={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return et.html`
|
|
3498
|
+
<div class="${(0,Gu.classMap)(r)}" part="container" tabindex="-1">
|
|
3496
3499
|
<div class="ft-search-bar" part="search-bar" role="search">
|
|
3497
3500
|
${this.renderSearchBarLeftAction()}
|
|
3498
3501
|
<div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
|
|
@@ -3539,7 +3542,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3539
3542
|
ariaLabel="${this.searchBar.labelResolver.resolve("selectLocale")}"
|
|
3540
3543
|
.exportpartsPrefixes=${["content-locale","select-ft-locale"]}
|
|
3541
3544
|
@change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
|
|
3542
|
-
${(0,
|
|
3545
|
+
${(0,Vu.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>et.html`
|
|
3543
3546
|
<ft-select-option .value=${e.lang}
|
|
3544
3547
|
label="${e.label}"
|
|
3545
3548
|
?selected=${e.lang==this.searchBar.contentLocale}>
|
|
@@ -3568,9 +3571,9 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3568
3571
|
@click=${()=>this.searchBar.onLaunchSearch()}
|
|
3569
3572
|
></ft-button>
|
|
3570
3573
|
</div>
|
|
3571
|
-
`}onSearchBarKeyDown(e){var
|
|
3574
|
+
`}onSearchBarKeyDown(e){var r;switch(["Escape","Tab","Shift"].includes(e.key)||(this.searchBar.displaySuggestListbox=!0),e.key){case"Tab":this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0;break;case"Escape":this.suggestManager.shouldDisplaySuggestions&&(e.stopPropagation(),e.preventDefault(),this.searchBar.displaySuggestListbox=!1,this.searchBar.selectedSuggestOptionId=void 0),this.searchBar.mobileMenuOpen=!1;break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusNextSuggestion();break;case"ArrowUp":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusPreviousSuggestion();break;case"ArrowLeft":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowLeft());break;case"ArrowRight":this.searchBar.selectedSuggestOptionId&&(e.stopPropagation(),e.preventDefault(),this.suggestManager.focusArrowRight());break;case"Enter":if(this.searchBar.selectedSuggestRemoveRecent)(r=this.suggestManager.selectedSuggestRemoveRecentButton)===null||r===void 0||r.click();else{let i=this.suggestManager.selectedSuggestOptionLink||this.searchBar.launchSearchButton;i?.click()}break}}onInput(e){let r=e.composedPath()[0];this.searchBar.query=r.value}onClick(){this.onFocus()}onFocus(){this.searchBar.reactToFocus&&(this.searchBar.displaySuggestListbox=!0)}};Ai.styles=et.css`
|
|
3572
3575
|
|
|
3573
|
-
`;var j=function(t,e,
|
|
3576
|
+
`;var j=function(t,e,r,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,i);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(n<3?s(a):n>3?s(e,r,a):s(e,r))||a);return n>3&&a&&Object.defineProperty(e,r,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var ju={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove {0}",back:"Back",selectLocale:"Select a language"},Ds=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Eh=()=>{},D=class extends le.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new le.ParametrizedLabelResolver(ju,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>new le.SearchPlaceConverter(this.baseUrl).serialize(e),this.focusOnDisplay=!1,this.metadataFilters=[],this.sizeCategory=bt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.displaySuggestListbox=!1,this.selectedSuggestRemoveRecent=!1,this.suggestManager=new ir(this),this.selectedFacetsManager=new nr(this),this.desktopSearchBarManager=new Ai(this),this.mobileSearchBarManager=new Ei(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new le.Debouncer(10),this.updateLocalesDebouncer=new le.Debouncer(10),this.initSearchData=()=>{this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(r=>r.contentLocales).catch(()=>[]).then(r=>{this.availableContentLocales=r,this.availableContentLocalesInitialized=!0})}),this.updateFacetsDebouncer.run(()=>{this.retrieveFacetsFromSearch().then(()=>{this.facetsLoaded=!0,this.facetsInitialized=!0})},this.facetsInitialized?500:10)},this.facetsLoaded=!1,this.updateFacetsDebouncer=new le.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(r=>r===this.floatingContainer))},this.closeSuggestListbox=e=>{e.composedPath().some(n=>n===this||n===this.shadowRoot)||(this.displaySuggestListbox=!1,this.selectedSuggestOptionId=void 0)},this.compareUnknownFilters=(e,r)=>e.valueFilter&&r.valueFilter?this.compareValueFilters(e.valueFilter,r.valueFilter):e.dateFilter&&r.dateFilter?this.compareDateFilters(e.dateFilter,r.dateFilter):e.rangeFilter&&r.rangeFilter?this.compareRangeFilters(e.rangeFilter,r.rangeFilter):!1,this.compareValueFilters=(e,r)=>e.negative==r.negative&&e.values.length===r.values.length&&e.values.every(i=>r.values.includes(i)),this.compareDateFilters=(e,r)=>e.type===r.type,this.compareRangeFilters=(e,r)=>e.from===r.from&&e.to===r.to,this.compareFilters=(e,r)=>e.key===r.key&&this.compareUnknownFilters(e,r),this.compareRequests=(e,r)=>(e.contentLocale==null||r.contentLocale==null||e.contentLocale===r.contentLocale)&&e.metadataFilters.length===r.metadataFilters.length&&e.metadataFilters.every(i=>r.metadataFilters.some(n=>this.compareFilters(i,n)))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,metadataFilters:this.metadataFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.metadataFilters.filter(r=>{var i,n;return((n=(i=r.valueFilter)===null||i===void 0?void 0:i.values.length)!==null&&n!==void 0?n:0)>0&&!this.displayedFilters.includes(r.key)}).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,metadataFilters:this.metadataFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===bt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,le.waitFor)(()=>this.input,50),this.input.focus(),this.reactToFocus=!0}clear(){this.query="",this.metadataFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return te.html`
|
|
3574
3577
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
3575
3578
|
<div class="sr-only" aria-live="polite" aria-atomic="true">
|
|
3576
3579
|
${this.renderLiveText()}
|
|
@@ -3580,7 +3583,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3580
3583
|
<ft-skeleton class="ft-search-bar--container ft-search-bar--skeleton"
|
|
3581
3584
|
part="loader"
|
|
3582
3585
|
tabindex="-1"></ft-skeleton>
|
|
3583
|
-
`}renderMobileFacets(){let e=this.availableContentLocales.filter(
|
|
3586
|
+
`}renderMobileFacets(){let e=this.availableContentLocales.filter(r=>r.lang===this.contentLocale).pop();return te.html`
|
|
3584
3587
|
<ft-accordion class="ft-search-bar--filters-container">
|
|
3585
3588
|
${this.hasLocaleSelector()?te.html`
|
|
3586
3589
|
<ft-accordion-item data-facet-key="ft:locale">
|
|
@@ -3598,10 +3601,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3598
3601
|
</div>
|
|
3599
3602
|
</ft-accordion-item>
|
|
3600
3603
|
`:null}
|
|
3601
|
-
${(0,
|
|
3602
|
-
<ft-accordion-item data-facet-key="${
|
|
3604
|
+
${(0,Ri.repeat)(this.facets,r=>r.key,r=>{let i=Sa(r),n=r.key.replace(":","-"),a=kl(i);return r.rootNodes.length>0?te.html`
|
|
3605
|
+
<ft-accordion-item data-facet-key="${r.key}">
|
|
3603
3606
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
3604
|
-
<ft-typography variant="button">${
|
|
3607
|
+
<ft-typography variant="button">${r.label}</ft-typography>
|
|
3605
3608
|
${a.length>0?te.html`
|
|
3606
3609
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
3607
3610
|
${a.join(", ")}
|
|
@@ -3627,11 +3630,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3627
3630
|
</ft-accordion>
|
|
3628
3631
|
`}getContentLocaleRadioGroup(){var e;return te.html`
|
|
3629
3632
|
<ft-radio-group aria-labelledby="content_locale_radio_group_label"
|
|
3630
|
-
@change=${
|
|
3631
|
-
${(0,
|
|
3632
|
-
<ft-radio value="${(i=
|
|
3633
|
-
?checked=${
|
|
3634
|
-
${
|
|
3633
|
+
@change=${r=>{this.contentLocale=r.detail==="all"?void 0:r.detail,this.clearFilters()}}>
|
|
3634
|
+
${(0,Ri.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],r=>r.lang,r=>{var i;return te.html`
|
|
3635
|
+
<ft-radio value="${(i=r.lang)!==null&&i!==void 0?i:"all"}"
|
|
3636
|
+
?checked=${r.lang==this.contentLocale}>
|
|
3637
|
+
${r.label}
|
|
3635
3638
|
</ft-radio>
|
|
3636
3639
|
`})}
|
|
3637
3640
|
</ft-radio-group>
|
|
@@ -3658,11 +3661,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3658
3661
|
part="presets"
|
|
3659
3662
|
label="${this.labelResolver.resolve("presetsSelector")}"
|
|
3660
3663
|
outlined
|
|
3661
|
-
@change=${
|
|
3662
|
-
${(0,
|
|
3663
|
-
<ft-select-option value="${
|
|
3664
|
-
label="${
|
|
3665
|
-
?selected=${
|
|
3664
|
+
@change=${r=>this.selectedPreset=r.detail}>
|
|
3665
|
+
${(0,Ri.repeat)((e=this.presets)!==null&&e!==void 0?e:[],r=>r.name,r=>te.html`
|
|
3666
|
+
<ft-select-option value="${r.name}"
|
|
3667
|
+
label="${r.name}"
|
|
3668
|
+
?selected=${r.name===this.selectedPreset}>
|
|
3666
3669
|
</ft-select-option>
|
|
3667
3670
|
`)}
|
|
3668
3671
|
</ft-select>
|
|
@@ -3691,33 +3694,33 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
|
|
|
3691
3694
|
${this.getContentLocaleRadioGroup()}
|
|
3692
3695
|
</div>
|
|
3693
3696
|
`:te.nothing}
|
|
3694
|
-
${(0,
|
|
3697
|
+
${(0,Ri.repeat)(this.facets,e=>e.key,e=>{let r=Sa(e),i=r.options.some(a=>{var s,c;return((c=(s=a.subOptions)===null||s===void 0?void 0:s.length)!==null&&c!==void 0?c:0)>0}),n=e.key.replace(":","-");return te.html`
|
|
3695
3698
|
<ft-filter
|
|
3696
3699
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
3697
3700
|
part="filters filter filter-${n}"
|
|
3698
3701
|
.exportpartsPrefixes=${["filter","filter-"+n]}
|
|
3699
|
-
id="${
|
|
3700
|
-
label="${
|
|
3701
|
-
filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",
|
|
3702
|
+
id="${r.id}"
|
|
3703
|
+
label="${r.label}"
|
|
3704
|
+
filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",r.label)}"
|
|
3702
3705
|
clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
|
|
3703
3706
|
moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}"
|
|
3704
3707
|
noValuesLabel="${this.labelResolver.resolve("noFilterValuesAvailable")}"
|
|
3705
|
-
?multivalued=${
|
|
3708
|
+
?multivalued=${r.multivalued}
|
|
3706
3709
|
raiseSelectedOptions
|
|
3707
|
-
.options=${
|
|
3710
|
+
.options=${r.options}
|
|
3708
3711
|
.displayedValuesLimit=${10}
|
|
3709
|
-
@change=${a=>this.setFilter(
|
|
3712
|
+
@change=${a=>this.setFilter(r.id,a.detail)}
|
|
3710
3713
|
></ft-filter>
|
|
3711
3714
|
`})}
|
|
3712
3715
|
</ft-snap-scroll>
|
|
3713
|
-
`:te.nothing}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",
|
|
3716
|
+
`:te.nothing}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",r=>{r.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var r,i,n,a,s;if(e.has("labels")&&(this.labelResolver=new le.ParametrizedLabelResolver(ju,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let c=p=>this.availableContentLocales.some(u=>u.lang==p);c(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&c(e.get("contentLocale"))?e.get("contentLocale"):(r=this.availableContentLocales[0])===null||r===void 0?void 0:r.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(c=>c.metadataFilters.forEach(p=>{p.valueFilter&&(p.valueFilter.values=p.valueFilter.values.map(u=>Ni(u)))})),e.has("presets")||e.has("selectedPreset")){let c=((n=this.presets)!==null&&n!==void 0?n:[]).find(p=>p.name===this.selectedPreset);c&&!this.compareRequests(this.request,c)&&this.setFiltersFromPreset(c)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","metadataFilters"].some(c=>e.has(c))&&(this.selectedPreset=(s=((a=this.presets)!==null&&a!==void 0?a:[]).find(c=>this.compareRequests(c,this.request)))===null||s===void 0?void 0:s.name),["baseUrl","apiIntegrationIdentifier"].some(c=>e.has(c))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","metadataFilters","displayedFilters"].some(c=>e.has(c))&&this.updateFacets(),["query","uiLocale","contentLocale","metadataFilters","displayedFilters","api"].some(c=>e.has(c))&&this.suggestManager.update(),["query","uiLocale","contentLocale","metadataFilters"].some(c=>e.has(c))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new Ds(this.request)))}updateFacets(){this.api&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):this.facets=[])}contentAvailableCallback(e){var r,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((r=this.floatingContainer)===null||r===void 0||r.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(s=>s.key===this.scrollToFacet));let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);a&&(a.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;let r=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),r.set(n.key,n)})).catch(Eh)),this.facets=[];for(let i of this.facetsRequest)r.has(i.id)?this.facets.push(r.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var r;e.key==="Escape"&&(this.displayFacets=!1,(r=this.filtersOpener)===null||r===void 0||r.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}onLaunchSearch(){if(this.query){let e=this.recentSearches.filter(r=>r.toLowerCase()!==this.query.toLowerCase()).filter((r,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("pointerdown",this.closeSuggestListbox),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!le.isTouchScreen&&this.focusInput(),I.addEventListener("authentication-change",this.initSearchData),this.initSearchData()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("pointerdown",this.closeSuggestListbox),document.removeEventListener("focusin",this.closeFloatingContainer),document.removeEventListener("click",this.closeFloatingContainer),I.removeEventListener("authentication-change",this.initSearchData)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,r){let i=this.metadataFilters.filter(n=>!n.valueFilter||n.key!==e);this.facets.forEach(n=>{n.key===e&&(0,le.flatDeep)(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=r.includes(a.value))}),r.length&&i.push({key:e,valueFilter:{negative:!1,values:r}}),this.metadataFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.metadataFilters=e.metadataFilters)}clearFilters(){this.facets.forEach(r=>(0,le.flatDeep)(r.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.metadataFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?te.nothing:te.html`
|
|
3714
3717
|
<div class="ft-search-bar--floating-panel"
|
|
3715
3718
|
id="ft-search-bar-floating-panel"
|
|
3716
3719
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
3717
3720
|
part="floating-panel"
|
|
3718
3721
|
tabindex="-1">
|
|
3719
3722
|
${this.renderDesktopMenu()}
|
|
3720
|
-
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};D.elementDefinitions={"ft-accordion":tr,"ft-accordion-item":It,"ft-button":Ae,"ft-chip":Se,"ft-filter":J,"ft-filter-option":
|
|
3723
|
+
</div>`}get ariaActiveDescendent(){if(this.selectedSuggestOptionId)return this.selectedSuggestRemoveRecent?"remove-"+this.selectedSuggestOptionId:this.selectedSuggestOptionId}};D.elementDefinitions={"ft-accordion":tr,"ft-accordion-item":It,"ft-button":Ae,"ft-chip":Se,"ft-filter":J,"ft-filter-option":gt,"ft-icon":pe,"ft-ripple":Y,"ft-select":re,"ft-select-option":rr,"ft-size-watcher":st,"ft-skeleton":Fr,"ft-snap-scroll":Re,"ft-tooltip":Oe,"ft-typography":oe,"ft-radio-group":io,"ft-radio":Jt};D.styles=[Co,le.noTextInputDefaultClearButton,Fu,Mu,nr.styles,ir.styles,le.screenReaderStyles];j([(0,K.property)({type:Boolean})],D.prototype,"dense",void 0);j([(0,K.property)()],D.prototype,"mode",void 0);j([(0,K.property)({type:Boolean})],D.prototype,"forceMobileMenuOpen",void 0);j([(0,K.property)({type:Boolean})],D.prototype,"forceMenuOpen",void 0);j([(0,K.property)()],D.prototype,"baseUrl",void 0);j([(0,K.property)()],D.prototype,"apiIntegrationIdentifier",void 0);j([(0,K.property)()],D.prototype,"contentLocale",void 0);j([(0,K.state)()],D.prototype,"availableContentLocales",void 0);j([(0,K.state)()],D.prototype,"availableContentLocalesInitialized",void 0);j([(0,K.property)()],D.prototype,"uiLocale",void 0);j([(0,le.jsonProperty)({})],D.prototype,"labels",void 0);j([(0,le.jsonProperty)([])],D.prototype,"displayedFilters",void 0);j([(0,le.jsonProperty)([])],D.prototype,"presets",void 0);j([(0,K.property)({type:String,reflect:!0})],D.prototype,"selectedPreset",void 0);j([(0,le.jsonProperty)([])],D.prototype,"priors",void 0);j([(0,K.property)()],D.prototype,"searchRequestSerializer",void 0);j([(0,K.property)({type:Boolean})],D.prototype,"focusOnDisplay",void 0);j([(0,K.state)()],D.prototype,"metadataFilters",void 0);j([(0,K.state)()],D.prototype,"sizeCategory",void 0);j([(0,K.state)()],D.prototype,"displayFacets",void 0);j([(0,K.state)()],D.prototype,"mobileMenuOpen",void 0);j([(0,K.state)()],D.prototype,"facets",void 0);j([(0,K.state)()],D.prototype,"facetsInitialized",void 0);j([(0,K.query)(".ft-search-bar--container")],D.prototype,"container",void 0);j([(0,K.query)(".ft-search-bar--filters-opener")],D.prototype,"filtersOpener",void 0);j([(0,K.query)(".ft-search-bar--floating-panel")],D.prototype,"floatingContainer",void 0);j([(0,K.query)("ft-snap-scroll.ft-search-bar--filters-container")],D.prototype,"scrollingFiltersContainer",void 0);j([(0,K.query)(".ft-search-bar--input")],D.prototype,"input",void 0);j([(0,K.query)(".ft-search-bar--launch-search")],D.prototype,"launchSearchButton",void 0);j([(0,K.state)()],D.prototype,"query",void 0);j([(0,K.state)()],D.prototype,"suggestions",void 0);j([(0,K.state)()],D.prototype,"recentSearches",void 0);j([(0,K.state)()],D.prototype,"scrollToFacet",void 0);j([(0,K.state)()],D.prototype,"api",void 0);j([(0,K.state)()],D.prototype,"displaySuggestListbox",void 0);j([(0,K.state)()],D.prototype,"selectedSuggestOptionId",void 0);j([(0,K.state)()],D.prototype,"selectedSuggestRemoveRecent",void 0);j([(0,K.state)()],D.prototype,"facetsLoaded",void 0);(0,Ku.customElement)("ft-search-bar")(D);})();
|
|
3721
3724
|
/*! Bundled license information:
|
|
3722
3725
|
|
|
3723
3726
|
lit-html/lit-html.js:
|
|
@@ -3734,17 +3737,17 @@ lit-html/static.js:
|
|
|
3734
3737
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3735
3738
|
*)
|
|
3736
3739
|
|
|
3737
|
-
lit-
|
|
3740
|
+
@lit/reactive-element/css-tag.js:
|
|
3738
3741
|
(**
|
|
3739
3742
|
* @license
|
|
3740
|
-
* Copyright
|
|
3743
|
+
* Copyright 2019 Google LLC
|
|
3741
3744
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3742
3745
|
*)
|
|
3743
3746
|
|
|
3744
|
-
|
|
3747
|
+
lit-html/directives/if-defined.js:
|
|
3745
3748
|
(**
|
|
3746
3749
|
* @license
|
|
3747
|
-
* Copyright
|
|
3750
|
+
* Copyright 2018 Google LLC
|
|
3748
3751
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
3749
3752
|
*)
|
|
3750
3753
|
|