@fluid-topics/ft-reader-feedback 1.2.27 → 1.2.28
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-reader-feedback.light.js +404 -393
- package/build/ft-reader-feedback.min.js +372 -361
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
2
|
-
`)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var
|
|
1
|
+
"use strict";(()=>{var Md=Object.create;var ha=Object.defineProperty;var Ud=Object.getOwnPropertyDescriptor;var Fd=Object.getOwnPropertyNames;var Wd=Object.getPrototypeOf,zd=Object.prototype.hasOwnProperty;var pr=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Hd=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Fd(e))!zd.call(t,n)&&n!==o&&ha(t,n,{get:()=>e[n],enumerable:!(i=Ud(e,n))||i.enumerable});return t};var g=(t,e,o)=>(o=t!=null?Md(Wd(t)):{},Hd(e||!t||!t.__esModule?ha(o,"default",{value:t,enumerable:!0}):o,t));var R=pr((gu,ya)=>{ya.exports=ftGlobals.wcUtils});var M=pr((bu,ma)=>{ma.exports=ftGlobals.lit});var q=pr((vu,ga)=>{ga.exports=ftGlobals.litDecorators});var Ss=pr((Vt,xs)=>{var Lo=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,ko=function(){function t(){this.fetch=!1,this.DOMException=Lo.DOMException}return t.prototype=Lo,new t}();(function(t){var e=function(o){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(m){return m&&DataView.prototype.isPrototypeOf(m)}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(m){return m&&s.indexOf(Object.prototype.toString.call(m))>-1};function u(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(m)||m==="")throw new TypeError('Invalid character in header field name: "'+m+'"');return m.toLowerCase()}function p(m){return typeof m!="string"&&(m=String(m)),m}function y(m){var v={next:function(){var k=m.shift();return{done:k===void 0,value:k}}};return n.iterable&&(v[Symbol.iterator]=function(){return v}),v}function f(m){this.map={},m instanceof f?m.forEach(function(v,k){this.append(k,v)},this):Array.isArray(m)?m.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(v){this.append(v,m[v])},this)}f.prototype.append=function(m,v){m=u(m),v=p(v);var k=this.map[m];this.map[m]=k?k+", "+v:v},f.prototype.delete=function(m){delete this.map[u(m)]},f.prototype.get=function(m){return m=u(m),this.has(m)?this.map[m]:null},f.prototype.has=function(m){return this.map.hasOwnProperty(u(m))},f.prototype.set=function(m,v){this.map[u(m)]=p(v)},f.prototype.forEach=function(m,v){for(var k in this.map)this.map.hasOwnProperty(k)&&m.call(v,this.map[k],k,this)},f.prototype.keys=function(){var m=[];return this.forEach(function(v,k){m.push(k)}),y(m)},f.prototype.values=function(){var m=[];return this.forEach(function(v){m.push(v)}),y(m)},f.prototype.entries=function(){var m=[];return this.forEach(function(v,k){m.push([k,v])}),y(m)},n.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function b(m){if(!m._noBody){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}}function x(m){return new Promise(function(v,k){m.onload=function(){v(m.result)},m.onerror=function(){k(m.error)}})}function S(m){var v=new FileReader,k=x(v);return v.readAsArrayBuffer(m),k}function O(m){var v=new FileReader,k=x(v),Y=/charset=([A-Za-z0-9_-]+)/.exec(m.type),se=Y?Y[1]:"utf-8";return v.readAsText(m,se),k}function N(m){for(var v=new Uint8Array(m),k=new Array(v.length),Y=0;Y<v.length;Y++)k[Y]=String.fromCharCode(v[Y]);return k.join("")}function _(m){if(m.slice)return m.slice(0);var v=new Uint8Array(m.byteLength);return v.set(new Uint8Array(m)),v.buffer}function I(){return this.bodyUsed=!1,this._initBody=function(m){this.bodyUsed=this.bodyUsed,this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:n.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:n.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():n.arrayBuffer&&n.blob&&a(m)?(this._bodyArrayBuffer=_(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||c(m))?this._bodyArrayBuffer=_(m):this._bodyText=m=Object.prototype.toString.call(m):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof m=="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(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var m=b(this);if(m)return m;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 m=b(this);return m||(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(S);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var m=b(this);if(m)return m;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(N(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(Ge)}),this.json=function(){return this.text().then(JSON.parse)},this}var $=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function W(m){var v=m.toUpperCase();return $.indexOf(v)>-1?v:m}function z(m,v){if(!(this instanceof z))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var k=v.body;if(m instanceof z){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,v.headers||(this.headers=new f(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!k&&m._bodyInit!=null&&(k=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new f(v.headers)),this.method=W(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in i){var H=new AbortController;return H.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&k)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(k),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var Y=/([?&])_=[^&]*/;if(Y.test(this.url))this.url=this.url.replace(Y,"$1_="+new Date().getTime());else{var se=/\?/;this.url+=(se.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}z.prototype.clone=function(){return new z(this,{body:this._bodyInit})};function Ge(m){var v=new FormData;return m.trim().split("&").forEach(function(k){if(k){var Y=k.split("="),se=Y.shift().replace(/\+/g," "),H=Y.join("=").replace(/\+/g," ");v.append(decodeURIComponent(se),decodeURIComponent(H))}}),v}function vt(m){var v=new f,k=m.replace(/\r?\n[\t ]+/g," ");return k.split("\r").map(function(Y){return Y.indexOf(`
|
|
2
|
+
`)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var se=Y.split(":"),H=se.shift().trim();if(H){var Ro=se.join(":").trim();try{v.append(H,Ro)}catch(Zi){console.warn("Response "+Zi.message)}}}),v}I.call(z.prototype);function Fe(m,v){if(!(this instanceof Fe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.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=v.statusText===void 0?"":""+v.statusText,this.headers=new f(v.headers),this.url=v.url||"",this._initBody(m)}I.call(Fe.prototype),Fe.prototype.clone=function(){return new Fe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},Fe.error=function(){var m=new Fe(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var xt=[301,302,303,307,308];Fe.redirect=function(m,v){if(xt.indexOf(v)===-1)throw new RangeError("Invalid status code");return new Fe(null,{status:v,headers:{location:m}})},o.DOMException=i.DOMException;try{new o.DOMException}catch{o.DOMException=function(v,k){this.message=v,this.name=k;var Y=Error(v);this.stack=Y.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function Re(m,v){return new Promise(function(k,Y){var se=new z(m,v);if(se.signal&&se.signal.aborted)return Y(new o.DOMException("Aborted","AbortError"));var H=new XMLHttpRequest;function Ro(){H.abort()}H.onload=function(){var _e={statusText:H.statusText,headers:vt(H.getAllResponseHeaders()||"")};se.url.indexOf("file://")===0&&(H.status<200||H.status>599)?_e.status=200:_e.status=H.status,_e.url="responseURL"in H?H.responseURL:_e.headers.get("X-Request-URL");var dr="response"in H?H.response:H.responseText;setTimeout(function(){k(new Fe(dr,_e))},0)},H.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},H.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},H.onabort=function(){setTimeout(function(){Y(new o.DOMException("Aborted","AbortError"))},0)};function Zi(_e){try{return _e===""&&i.location.href?i.location.href:_e}catch{return _e}}if(H.open(se.method,Zi(se.url),!0),se.credentials==="include"?H.withCredentials=!0:se.credentials==="omit"&&(H.withCredentials=!1),"responseType"in H&&(n.blob?H.responseType="blob":n.arrayBuffer&&(H.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof f||i.Headers&&v.headers instanceof i.Headers)){var fa=[];Object.getOwnPropertyNames(v.headers).forEach(function(_e){fa.push(u(_e)),H.setRequestHeader(_e,p(v.headers[_e]))}),se.headers.forEach(function(_e,dr){fa.indexOf(dr)===-1&&H.setRequestHeader(dr,_e)})}else se.headers.forEach(function(_e,dr){H.setRequestHeader(dr,_e)});se.signal&&(se.signal.addEventListener("abort",Ro),H.onreadystatechange=function(){H.readyState===4&&se.signal.removeEventListener("abort",Ro)}),H.send(typeof se._bodyInit>"u"?null:se._bodyInit)})}return Re.polyfill=!0,i.fetch||(i.fetch=Re,i.Headers=f,i.Request=z,i.Response=Fe),o.Headers=f,o.Request=z,o.Response=Fe,o.fetch=Re,o}({})})(ko);ko.fetch.ponyfill=!0;delete ko.fetch.polyfill;var Dr=Lo.fetch?Lo:ko;Vt=Dr.fetch;Vt.default=Dr.fetch;Vt.fetch=Dr.fetch;Vt.Headers=Dr.Headers;Vt.Request=Dr.Request;Vt.Response=Dr.Response;xs.exports=Vt});var It=pr((gg,ul)=>{ul.exports=ftGlobals.litClassMap});var Vl=pr((rb,Hl)=>{Hl.exports=ftGlobals.litUnsafeHTML});var uc=pr((Sv,pc)=>{pc.exports=ftGlobals.litRepeat});var ua=g(R());var Dd=g(M()),et=g(q()),Me=g(R());var ba=g(R()),va=g(q());var it;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(it||(it={}));var Vd=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},Yi=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},qi=Symbol("registerInterval");function Gd(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[qi]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[qi]):this.dispatchEvent(new Yi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=qi,Vd([(0,va.state)()],o.prototype,"stateManager",void 0),o}var Ft=class extends Gd(ba.FtLitElementRedux){};var ye=g(M()),me=g(q()),Gi=g(R());var bs=g(M()),J=g(R());var ms=g(M()),U=g(R());var wa=g(M()),ge=g(R()),xa=ge.FtCssVariableFactory.extend("--ft-ripple-color","",ge.designSystemVariables.colorContent),E={color:xa,backgroundColor:ge.FtCssVariableFactory.extend("--ft-ripple-background-color","",xa),opacityContentOnSurfacePressed:ge.FtCssVariableFactory.external(ge.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ge.FtCssVariableFactory.external(ge.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ge.FtCssVariableFactory.external(ge.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ge.FtCssVariableFactory.external(ge.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ge.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Sa=ge.FtCssVariableFactory.extend("--ft-ripple-color","",ge.designSystemVariables.colorPrimary),Oa={color:Sa,backgroundColor:ge.FtCssVariableFactory.extend("--ft-ripple-background-color","",Sa)},Ca=ge.FtCssVariableFactory.extend("--ft-ripple-color","",ge.designSystemVariables.colorSecondary),Ea={color:Ca,backgroundColor:ge.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ca)},Aa=wa.css`
|
|
3
3
|
:host {
|
|
4
4
|
display: contents;
|
|
5
5
|
}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
14
14
|
overflow: hidden;
|
|
15
|
-
border-radius: ${
|
|
15
|
+
border-radius: ${E.borderRadius};
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.ft-ripple .ft-ripple--background,
|
|
@@ -46,19 +46,19 @@
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.ft-ripple .ft-ripple--background {
|
|
49
|
-
background-color: ${
|
|
49
|
+
background-color: ${E.backgroundColor};
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.ft-ripple .ft-ripple--effect {
|
|
53
|
-
background-color: ${
|
|
53
|
+
background-color: ${E.color};
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
57
|
-
background-color: ${
|
|
57
|
+
background-color: ${Ea.backgroundColor};
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
61
|
-
background-color: ${
|
|
61
|
+
background-color: ${Ea.color};
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
@@ -96,50 +96,50 @@
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
99
|
-
opacity: ${
|
|
99
|
+
opacity: ${E.opacityContentOnSurfaceHover};
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
103
|
-
opacity: ${
|
|
103
|
+
opacity: ${E.opacityContentOnSurfaceSelected};
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
107
|
-
opacity: ${
|
|
107
|
+
opacity: ${E.opacityContentOnSurfaceFocused};
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
111
|
-
opacity: ${
|
|
111
|
+
opacity: ${E.opacityContentOnSurfacePressed};
|
|
112
112
|
transform: translate(-50%, -50%) scale(1);
|
|
113
113
|
}
|
|
114
|
-
`;var ae=g(B()),A=g(R());var Re=g(B(),1),Ue=e=>typeof e=="string"?(0,Re.unsafeCSS)(e):e,r=class{static create(t,o,i,n){let a=c=>Ue(c??n),s=Re.css`var(${Ue(t)}, ${a(n)})`;return s.name=t,s.description=o,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=c=>Re.css`var(${Ue(t)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,o,i,n){let a=c=>i.get(c??n),s=Re.css`var(${Ue(t)}, ${a(n)})`;return s.name=t,s.description=o,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=c=>Re.css`var(${Ue(t)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(t,o){let i=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):Ue(a??t.lastResortDefaultValue()),n=Re.css`var(${Ue(t.name)}, ${i(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=o,n.defaultCssValue=i,n.get=a=>Re.css`var(${Ue(t.name)}, ${i(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};var l={colorWhite:r.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:r.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:r.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:r.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:r.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:r.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:r.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:r.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:r.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:r.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:r.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:r.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:r.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:r.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:r.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:r.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:r.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:r.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:r.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:r.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:r.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:r.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:r.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:r.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:r.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:r.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:r.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:r.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:r.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:r.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:r.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:r.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:r.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:r.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:r.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:r.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:r.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:r.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:r.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:r.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:r.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:r.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:r.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:r.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:r.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:r.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:r.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:r.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:r.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:r.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:r.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:r.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:r.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:r.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:r.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:r.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:r.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:r.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:r.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:r.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:r.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:r.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:r.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:r.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:r.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:r.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:r.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:r.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:r.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:r.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:r.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:r.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:r.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:r.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:r.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:r.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:r.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:r.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:r.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:r.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:r.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:r.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:r.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:r.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:r.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:r.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:r.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:r.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:r.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:r.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:r.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:r.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:r.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:r.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:r.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:r.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:r.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:r.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:r.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:r.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:r.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:r.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:r.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:r.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:r.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:r.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:r.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:r.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:r.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:r.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:r.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:r.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:r.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:r.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:r.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:r.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:r.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:r.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:r.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:r.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:r.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:r.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:r.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:r.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:r.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:r.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:r.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:r.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:r.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:r.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:r.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:r.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:r.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:r.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:r.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:r.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:r.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:r.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:r.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:r.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:r.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:r.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:r.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:r.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:r.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:r.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:r.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:r.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:r.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:r.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:r.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:r.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:r.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:r.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:r.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:r.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:r.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:r.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:r.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:r.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:r.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:r.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:r.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:r.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:r.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:r.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:r.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:r.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:r.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:r.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:r.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:r.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:r.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:r.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:r.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:r.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:r.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:r.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:r.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:r.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:r.create("--ft-opacity-0","","NUMBER","0"),opacity8:r.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:r.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:r.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:r.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:r.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:r.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:r.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:r.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:r.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:r.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:r.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:r.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:r.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:r.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:r.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:r.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Ra={fontFamily:r.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:r.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-display-textCase","","UNKNOWN","none")},Ia={fontFamily:r.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:r.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Ta={fontFamily:r.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:r.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Na={fontFamily:r.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:r.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:r.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},_a={fontFamily:r.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},ka={fontFamily:r.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},La={fontFamily:r.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Pa={fontFamily:r.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Da={fontFamily:r.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},zd={fontFamily:r.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:r.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:r.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},$a={fontFamily:r.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Ba={fontFamily:r.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Ma={fontFamily:r.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Fa={fontFamily:r.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Ua={fontFamily:r.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Wa={fontFamily:r.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},za={fontFamily:r.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Ha={fontFamily:r.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Va={fontFamily:r.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Ga={fontFamily:r.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ja={fontFamily:r.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Ka={fontFamily:r.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Za={fontFamily:r.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},qa={fontFamily:r.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Ya={fontFamily:r.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Xa={fontFamily:r.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Io={display:Ra,"title-1":Ia,"title-2":Ta,"title-3":Na,"body-1-regular":_a,"body-1-medium":ka,"body-1-semibold":La,"body-2-regular":Pa,"body-2-medium":Da,"body-2-medium-underline":zd,"body-2-semibold":$a,"label-1-medium":Ba,"label-1-semibold":Ma,"label-1-bold":Fa,"label-2-medium":Ua,"label-2-semibold":Wa,"label-2-bold":za,"caption-1-medium":Ha,"caption-1-semibold":Va,"caption-1-bold":Ga,"caption-2-medium":ja,"caption-2-semibold":Ka,"caption-2-bold":Za,"caption-3-medium":qa,"caption-3-semibold":Ya,"caption-3-bold":Xa};var d={backgroundActionPrimary:r.extend("--ft-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:r.extend("--ft-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:r.extend("--ft-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:r.extend("--ft-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:r.extend("--ft-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:r.extend("--ft-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:r.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:r.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:r.extend("--ft-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:r.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:r.extend("--ft-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:r.extend("--ft-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:r.extend("--ft-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:r.extend("--ft-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:r.extend("--ft-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:r.extend("--ft-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:r.extend("--ft-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:r.extend("--ft-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:r.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
115
|
-
Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:r.extend("--ft-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:r.extend("--ft-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:r.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:r.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:r.extend("--ft-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:r.extend("--ft-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:r.extend("--ft-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:r.extend("--ft-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:r.extend("--ft-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:r.extend("--ft-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:r.extend("--ft-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:r.extend("--ft-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:r.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:r.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:r.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var h={largeHeight:r.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:r.extend("--ft-button-large-horizontal-padding","",l.spacing4),largeGap:r.extend("--ft-button-large-gap","",l.spacing2),largeBorderRadius:r.extend("--ft-button-large-border-radius","",l.borderRadiusS),largeIconSize:r.extend("--ft-button-large-icon-size","",l.iconSize3),largeBorderWidth:r.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:r.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:r.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:r.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:r.extend("--ft-button-medium-horizontal-padding","",l.spacing3),mediumGap:r.extend("--ft-button-medium-gap","",l.spacing2),mediumBorderRadius:r.extend("--ft-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:r.extend("--ft-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:r.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:r.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:r.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:r.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-button-small-horizontal-padding","",l.spacing2),smallGap:r.extend("--ft-button-small-gap","",l.spacing1),smallBorderRadius:r.extend("--ft-button-small-border-radius","",l.borderRadiusS),smallIconSize:r.extend("--ft-button-small-icon-size","",l.iconSize1),smallBorderWidth:r.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:r.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:r.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:r.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:r.extend("--ft-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:r.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:r.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:r.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:r.extend("--ft-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:r.extend("--ft-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:r.extend("--ft-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:r.extend("--ft-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:r.extend("--ft-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:r.extend("--ft-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:r.extend("--ft-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:r.extend("--ft-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:r.extend("--ft-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:r.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:r.extend("--ft-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:r.extend("--ft-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:r.extend("--ft-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:r.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:r.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:r.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:r.extend("--ft-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:r.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:r.extend("--ft-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:r.extend("--ft-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:r.extend("--ft-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:r.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:r.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:r.extend("--ft-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:r.extend("--ft-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:r.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:r.extend("--ft-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:r.extend("--ft-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:r.extend("--ft-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:r.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:r.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:r.extend("--ft-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:r.extend("--ft-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:r.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:r.extend("--ft-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:r.extend("--ft-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:r.extend("--ft-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:r.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:r.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:r.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:r.extend("--ft-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:r.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:r.extend("--ft-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:r.extend("--ft-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:r.extend("--ft-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:r.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:r.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:r.extend("--ft-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:r.extend("--ft-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:r.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:r.extend("--ft-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:r.extend("--ft-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:r.extend("--ft-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:r.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:r.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:r.extend("--ft-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:r.extend("--ft-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:r.extend("--ft-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:r.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:r.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:r.extend("--ft-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:r.extend("--ft-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:r.extend("--ft-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:r.extend("--ft-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:r.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:r.extend("--ft-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:r.extend("--ft-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:r.extend("--ft-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:r.extend("--ft-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:r.extend("--ft-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:r.extend("--ft-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:r.extend("--ft-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:r.extend("--ft-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:r.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:r.extend("--ft-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:r.extend("--ft-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:r.extend("--ft-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:r.extend("--ft-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:r.extend("--ft-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:r.extend("--ft-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:r.extend("--ft-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:r.extend("--ft-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:r.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:r.extend("--ft-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:r.extend("--ft-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:r.extend("--ft-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:r.extend("--ft-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:r.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:r.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:r.extend("--ft-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:r.extend("--ft-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:r.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:r.extend("--ft-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:r.extend("--ft-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:r.extend("--ft-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:r.extend("--ft-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:r.extend("--ft-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:r.extend("--ft-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:r.extend("--ft-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:r.extend("--ft-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:r.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:r.extend("--ft-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:r.extend("--ft-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:r.extend("--ft-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:r.extend("--ft-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var ku={neutralOffHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:r.extend("--ft-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:r.extend("--ft-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:r.extend("--ft-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:r.extend("--ft-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:r.extend("--ft-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:r.extend("--ft-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:r.extend("--ft-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:r.extend("--ft-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:r.extend("--ft-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:r.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:r.extend("--ft-chip-choice-large-gap","",l.spacing1),largeBorderRadius:r.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:r.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:r.extend("--ft-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:r.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-choice-medium-icon-size","",l.iconSize2)};var Bu={largeMinHeight:r.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:r.extend("--ft-chip-large-button-right-padding","",l.spacing1),largeGap:r.extend("--ft-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:r.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:r.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-large-icon-size","",l.iconSize3),mediumMinHeight:r.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:r.extend("--ft-chip-medium-button-right-padding","",l.spacing05),mediumGap:r.extend("--ft-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:r.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:r.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-medium-icon-size","",l.iconSize2),smallMinHeight:r.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:r.extend("--ft-chip-small-button-right-padding","",l.spacing05),smallGap:r.extend("--ft-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:r.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:r.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:r.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:r.extend("--ft-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:r.extend("--ft-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:r.extend("--ft-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:r.extend("--ft-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:r.extend("--ft-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:r.extend("--ft-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-chip-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:r.extend("--ft-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:r.extend("--ft-chip-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:r.extend("--ft-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:r.extend("--ft-chip-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:r.extend("--ft-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:r.extend("--ft-chip-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:r.extend("--ft-chip-error-border-color","",d.borderErrorSubtle)};var zu={brandHoverOpacity:r.extend("--ft-link-brand-hover-opacity","",l.opacity80),brandHoverColor:r.extend("--ft-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:r.extend("--ft-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:r.extend("--ft-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:r.extend("--ft-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:r.extend("--ft-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:r.extend("--ft-link-info-hover-opacity","",l.opacity80),infoHoverColor:r.extend("--ft-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:r.extend("--ft-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:r.extend("--ft-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:r.extend("--ft-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:r.extend("--ft-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:r.extend("--ft-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:r.extend("--ft-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:r.extend("--ft-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:r.extend("--ft-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:r.extend("--ft-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:r.extend("--ft-link-neutral-visited-color","",l.colorBrand100)};var Ku={iconSize:r.extend("--ft-banner-icon-size","",l.iconSize5),borderWidth:r.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:r.extend("--ft-banner-left-padding","",l.spacing6),rightPadding:r.extend("--ft-banner-right-padding","",l.spacing6),verticalPadding:r.extend("--ft-banner-vertical-padding","",l.spacing6),horizontalSideGap:r.extend("--ft-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:r.extend("--ft-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:r.extend("--ft-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:r.extend("--ft-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:r.extend("--ft-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-banner-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-banner-info-border-color","",d.borderInfoSubtle)};var Qu={horizontalPadding:r.extend("--ft-badge-horizontal-padding","",l.spacing1),verticalPadding:r.extend("--ft-badge-vertical-padding","",l.spacing1),borderRadius:r.extend("--ft-badge-border-radius","",l.borderRadiusPill),color:r.extend("--ft-badge-color","",d.contentGlobalOnColor),backgroundColor:r.extend("--ft-badge-background-color","",d.contentActionPrimary)};var of={horizontalGap:r.extend("--ft-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:r.extend("--ft-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:r.extend("--ft-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:r.extend("--ft-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var cf={parentHorizontalPadding:r.extend("--ft-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:r.extend("--ft-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:r.extend("--ft-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:r.extend("--ft-page-header-parent-help-left-margin","",l.spacing1),parentTitleColor:r.extend("--ft-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:r.extend("--ft-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:r.extend("--ft-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:r.extend("--ft-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:r.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:r.extend("--ft-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:r.extend("--ft-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:r.extend("--ft-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:r.extend("--ft-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:r.extend("--ft-page-header-child-top-padding","",l.spacing2),childBottomPadding:r.extend("--ft-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:r.extend("--ft-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:r.extend("--ft-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:r.extend("--ft-page-header-child-vertical-gap","",l.spacing2),childMinHeight:r.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:r.extend("--ft-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:r.extend("--ft-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:r.extend("--ft-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:r.extend("--ft-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:r.extend("--ft-page-header-background-color","",l.colorWhite),bottomBorderColor:r.extend("--ft-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:r.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var hf={horizontalPadding:r.extend("--ft-page-footer-horizontal-padding","",l.spacing6),verticalPadding:r.extend("--ft-page-footer-vertical-padding","",l.spacing2),verticalGap:r.extend("--ft-page-footer-vertical-gap","",l.spacing2),minHeight:r.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:r.extend("--ft-page-footer-background-color","",l.colorWhite),topBorderColor:r.extend("--ft-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:r.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:r.extend("--ft-page-footer-buttons-group-gap","",l.spacing4)};var bf={contentHorizontalPadding:r.extend("--ft-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:r.extend("--ft-page-layout-content-vertical-padding","",l.spacing6)};var Cf={smallContainerTargetWidth:r.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:r.extend("--ft-modal-small-container-margin","",l.spacing6),mediumContainerTargetWidth:r.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:r.extend("--ft-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:r.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:r.extend("--ft-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:r.extend("--ft-modal-overlay-background-color","",l.colorGray700),overlayOpacity:r.extend("--ft-modal-overlay-opacity","",l.opacity40),shadow:r.extend("--ft-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:r.extend("--ft-modal-body-background-color","",l.colorWhite),bodyColor:r.extend("--ft-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:r.extend("--ft-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:r.extend("--ft-modal-body-vertical-gap","",l.spacing6),headerBackgroundColor:r.extend("--ft-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-modal-header-border-color","",d.borderGlobalSubtle),headerColor:r.extend("--ft-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:r.extend("--ft-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:r.extend("--ft-modal-header-vertical-padding","",l.spacing1),headerRightPadding:r.extend("--ft-modal-header-right-padding","",l.spacing1),headerLeftPadding:r.extend("--ft-modal-header-left-padding","",l.spacing6),headerGap:r.extend("--ft-modal-header-gap","",l.spacing2),headerBorderBottomWidth:r.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:r.extend("--ft-modal-border-radius","",l.borderRadiusM)};var If={overlayOpacity:r.extend("--ft-drawer-overlay-opacity","",l.opacity40),shadow:r.extend("--ft-drawer-shadow","",l.shadowElevation03),bodyColor:r.extend("--ft-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:r.extend("--ft-drawer-body-vertical-padding","",l.spacing6),bodyGap:r.extend("--ft-drawer-body-gap","",l.spacing6),bodyBackgroundColor:r.extend("--ft-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:r.extend("--ft-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:r.extend("--ft-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:r.extend("--ft-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:r.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:r.extend("--ft-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:r.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:r.extend("--ft-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:r.extend("--ft-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:r.extend("--ft-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:r.extend("--ft-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:r.extend("--ft-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:r.extend("--ft-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:r.extend("--ft-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:r.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:r.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:r.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:r.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:r.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:r.extend("--ft-drawer-overlay-background-color","",l.colorGray700)};var Lf={offBorderBottomWidth:r.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:r.extend("--ft-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:r.extend("--ft-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:r.extend("--ft-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:r.extend("--ft-tabs-off-disabled-component-opacity","",l.opacity40),offColor:r.extend("--ft-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:r.extend("--ft-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:r.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:r.extend("--ft-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:r.extend("--ft-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:r.extend("--ft-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:r.extend("--ft-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:r.extend("--ft-tabs-horizontal-gap","",l.spacing1),verticalGap:r.extend("--ft-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:r.extend("--ft-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:r.extend("--ft-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:r.extend("--ft-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:r.extend("--ft-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:r.extend("--ft-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:r.extend("--ft-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:r.extend("--ft-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:r.extend("--ft-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:r.extend("--ft-tabs-alert-top-padding","",l.spacing1),alertRightPadding:r.extend("--ft-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:r.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var Mf={fieldHorizontalPadding:r.extend("--ft-text-input-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-text-input-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-text-input-field-vertical-gap","",l.spacing05),fieldIconSize:r.extend("--ft-text-input-field-icon-size","",l.iconSize3),fieldHeight:r.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:r.extend("--ft-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:r.extend("--ft-text-input-helper-icon-size","",l.iconSize2),borderRadius:r.extend("--ft-text-input-border-radius","",l.borderRadiusM),backgroundColor:r.extend("--ft-text-input-background-color","",l.colorWhite),contentValueColor:r.extend("--ft-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:r.extend("--ft-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:r.extend("--ft-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderWidth:r.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:r.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-input-disabled-component-opacity","",l.opacity40)};var Hf={backgroundColor:r.extend("--ft-text-area-background-color","",l.colorWhite),contentValueColor:r.extend("--ft-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:r.extend("--ft-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:r.extend("--ft-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:r.extend("--ft-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:r.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:r.extend("--ft-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:r.extend("--ft-text-area-helper-icon-size","",l.iconSize2),borderRadius:r.extend("--ft-text-area-border-radius","",l.borderRadiusM)};var Zf={height:r.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:r.extend("--ft-floating-menu-horizontal-padding","",l.spacing4),offIconColor:r.extend("--ft-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:r.extend("--ft-floating-menu-off-color","",d.contentGlobalPrimary),onColor:r.extend("--ft-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:r.extend("--ft-floating-menu-gap","",l.spacing3),focusFocusRingColor:r.extend("--ft-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:r.extend("--ft-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:r.extend("--ft-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:r.extend("--ft-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:r.extend("--ft-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:r.extend("--ft-floating-menu-icon-size","",l.iconSize3),backgroundColor:r.extend("--ft-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:r.extend("--ft-floating-menu-shadow","",l.shadowElevation02)};var Jf={fieldHorizontalPadding:r.extend("--ft-combobox-single-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-single-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-combobox-single-select-field-vertical-gap","",l.spacing05),fieldIconSize:r.extend("--ft-combobox-single-select-field-icon-size","",l.iconSize3),fieldHeight:r.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:r.extend("--ft-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:r.extend("--ft-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:r.extend("--ft-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:r.extend("--ft-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:r.extend("--ft-combobox-single-select-border-radius","",l.borderRadiusM),backgroundColor:r.extend("--ft-combobox-single-select-background-color","",l.colorWhite),labelColor:r.extend("--ft-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:r.extend("--ft-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:r.extend("--ft-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:r.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:r.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-single-select-disabled-component-opacity","",l.opacity40)};var ih={backgroundColor:r.extend("--ft-combobox-multi-select-background-color","",l.colorWhite),labelColor:r.extend("--ft-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:r.extend("--ft-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:r.extend("--ft-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:r.extend("--ft-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:r.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:r.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:r.extend("--ft-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:r.extend("--ft-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:r.extend("--ft-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:r.extend("--ft-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:r.extend("--ft-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:r.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:r.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:r.extend("--ft-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:r.extend("--ft-combobox-multi-select-border-radius","",l.borderRadiusM)};var ch={backgroundColor:r.extend("--ft-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:r.extend("--ft-popover-horizontal-padding","",l.spacing6),verticalPadding:r.extend("--ft-popover-vertical-padding","",l.spacing6),titleColor:r.extend("--ft-popover-title-color","",d.contentGlobalPrimary),bodyColor:r.extend("--ft-popover-body-color","",d.contentGlobalSecondary),linkColor:r.extend("--ft-popover-link-color","",d.contentActionPrimary),gap:r.extend("--ft-popover-gap","",l.spacing3),borderRadius:r.extend("--ft-popover-border-radius","",l.borderRadiusM),shadow:r.extend("--ft-popover-shadow","",l.shadowElevation02),maxWidth:r.create("--ft-popover-max-width","","SIZE","440px")};var hh={hoverStateLayerOpacity:r.extend("--ft-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:r.extend("--ft-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:r.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:r.extend("--ft-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:r.extend("--ft-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:r.extend("--ft-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:r.extend("--ft-collapsible-horizontal-padding","",l.spacing4),verticalPadding:r.extend("--ft-collapsible-vertical-padding","",l.spacing3),color:r.extend("--ft-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:r.extend("--ft-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:r.extend("--ft-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:r.extend("--ft-collapsible-border-color","",d.borderGlobalSubtle),iconSize:r.extend("--ft-collapsible-icon-size","",l.iconSize3)};var vh={groupHorizontalPadding:r.extend("--ft-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:r.extend("--ft-switch-group-vertical-padding","",l.spacing1),groupGap:r.extend("--ft-switch-group-gap","",l.spacing1),groupBackgroundColor:r.extend("--ft-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:r.extend("--ft-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:r.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:r.extend("--ft-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:r.extend("--ft-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:r.extend("--ft-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:r.extend("--ft-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:r.extend("--ft-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:r.extend("--ft-switch-off-disabled-component-opacity","",l.opacity40),offColor:r.extend("--ft-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:r.extend("--ft-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:r.extend("--ft-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:r.extend("--ft-switch-on-disabled-component-opacity","",l.opacity40),onColor:r.extend("--ft-switch-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:r.extend("--ft-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:r.extend("--ft-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:r.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:r.extend("--ft-switch-option-border-radius","",l.borderRadiusS)};var Ch={color1Light:r.extend("--ft-chart-1-light","for area color charts",l.colorBrand40),color1Base:r.extend("--ft-chart-1-base","for line charts",l.colorBrand0),color2Light:r.extend("--ft-chart-2-light","for area color charts",l.colorYellow60),color2Base:r.extend("--ft-chart-2-base","for line charts",l.colorYellow100),color3Light:r.extend("--ft-chart-3-light","",l.colorUltramarine40),color3Base:r.extend("--ft-chart-3-base","",l.colorUltramarine70),color4Light:r.extend("--ft-chart-4-light","",l.colorCyan50),color4Base:r.extend("--ft-chart-4-base","",l.colorCyan100),color5Light:r.extend("--ft-chart-5-light","",l.colorRed40),color5Base:r.extend("--ft-chart-5-base","",l.colorRed60),color6Light:r.extend("--ft-chart-6-light","",l.colorGreen40),color6Base:r.extend("--ft-chart-6-base","",l.colorGreen70),color7Light:r.extend("--ft-chart-7-light","",l.colorOrange70),color7Base:r.extend("--ft-chart-7-base","",l.colorOrange100),color8Light:r.extend("--ft-chart-8-light","",l.colorAvocado70),color8Base:r.extend("--ft-chart-8-base","",l.colorAvocado200),color9Light:r.extend("--ft-chart-9-light","",l.colorBrown50),color9Base:r.extend("--ft-chart-9-base","",l.colorBrown200),color10Light:r.extend("--ft-chart-10-light","",l.colorGray50),color10Base:r.extend("--ft-chart-10-base","",l.colorGray80),monochrome10:r.extend("--ft-chart-monochrome-10","",l.colorBrand10),monochrome20:r.extend("--ft-chart-monochrome-20","",l.colorBrand20),monochrome30:r.extend("--ft-chart-monochrome-30","",l.colorBrand40),monochrome40:r.extend("--ft-chart-monochrome-40","",l.colorBrand60),monochrome50:r.extend("--ft-chart-monochrome-50","",l.colorBrand0),monochrome60:r.extend("--ft-chart-monochrome-60","",l.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",l.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",l.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",l.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",l.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",l.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",l.opacity48),scatterplotDatapointInitialHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",l.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",l.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",l.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",l.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",l.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",l.colorGray70),scatterplotDatapointHoverHoverRingColor:r.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",l.colorCyan200)};var Rh={color1IconColor:r.extend("--ft-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:r.extend("--ft-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:r.extend("--ft-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:r.extend("--ft-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:r.extend("--ft-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:r.extend("--ft-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:r.extend("--ft-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:r.extend("--ft-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:r.extend("--ft-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:r.extend("--ft-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:r.extend("--ft-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:r.extend("--ft-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:r.extend("--ft-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:r.extend("--ft-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:r.extend("--ft-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:r.extend("--ft-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var kh={borderWidth:r.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:r.extend("--ft-notice-horizontal-padding","",l.spacing3),verticalPadding:r.extend("--ft-notice-vertical-padding","",l.spacing2),borderRadius:r.extend("--ft-notice-border-radius","",l.borderRadiusS),gap:r.extend("--ft-notice-gap","",l.spacing2),iconSize:r.extend("--ft-notice-icon-size","",l.iconSize3),infoBackgroundColor:r.extend("--ft-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:r.extend("--ft-notice-info-border-color","",d.borderInfoSubtle),infoColor:r.extend("--ft-notice-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:r.extend("--ft-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:r.extend("--ft-notice-warning-border-color","",d.borderWarningSubtle),warningColor:r.extend("--ft-notice-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:r.extend("--ft-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:r.extend("--ft-notice-error-border-color","",d.borderErrorSubtle),errorColor:r.extend("--ft-notice-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:r.extend("--ft-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:r.extend("--ft-notice-success-border-color","",d.borderSuccessSubtle),successColor:r.extend("--ft-notice-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:r.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:r.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:r.extend("--ft-notice-dense-gap","",l.spacing1),denseIconSize:r.extend("--ft-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:r.create("--ft-notice-dense-border-width","","SIZE","0")};var Bh={color:r.extend("--ft-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:r.extend("--ft-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:r.extend("--ft-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:r.extend("--ft-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:r.extend("--ft-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:r.extend("--ft-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:r.extend("--ft-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:r.extend("--ft-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:r.extend("--ft-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:r.extend("--ft-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:r.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:r.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:r.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:r.extend("--ft-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:r.extend("--ft-checkbox-gap","",l.spacing3)};var zh={offHoverStateLayerOpacity:r.extend("--ft-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:r.extend("--ft-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:r.extend("--ft-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:r.extend("--ft-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:r.extend("--ft-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:r.extend("--ft-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:r.extend("--ft-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:r.extend("--ft-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:r.extend("--ft-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:r.extend("--ft-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:r.extend("--ft-toggle-on-icon-color","",d.contentActionPrimary),color:r.extend("--ft-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:r.extend("--ft-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:r.extend("--ft-toggle-gap","",l.spacing3)};var Kh={color:r.extend("--ft-radio-color","",d.contentGlobalPrimary),selectedRadioColor:r.extend("--ft-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:r.extend("--ft-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:r.extend("--ft-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:r.extend("--ft-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:r.extend("--ft-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:r.extend("--ft-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:r.extend("--ft-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:r.extend("--ft-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:r.extend("--ft-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:r.extend("--ft-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:r.extend("--ft-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:r.extend("--ft-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:r.extend("--ft-radio-gap","",l.spacing3)};var Qh={iconSize:r.extend("--ft-notification-icon-size","",l.iconSize4),leftPadding:r.extend("--ft-notification-left-padding","",l.spacing5),rightPadding:r.extend("--ft-notification-right-padding","",l.spacing4),verticalPadding:r.extend("--ft-notification-vertical-padding","",l.spacing3),infoBackgroundColor:r.extend("--ft-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-notification-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:r.extend("--ft-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:r.extend("--ft-notification-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:r.extend("--ft-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:r.extend("--ft-notification-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:r.extend("--ft-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:r.extend("--ft-notification-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:r.extend("--ft-notification-error-border-color","",d.borderErrorSubtle),borderRadius:r.extend("--ft-notification-border-radius","",l.borderRadiusPill),borderWidth:r.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:r.extend("--ft-notification-leading-gap","",l.spacing2),trailingGap:r.extend("--ft-notification-trailing-gap","",l.spacing8)};var oy={horizontalPadding:r.extend("--ft-tooltip-horizontal-padding","",l.spacing2),verticalPadding:r.extend("--ft-tooltip-vertical-padding","",l.spacing2),borderRadius:r.extend("--ft-tooltip-border-radius","",l.borderRadiusS),color:r.extend("--ft-tooltip-color","",d.contentGlobalOnColor),backgroundColor:r.extend("--ft-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:r.extend("--ft-tooltip-background-opacity","",l.opacity80),shadow:r.extend("--ft-tooltip-shadow","",l.shadowElevation02),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","256px"),gap:r.extend("--ft-tooltip-gap","",l.spacing05)};var ly={verticalPadding:r.extend("--ft-reorderable-list-vertical-padding","",l.spacing4),gap:r.extend("--ft-reorderable-list-gap","",l.spacing1),borderRadius:r.extend("--ft-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:r.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:r.extend("--ft-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:r.extend("--ft-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:r.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:r.extend("--ft-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:r.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:r.extend("--ft-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:r.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:r.extend("--ft-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:r.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:r.extend("--ft-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:r.extend("--ft-reorderable-list-left-padding","",l.spacing2),rightPadding:r.extend("--ft-reorderable-list-right-padding","",l.spacing6),borderColor:r.extend("--ft-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:r.extend("--ft-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var To;(function(e){e.brand="brand",e.neutral="neutral",e.info="info",e.success="success",e.warning="warning",e.error="error"})(To||(To={}));var Ir;(function(e){e.large="large",e.medium="medium",e.small="small"})(Ir||(Ir={}));var No=g(B());function Qa(e){let t=Io[e];return No.css`
|
|
116
|
-
.ft-typography--${(0,
|
|
117
|
-
font-family: ${
|
|
118
|
-
font-size: ${
|
|
119
|
-
font-weight: ${
|
|
120
|
-
letter-spacing: ${
|
|
121
|
-
line-height: ${
|
|
122
|
-
text-transform: ${
|
|
123
|
-
}
|
|
124
|
-
`}var Ja=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.titleFont),
|
|
114
|
+
`;var at=g(M()),A=g(R());var Rt=g(M(),1),Wt=t=>typeof t=="string"?(0,Rt.unsafeCSS)(t):t,r=class{static create(e,o,i,n){let a=c=>Wt(c??n),s=Rt.css`var(${Wt(e)}, ${a(n)})`;return s.name=e,s.description=o,s.category=i,s.defaultValue=n,s.defaultCssValue=a,s.get=c=>Rt.css`var(${Wt(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,o,i,n){let a=c=>i.get(c??n),s=Rt.css`var(${Wt(e)}, ${a(n)})`;return s.name=e,s.description=o,s.category=i.category,s.fallbackVariable=i,s.defaultValue=n,s.defaultCssValue=a,s.get=c=>Rt.css`var(${Wt(e)}, ${a(c)})`,s.breadcrumb=()=>[i.name,...i.breadcrumb()],s.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),s}static external(e,o){let i=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):Wt(a??e.lastResortDefaultValue()),n=Rt.css`var(${Wt(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.get=a=>Rt.css`var(${Wt(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};var l={colorWhite:r.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:r.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:r.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:r.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:r.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:r.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:r.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:r.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:r.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:r.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:r.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:r.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:r.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:r.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:r.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:r.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:r.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:r.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:r.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:r.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:r.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:r.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:r.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:r.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:r.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:r.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:r.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:r.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:r.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:r.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:r.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:r.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:r.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:r.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:r.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:r.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:r.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:r.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:r.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:r.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:r.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:r.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:r.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:r.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:r.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:r.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:r.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:r.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:r.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:r.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:r.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:r.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:r.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:r.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:r.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:r.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:r.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:r.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:r.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:r.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:r.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:r.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:r.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:r.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:r.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:r.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:r.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:r.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:r.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:r.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:r.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:r.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:r.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:r.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:r.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:r.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:r.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:r.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:r.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:r.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:r.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:r.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:r.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:r.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:r.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:r.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:r.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:r.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:r.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:r.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:r.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:r.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:r.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:r.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:r.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:r.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:r.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:r.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:r.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:r.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:r.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:r.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:r.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:r.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:r.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:r.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:r.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:r.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:r.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:r.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:r.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:r.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:r.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:r.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:r.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:r.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:r.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:r.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:r.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:r.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:r.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:r.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:r.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:r.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:r.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:r.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:r.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:r.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:r.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:r.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:r.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:r.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:r.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:r.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:r.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:r.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:r.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:r.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:r.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:r.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:r.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:r.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:r.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:r.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:r.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:r.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:r.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:r.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:r.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:r.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:r.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:r.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:r.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:r.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:r.create("--ft-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:r.create("--ft-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:r.create("--ft-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:r.create("--ft-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:r.create("--ft-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:r.create("--ft-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:r.create("--ft-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:r.create("--ft-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:r.create("--ft-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:r.create("--ft-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:r.create("--ft-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:r.create("--ft-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:r.create("--ft-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:r.create("--ft-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:r.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:r.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:r.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:r.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:r.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:r.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:r.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:r.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:r.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:r.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:r.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:r.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:r.create("--ft-opacity-0","","NUMBER","0"),opacity8:r.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:r.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:r.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:r.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:r.create("--ft-opacity-40","","NUMBER","0.4"),opacity48:r.create("--ft-opacity-48","","NUMBER","0.48"),opacity80:r.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:r.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:r.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:r.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:r.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:r.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:r.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:r.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:r.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:r.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},Ra={fontFamily:r.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:r.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-display-textCase","","UNKNOWN","none")},_a={fontFamily:r.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:r.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Ta={fontFamily:r.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:r.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Ia={fontFamily:r.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:r.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:r.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Na={fontFamily:r.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},La={fontFamily:r.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},ka={fontFamily:r.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Pa={fontFamily:r.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Da={fontFamily:r.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},jd={fontFamily:r.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:r.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:r.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},$a={fontFamily:r.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Ba={fontFamily:r.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Ma={fontFamily:r.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Ua={fontFamily:r.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Fa={fontFamily:r.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Wa={fontFamily:r.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},za={fontFamily:r.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Ha={fontFamily:r.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Va={fontFamily:r.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Ga={fontFamily:r.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ja={fontFamily:r.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Ka={fontFamily:r.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Za={fontFamily:r.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},qa={fontFamily:r.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Ya={fontFamily:r.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Xa={fontFamily:r.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},_o={display:Ra,"title-1":_a,"title-2":Ta,"title-3":Ia,"body-1-regular":Na,"body-1-medium":La,"body-1-semibold":ka,"body-2-regular":Pa,"body-2-medium":Da,"body-2-medium-underline":jd,"body-2-semibold":$a,"label-1-medium":Ba,"label-1-semibold":Ma,"label-1-bold":Ua,"label-2-medium":Fa,"label-2-semibold":Wa,"label-2-bold":za,"caption-1-medium":Ha,"caption-1-semibold":Va,"caption-1-bold":Ga,"caption-2-medium":ja,"caption-2-semibold":Ka,"caption-2-bold":Za,"caption-3-medium":qa,"caption-3-semibold":Ya,"caption-3-bold":Xa};var d={backgroundActionPrimary:r.extend("--ft-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:r.extend("--ft-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:r.extend("--ft-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:r.extend("--ft-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:r.extend("--ft-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:r.extend("--ft-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:r.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:r.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:r.extend("--ft-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:r.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:r.extend("--ft-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:r.extend("--ft-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:r.extend("--ft-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:r.extend("--ft-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:r.extend("--ft-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:r.extend("--ft-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:r.extend("--ft-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:r.extend("--ft-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:r.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
115
|
+
Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:r.extend("--ft-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:r.extend("--ft-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:r.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:r.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:r.extend("--ft-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:r.extend("--ft-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:r.extend("--ft-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:r.extend("--ft-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:r.extend("--ft-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:r.extend("--ft-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:r.extend("--ft-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:r.extend("--ft-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:r.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:r.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:r.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var h={largeHeight:r.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:r.extend("--ft-button-large-horizontal-padding","",l.spacing4),largeGap:r.extend("--ft-button-large-gap","",l.spacing2),largeBorderRadius:r.extend("--ft-button-large-border-radius","",l.borderRadiusS),largeIconSize:r.extend("--ft-button-large-icon-size","",l.iconSize3),largeBorderWidth:r.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:r.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:r.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:r.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:r.extend("--ft-button-medium-horizontal-padding","",l.spacing3),mediumGap:r.extend("--ft-button-medium-gap","",l.spacing2),mediumBorderRadius:r.extend("--ft-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:r.extend("--ft-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:r.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:r.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:r.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:r.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-button-small-horizontal-padding","",l.spacing2),smallGap:r.extend("--ft-button-small-gap","",l.spacing1),smallBorderRadius:r.extend("--ft-button-small-border-radius","",l.borderRadiusS),smallIconSize:r.extend("--ft-button-small-icon-size","",l.iconSize1),smallBorderWidth:r.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:r.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:r.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:r.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:r.extend("--ft-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:r.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:r.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:r.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:r.extend("--ft-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:r.extend("--ft-button-primary-brand-background-color","",d.backgroundActionPrimary),primaryBrandColor:r.extend("--ft-button-primary-brand-color","",d.contentGlobalOnColor),primaryBrandIconColor:r.extend("--ft-button-primary-brand-icon-color","",d.contentGlobalOnColor),primaryBrandStateLayerColor:r.extend("--ft-button-primary-brand-state-layer-color","",d.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:r.extend("--ft-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:r.extend("--ft-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:r.extend("--ft-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:r.extend("--ft-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-button-focus-focus-ring-color","",d.borderActionFocusRing),tertiaryBrandBackgroundColor:r.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:r.extend("--ft-button-tertiary-brand-color","",d.contentActionPrimary),tertiaryBrandIconColor:r.extend("--ft-button-tertiary-brand-icon-color","",d.contentActionPrimary),tertiaryBrandStateLayerColor:r.extend("--ft-button-tertiary-brand-state-layer-color","",d.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:r.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:r.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:r.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:r.extend("--ft-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:r.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:r.extend("--ft-button-tertiary-info-color","",d.contentInfoPrimary),tertiaryInfoIconColor:r.extend("--ft-button-tertiary-info-icon-color","",d.contentInfoPrimary),tertiaryInfoStateLayerColor:r.extend("--ft-button-tertiary-info-state-layer-color","",d.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:r.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:r.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:r.extend("--ft-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:r.extend("--ft-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:r.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:r.extend("--ft-button-tertiary-success-color","",d.contentSuccessPrimary),tertiarySuccessIconColor:r.extend("--ft-button-tertiary-success-icon-color","",d.contentSuccessPrimary),tertiarySuccessStateLayerColor:r.extend("--ft-button-tertiary-success-state-layer-color","",d.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:r.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:r.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:r.extend("--ft-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:r.extend("--ft-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:r.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:r.extend("--ft-button-tertiary-warning-color","",d.contentWarningPrimary),tertiaryWarningIconColor:r.extend("--ft-button-tertiary-warning-icon-color","",d.contentWarningPrimary),tertiaryWarningStateLayerColor:r.extend("--ft-button-tertiary-warning-state-layer-color","",d.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:r.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:r.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:r.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:r.extend("--ft-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:r.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:r.extend("--ft-button-tertiary-error-color","",d.contentErrorPrimary),tertiaryErrorIconColor:r.extend("--ft-button-tertiary-error-icon-color","",d.contentErrorPrimary),tertiaryErrorStateLayerColor:r.extend("--ft-button-tertiary-error-state-layer-color","",d.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:r.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:r.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:r.extend("--ft-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:r.extend("--ft-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:r.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:r.extend("--ft-button-tertiary-neutral-icon-color","",d.contentGlobalSecondary),tertiaryNeutralColor:r.extend("--ft-button-tertiary-neutral-color","",d.contentGlobalSecondary),tertiaryNeutralStateLayerColor:r.extend("--ft-button-tertiary-neutral-state-layer-color","",d.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:r.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:r.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:r.extend("--ft-button-secondary-brand-color","",d.contentActionPrimary),secondaryBrandIconColor:r.extend("--ft-button-secondary-brand-icon-color","",d.contentActionPrimary),secondaryBrandStateLayerColor:r.extend("--ft-button-secondary-brand-state-layer-color","",d.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:r.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:r.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:r.extend("--ft-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:r.extend("--ft-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:r.extend("--ft-button-secondary-brand-border-color","",d.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:r.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:r.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:r.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:r.extend("--ft-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:r.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:r.extend("--ft-button-secondary-neutral-color","",d.contentGlobalSecondary),secondaryNeutralIconColor:r.extend("--ft-button-secondary-neutral-icon-color","",d.contentGlobalSecondary),secondaryNeutralStateLayerColor:r.extend("--ft-button-secondary-neutral-state-layer-color","",d.contentGlobalSecondary),secondaryNeutralBorderColor:r.extend("--ft-button-secondary-neutral-border-color","",d.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:r.extend("--ft-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:r.extend("--ft-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:r.extend("--ft-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:r.extend("--ft-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:r.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:r.extend("--ft-button-secondary-info-border-color","",d.borderInfoPrimary),secondaryInfoColor:r.extend("--ft-button-secondary-info-color","",d.contentInfoPrimary),secondaryInfoIconColor:r.extend("--ft-button-secondary-info-icon-color","",d.contentInfoPrimary),secondaryInfoStateLayerColor:r.extend("--ft-button-secondary-info-state-layer-color","",d.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:r.extend("--ft-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:r.extend("--ft-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:r.extend("--ft-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:r.extend("--ft-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:r.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:r.extend("--ft-button-secondary-success-border-color","",d.borderSuccessPrimary),secondarySuccessColor:r.extend("--ft-button-secondary-success-color","",d.contentSuccessPrimary),secondarySuccessIconColor:r.extend("--ft-button-secondary-success-icon-color","",d.contentSuccessPrimary),secondarySuccessStateLayerColor:r.extend("--ft-button-secondary-success-state-layer-color","",d.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:r.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:r.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:r.extend("--ft-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:r.extend("--ft-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:r.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:r.extend("--ft-button-secondary-warning-border-color","",d.borderWarningPrimary),secondaryWarningColor:r.extend("--ft-button-secondary-warning-color","",d.contentWarningPrimary),secondaryWarningIconColor:r.extend("--ft-button-secondary-warning-icon-color","",d.contentWarningPrimary),secondaryWarningStateLayerColor:r.extend("--ft-button-secondary-warning-state-layer-color","",d.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:r.extend("--ft-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:r.extend("--ft-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:r.extend("--ft-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:r.extend("--ft-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:r.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:r.extend("--ft-button-secondary-error-border-color","",d.contentErrorPrimary),secondaryErrorColor:r.extend("--ft-button-secondary-error-color","",d.contentErrorPrimary),secondaryErrorIconColor:r.extend("--ft-button-secondary-error-icon-color","",d.contentErrorPrimary),secondaryErrorStateLayerColor:r.extend("--ft-button-secondary-error-state-layer-color","",d.contentErrorPrimary)};var Bu={neutralOffHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",d.borderActionFocusRing),neutralOffActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:r.extend("--ft-chip-choice-neutral-off-background-color","",d.backgroundGlobalOnSurface),neutralOffBorderColor:r.extend("--ft-chip-choice-neutral-off-border-color","",d.borderGlobalPrimary),neutralOffColor:r.extend("--ft-chip-choice-neutral-off-color","",d.contentGlobalSecondary),neutralOffStateLayerColor:r.extend("--ft-chip-choice-neutral-off-state-layer-color","",d.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:r.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",d.borderActionFocusRing),neutralOnActiveStateLayerOpacity:r.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:r.extend("--ft-chip-choice-neutral-on-background-color","",d.backgroundGlobalOnSurface),neutralOnBorderColor:r.extend("--ft-chip-choice-neutral-on-border-color","",d.borderGlobalPrimary),neutralOnColor:r.extend("--ft-chip-choice-neutral-on-color","",d.contentGlobalPrimary),neutralOnIconColor:r.extend("--ft-chip-choice-neutral-on-icon-color","",d.contentGlobalPrimary),neutralOnStateLayerColor:r.extend("--ft-chip-choice-neutral-on-state-layer-color","",d.contentGlobalPrimary),largeMinHeight:r.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:r.extend("--ft-chip-choice-large-gap","",l.spacing1),largeBorderRadius:r.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:r.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:r.extend("--ft-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:r.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-choice-medium-icon-size","",l.iconSize2)};var zu={largeMinHeight:r.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:r.extend("--ft-chip-large-button-right-padding","",l.spacing1),largeGap:r.extend("--ft-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:r.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:r.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:r.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-large-icon-size","",l.iconSize3),mediumMinHeight:r.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:r.extend("--ft-chip-medium-button-right-padding","",l.spacing05),mediumGap:r.extend("--ft-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:r.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:r.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:r.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-medium-icon-size","",l.iconSize2),smallMinHeight:r.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:r.extend("--ft-chip-small-button-right-padding","",l.spacing05),smallGap:r.extend("--ft-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:r.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:r.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:r.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:r.extend("--ft-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:r.extend("--ft-chip-neutral-background-color","",d.backgroundGlobalOnSurface),neutralColor:r.extend("--ft-chip-neutral-color","",d.contentGlobalSecondary),neutralIconColor:r.extend("--ft-chip-neutral-icon-color","",d.contentGlobalSecondary),neutralBorderColor:r.extend("--ft-chip-neutral-border-color","",d.borderGlobalSubtle),infoBackgroundColor:r.extend("--ft-chip-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-chip-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-chip-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-chip-info-border-color","",d.borderInfoSubtle),successBackgroundColor:r.extend("--ft-chip-success-background-color","",d.backgroundSuccessSubtle),successColor:r.extend("--ft-chip-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-chip-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:r.extend("--ft-chip-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-chip-warning-background-color","",d.backgroundWarningSubtle),warningColor:r.extend("--ft-chip-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-chip-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:r.extend("--ft-chip-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-chip-error-background-color","",d.backgroundErrorSubtle),errorColor:r.extend("--ft-chip-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-chip-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:r.extend("--ft-chip-error-border-color","",d.borderErrorSubtle)};var Ku={brandHoverOpacity:r.extend("--ft-link-brand-hover-opacity","",l.opacity80),brandHoverColor:r.extend("--ft-link-brand-hover-color","",d.contentActionPrimary),brandFocusFocusRingColor:r.extend("--ft-link-brand-focus-focus-ring-color","",d.borderActionFocusRing),brandFocusColor:r.extend("--ft-link-brand-focus-color","",d.contentActionPrimary),brandDefaultColor:r.extend("--ft-link-brand-default-color","",d.contentActionPrimary),brandActiveColor:r.extend("--ft-link-brand-active-color","",d.contentActionPrimary),infoHoverOpacity:r.extend("--ft-link-info-hover-opacity","",l.opacity80),infoHoverColor:r.extend("--ft-link-info-hover-color","",d.contentInfoPrimary),infoFocusFocusRingColor:r.extend("--ft-link-info-focus-focus-ring-color","",d.borderActionFocusRing),infoFocusColor:r.extend("--ft-link-info-focus-color","",d.contentInfoPrimary),infoDefaultColor:r.extend("--ft-link-info-default-color","",d.contentInfoPrimary),infoActiveColor:r.extend("--ft-link-info-active-color","",d.contentInfoPrimary),neutralFocusFocusRingColor:r.extend("--ft-link-neutral-focus-focus-ring-color","",d.borderActionFocusRing),neutralFocusColor:r.extend("--ft-link-neutral-focus-color","",d.contentActionPrimary),neutralDefaultColor:r.extend("--ft-link-neutral-default-color","",d.contentGlobalPrimary),neutralHoverColor:r.extend("--ft-link-neutral-hover-color","",d.contentActionPrimary),neutralActiveColor:r.extend("--ft-link-neutral-active-color","",d.contentActionPrimary),neutralVisitedColor:r.extend("--ft-link-neutral-visited-color","",l.colorBrand100)};var Qu={iconSize:r.extend("--ft-banner-icon-size","",l.iconSize5),borderWidth:r.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:r.extend("--ft-banner-left-padding","",l.spacing6),rightPadding:r.extend("--ft-banner-right-padding","",l.spacing6),verticalPadding:r.extend("--ft-banner-vertical-padding","",l.spacing6),horizontalSideGap:r.extend("--ft-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:r.extend("--ft-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:r.extend("--ft-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:r.extend("--ft-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:r.extend("--ft-banner-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-banner-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-banner-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-banner-info-border-color","",d.borderInfoSubtle)};var of={horizontalPadding:r.extend("--ft-badge-horizontal-padding","",l.spacing1),verticalPadding:r.extend("--ft-badge-vertical-padding","",l.spacing1),borderRadius:r.extend("--ft-badge-border-radius","",l.borderRadiusPill),color:r.extend("--ft-badge-color","",d.contentGlobalOnColor),backgroundColor:r.extend("--ft-badge-background-color","",d.contentActionPrimary)};var cf={horizontalGap:r.extend("--ft-title-breadcrumb-horizontal-gap","",l.spacing1),currentColor:r.extend("--ft-title-breadcrumb-current-color","",d.contentGlobalPrimary),previousNonClickableColor:r.extend("--ft-title-breadcrumb-previous-non-clickable-color","",d.contentGlobalSecondary),iconColor:r.extend("--ft-title-breadcrumb-icon-color","",d.contentGlobalSubtle)};var hf={parentHorizontalPadding:r.extend("--ft-page-header-parent-horizontal-padding","",l.spacing6),parentTopPadding:r.extend("--ft-page-header-parent-top-padding","",l.spacing4),parentBottomPadding:r.extend("--ft-page-header-parent-bottom-padding","",l.spacing6),parentHelpLeftMargin:r.extend("--ft-page-header-parent-help-left-margin","",l.spacing1),parentTitleColor:r.extend("--ft-page-header-parent-title-color","",d.contentGlobalPrimary),parentSubtitleColor:r.extend("--ft-page-header-parent-subtitle-color","",d.contentGlobalSecondary),parentChipLeftMargin:r.extend("--ft-page-header-parent-chip-left-margin","",l.spacing4),parentVerticalGap:r.extend("--ft-page-header-parent-vertical-gap","",l.spacing2),parentButtonsGroupHorizontalGap:r.extend("--ft-page-header-parent-buttons-group-horizontal-gap","",l.spacing4),parentButtonsGroupVerticalGap:r.extend("--ft-page-header-parent-buttons-group-vertical-gap","",l.spacing4),parentChipsGroupHorizontalGap:r.extend("--ft-page-header-parent-chips-group-horizontal-gap","",l.spacing2),parentChipsGroupVerticalGap:r.extend("--ft-page-header-parent-chips-group-vertical-gap","",l.spacing2),childHorizontalPadding:r.extend("--ft-page-header-child-horizontal-padding","",l.spacing6),childTopPadding:r.extend("--ft-page-header-child-top-padding","",l.spacing2),childBottomPadding:r.extend("--ft-page-header-child-bottom-padding","",l.spacing2),childHelpLeftMargin:r.extend("--ft-page-header-child-help-left-margin","",l.spacing1),childChipLeftMargin:r.extend("--ft-page-header-child-chip-left-margin","",l.spacing4),childVerticalGap:r.extend("--ft-page-header-child-vertical-gap","",l.spacing2),childMinHeight:r.create("--ft-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:r.extend("--ft-page-header-child-buttons-group-horizontal-gap","",l.spacing4),childButtonsGroupVerticalGap:r.extend("--ft-page-header-child-buttons-group-vertical-gap","",l.spacing4),childChipsGroupHorizontalGap:r.extend("--ft-page-header-child-chips-group-horizontal-gap","",l.spacing2),childChipsGroupVerticalGap:r.extend("--ft-page-header-child-chips-group-vertical-gap","",l.spacing2),backgroundColor:r.extend("--ft-page-header-background-color","",l.colorWhite),bottomBorderColor:r.extend("--ft-page-header-bottom-border-color","",d.borderGlobalSubtle),bottomBorderWidth:r.create("--ft-page-header-bottom-border-width","","SIZE","1px")};var vf={horizontalPadding:r.extend("--ft-page-footer-horizontal-padding","",l.spacing6),verticalPadding:r.extend("--ft-page-footer-vertical-padding","",l.spacing2),verticalGap:r.extend("--ft-page-footer-vertical-gap","",l.spacing2),minHeight:r.create("--ft-page-footer-min-height","","SIZE","40px"),backgroundColor:r.extend("--ft-page-footer-background-color","",l.colorWhite),topBorderColor:r.extend("--ft-page-footer-top-border-color","",d.borderGlobalSubtle),topBorderWidth:r.create("--ft-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:r.extend("--ft-page-footer-buttons-group-gap","",l.spacing4)};var Cf={contentHorizontalPadding:r.extend("--ft-page-layout-content-horizontal-padding","",l.spacing6),contentVerticalPadding:r.extend("--ft-page-layout-content-vertical-padding","",l.spacing6)};var _f={smallContainerTargetWidth:r.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:r.extend("--ft-modal-small-container-margin","",l.spacing6),mediumContainerTargetWidth:r.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:r.extend("--ft-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:r.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:r.extend("--ft-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:r.extend("--ft-modal-overlay-background-color","",l.colorGray700),overlayOpacity:r.extend("--ft-modal-overlay-opacity","",l.opacity40),shadow:r.extend("--ft-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:r.extend("--ft-modal-body-background-color","",l.colorWhite),bodyColor:r.extend("--ft-modal-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:r.extend("--ft-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:r.extend("--ft-modal-body-vertical-gap","",l.spacing6),headerBackgroundColor:r.extend("--ft-modal-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-modal-header-border-color","",d.borderGlobalSubtle),headerColor:r.extend("--ft-modal-header-color","",d.contentGlobalPrimary),headerLeadingIconColor:r.extend("--ft-modal-header-leading-icon-color","",d.contentGlobalPrimary),headerVerticalPadding:r.extend("--ft-modal-header-vertical-padding","",l.spacing1),headerRightPadding:r.extend("--ft-modal-header-right-padding","",l.spacing1),headerLeftPadding:r.extend("--ft-modal-header-left-padding","",l.spacing6),headerGap:r.extend("--ft-modal-header-gap","",l.spacing2),headerBorderBottomWidth:r.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:r.extend("--ft-modal-border-radius","",l.borderRadiusM)};var kf={overlayOpacity:r.extend("--ft-drawer-overlay-opacity","",l.opacity40),shadow:r.extend("--ft-drawer-shadow","",l.shadowElevation03),bodyColor:r.extend("--ft-drawer-body-color","",d.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:r.extend("--ft-drawer-body-vertical-padding","",l.spacing6),bodyGap:r.extend("--ft-drawer-body-gap","",l.spacing6),bodyBackgroundColor:r.extend("--ft-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:r.extend("--ft-drawer-header-background-color","",d.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-drawer-header-border-color","",d.borderGlobalSubtle),headerColor:r.extend("--ft-drawer-header-color","",d.contentGlobalPrimary),headerTrailingIconColor:r.extend("--ft-drawer-header-trailing-icon-color","",d.contentGlobalSecondary),headerHeight:r.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:r.extend("--ft-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:r.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:r.extend("--ft-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:r.extend("--ft-drawer-buttons-bar-background-color","",d.backgroundGlobalOnSurface),buttonsBarBorderColor:r.extend("--ft-drawer-buttons-bar-border-color","",d.borderGlobalSubtle),buttonsBarColor:r.extend("--ft-drawer-buttons-bar-color","",d.contentGlobalPrimary),buttonsBarHorizontalPadding:r.extend("--ft-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:r.extend("--ft-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:r.extend("--ft-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:r.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:r.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:r.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:r.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:r.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:r.extend("--ft-drawer-overlay-background-color","",l.colorGray700)};var Mf={offBorderBottomWidth:r.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:r.extend("--ft-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:r.extend("--ft-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:r.extend("--ft-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:r.extend("--ft-tabs-off-disabled-component-opacity","",l.opacity40),offColor:r.extend("--ft-tabs-off-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-tabs-off-state-layer-color","",d.contentGlobalSubtle),offBorderBottomColor:r.extend("--ft-tabs-off-border-bottom-color","",d.borderGlobalSubtle),activeTabIndicatorHeight:r.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:r.extend("--ft-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:r.extend("--ft-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:r.extend("--ft-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:r.extend("--ft-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:r.extend("--ft-tabs-horizontal-gap","",l.spacing1),verticalGap:r.extend("--ft-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:r.extend("--ft-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:r.extend("--ft-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:r.extend("--ft-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:r.extend("--ft-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:r.extend("--ft-tabs-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-tabs-on-state-layer-color","",d.contentActionPrimary),onActiveTabIndicatorColor:r.extend("--ft-tabs-on-active-tab-indicator-color","",d.contentActionPrimary),iconOnlyHorizontalPadding:r.extend("--ft-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:r.extend("--ft-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:r.extend("--ft-tabs-alert-top-padding","",l.spacing1),alertRightPadding:r.extend("--ft-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:r.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-tabs-focus-focus-ring-color","",d.borderActionFocusRing)};var Hf={fieldHorizontalPadding:r.extend("--ft-text-input-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-text-input-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-text-input-field-vertical-gap","",l.spacing05),fieldIconSize:r.extend("--ft-text-input-field-icon-size","",l.iconSize3),fieldHeight:r.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:r.extend("--ft-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:r.extend("--ft-text-input-helper-icon-size","",l.iconSize2),borderRadius:r.extend("--ft-text-input-border-radius","",l.borderRadiusM),backgroundColor:r.extend("--ft-text-input-background-color","",l.colorWhite),contentValueColor:r.extend("--ft-text-input-content-value-color","",d.contentGlobalPrimary),trailingIconColor:r.extend("--ft-text-input-trailing-icon-color","",d.contentGlobalSubtle),labelColor:r.extend("--ft-text-input-label-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-input-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-input-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-input-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-input-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-input-error-helper-icon-color","",d.contentErrorIconOnly),warningBorderWidth:r.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:r.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-text-input-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-input-disabled-component-opacity","",l.opacity40)};var Zf={backgroundColor:r.extend("--ft-text-area-background-color","",l.colorWhite),contentValueColor:r.extend("--ft-text-area-content-value-color","",d.contentGlobalPrimary),labelColor:r.extend("--ft-text-area-label-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-area-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-area-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-area-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-area-error-helper-text-color","",d.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-area-error-helper-icon-color","",d.contentErrorIconOnly),focusFocusRingColor:r.extend("--ft-text-area-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:r.extend("--ft-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:r.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:r.extend("--ft-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:r.extend("--ft-text-area-helper-icon-size","",l.iconSize2),borderRadius:r.extend("--ft-text-area-border-radius","",l.borderRadiusM)};var Jf={height:r.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:r.extend("--ft-floating-menu-horizontal-padding","",l.spacing4),offIconColor:r.extend("--ft-floating-menu-off-icon-color","",d.contentGlobalPrimary),offColor:r.extend("--ft-floating-menu-off-color","",d.contentGlobalPrimary),onColor:r.extend("--ft-floating-menu-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-floating-menu-on-state-layer-color","",d.contentActionPrimary),gap:r.extend("--ft-floating-menu-gap","",l.spacing3),focusFocusRingColor:r.extend("--ft-floating-menu-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:r.extend("--ft-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:r.extend("--ft-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:r.extend("--ft-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:r.extend("--ft-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:r.extend("--ft-floating-menu-icon-size","",l.iconSize3),backgroundColor:r.extend("--ft-floating-menu-background-color","",d.backgroundGlobalOnSurface),shadow:r.extend("--ft-floating-menu-shadow","",l.shadowElevation02)};var ih={fieldHorizontalPadding:r.extend("--ft-combobox-single-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-single-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-combobox-single-select-field-vertical-gap","",l.spacing05),fieldIconSize:r.extend("--ft-combobox-single-select-field-icon-size","",l.iconSize3),fieldHeight:r.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:r.extend("--ft-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:r.extend("--ft-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:r.extend("--ft-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:r.extend("--ft-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:r.extend("--ft-combobox-single-select-border-radius","",l.borderRadiusM),backgroundColor:r.extend("--ft-combobox-single-select-background-color","",l.colorWhite),labelColor:r.extend("--ft-combobox-single-select-label-color","",d.contentGlobalSubtle),contentValueColor:r.extend("--ft-combobox-single-select-content-value-color","",d.contentGlobalPrimary),trailingIconColor:r.extend("--ft-combobox-single-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-single-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-single-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-combobox-single-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-single-select-error-helper-text-color","",d.contentErrorPrimary),warningBorderWidth:r.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-single-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-single-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-single-select-warning-helper-icon-color","",d.contentWarningIconOnly),focusOutlineWidth:r.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-single-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-single-select-disabled-component-opacity","",l.opacity40)};var ch={backgroundColor:r.extend("--ft-combobox-multi-select-background-color","",l.colorWhite),labelColor:r.extend("--ft-combobox-multi-select-label-color","",d.contentGlobalSubtle),trailingIconColor:r.extend("--ft-combobox-multi-select-trailing-icon-color","",d.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-multi-select-default-border-color","",d.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-multi-select-default-helper-text-color","",d.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:r.extend("--ft-combobox-multi-select-error-border-color","",d.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-multi-select-error-helper-text-color","",d.contentErrorPrimary),errorHelperIcon:r.extend("--ft-combobox-multi-select-error-helper-icon","",d.contentErrorIconOnly),errorBorderWidth:r.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-multi-select-warning-border-color","",d.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-multi-select-warning-helper-text-color","",d.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-multi-select-warning-helper-icon-color","",d.contentWarningIconOnly),warningBorderWidth:r.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-multi-select-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineWidth:r.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:r.extend("--ft-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:r.extend("--ft-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:r.extend("--ft-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:r.extend("--ft-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:r.extend("--ft-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:r.extend("--ft-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:r.extend("--ft-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:r.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:r.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:r.extend("--ft-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:r.extend("--ft-combobox-multi-select-border-radius","",l.borderRadiusM)};var hh={backgroundColor:r.extend("--ft-popover-background-color","",d.backgroundGlobalOnSurface),horizontalPadding:r.extend("--ft-popover-horizontal-padding","",l.spacing6),verticalPadding:r.extend("--ft-popover-vertical-padding","",l.spacing6),titleColor:r.extend("--ft-popover-title-color","",d.contentGlobalPrimary),bodyColor:r.extend("--ft-popover-body-color","",d.contentGlobalSecondary),linkColor:r.extend("--ft-popover-link-color","",d.contentActionPrimary),gap:r.extend("--ft-popover-gap","",l.spacing3),borderRadius:r.extend("--ft-popover-border-radius","",l.borderRadiusM),shadow:r.extend("--ft-popover-shadow","",l.shadowElevation02),maxWidth:r.create("--ft-popover-max-width","","SIZE","440px")};var vh={hoverStateLayerOpacity:r.extend("--ft-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:r.extend("--ft-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:r.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:r.extend("--ft-collapsible-focus-focus-ring-color","",d.borderActionFocusRing),activeStateLayerOpacity:r.extend("--ft-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:r.extend("--ft-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:r.extend("--ft-collapsible-horizontal-padding","",l.spacing4),verticalPadding:r.extend("--ft-collapsible-vertical-padding","",l.spacing3),color:r.extend("--ft-collapsible-color","",d.contentGlobalPrimary),stateLayerColor:r.extend("--ft-collapsible-state-layer-color","",d.contentGlobalPrimary),backgroundColor:r.extend("--ft-collapsible-background-color","",d.backgroundGlobalOnSurface),borderColor:r.extend("--ft-collapsible-border-color","",d.borderGlobalSubtle),iconSize:r.extend("--ft-collapsible-icon-size","",l.iconSize3)};var Eh={groupHorizontalPadding:r.extend("--ft-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:r.extend("--ft-switch-group-vertical-padding","",l.spacing1),groupGap:r.extend("--ft-switch-group-gap","",l.spacing1),groupBackgroundColor:r.extend("--ft-switch-group-background-color","",d.backgroundGlobalSurface),groupBorderColor:r.extend("--ft-switch-group-border-color","",d.borderGlobalSubtle),groupBorderRadius:r.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:r.extend("--ft-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:r.extend("--ft-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:r.extend("--ft-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:r.extend("--ft-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:r.extend("--ft-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:r.extend("--ft-switch-off-disabled-component-opacity","",l.opacity40),offColor:r.extend("--ft-switch-off-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-switch-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:r.extend("--ft-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:r.extend("--ft-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:r.extend("--ft-switch-on-disabled-component-opacity","",l.opacity40),onColor:r.extend("--ft-switch-on-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-switch-on-state-layer-color","",d.contentActionPrimary),iconHorizontalPadding:r.extend("--ft-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:r.extend("--ft-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:r.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-switch-focus-focus-ring-color","",d.borderActionFocusRing),optionBorderRadius:r.extend("--ft-switch-option-border-radius","",l.borderRadiusS)};var _h={color1Light:r.extend("--ft-chart-1-light","for area color charts",l.colorBrand40),color1Base:r.extend("--ft-chart-1-base","for line charts",l.colorBrand0),color2Light:r.extend("--ft-chart-2-light","for area color charts",l.colorYellow60),color2Base:r.extend("--ft-chart-2-base","for line charts",l.colorYellow100),color3Light:r.extend("--ft-chart-3-light","",l.colorUltramarine40),color3Base:r.extend("--ft-chart-3-base","",l.colorUltramarine70),color4Light:r.extend("--ft-chart-4-light","",l.colorCyan50),color4Base:r.extend("--ft-chart-4-base","",l.colorCyan100),color5Light:r.extend("--ft-chart-5-light","",l.colorRed40),color5Base:r.extend("--ft-chart-5-base","",l.colorRed60),color6Light:r.extend("--ft-chart-6-light","",l.colorGreen40),color6Base:r.extend("--ft-chart-6-base","",l.colorGreen70),color7Light:r.extend("--ft-chart-7-light","",l.colorOrange70),color7Base:r.extend("--ft-chart-7-base","",l.colorOrange100),color8Light:r.extend("--ft-chart-8-light","",l.colorAvocado70),color8Base:r.extend("--ft-chart-8-base","",l.colorAvocado200),color9Light:r.extend("--ft-chart-9-light","",l.colorBrown50),color9Base:r.extend("--ft-chart-9-base","",l.colorBrown200),color10Light:r.extend("--ft-chart-10-light","",l.colorGray50),color10Base:r.extend("--ft-chart-10-base","",l.colorGray80),monochrome10:r.extend("--ft-chart-monochrome-10","",l.colorBrand10),monochrome20:r.extend("--ft-chart-monochrome-20","",l.colorBrand20),monochrome30:r.extend("--ft-chart-monochrome-30","",l.colorBrand40),monochrome40:r.extend("--ft-chart-monochrome-40","",l.colorBrand60),monochrome50:r.extend("--ft-chart-monochrome-50","",l.colorBrand0),monochrome60:r.extend("--ft-chart-monochrome-60","",l.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-old-background-color","",l.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-popular-new-background-color","",l.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-old-background-color","",l.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:r.extend("--ft-chart-scatterplot-quadrant-unpopular-new-background-color","",l.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-color","",l.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-initial-default-background-opacity","",l.opacity48),scatterplotDatapointInitialHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-initial-hover-background-color","",l.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-default-background-color","",l.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-selected-hover-background-color","",l.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-color","",l.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:r.extend("--ft-chart-scatterplot-datapoint-unselected-default-background-opacity","",l.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:r.extend("--ft-chart-scatterplot-datapoint-unselected-hover-background-color","",l.colorGray70),scatterplotDatapointHoverHoverRingColor:r.extend("--ft-chart-scatterplot-datapoint-hover-hover-ring-color","",l.colorCyan200)};var Lh={color1IconColor:r.extend("--ft-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:r.extend("--ft-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:r.extend("--ft-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:r.extend("--ft-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:r.extend("--ft-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:r.extend("--ft-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:r.extend("--ft-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:r.extend("--ft-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:r.extend("--ft-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:r.extend("--ft-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:r.extend("--ft-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:r.extend("--ft-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:r.extend("--ft-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:r.extend("--ft-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:r.extend("--ft-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:r.extend("--ft-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var Bh={borderWidth:r.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:r.extend("--ft-notice-horizontal-padding","",l.spacing3),verticalPadding:r.extend("--ft-notice-vertical-padding","",l.spacing2),borderRadius:r.extend("--ft-notice-border-radius","",l.borderRadiusS),gap:r.extend("--ft-notice-gap","",l.spacing2),iconSize:r.extend("--ft-notice-icon-size","",l.iconSize3),infoBackgroundColor:r.extend("--ft-notice-info-background-color","",d.backgroundInfoSubtle),infoBorderColor:r.extend("--ft-notice-info-border-color","",d.borderInfoSubtle),infoColor:r.extend("--ft-notice-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-notice-info-icon-color","",d.contentInfoIconOnly),warningBackgroundColor:r.extend("--ft-notice-warning-background-color","",d.backgroundWarningSubtle),warningBorderColor:r.extend("--ft-notice-warning-border-color","",d.borderWarningSubtle),warningColor:r.extend("--ft-notice-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-notice-warning-icon-color","",d.contentWarningIconOnly),errorBackgroundColor:r.extend("--ft-notice-error-background-color","",d.backgroundErrorSubtle),errorBorderColor:r.extend("--ft-notice-error-border-color","",d.borderErrorSubtle),errorColor:r.extend("--ft-notice-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-notice-error-icon-color","",d.contentErrorIconOnly),successBackgroundColor:r.extend("--ft-notice-success-background-color","",d.backgroundSuccessSubtle),successBorderColor:r.extend("--ft-notice-success-border-color","",d.borderSuccessSubtle),successColor:r.extend("--ft-notice-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-notice-success-icon-color","",d.contentSuccessIconOnly),denseHorizontalPadding:r.create("--ft-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:r.create("--ft-notice-dense-vertical-padding","","SIZE","0px"),denseGap:r.extend("--ft-notice-dense-gap","",l.spacing1),denseIconSize:r.extend("--ft-notice-dense-icon-size","",l.iconSize2),denseBorderWidth:r.create("--ft-notice-dense-border-width","","SIZE","0")};var zh={color:r.extend("--ft-checkbox-color","",d.contentGlobalPrimary),checkedBackgroundColor:r.extend("--ft-checkbox-checked-background-color","",d.contentActionPrimary),checkedStateLayerColor:r.extend("--ft-checkbox-checked-state-layer-color","",d.contentActionPrimary),checkedIconColor:r.extend("--ft-checkbox-checked-icon-color","",d.contentGlobalOnColor),checkedHoverStateLayerOpacity:r.extend("--ft-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:r.extend("--ft-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:r.extend("--ft-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:r.extend("--ft-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:r.extend("--ft-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:r.extend("--ft-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:r.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:r.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:r.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:r.extend("--ft-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-checkbox-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:r.extend("--ft-checkbox-gap","",l.spacing3)};var Kh={offHoverStateLayerOpacity:r.extend("--ft-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:r.extend("--ft-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:r.extend("--ft-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:r.extend("--ft-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:r.extend("--ft-toggle-off-background-color","",d.contentGlobalSubtle),offIconColor:r.extend("--ft-toggle-off-icon-color","",d.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-toggle-off-state-layer-color","",d.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:r.extend("--ft-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:r.extend("--ft-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:r.extend("--ft-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:r.extend("--ft-toggle-on-background-color","",d.contentActionPrimary),onStateLayerColor:r.extend("--ft-toggle-on-state-layer-color","",d.contentActionPrimary),onIconColor:r.extend("--ft-toggle-on-icon-color","",d.contentActionPrimary),color:r.extend("--ft-toggle-color","",d.contentGlobalPrimary),focusFocusRingColor:r.extend("--ft-toggle-focus-focus-ring-color","",d.borderActionFocusRing),gap:r.extend("--ft-toggle-gap","",l.spacing3)};var Qh={color:r.extend("--ft-radio-color","",d.contentGlobalPrimary),selectedRadioColor:r.extend("--ft-radio-selected-radio-color","",d.contentActionPrimary),selectedStateLayerColor:r.extend("--ft-radio-selected-state-layer-color","",d.contentActionPrimary),selectedHoverStateLayerOpacity:r.extend("--ft-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:r.extend("--ft-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:r.extend("--ft-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:r.extend("--ft-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:r.extend("--ft-radio-unselected-state-layer-color","",d.borderInputPrimary),unselectedBorderColor:r.extend("--ft-radio-unselected-border-color","",d.borderInputPrimary),unselectedHoverStateLayerOpacity:r.extend("--ft-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:r.extend("--ft-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:r.extend("--ft-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:r.extend("--ft-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:r.extend("--ft-radio-focus-focus-ring-color","",d.borderActionFocusRing),focusOutlineOffset:r.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:r.extend("--ft-radio-gap","",l.spacing3)};var oy={iconSize:r.extend("--ft-notification-icon-size","",l.iconSize4),leftPadding:r.extend("--ft-notification-left-padding","",l.spacing5),rightPadding:r.extend("--ft-notification-right-padding","",l.spacing4),verticalPadding:r.extend("--ft-notification-vertical-padding","",l.spacing3),infoBackgroundColor:r.extend("--ft-notification-info-background-color","",d.backgroundInfoSubtle),infoColor:r.extend("--ft-notification-info-color","",d.contentInfoPrimary),infoIconColor:r.extend("--ft-notification-info-icon-color","",d.contentInfoIconOnly),infoBorderColor:r.extend("--ft-notification-info-border-color","",d.borderInfoSubtle),successBackgroundColor:r.extend("--ft-notification-success-background-color","",d.backgroundSuccessSubtle),successColor:r.extend("--ft-notification-success-color","",d.contentSuccessPrimary),successIconColor:r.extend("--ft-notification-success-icon-color","",d.contentSuccessIconOnly),successBorderColor:r.extend("--ft-notification-success-border-color","",d.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-notification-warning-background-color","",d.backgroundWarningSubtle),warningColor:r.extend("--ft-notification-warning-color","",d.contentWarningPrimary),warningIconColor:r.extend("--ft-notification-warning-icon-color","",d.contentWarningIconOnly),warningBorderColor:r.extend("--ft-notification-warning-border-color","",d.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-notification-error-background-color","",d.backgroundErrorSubtle),errorColor:r.extend("--ft-notification-error-color","",d.contentErrorPrimary),errorIconColor:r.extend("--ft-notification-error-icon-color","",d.contentErrorIconOnly),errorBorderColor:r.extend("--ft-notification-error-border-color","",d.borderErrorSubtle),borderRadius:r.extend("--ft-notification-border-radius","",l.borderRadiusPill),borderWidth:r.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:r.extend("--ft-notification-leading-gap","",l.spacing2),trailingGap:r.extend("--ft-notification-trailing-gap","",l.spacing8)};var ly={horizontalPadding:r.extend("--ft-tooltip-horizontal-padding","",l.spacing2),verticalPadding:r.extend("--ft-tooltip-vertical-padding","",l.spacing2),borderRadius:r.extend("--ft-tooltip-border-radius","",l.borderRadiusS),color:r.extend("--ft-tooltip-color","",d.contentGlobalOnColor),backgroundColor:r.extend("--ft-tooltip-background-color","",d.contentGlobalPrimary),backgroundOpacity:r.extend("--ft-tooltip-background-opacity","",l.opacity80),shadow:r.extend("--ft-tooltip-shadow","",l.shadowElevation02),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","256px"),gap:r.extend("--ft-tooltip-gap","",l.spacing05)};var fy={verticalPadding:r.extend("--ft-reorderable-list-vertical-padding","",l.spacing4),gap:r.extend("--ft-reorderable-list-gap","",l.spacing1),borderRadius:r.extend("--ft-reorderable-list-border-radius","",l.borderRadiusM),reorderableItemTitleMarginRight:r.extend("--ft-reorderable-list-reorderable-item-title-margin-right","",l.spacing6),reorderableItemTitleColor:r.extend("--ft-reorderable-list-reorderable-item-title-color","",d.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-margin-right","",l.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",l.spacing2),reorderableItemRightButtonsGroupHorizontalGap:r.extend("--ft-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",l.spacing2),reorderableItemUsersCountColor:r.extend("--ft-reorderable-list-reorderable-item-users-count-color","",d.contentGlobalPrimary),reorderableItemUsersCountMarginRight:r.extend("--ft-reorderable-list-reorderable-item-users-count-margin-right","",l.spacing6),reorderableItemBackgroundColor:r.extend("--ft-reorderable-list-reorderable-item-background-color","",d.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:r.extend("--ft-reorderable-list-reorderable-item-warning-message-gap","",l.spacing1),reorderableItemWarningMessageColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-color","",d.contentWarningPrimary),reorderableItemWarningMessageIconColor:r.extend("--ft-reorderable-list-reorderable-item-warning-message-icon-color","",d.contentWarningIconOnly),reorderableItemGripColor:r.extend("--ft-reorderable-list-reorderable-item-grip-color","",d.contentGlobalSecondary),reorderableItemGripOpacity:r.extend("--ft-reorderable-list-reorderable-item-grip-opacity","",l.opacity48),boxShadow:r.extend("--ft-reorderable-list-box-shadow","",l.shadowElevation01),borderWidth:r.create("--ft-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:r.extend("--ft-reorderable-list-reorderable-items-gap","",l.spacing2),leftPadding:r.extend("--ft-reorderable-list-left-padding","",l.spacing2),rightPadding:r.extend("--ft-reorderable-list-right-padding","",l.spacing6),borderColor:r.extend("--ft-reorderable-list-border-color","",d.borderGlobalPrimary),backgroundColor:r.extend("--ft-reorderable-list-background-color","",d.backgroundGlobalOnSurfaceDark)};var To;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(To||(To={}));var _r;(function(t){t.large="large",t.medium="medium",t.small="small"})(_r||(_r={}));var Io=g(M());function Qa(t){let e=_o[t];return Io.css`
|
|
116
|
+
.ft-typography--${(0,Io.unsafeCSS)(t)} {
|
|
117
|
+
font-family: ${e.fontFamily};
|
|
118
|
+
font-size: ${e.fontSize};
|
|
119
|
+
font-weight: ${e.fontWeight};
|
|
120
|
+
letter-spacing: ${e.letterSpacing};
|
|
121
|
+
line-height: ${e.lineHeight};
|
|
122
|
+
text-transform: ${e.textCase};
|
|
123
|
+
}
|
|
124
|
+
`}var Ja=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.titleFont),_t=A.FtCssVariableFactory.extend("--ft-typography-font-family","",A.designSystemVariables.contentFont),L={fontFamily:_t,fontSize:A.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:A.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:A.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:A.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:A.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},zt={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ja),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-font-size","",L.fontSize,"20px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",L.letterSpacing,"0.15px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-line-height","",L.lineHeight,"1.2"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",L.textTransform,"inherit")},Ht={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ja),fontSize:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",L.letterSpacing,"0.105px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",L.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",L.textTransform,"inherit")},Tr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",_t),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",L.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",L.fontWeight,"600"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",L.letterSpacing,"0.144px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",L.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",L.textTransform,"inherit")},Ir={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",_t),fontSize:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",L.letterSpacing,"0.098px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",L.lineHeight,"1.7"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",L.textTransform,"inherit")},nt={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",_t),fontSize:A.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",L.fontSize,"16px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",L.letterSpacing,"0.496px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",L.lineHeight,"1.5"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",L.textTransform,"inherit")},Nr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",_t),fontSize:A.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",L.letterSpacing,"0.252px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",L.lineHeight,"1.4"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",L.textTransform,"inherit")},pt={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",_t),fontSize:A.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",L.fontSize,"12px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",L.letterSpacing,"0.396px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",L.lineHeight,"1.33"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",L.textTransform,"inherit")},Lr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",_t),fontSize:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",L.fontSize,"10px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",L.letterSpacing,"0.33px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",L.lineHeight,"1.6"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",L.textTransform,"inherit")},kr={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",_t),fontSize:A.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",L.fontSize,"10px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",L.fontWeight,"normal"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",L.letterSpacing,"1.5px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",L.lineHeight,"1.6"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",L.textTransform,"uppercase")},We={fontFamily:A.FtCssVariableFactory.extend("--ft-typography-button-font-family","",_t),fontSize:A.FtCssVariableFactory.extend("--ft-typography-button-font-size","",L.fontSize,"14px"),fontWeight:A.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",L.fontWeight,"600"),letterSpacing:A.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",L.letterSpacing,"1.246px"),lineHeight:A.FtCssVariableFactory.extend("--ft-typography-button-line-height","",L.lineHeight,"1.15"),textTransform:A.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",L.textTransform,"uppercase")},es=at.css`
|
|
125
125
|
.ft-typography--title {
|
|
126
|
-
font-family: ${
|
|
127
|
-
font-size: ${
|
|
128
|
-
font-weight: ${
|
|
129
|
-
letter-spacing: ${
|
|
130
|
-
line-height: ${
|
|
131
|
-
text-transform: ${
|
|
132
|
-
}
|
|
133
|
-
`,
|
|
126
|
+
font-family: ${zt.fontFamily};
|
|
127
|
+
font-size: ${zt.fontSize};
|
|
128
|
+
font-weight: ${zt.fontWeight};
|
|
129
|
+
letter-spacing: ${zt.letterSpacing};
|
|
130
|
+
line-height: ${zt.lineHeight};
|
|
131
|
+
text-transform: ${zt.textTransform};
|
|
132
|
+
}
|
|
133
|
+
`,ts=at.css`
|
|
134
134
|
.ft-typography--title-dense {
|
|
135
|
-
font-family: ${
|
|
136
|
-
font-size: ${
|
|
137
|
-
font-weight: ${
|
|
138
|
-
letter-spacing: ${
|
|
139
|
-
line-height: ${
|
|
140
|
-
text-transform: ${
|
|
141
|
-
}
|
|
142
|
-
`,rs=
|
|
135
|
+
font-family: ${Ht.fontFamily};
|
|
136
|
+
font-size: ${Ht.fontSize};
|
|
137
|
+
font-weight: ${Ht.fontWeight};
|
|
138
|
+
letter-spacing: ${Ht.letterSpacing};
|
|
139
|
+
line-height: ${Ht.lineHeight};
|
|
140
|
+
text-transform: ${Ht.textTransform};
|
|
141
|
+
}
|
|
142
|
+
`,rs=at.css`
|
|
143
143
|
.ft-typography--subtitle1 {
|
|
144
144
|
font-family: ${Tr.fontFamily};
|
|
145
145
|
font-size: ${Tr.fontSize};
|
|
@@ -148,8 +148,27 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
148
148
|
line-height: ${Tr.lineHeight};
|
|
149
149
|
text-transform: ${Tr.textTransform};
|
|
150
150
|
}
|
|
151
|
-
`,os=
|
|
151
|
+
`,os=at.css`
|
|
152
152
|
.ft-typography--subtitle2 {
|
|
153
|
+
font-family: ${Ir.fontFamily};
|
|
154
|
+
font-size: ${Ir.fontSize};
|
|
155
|
+
font-weight: ${Ir.fontWeight};
|
|
156
|
+
letter-spacing: ${Ir.letterSpacing};
|
|
157
|
+
line-height: ${Ir.lineHeight};
|
|
158
|
+
text-transform: ${Ir.textTransform};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
`,Pr=at.css`
|
|
162
|
+
.ft-typography--body1 {
|
|
163
|
+
font-family: ${nt.fontFamily};
|
|
164
|
+
font-size: ${nt.fontSize};
|
|
165
|
+
font-weight: ${nt.fontWeight};
|
|
166
|
+
letter-spacing: ${nt.letterSpacing};
|
|
167
|
+
line-height: ${nt.lineHeight};
|
|
168
|
+
text-transform: ${nt.textTransform};
|
|
169
|
+
}
|
|
170
|
+
`,is=at.css`
|
|
171
|
+
.ft-typography--body2 {
|
|
153
172
|
font-family: ${Nr.fontFamily};
|
|
154
173
|
font-size: ${Nr.fontSize};
|
|
155
174
|
font-weight: ${Nr.fontWeight};
|
|
@@ -157,45 +176,17 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
157
176
|
line-height: ${Nr.lineHeight};
|
|
158
177
|
text-transform: ${Nr.textTransform};
|
|
159
178
|
}
|
|
160
|
-
|
|
161
|
-
`,Pr=ae.css`
|
|
162
|
-
.ft-typography--body1 {
|
|
163
|
-
font-family: ${ne.fontFamily};
|
|
164
|
-
font-size: ${ne.fontSize};
|
|
165
|
-
font-weight: ${ne.fontWeight};
|
|
166
|
-
letter-spacing: ${ne.letterSpacing};
|
|
167
|
-
line-height: ${ne.lineHeight};
|
|
168
|
-
text-transform: ${ne.textTransform};
|
|
169
|
-
}
|
|
170
|
-
`,is=ae.css`
|
|
171
|
-
.ft-typography--body2 {
|
|
172
|
-
font-family: ${_r.fontFamily};
|
|
173
|
-
font-size: ${_r.fontSize};
|
|
174
|
-
font-weight: ${_r.fontWeight};
|
|
175
|
-
letter-spacing: ${_r.letterSpacing};
|
|
176
|
-
line-height: ${_r.lineHeight};
|
|
177
|
-
text-transform: ${_r.textTransform};
|
|
178
|
-
}
|
|
179
|
-
`,_o=ae.css`
|
|
179
|
+
`,No=at.css`
|
|
180
180
|
.ft-typography--caption {
|
|
181
|
-
font-family: ${
|
|
182
|
-
font-size: ${
|
|
183
|
-
font-weight: ${
|
|
184
|
-
letter-spacing: ${
|
|
185
|
-
line-height: ${
|
|
186
|
-
text-transform: ${
|
|
187
|
-
}
|
|
188
|
-
`,ns=
|
|
181
|
+
font-family: ${pt.fontFamily};
|
|
182
|
+
font-size: ${pt.fontSize};
|
|
183
|
+
font-weight: ${pt.fontWeight};
|
|
184
|
+
letter-spacing: ${pt.letterSpacing};
|
|
185
|
+
line-height: ${pt.lineHeight};
|
|
186
|
+
text-transform: ${pt.textTransform};
|
|
187
|
+
}
|
|
188
|
+
`,ns=at.css`
|
|
189
189
|
.ft-typography--breadcrumb {
|
|
190
|
-
font-family: ${kr.fontFamily};
|
|
191
|
-
font-size: ${kr.fontSize};
|
|
192
|
-
font-weight: ${kr.fontWeight};
|
|
193
|
-
letter-spacing: ${kr.letterSpacing};
|
|
194
|
-
line-height: ${kr.lineHeight};
|
|
195
|
-
text-transform: ${kr.textTransform};
|
|
196
|
-
}
|
|
197
|
-
`,as=ae.css`
|
|
198
|
-
.ft-typography--overline {
|
|
199
190
|
font-family: ${Lr.fontFamily};
|
|
200
191
|
font-size: ${Lr.fontSize};
|
|
201
192
|
font-weight: ${Lr.fontWeight};
|
|
@@ -203,20 +194,29 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
203
194
|
line-height: ${Lr.lineHeight};
|
|
204
195
|
text-transform: ${Lr.textTransform};
|
|
205
196
|
}
|
|
206
|
-
`,
|
|
197
|
+
`,as=at.css`
|
|
198
|
+
.ft-typography--overline {
|
|
199
|
+
font-family: ${kr.fontFamily};
|
|
200
|
+
font-size: ${kr.fontSize};
|
|
201
|
+
font-weight: ${kr.fontWeight};
|
|
202
|
+
letter-spacing: ${kr.letterSpacing};
|
|
203
|
+
line-height: ${kr.lineHeight};
|
|
204
|
+
text-transform: ${kr.textTransform};
|
|
205
|
+
}
|
|
206
|
+
`,ss=at.css`
|
|
207
207
|
.ft-typography--button {
|
|
208
|
-
font-family: ${
|
|
209
|
-
font-size: ${
|
|
210
|
-
font-weight: ${
|
|
211
|
-
letter-spacing: ${
|
|
212
|
-
line-height: ${
|
|
213
|
-
text-transform: ${
|
|
214
|
-
}
|
|
215
|
-
`,ls=
|
|
208
|
+
font-family: ${We.fontFamily};
|
|
209
|
+
font-size: ${We.fontSize};
|
|
210
|
+
font-weight: ${We.fontWeight};
|
|
211
|
+
letter-spacing: ${We.letterSpacing};
|
|
212
|
+
line-height: ${We.lineHeight};
|
|
213
|
+
text-transform: ${We.textTransform};
|
|
214
|
+
}
|
|
215
|
+
`,ls=at.css`
|
|
216
216
|
.ft-typography {
|
|
217
217
|
vertical-align: inherit;
|
|
218
218
|
}
|
|
219
|
-
`,cs=[Object.keys(
|
|
219
|
+
`,cs=[Object.keys(_o).map(t=>Qa(t))];var ds=g(M()),Jr=g(R()),oe={color:Jr.FtCssVariableFactory.extend("--ft-loader-color","",Jr.designSystemVariables.colorPrimary),size:Jr.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},ps=ds.css`
|
|
220
220
|
:host {
|
|
221
221
|
line-height: 0;
|
|
222
222
|
}
|
|
@@ -225,8 +225,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
225
225
|
display: inline-block;
|
|
226
226
|
position: relative;
|
|
227
227
|
|
|
228
|
-
width: ${
|
|
229
|
-
height: ${
|
|
228
|
+
width: ${oe.size};
|
|
229
|
+
height: ${oe.size};
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
.ft-loader div {
|
|
@@ -235,7 +235,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
235
235
|
width: 25%;
|
|
236
236
|
height: 25%;
|
|
237
237
|
border-radius: 50%;
|
|
238
|
-
background: ${
|
|
238
|
+
background: ${oe.color};
|
|
239
239
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
240
240
|
}
|
|
241
241
|
|
|
@@ -282,10 +282,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
282
282
|
transform: translate(0, 0);
|
|
283
283
|
}
|
|
284
284
|
100% {
|
|
285
|
-
transform: translate(calc(0.35 * ${
|
|
285
|
+
transform: translate(calc(0.35 * ${oe.size}), 0);
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
-
`;var us=g(
|
|
288
|
+
`;var us=g(M()),Tt=g(R()),Se={size:Tt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Tt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Tt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Tt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Tt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Tt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Tt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Tt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},fs=us.css`
|
|
289
289
|
:host, i.ft-icon {
|
|
290
290
|
display: inline-flex;
|
|
291
291
|
align-items: center;
|
|
@@ -294,14 +294,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
:host {
|
|
297
|
-
width: ${
|
|
298
|
-
height: ${
|
|
297
|
+
width: ${Se.size};
|
|
298
|
+
height: ${Se.size};
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
i.ft-icon {
|
|
302
302
|
width: 100%;
|
|
303
303
|
height: 100%;
|
|
304
|
-
font-size: ${
|
|
304
|
+
font-size: ${Se.size};
|
|
305
305
|
line-height: 1;
|
|
306
306
|
font-weight: normal;
|
|
307
307
|
text-transform: none;
|
|
@@ -312,28 +312,28 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
312
312
|
text-rendering: auto;
|
|
313
313
|
-webkit-font-smoothing: antialiased;
|
|
314
314
|
-moz-osx-font-smoothing: grayscale;
|
|
315
|
-
vertical-align: ${
|
|
315
|
+
vertical-align: ${Se.verticalAlign};
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
i.ft-icon.ft-icon--fluid-topics {
|
|
319
|
-
font-family: ${
|
|
319
|
+
font-family: ${Se.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
320
320
|
|
|
321
321
|
/* Ugly fix because font is broken */
|
|
322
|
-
font-size: calc(0.75 * ${
|
|
323
|
-
line-height: ${
|
|
322
|
+
font-size: calc(0.75 * ${Se.size});
|
|
323
|
+
line-height: ${Se.size};
|
|
324
324
|
position: relative;
|
|
325
325
|
top: -4%;
|
|
326
326
|
justify-content: center;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
.ft-icon--file-format {
|
|
330
|
-
font-family: ${
|
|
330
|
+
font-family: ${Se.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
.ft-icon--material {
|
|
334
|
-
font-family: ${
|
|
334
|
+
font-family: ${Se.materialFontFamily}, "Material Icons", sans-serif;
|
|
335
335
|
}
|
|
336
|
-
`;var hs=
|
|
336
|
+
`;var hs=U.FtCssVariableFactory.extend("--ft-button-color","",U.designSystemVariables.colorPrimary),te={backgroundColor:U.FtCssVariableFactory.extend("--ft-button-background-color","",U.designSystemVariables.colorSurface),borderRadius:U.FtCssVariableFactory.extend("--ft-button-border-radius","",U.designSystemVariables.borderRadiusL),color:hs,fontSize:U.FtCssVariableFactory.extend("--ft-button-font-size","",We.fontSize),iconSize:U.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:U.FtCssVariableFactory.extend("--ft-button-ripple-color","",hs),verticalPadding:U.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:U.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:U.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:U.FtCssVariableFactory.external(U.designSystemVariables.colorOpacityDisabled,"Design system")},ys=U.FtCssVariableFactory.extend("--ft-button-primary-color","",U.FtCssVariableFactory.extend("--ft-button-color","",U.designSystemVariables.colorOnPrimary)),Xi={backgroundColor:U.FtCssVariableFactory.extend("--ft-button-primary-background-color","",U.FtCssVariableFactory.extend("--ft-button-background-color","",U.designSystemVariables.colorPrimary)),color:ys,rippleColor:U.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ys)},St={borderRadius:U.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",U.FtCssVariableFactory.extend("--ft-button-border-radius","",U.designSystemVariables.borderRadiusM)),verticalPadding:U.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:U.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:U.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},gs=[ms.css`
|
|
337
337
|
:host {
|
|
338
338
|
display: inline-block;
|
|
339
339
|
max-width: 100%;
|
|
@@ -344,7 +344,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
344
344
|
box-shadow: 0px 0px 0px transparent;
|
|
345
345
|
border: 0px solid transparent;
|
|
346
346
|
text-shadow: 0px 0px 0px transparent;
|
|
347
|
-
font-size: ${
|
|
347
|
+
font-size: ${te.fontSize};
|
|
348
348
|
text-decoration: none;
|
|
349
349
|
}
|
|
350
350
|
|
|
@@ -374,31 +374,31 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
374
374
|
border: none;
|
|
375
375
|
pointer-events: auto;
|
|
376
376
|
|
|
377
|
-
--ft-button-internal-line-height: max(calc(${
|
|
378
|
-
--ft-button-internal-color: ${
|
|
379
|
-
${(0,
|
|
380
|
-
${(0,
|
|
377
|
+
--ft-button-internal-line-height: max(calc(${te.fontSize} + 2px), ${te.iconSize});
|
|
378
|
+
--ft-button-internal-color: ${te.color};
|
|
379
|
+
${(0,U.setVariable)(Se.size,te.iconSize)};
|
|
380
|
+
${(0,U.setVariable)(E.color,te.rippleColor)};
|
|
381
381
|
|
|
382
|
-
border-radius: ${
|
|
383
|
-
padding: ${
|
|
384
|
-
background-color: ${
|
|
382
|
+
border-radius: ${te.borderRadius};
|
|
383
|
+
padding: ${te.verticalPadding} ${te.horizontalPadding};
|
|
384
|
+
background-color: ${te.backgroundColor};
|
|
385
385
|
color: var(--ft-button-internal-color);
|
|
386
386
|
-webkit-mask-image: radial-gradient(white, black);
|
|
387
387
|
}
|
|
388
388
|
|
|
389
389
|
.ft-button.ft-button--outlined {
|
|
390
390
|
border: 1px solid var(--ft-button-internal-color);
|
|
391
|
-
padding: calc(${
|
|
391
|
+
padding: calc(${te.verticalPadding} - 1px) calc(${te.horizontalPadding} - 1px);
|
|
392
392
|
}
|
|
393
393
|
|
|
394
394
|
.ft-button.ft-button--dense {
|
|
395
|
-
padding: ${
|
|
396
|
-
border-radius: ${
|
|
397
|
-
gap: ${
|
|
395
|
+
padding: ${St.verticalPadding} ${St.horizontalPadding};
|
|
396
|
+
border-radius: ${St.borderRadius};
|
|
397
|
+
gap: ${St.iconPadding};
|
|
398
398
|
}
|
|
399
399
|
|
|
400
400
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
401
|
-
padding: calc(${
|
|
401
|
+
padding: calc(${St.verticalPadding} - 1px) calc(${St.horizontalPadding} - 1px);
|
|
402
402
|
}
|
|
403
403
|
|
|
404
404
|
.ft-button:not([disabled]):hover {
|
|
@@ -406,22 +406,22 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
406
406
|
}
|
|
407
407
|
|
|
408
408
|
.ft-button--round {
|
|
409
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
409
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${te.verticalPadding});
|
|
410
410
|
}
|
|
411
411
|
|
|
412
412
|
.ft-button--round.ft-button--dense {
|
|
413
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
413
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${St.verticalPadding});
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
.ft-button[disabled] {
|
|
417
417
|
filter: grayscale(1);
|
|
418
|
-
opacity: ${
|
|
418
|
+
opacity: ${te.opacityDisabled};
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
.ft-button.ft-button--primary {
|
|
422
|
-
background-color: ${
|
|
423
|
-
--ft-button-internal-color: ${
|
|
424
|
-
${(0,
|
|
422
|
+
background-color: ${Xi.backgroundColor};
|
|
423
|
+
--ft-button-internal-color: ${Xi.color};
|
|
424
|
+
${(0,U.setVariable)(E.color,Xi.rippleColor)};
|
|
425
425
|
}
|
|
426
426
|
|
|
427
427
|
.ft-button:focus {
|
|
@@ -434,13 +434,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
434
434
|
white-space: nowrap;
|
|
435
435
|
text-overflow: ellipsis;
|
|
436
436
|
display: block;
|
|
437
|
-
margin: 0 ${
|
|
438
|
-
${(0,
|
|
439
|
-
${(0,
|
|
437
|
+
margin: 0 ${te.iconPadding};
|
|
438
|
+
${(0,U.setVariable)(We.fontSize,"1em")};
|
|
439
|
+
${(0,U.setVariable)(We.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
440
440
|
}
|
|
441
441
|
|
|
442
442
|
.ft-button--dense .ft-button--label {
|
|
443
|
-
margin: 0 ${
|
|
443
|
+
margin: 0 ${St.iconPadding};
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
.ft-button--label[hidden] {
|
|
@@ -453,13 +453,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
.ft-button--label[hidden] + [part="icon"] {
|
|
456
|
-
margin: 0 calc(${
|
|
457
|
-
padding: 0 ${
|
|
456
|
+
margin: 0 calc(${te.horizontalPadding} * -1);
|
|
457
|
+
padding: 0 ${te.verticalPadding};
|
|
458
458
|
}
|
|
459
459
|
|
|
460
460
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
461
|
-
margin: 0 calc(${
|
|
462
|
-
padding: 0 ${
|
|
461
|
+
margin: 0 calc(${St.horizontalPadding} * -1);
|
|
462
|
+
padding: 0 ${St.verticalPadding};
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
.ft-button:not(.ft-button--trailing-icon) [part="label"]{
|
|
@@ -467,10 +467,10 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
ft-loader {
|
|
470
|
-
${(0,
|
|
471
|
-
${(0,
|
|
470
|
+
${(0,U.setVariable)(oe.size,te.iconSize)};
|
|
471
|
+
${(0,U.setVariable)(oe.color,"var(--ft-button-internal-color)")};
|
|
472
472
|
}
|
|
473
|
-
`,
|
|
473
|
+
`,U.noTextSelect];var le=g(R());var ce={textColor:le.FtCssVariableFactory.extend("--ft-switch-text-color","",le.designSystemVariables.colorOnSurfaceHigh),backgroundColor:le.FtCssVariableFactory.extend("--ft-switch-background-color","",le.designSystemVariables.colorSurface),selectedTextColor:le.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",le.designSystemVariables.colorPrimary),selectedBackgroundColor:le.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",le.designSystemVariables.colorPrimary),borderColor:le.FtCssVariableFactory.extend("--ft-switch-border-color","",le.designSystemVariables.colorOutline),borderRadius:le.FtCssVariableFactory.extend("--ft-switch-border-radius","",le.designSystemVariables.borderRadiusL),fontSize:le.FtCssVariableFactory.extend("--ft-switch-font-size","",We.fontSize),iconSize:le.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:le.FtCssVariableFactory.extend("--ft-switch-text-color","",le.designSystemVariables.colorOnSurfaceMedium),rippleColor:le.FtCssVariableFactory.extend("--ft-switch-ripple-color","",le.designSystemVariables.colorPrimary),outlineColor:le.FtCssVariableFactory.extend("--ft-switch-outline-color","",le.designSystemVariables.colorPrimary)};var Ot={feedbackInputMinWidth:J.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:J.FtCssVariableFactory.external(J.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",J.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",J.designSystemVariables.colorPrimary),filledRatingColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",J.designSystemVariables.colorPrimary),emptyRatingColor:J.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",J.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:J.FtCssVariableFactory.external(zt.fontSize,"Typography"),sectionTitleFontSize:J.FtCssVariableFactory.external(Ht.fontSize,"Typography"),starsBackgroundColor:J.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",J.designSystemVariables.colorSurface)},vs=bs.css`
|
|
474
474
|
.ft-reader-feedback {
|
|
475
475
|
box-sizing: border-box;
|
|
476
476
|
display: flex;
|
|
@@ -483,7 +483,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
483
483
|
flex-direction: row;
|
|
484
484
|
align-items: center;
|
|
485
485
|
margin-left: -6px;
|
|
486
|
-
${(0,J.setVariable)(
|
|
486
|
+
${(0,J.setVariable)(te.backgroundColor,Ot.starsBackgroundColor)}
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
.ft-reader-feedback--rating, .ft-reader-feedback--feedback {
|
|
@@ -496,14 +496,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
.ft-reader-feedback--rating {
|
|
499
|
-
${(0,J.setVariable)(
|
|
500
|
-
${(0,J.setVariable)(
|
|
501
|
-
${(0,J.setVariable)(
|
|
502
|
-
${(0,J.setVariable)(
|
|
499
|
+
${(0,J.setVariable)(te.color,Ot.emptyRatingColor)};
|
|
500
|
+
${(0,J.setVariable)(te.rippleColor,Ot.filledRatingColor)};
|
|
501
|
+
${(0,J.setVariable)(ce.textColor,Ot.emptyRatingColor)};
|
|
502
|
+
${(0,J.setVariable)(ce.selectedTextColor,Ot.filledRatingColor)};
|
|
503
503
|
}
|
|
504
504
|
|
|
505
505
|
.ft-reader-feedback--rating .ft-reader-feedback--active {
|
|
506
|
-
${(0,J.setVariable)(
|
|
506
|
+
${(0,J.setVariable)(te.color,Ot.filledRatingColor)};
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
.ft-reader-feedback--feedback {
|
|
@@ -511,43 +511,43 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
.ft-reader-feedback--rating-date {
|
|
514
|
-
color: ${
|
|
514
|
+
color: ${Ot.ratedDateColor};
|
|
515
515
|
}
|
|
516
516
|
|
|
517
517
|
.ft-reader-feedback--feedback ft-text-area {
|
|
518
|
-
min-width: ${
|
|
518
|
+
min-width: ${Ot.feedbackInputMinWidth};
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
.ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
|
|
522
|
-
${(0,J.setVariable)(
|
|
523
|
-
${(0,J.setVariable)(
|
|
522
|
+
${(0,J.setVariable)(te.color,Ot.sendFeedbackColor)};
|
|
523
|
+
${(0,J.setVariable)(te.backgroundColor,Ot.sendFeedbackBackgroundColor)};
|
|
524
524
|
}
|
|
525
525
|
|
|
526
526
|
[part="buttons-container"] {
|
|
527
527
|
align-self: flex-end;
|
|
528
528
|
}
|
|
529
|
-
`;var
|
|
530
|
-
\f\r]`,
|
|
531
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),
|
|
532
|
-
<${
|
|
529
|
+
`;var Zd=g(Ss(),1);var Os;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Os||(Os={}));var Cs;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Cs||(Cs={}));var Es;(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.MAP_ATTACHMENT="MAP_ATTACHMENT",t.RESOURCE="RESOURCE"})(Es||(Es={}));var ws;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ws||(ws={}));var As;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(As||(As={}));var Rs;(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.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",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.GEN_AI__COMPLETED_QUERY="GEN_AI__COMPLETED_QUERY",t.GEN_AI__RATE="GEN_AI__RATE",t.GENAI_CASE_DEFLECTION__START="GENAI_CASE_DEFLECTION__START",t.GENAI_CASE_DEFLECTION__OPEN_TICKET="GENAI_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.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"})(Rs||(Rs={}));var _s;(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"})(_s||(_s={}));var Ts;(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"})(Ts||(Ts={}));var Is;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Is||(Is={}));var Ns;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ns||(Ns={}));var Ls;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Ls||(Ls={}));var be;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(be||(be={}));var ks;(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"})(ks||(ks={}));var Ps;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ps||(Ps={}));var Ds;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ds||(Ds={}));var $s;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})($s||($s={}));var Bs;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Bs||(Bs={}));var Ms;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ms||(Ms={}));var Us;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Us||(Us={}));var Fs;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Fs||(Fs={}));var Ws;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Ws||(Ws={}));var zs;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(zs||(zs={}));var ee;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(ee||(ee={}));var Hs;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Hs||(Hs={}));var Vs;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Vs||(Vs={}));var Kd={[ee.PERSONAL_BOOK_SHARE_USER]:[ee.PERSONAL_BOOK_USER],[ee.HTML_EXPORT_USER]:[ee.PERSONAL_BOOK_USER],[ee.PDF_EXPORT_USER]:[ee.PERSONAL_BOOK_USER],[ee.KHUB_ADMIN]:[ee.CONTENT_PUBLISHER],[ee.ADMIN]:[ee.KHUB_ADMIN,ee.USERS_ADMIN,ee.PORTAL_ADMIN],[ee.DEVELOPER]:[ee.BETA_USER,ee.DEBUG_USER],[ee.GENERATIVE_AI_EXPORT_USER]:[ee.GENERATIVE_AI_USER]};function Gs(t,e){return t===e||(Kd[t]??[]).some(o=>Gs(o,e))}function ur(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=>Gs(i,e))}var pl=g(R());var nn=globalThis,Po=nn.trustedTypes,js=Po?Po.createPolicy("lit-html",{createHTML:t=>t}):void 0,Qs="$lit$",Gt=`lit$${(Math.random()+"").slice(9)}$`,Js="?"+Gt,qd=`<${Js}>`,yr=document,Do=()=>yr.createComment(""),to=t=>t===null||typeof t!="object"&&typeof t!="function",el=Array.isArray,Yd=t=>el(t)||typeof t?.[Symbol.iterator]=="function",Qi=`[
|
|
530
|
+
\f\r]`,eo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ks=/-->/g,Zs=/>/g,fr=RegExp(`>|${Qi}(?:([^\\s"'>=/]+)(${Qi}*=${Qi}*(?:[^
|
|
531
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),qs=/'/g,Ys=/"/g,tl=/^(?:script|style|textarea|title)$/i,rl=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),ol=rl(1),il=rl(2),ro=Symbol.for("lit-noChange"),ve=Symbol.for("lit-nothing"),Xs=new WeakMap,hr=yr.createTreeWalker(yr,129);function nl(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return js!==void 0?js.createHTML(e):e}var Xd=(t,e)=>{let o=t.length-1,i=[],n,a=e===2?"<svg>":"",s=eo;for(let c=0;c<o;c++){let u=t[c],p,y,f=-1,b=0;for(;b<u.length&&(s.lastIndex=b,y=s.exec(u),y!==null);)b=s.lastIndex,s===eo?y[1]==="!--"?s=Ks:y[1]!==void 0?s=Zs:y[2]!==void 0?(tl.test(y[2])&&(n=RegExp("</"+y[2],"g")),s=fr):y[3]!==void 0&&(s=fr):s===fr?y[0]===">"?(s=n??eo,f=-1):y[1]===void 0?f=-2:(f=s.lastIndex-y[2].length,p=y[1],s=y[3]===void 0?fr:y[3]==='"'?Ys:qs):s===Ys||s===qs?s=fr:s===Ks||s===Zs?s=eo:(s=fr,n=void 0);let x=s===fr&&t[c+1].startsWith("/>")?" ":"";a+=s===eo?u+qd:f>=0?(i.push(p),u.slice(0,f)+Qs+u.slice(f)+Gt+x):u+Gt+(f===-2?c:x)}return[nl(t,a+(t[o]||"<?>")+(e===2?"</svg>":"")),i]},oo=class t{constructor({strings:e,_$litType$:o},i){let n;this.parts=[];let a=0,s=0,c=e.length-1,u=this.parts,[p,y]=Xd(e,o);if(this.el=t.createElement(p,i),hr.currentNode=this.el.content,o===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(n=hr.nextNode())!==null&&u.length<c;){if(n.nodeType===1){if(n.hasAttributes())for(let f of n.getAttributeNames())if(f.endsWith(Qs)){let b=y[s++],x=n.getAttribute(f).split(Gt),S=/([.?@])?(.*)/.exec(b);u.push({type:1,index:a,name:S[2],strings:x,ctor:S[1]==="."?en:S[1]==="?"?tn:S[1]==="@"?rn:Br}),n.removeAttribute(f)}else f.startsWith(Gt)&&(u.push({type:6,index:a}),n.removeAttribute(f));if(tl.test(n.tagName)){let f=n.textContent.split(Gt),b=f.length-1;if(b>0){n.textContent=Po?Po.emptyScript:"";for(let x=0;x<b;x++)n.append(f[x],Do()),hr.nextNode(),u.push({type:2,index:++a});n.append(f[b],Do())}}}else if(n.nodeType===8)if(n.data===Js)u.push({type:2,index:a});else{let f=-1;for(;(f=n.data.indexOf(Gt,f+1))!==-1;)u.push({type:7,index:a}),f+=Gt.length-1}a++}}static createElement(e,o){let i=yr.createElement("template");return i.innerHTML=e,i}};function $r(t,e,o=t,i){if(e===ro)return e;let n=i!==void 0?o._$Co?.[i]:o._$Cl,a=to(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=$r(t,n._$AS(t,e.values),n,i)),e}var Ji=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??yr).importNode(o,!0);hr.currentNode=n;let a=hr.nextNode(),s=0,c=0,u=i[0];for(;u!==void 0;){if(s===u.index){let p;u.type===2?p=new $o(a,a.nextSibling,this,e):u.type===1?p=new u.ctor(a,u.name,u.strings,this,e):u.type===6&&(p=new on(a,this,e)),this._$AV.push(p),u=i[++c]}s!==u?.index&&(a=hr.nextNode(),s++)}return hr.currentNode=yr,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++}},$o=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,i,n){this.type=2,this._$AH=ve,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=$r(this,e,o),to(e)?e===ve||e==null||e===""?(this._$AH!==ve&&this._$AR(),this._$AH=ve):e!==this._$AH&&e!==ro&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Yd(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==ve&&to(this._$AH)?this._$AA.nextSibling.data=e:this.$(yr.createTextNode(e)),this._$AH=e}g(e){let{values:o,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=oo.createElement(nl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(o);else{let a=new Ji(n,this),s=a.u(this.options);a.p(o),this.$(s),this._$AH=a}}_$AC(e){let o=Xs.get(e.strings);return o===void 0&&Xs.set(e.strings,o=new oo(e)),o}T(e){el(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.k(Do()),this.k(Do()),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))}},Br=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,i,n,a){this.type=1,this._$AH=ve,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=ve}_$AI(e,o=this,i,n){let a=this.strings,s=!1;if(a===void 0)e=$r(this,e,o,0),s=!to(e)||e!==this._$AH&&e!==ro,s&&(this._$AH=e);else{let c=e,u,p;for(e=a[0],u=0;u<a.length-1;u++)p=$r(this,c[i+u],o,u),p===ro&&(p=this._$AH[u]),s||=!to(p)||p!==this._$AH[u],p===ve?e=ve:e!==ve&&(e+=(p??"")+a[u+1]),this._$AH[u]=p}s&&!n&&this.O(e)}O(e){e===ve?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},en=class extends Br{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===ve?void 0:e}},tn=class extends Br{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==ve)}},rn=class extends Br{constructor(e,o,i,n,a){super(e,o,i,n,a),this.type=5}_$AI(e,o=this){if((e=$r(this,e,o,0)??ve)===ro)return;let i=this._$AH,n=e===ve&&i!==ve||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==ve&&(i===ve||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)}},on=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){$r(this,e)}};var Qd=nn.litHtmlPolyfillSupport;Qd?.(oo,$o),(nn.litHtmlVersions??=[]).push("3.1.0");var sl=Symbol.for(""),Jd=t=>{if(t?.r===sl)return t?._$litStatic$},an=t=>({_$litStatic$:t,r:sl});var al=new Map,ll=t=>(e,...o)=>{let i=o.length,n,a,s=[],c=[],u,p=0,y=!1;for(;p<i;){for(u=e[p];p<i&&(a=o[p],(n=Jd(a))!==void 0);)u+=n+e[++p],y=!0;p!==i&&c.push(a),s.push(u),p++}if(p===i&&s.push(e[i]),y){let f=s.join("$$lit$$");(e=al.get(f))===void 0&&(s.raw=s,al.set(f,e=s)),o=c}return t(e,...o)},sn=ll(ol),og=ll(il);var ln=g(q()),dl=g(R());var jt;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",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"})(jt||(jt={}));var cl=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},fe=class extends dl.FtLitElement{constructor(){super(...arguments),this.variant=jt.body1}render(){return this.element?sn`
|
|
532
|
+
<${an(this.element)}
|
|
533
533
|
part="text"
|
|
534
534
|
class="ft-typography ft-typography--${this.variant}">
|
|
535
535
|
<slot></slot>
|
|
536
|
-
</${
|
|
537
|
-
`:
|
|
536
|
+
</${an(this.element)}>
|
|
537
|
+
`:sn`
|
|
538
538
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
539
|
-
`}};
|
|
539
|
+
`}};fe.styles=[es,ts,rs,os,Pr,is,No,ns,as,ss,ls,...cs];cl([(0,ln.property)()],fe.prototype,"element",void 0);cl([(0,ln.property)()],fe.prototype,"variant",void 0);(0,pl.customElement)("ft-typography")(fe);var On=g(R());var Vo=g(M()),Et=g(q()),Xl=g(It()),Dt=g(R());var zr=g(M()),qe=g(q()),Hr=g(R());var yl=g(R());var fl=g(M()),Te=g(q()),hl=g(It()),io=g(R());var je=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},j=class extends io.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new io.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new io.Debouncer(10),this.moveRipple=e=>{var o,i;let{x:n,y:a}=this.getCoordinates(e),s=(i=(o=this.ripple)===null||o===void 0?void 0:o.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 fl.html`
|
|
540
540
|
<style>
|
|
541
541
|
.ft-ripple .ft-ripple--effect {
|
|
542
542
|
left: ${this.originX}px;
|
|
543
543
|
top: ${this.originY}px;
|
|
544
544
|
}
|
|
545
545
|
</style>
|
|
546
|
-
<div class="${(0,
|
|
546
|
+
<div class="${(0,hl.classMap)(e)}">
|
|
547
547
|
<div class="ft-ripple--background"></div>
|
|
548
548
|
<div class="ft-ripple--effect"></div>
|
|
549
549
|
</div>
|
|
550
|
-
`}contentAvailableCallback(
|
|
550
|
+
`}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 o,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.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,o;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((o=this.target)!==null&&o!==void 0?o:i)}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 o=(...c)=>u=>{c.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(u)},i=o("mouseup","contextmenu"),n=o("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&o("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 o=e,i=e,n,a;return o.x!=null?{x:n,y:a}=o: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 o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};j.elementDefinitions={};j.styles=Aa;je([(0,Te.property)({type:Boolean})],j.prototype,"primary",void 0);je([(0,Te.property)({type:Boolean})],j.prototype,"secondary",void 0);je([(0,Te.property)({type:Boolean})],j.prototype,"unbounded",void 0);je([(0,Te.property)({type:Boolean})],j.prototype,"activated",void 0);je([(0,Te.property)({type:Boolean})],j.prototype,"selected",void 0);je([(0,Te.property)({type:Boolean})],j.prototype,"disabled",void 0);je([(0,Te.state)()],j.prototype,"hovered",void 0);je([(0,Te.state)()],j.prototype,"focused",void 0);je([(0,Te.state)()],j.prototype,"pressed",void 0);je([(0,Te.state)()],j.prototype,"rippling",void 0);je([(0,Te.state)()],j.prototype,"originX",void 0);je([(0,Te.state)()],j.prototype,"originY",void 0);je([(0,Te.query)(".ft-ripple")],j.prototype,"ripple",void 0);je([(0,Te.query)(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0);(0,yl.customElement)("ft-ripple")(j);var Yl=g(It());var zl=g(R());var Wl=g(M()),Oe=g(q()),po=g(R());var ml=g(M()),Nt=g(R()),Mr={distance:Nt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Nt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Nt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Nt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Nt.FtCssVariableFactory.external(Nt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Nt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},gl=ml.css`
|
|
551
551
|
.ft-tooltip--container {
|
|
552
552
|
display: block;
|
|
553
553
|
}
|
|
@@ -576,7 +576,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
576
576
|
position: relative;
|
|
577
577
|
word-break: break-word;
|
|
578
578
|
}
|
|
579
|
-
`;var yl=["top","right","bottom","left"],hl=["start","end"],cn=yl.reduce((e,t)=>e.concat(t,t+"-"+hl[0],t+"-"+hl[1]),[]),no=Math.min,je=Math.max,ao=Math.round;var ke=e=>({x:e,y:e}),Yd={left:"right",right:"left",bottom:"top",top:"bottom"},Xd={start:"end",end:"start"};function dn(e,t,o){return je(e,no(t,o))}function Bo(e,t){return typeof e=="function"?e(t):e}function Fr(e){return e.split("-")[0]}function Ke(e){return e.split("-")[1]}function pn(e){return e==="x"?"y":"x"}function un(e){return e==="y"?"height":"width"}function Mo(e){return["top","bottom"].includes(Fr(e))?"y":"x"}function fn(e){return pn(Mo(e))}function ml(e,t,o){o===void 0&&(o=!1);let i=Ke(e),n=fn(e),a=un(n),s=n==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=ln(s)),[s,ln(s)]}function gl(e){return e.replace(/start|end/g,t=>Xd[t])}function ln(e){return e.replace(/left|right|bottom|top/g,t=>Yd[t])}function Qd(e){return{top:0,right:0,bottom:0,left:0,...e}}function bl(e){return typeof e!="number"?Qd(e):{top:e,right:e,bottom:e,left:e}}function mr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function vl(e,t,o){let{reference:i,floating:n}=e,a=Mo(t),s=fn(t),c=un(s),u=Fr(t),p=a==="y",y=i.x+i.width/2-n.width/2,f=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,x;switch(u){case"top":x={x:y,y:i.y-n.height};break;case"bottom":x={x:y,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:f};break;case"left":x={x:i.x-n.width,y:f};break;default:x={x:i.x,y:i.y}}switch(Ke(t)){case"start":x[s]-=b*(o&&p?-1:1);break;case"end":x[s]+=b*(o&&p?-1:1);break}return x}var xl=async(e,t,o)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,c=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t)),p=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:y,y:f}=vl(p,i,u),b=i,x={},S=0;for(let O=0;O<c.length;O++){let{name:_,fn:I}=c[O],{x:N,y:$,data:W,reset:z}=await I({x:y,y:f,initialPlacement:i,placement:b,strategy:n,middlewareData:x,rects:p,platform:s,elements:{reference:e,floating:t}});if(y=N??y,f=$??f,x={...x,[_]:{...x[_],...W}},z&&S<=50){S++,typeof z=="object"&&(z.placement&&(b=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):z.rects),{x:y,y:f}=vl(p,b,u)),O=-1;continue}}return{x:y,y:f,placement:b,strategy:n,middlewareData:x}};async function hn(e,t){var o;t===void 0&&(t={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:u}=e,{boundary:p="clippingAncestors",rootBoundary:y="viewport",elementContext:f="floating",altBoundary:b=!1,padding:x=0}=Bo(t,e),S=bl(x),_=c[b?f==="floating"?"reference":"floating":f],I=mr(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:p,rootBoundary:y,strategy:u})),N=f==="floating"?{...s.floating,x:i,y:n}:s.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),W=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},z=mr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:N,offsetParent:$,strategy:u}):N);return{top:(I.top-z.top+S.top)/W.y,bottom:(z.bottom-I.bottom+S.bottom)/W.y,left:(I.left-z.left+S.left)/W.x,right:(z.right-I.right+S.right)/W.x}}function Jd(e,t,o){return(e?[...o.filter(n=>Ke(n)===e),...o.filter(n=>Ke(n)!==e)]:o.filter(n=>Fr(n)===n)).filter(n=>e?Ke(n)===e||(t?gl(n)!==n:!1):!0)}var yn=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var o,i,n;let{rects:a,middlewareData:s,placement:c,platform:u,elements:p}=t,{crossAxis:y=!1,alignment:f,allowedPlacements:b=cn,autoAlignment:x=!0,...S}=Bo(e,t),O=f!==void 0||b===cn?Jd(f||null,x,b):b,_=await hn(t,S),I=((o=s.autoPlacement)==null?void 0:o.index)||0,N=O[I];if(N==null)return{};let $=ml(N,a,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(c!==N)return{reset:{placement:O[0]}};let W=[_[Fr(N)],_[$[0]],_[$[1]]],z=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:N,overflows:W}],Gt=O[I+1];if(Gt)return{data:{index:I+1,overflows:z},reset:{placement:Gt}};let ve=z.map(Rt=>{let m=Ke(Rt.placement);return[Rt.placement,m&&y?Rt.overflows.slice(0,2).reduce((v,L)=>v+L,0):Rt.overflows[0],Rt.overflows]}).sort((Rt,m)=>Rt[1]-m[1]),xe=((n=ve.filter(Rt=>Rt[2].slice(0,Ke(Rt[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||ve[0][0];return xe!==c?{data:{index:I+1,overflows:z},reset:{placement:xe}}:{}}}};var mn=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:o,y:i,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:_=>{let{x:I,y:N}=_;return{x:I,y:N}}},...u}=Bo(e,t),p={x:o,y:i},y=await hn(t,u),f=Mo(Fr(n)),b=pn(f),x=p[b],S=p[f];if(a){let _=b==="y"?"top":"left",I=b==="y"?"bottom":"right",N=x+y[_],$=x-y[I];x=dn(N,x,$)}if(s){let _=f==="y"?"top":"left",I=f==="y"?"bottom":"right",N=S+y[_],$=S-y[I];S=dn(N,S,$)}let O=c.fn({...t,[b]:x,[f]:S});return{...O,data:{x:O.x-o,y:O.y-i}}}}};function Le(e){return Ol(e)?(e.nodeName||"").toLowerCase():"#document"}function Kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Pe(e){var t;return(t=(Ol(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ol(e){return e instanceof Node||e instanceof Kt(e).Node}function Ce(e){return e instanceof Element||e instanceof Kt(e).Element}function pe(e){return e instanceof HTMLElement||e instanceof Kt(e).HTMLElement}function Sl(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Kt(e).ShadowRoot}function Ur(e){let{overflow:t,overflowX:o,overflowY:i,display:n}=re(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+o)&&!["inline","contents"].includes(n)}function Cl(e){return["table","td","th"].includes(Le(e))}function Uo(e){let t=Wo(),o=re(e);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!t&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!t&&(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 wl(e){let t=gr(e);for(;pe(t)&&!so(t);){if(Uo(t))return t;t=gr(t)}return null}function Wo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function so(e){return["html","body","#document"].includes(Le(e))}function re(e){return Kt(e).getComputedStyle(e)}function lo(e){return Ce(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function gr(e){if(Le(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Sl(e)&&e.host||Pe(e);return Sl(t)?t.host:t}function El(e){let t=gr(e);return so(t)?e.ownerDocument?e.ownerDocument.body:e.body:pe(t)&&Ur(t)?t:El(t)}function Fo(e,t,o){var i;t===void 0&&(t=[]),o===void 0&&(o=!0);let n=El(e),a=n===((i=e.ownerDocument)==null?void 0:i.body),s=Kt(n);return a?t.concat(s,s.visualViewport||[],Ur(n)?n:[],s.frameElement&&o?Fo(s.frameElement):[]):t.concat(n,Fo(n,[],o))}function Il(e){let t=re(e),o=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=pe(e),a=n?e.offsetWidth:o,s=n?e.offsetHeight:i,c=ao(o)!==a||ao(i)!==s;return c&&(o=a,i=s),{width:o,height:i,$:c}}function Tl(e){return Ce(e)?e:e.contextElement}function Wr(e){let t=Tl(e);if(!pe(t))return ke(1);let o=t.getBoundingClientRect(),{width:i,height:n,$:a}=Il(t),s=(a?ao(o.width):o.width)/i,c=(a?ao(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var rp=ke(0);function Nl(e){let t=Kt(e);return!Wo()||!t.visualViewport?rp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function op(e,t,o){return t===void 0&&(t=!1),!o||t&&o!==Kt(e)?!1:t}function co(e,t,o,i){t===void 0&&(t=!1),o===void 0&&(o=!1);let n=e.getBoundingClientRect(),a=Tl(e),s=ke(1);t&&(i?Ce(i)&&(s=Wr(i)):s=Wr(e));let c=op(a,o,i)?Nl(a):ke(0),u=(n.left+c.x)/s.x,p=(n.top+c.y)/s.y,y=n.width/s.x,f=n.height/s.y;if(a){let b=Kt(a),x=i&&Ce(i)?Kt(i):i,S=b.frameElement;for(;S&&i&&x!==b;){let O=Wr(S),_=S.getBoundingClientRect(),I=re(S),N=_.left+(S.clientLeft+parseFloat(I.paddingLeft))*O.x,$=_.top+(S.clientTop+parseFloat(I.paddingTop))*O.y;u*=O.x,p*=O.y,y*=O.x,f*=O.y,u+=N,p+=$,S=Kt(S).frameElement}}return mr({width:y,height:f,x:u,y:p})}function ip(e){let{rect:t,offsetParent:o,strategy:i}=e,n=pe(o),a=Pe(o);if(o===a)return t;let s={scrollLeft:0,scrollTop:0},c=ke(1),u=ke(0);if((n||!n&&i!=="fixed")&&((Le(o)!=="body"||Ur(a))&&(s=lo(o)),pe(o))){let p=co(o);c=Wr(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-s.scrollLeft*c.x+u.x,y:t.y*c.y-s.scrollTop*c.y+u.y}}function np(e){return Array.from(e.getClientRects())}function _l(e){return co(Pe(e)).left+lo(e).scrollLeft}function ap(e){let t=Pe(e),o=lo(e),i=e.ownerDocument.body,n=je(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),a=je(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-o.scrollLeft+_l(e),c=-o.scrollTop;return re(i).direction==="rtl"&&(s+=je(t.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function sp(e,t){let o=Kt(e),i=Pe(e),n=o.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,u=0;if(n){a=n.width,s=n.height;let p=Wo();(!p||p&&t==="fixed")&&(c=n.offsetLeft,u=n.offsetTop)}return{width:a,height:s,x:c,y:u}}function lp(e,t){let o=co(e,!0,t==="fixed"),i=o.top+e.clientTop,n=o.left+e.clientLeft,a=pe(e)?Wr(e):ke(1),s=e.clientWidth*a.x,c=e.clientHeight*a.y,u=n*a.x,p=i*a.y;return{width:s,height:c,x:u,y:p}}function Al(e,t,o){let i;if(t==="viewport")i=sp(e,o);else if(t==="document")i=ap(Pe(e));else if(Ce(t))i=lp(t,o);else{let n=Nl(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return mr(i)}function kl(e,t){let o=gr(e);return o===t||!Ce(o)||so(o)?!1:re(o).position==="fixed"||kl(o,t)}function cp(e,t){let o=t.get(e);if(o)return o;let i=Fo(e,[],!1).filter(c=>Ce(c)&&Le(c)!=="body"),n=null,a=re(e).position==="fixed",s=a?gr(e):e;for(;Ce(s)&&!so(s);){let c=re(s),u=Uo(s);!u&&c.position==="fixed"&&(n=null),(a?!u&&!n:!u&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Ur(s)&&!u&&kl(e,s))?i=i.filter(y=>y!==s):n=c,s=gr(s)}return t.set(e,i),i}function dp(e){let{element:t,boundary:o,rootBoundary:i,strategy:n}=e,s=[...o==="clippingAncestors"?cp(t,this._c):[].concat(o),i],c=s[0],u=s.reduce((p,y)=>{let f=Al(t,y,n);return p.top=je(f.top,p.top),p.right=no(f.right,p.right),p.bottom=no(f.bottom,p.bottom),p.left=je(f.left,p.left),p},Al(t,c,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function pp(e){return Il(e)}function up(e,t,o){let i=pe(t),n=Pe(t),a=o==="fixed",s=co(e,!0,a,t),c={scrollLeft:0,scrollTop:0},u=ke(0);if(i||!i&&!a)if((Le(t)!=="body"||Ur(n))&&(c=lo(t)),i){let p=co(t,!0,a,t);u.x=p.x+t.clientLeft,u.y=p.y+t.clientTop}else n&&(u.x=_l(n));return{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function Rl(e,t){return!pe(e)||re(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ll(e,t){let o=Kt(e);if(!pe(e))return o;let i=Rl(e,t);for(;i&&Cl(i)&&re(i).position==="static";)i=Rl(i,t);return i&&(Le(i)==="html"||Le(i)==="body"&&re(i).position==="static"&&!Uo(i))?o:i||wl(e)||o}var fp=async function(e){let{reference:t,floating:o,strategy:i}=e,n=this.getOffsetParent||Ll,a=this.getDimensions;return{reference:up(t,await n(o),i),floating:{x:0,y:0,...await a(o)}}};function hp(e){return re(e).direction==="rtl"}var zo={convertOffsetParentRelativeRectToViewportRelativeRect:ip,getDocumentElement:Pe,getClippingRect:dp,getOffsetParent:Ll,getElementRects:fp,getClientRects:np,getDimensions:pp,getScale:Wr,isElement:Ce,isRTL:hp};var Pl=(e,t,o)=>{let i=new Map,n={platform:zo,...o},a={...n.platform,_c:i};return xl(e,t,{...n,platform:a})};function Dl(e){return yp(e)}function gn(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function yp(e){for(let t=e;t;t=gn(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=gn(e);t;t=gn(t)){if(!(t instanceof Element))continue;let o=getComputedStyle(t);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||t.tagName==="BODY"))return t}return null}async function $l(e,t,o){return Pl(e,t,{platform:{...zo,getOffsetParent:i=>zo.getOffsetParent(i,Dl)},middleware:[mn({crossAxis:!0}),yn({allowedPlacements:[o]})]})}var Zt=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},it=class extends po.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new po.Debouncer,this.revealDebouncer=new po.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Bl.html`
|
|
579
|
+
`;var vl=["top","right","bottom","left"],bl=["start","end"],dn=vl.reduce((t,e)=>t.concat(e,e+"-"+bl[0],e+"-"+bl[1]),[]),no=Math.min,Kt=Math.max,ao=Math.round;var Lt=t=>({x:t,y:t}),ep={left:"right",right:"left",bottom:"top",top:"bottom"},tp={start:"end",end:"start"};function pn(t,e,o){return Kt(t,no(e,o))}function Bo(t,e){return typeof t=="function"?t(e):t}function Ur(t){return t.split("-")[0]}function Zt(t){return t.split("-")[1]}function un(t){return t==="x"?"y":"x"}function fn(t){return t==="y"?"height":"width"}function Mo(t){return["top","bottom"].includes(Ur(t))?"y":"x"}function hn(t){return un(Mo(t))}function xl(t,e,o){o===void 0&&(o=!1);let i=Zt(t),n=hn(t),a=fn(n),s=n==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=cn(s)),[s,cn(s)]}function Sl(t){return t.replace(/start|end/g,e=>tp[e])}function cn(t){return t.replace(/left|right|bottom|top/g,e=>ep[e])}function rp(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ol(t){return typeof t!="number"?rp(t):{top:t,right:t,bottom:t,left:t}}function mr(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Cl(t,e,o){let{reference:i,floating:n}=t,a=Mo(e),s=hn(e),c=fn(s),u=Ur(e),p=a==="y",y=i.x+i.width/2-n.width/2,f=i.y+i.height/2-n.height/2,b=i[c]/2-n[c]/2,x;switch(u){case"top":x={x:y,y:i.y-n.height};break;case"bottom":x={x:y,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:f};break;case"left":x={x:i.x-n.width,y:f};break;default:x={x:i.x,y:i.y}}switch(Zt(e)){case"start":x[s]-=b*(o&&p?-1:1);break;case"end":x[s]+=b*(o&&p?-1:1);break}return x}var El=async(t,e,o)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:s}=o,c=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:y,y:f}=Cl(p,i,u),b=i,x={},S=0;for(let O=0;O<c.length;O++){let{name:N,fn:_}=c[O],{x:I,y:$,data:W,reset:z}=await _({x:y,y:f,initialPlacement:i,placement:b,strategy:n,middlewareData:x,rects:p,platform:s,elements:{reference:t,floating:e}});if(y=I??y,f=$??f,x={...x,[N]:{...x[N],...W}},z&&S<=50){S++,typeof z=="object"&&(z.placement&&(b=z.placement),z.rects&&(p=z.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):z.rects),{x:y,y:f}=Cl(p,b,u)),O=-1;continue}}return{x:y,y:f,placement:b,strategy:n,middlewareData:x}};async function yn(t,e){var o;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:s,elements:c,strategy:u}=t,{boundary:p="clippingAncestors",rootBoundary:y="viewport",elementContext:f="floating",altBoundary:b=!1,padding:x=0}=Bo(e,t),S=Ol(x),N=c[b?f==="floating"?"reference":"floating":f],_=mr(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(N)))==null||o?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:y,strategy:u})),I=f==="floating"?{...s.floating,x:i,y:n}:s.reference,$=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),W=await(a.isElement==null?void 0:a.isElement($))?await(a.getScale==null?void 0:a.getScale($))||{x:1,y:1}:{x:1,y:1},z=mr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:I,offsetParent:$,strategy:u}):I);return{top:(_.top-z.top+S.top)/W.y,bottom:(z.bottom-_.bottom+S.bottom)/W.y,left:(_.left-z.left+S.left)/W.x,right:(z.right-_.right+S.right)/W.x}}function op(t,e,o){return(t?[...o.filter(n=>Zt(n)===t),...o.filter(n=>Zt(n)!==t)]:o.filter(n=>Ur(n)===n)).filter(n=>t?Zt(n)===t||(e?Sl(n)!==n:!1):!0)}var mn=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:u,elements:p}=e,{crossAxis:y=!1,alignment:f,allowedPlacements:b=dn,autoAlignment:x=!0,...S}=Bo(t,e),O=f!==void 0||b===dn?op(f||null,x,b):b,N=await yn(e,S),_=((o=s.autoPlacement)==null?void 0:o.index)||0,I=O[_];if(I==null)return{};let $=xl(I,a,await(u.isRTL==null?void 0:u.isRTL(p.floating)));if(c!==I)return{reset:{placement:O[0]}};let W=[N[Ur(I)],N[$[0]],N[$[1]]],z=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:I,overflows:W}],Ge=O[_+1];if(Ge)return{data:{index:_+1,overflows:z},reset:{placement:Ge}};let vt=z.map(Re=>{let m=Zt(Re.placement);return[Re.placement,m&&y?Re.overflows.slice(0,2).reduce((v,k)=>v+k,0):Re.overflows[0],Re.overflows]}).sort((Re,m)=>Re[1]-m[1]),xt=((n=vt.filter(Re=>Re[2].slice(0,Zt(Re[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||vt[0][0];return xt!==c?{data:{index:_+1,overflows:z},reset:{placement:xt}}:{}}}};var gn=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:N=>{let{x:_,y:I}=N;return{x:_,y:I}}},...u}=Bo(t,e),p={x:o,y:i},y=await yn(e,u),f=Mo(Ur(n)),b=un(f),x=p[b],S=p[f];if(a){let N=b==="y"?"top":"left",_=b==="y"?"bottom":"right",I=x+y[N],$=x-y[_];x=pn(I,x,$)}if(s){let N=f==="y"?"top":"left",_=f==="y"?"bottom":"right",I=S+y[N],$=S-y[_];S=pn(I,S,$)}let O=c.fn({...e,[b]:x,[f]:S});return{...O,data:{x:O.x-o,y:O.y-i}}}}};function kt(t){return Al(t)?(t.nodeName||"").toLowerCase():"#document"}function Ke(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Pt(t){var e;return(e=(Al(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Al(t){return t instanceof Node||t instanceof Ke(t).Node}function Ct(t){return t instanceof Element||t instanceof Ke(t).Element}function ut(t){return t instanceof HTMLElement||t instanceof Ke(t).HTMLElement}function wl(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ke(t).ShadowRoot}function Fr(t){let{overflow:e,overflowX:o,overflowY:i,display:n}=rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function Rl(t){return["table","td","th"].includes(kt(t))}function Fo(t){let e=Wo(),o=rt(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 _l(t){let e=gr(t);for(;ut(e)&&!so(e);){if(Fo(e))return e;e=gr(e)}return null}function Wo(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function so(t){return["html","body","#document"].includes(kt(t))}function rt(t){return Ke(t).getComputedStyle(t)}function lo(t){return Ct(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function gr(t){if(kt(t)==="html")return t;let e=t.assignedSlot||t.parentNode||wl(t)&&t.host||Pt(t);return wl(e)?e.host:e}function Tl(t){let e=gr(t);return so(e)?t.ownerDocument?t.ownerDocument.body:t.body:ut(e)&&Fr(e)?e:Tl(e)}function Uo(t,e,o){var i;e===void 0&&(e=[]),o===void 0&&(o=!0);let n=Tl(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),s=Ke(n);return a?e.concat(s,s.visualViewport||[],Fr(n)?n:[],s.frameElement&&o?Uo(s.frameElement):[]):e.concat(n,Uo(n,[],o))}function Ll(t){let e=rt(t),o=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=ut(t),a=n?t.offsetWidth:o,s=n?t.offsetHeight:i,c=ao(o)!==a||ao(i)!==s;return c&&(o=a,i=s),{width:o,height:i,$:c}}function kl(t){return Ct(t)?t:t.contextElement}function Wr(t){let e=kl(t);if(!ut(e))return Lt(1);let o=e.getBoundingClientRect(),{width:i,height:n,$:a}=Ll(e),s=(a?ao(o.width):o.width)/i,c=(a?ao(o.height):o.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var sp=Lt(0);function Pl(t){let e=Ke(t);return!Wo()||!e.visualViewport?sp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function lp(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Ke(t)?!1:e}function co(t,e,o,i){e===void 0&&(e=!1),o===void 0&&(o=!1);let n=t.getBoundingClientRect(),a=kl(t),s=Lt(1);e&&(i?Ct(i)&&(s=Wr(i)):s=Wr(t));let c=lp(a,o,i)?Pl(a):Lt(0),u=(n.left+c.x)/s.x,p=(n.top+c.y)/s.y,y=n.width/s.x,f=n.height/s.y;if(a){let b=Ke(a),x=i&&Ct(i)?Ke(i):i,S=b.frameElement;for(;S&&i&&x!==b;){let O=Wr(S),N=S.getBoundingClientRect(),_=rt(S),I=N.left+(S.clientLeft+parseFloat(_.paddingLeft))*O.x,$=N.top+(S.clientTop+parseFloat(_.paddingTop))*O.y;u*=O.x,p*=O.y,y*=O.x,f*=O.y,u+=I,p+=$,S=Ke(S).frameElement}}return mr({width:y,height:f,x:u,y:p})}function cp(t){let{rect:e,offsetParent:o,strategy:i}=t,n=ut(o),a=Pt(o);if(o===a)return e;let s={scrollLeft:0,scrollTop:0},c=Lt(1),u=Lt(0);if((n||!n&&i!=="fixed")&&((kt(o)!=="body"||Fr(a))&&(s=lo(o)),ut(o))){let p=co(o);c=Wr(o),u.x=p.x+o.clientLeft,u.y=p.y+o.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+u.x,y:e.y*c.y-s.scrollTop*c.y+u.y}}function dp(t){return Array.from(t.getClientRects())}function Dl(t){return co(Pt(t)).left+lo(t).scrollLeft}function pp(t){let e=Pt(t),o=lo(t),i=t.ownerDocument.body,n=Kt(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=Kt(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),s=-o.scrollLeft+Dl(t),c=-o.scrollTop;return rt(i).direction==="rtl"&&(s+=Kt(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:s,y:c}}function up(t,e){let o=Ke(t),i=Pt(t),n=o.visualViewport,a=i.clientWidth,s=i.clientHeight,c=0,u=0;if(n){a=n.width,s=n.height;let p=Wo();(!p||p&&e==="fixed")&&(c=n.offsetLeft,u=n.offsetTop)}return{width:a,height:s,x:c,y:u}}function fp(t,e){let o=co(t,!0,e==="fixed"),i=o.top+t.clientTop,n=o.left+t.clientLeft,a=ut(t)?Wr(t):Lt(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,u=n*a.x,p=i*a.y;return{width:s,height:c,x:u,y:p}}function Il(t,e,o){let i;if(e==="viewport")i=up(t,o);else if(e==="document")i=pp(Pt(t));else if(Ct(e))i=fp(e,o);else{let n=Pl(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return mr(i)}function $l(t,e){let o=gr(t);return o===e||!Ct(o)||so(o)?!1:rt(o).position==="fixed"||$l(o,e)}function hp(t,e){let o=e.get(t);if(o)return o;let i=Uo(t,[],!1).filter(c=>Ct(c)&&kt(c)!=="body"),n=null,a=rt(t).position==="fixed",s=a?gr(t):t;for(;Ct(s)&&!so(s);){let c=rt(s),u=Fo(s);!u&&c.position==="fixed"&&(n=null),(a?!u&&!n:!u&&c.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Fr(s)&&!u&&$l(t,s))?i=i.filter(y=>y!==s):n=c,s=gr(s)}return e.set(t,i),i}function yp(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t,s=[...o==="clippingAncestors"?hp(e,this._c):[].concat(o),i],c=s[0],u=s.reduce((p,y)=>{let f=Il(e,y,n);return p.top=Kt(f.top,p.top),p.right=no(f.right,p.right),p.bottom=no(f.bottom,p.bottom),p.left=Kt(f.left,p.left),p},Il(e,c,n));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function mp(t){return Ll(t)}function gp(t,e,o){let i=ut(e),n=Pt(e),a=o==="fixed",s=co(t,!0,a,e),c={scrollLeft:0,scrollTop:0},u=Lt(0);if(i||!i&&!a)if((kt(e)!=="body"||Fr(n))&&(c=lo(e)),i){let p=co(e,!0,a,e);u.x=p.x+e.clientLeft,u.y=p.y+e.clientTop}else n&&(u.x=Dl(n));return{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function Nl(t,e){return!ut(t)||rt(t).position==="fixed"?null:e?e(t):t.offsetParent}function Bl(t,e){let o=Ke(t);if(!ut(t))return o;let i=Nl(t,e);for(;i&&Rl(i)&&rt(i).position==="static";)i=Nl(i,e);return i&&(kt(i)==="html"||kt(i)==="body"&&rt(i).position==="static"&&!Fo(i))?o:i||_l(t)||o}var bp=async function(t){let{reference:e,floating:o,strategy:i}=t,n=this.getOffsetParent||Bl,a=this.getDimensions;return{reference:gp(e,await n(o),i),floating:{x:0,y:0,...await a(o)}}};function vp(t){return rt(t).direction==="rtl"}var zo={convertOffsetParentRelativeRectToViewportRelativeRect:cp,getDocumentElement:Pt,getClippingRect:yp,getOffsetParent:Bl,getElementRects:bp,getClientRects:dp,getDimensions:mp,getScale:Wr,isElement:Ct,isRTL:vp};var Ml=(t,e,o)=>{let i=new Map,n={platform:zo,...o},a={...n.platform,_c:i};return El(t,e,{...n,platform:a})};function Ul(t){return xp(t)}function bn(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function xp(t){for(let e=t;e;e=bn(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=bn(t);e;e=bn(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 Fl(t,e,o){return Ml(t,e,{platform:{...zo,getOffsetParent:i=>zo.getOffsetParent(i,Ul)},middleware:[gn({crossAxis:!0}),mn({allowedPlacements:[o]})]})}var Ze=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},ie=class extends po.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new po.Debouncer,this.revealDebouncer=new po.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Wl.html`
|
|
580
580
|
<div part="container"
|
|
581
581
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
582
582
|
@mouseenter=${this.onHover}
|
|
@@ -594,12 +594,12 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
594
594
|
</div>
|
|
595
595
|
</div>
|
|
596
596
|
</div>
|
|
597
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(o=>t.has(o))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",$l(this.slottedElement,this.tooltip,this.position).then(({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}};it.elementDefinitions={"ft-typography":ft};it.styles=fl;Zt([(0,Ot.property)()],it.prototype,"text",void 0);Zt([(0,Ot.property)({type:Boolean})],it.prototype,"manual",void 0);Zt([(0,Ot.property)({type:Boolean})],it.prototype,"inline",void 0);Zt([(0,Ot.property)({type:Number})],it.prototype,"delay",void 0);Zt([(0,Ot.property)()],it.prototype,"position",void 0);Zt([(0,Ot.queryAssignedNodes)()],it.prototype,"slotNodes",void 0);Zt([(0,Ot.query)(".ft-tooltip--container")],it.prototype,"container",void 0);Zt([(0,Ot.query)(".ft-tooltip")],it.prototype,"tooltip",void 0);Zt([(0,Ot.query)(".ft-tooltip--content")],it.prototype,"tooltipContent",void 0);Zt([(0,Ot.state)()],it.prototype,"visible",void 0);Zt([(0,Ot.eventOptions)({passive:!0})],it.prototype,"onTouch",null);Zt([(0,Ot.eventOptions)({passive:!0})],it.prototype,"onHover",null);Zt([(0,Ot.eventOptions)({passive:!0})],it.prototype,"onOut",null);Zt([(0,Ot.eventOptions)({passive:!0})],it.prototype,"onClick",null);(0,Ml.customElement)("ft-tooltip")(it);var Hl=g(R());var uo=g(B()),vr=g(q()),Wl=g(R()),zl=g(Ul());var br;(function(e){e.ADD_TO_PBK="",e.ALERT="",e.ADD_ALERT="",e.BACK_TO_SEARCH="",e.ADD_BOOKMARK="",e.BOOKMARK="",e.BOOKS="",e.MENU="",e.DOWNLOAD="",e.EDIT="",e.FEEDBACK="",e.HOME="",e.MODIFY_PBK="",e.SCHEDULED="",e.SEARCH="",e.EXPORT="",e.TOC="",e.WRITE_UGC="",e.TRASH="",e.USER="",e.EXTLINK="",e.CALENDAR="",e.OFFLINE="",e.BOOK="",e.DOWNLOAD_PLAIN="",e.CHECK="",e.STAR_PLAIN="",e.TOPICS="",e.DISC="",e.CIRCLE="",e.SHARED="",e.SORT_UNSORTED="",e.SORT_UP="",e.SORT_DOWN="",e.WORKING="",e.CLOSE="",e.ZOOM_OUT="",e.ZOOM_IN="",e.ZOOM_REALSIZE="",e.ZOOM_FULLSCREEN="",e.ADMIN_RESTRICTED="",e.ADMIN="",e.ADMIN_KHUB="",e.ADMIN_THEME="",e.ADMIN_USERS="",e.WARNING="",e.CONTEXT="",e.SEARCH_HOME="",e.STEPS="",e.ICON_EXPAND="",e.ICON_COLLAPSE="",e.INFO="",e.MINUS_PLAIN="",e.PLUS_PLAIN="",e.FACET_HAS_DESCENDANT="",e.TRIANGLE_BOTTOM="",e.TRIANGLE_LEFT="",e.TRIANGLE_RIGHT="",e.TRIANGLE_TOP="",e.THIN_ARROW="",e.SIGN_IN="",e.LOGOUT="",e.TRANSLATE="",e.CLOSE_PLAIN="",e.CHECK_PLAIN="",e.ARTICLE="",e.COLUMNS="",e.ANALYTICS="",e.COLLECTIONS="",e.ARROW_DOWN="",e.ARROW_LEFT="",e.ARROW_RIGHT="",e.ARROW_UP="",e.SEARCH_IN_PUBLICATION="",e.COPY_TO_CLIPBOARD="",e.SHARED_PBK="",e.ATTACHMENTS="",e.STRIPE_ARROW_LEFT="",e.STRIPE_ARROW_RIGHT="",e.FILTERS="",e.DOT="",e.MINUS="",e.PLUS="",e.MAILS_AND_NOTIFICATIONS="",e.SAVE="",e.LOCKER="",e.ADMIN_INTEGRATION="",e.SYNC="",e.TAG="",e.BOOK_PLAIN="",e.UPLOAD="",e.ONLINE="",e.TAG_PLAIN="",e.ACCOUNT_SETTINGS="",e.PRINT="",e.DEFAULT_ROLES="",e.SHORTCUT_MENU="",e.RELATIVES_PLAIN="",e.RELATIVES="",e.PAUSE="",e.PLAY="",e.ADMIN_PORTAL="",e.STAR="",e.THUMBS_DOWN="",e.THUMBS_DOWN_PLAIN="",e.THUMBS_UP="",e.THUMBS_UP_PLAIN="",e.FEEDBACK_PLAIN="",e.RATE_PLAIN="",e.RATE="",e.OFFLINE_SETTINGS="",e.MY_COLLECTIONS="",e.THIN_ARROW_LEFT="",e.THIN_ARROW_RIGHT="",e.RESET="",e.MY_LIBRARY="",e.UNSTRUCTURED_DOC="",e.CONTEXTUAL="",e.THIN_ARROW_UP="",e.ARROW_RIGHT_TO_LINE="",e.DESKTOP="",e.TABLET_LANDSCAPE="",e.TABLET_PORTRAIT="",e.MOBILE_LANDSCAPE="",e.MOBILE_PORTRAIT="",e.DIAGRAM_SUNBURST="",e.DIAGRAM_SANKEY="",e.COMMENT_QUESTION="",e.COMMENT_QUESTION_PLAIN="",e.MESSAGE_BOT="",e.CHART_SIMPLE="",e.BARS_PROGRESS="",e.BOOK_OPEN_GEAR="",e.BOOK_OPEN_GEAR_SLASH="",e.LINE_CHART="",e.STACKED_CHART="",e.CHART_BAR_STACKED="",e.CHART_BAR_GROUPED="",e.EYE_SLASH="",e.X_MARK="",e.EXPAND_WIDE="",e.PIP="",e.PIP_WIDE="",e.LIFE_RING="",e.GLOBE="",e.PIGGY_BANK="",e.EXTLINK_LIGHT="",e.CLONE="",e.CLONE_LINK_SIMPLE="",e.CHART_BAR_NORMALIZED="",e.CONSUMER="",e.OCTAGON_XMARK="",e.HOURGLASS_HALF="",e.CLOCK="",e.CLOCK_THREE="",e.CALENDAR_DAY="",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="",e.WAND_MAGIC_SPARKLES="",e.PAPER_PLANE="",e.CIRCLE_STOP="",e.ARROW_ROTATE_RIGHT="",e.ARROWS_ROTATE="",e.ALIGN_RIGHT="",e.FORMAT_CLEAR="",e.ALIGN_CENTER="",e.ALIGN_LEFT="",e.PALETTE="",e.BOLD="",e.ITALIC="",e.UNDERLINE="",e.STRIKETHROUGH="",e.LINK_SIMPLE_SLASH="",e.LINK_SIMPLE="",e.ROUTE="",e.CIRCLE_USER_SLASH="",e.CIRCLE_USER_CHECK="",e.LIST_MAGNIFYING_GLASS="",e.MEDAL="",e.THUMBS_UP_THUMBS_DOWN_SOLID="",e.ARROW_TURN_DOWN_RIGHT="",e.FLASK="",e.LOCK_KEYHOLE_OPEN_SOLID="",e.HOURGLASS_END="",e.CIRCLE_QUESTION="",e.GRIP_LINES_SOLID="",e.TRANSLATE_SPARKLE_SOLID="",e.CODE="",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",e.PAPER_PLANE_SLASH="",e.COMPRESS="",e.EXPAND="",e.ARROW_ROTATE_LEFT="",e.EYE="",e.SHARE="󨃱"})(br||(br={}));var E;(function(e){e.UNKNOWN="",e.ABW="",e.AUDIO="",e.AVI="",e.CHM="",e.CODE="",e.CSV="",e.DITA="",e.EPUB="",e.EXCEL="",e.FLAC="",e.GIF="",e.GZIP="",e.HTML="",e.IMAGE="",e.JPEG="",e.JSON="",e.M4A="",e.MOV="",e.MP3="",e.MP4="",e.OGG="",e.PDF="",e.PNG="",e.POWERPOINT="",e.RAR="",e.STP="",e.TEXT="",e.VIDEO="",e.WAV="",e.WMA="",e.WORD="",e.XML="",e.YAML="",e.ZIP=""})(E||(E={}));var Jg=new Map([...["abw"].map(e=>[e,E.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(e=>[e,E.AUDIO]),...["avi"].map(e=>[e,E.AVI]),...["chm","xhs"].map(e=>[e,E.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(e=>[e,E.CODE]),...["csv"].map(e=>[e,E.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,E.DITA]),...["epub"].map(e=>[e,E.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,E.EXCEL]),...["flac"].map(e=>[e,E.FLAC]),...["gif"].map(e=>[e,E.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,E.GZIP]),...["html","htm","xhtml"].map(e=>[e,E.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(e=>[e,E.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,E.JPEG]),...["json"].map(e=>[e,E.JSON]),...["m4a","m4p"].map(e=>[e,E.M4A]),...["mov","qt"].map(e=>[e,E.MOV]),...["mp3"].map(e=>[e,E.MP3]),...["mp4","m4v"].map(e=>[e,E.MP4]),...["ogg","oga"].map(e=>[e,E.OGG]),...["pdf","ps"].map(e=>[e,E.PDF]),...["png"].map(e=>[e,E.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,E.POWERPOINT]),...["rar"].map(e=>[e,E.RAR]),...["stp"].map(e=>[e,E.STP]),...["txt","rtf","md","mdown"].map(e=>[e,E.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(e=>[e,E.VIDEO]),...["wav"].map(e=>[e,E.WAV]),...["wma"].map(e=>[e,E.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,E.WORD]),...["xml","xsl","rdf"].map(e=>[e,E.XML]),...["yaml","yml","x-yaml"].map(e=>[e,E.YAML]),...["zip"].map(e=>[e,E.ZIP])]);var tb={[E.ABW]:"#91ABC6",[E.AUDIO]:"#1795E3",[E.AVI]:"#E63324",[E.CHM]:"#71C3EB",[E.CODE]:"#71C3EB",[E.CSV]:"#1F7345",[E.DITA]:"#71C3EB",[E.EPUB]:"#85B926",[E.EXCEL]:"#1F7345",[E.FLAC]:"#1795E3",[E.GIF]:"#59B031",[E.GZIP]:"#F8AB36",[E.HTML]:"#71C3EB",[E.IMAGE]:"#59B031",[E.JPEG]:"#59B031",[E.JSON]:"#71C3EB",[E.M4A]:"#1795E3",[E.MOV]:"#E63324",[E.MP3]:"#1795E3",[E.MP4]:"#E63324",[E.OGG]:"#1795E3",[E.PDF]:"#E44948",[E.PNG]:"#59B031",[E.POWERPOINT]:"#B54A2B",[E.RAR]:"#F8AB36",[E.STP]:"#3764B1",[E.TEXT]:"#3162AB",[E.UNKNOWN]:"#999999",[E.VIDEO]:"#E63324",[E.WAV]:"#1795E3",[E.WMA]:"#1795E3",[E.WORD]:"#3162AB",[E.XML]:"#71C3EB",[E.YAML]:"#71C3EB",[E.ZIP]:"#F8AB36"};var Pt;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(Pt||(Pt={}));var Ho=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},xt=class extends Wl.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=uo.nothing}render(){let t=this.variant&&Object.values(Pt).includes(this.variant)?this.variant:Pt.fluid_topics,o=t!==Pt.material||!!this.value;return uo.html`
|
|
598
|
-
<i class="ft-icon ft-icon--${
|
|
599
|
-
${(0,
|
|
597
|
+
`}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()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(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="",Fl(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 var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};ie.elementDefinitions={"ft-typography":fe};ie.styles=gl;Ze([(0,Oe.property)()],ie.prototype,"text",void 0);Ze([(0,Oe.property)({type:Boolean})],ie.prototype,"manual",void 0);Ze([(0,Oe.property)({type:Boolean})],ie.prototype,"inline",void 0);Ze([(0,Oe.property)({type:Number})],ie.prototype,"delay",void 0);Ze([(0,Oe.property)()],ie.prototype,"position",void 0);Ze([(0,Oe.queryAssignedNodes)()],ie.prototype,"slotNodes",void 0);Ze([(0,Oe.query)(".ft-tooltip--container")],ie.prototype,"container",void 0);Ze([(0,Oe.query)(".ft-tooltip")],ie.prototype,"tooltip",void 0);Ze([(0,Oe.query)(".ft-tooltip--content")],ie.prototype,"tooltipContent",void 0);Ze([(0,Oe.state)()],ie.prototype,"visible",void 0);Ze([(0,Oe.eventOptions)({passive:!0})],ie.prototype,"onTouch",null);Ze([(0,Oe.eventOptions)({passive:!0})],ie.prototype,"onHover",null);Ze([(0,Oe.eventOptions)({passive:!0})],ie.prototype,"onOut",null);Ze([(0,Oe.eventOptions)({passive:!0})],ie.prototype,"onClick",null);(0,zl.customElement)("ft-tooltip")(ie);var Kl=g(R());var uo=g(M()),vr=g(q()),Gl=g(R()),jl=g(Vl());var br;(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="󨃱"})(br||(br={}));var w;(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=""})(w||(w={}));var ob=new Map([...["abw"].map(t=>[t,w.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,w.AUDIO]),...["avi"].map(t=>[t,w.AVI]),...["chm","xhs"].map(t=>[t,w.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,w.CODE]),...["csv"].map(t=>[t,w.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,w.DITA]),...["epub"].map(t=>[t,w.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,w.EXCEL]),...["flac"].map(t=>[t,w.FLAC]),...["gif"].map(t=>[t,w.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,w.GZIP]),...["html","htm","xhtml"].map(t=>[t,w.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,w.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,w.JPEG]),...["json"].map(t=>[t,w.JSON]),...["m4a","m4p"].map(t=>[t,w.M4A]),...["mov","qt"].map(t=>[t,w.MOV]),...["mp3"].map(t=>[t,w.MP3]),...["mp4","m4v"].map(t=>[t,w.MP4]),...["ogg","oga"].map(t=>[t,w.OGG]),...["pdf","ps"].map(t=>[t,w.PDF]),...["png"].map(t=>[t,w.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,w.POWERPOINT]),...["rar"].map(t=>[t,w.RAR]),...["stp"].map(t=>[t,w.STP]),...["txt","rtf","md","mdown"].map(t=>[t,w.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,w.VIDEO]),...["wav"].map(t=>[t,w.WAV]),...["wma"].map(t=>[t,w.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,w.WORD]),...["xml","xsl","rdf"].map(t=>[t,w.XML]),...["yaml","yml","x-yaml"].map(t=>[t,w.YAML]),...["zip"].map(t=>[t,w.ZIP])]);var ib={[w.ABW]:"#91ABC6",[w.AUDIO]:"#1795E3",[w.AVI]:"#E63324",[w.CHM]:"#71C3EB",[w.CODE]:"#71C3EB",[w.CSV]:"#1F7345",[w.DITA]:"#71C3EB",[w.EPUB]:"#85B926",[w.EXCEL]:"#1F7345",[w.FLAC]:"#1795E3",[w.GIF]:"#59B031",[w.GZIP]:"#F8AB36",[w.HTML]:"#71C3EB",[w.IMAGE]:"#59B031",[w.JPEG]:"#59B031",[w.JSON]:"#71C3EB",[w.M4A]:"#1795E3",[w.MOV]:"#E63324",[w.MP3]:"#1795E3",[w.MP4]:"#E63324",[w.OGG]:"#1795E3",[w.PDF]:"#E44948",[w.PNG]:"#59B031",[w.POWERPOINT]:"#B54A2B",[w.RAR]:"#F8AB36",[w.STP]:"#3764B1",[w.TEXT]:"#3162AB",[w.UNKNOWN]:"#999999",[w.VIDEO]:"#E63324",[w.WAV]:"#1795E3",[w.WMA]:"#1795E3",[w.WORD]:"#3162AB",[w.XML]:"#71C3EB",[w.YAML]:"#71C3EB",[w.ZIP]:"#F8AB36"};var De;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(De||(De={}));var Ho=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},xe=class extends Gl.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=uo.nothing}render(){let e=this.variant&&Object.values(De).includes(this.variant)?this.variant:De.fluid_topics,o=e!==De.material||!!this.value;return uo.html`
|
|
598
|
+
<i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
|
|
599
|
+
${(0,jl.unsafeHTML)(this.resolvedIcon)}
|
|
600
600
|
<slot ?hidden=${o}></slot>
|
|
601
601
|
</i>
|
|
602
|
-
`}get textContent(){var
|
|
602
|
+
`}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let i=this.value||this.textContent;switch(this.variant){case De.file_format:this.resolvedIcon=(e=w[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case De.material:this.resolvedIcon=this.value||uo.nothing;break;default:this.resolvedIcon=(o=br[i.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};xe.elementDefinitions={};xe.styles=fs;Ho([(0,vr.property)()],xe.prototype,"variant",void 0);Ho([(0,vr.property)()],xe.prototype,"value",void 0);Ho([(0,vr.state)()],xe.prototype,"resolvedIcon",void 0);Ho([(0,vr.query)("slot")],xe.prototype,"slottedContent",void 0);(0,Kl.customElement)("ft-icon")(xe);var Zl=g(M()),ze=g(R());var Ce={borderRadiusLeft:ze.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",ze.designSystemVariables.borderRadiusL),borderRadiusRight:ze.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",ze.designSystemVariables.borderRadiusL),borderWidthLeft:ze.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:ze.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:ze.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},ql=Zl.css`
|
|
603
603
|
.ft-switch-option {
|
|
604
604
|
position: relative;
|
|
605
605
|
display: inline-block;
|
|
@@ -613,20 +613,20 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
.ft-switch-option--content {
|
|
616
|
-
--ft-switch-option-internal-line-height: calc(${
|
|
617
|
-
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${
|
|
616
|
+
--ft-switch-option-internal-line-height: calc(${ce.fontSize} + 2px);
|
|
617
|
+
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${ce.iconSize});
|
|
618
618
|
|
|
619
619
|
border-style: solid;
|
|
620
|
-
border-color: ${
|
|
621
|
-
border-width: ${
|
|
622
|
-
border-radius: ${
|
|
620
|
+
border-color: ${ce.borderColor};
|
|
621
|
+
border-width: ${Ce.borderWidthVertical} ${Ce.borderWidthRight} ${Ce.borderWidthVertical} ${Ce.borderWidthLeft};
|
|
622
|
+
border-radius: ${Ce.borderRadiusLeft} ${Ce.borderRadiusRight} ${Ce.borderRadiusRight} ${Ce.borderRadiusLeft};
|
|
623
623
|
display: flex;
|
|
624
624
|
align-items: center;
|
|
625
625
|
justify-content: center;
|
|
626
626
|
overflow: hidden;
|
|
627
|
-
${(0,
|
|
627
|
+
${(0,ze.setVariable)(Se.size,ce.iconSize)};
|
|
628
628
|
padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
|
|
629
|
-
background-color: ${
|
|
629
|
+
background-color: ${ce.backgroundColor};
|
|
630
630
|
-webkit-mask-image: radial-gradient(white, black);
|
|
631
631
|
}
|
|
632
632
|
|
|
@@ -635,32 +635,32 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
635
635
|
}
|
|
636
636
|
|
|
637
637
|
.ft-switch-option--selected .ft-switch-option--content:before {
|
|
638
|
-
background-color: ${
|
|
639
|
-
border-radius: ${
|
|
638
|
+
background-color: ${ce.selectedBackgroundColor};
|
|
639
|
+
border-radius: ${Ce.borderRadiusLeft} ${Ce.borderRadiusRight} ${Ce.borderRadiusRight} ${Ce.borderRadiusLeft};
|
|
640
640
|
position: absolute;
|
|
641
641
|
inset: 0;
|
|
642
642
|
content: "";
|
|
643
643
|
z-index: 1;
|
|
644
|
-
opacity: ${
|
|
644
|
+
opacity: ${ze.designSystemVariables.opacityPrimaryOnSurfaceSelected};
|
|
645
645
|
}
|
|
646
646
|
|
|
647
647
|
.ft-switch-option--label {
|
|
648
|
-
color: ${
|
|
648
|
+
color: ${ce.textColor};
|
|
649
649
|
overflow: hidden;
|
|
650
650
|
white-space: nowrap;
|
|
651
651
|
text-overflow: ellipsis;
|
|
652
652
|
display: block;
|
|
653
653
|
margin: 0 8px;
|
|
654
|
-
${(0,
|
|
655
|
-
${(0,
|
|
654
|
+
${(0,ze.setVariable)(We.fontSize,ce.fontSize)};
|
|
655
|
+
${(0,ze.setVariable)(We.lineHeight,"var(--ft-switch-option-internal-content-height)")}
|
|
656
656
|
}
|
|
657
657
|
|
|
658
658
|
.ft-switch-option--selected .ft-switch-option--label {
|
|
659
|
-
color: ${
|
|
659
|
+
color: ${ce.selectedTextColor};
|
|
660
660
|
}
|
|
661
661
|
|
|
662
662
|
.ft-switch-option--focused {
|
|
663
|
-
outline: 1px solid ${
|
|
663
|
+
outline: 1px solid ${ce.outlineColor};
|
|
664
664
|
}
|
|
665
665
|
|
|
666
666
|
.ft-switch-option--label[hidden] {
|
|
@@ -668,7 +668,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
668
668
|
}
|
|
669
669
|
|
|
670
670
|
.ft-switch-option--ripple {
|
|
671
|
-
${(0,
|
|
671
|
+
${(0,ze.setVariable)(E.color,ce.rippleColor)};
|
|
672
672
|
}
|
|
673
673
|
|
|
674
674
|
ft-icon, ft-ripple, ft-typography {
|
|
@@ -681,14 +681,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
681
681
|
|
|
682
682
|
ft-icon {
|
|
683
683
|
flex-shrink: 0;
|
|
684
|
-
color: ${
|
|
684
|
+
color: ${ce.iconColor};
|
|
685
685
|
}
|
|
686
686
|
|
|
687
687
|
.ft-switch-option--selected ft-icon {
|
|
688
|
-
color: ${
|
|
688
|
+
color: ${ce.selectedTextColor};
|
|
689
689
|
}
|
|
690
|
-
`;var
|
|
691
|
-
<label part="label" for="input" class=${(0,
|
|
690
|
+
`;var ft=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},vn=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},xn=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},he=class extends Hr.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new xn(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(zr.html`
|
|
691
|
+
<label part="label" for="input" class=${(0,Yl.classMap)(e)}
|
|
692
692
|
@click=${this.onChange}>
|
|
693
693
|
<div class="ft-switch-option--content">
|
|
694
694
|
<ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
|
|
@@ -703,29 +703,29 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
703
703
|
</label>
|
|
704
704
|
<input id="input" type="radio" class="ft-switch-option--input"
|
|
705
705
|
.checked=${this.selected}>
|
|
706
|
-
`)}addTooltip(
|
|
706
|
+
`)}addTooltip(e){return this.hasTextContent()||this.getLabel().trim().length===0?e:zr.html`
|
|
707
707
|
<ft-tooltip part="tooltip"
|
|
708
708
|
text="${this.getLabel()}"
|
|
709
709
|
position="${this.tooltipPosition}">
|
|
710
|
-
${
|
|
710
|
+
${e}
|
|
711
711
|
</ft-tooltip>
|
|
712
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(
|
|
712
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(e){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new vn(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?zr.html`
|
|
713
713
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
714
|
-
`:zr.nothing}get textContent(){var
|
|
715
|
-
<div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,
|
|
714
|
+
`:zr.nothing}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&o!==void 0?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};he.elementDefinitions={"ft-ripple":j,"ft-typography":fe,"ft-tooltip":ie,"ft-icon":xe};he.styles=[Hr.safariEllipsisFix,ql];ft([(0,qe.property)()],he.prototype,"value",void 0);ft([(0,qe.property)()],he.prototype,"icon",void 0);ft([(0,qe.property)()],he.prototype,"iconVariant",void 0);ft([(0,qe.property)()],he.prototype,"label",void 0);ft([(0,qe.property)()],he.prototype,"tooltipPosition",void 0);ft([(0,qe.property)({type:Boolean,reflect:!0})],he.prototype,"selected",void 0);ft([(0,qe.property)({type:Boolean})],he.prototype,"trailingIcon",void 0);ft([(0,qe.property)({type:Boolean})],he.prototype,"unselectable",void 0);ft([(0,qe.query)(".ft-switch-option--content slot")],he.prototype,"slottedContent",void 0);ft([(0,qe.query)(".ft-switch-option--input")],he.prototype,"input",void 0);ft([(0,qe.state)()],he.prototype,"isFocused",void 0);var xr=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},Sn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},He=class extends Dt.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(o=>o.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return Vo.html`
|
|
715
|
+
<div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,Xl.classMap)(e)}" role="radiogroup" aria-label=${this.label}>
|
|
716
716
|
<slot @slotchange=${this.onSlotchange}
|
|
717
717
|
@option-change=${this.onOptionChangeByScript}
|
|
718
718
|
@option-change-by-user=${this.onOptionChangeByUser}
|
|
719
719
|
></slot>
|
|
720
720
|
</div>
|
|
721
|
-
`}onKeyDown(
|
|
721
|
+
`}onKeyDown(e){let o;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(o=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(o=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.code=="Space"&&(o=this.options.indexOf(e.target)),o!=null&&(e.preventDefault(),this.options[this.fixIndex(o)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(o)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(o=>{o instanceof he&&this.registerOption(o)}),this.selectedOption=this.options.find(o=>o.selected)}registerOption(e){var o;(o=e.shadowRoot)===null||o===void 0||o.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let o=e.target;this.onOptionChange(o)}onOptionChangeByUser(e){var o;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new Sn((o=this.selectedOption)===null||o===void 0?void 0:o.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(o=>o.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(o=>o.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};He.elementDefinitions={};He.styles=Vo.css`
|
|
722
722
|
:host {
|
|
723
723
|
display: inline-block;
|
|
724
724
|
}
|
|
725
725
|
|
|
726
726
|
.ft-switch {
|
|
727
|
-
border-radius: ${
|
|
728
|
-
outline-color: ${
|
|
727
|
+
border-radius: ${ce.borderRadius};
|
|
728
|
+
outline-color: ${ce.outlineColor};
|
|
729
729
|
}
|
|
730
730
|
|
|
731
731
|
.ft-switch slot {
|
|
@@ -734,25 +734,25 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
734
734
|
}
|
|
735
735
|
|
|
736
736
|
.ft-switch slot::slotted(ft-switch-option) {
|
|
737
|
-
${(0,
|
|
738
|
-
${(0,
|
|
739
|
-
${(0,
|
|
737
|
+
${(0,Dt.setVariable)(Ce.borderRadiusLeft,"0")};
|
|
738
|
+
${(0,Dt.setVariable)(Ce.borderRadiusRight,"0")};
|
|
739
|
+
${(0,Dt.setVariable)(Ce.borderWidthLeft,"0")};
|
|
740
740
|
}
|
|
741
741
|
|
|
742
742
|
.ft-switch slot::slotted(ft-switch-option:first-child) {
|
|
743
|
-
${(0,
|
|
744
|
-
${(0,
|
|
743
|
+
${(0,Dt.setVariable)(Ce.borderRadiusLeft,ce.borderRadius)};
|
|
744
|
+
${(0,Dt.setVariable)(Ce.borderWidthLeft,"1px")};
|
|
745
745
|
}
|
|
746
746
|
|
|
747
747
|
.ft-switch slot::slotted(ft-switch-option:last-child) {
|
|
748
|
-
${(0,
|
|
748
|
+
${(0,Dt.setVariable)(Ce.borderRadiusRight,ce.borderRadius)};
|
|
749
749
|
}
|
|
750
750
|
|
|
751
751
|
.ft-switch--dense slot::slotted(ft-switch-option) {
|
|
752
752
|
--ft-switch-internal-vertical-padding: 2px;
|
|
753
753
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
754
754
|
}
|
|
755
|
-
`;xr([(0,
|
|
755
|
+
`;xr([(0,Et.property)({type:Boolean})],He.prototype,"dense",void 0);xr([(0,Et.property)({type:Boolean})],He.prototype,"unselectable",void 0);xr([(0,Et.property)()],He.prototype,"label",void 0);xr([(0,Et.query)(".ft-switch slot")],He.prototype,"slottedContent",void 0);xr([(0,Et.state)()],He.prototype,"selectedOption",void 0);xr([(0,Et.state)()],He.prototype,"displayFocusWhenUsingKeyboard",void 0);xr([(0,Et.query)(".ft-switch")],He.prototype,"ftSwitchDiv",void 0);(0,On.customElement)("ft-switch")(He);(0,On.customElement)("ft-switch-option")(he);var dc=g(R());var Zo=g(M()),lt=g(q()),cc=g(It()),qo=g(R());var tc=g(R());var jo=g(M()),st=g(q()),Ko=g(R());var Jl=g(M()),Vr=g(R()),Ql={colorOutline:Vr.FtCssVariableFactory.external(Vr.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:Vr.FtCssVariableFactory.external(Vr.designSystemVariables.colorOnSurfaceMedium,"Design system")},ec=Jl.css`
|
|
756
756
|
:host {
|
|
757
757
|
display: block;
|
|
758
758
|
}
|
|
@@ -763,25 +763,29 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
763
763
|
|
|
764
764
|
ft-icon {
|
|
765
765
|
transform: rotate(-45deg);
|
|
766
|
-
color: ${
|
|
766
|
+
color: ${Ql.colorOutline};
|
|
767
767
|
}
|
|
768
768
|
|
|
769
769
|
.ft-resizer--dragging ft-icon,
|
|
770
|
-
.ft-resizer:hover ft-icon
|
|
771
|
-
|
|
770
|
+
.ft-resizer:hover ft-icon,
|
|
771
|
+
[role="button"][aria-pressed="true"] ft-icon{
|
|
772
|
+
color: ${Ql.colorOnSurfaceMedium};
|
|
772
773
|
}
|
|
773
|
-
`;var
|
|
774
|
+
`;var $t=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},Go=class extends CustomEvent{constructor(e,o){super("resize",{detail:{width:e,height:o}})}},Ie=class extends Ko.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=De.material,this.cursor="nwse-resize",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return jo.html`
|
|
774
775
|
<style>
|
|
775
776
|
.ft-resizer {
|
|
776
|
-
cursor: ${(0,
|
|
777
|
+
cursor: ${(0,jo.unsafeCSS)(this.cursor)}
|
|
777
778
|
}
|
|
778
779
|
</style>
|
|
779
780
|
<div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
|
|
781
|
+
role="button"
|
|
782
|
+
tabindex="0"
|
|
780
783
|
@mousedown=${this.initDragFromMouse}
|
|
781
|
-
@touchstart=${this.initDragFromTouch}
|
|
782
|
-
|
|
784
|
+
@touchstart=${this.initDragFromTouch}
|
|
785
|
+
@keydown="${this.initKeydownPress}">
|
|
786
|
+
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}" focusable="false" aria-hidden="true"></ft-icon>
|
|
783
787
|
</div>
|
|
784
|
-
`}initDragFromMouse(
|
|
788
|
+
`}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let o=e.key;if(["Enter","Space","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(o)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,o==="Enter"||o==="Space"){let n=e.currentTarget;this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())}else o==="Escape"&&(this.isAriaPressed=!1);this.isAriaPressed&&(o==="ArrowLeft"?this.fixedWidth-=10:o==="ArrowRight"?this.fixedWidth+=10:o==="ArrowUp"?this.fixedHeight-=10:o==="ArrowDown"&&(this.fixedHeight+=10)),this.dispatchEvent(new Go(this.fixedWidth,this.fixedHeight))}initDrag(e,o){this.dragging=!0,this.startX=e,this.startY=o,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,o){let i=this.fixedWidth+e-this.startX,n=this.fixedHeight+o-this.startY;this.dispatchEvent(new Go(i,n))}};Ie.elementDefinitions={"ft-icon":xe};Ie.styles=[Ko.noTextSelect,ec];$t([(0,st.property)({type:Number})],Ie.prototype,"initialWidth",void 0);$t([(0,st.property)({type:Number})],Ie.prototype,"initialHeight",void 0);$t([(0,st.property)()],Ie.prototype,"icon",void 0);$t([(0,st.property)()],Ie.prototype,"iconVariant",void 0);$t([(0,st.property)()],Ie.prototype,"cursor",void 0);$t([(0,st.state)()],Ie.prototype,"dragging",void 0);$t([(0,st.state)()],Ie.prototype,"isAriaPressed",void 0);$t([(0,st.eventOptions)({passive:!0})],Ie.prototype,"initDragFromMouse",null);$t([(0,st.eventOptions)({passive:!0})],Ie.prototype,"initDragFromTouch",null);(0,tc.customElement)("ft-resizer")(Ie);var ac=g(R());var Cn=g(M()),Gr=g(q()),ic=g(It()),nc=g(R());var rc=g(M()),re=g(R());var P={fontSize:re.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:re.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:re.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:re.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:re.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:re.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:re.FtCssVariableFactory.extend("--ft-input-label-border-color","",re.designSystemVariables.colorOutline),textColor:re.FtCssVariableFactory.extend("--ft-input-label-text-color","",re.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:re.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",re.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:re.FtCssVariableFactory.extend("--ft-input-label-background-color","",re.designSystemVariables.colorSurface),borderRadius:re.FtCssVariableFactory.extend("--ft-input-label-border-radius","",re.designSystemVariables.borderRadiusS),colorError:re.FtCssVariableFactory.external(re.designSystemVariables.colorError,"Design system")},oc=rc.css`
|
|
785
789
|
.ft-input-label {
|
|
786
790
|
position: absolute;
|
|
787
791
|
inset: 0;
|
|
@@ -832,8 +836,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
832
836
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
833
837
|
max-width: calc(${P.labelMaxWidth} - 2 * (${P.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
834
838
|
text-overflow: ellipsis;
|
|
835
|
-
${(0,
|
|
836
|
-
${(0,
|
|
839
|
+
${(0,re.setVariable)(pt.fontSize,P.fontSize)};
|
|
840
|
+
${(0,re.setVariable)(pt.lineHeight,P.fontSize)};
|
|
837
841
|
}
|
|
838
842
|
|
|
839
843
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -865,8 +869,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
865
869
|
}
|
|
866
870
|
|
|
867
871
|
.ft-input-label--raised .ft-input-label--text {
|
|
868
|
-
${(0,
|
|
869
|
-
${(0,
|
|
872
|
+
${(0,re.setVariable)(pt.fontSize,P.raisedFontSize)};
|
|
873
|
+
${(0,re.setVariable)(pt.lineHeight,P.raisedFontSize)};
|
|
870
874
|
}
|
|
871
875
|
|
|
872
876
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -903,8 +907,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
903
907
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
904
908
|
border-top: none;
|
|
905
909
|
}
|
|
906
|
-
`;var fo=function(e,
|
|
907
|
-
<div class="${(0,
|
|
910
|
+
`;var fo=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 nc.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let e={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return Cn.html`
|
|
911
|
+
<div class="${(0,ic.classMap)(e)}">
|
|
908
912
|
${this.text?Cn.html`
|
|
909
913
|
<div class="ft-input-label--text ft-typography--caption">
|
|
910
914
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
@@ -912,7 +916,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
912
916
|
</div>
|
|
913
917
|
`:null}
|
|
914
918
|
</div>
|
|
915
|
-
`}};
|
|
919
|
+
`}};Ve.elementDefinitions={};Ve.styles=[No,oc];fo([(0,Gr.property)({type:String})],Ve.prototype,"text",void 0);fo([(0,Gr.property)({type:Boolean})],Ve.prototype,"raised",void 0);fo([(0,Gr.property)({type:Boolean})],Ve.prototype,"outlined",void 0);fo([(0,Gr.property)({type:Boolean})],Ve.prototype,"disabled",void 0);fo([(0,Gr.property)({type:Boolean})],Ve.prototype,"error",void 0);(0,ac.customElement)("ft-input-label")(Ve);var sc=g(M()),K=g(R());var X={fontSize:K.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:K.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:K.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:K.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:K.FtCssVariableFactory.extend("--ft-text-area-helper-color","",K.designSystemVariables.colorOnSurfaceMedium),colorPrimary:K.FtCssVariableFactory.external(K.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:K.FtCssVariableFactory.external(K.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:K.FtCssVariableFactory.external(K.designSystemVariables.borderRadiusS,"Design system"),colorError:K.FtCssVariableFactory.external(K.designSystemVariables.colorError,"Design system")},lc=sc.css`
|
|
916
920
|
*:focus {
|
|
917
921
|
outline: none;
|
|
918
922
|
}
|
|
@@ -945,8 +949,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
945
949
|
}
|
|
946
950
|
|
|
947
951
|
.ft-text-area--input-panel ft-ripple {
|
|
948
|
-
${(0,K.setVariable)(
|
|
949
|
-
${(0,K.setVariable)(
|
|
952
|
+
${(0,K.setVariable)(E.opacityContentOnSurfaceHover,"0.08")};
|
|
953
|
+
${(0,K.setVariable)(E.opacityContentOnSurfacePressed,"0.04")};
|
|
950
954
|
}
|
|
951
955
|
|
|
952
956
|
.ft-text-area--input {
|
|
@@ -958,8 +962,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
958
962
|
align-self: stretch;
|
|
959
963
|
resize: none;
|
|
960
964
|
|
|
961
|
-
${(0,K.setVariable)(
|
|
962
|
-
${(0,K.setVariable)(
|
|
965
|
+
${(0,K.setVariable)(nt.fontSize,X.fontSize)};
|
|
966
|
+
${(0,K.setVariable)(nt.lineHeight,X.fontSize)};
|
|
963
967
|
color: ${X.colorOnSurface};
|
|
964
968
|
|
|
965
969
|
padding: 0 ${X.horizontalSpacing};
|
|
@@ -1012,7 +1016,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1012
1016
|
position: absolute;
|
|
1013
1017
|
bottom: 0;
|
|
1014
1018
|
}
|
|
1015
|
-
`;var
|
|
1019
|
+
`;var Bt=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},Ne=class extends(0,qo.toFtFormComponent)(qo.FtLitElement,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return Zo.html`
|
|
1016
1020
|
<style>
|
|
1017
1021
|
.ft-text-area--main-panel {
|
|
1018
1022
|
height: calc(4 * ${X.verticalSpacing} + ${X.labelSize} + ${X.fontSize} + ${this.height}px);
|
|
@@ -1022,7 +1026,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1022
1026
|
right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
|
|
1023
1027
|
}
|
|
1024
1028
|
</style>
|
|
1025
|
-
<div class="${(0,
|
|
1029
|
+
<div class="${(0,cc.classMap)(e)}">
|
|
1026
1030
|
<div class="ft-text-area--main-panel">
|
|
1027
1031
|
<ft-input-label text="${this.label}"
|
|
1028
1032
|
?disabled=${this.disabled}
|
|
@@ -1032,7 +1036,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1032
1036
|
></ft-input-label>
|
|
1033
1037
|
<div class="ft-text-area--input-panel"
|
|
1034
1038
|
aria-label="${this.label}">
|
|
1035
|
-
${this.outlined?null:
|
|
1039
|
+
${this.outlined?null:Zo.html`
|
|
1036
1040
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1037
1041
|
`}
|
|
1038
1042
|
<textarea class="ft-typography--body1 ft-text-area--input"
|
|
@@ -1049,56 +1053,56 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1049
1053
|
initialHeight="${this.height}"
|
|
1050
1054
|
cursor="ns-resize"></ft-resizer>
|
|
1051
1055
|
</div>
|
|
1052
|
-
${this.helper?
|
|
1056
|
+
${this.helper?Zo.html`
|
|
1053
1057
|
<ft-typography class="ft-text-area--helper-text" variant="caption">
|
|
1054
1058
|
${this.helper}
|
|
1055
1059
|
</ft-typography>`:void 0}
|
|
1056
1060
|
</div>
|
|
1057
|
-
`}setValue(
|
|
1061
|
+
`}setValue(e,o=!1){this.value=e,this.setFormValue(e),o&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};Ne.elementDefinitions={"ft-input-label":Ve,"ft-resizer":Ie,"ft-ripple":j,"ft-typography":fe};Ne.styles=[Pr,lc];Bt([(0,lt.property)({type:String})],Ne.prototype,"label",void 0);Bt([(0,lt.property)({reflect:!0})],Ne.prototype,"value",void 0);Bt([(0,lt.property)({type:String})],Ne.prototype,"helper",void 0);Bt([(0,lt.property)({type:Boolean})],Ne.prototype,"outlined",void 0);Bt([(0,lt.property)({type:Boolean})],Ne.prototype,"disabled",void 0);Bt([(0,lt.property)({type:Boolean})],Ne.prototype,"error",void 0);Bt([(0,lt.property)({type:Number,reflect:!0})],Ne.prototype,"height",void 0);Bt([(0,lt.query)("textarea")],Ne.prototype,"textarea",void 0);Bt([(0,lt.state)()],Ne.prototype,"focused",void 0);(0,dc.customElement)("ft-text-area")(Ne);var Pd=g(uc());var wn=g(R());var ho=g(q()),mc=g(R());var Yt=g(R());var yc=g(R());var fc=g(M()),hc=g(R());var Sr=class extends hc.FtLitElement{render(){return fc.html`
|
|
1058
1062
|
<div class="ft-loader">
|
|
1059
1063
|
<div></div>
|
|
1060
1064
|
<div></div>
|
|
1061
1065
|
<div></div>
|
|
1062
1066
|
<div></div>
|
|
1063
1067
|
</div>
|
|
1064
|
-
`}};Sr.styles=ps;(0,
|
|
1068
|
+
`}};Sr.styles=ps;(0,yc.customElement)("ft-loader")(Sr);var qt=g(M()),En=g(It()),Ee=g(q()),Le=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},ne=class extends(0,Yt.toFtFormComponent)(Yt.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){var e,o,i;let n=qt.html`
|
|
1065
1069
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
1066
1070
|
<ft-typography part="label"
|
|
1067
1071
|
variant=${this.typographyVariant}
|
|
1068
1072
|
element="span"
|
|
1069
|
-
class="ft-button--label ${
|
|
1073
|
+
class="ft-button--label ${Yt.isSafari?"ft-safari-ellipsis-fix":""}"
|
|
1070
1074
|
?hidden=${!this.hasTextContent()}>
|
|
1071
1075
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1072
1076
|
</ft-typography>
|
|
1073
1077
|
${this.resolveIcon()}
|
|
1074
|
-
`,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?
|
|
1078
|
+
`,a=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(a?qt.html`
|
|
1075
1079
|
<a href="${a}"
|
|
1076
|
-
target="${(
|
|
1080
|
+
target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
|
|
1077
1081
|
part="button"
|
|
1078
|
-
class="${(0,
|
|
1082
|
+
class="${(0,En.classMap)(this.buttonClasses)}"
|
|
1079
1083
|
aria-label="${(o=this.ariaLabel)!==null&&o!==void 0?o:this.getLabel()}"
|
|
1080
1084
|
?disabled=${this.isDisabled()}>
|
|
1081
1085
|
${n}
|
|
1082
1086
|
</a>
|
|
1083
|
-
`:
|
|
1087
|
+
`:qt.html`
|
|
1084
1088
|
<button part="button"
|
|
1085
|
-
class="${(0,
|
|
1089
|
+
class="${(0,En.classMap)(this.buttonClasses)}"
|
|
1086
1090
|
aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
|
|
1087
1091
|
?disabled=${this.isDisabled()}>
|
|
1088
1092
|
${n}
|
|
1089
1093
|
</button>
|
|
1090
|
-
`)}addTooltipIfNeeded(
|
|
1094
|
+
`)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?qt.html`
|
|
1091
1095
|
<ft-tooltip part="tooltip"
|
|
1092
1096
|
text="${this.getLabel()}"
|
|
1093
1097
|
position="${this.tooltipPosition}">
|
|
1094
|
-
${
|
|
1098
|
+
${e}
|
|
1095
1099
|
</ft-tooltip>
|
|
1096
|
-
`:
|
|
1097
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
1100
|
+
`:e}resolveIcon(){return this.loading?qt.html`
|
|
1101
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?qt.html`
|
|
1098
1102
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
1099
|
-
`:
|
|
1103
|
+
`:qt.html`
|
|
1100
1104
|
<slot part="icon" name="icon"></slot>
|
|
1101
|
-
`}focus(){var
|
|
1105
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}focusWithoutTooltip(){var e;this.setTooltipManual(!0),(e=this.button)===null||e===void 0||e.focus(),this.setTooltipManual(!1)}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.textContent}get textContent(){return(0,Yt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ne.elementDefinitions={"ft-ripple":j,"ft-tooltip":ie,"ft-typography":fe,"ft-icon":xe,"ft-loader":Sr};Le([(0,Ee.property)()],ne.prototype,"href",void 0);Le([(0,Ee.property)()],ne.prototype,"target",void 0);Le([(0,Ee.property)({type:String,reflect:!0})],ne.prototype,"role",void 0);Le([(0,Ee.property)()],ne.prototype,"type",void 0);Le([(0,Ee.property)({type:Boolean})],ne.prototype,"disabled",void 0);Le([(0,Ee.property)()],ne.prototype,"label",void 0);Le([(0,Ee.property)()],ne.prototype,"icon",void 0);Le([(0,Ee.property)()],ne.prototype,"iconVariant",void 0);Le([(0,Ee.property)({type:Boolean})],ne.prototype,"trailingIcon",void 0);Le([(0,Ee.property)({type:Boolean})],ne.prototype,"loading",void 0);Le([(0,Ee.property)({attribute:"aria-label"})],ne.prototype,"ariaLabel",void 0);Le([(0,Ee.property)()],ne.prototype,"tooltipPosition",void 0);Le([(0,Ee.property)({type:Boolean})],ne.prototype,"hideTooltip",void 0);Le([(0,Ee.property)({type:Boolean})],ne.prototype,"forceTooltip",void 0);Le([(0,Ee.query)(".ft-button")],ne.prototype,"button",void 0);Le([(0,Ee.query)(".ft-button--label slot")],ne.prototype,"slottedContent",void 0);Le([(0,Ee.query)("[part=tooltip]")],ne.prototype,"tooltip",void 0);var Yo=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},ht=class extends ne{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};ht.styles=[mc.safariEllipsisFix,gs];Yo([(0,ho.property)({type:Boolean})],ht.prototype,"primary",void 0);Yo([(0,ho.property)({type:Boolean})],ht.prototype,"outlined",void 0);Yo([(0,ho.property)({type:Boolean})],ht.prototype,"dense",void 0);Yo([(0,ho.property)({type:Boolean})],ht.prototype,"round",void 0);var yo=g(q());var Qo=g(R());var gc=g(M()),C=g(R());var bc=[gc.css`
|
|
1102
1106
|
:host {
|
|
1103
1107
|
display: inline-block;
|
|
1104
1108
|
max-width: 100%;
|
|
@@ -1183,13 +1187,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1183
1187
|
/** Brand Primary styles **/
|
|
1184
1188
|
|
|
1185
1189
|
.ftds--family-brand.ft-button--primary {
|
|
1186
|
-
${(0,C.setVariable)(
|
|
1190
|
+
${(0,C.setVariable)(oe.color,h.primaryBrandIconColor)};
|
|
1187
1191
|
|
|
1188
|
-
${(0,C.setVariable)(
|
|
1189
|
-
${(0,C.setVariable)(
|
|
1190
|
-
${(0,C.setVariable)(
|
|
1191
|
-
${(0,C.setVariable)(
|
|
1192
|
-
${(0,C.setVariable)(
|
|
1192
|
+
${(0,C.setVariable)(E.color,h.primaryBrandStateLayerColor)};
|
|
1193
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceHover,h.primaryBrandHoverStateLayerOpacity)};
|
|
1194
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceFocused,h.primaryBrandFocusStateLayerOpacity)};
|
|
1195
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceSelected,h.primaryBrandActiveStateLayerOpacity)};
|
|
1196
|
+
${(0,C.setVariable)(E.opacityContentOnSurfacePressed,h.primaryBrandActiveStateLayerOpacity)};
|
|
1193
1197
|
|
|
1194
1198
|
background-color: ${h.primaryBrandBackgroundColor};
|
|
1195
1199
|
color: ${h.primaryBrandColor};
|
|
@@ -1207,13 +1211,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1207
1211
|
/** Brand Secondary styles **/
|
|
1208
1212
|
|
|
1209
1213
|
.ftds--family-brand.ft-button--secondary {
|
|
1210
|
-
${(0,C.setVariable)(
|
|
1214
|
+
${(0,C.setVariable)(oe.color,h.secondaryBrandIconColor)};
|
|
1211
1215
|
|
|
1212
|
-
${(0,C.setVariable)(
|
|
1213
|
-
${(0,C.setVariable)(
|
|
1214
|
-
${(0,C.setVariable)(
|
|
1215
|
-
${(0,C.setVariable)(
|
|
1216
|
-
${(0,C.setVariable)(
|
|
1216
|
+
${(0,C.setVariable)(E.color,h.secondaryBrandStateLayerColor)};
|
|
1217
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceHover,h.secondaryBrandHoverStateLayerOpacity)};
|
|
1218
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceFocused,h.secondaryBrandFocusStateLayerOpacity)};
|
|
1219
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceSelected,h.secondaryBrandActiveStateLayerOpacity)};
|
|
1220
|
+
${(0,C.setVariable)(E.opacityContentOnSurfacePressed,h.secondaryBrandActiveStateLayerOpacity)};
|
|
1217
1221
|
|
|
1218
1222
|
background-color: ${h.secondaryBrandBackgroundColor};
|
|
1219
1223
|
color: ${h.secondaryBrandColor};
|
|
@@ -1232,13 +1236,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1232
1236
|
/** Brand Tertiary styles **/
|
|
1233
1237
|
|
|
1234
1238
|
.ftds--family-brand.ft-button--tertiary {
|
|
1235
|
-
${(0,C.setVariable)(
|
|
1239
|
+
${(0,C.setVariable)(oe.color,h.tertiaryBrandIconColor)};
|
|
1236
1240
|
|
|
1237
|
-
${(0,C.setVariable)(
|
|
1238
|
-
${(0,C.setVariable)(
|
|
1239
|
-
${(0,C.setVariable)(
|
|
1240
|
-
${(0,C.setVariable)(
|
|
1241
|
-
${(0,C.setVariable)(
|
|
1241
|
+
${(0,C.setVariable)(E.color,h.tertiaryBrandStateLayerColor)};
|
|
1242
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceHover,h.tertiaryBrandHoverStateLayerOpacity)};
|
|
1243
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceFocused,h.tertiaryBrandFocusStateLayerOpacity)};
|
|
1244
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceSelected,h.tertiaryBrandActiveStateLayerOpacity)};
|
|
1245
|
+
${(0,C.setVariable)(E.opacityContentOnSurfacePressed,h.tertiaryBrandActiveStateLayerOpacity)};
|
|
1242
1246
|
|
|
1243
1247
|
background-color: ${h.tertiaryBrandBackgroundColor};
|
|
1244
1248
|
color: ${h.tertiaryBrandColor};
|
|
@@ -1256,13 +1260,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1256
1260
|
/** Neutral Secondary styles **/
|
|
1257
1261
|
|
|
1258
1262
|
.ftds--family-neutral.ft-button--secondary {
|
|
1259
|
-
${(0,C.setVariable)(
|
|
1263
|
+
${(0,C.setVariable)(oe.color,h.secondaryNeutralIconColor)};
|
|
1260
1264
|
|
|
1261
|
-
${(0,C.setVariable)(
|
|
1262
|
-
${(0,C.setVariable)(
|
|
1263
|
-
${(0,C.setVariable)(
|
|
1264
|
-
${(0,C.setVariable)(
|
|
1265
|
-
${(0,C.setVariable)(
|
|
1265
|
+
${(0,C.setVariable)(E.backgroundColor,h.secondaryNeutralStateLayerColor)};
|
|
1266
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceHover,h.secondaryNeutralHoverStateLayerOpacity)};
|
|
1267
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceFocused,h.secondaryNeutralFocusStateLayerOpacity)};
|
|
1268
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceSelected,h.secondaryNeutralActiveStateLayerOpacity)};
|
|
1269
|
+
${(0,C.setVariable)(E.opacityContentOnSurfacePressed,h.secondaryNeutralActiveStateLayerOpacity)};
|
|
1266
1270
|
|
|
1267
1271
|
background-color: ${h.secondaryNeutralBackgroundColor};
|
|
1268
1272
|
color: ${h.secondaryNeutralColor};
|
|
@@ -1281,13 +1285,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1281
1285
|
/** Neutral Tertiary styles **/
|
|
1282
1286
|
|
|
1283
1287
|
.ftds--family-neutral.ft-button--tertiary {
|
|
1284
|
-
${(0,C.setVariable)(
|
|
1288
|
+
${(0,C.setVariable)(oe.color,h.tertiaryNeutralIconColor)};
|
|
1285
1289
|
|
|
1286
|
-
${(0,C.setVariable)(
|
|
1287
|
-
${(0,C.setVariable)(
|
|
1288
|
-
${(0,C.setVariable)(
|
|
1289
|
-
${(0,C.setVariable)(
|
|
1290
|
-
${(0,C.setVariable)(
|
|
1290
|
+
${(0,C.setVariable)(E.backgroundColor,h.tertiaryNeutralStateLayerColor)};
|
|
1291
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceHover,h.tertiaryNeutralHoverStateLayerOpacity)};
|
|
1292
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceFocused,h.tertiaryNeutralFocusStateLayerOpacity)};
|
|
1293
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceSelected,h.tertiaryNeutralActiveStateLayerOpacity)};
|
|
1294
|
+
${(0,C.setVariable)(E.opacityContentOnSurfacePressed,h.tertiaryNeutralActiveStateLayerOpacity)};
|
|
1291
1295
|
|
|
1292
1296
|
background-color: ${h.tertiaryNeutralBackgroundColor};
|
|
1293
1297
|
color: ${h.tertiaryNeutralColor};
|
|
@@ -1305,13 +1309,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1305
1309
|
/** Info Secondary styles **/
|
|
1306
1310
|
|
|
1307
1311
|
.ftds--family-info.ft-button--secondary {
|
|
1308
|
-
${(0,C.setVariable)(
|
|
1312
|
+
${(0,C.setVariable)(oe.color,h.secondaryInfoIconColor)};
|
|
1309
1313
|
|
|
1310
|
-
${(0,C.setVariable)(
|
|
1311
|
-
${(0,C.setVariable)(
|
|
1312
|
-
${(0,C.setVariable)(
|
|
1313
|
-
${(0,C.setVariable)(
|
|
1314
|
-
${(0,C.setVariable)(
|
|
1314
|
+
${(0,C.setVariable)(E.backgroundColor,h.secondaryInfoStateLayerColor)};
|
|
1315
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceHover,h.secondaryInfoHoverStateLayerOpacity)};
|
|
1316
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceFocused,h.secondaryInfoFocusStateLayerOpacity)};
|
|
1317
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceSelected,h.secondaryInfoActiveStateLayerOpacity)};
|
|
1318
|
+
${(0,C.setVariable)(E.opacityContentOnSurfacePressed,h.secondaryInfoActiveStateLayerOpacity)};
|
|
1315
1319
|
|
|
1316
1320
|
background-color: ${h.secondaryInfoBackgroundColor};
|
|
1317
1321
|
color: ${h.secondaryInfoColor};
|
|
@@ -1330,13 +1334,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1330
1334
|
/** Info Tertiary styles **/
|
|
1331
1335
|
|
|
1332
1336
|
.ftds--family-info.ft-button--tertiary {
|
|
1333
|
-
${(0,C.setVariable)(
|
|
1337
|
+
${(0,C.setVariable)(oe.color,h.tertiaryInfoIconColor)};
|
|
1334
1338
|
|
|
1335
|
-
${(0,C.setVariable)(
|
|
1336
|
-
${(0,C.setVariable)(
|
|
1337
|
-
${(0,C.setVariable)(
|
|
1338
|
-
${(0,C.setVariable)(
|
|
1339
|
-
${(0,C.setVariable)(
|
|
1339
|
+
${(0,C.setVariable)(E.backgroundColor,h.tertiaryInfoStateLayerColor)};
|
|
1340
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceHover,h.tertiaryInfoHoverStateLayerOpacity)};
|
|
1341
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceFocused,h.tertiaryInfoFocusStateLayerOpacity)};
|
|
1342
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceSelected,h.tertiaryInfoActiveStateLayerOpacity)};
|
|
1343
|
+
${(0,C.setVariable)(E.opacityContentOnSurfacePressed,h.tertiaryInfoActiveStateLayerOpacity)};
|
|
1340
1344
|
|
|
1341
1345
|
background-color: ${h.tertiaryInfoBackgroundColor};
|
|
1342
1346
|
color: ${h.tertiaryInfoColor};
|
|
@@ -1354,13 +1358,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1354
1358
|
/** Success Secondary styles **/
|
|
1355
1359
|
|
|
1356
1360
|
.ftds--family-success.ft-button--secondary {
|
|
1357
|
-
${(0,C.setVariable)(
|
|
1361
|
+
${(0,C.setVariable)(oe.color,h.secondarySuccessIconColor)};
|
|
1358
1362
|
|
|
1359
|
-
${(0,C.setVariable)(
|
|
1360
|
-
${(0,C.setVariable)(
|
|
1361
|
-
${(0,C.setVariable)(
|
|
1362
|
-
${(0,C.setVariable)(
|
|
1363
|
-
${(0,C.setVariable)(
|
|
1363
|
+
${(0,C.setVariable)(E.backgroundColor,h.secondarySuccessStateLayerColor)};
|
|
1364
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceHover,h.secondarySuccessHoverStateLayerOpacity)};
|
|
1365
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceFocused,h.secondarySuccessFocusStateLayerOpacity)};
|
|
1366
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceSelected,h.secondarySuccessActiveStateLayerOpacity)};
|
|
1367
|
+
${(0,C.setVariable)(E.opacityContentOnSurfacePressed,h.secondarySuccessActiveStateLayerOpacity)};
|
|
1364
1368
|
|
|
1365
1369
|
background-color: ${h.secondarySuccessBackgroundColor};
|
|
1366
1370
|
color: ${h.secondarySuccessColor};
|
|
@@ -1379,13 +1383,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1379
1383
|
/** Success Tertiary styles **/
|
|
1380
1384
|
|
|
1381
1385
|
.ftds--family-success.ft-button--tertiary {
|
|
1382
|
-
${(0,C.setVariable)(
|
|
1386
|
+
${(0,C.setVariable)(oe.color,h.tertiarySuccessIconColor)};
|
|
1383
1387
|
|
|
1384
|
-
${(0,C.setVariable)(
|
|
1385
|
-
${(0,C.setVariable)(
|
|
1386
|
-
${(0,C.setVariable)(
|
|
1387
|
-
${(0,C.setVariable)(
|
|
1388
|
-
${(0,C.setVariable)(
|
|
1388
|
+
${(0,C.setVariable)(E.backgroundColor,h.tertiarySuccessStateLayerColor)};
|
|
1389
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceHover,h.tertiarySuccessHoverStateLayerOpacity)};
|
|
1390
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceFocused,h.tertiarySuccessFocusStateLayerOpacity)};
|
|
1391
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceSelected,h.tertiarySuccessActiveStateLayerOpacity)};
|
|
1392
|
+
${(0,C.setVariable)(E.opacityContentOnSurfacePressed,h.tertiarySuccessActiveStateLayerOpacity)};
|
|
1389
1393
|
|
|
1390
1394
|
background-color: ${h.tertiarySuccessBackgroundColor};
|
|
1391
1395
|
color: ${h.tertiarySuccessColor};
|
|
@@ -1403,13 +1407,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1403
1407
|
/** Warning Secondary styles **/
|
|
1404
1408
|
|
|
1405
1409
|
.ftds--family-warning.ft-button--secondary {
|
|
1406
|
-
${(0,C.setVariable)(
|
|
1410
|
+
${(0,C.setVariable)(oe.color,h.secondaryWarningIconColor)};
|
|
1407
1411
|
|
|
1408
|
-
${(0,C.setVariable)(
|
|
1409
|
-
${(0,C.setVariable)(
|
|
1410
|
-
${(0,C.setVariable)(
|
|
1411
|
-
${(0,C.setVariable)(
|
|
1412
|
-
${(0,C.setVariable)(
|
|
1412
|
+
${(0,C.setVariable)(E.backgroundColor,h.secondaryWarningStateLayerColor)};
|
|
1413
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceHover,h.secondaryWarningHoverStateLayerOpacity)};
|
|
1414
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceFocused,h.secondaryWarningFocusStateLayerOpacity)};
|
|
1415
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceSelected,h.secondaryWarningActiveStateLayerOpacity)};
|
|
1416
|
+
${(0,C.setVariable)(E.opacityContentOnSurfacePressed,h.secondaryWarningActiveStateLayerOpacity)};
|
|
1413
1417
|
|
|
1414
1418
|
background-color: ${h.secondaryWarningBackgroundColor};
|
|
1415
1419
|
color: ${h.secondaryWarningColor};
|
|
@@ -1428,13 +1432,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1428
1432
|
/** Warning Tertiary styles **/
|
|
1429
1433
|
|
|
1430
1434
|
.ftds--family-warning.ft-button--tertiary {
|
|
1431
|
-
${(0,C.setVariable)(
|
|
1435
|
+
${(0,C.setVariable)(oe.color,h.tertiaryWarningIconColor)};
|
|
1432
1436
|
|
|
1433
|
-
${(0,C.setVariable)(
|
|
1434
|
-
${(0,C.setVariable)(
|
|
1435
|
-
${(0,C.setVariable)(
|
|
1436
|
-
${(0,C.setVariable)(
|
|
1437
|
-
${(0,C.setVariable)(
|
|
1437
|
+
${(0,C.setVariable)(E.backgroundColor,h.tertiaryWarningStateLayerColor)};
|
|
1438
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceHover,h.tertiaryWarningHoverStateLayerOpacity)};
|
|
1439
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceFocused,h.tertiaryWarningFocusStateLayerOpacity)};
|
|
1440
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceSelected,h.tertiaryWarningActiveStateLayerOpacity)};
|
|
1441
|
+
${(0,C.setVariable)(E.opacityContentOnSurfacePressed,h.tertiaryWarningActiveStateLayerOpacity)};
|
|
1438
1442
|
|
|
1439
1443
|
background-color: ${h.tertiaryWarningBackgroundColor};
|
|
1440
1444
|
color: ${h.tertiaryWarningColor};
|
|
@@ -1452,13 +1456,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1452
1456
|
/** Error Secondary styles **/
|
|
1453
1457
|
|
|
1454
1458
|
.ftds--family-error.ft-button--secondary {
|
|
1455
|
-
${(0,C.setVariable)(
|
|
1459
|
+
${(0,C.setVariable)(oe.color,h.secondaryErrorIconColor)};
|
|
1456
1460
|
|
|
1457
|
-
${(0,C.setVariable)(
|
|
1458
|
-
${(0,C.setVariable)(
|
|
1459
|
-
${(0,C.setVariable)(
|
|
1460
|
-
${(0,C.setVariable)(
|
|
1461
|
-
${(0,C.setVariable)(
|
|
1461
|
+
${(0,C.setVariable)(E.backgroundColor,h.secondaryErrorStateLayerColor)};
|
|
1462
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceHover,h.secondaryErrorHoverStateLayerOpacity)};
|
|
1463
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceFocused,h.secondaryErrorFocusStateLayerOpacity)};
|
|
1464
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceSelected,h.secondaryErrorActiveStateLayerOpacity)};
|
|
1465
|
+
${(0,C.setVariable)(E.opacityContentOnSurfacePressed,h.secondaryErrorActiveStateLayerOpacity)};
|
|
1462
1466
|
|
|
1463
1467
|
background-color: ${h.secondaryErrorBackgroundColor};
|
|
1464
1468
|
color: ${h.secondaryErrorColor};
|
|
@@ -1477,13 +1481,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1477
1481
|
/** Error Tertiary styles **/
|
|
1478
1482
|
|
|
1479
1483
|
.ftds--family-error.ft-button--tertiary {
|
|
1480
|
-
${(0,C.setVariable)(
|
|
1484
|
+
${(0,C.setVariable)(oe.color,h.tertiaryErrorIconColor)};
|
|
1481
1485
|
|
|
1482
|
-
${(0,C.setVariable)(
|
|
1483
|
-
${(0,C.setVariable)(
|
|
1484
|
-
${(0,C.setVariable)(
|
|
1485
|
-
${(0,C.setVariable)(
|
|
1486
|
-
${(0,C.setVariable)(
|
|
1486
|
+
${(0,C.setVariable)(E.backgroundColor,h.tertiaryErrorStateLayerColor)};
|
|
1487
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceHover,h.tertiaryErrorHoverStateLayerOpacity)};
|
|
1488
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceFocused,h.tertiaryErrorFocusStateLayerOpacity)};
|
|
1489
|
+
${(0,C.setVariable)(E.opacityContentOnSurfaceSelected,h.tertiaryErrorActiveStateLayerOpacity)};
|
|
1490
|
+
${(0,C.setVariable)(E.opacityContentOnSurfacePressed,h.tertiaryErrorActiveStateLayerOpacity)};
|
|
1487
1491
|
|
|
1488
1492
|
background-color: ${h.tertiaryErrorBackgroundColor};
|
|
1489
1493
|
color: ${h.tertiaryErrorColor};
|
|
@@ -1501,8 +1505,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1501
1505
|
/** Large styles **/
|
|
1502
1506
|
|
|
1503
1507
|
.ftds--size-large {
|
|
1504
|
-
${(0,C.setVariable)(
|
|
1505
|
-
${(0,C.setVariable)(
|
|
1508
|
+
${(0,C.setVariable)(Se.size,h.largeIconSize)};
|
|
1509
|
+
${(0,C.setVariable)(oe.size,h.largeIconSize)};
|
|
1506
1510
|
|
|
1507
1511
|
height: ${h.largeHeight};
|
|
1508
1512
|
padding: 0 ${h.largeHorizontalPadding};
|
|
@@ -1523,8 +1527,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1523
1527
|
/** Small styles **/
|
|
1524
1528
|
|
|
1525
1529
|
.ftds--size-medium {
|
|
1526
|
-
${(0,C.setVariable)(
|
|
1527
|
-
${(0,C.setVariable)(
|
|
1530
|
+
${(0,C.setVariable)(Se.size,h.mediumIconSize)};
|
|
1531
|
+
${(0,C.setVariable)(oe.size,h.mediumIconSize)};
|
|
1528
1532
|
|
|
1529
1533
|
height: ${h.mediumHeight};
|
|
1530
1534
|
padding: 0 ${h.mediumHorizontalPadding};
|
|
@@ -1546,8 +1550,8 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1546
1550
|
/** Small styles **/
|
|
1547
1551
|
|
|
1548
1552
|
.ftds--size-small {
|
|
1549
|
-
${(0,C.setVariable)(
|
|
1550
|
-
${(0,C.setVariable)(
|
|
1553
|
+
${(0,C.setVariable)(Se.size,h.smallIconSize)};
|
|
1554
|
+
${(0,C.setVariable)(oe.size,h.smallIconSize)};
|
|
1551
1555
|
|
|
1552
1556
|
height: ${h.smallHeight};
|
|
1553
1557
|
padding: 0 ${h.smallHorizontalPadding};
|
|
@@ -1564,15 +1568,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1564
1568
|
.ftds--size-small.ft-button--icon-only {
|
|
1565
1569
|
width: ${h.smallIconOnlyWidth};
|
|
1566
1570
|
}
|
|
1567
|
-
`,C.noTextSelect];var
|
|
1568
|
-
`;var
|
|
1569
|
-
`;var
|
|
1571
|
+
`,C.noTextSelect];var Xo=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},Mt=class extends(0,Qo.toFtdsBase)(ne){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=To.brand,this.iconVariant=De.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 _r.large:return jt.body2medium;case _r.medium:return jt.caption1medium;case _r.small:return jt.caption2medium}}};Mt.styles=[Qo.safariEllipsisFix,bc];Xo([(0,yo.property)({type:Boolean})],Mt.prototype,"primary",void 0);Xo([(0,yo.property)({type:Boolean})],Mt.prototype,"secondary",void 0);Xo([(0,yo.property)({type:Boolean})],Mt.prototype,"tertiary",void 0);Xo([(0,yo.property)({type:Boolean})],Mt.prototype,"round",void 0);(0,wn.customElement)("ft-button")(ht);(0,wn.customElement)("ftds-button")(Mt);var xd=g(R());var Si=g(M()),Oi=g(q()),Ci=g(R());var vc=g(M());var xc=vc.css`
|
|
1572
|
+
`;var xi=g(R());var gd=g(R());var wc=g(M()),Ye=g(q()),yt=g(R());var Sc=g(M());var Oc=Sc.css`
|
|
1573
|
+
`;var Jo=g(R()),Sp="ft-app-info",An=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Op={session:(t,e)=>{(0,Jo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>T.dispatchEvent(new An(e.payload)),0))}},T=Jo.FtReduxStore.get({name:Sp,reducers:Op,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],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}});var Xt=g(R());var Rn=g(R());var Or=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:i}=T.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=T.subscribe(()=>{i=t.get(e),i&&(n(),o(i))})}})}};var wt=class{constructor(e=!0,o){var i;this.overrideApi=o;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new Rn.CacheRegistry,this.cache=e?n.commonCache:new Rn.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Or.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Or.await()}clearCache(){this.cache.clearAll()}};var Cc,Cp=Symbol("clearAfterUnitTest"),ei=class extends wt{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Cc]=()=>{this.defaultMessages={},this.cache=new Xt.CacheRegistry,this.listeners={}},this.currentUiLocale=T.getState().uiLocale,T.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=T.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(),Object.keys(o).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...o};(0,Xt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}await 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 Xt.ParametrizedLabelResolver((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(o,...i)}async fetchContext(e){var o,i,n;if(!this.cache.has(e))if(((i=(o=window.process)===null||o===void 0?void 0:o.env)===null||i===void 0?void 0:i.NODE_ENV)==="test")this.cache.set(e,(n=this.defaultMessages[e])!==null&&n!==void 0?n:{});else try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(a){console.error(a)}}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(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,Xt.delay)(0).then(()=>o()).catch(()=>null)))}};Cc=Cp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ei{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ei{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Cr=window.FluidTopicsI18nService,Ec=window.FluidTopicsCustomI18nService;var $e=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 yt.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Or.get(),this.messageContexts=[],this.cache=new yt.CacheRegistry,this.cleanSessionDebouncer=new yt.Debouncer}render(){return wc.html`
|
|
1570
1574
|
<slot></slot>
|
|
1571
|
-
`}update(t){var o,i,n,a,s;super.update(t),t.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&T.actions.noCustom(this.noCustom),t.has("editorMode")&&T.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&T.actions.session(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(c=>Cr.addContext(c)),t.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),t.has("localesConfiguration")&&(T.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),T.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),T.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}async updateLocalesConfiguration(){this.localesConfiguration=await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration())}};dt.elementDefinitions={};dt.styles=bc;$t([(0,Yt.property)()],dt.prototype,"baseUrl",void 0);$t([(0,Yt.property)()],dt.prototype,"apiIntegrationIdentifier",void 0);$t([(0,Yt.property)()],dt.prototype,"uiLocale",void 0);$t([(0,ye.jsonProperty)(null)],dt.prototype,"availableUiLocales",void 0);$t([(0,ye.jsonProperty)(null)],dt.prototype,"metadataConfiguration",void 0);$t([(0,Yt.property)({type:Boolean})],dt.prototype,"editorMode",void 0);$t([(0,Yt.property)({type:Boolean})],dt.prototype,"noCustom",void 0);$t([(0,Yt.property)({type:Boolean})],dt.prototype,"openExternalDocumentInNewTab",void 0);$t([(0,Yt.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],dt.prototype,"noCustomComponent",void 0);$t([(0,Yt.property)({type:Boolean})],dt.prototype,"withManualResources",void 0);$t([(0,Yt.property)({type:Boolean})],dt.prototype,"navigatorOnline",void 0);$t([(0,Yt.property)({type:Boolean})],dt.prototype,"forcedOffline",void 0);$t([(0,Yt.property)({type:Object})],dt.prototype,"apiProvider",void 0);$t([(0,ye.jsonProperty)([])],dt.prototype,"messageContexts",void 0);$t([(0,ye.jsonProperty)(void 0)],dt.prototype,"session",void 0);$t([(0,Yt.state)()],dt.prototype,"localesConfiguration",void 0);var nu=g(q());function vp(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var o,i,n;if(Array.isArray(e)){if(o=e.length,o!=t.length)return!1;for(i=o;i--!==0;)if(!ti(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!ti(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let a=s=>Object.keys(s).filter(c=>s[c]!=null);if(n=a(e),o=n.length,o!==a(t).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(i=o;i--!==0;){let s=n[i];if(!ti(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function ti(e,t){try{return vp(e,t)}catch{return!1}}function ei(e,t){return!ti(e,t)}var xp=g(q(),1);var ri=class{constructor(){this.queue=[]}add(t,o=!1){o&&(this.queue=this.queue.filter(i=>i.type!==t.type)),this.queue.push(t)}consume(t){let o=this.queue.find(i=>i.type===t);return o&&(this.queue=this.queue.filter(i=>i!==o)),o}};var mo=g(q(),1);var Oc=g(q(),1);function Cc(e,t){let o=()=>JSON.parse(JSON.stringify(e));return(0,Oc.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:ei,...t??{}})}var oi=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((o,i)=>{this.resolvePromise=o,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,o;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>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 Ec=g(B(),1);var ii=window,Sp=ii.ShadowRoot&&(ii.ShadyCSS===void 0||ii.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ex=Symbol();var wc=(e,t)=>{Sp?e.adoptedStyleSheets=t.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):t.forEach(o=>{let i=document.createElement("style"),n=ii.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,e.appendChild(i)})};var ni=class extends Ec.LitElement{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let o={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(o);return wc(i,t.elementStyles),i}};var ai=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},Tc,Ac=Symbol("constructorPrototype"),Rc=Symbol("constructorName"),Nc=Symbol("exportpartsDebouncer"),Ic=Symbol("dynamicDependenciesLoaded"),Qe=class extends ni{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Tc]=new oi(5),this[Rc]=this.constructor.name,this[Ac]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rc]&&Object.setPrototypeOf(this,this[Ac])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let t=this.constructor;t[Ic]||(t[Ic]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){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(t.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)}}scheduleExportpartsUpdate(){var t,o,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&i!==void 0&&i)&&this[Nc].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)})}setExportpartsAttribute(t){var o,i,n,a,s,c;let u=b=>b!=null&&b.trim().length>0,p=t.filter(u).map(b=>b.trim());if(p.length===0){this.removeAttribute("exportparts");return}let y=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 x=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...x,...S).filter(u).map(O=>O.trim()).forEach(O=>y.add(O))}if(y.size===0){this.removeAttribute("exportparts");return}let f=[...y.values()].flatMap(b=>p.map(x=>`${b}:${x}--${b}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};Tc=Nc;ai([(0,mo.property)()],Qe.prototype,"exportpartsPrefix",void 0);ai([Cc([])],Qe.prototype,"exportpartsPrefixes",void 0);ai([(0,mo.property)()],Qe.prototype,"customStylesheet",void 0);ai([(0,mo.state)()],Qe.prototype,"useAdoptedStyleSheets",void 0);function go(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var _c,kc,Lc,bo=Symbol("internalReduxEventsUnsubscribers"),Je=Symbol("internalStoresUnsubscribers"),wr=Symbol("internalStores"),vo=class extends Qe{constructor(){super(...arguments),this[_c]=new Map,this[kc]=new Map,this[Lc]=new Map}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(o=>t.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[wr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[wr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[wr].get(t)}addStore(t,o){var i;o=(i=o??(go(t)?t.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(o),this[wr].set(o,t),this.subscribeToStore(o,t),this.updateFromStores()}removeStore(t){let o=typeof t=="string"?t:t.name;this.unsubscribeFromStore(o),this[wr].delete(o)}setupStores(){this.unsubscribeFromStores(),this[wr].forEach((t,o)=>this.subscribeToStore(o,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,o)=>{let i=this.constructor.getPropertyOptions(o);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:o)){let n=this.getStore(t.store);n&&(t.store?this[Je].has(t.store):this[Je].size>0)&&(this[o]=t.selector(n.getState(),this))}})}subscribeToStore(t,o){var i;this[Je].set(t,o.subscribe(()=>this.updateFromStores())),this[bo].set(t,[]),go(o)&&o.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||o.name===n.store)){let s=c=>this[a](c);o.addEventListener(n.eventName,s),this[bo].get(t).push(()=>o.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Je].forEach((t,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(t){var o;this[Je].has(t)&&this[Je].get(t)(),this[Je].delete(t),(o=this[bo].get(t))===null||o===void 0||o.forEach(i=>i()),this[bo].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};_c=Je,kc=wr,Lc=bo;vo.reduxProperties=new Map;vo.reduxReactiveProperties=new Set;vo.reduxEventListeners=new Map;function le(e){for(var t=arguments.length,o=Array(t>1?t-1:0),i=1;i<t;i++)o[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+e+(o.length?" "+o.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Me(e){return!!e&&!!e[at]}function me(e){var t;return!!e&&(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)===Tp}(e)||Array.isArray(e)||!!e[Uc]||!!(!((t=e.constructor)===null||t===void 0)&&t[Uc])||$n(e)||Bn(e))}function Er(e,t,o){o===void 0&&(o=!1),Zr(e)===0?(o?Object.keys:Kr)(e).forEach(function(i){o&&typeof i=="symbol"||t(i,e[i],e)}):e.forEach(function(i,n){return t(n,i,e)})}function Zr(e){var t=e[at];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:$n(e)?2:Bn(e)?3:0}function jr(e,t){return Zr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Op(e,t){return Zr(e)===2?e.get(t):e[t]}function Wc(e,t,o){var i=Zr(e);i===2?e.set(t,o):i===3?e.add(o):e[t]=o}function zc(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function $n(e){return Rp&&e instanceof Map}function Bn(e){return Ip&&e instanceof Set}function tr(e){return e.o||e.t}function Mn(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Gc(e);delete t[at];for(var o=Kr(t),i=0;i<o.length;i++){var n=o[i],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[n]})}return Object.create(Object.getPrototypeOf(e),t)}function Fn(e,t){return t===void 0&&(t=!1),Un(e)||Me(e)||!me(e)||(Zr(e)>1&&(e.set=e.add=e.clear=e.delete=Cp),Object.freeze(e),t&&Er(e,function(o,i){return Fn(i,!0)},!0)),e}function Cp(){le(2)}function Un(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ae(e){var t=Dn[e];return t||le(18,e),t}function wp(e,t){Dn[e]||(Dn[e]=t)}function kn(){return So}function In(e,t){t&&(Ae("Patches"),e.u=[],e.s=[],e.v=t)}function si(e){Ln(e),e.p.forEach(Ep),e.p=null}function Ln(e){e===So&&(So=e.l)}function Pc(e){return So={p:[],l:So,h:e,m:!0,_:0}}function Ep(e){var t=e[at];t.i===0||t.i===1?t.j():t.g=!0}function Tn(e,t){t._=t.p.length;var o=t.p[0],i=e!==void 0&&e!==o;return t.h.O||Ae("ES5").S(t,e,i),i?(o[at].P&&(si(t),le(4)),me(e)&&(e=li(t,e),t.l||ci(t,e)),t.u&&Ae("Patches").M(o[at].t,e,t.u,t.s)):e=li(t,o,[]),si(t),t.u&&t.v(t.u,t.s),e!==Vc?e:void 0}function li(e,t,o){if(Un(t))return t;var i=t[at];if(!i)return Er(t,function(c,u){return Dc(e,i,t,c,u,o)},!0),t;if(i.A!==e)return t;if(!i.P)return ci(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Mn(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),Er(a,function(c,u){return Dc(e,i,n,c,u,o,s)}),ci(e,n,!1),o&&e.u&&Ae("Patches").N(i,o,e.u,e.s)}return i.o}function Dc(e,t,o,i,n,a,s){if(Me(n)){var c=li(e,n,a&&t&&t.i!==3&&!jr(t.R,i)?a.concat(i):void 0);if(Wc(o,i,c),!Me(c))return;e.m=!1}else s&&o.add(n);if(me(n)&&!Un(n)){if(!e.h.D&&e._<1)return;li(e,n),t&&t.A.l||ci(e,n)}}function ci(e,t,o){o===void 0&&(o=!1),!e.l&&e.h.D&&e.m&&Fn(t,o)}function Nn(e,t){var o=e[at];return(o?tr(o):e)[t]}function $c(e,t){if(t in e)for(var o=Object.getPrototypeOf(e);o;){var i=Object.getOwnPropertyDescriptor(o,t);if(i)return i;o=Object.getPrototypeOf(o)}}function er(e){e.P||(e.P=!0,e.l&&er(e.l))}function _n(e){e.o||(e.o=Mn(e.t))}function Pn(e,t,o){var i=$n(t)?Ae("MapSet").F(t,o):Bn(t)?Ae("MapSet").T(t,o):e.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:kn(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},u=c,p=Oo;s&&(u=[c],p=xo);var y=Proxy.revocable(u,p),f=y.revoke,b=y.proxy;return c.k=b,c.j=f,b}(t,o):Ae("ES5").J(t,o);return(o?o.A:kn()).p.push(i),i}function Ap(e){return Me(e)||le(22,e),function t(o){if(!me(o))return o;var i,n=o[at],a=Zr(o);if(n){if(!n.P&&(n.i<4||!Ae("ES5").K(n)))return n.t;n.I=!0,i=Bc(o,a),n.I=!1}else i=Bc(o,a);return Er(i,function(s,c){n&&Op(n.t,s)===c||Wc(i,s,t(c))}),a===3?new Set(i):i}(e)}function Bc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Mn(e)}function Hc(){function e(s,c){var u=a[s];return u?u.enumerable=c:a[s]=u={configurable:!0,enumerable:c,get:function(){var p=this[at];return Oo.get(p,s)},set:function(p){var y=this[at];Oo.set(y,s,p)}},u}function t(s){for(var c=s.length-1;c>=0;c--){var u=s[c][at];if(!u.P)switch(u.i){case 5:i(u)&&er(u);break;case 4:o(u)&&er(u)}}}function o(s){for(var c=s.t,u=s.k,p=Kr(u),y=p.length-1;y>=0;y--){var f=p[y];if(f!==at){var b=c[f];if(b===void 0&&!jr(c,f))return!0;var x=u[f],S=x&&x[at];if(S?S.t!==b:!zc(x,b))return!0}}var O=!!c[at];return p.length!==Kr(c).length+(O?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&le(3,JSON.stringify(tr(s)))}var a={};wp("ES5",{J:function(s,c){var u=Array.isArray(s),p=function(f,b){if(f){for(var x=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(x,""+S,e(S,!0));return x}var O=Gc(b);delete O[at];for(var _=Kr(O),I=0;I<_.length;I++){var N=_[I];O[N]=e(N,f||!!O[N].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(u,s),y={i:u?5:4,A:c?c.A:kn(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,at,{value:y,writable:!0}),p},S:function(s,c,u){u?Me(c)&&c[at].A===s&&t(s.p):(s.u&&function p(y){if(y&&typeof y=="object"){var f=y[at];if(f){var b=f.t,x=f.k,S=f.R,O=f.i;if(O===4)Er(x,function(W){W!==at&&(b[W]!==void 0||jr(b,W)?S[W]||p(x[W]):(S[W]=!0,er(f)))}),Er(b,function(W){x[W]!==void 0||jr(x,W)||(S[W]=!1,er(f))});else if(O===5){if(i(f)&&(er(f),S.length=!0),x.length<b.length)for(var _=x.length;_<b.length;_++)S[_]=!1;else for(var I=b.length;I<x.length;I++)S[I]=!0;for(var N=Math.min(x.length,b.length),$=0;$<N;$++)x.hasOwnProperty($)||(S[$]=!0),S[$]===void 0&&p(x[$])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?o(s):i(s)}})}var Mc,So,Wn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Rp=typeof Map<"u",Ip=typeof Set<"u",Fc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Vc=Wn?Symbol.for("immer-nothing"):((Mc={})["immer-nothing"]=!0,Mc),Uc=Wn?Symbol.for("immer-draftable"):"__$immer_draftable",at=Wn?Symbol.for("immer-state"):"__$immer_state";var Tp=""+Object.prototype.constructor,Kr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Gc=Object.getOwnPropertyDescriptors||function(e){var t={};return Kr(e).forEach(function(o){t[o]=Object.getOwnPropertyDescriptor(e,o)}),t},Dn={},Oo={get:function(e,t){if(t===at)return e;var o=tr(e);if(!jr(o,t))return function(n,a,s){var c,u=$c(a,s);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(n.k):void 0}(e,o,t);var i=o[t];return e.I||!me(i)?i:i===Nn(e.t,t)?(_n(e),e.o[t]=Pn(e.A.h,i,e)):i},has:function(e,t){return t in tr(e)},ownKeys:function(e){return Reflect.ownKeys(tr(e))},set:function(e,t,o){var i=$c(tr(e),t);if(i?.set)return i.set.call(e.k,o),!0;if(!e.P){var n=Nn(tr(e),t),a=n?.[at];if(a&&a.t===o)return e.o[t]=o,e.R[t]=!1,!0;if(zc(o,n)&&(o!==void 0||jr(e.t,t)))return!0;_n(e),er(e)}return e.o[t]===o&&(o!==void 0||t in e.o)||Number.isNaN(o)&&Number.isNaN(e.o[t])||(e.o[t]=o,e.R[t]=!0),!0},deleteProperty:function(e,t){return Nn(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,_n(e),er(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var o=tr(e),i=Reflect.getOwnPropertyDescriptor(o,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:o[t]}},defineProperty:function(){le(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){le(12)}},xo={};Er(Oo,function(e,t){xo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),xo.deleteProperty=function(e,t){return xo.set.call(this,e,t,void 0)},xo.set=function(e,t,o){return Oo.set.call(this,e[0],t,o,e[0])};var Np=function(){function e(o){var i=this;this.O=Fc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var u=i;return function(O){var _=this;O===void 0&&(O=c);for(var I=arguments.length,N=Array(I>1?I-1:0),$=1;$<I;$++)N[$-1]=arguments[$];return u.produce(O,function(W){var z;return(z=a).call.apply(z,[_,W].concat(N))})}}var p;if(typeof a!="function"&&le(6),s!==void 0&&typeof s!="function"&&le(7),me(n)){var y=Pc(i),f=Pn(i,n,void 0),b=!0;try{p=a(f),b=!1}finally{b?si(y):Ln(y)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return In(y,s),Tn(O,y)},function(O){throw si(y),O}):(In(y,s),Tn(p,y))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Vc&&(p=void 0),i.D&&Fn(p,!0),s){var x=[],S=[];Ae("Patches").M(n,p,x,S),s(x,S)}return p}le(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var y=arguments.length,f=Array(y>1?y-1:0),b=1;b<y;b++)f[b-1]=arguments[b];return i.produceWithPatches(p,function(x){return n.apply(void 0,[x].concat(f))})};var s,c,u=i.produce(n,a,function(p,y){s=p,c=y});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,c]}):[u,s,c]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var t=e.prototype;return t.createDraft=function(o){me(o)||le(8),Me(o)&&(o=Ap(o));var i=Pc(this),n=Pn(this,o,void 0);return n[at].C=!0,Ln(i),n},t.finishDraft=function(o,i){var n=o&&o[at],a=n.A;return In(a,i),Tn(void 0,a)},t.setAutoFreeze=function(o){this.D=o},t.setUseProxies=function(o){o&&!Fc&&le(20),this.O=o},t.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=Ae("Patches").$;return Me(o)?s(o,i):this.produce(o,function(c){return s(c,i)})},e}(),oe=new Np,_p=oe.produce,Bx=oe.produceWithPatches.bind(oe),Mx=oe.setAutoFreeze.bind(oe),Fx=oe.setUseProxies.bind(oe),Ux=oe.applyPatches.bind(oe),Wx=oe.createDraft.bind(oe),zx=oe.finishDraft.bind(oe),di=_p;function rr(e){"@babel/helpers - typeof";return rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rr(e)}function zn(e,t){if(rr(e)!=="object"||e===null)return e;var o=e[Symbol.toPrimitive];if(o!==void 0){var i=o.call(e,t||"default");if(rr(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hn(e){var t=zn(e,"string");return rr(t)==="symbol"?t:String(t)}function Vn(e,t,o){return t=Hn(t),t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function jc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),o.push.apply(o,i)}return o}function pi(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?arguments[t]:{};t%2?jc(Object(o),!0).forEach(function(i){Vn(e,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):jc(Object(o)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(o,i))})}return e}function Bt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Kc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Gn=function(){return Math.random().toString(36).substring(7).split("").join(".")},ui={INIT:"@@redux/INIT"+Gn(),REPLACE:"@@redux/REPLACE"+Gn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Gn()}};function kp(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function jn(e,t,o){var i;if(typeof t=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Bt(0));if(typeof t=="function"&&typeof o>"u"&&(o=t,t=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Bt(1));return o(jn)(e,t)}if(typeof e!="function")throw new Error(Bt(2));var n=e,a=t,s=[],c=s,u=!1;function p(){c===s&&(c=s.slice())}function y(){if(u)throw new Error(Bt(3));return a}function f(O){if(typeof O!="function")throw new Error(Bt(4));if(u)throw new Error(Bt(5));var _=!0;return p(),c.push(O),function(){if(_){if(u)throw new Error(Bt(6));_=!1,p();var N=c.indexOf(O);c.splice(N,1),s=null}}}function b(O){if(!kp(O))throw new Error(Bt(7));if(typeof O.type>"u")throw new Error(Bt(8));if(u)throw new Error(Bt(9));try{u=!0,a=n(a,O)}finally{u=!1}for(var _=s=c,I=0;I<_.length;I++){var N=_[I];N()}return O}function x(O){if(typeof O!="function")throw new Error(Bt(10));n=O,b({type:ui.REPLACE})}function S(){var O,_=f;return O={subscribe:function(N){if(typeof N!="object"||N===null)throw new Error(Bt(11));function $(){N.next&&N.next(y())}$();var W=_($);return{unsubscribe:W}}},O[Kc]=function(){return this},O}return b({type:ui.INIT}),i={dispatch:b,subscribe:f,getState:y,replaceReducer:x},i[Kc]=S,i}function Lp(e){Object.keys(e).forEach(function(t){var o=e[t],i=o(void 0,{type:ui.INIT});if(typeof i>"u")throw new Error(Bt(12));if(typeof o(void 0,{type:ui.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Bt(13))})}function Zc(e){for(var t=Object.keys(e),o={},i=0;i<t.length;i++){var n=t[i];typeof e[n]=="function"&&(o[n]=e[n])}var a=Object.keys(o),s,c;try{Lp(o)}catch(u){c=u}return function(p,y){if(p===void 0&&(p={}),c)throw c;if(0)var f;for(var b=!1,x={},S=0;S<a.length;S++){var O=a[S],_=o[O],I=p[O],N=_(I,y);if(typeof N>"u"){var $=y&&y.type;throw new Error(Bt(14))}x[O]=N,b=b||N!==I}return b=b||a.length!==Object.keys(p).length,b?x:p}}function qr(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function qc(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Bt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=t.map(function(u){return u(s)});return a=qr.apply(void 0,c)(n.dispatch),pi(pi({},n),{},{dispatch:a})}}}function Yc(e){var t=function(i){var n=i.dispatch,a=i.getState;return function(s){return function(c){return typeof c=="function"?c(n,a,e):s(c)}}};return t}var Xc=Yc();Xc.withExtraArgument=Yc;var Kn=Xc;var rd=function(){var e=function(t,o){return e=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])},e(t,o)};return function(t,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");e(t,o);function i(){this.constructor=t}t.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)}}(),Pp=function(e,t){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(p){return function(y){return u([p,y])}}function u(p){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=t.call(e,o)}catch(y){p=[6,y],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Yr=function(e,t){for(var o=0,i=t.length,n=e.length;o<i;o++,n++)e[n]=t[o];return e},Dp=Object.defineProperty,$p=Object.defineProperties,Bp=Object.getOwnPropertyDescriptors,Qc=Object.getOwnPropertySymbols,Mp=Object.prototype.hasOwnProperty,Fp=Object.prototype.propertyIsEnumerable,Jc=function(e,t,o){return t in e?Dp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o},or=function(e,t){for(var o in t||(t={}))Mp.call(t,o)&&Jc(e,o,t[o]);if(Qc)for(var i=0,n=Qc(t);i<n.length;i++){var o=n[i];Fp.call(t,o)&&Jc(e,o,t[o])}return e},Zn=function(e,t){return $p(e,Bp(t))},Up=function(e,t,o){return new Promise(function(i,n){var a=function(u){try{c(o.next(u))}catch(p){n(p)}},s=function(u){try{c(o.throw(u))}catch(p){n(p)}},c=function(u){return u.done?i(u.value):Promise.resolve(u.value).then(a,s)};c((o=o.apply(e,t)).next())})};var Wp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qr:qr.apply(null,arguments)},a0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function zp(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var o=t;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return t===o}var Hp=function(e){rd(t,e);function t(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=e.apply(this,o)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,Yr([void 0],o[0].concat(this)))):new(t.bind.apply(t,Yr([void 0],o.concat(this))))},t}(Array),Vp=function(e){rd(t,e);function t(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=e.apply(this,o)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return e.prototype.concat.apply(this,o)},t.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(t.bind.apply(t,Yr([void 0],o[0].concat(this)))):new(t.bind.apply(t,Yr([void 0],o.concat(this))))},t}(Array);function Xn(e){return me(e)?di(e,function(){}):e}function Gp(e){return typeof e=="boolean"}function jp(){return function(t){return Kp(t)}}function Kp(e){e===void 0&&(e={});var t=e.thunk,o=t===void 0?!0:t,i=e.immutableCheck,n=i===void 0?!0:i,a=e.serializableCheck,s=a===void 0?!0:a,c=new Hp;if(o&&(Gp(o)?c.push(Kn):c.push(Kn.withExtraArgument(o.extraArgument))),0){if(n)var u;if(s)var p}return c}var qn=!0;function od(e){var t=jp(),o=e||{},i=o.reducer,n=i===void 0?void 0:i,a=o.middleware,s=a===void 0?t():a,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,y=p===void 0?void 0:p,f=o.enhancers,b=f===void 0?void 0:f,x;if(typeof n=="function")x=n;else if(zp(n))x=Zc(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 S=s;if(typeof S=="function"&&(S=S(t),!qn&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!qn&&S.some(function(W){return typeof W!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=qc.apply(void 0,S),_=qr;u&&(_=Wp(or({trace:!qn},typeof u=="object"&&u)));var I=new Vp(O),N=I;Array.isArray(b)?N=Yr([O],b):typeof b=="function"&&(N=b(I));var $=_.apply(void 0,N);return jn(x,y,$)}function ir(e,t){function o(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var a=t.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return or(or({type:e,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:e,payload:i[0]}}return o.toString=function(){return""+e},o.type=e,o.match=function(i){return i.type===e},o}function id(e){var t={},o=[],i,n={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[c]=s,n},addMatcher:function(a,s){return o.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return i=a,n}};return e(n),[t,o,i]}function Zp(e){return typeof e=="function"}function qp(e,t,o,i){o===void 0&&(o=[]);var n=typeof t=="function"?id(t):[t,o,i],a=n[0],s=n[1],c=n[2],u;if(Zp(e))u=function(){return Xn(e())};else{var p=Xn(e);u=function(){return p}}function y(f,b){f===void 0&&(f=u());var x=Yr([a[b.type]],s.filter(function(S){var O=S.matcher;return O(b)}).map(function(S){var O=S.reducer;return O}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,O){if(O)if(Me(S)){var _=S,I=O(_,b);return I===void 0?S:I}else{if(me(S))return di(S,function(N){return O(N,b)});var I=O(S,b);if(I===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return S},f)}return y.getInitialState=u,y}function Yp(e,t){return e+"/"+t}function nd(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof e.initialState=="function"?e.initialState:Xn(e.initialState),i=e.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(y){var f=i[y],b=Yp(t,y),x,S;"reducer"in f?(x=f.reducer,S=f.prepare):x=f,a[y]=x,s[b]=x,c[y]=S?ir(b,S):ir(b)});function u(){var y=typeof e.extraReducers=="function"?id(e.extraReducers):[e.extraReducers],f=y[0],b=f===void 0?{}:f,x=y[1],S=x===void 0?[]:x,O=y[2],_=O===void 0?void 0:O,I=or(or({},b),s);return qp(o,function(N){for(var $ in I)N.addCase($,I[$]);for(var W=0,z=S;W<z.length;W++){var Gt=z[W];N.addMatcher(Gt.matcher,Gt.reducer)}_&&N.addDefaultCase(_)})}var p;return{name:t,reducer:function(y,f){return p||(p=u()),p(y,f)},actions:c,caseReducers:a,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Xp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Qp=function(e){e===void 0&&(e=21);for(var t="",o=e;o--;)t+=Xp[Math.random()*64|0];return t},Jp=["name","message","stack","code"],Yn=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),td=function(){function e(t,o){this.payload=t,this.meta=o}return e}(),tu=function(e){if(typeof e=="object"&&e!==null){for(var t={},o=0,i=Jp;o<i.length;o++){var n=i[o];typeof e[n]=="string"&&(t[n]=e[n])}return t}return{message:String(e)}},d0=function(){function e(t,o,i){var n=ir(t+"/fulfilled",function(y,f,b,x){return{payload:y,meta:Zn(or({},x||{}),{arg:b,requestId:f,requestStatus:"fulfilled"})}}),a=ir(t+"/pending",function(y,f,b){return{payload:void 0,meta:Zn(or({},b||{}),{arg:f,requestId:y,requestStatus:"pending"})}}),s=ir(t+"/rejected",function(y,f,b,x,S){return{payload:x,error:(i&&i.serializeError||tu)(y||"Rejected"),meta:Zn(or({},S||{}),{arg:b,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),c=!1,u=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function p(y){return function(f,b,x){var S=i?.idGenerator?i.idGenerator(y):Qp(),O=new u,_,I=!1;function N(W){_=W,O.abort()}var $=function(){return Up(this,null,function(){var W,z,Gt,ve,Ut,xe,Rt;return Pp(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),ve=(W=i?.condition)==null?void 0:W.call(i,y,{getState:b,extra:x}),ru(ve)?[4,ve]:[3,2];case 1:ve=m.sent(),m.label=2;case 2:if(ve===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,Ut=new Promise(function(v,L){return O.signal.addEventListener("abort",function(){return L({name:"AbortError",message:_||"Aborted"})})}),f(a(S,y,(z=i?.getPendingMeta)==null?void 0:z.call(i,{requestId:S,arg:y},{getState:b,extra:x}))),[4,Promise.race([Ut,Promise.resolve(o(y,{dispatch:f,getState:b,extra:x,requestId:S,signal:O.signal,abort:N,rejectWithValue:function(v,L){return new Yn(v,L)},fulfillWithValue:function(v,L){return new td(v,L)}})).then(function(v){if(v instanceof Yn)throw v;return v instanceof td?n(v.payload,S,y,v.meta):n(v,S,y)})])];case 3:return Gt=m.sent(),[3,5];case 4:return xe=m.sent(),Gt=xe instanceof Yn?s(null,S,y,xe.payload,xe.meta):s(xe,S,y),[3,5];case 5:return Rt=i&&!i.dispatchConditionRejection&&s.match(Gt)&&Gt.meta.condition,Rt||f(Gt),[2,Gt]}})})}();return Object.assign($,{abort:N,requestId:S,arg:y,unwrap:function(){return $.then(eu)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return e.withTypes=function(){return e},e}();function eu(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function ru(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ad="listener",sd="completed",ld="cancelled",p0="task-"+ld,u0="task-"+sd,f0=ad+"-"+ld,h0=ad+"-"+sd;var Qn="listenerMiddleware";var y0=ir(Qn+"/add"),m0=ir(Qn+"/removeAll"),g0=ir(Qn+"/remove");var ed,b0=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(ed||(ed=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},ou=function(e){return function(t){setTimeout(t,e)}},v0=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ou(10);Hc();function iu(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??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)}}}var fi=class extends iu(Object){};window.ftReduxStores||(window.ftReduxStores={});var cd=class e extends fi{static get(t){var o;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[i];if(go(a))return a;if(n==null)return;let s=nd({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),c=od({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});return window.ftReduxStores[n.name]=new e(s,c)}constructor(t,o){super(),this.reduxSlice=t,this.reduxStore=o,this.isFtReduxStore=!0,this.commands=new ri;let i=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,a,s)=>{let c=a,u=n[c];return u?(...p)=>{let y=u(...p.map(i));return this.reduxStore.dispatch(y),y}:p=>{this.setState({[c]:i(p)})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}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(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var gi=g(R());var hi=class extends Ee{async listMySearches(){let t=T.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var yi=class extends Ee{async listMyBookmarks(){let t=T.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var au="ft-user-assets",mi=gi.FtReduxStore.get({name:au,initialState:{savedSearches:void 0,bookmarks:void 0}}),Jn=class{constructor(){this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new yi,this.savedSearchesService=new hi,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:o}=T.getState();(0,gi.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),mi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),mi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();mi.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let o=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;mi.actions.bookmarks(o)}}},dd=new Jn;var ta=class{addCommand(t,o=!1){T.commands.add(t,o)}consumeCommand(t){return T.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new ta;var pd=g(R()),ea=class{highlightHtml(t,o,i){(0,pd.highlightHtml)(t,o,i)}};window.FluidTopicsHighlightHtmlService=new ea;var ud=g(R());var ra=class{isDate(t){var o,i,n,a;return(a=(n=((i=(o=T.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]).find(c=>c.key===t))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(t,o){var i,n,a;return ud.DateFormatter.format(t,(i=o?.locale)!==null&&i!==void 0?i:T.getState().uiLocale,(n=o?.longFormat)!==null&&n!==void 0?n:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ra;var su=g(R());(0,fd.customElement)("ft-app-context")(dt);var yd=g(q()),lu=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},oa=Symbol("i18nAttributes"),ia=Symbol("i18nListAttributes"),Ar=Symbol("i18nProperties"),na=Symbol("i18nManualContexts"),Co=Symbol("i18nUnsubs");function nr(e){var t,o;class i extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?xc:Cr}i18n(a,s,...c){var u;if(typeof a=="string")return this.i18nService.resolveMessage(a,s,...c);let p=(u=a.args)!==null&&u!==void 0?u:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...p)}onI18nUpdate(a){var s,c,u;(s=this[oa])===null||s===void 0||s.forEach((p,y)=>{let f=this.getI18nAttributeValue(y);f&&(this[y]=this.getI18nAttributeMessage(f,p,a))}),(c=this[ia])===null||c===void 0||c.forEach((p,y)=>{let f=this.getI18nListAttributeValues(y);this[y]=f?.map(b=>this.getI18nAttributeMessage(b,p,a))}),(u=this[Ar])===null||u===void 0||u.forEach((p,y)=>{p.context.toLowerCase()===a.toLowerCase()&&(this[y]=this.i18n(p))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,s){return{...a,message:this.i18n({context:a.context,key:a.key,...s})}}getI18nAttributeMessage(a,s,c){var u;let p=!c||((u=a.context)===null||u===void 0?void 0:u.toLowerCase())===c.toLowerCase();return a.context&&a.key&&p?this.buildI18nAttributeMessage(a,s):a}update(a){var s,c,u;super.update(a),(s=this[oa])===null||s===void 0||s.forEach((p,y)=>{let f=this.getI18nAttributeValue(y);f?.context&&f.key&&(a.has(y)||p.argsProvider!=null)&&(this.addI18nContextIfNeeded(f,a,y),this[y]=this.getI18nAttributeMessage(f,p))}),(c=this[ia])===null||c===void 0||c.forEach((p,y)=>{let f=this.getI18nListAttributeValues(y);(a.has(y)||p.argsProvider!=null)&&(this[y]=f?.map(b=>(this.addI18nContextIfNeeded(b,a,y),this.getI18nAttributeMessage(b,p))))}),(u=this[Ar])===null||u===void 0||u.forEach((p,y)=>{p.argsProvider!=null&&(this[y]=this.i18n(p))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,s,c){a.context&&a.key&&s.has(c)&&this.addI18nContext(a.context)}addI18nMessagesAndSubscribe(a,s){a=a.toLowerCase(),this[Co].has(a)||this[Co].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,s??{}),this.onI18nUpdate(a)}connectedCallback(){var a,s,c,u,p,y;super.connectedCallback(),new Set([...(s=(a=this[Ar])===null||a===void 0?void 0:a.values())!==null&&s!==void 0?s:[],...[...(u=(c=this[oa])===null||c===void 0?void 0:c.keys())!==null&&u!==void 0?u:[]].map(f=>this.getI18nAttributeValue(f)),...[...(y=(p=this[ia])===null||p===void 0?void 0:p.keys())!==null&&y!==void 0?y:[]].flatMap(f=>this.getI18nListAttributeValues(f))].map(f=>f?.context)).forEach(f=>f&&this.addI18nMessages(f)),this[na].forEach((f,b)=>{this.addI18nMessages(b,f)})}addI18nMessages(a,s){this[na].set(a,s??{}),this.addI18nMessagesAndSubscribe(a,s)}addI18nContext(a,s){this.addI18nMessages(typeof a=="string"?a:a.name,s)}disconnectedCallback(){super.disconnectedCallback(),this[Co].forEach(a=>a()),this[Co].clear()}}return t=na,o=Co,lu([(0,yd.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}var hd=class extends nr(vi.FtLitElement){},bi=class extends nr(vi.FtLitElementRedux){};var wo=function(e,t,o,i){var n=arguments.length,a=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,o):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,o,i);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(a=(n<3?s(a):n>3?s(t,o,a):s(t,o))||a);return n>3&&a&&Object.defineProperty(t,o,a),a},ge=class extends bi{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":xi.nothing:xi.html`
|
|
1575
|
+
`}update(e){var o,i,n,a,s;super.update(e),e.has("baseUrl")&&(T.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&T.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&T.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&T.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&T.actions.noCustom(this.noCustom),e.has("editorMode")&&T.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&T.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&T.actions.session(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(c=>Cr.addContext(c)),e.has("openExternalDocumentInNewTab")&&T.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&T.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&T.actions.forcedOffline(this.forcedOffline),e.has("localesConfiguration")&&(T.actions.defaultLocales((o=this.localesConfiguration)===null||o===void 0?void 0:o.defaultLocales),T.actions.availableUiLocales((n=(i=this.localesConfiguration)===null||i===void 0?void 0:i.availableUiLocales)!==null&&n!==void 0?n:[]),T.actions.searchInAllLanguagesAllowed((s=(a=this.localesConfiguration)===null||a===void 0?void 0:a.allLanguagesAllowed)!==null&&s!==void 0?s:!1)),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.session==null&&this.updateSession(),this.metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration())}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())}};de.elementDefinitions={};de.styles=Oc;$e([(0,Ye.property)()],de.prototype,"baseUrl",void 0);$e([(0,Ye.property)()],de.prototype,"apiIntegrationIdentifier",void 0);$e([(0,Ye.property)()],de.prototype,"uiLocale",void 0);$e([(0,yt.jsonProperty)(null)],de.prototype,"availableUiLocales",void 0);$e([(0,yt.jsonProperty)(null)],de.prototype,"metadataConfiguration",void 0);$e([(0,Ye.property)({type:Boolean})],de.prototype,"editorMode",void 0);$e([(0,Ye.property)({type:Boolean})],de.prototype,"noCustom",void 0);$e([(0,Ye.property)({type:Boolean})],de.prototype,"openExternalDocumentInNewTab",void 0);$e([(0,Ye.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],de.prototype,"noCustomComponent",void 0);$e([(0,Ye.property)({type:Boolean})],de.prototype,"withManualResources",void 0);$e([(0,Ye.property)({type:Boolean})],de.prototype,"navigatorOnline",void 0);$e([(0,Ye.property)({type:Boolean})],de.prototype,"forcedOffline",void 0);$e([(0,Ye.property)({type:Object})],de.prototype,"apiProvider",void 0);$e([(0,yt.jsonProperty)([])],de.prototype,"messageContexts",void 0);$e([(0,yt.jsonProperty)(void 0)],de.prototype,"session",void 0);$e([(0,Ye.state)()],de.prototype,"localesConfiguration",void 0);var du=g(q());function Ep(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,i,n;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(i=o;i--!==0;)if(!ti(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(!ti(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(!ti(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ti(t,e){try{return Ep(t,e)}catch{return!1}}function ri(t,e){return!ti(t,e)}var wp=g(q(),1);var oi=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(i=>i.type!==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}};var mo=g(q(),1);var Ac=g(q(),1);function Rc(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,Ac.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:ri,...e??{}})}var ii=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 Tc=g(M(),1);var ni=window,Ap=ni.ShadowRoot&&(ni.ShadyCSS===void 0||ni.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Tx=Symbol();var _c=(t,e)=>{Ap?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let i=document.createElement("style"),n=ni.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i)})};var ai=class extends Tc.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 _c(i,e.elementStyles),i}};var si=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},kc,Ic=Symbol("constructorPrototype"),Nc=Symbol("constructorName"),Pc=Symbol("exportpartsDebouncer"),Lc=Symbol("dynamicDependenciesLoaded"),Qt=class extends ai{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[kc]=new ii(5),this[Nc]=this.constructor.name,this[Ic]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Nc]&&Object.setPrototypeOf(this,this[Ic])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(o){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",o)}let e=this.constructor;e[Lc]||(e[Lc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var 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)}}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[Pc].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)})}setExportpartsAttribute(e){var o,i,n,a,s,c;let u=b=>b!=null&&b.trim().length>0,p=e.filter(u).map(b=>b.trim());if(p.length===0){this.removeAttribute("exportparts");return}let y=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 x=(a=(n=b.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],S=(c=(s=b.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...x,...S).filter(u).map(O=>O.trim()).forEach(O=>y.add(O))}if(y.size===0){this.removeAttribute("exportparts");return}let f=[...y.values()].flatMap(b=>p.map(x=>`${b}:${x}--${b}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};kc=Pc;si([(0,mo.property)()],Qt.prototype,"exportpartsPrefix",void 0);si([Rc([])],Qt.prototype,"exportpartsPrefixes",void 0);si([(0,mo.property)()],Qt.prototype,"customStylesheet",void 0);si([(0,mo.state)()],Qt.prototype,"useAdoptedStyleSheets",void 0);function go(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Dc,$c,Bc,bo=Symbol("internalReduxEventsUnsubscribers"),Jt=Symbol("internalStoresUnsubscribers"),Er=Symbol("internalStores"),vo=class extends Qt{constructor(){super(...arguments),this[Dc]=new Map,this[$c]=new Map,this[Bc]=new Map}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Er].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Er].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Er].get(e)}addStore(e,o){var i;o=(i=o??(go(e)?e.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(o),this[Er].set(o,e),this.subscribeToStore(o,e),this.updateFromStores()}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Er].delete(o)}setupStores(){this.unsubscribeFromStores(),this[Er].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let i=this.constructor.getPropertyOptions(o);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:o)){let n=this.getStore(e.store);n&&(e.store?this[Jt].has(e.store):this[Jt].size>0)&&(this[o]=e.selector(n.getState(),this))}})}subscribeToStore(e,o){var i;this[Jt].set(e,o.subscribe(()=>this.updateFromStores())),this[bo].set(e,[]),go(o)&&o.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||o.name===n.store)){let s=c=>this[a](c);o.addEventListener(n.eventName,s),this[bo].get(e).push(()=>o.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Jt].forEach((e,o)=>this.unsubscribeFromStore(o))}unsubscribeFromStore(e){var o;this[Jt].has(e)&&this[Jt].get(e)(),this[Jt].delete(e),(o=this[bo].get(e))===null||o===void 0||o.forEach(i=>i()),this[bo].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Dc=Jt,$c=Er,Bc=bo;vo.reduxProperties=new Map;vo.reduxReactiveProperties=new Set;vo.reduxEventListeners=new Map;function ct(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 Ut(t){return!!t&&!!t[ae]}function mt(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)===Pp}(t)||Array.isArray(t)||!!t[Vc]||!!(!((e=t.constructor)===null||e===void 0)&&e[Vc])||$n(t)||Bn(t))}function wr(t,e,o){o===void 0&&(o=!1),Zr(t)===0?(o?Object.keys:Kr)(t).forEach(function(i){o&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Zr(t){var e=t[ae];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:$n(t)?2:Bn(t)?3:0}function jr(t,e){return Zr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Rp(t,e){return Zr(t)===2?t.get(e):t[e]}function Gc(t,e,o){var i=Zr(t);i===2?t.set(e,o):i===3?t.add(o):t[e]=o}function jc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function $n(t){return Lp&&t instanceof Map}function Bn(t){return kp&&t instanceof Set}function er(t){return t.o||t.t}function Mn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=qc(t);delete e[ae];for(var o=Kr(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 Un(t,e){return e===void 0&&(e=!1),Fn(t)||Ut(t)||!mt(t)||(Zr(t)>1&&(t.set=t.add=t.clear=t.delete=_p),Object.freeze(t),e&&wr(t,function(o,i){return Un(i,!0)},!0)),t}function _p(){ct(2)}function Fn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function At(t){var e=Dn[t];return e||ct(18,t),e}function Tp(t,e){Dn[t]||(Dn[t]=e)}function Ln(){return So}function _n(t,e){e&&(At("Patches"),t.u=[],t.s=[],t.v=e)}function li(t){kn(t),t.p.forEach(Ip),t.p=null}function kn(t){t===So&&(So=t.l)}function Mc(t){return So={p:[],l:So,h:t,m:!0,_:0}}function Ip(t){var e=t[ae];e.i===0||e.i===1?e.j():e.g=!0}function Tn(t,e){e._=e.p.length;var o=e.p[0],i=t!==void 0&&t!==o;return e.h.O||At("ES5").S(e,t,i),i?(o[ae].P&&(li(e),ct(4)),mt(t)&&(t=ci(e,t),e.l||di(e,t)),e.u&&At("Patches").M(o[ae].t,t,e.u,e.s)):t=ci(e,o,[]),li(e),e.u&&e.v(e.u,e.s),t!==Zc?t:void 0}function ci(t,e,o){if(Fn(e))return e;var i=e[ae];if(!i)return wr(e,function(c,u){return Uc(t,i,e,c,u,o)},!0),e;if(i.A!==t)return e;if(!i.P)return di(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=Mn(i.k):i.o,a=n,s=!1;i.i===3&&(a=new Set(n),n.clear(),s=!0),wr(a,function(c,u){return Uc(t,i,n,c,u,o,s)}),di(t,n,!1),o&&t.u&&At("Patches").N(i,o,t.u,t.s)}return i.o}function Uc(t,e,o,i,n,a,s){if(Ut(n)){var c=ci(t,n,a&&e&&e.i!==3&&!jr(e.R,i)?a.concat(i):void 0);if(Gc(o,i,c),!Ut(c))return;t.m=!1}else s&&o.add(n);if(mt(n)&&!Fn(n)){if(!t.h.D&&t._<1)return;ci(t,n),e&&e.A.l||di(t,n)}}function di(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&Un(e,o)}function In(t,e){var o=t[ae];return(o?er(o):t)[e]}function Fc(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 tr(t){t.P||(t.P=!0,t.l&&tr(t.l))}function Nn(t){t.o||(t.o=Mn(t.t))}function Pn(t,e,o){var i=$n(e)?At("MapSet").F(e,o):Bn(e)?At("MapSet").T(e,o):t.O?function(n,a){var s=Array.isArray(n),c={i:s?1:0,A:a?a.A:Ln(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},u=c,p=Oo;s&&(u=[c],p=xo);var y=Proxy.revocable(u,p),f=y.revoke,b=y.proxy;return c.k=b,c.j=f,b}(e,o):At("ES5").J(e,o);return(o?o.A:Ln()).p.push(i),i}function Np(t){return Ut(t)||ct(22,t),function e(o){if(!mt(o))return o;var i,n=o[ae],a=Zr(o);if(n){if(!n.P&&(n.i<4||!At("ES5").K(n)))return n.t;n.I=!0,i=Wc(o,a),n.I=!1}else i=Wc(o,a);return wr(i,function(s,c){n&&Rp(n.t,s)===c||Gc(i,s,e(c))}),a===3?new Set(i):i}(t)}function Wc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Mn(t)}function Kc(){function t(s,c){var u=a[s];return u?u.enumerable=c:a[s]=u={configurable:!0,enumerable:c,get:function(){var p=this[ae];return Oo.get(p,s)},set:function(p){var y=this[ae];Oo.set(y,s,p)}},u}function e(s){for(var c=s.length-1;c>=0;c--){var u=s[c][ae];if(!u.P)switch(u.i){case 5:i(u)&&tr(u);break;case 4:o(u)&&tr(u)}}}function o(s){for(var c=s.t,u=s.k,p=Kr(u),y=p.length-1;y>=0;y--){var f=p[y];if(f!==ae){var b=c[f];if(b===void 0&&!jr(c,f))return!0;var x=u[f],S=x&&x[ae];if(S?S.t!==b:!jc(x,b))return!0}}var O=!!c[ae];return p.length!==Kr(c).length+(O?0:1)}function i(s){var c=s.k;if(c.length!==s.t.length)return!0;var u=Object.getOwnPropertyDescriptor(c,c.length-1);if(u&&!u.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function n(s){s.g&&ct(3,JSON.stringify(er(s)))}var a={};Tp("ES5",{J:function(s,c){var u=Array.isArray(s),p=function(f,b){if(f){for(var x=Array(b.length),S=0;S<b.length;S++)Object.defineProperty(x,""+S,t(S,!0));return x}var O=qc(b);delete O[ae];for(var N=Kr(O),_=0;_<N.length;_++){var I=N[_];O[I]=t(I,f||!!O[I].enumerable)}return Object.create(Object.getPrototypeOf(b),O)}(u,s),y={i:u?5:4,A:c?c.A:Ln(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,ae,{value:y,writable:!0}),p},S:function(s,c,u){u?Ut(c)&&c[ae].A===s&&e(s.p):(s.u&&function p(y){if(y&&typeof y=="object"){var f=y[ae];if(f){var b=f.t,x=f.k,S=f.R,O=f.i;if(O===4)wr(x,function(W){W!==ae&&(b[W]!==void 0||jr(b,W)?S[W]||p(x[W]):(S[W]=!0,tr(f)))}),wr(b,function(W){x[W]!==void 0||jr(x,W)||(S[W]=!1,tr(f))});else if(O===5){if(i(f)&&(tr(f),S.length=!0),x.length<b.length)for(var N=x.length;N<b.length;N++)S[N]=!1;else for(var _=b.length;_<x.length;_++)S[_]=!0;for(var I=Math.min(x.length,b.length),$=0;$<I;$++)x.hasOwnProperty($)||(S[$]=!0),S[$]===void 0&&p(x[$])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?o(s):i(s)}})}var zc,So,Wn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Lp=typeof Map<"u",kp=typeof Set<"u",Hc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Zc=Wn?Symbol.for("immer-nothing"):((zc={})["immer-nothing"]=!0,zc),Vc=Wn?Symbol.for("immer-draftable"):"__$immer_draftable",ae=Wn?Symbol.for("immer-state"):"__$immer_state";var Pp=""+Object.prototype.constructor,Kr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,qc=Object.getOwnPropertyDescriptors||function(t){var e={};return Kr(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},Dn={},Oo={get:function(t,e){if(e===ae)return t;var o=er(t);if(!jr(o,e))return function(n,a,s){var c,u=Fc(a,s);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(n.k):void 0}(t,o,e);var i=o[e];return t.I||!mt(i)?i:i===In(t.t,e)?(Nn(t),t.o[e]=Pn(t.A.h,i,t)):i},has:function(t,e){return e in er(t)},ownKeys:function(t){return Reflect.ownKeys(er(t))},set:function(t,e,o){var i=Fc(er(t),e);if(i?.set)return i.set.call(t.k,o),!0;if(!t.P){var n=In(er(t),e),a=n?.[ae];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(jc(o,n)&&(o!==void 0||jr(t.t,e)))return!0;Nn(t),tr(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 In(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Nn(t),tr(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=er(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:o[e]}},defineProperty:function(){ct(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ct(12)}},xo={};wr(Oo,function(t,e){xo[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),xo.deleteProperty=function(t,e){return xo.set.call(this,t,e,void 0)},xo.set=function(t,e,o){return Oo.set.call(this,t[0],e,o,t[0])};var Dp=function(){function t(o){var i=this;this.O=Hc,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var c=a;a=n;var u=i;return function(O){var N=this;O===void 0&&(O=c);for(var _=arguments.length,I=Array(_>1?_-1:0),$=1;$<_;$++)I[$-1]=arguments[$];return u.produce(O,function(W){var z;return(z=a).call.apply(z,[N,W].concat(I))})}}var p;if(typeof a!="function"&&ct(6),s!==void 0&&typeof s!="function"&&ct(7),mt(n)){var y=Mc(i),f=Pn(i,n,void 0),b=!0;try{p=a(f),b=!1}finally{b?li(y):kn(y)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(O){return _n(y,s),Tn(O,y)},function(O){throw li(y),O}):(_n(y,s),Tn(p,y))}if(!n||typeof n!="object"){if((p=a(n))===void 0&&(p=n),p===Zc&&(p=void 0),i.D&&Un(p,!0),s){var x=[],S=[];At("Patches").M(n,p,x,S),s(x,S)}return p}ct(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(p){for(var y=arguments.length,f=Array(y>1?y-1:0),b=1;b<y;b++)f[b-1]=arguments[b];return i.produceWithPatches(p,function(x){return n.apply(void 0,[x].concat(f))})};var s,c,u=i.produce(n,a,function(p,y){s=p,c=y});return typeof Promise<"u"&&u instanceof Promise?u.then(function(p){return[p,s,c]}):[u,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){mt(o)||ct(8),Ut(o)&&(o=Np(o));var i=Mc(this),n=Pn(this,o,void 0);return n[ae].C=!0,kn(i),n},e.finishDraft=function(o,i){var n=o&&o[ae],a=n.A;return _n(a,i),Tn(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Hc&&ct(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=At("Patches").$;return Ut(o)?s(o,i):this.produce(o,function(c){return s(c,i)})},t}(),ot=new Dp,$p=ot.produce,Wx=ot.produceWithPatches.bind(ot),zx=ot.setAutoFreeze.bind(ot),Hx=ot.setUseProxies.bind(ot),Vx=ot.applyPatches.bind(ot),Gx=ot.createDraft.bind(ot),jx=ot.finishDraft.bind(ot),pi=$p;function rr(t){"@babel/helpers - typeof";return rr=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},rr(t)}function zn(t,e){if(rr(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,e||"default");if(rr(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Hn(t){var e=zn(t,"string");return rr(e)==="symbol"?e:String(e)}function Vn(t,e,o){return e=Hn(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Yc(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 ui(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Yc(Object(o),!0).forEach(function(i){Vn(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Yc(Object(o)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))})}return t}function Be(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 Xc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Gn=function(){return Math.random().toString(36).substring(7).split("").join(".")},fi={INIT:"@@redux/INIT"+Gn(),REPLACE:"@@redux/REPLACE"+Gn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Gn()}};function Bp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function jn(t,e,o){var i;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Be(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Be(1));return o(jn)(t,e)}if(typeof t!="function")throw new Error(Be(2));var n=t,a=e,s=[],c=s,u=!1;function p(){c===s&&(c=s.slice())}function y(){if(u)throw new Error(Be(3));return a}function f(O){if(typeof O!="function")throw new Error(Be(4));if(u)throw new Error(Be(5));var N=!0;return p(),c.push(O),function(){if(N){if(u)throw new Error(Be(6));N=!1,p();var I=c.indexOf(O);c.splice(I,1),s=null}}}function b(O){if(!Bp(O))throw new Error(Be(7));if(typeof O.type>"u")throw new Error(Be(8));if(u)throw new Error(Be(9));try{u=!0,a=n(a,O)}finally{u=!1}for(var N=s=c,_=0;_<N.length;_++){var I=N[_];I()}return O}function x(O){if(typeof O!="function")throw new Error(Be(10));n=O,b({type:fi.REPLACE})}function S(){var O,N=f;return O={subscribe:function(I){if(typeof I!="object"||I===null)throw new Error(Be(11));function $(){I.next&&I.next(y())}$();var W=N($);return{unsubscribe:W}}},O[Xc]=function(){return this},O}return b({type:fi.INIT}),i={dispatch:b,subscribe:f,getState:y,replaceReducer:x},i[Xc]=S,i}function Mp(t){Object.keys(t).forEach(function(e){var o=t[e],i=o(void 0,{type:fi.INIT});if(typeof i>"u")throw new Error(Be(12));if(typeof o(void 0,{type:fi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Be(13))})}function Qc(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{Mp(o)}catch(u){c=u}return function(p,y){if(p===void 0&&(p={}),c)throw c;if(0)var f;for(var b=!1,x={},S=0;S<a.length;S++){var O=a[S],N=o[O],_=p[O],I=N(_,y);if(typeof I>"u"){var $=y&&y.type;throw new Error(Be(14))}x[O]=I,b=b||I!==_}return b=b||a.length!==Object.keys(p).length,b?x:p}}function qr(){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 Jc(){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(Be(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(u){return u(s)});return a=qr.apply(void 0,c)(n.dispatch),ui(ui({},n),{},{dispatch:a})}}}function ed(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 td=ed();td.withExtraArgument=ed;var Kn=td;var ad=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)}}(),Up=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(p){return function(y){return u([p,y])}}function u(p){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(a=p[0]&2?n.return:p[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,p[1])).done)return a;switch(n=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return o.label++,{value:p[1],done:!1};case 5:o.label++,n=p[1],p=[0];continue;case 7:p=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){o=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){o.label=p[1];break}if(p[0]===6&&o.label<a[1]){o.label=a[1],a=p;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(p);break}a[2]&&o.ops.pop(),o.trys.pop();continue}p=e.call(t,o)}catch(y){p=[6,y],n=0}finally{i=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Yr=function(t,e){for(var o=0,i=e.length,n=t.length;o<i;o++,n++)t[n]=e[o];return t},Fp=Object.defineProperty,Wp=Object.defineProperties,zp=Object.getOwnPropertyDescriptors,rd=Object.getOwnPropertySymbols,Hp=Object.prototype.hasOwnProperty,Vp=Object.prototype.propertyIsEnumerable,od=function(t,e,o){return e in t?Fp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},or=function(t,e){for(var o in e||(e={}))Hp.call(e,o)&&od(t,o,e[o]);if(rd)for(var i=0,n=rd(e);i<n.length;i++){var o=n[i];Vp.call(e,o)&&od(t,o,e[o])}return t},Zn=function(t,e){return Wp(t,zp(e))},Gp=function(t,e,o){return new Promise(function(i,n){var a=function(u){try{c(o.next(u))}catch(p){n(p)}},s=function(u){try{c(o.throw(u))}catch(p){n(p)}},c=function(u){return u.done?i(u.value):Promise.resolve(u.value).then(a,s)};c((o=o.apply(t,e)).next())})};var jp=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?qr:qr.apply(null,arguments)},d0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function Kp(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 Zp=function(t){ad(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,Yr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Yr([void 0],o.concat(this))))},e}(Array),qp=function(t){ad(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,Yr([void 0],o[0].concat(this)))):new(e.bind.apply(e,Yr([void 0],o.concat(this))))},e}(Array);function Xn(t){return mt(t)?pi(t,function(){}):t}function Yp(t){return typeof t=="boolean"}function Xp(){return function(e){return Qp(e)}}function Qp(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 Zp;if(o&&(Yp(o)?c.push(Kn):c.push(Kn.withExtraArgument(o.extraArgument))),0){if(n)var u;if(s)var p}return c}var qn=!0;function sd(t){var e=Xp(),o=t||{},i=o.reducer,n=i===void 0?void 0:i,a=o.middleware,s=a===void 0?e():a,c=o.devTools,u=c===void 0?!0:c,p=o.preloadedState,y=p===void 0?void 0:p,f=o.enhancers,b=f===void 0?void 0:f,x;if(typeof n=="function")x=n;else if(Kp(n))x=Qc(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 S=s;if(typeof S=="function"&&(S=S(e),!qn&&!Array.isArray(S)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!qn&&S.some(function(W){return typeof W!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Jc.apply(void 0,S),N=qr;u&&(N=jp(or({trace:!qn},typeof u=="object"&&u)));var _=new qp(O),I=_;Array.isArray(b)?I=Yr([O],b):typeof b=="function"&&(I=b(_));var $=N.apply(void 0,I);return jn(x,y,$)}function ir(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 or(or({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 ld(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 Jp(t){return typeof t=="function"}function eu(t,e,o,i){o===void 0&&(o=[]);var n=typeof e=="function"?ld(e):[e,o,i],a=n[0],s=n[1],c=n[2],u;if(Jp(t))u=function(){return Xn(t())};else{var p=Xn(t);u=function(){return p}}function y(f,b){f===void 0&&(f=u());var x=Yr([a[b.type]],s.filter(function(S){var O=S.matcher;return O(b)}).map(function(S){var O=S.reducer;return O}));return x.filter(function(S){return!!S}).length===0&&(x=[c]),x.reduce(function(S,O){if(O)if(Ut(S)){var N=S,_=O(N,b);return _===void 0?S:_}else{if(mt(S))return pi(S,function(I){return O(I,b)});var _=O(S,b);if(_===void 0){if(S===null)return S;throw Error("A case reducer on a non-draftable value must not return undefined")}return _}return S},f)}return y.getInitialState=u,y}function tu(t,e){return t+"/"+e}function cd(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:Xn(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},s={},c={};n.forEach(function(y){var f=i[y],b=tu(e,y),x,S;"reducer"in f?(x=f.reducer,S=f.prepare):x=f,a[y]=x,s[b]=x,c[y]=S?ir(b,S):ir(b)});function u(){var y=typeof t.extraReducers=="function"?ld(t.extraReducers):[t.extraReducers],f=y[0],b=f===void 0?{}:f,x=y[1],S=x===void 0?[]:x,O=y[2],N=O===void 0?void 0:O,_=or(or({},b),s);return eu(o,function(I){for(var $ in _)I.addCase($,_[$]);for(var W=0,z=S;W<z.length;W++){var Ge=z[W];I.addMatcher(Ge.matcher,Ge.reducer)}N&&I.addDefaultCase(N)})}var p;return{name:e,reducer:function(y,f){return p||(p=u()),p(y,f)},actions:c,caseReducers:a,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var ru="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ou=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=ru[Math.random()*64|0];return e},iu=["name","message","stack","code"],Yn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),id=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),nu=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,i=iu;o<i.length;o++){var n=i[o];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},h0=function(){function t(e,o,i){var n=ir(e+"/fulfilled",function(y,f,b,x){return{payload:y,meta:Zn(or({},x||{}),{arg:b,requestId:f,requestStatus:"fulfilled"})}}),a=ir(e+"/pending",function(y,f,b){return{payload:void 0,meta:Zn(or({},b||{}),{arg:f,requestId:y,requestStatus:"pending"})}}),s=ir(e+"/rejected",function(y,f,b,x,S){return{payload:x,error:(i&&i.serializeError||nu)(y||"Rejected"),meta:Zn(or({},S||{}),{arg:b,requestId:f,rejectedWithValue:!!x,requestStatus:"rejected",aborted:y?.name==="AbortError",condition:y?.name==="ConditionError"})}}),c=!1,u=typeof AbortController<"u"?AbortController:function(){function y(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return y.prototype.abort=function(){},y}();function p(y){return function(f,b,x){var S=i?.idGenerator?i.idGenerator(y):ou(),O=new u,N,_=!1;function I(W){N=W,O.abort()}var $=function(){return Gp(this,null,function(){var W,z,Ge,vt,Fe,xt,Re;return Up(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),vt=(W=i?.condition)==null?void 0:W.call(i,y,{getState:b,extra:x}),su(vt)?[4,vt]:[3,2];case 1:vt=m.sent(),m.label=2;case 2:if(vt===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return _=!0,Fe=new Promise(function(v,k){return O.signal.addEventListener("abort",function(){return k({name:"AbortError",message:N||"Aborted"})})}),f(a(S,y,(z=i?.getPendingMeta)==null?void 0:z.call(i,{requestId:S,arg:y},{getState:b,extra:x}))),[4,Promise.race([Fe,Promise.resolve(o(y,{dispatch:f,getState:b,extra:x,requestId:S,signal:O.signal,abort:I,rejectWithValue:function(v,k){return new Yn(v,k)},fulfillWithValue:function(v,k){return new id(v,k)}})).then(function(v){if(v instanceof Yn)throw v;return v instanceof id?n(v.payload,S,y,v.meta):n(v,S,y)})])];case 3:return Ge=m.sent(),[3,5];case 4:return xt=m.sent(),Ge=xt instanceof Yn?s(null,S,y,xt.payload,xt.meta):s(xt,S,y),[3,5];case 5:return Re=i&&!i.dispatchConditionRejection&&s.match(Ge)&&Ge.meta.condition,Re||f(Ge),[2,Ge]}})})}();return Object.assign($,{abort:I,requestId:S,arg:y,unwrap:function(){return $.then(au)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function au(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function su(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var dd="listener",pd="completed",ud="cancelled",y0="task-"+ud,m0="task-"+pd,g0=dd+"-"+ud,b0=dd+"-"+pd;var Qn="listenerMiddleware";var v0=ir(Qn+"/add"),x0=ir(Qn+"/removeAll"),S0=ir(Qn+"/remove");var nd,O0=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(nd||(nd=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},lu=function(t){return function(e){setTimeout(e,t)}},C0=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:lu(10);Kc();function cu(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)}}}var hi=class extends cu(Object){};window.ftReduxStores||(window.ftReduxStores={});var fd=class t extends hi{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(go(a))return a;if(n==null)return;let s=cd({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),c=sd({reducer:(u,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...u,...p.overwrites}:s.reducer(u,p)});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 oi;let n=a=>a!=null?JSON.parse(JSON.stringify(a)):a;this.actions=new Proxy(this.reduxSlice.actions,{get:(a,s,c)=>{let u=s,p=a[u];return p?(...y)=>{let f=p(...y.map(n));return this.reduxStore.dispatch(f),f}:y=>{this.setState({[u]:n(y)})}}}),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 bi=g(R());var yi=class extends wt{async listMySearches(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var mi=class extends wt{async listMyBookmarks(){let e=T.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var pu="ft-user-assets",gi=bi.FtReduxStore.get({name:pu,initialState:{savedSearches:void 0,bookmarks:void 0}}),Jn=class{constructor(){this.currentSession=T.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new mi,this.savedSearchesService=new yi,T.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=T.getState();(0,bi.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),gi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),gi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();gi.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;gi.actions.bookmarks(o)}}},hd=new Jn;var ea=class{addCommand(e,o=!1){T.commands.add(e,o)}consumeCommand(e){return T.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ea;var yd=g(R()),ta=class{highlightHtml(e,o,i){(0,yd.highlightHtml)(e,o,i)}};window.FluidTopicsHighlightHtmlService=new ta;var md=g(R());var ra=class{isDate(e){var o,i,n,a;return(a=(n=((i=(o=T.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 md.DateFormatter.format(e,(i=o?.locale)!==null&&i!==void 0?i:T.getState().uiLocale,(n=o?.longFormat)!==null&&n!==void 0?n:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new ra;var uu=g(R());(0,gd.customElement)("ft-app-context")(de);var vd=g(q()),fu=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},oa=Symbol("i18nAttributes"),ia=Symbol("i18nListAttributes"),Ar=Symbol("i18nProperties"),na=Symbol("i18nManualContexts"),Co=Symbol("i18nUnsubs");function nr(t){var e,o;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?Ec:Cr}i18n(a,s,...c){var u;if(typeof a=="string")return this.i18nService.resolveMessage(a,s,...c);let p=(u=a.args)!==null&&u!==void 0?u:a.argsProvider?a.argsProvider(this):[];return this.i18nService.resolveMessage(a.context,a.key,...p)}onI18nUpdate(a){var s,c,u;(s=this[oa])===null||s===void 0||s.forEach((p,y)=>{let f=this.getI18nAttributeValue(y);f&&(this[y]=this.getI18nAttributeMessage(f,p,a))}),(c=this[ia])===null||c===void 0||c.forEach((p,y)=>{let f=this.getI18nListAttributeValues(y);this[y]=f?.map(b=>this.getI18nAttributeMessage(b,p,a))}),(u=this[Ar])===null||u===void 0||u.forEach((p,y)=>{p.context.toLowerCase()===a.toLowerCase()&&(this[y]=this.i18n(p))}),setTimeout(()=>this.requestUpdate(),0)}buildI18nAttributeMessage(a,s){return{...a,message:this.i18n({context:a.context,key:a.key,...s})}}getI18nAttributeMessage(a,s,c){var u;let p=!c||((u=a.context)===null||u===void 0?void 0:u.toLowerCase())===c.toLowerCase();return a.context&&a.key&&p?this.buildI18nAttributeMessage(a,s):a}update(a){var s,c,u;super.update(a),(s=this[oa])===null||s===void 0||s.forEach((p,y)=>{let f=this.getI18nAttributeValue(y);f?.context&&f.key&&(a.has(y)||p.argsProvider!=null)&&(this.addI18nContextIfNeeded(f,a,y),this[y]=this.getI18nAttributeMessage(f,p))}),(c=this[ia])===null||c===void 0||c.forEach((p,y)=>{let f=this.getI18nListAttributeValues(y);(a.has(y)||p.argsProvider!=null)&&(this[y]=f?.map(b=>(this.addI18nContextIfNeeded(b,a,y),this.getI18nAttributeMessage(b,p))))}),(u=this[Ar])===null||u===void 0||u.forEach((p,y)=>{p.argsProvider!=null&&(this[y]=this.i18n(p))})}getI18nAttributeValue(a){return this[a]}getI18nListAttributeValues(a){return this[a]}addI18nContextIfNeeded(a,s,c){a.context&&a.key&&s.has(c)&&this.addI18nContext(a.context)}addI18nMessagesAndSubscribe(a,s){a=a.toLowerCase(),this[Co].has(a)||this[Co].set(a,this.i18nService.subscribe(a,()=>this.onI18nUpdate(a))),this.i18nService.prepareContext(a,s??{}),this.onI18nUpdate(a)}connectedCallback(){var a,s,c,u,p,y;super.connectedCallback(),new Set([...(s=(a=this[Ar])===null||a===void 0?void 0:a.values())!==null&&s!==void 0?s:[],...[...(u=(c=this[oa])===null||c===void 0?void 0:c.keys())!==null&&u!==void 0?u:[]].map(f=>this.getI18nAttributeValue(f)),...[...(y=(p=this[ia])===null||p===void 0?void 0:p.keys())!==null&&y!==void 0?y:[]].flatMap(f=>this.getI18nListAttributeValues(f))].map(f=>f?.context)).forEach(f=>f&&this.addI18nMessages(f)),this[na].forEach((f,b)=>{this.addI18nMessages(b,f)})}addI18nMessages(a,s){this[na].set(a,s??{}),this.addI18nMessagesAndSubscribe(a,s)}addI18nContext(a,s){this.addI18nMessages(typeof a=="string"?a:a.name,s)}disconnectedCallback(){super.disconnectedCallback(),this[Co].forEach(a=>a()),this[Co].clear()}}return e=na,o=Co,fu([(0,vd.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}var bd=class extends nr(xi.FtLitElement){},vi=class extends nr(xi.FtLitElementRedux){};var Eo=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},gt=class extends vi{constructor(){super(),this.editorMode=!1,this.addStore(T)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Si.nothing:Si.html`
|
|
1572
1576
|
<span class="ft-i18n">
|
|
1573
1577
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1574
1578
|
</span>
|
|
1575
|
-
`}update(
|
|
1579
|
+
`}update(e){var o;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(o=this.defaultMessage)!==null&&o!==void 0?o:""})}};gt.elementDefinitions={};gt.styles=xc;Eo([(0,Ci.redux)()],gt.prototype,"editorMode",void 0);Eo([(0,Oi.property)()],gt.prototype,"context",void 0);Eo([(0,Oi.property)()],gt.prototype,"key",void 0);Eo([(0,Ci.jsonProperty)([])],gt.prototype,"args",void 0);Eo([(0,Oi.property)()],gt.prototype,"defaultMessage",void 0);var ar=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(o,i)=>{let n=i;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(o,i)=>(...n)=>Cr.resolveMessage(this.name,i,...n)}),this.rawMessages=new Proxy({},{get:(o,i)=>Cr.resolveRawMessage(this.name,i)})}};var Ei=(t,e)=>(o,i)=>{var n,a;o.constructor.createProperty(i,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:i};o[Ar]=(a=o[Ar])!==null&&a!==void 0?a:new Map,o[Ar].set(i,s)};(0,xd.customElement)("ft-i18n")(gt);var G=ar.build("integratedFeedbackComponent"),Sd={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var sa=g(R());var Xe=g(M()),V=g(q()),_d=g(It());var wi=t=>t??ve;var sr=g(R());var Od=g(M()),D=g(R());var B={fontSize:D.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:D.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:D.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:D.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:D.FtCssVariableFactory.extend("--ft-text-field-helper-color","",D.designSystemVariables.colorOnSurfaceMedium),colorPrimary:D.FtCssVariableFactory.external(D.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:D.FtCssVariableFactory.external(D.designSystemVariables.borderRadiusS,"Design system"),colorError:D.FtCssVariableFactory.external(D.designSystemVariables.colorError,"Design system"),prefixColor:D.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",D.designSystemVariables.colorOnSurfaceMedium),iconColor:D.FtCssVariableFactory.extend("--ft-text-field-icon-color","",D.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:D.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:D.FtCssVariableFactory.extend("--ft-text-field-background-color","",D.designSystemVariables.colorSurface),colorOutline:D.FtCssVariableFactory.external(D.designSystemVariables.colorOutline,"Design system"),elevation02:D.FtCssVariableFactory.external(D.designSystemVariables.elevation02,"Design system"),suggestSize:D.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Cd=Od.css`
|
|
1576
1580
|
*:focus {
|
|
1577
1581
|
outline: none;
|
|
1578
1582
|
}
|
|
@@ -1585,17 +1589,17 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1585
1589
|
}
|
|
1586
1590
|
|
|
1587
1591
|
ft-input-label {
|
|
1588
|
-
${(0,D.setVariable)(P.fontSize,
|
|
1589
|
-
${(0,D.setVariable)(P.raisedFontSize,
|
|
1590
|
-
${(0,D.setVariable)(P.verticalSpacing,
|
|
1591
|
-
${(0,D.setVariable)(P.horizontalSpacing,
|
|
1592
|
-
${(0,D.setVariable)(P.backgroundColor,
|
|
1592
|
+
${(0,D.setVariable)(P.fontSize,B.fontSize)};
|
|
1593
|
+
${(0,D.setVariable)(P.raisedFontSize,B.labelSize)};
|
|
1594
|
+
${(0,D.setVariable)(P.verticalSpacing,B.verticalSpacing)};
|
|
1595
|
+
${(0,D.setVariable)(P.horizontalSpacing,B.horizontalSpacing)};
|
|
1596
|
+
${(0,D.setVariable)(P.backgroundColor,B.backgroundColor)};
|
|
1593
1597
|
}
|
|
1594
1598
|
|
|
1595
1599
|
.ft-text-field--main-panel {
|
|
1596
1600
|
position: relative;
|
|
1597
1601
|
display: flex;
|
|
1598
|
-
height: calc(4 * ${
|
|
1602
|
+
height: calc(4 * ${B.verticalSpacing} + ${B.labelSize} + ${B.fontSize});
|
|
1599
1603
|
}
|
|
1600
1604
|
|
|
1601
1605
|
.ft-text-field--input-panel {
|
|
@@ -1604,24 +1608,24 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1604
1608
|
display: flex;
|
|
1605
1609
|
align-items: center;
|
|
1606
1610
|
overflow: hidden;
|
|
1607
|
-
padding: 0 ${
|
|
1611
|
+
padding: 0 ${B.horizontalSpacing};
|
|
1608
1612
|
|
|
1609
|
-
${(0,D.setVariable)(
|
|
1610
|
-
${(0,D.setVariable)(
|
|
1613
|
+
${(0,D.setVariable)(nt.fontSize,B.fontSize)};
|
|
1614
|
+
${(0,D.setVariable)(nt.lineHeight,B.fontSize)};
|
|
1611
1615
|
}
|
|
1612
1616
|
|
|
1613
1617
|
.ft-text-field--input-panel ft-ripple {
|
|
1614
|
-
${(0,D.setVariable)(
|
|
1615
|
-
${(0,D.setVariable)(
|
|
1618
|
+
${(0,D.setVariable)(E.opacityContentOnSurfaceHover,"0.08")};
|
|
1619
|
+
${(0,D.setVariable)(E.opacityContentOnSurfacePressed,"0.04")};
|
|
1616
1620
|
}
|
|
1617
1621
|
|
|
1618
1622
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
1619
1623
|
align-items: flex-end;
|
|
1620
|
-
padding: 0 ${
|
|
1624
|
+
padding: 0 ${B.horizontalSpacing} ${B.verticalSpacing} ${B.horizontalSpacing};
|
|
1621
1625
|
}
|
|
1622
1626
|
|
|
1623
1627
|
.ft-text-field--prefix {
|
|
1624
|
-
color: ${
|
|
1628
|
+
color: ${B.prefixColor};
|
|
1625
1629
|
margin-right: 2px;
|
|
1626
1630
|
flex-shrink: 1;
|
|
1627
1631
|
overflow: hidden;
|
|
@@ -1640,15 +1644,22 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1640
1644
|
flex-shrink: 1;
|
|
1641
1645
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
1642
1646
|
|
|
1643
|
-
color: ${
|
|
1644
|
-
padding: calc(2 * ${
|
|
1647
|
+
color: ${B.colorOnSurface};
|
|
1648
|
+
padding: calc(2 * ${B.verticalSpacing}) 0;
|
|
1645
1649
|
border: none;
|
|
1646
1650
|
background: none;
|
|
1651
|
+
|
|
1652
|
+
&:-webkit-autofill,
|
|
1653
|
+
&:-webkit-autofill:hover,
|
|
1654
|
+
&:-webkit-autofill:focus {
|
|
1655
|
+
-webkit-text-fill-color: ${B.colorOnSurface};
|
|
1656
|
+
transition: background-color 50000000s ease-in-out 100000s;
|
|
1657
|
+
}
|
|
1647
1658
|
}
|
|
1648
1659
|
|
|
1649
1660
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
1650
1661
|
padding-bottom: 0;
|
|
1651
|
-
padding-top: calc(${
|
|
1662
|
+
padding-top: calc(${B.labelSize} + 2 * ${B.verticalSpacing});
|
|
1652
1663
|
}
|
|
1653
1664
|
|
|
1654
1665
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -1657,37 +1668,37 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1657
1668
|
}
|
|
1658
1669
|
|
|
1659
1670
|
.ft-text-field--disabled .ft-text-field--input {
|
|
1660
|
-
color: ${
|
|
1671
|
+
color: ${B.colorOnSurfaceDisabled};
|
|
1661
1672
|
}
|
|
1662
1673
|
|
|
1663
1674
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
1664
|
-
${(0,D.setVariable)(P.borderColor,
|
|
1665
|
-
${(0,D.setVariable)(P.textColor,
|
|
1675
|
+
${(0,D.setVariable)(P.borderColor,B.colorPrimary)};
|
|
1676
|
+
${(0,D.setVariable)(P.textColor,B.colorPrimary)};
|
|
1666
1677
|
}
|
|
1667
1678
|
|
|
1668
1679
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
1669
|
-
border-radius: ${
|
|
1680
|
+
border-radius: ${B.borderRadiusS} ${B.borderRadiusS} 0 0;
|
|
1670
1681
|
}
|
|
1671
1682
|
|
|
1672
1683
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
1673
|
-
border-radius: ${
|
|
1684
|
+
border-radius: ${B.borderRadiusS};
|
|
1674
1685
|
}
|
|
1675
1686
|
|
|
1676
1687
|
.ft-text-field--helper-text {
|
|
1677
|
-
padding: 0 12px 0 ${
|
|
1678
|
-
color: ${
|
|
1688
|
+
padding: 0 12px 0 ${B.horizontalSpacing};
|
|
1689
|
+
color: ${B.helperColor};
|
|
1679
1690
|
}
|
|
1680
1691
|
|
|
1681
1692
|
.ft-text-field--in-error .ft-text-field--input,
|
|
1682
1693
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
1683
1694
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
1684
|
-
color: ${
|
|
1695
|
+
color: ${B.colorError};
|
|
1685
1696
|
}
|
|
1686
1697
|
|
|
1687
1698
|
.ft-text-field--icon {
|
|
1688
1699
|
align-self: center;
|
|
1689
1700
|
margin-left: 8px;
|
|
1690
|
-
color: ${
|
|
1701
|
+
color: ${B.iconColor};
|
|
1691
1702
|
}
|
|
1692
1703
|
|
|
1693
1704
|
.ft-text-field--container {
|
|
@@ -1698,13 +1709,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1698
1709
|
display: none;
|
|
1699
1710
|
flex-direction: column;
|
|
1700
1711
|
position: absolute;
|
|
1701
|
-
z-index: ${
|
|
1702
|
-
background: ${
|
|
1703
|
-
border: 1px solid ${
|
|
1704
|
-
border-radius: 0 0 ${
|
|
1705
|
-
box-shadow: ${
|
|
1712
|
+
z-index: ${B.floatingZIndex};
|
|
1713
|
+
background: ${B.backgroundColor};
|
|
1714
|
+
border: 1px solid ${B.colorOutline};
|
|
1715
|
+
border-radius: 0 0 ${B.borderRadiusS} ${B.borderRadiusS};
|
|
1716
|
+
box-shadow: ${B.elevation02};
|
|
1706
1717
|
outline: none;
|
|
1707
|
-
max-height: ${
|
|
1718
|
+
max-height: ${B.suggestSize};
|
|
1708
1719
|
overflow-y: auto;
|
|
1709
1720
|
}
|
|
1710
1721
|
|
|
@@ -1717,13 +1728,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1717
1728
|
}
|
|
1718
1729
|
|
|
1719
1730
|
.ft-text-field--with-icon {
|
|
1720
|
-
${(0,D.setVariable)(P.labelMaxWidth,`calc(100% - ${
|
|
1731
|
+
${(0,D.setVariable)(P.labelMaxWidth,`calc(100% - ${Se.size} - ${P.horizontalSpacing})`)};
|
|
1721
1732
|
}
|
|
1722
1733
|
|
|
1723
1734
|
.ft-text-field--with-password ft-icon:hover {
|
|
1724
1735
|
cursor: pointer;
|
|
1725
1736
|
}
|
|
1726
|
-
`;var
|
|
1737
|
+
`;var Ad=g(R()),wo=g(M()),Rr=g(q());var Ed=g(M());var wd=Ed.css`
|
|
1727
1738
|
.ft-text-field-suggestion {
|
|
1728
1739
|
position: relative;
|
|
1729
1740
|
padding: 8px 16px;
|
|
@@ -1753,30 +1764,30 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1753
1764
|
}
|
|
1754
1765
|
|
|
1755
1766
|
.ft-text-field-suggestion--helper-text {
|
|
1756
|
-
color: ${
|
|
1767
|
+
color: ${B.helperColor};
|
|
1757
1768
|
}
|
|
1758
1769
|
|
|
1759
1770
|
slot {
|
|
1760
1771
|
pointer-events: none;
|
|
1761
1772
|
}
|
|
1762
|
-
`;var
|
|
1763
|
-
<div class=${(0,
|
|
1773
|
+
`;var Rd=g(It()),Ai=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},aa=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},dt=class extends Ad.FtLitElement{render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return wo.html`
|
|
1774
|
+
<div class=${(0,Rd.classMap)(e)}
|
|
1764
1775
|
tabindex="-1"
|
|
1765
1776
|
@keydown=${this.onKeyDown}
|
|
1766
1777
|
@click=${this.confirmSuggestion}>
|
|
1767
1778
|
<ft-ripple></ft-ripple>
|
|
1768
|
-
${this.helper?
|
|
1779
|
+
${this.helper?wo.html`
|
|
1769
1780
|
<ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
|
|
1770
1781
|
${this.helper}
|
|
1771
|
-
</ft-typography>`:
|
|
1782
|
+
</ft-typography>`:wo.nothing}
|
|
1772
1783
|
<ft-typography part="label"
|
|
1773
1784
|
variant="body1"
|
|
1774
1785
|
class="ft-text-field-suggestion--label">
|
|
1775
1786
|
<slot></slot>
|
|
1776
1787
|
</ft-typography>
|
|
1777
1788
|
</div>
|
|
1778
|
-
`}focus(
|
|
1779
|
-
<div class="${(0,
|
|
1789
|
+
`}focus(e){var o;(o=this.container)===null||o===void 0||o.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new aa(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};dt.elementDefinitions={"ft-ripple":j,"ft-typography":fe,"ft-icon":xe};dt.styles=wd;Ai([(0,Rr.property)()],dt.prototype,"value",void 0);Ai([(0,Rr.property)()],dt.prototype,"helper",void 0);Ai([(0,Rr.query)(".ft-text-field-suggestion")],dt.prototype,"container",void 0);Ai([(0,Rr.queryAssignedNodes)()],dt.prototype,"assignedNodes",void 0);var Z=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},F=class extends(0,sr.toFtFormComponent)(sr.FtLitElement,"textbox"){get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let o=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",o)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}constructor(){super(),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=br.EYE_SLASH,this.passwordRevealedIcon=br.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}render(){let e={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":this.hideSuggestions||this.visibleSuggestions.length==0,"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()};return Xe.html`
|
|
1790
|
+
<div class="${(0,_d.classMap)(e)}">
|
|
1780
1791
|
<div class="ft-text-field--main-panel"
|
|
1781
1792
|
@keydown=${this.handleKeyboardNavigation}
|
|
1782
1793
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -1786,15 +1797,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1786
1797
|
?raised=${this.focused||this.value!=""}
|
|
1787
1798
|
?error=${this.error}></ft-input-label>
|
|
1788
1799
|
<div class="ft-text-field--input-panel">
|
|
1789
|
-
${this.outlined?
|
|
1800
|
+
${this.outlined?Xe.nothing:Xe.html`
|
|
1790
1801
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1791
1802
|
`}
|
|
1792
|
-
${this.prefix?
|
|
1803
|
+
${this.prefix?Xe.html`
|
|
1793
1804
|
<ft-typography class="ft-text-field--prefix" variant="body1">
|
|
1794
1805
|
${this.prefix}
|
|
1795
1806
|
</ft-typography>
|
|
1796
|
-
`:
|
|
1797
|
-
<input type=${
|
|
1807
|
+
`:Xe.nothing}
|
|
1808
|
+
<input type=${this.resolveInputType()}
|
|
1798
1809
|
name=${wi(this.name)}
|
|
1799
1810
|
maxlength=${wi(this.maxLength||void 0)}
|
|
1800
1811
|
aria-label="${this.label}"
|
|
@@ -1811,40 +1822,40 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1811
1822
|
<div class="ft-text-field--suggestions"
|
|
1812
1823
|
@suggestion-selected=${this.onSuggestionSelected}>
|
|
1813
1824
|
<slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
|
|
1814
|
-
${this.filterSuggestions&&this.value&&this.value!=""?
|
|
1825
|
+
${this.filterSuggestions&&this.value&&this.value!=""?Xe.html`
|
|
1815
1826
|
<ft-text-field-suggestion class="ft-text-field-suggestion--new-value" helper="${this.suggestionsHelper}">
|
|
1816
1827
|
${this.value}
|
|
1817
1828
|
</ft-text-field-suggestion>
|
|
1818
|
-
`:
|
|
1829
|
+
`:Xe.nothing}
|
|
1819
1830
|
</div>
|
|
1820
1831
|
</div>
|
|
1821
|
-
${this.helper?
|
|
1832
|
+
${this.helper?Xe.html`
|
|
1822
1833
|
<ft-typography class="ft-text-field--helper-text" variant="caption">
|
|
1823
1834
|
${this.helper}
|
|
1824
1835
|
</ft-typography>
|
|
1825
|
-
`:
|
|
1836
|
+
`:Xe.nothing}
|
|
1826
1837
|
</div>
|
|
1827
|
-
`}renderPasswordIcon(){return
|
|
1838
|
+
`}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderPasswordIcon(){return Xe.html`
|
|
1828
1839
|
<ft-icon class="ft-text-field--icon"
|
|
1829
1840
|
.variant=${this.iconVariant}
|
|
1830
1841
|
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
1831
1842
|
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
1832
|
-
`}renderIcon(){return this.
|
|
1843
|
+
`}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?Xe.html`
|
|
1833
1844
|
<ft-icon class="ft-text-field--icon"
|
|
1834
1845
|
.variant=${this.iconVariant}
|
|
1835
1846
|
.value=${this.icon}
|
|
1836
|
-
@click=${()=>{var
|
|
1837
|
-
`:Xt.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0),t.has("visibleSuggestions")&&this.visibleSuggestions.length&&this.setSuggestionPosition()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.suggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition()}setValue(t,o=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),o&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var o;let i=((o=this.input)===null||o===void 0?void 0:o.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var o;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(o=this.visibleSuggestions[n])===null||o===void 0||o.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var o;this.setValue(t.detail,!0),(o=this.input)===null||o===void 0||o.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,o;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((o=this.input)===null||o===void 0?void 0:o.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let t=["bottom","top"];(0,sr.computeFlipOffsetPosition)(this.mainPanel,this.suggestionsContainer,"bottom",t,"fixed",0).then(({x:o,y:i})=>{this.suggestionsContainer.style.left=`${o}px`,this.suggestionsContainer.style.top=`${i}px`})}};U.elementDefinitions={"ft-input-label":Vt,"ft-ripple":j,"ft-typography":ft,"ft-icon":xt,"ft-text-field-suggestion":ce};U.styles=[Pr,sr.noTextInputDefaultClearButton,vd];Z([(0,V.property)()],U.prototype,"label",void 0);Z([(0,V.property)({noAccessor:!0})],U.prototype,"value",null);Z([(0,V.state)()],U.prototype,"dispatchedValue",void 0);Z([(0,V.property)()],U.prototype,"helper",void 0);Z([(0,V.property)()],U.prototype,"suggestionsHelper",void 0);Z([(0,V.property)({type:Boolean})],U.prototype,"outlined",void 0);Z([(0,V.property)({type:Boolean})],U.prototype,"disabled",void 0);Z([(0,V.property)({type:Boolean})],U.prototype,"error",void 0);Z([(0,V.property)({type:Boolean})],U.prototype,"fixedMenuPosition",void 0);Z([(0,V.property)()],U.prototype,"prefix",void 0);Z([(0,V.property)()],U.prototype,"icon",void 0);Z([(0,V.property)()],U.prototype,"name",void 0);Z([(0,V.property)()],U.prototype,"type",void 0);Z([(0,V.property)()],U.prototype,"passwordHiddenIcon",void 0);Z([(0,V.property)()],U.prototype,"passwordRevealedIcon",void 0);Z([(0,V.property)()],U.prototype,"iconVariant",void 0);Z([(0,V.property)({type:Boolean})],U.prototype,"filterSuggestions",void 0);Z([(0,V.property)({type:Number})],U.prototype,"maxLength",void 0);Z([(0,V.property)({type:Boolean})],U.prototype,"password",void 0);Z([(0,V.property)({type:String})],U.prototype,"autocomplete",void 0);Z([(0,V.state)()],U.prototype,"focused",void 0);Z([(0,V.state)()],U.prototype,"hidePassword",void 0);Z([(0,V.state)()],U.prototype,"hideSuggestions",void 0);Z([(0,V.state)()],U.prototype,"visibleSuggestions",void 0);Z([(0,V.query)(".ft-text-field--main-panel")],U.prototype,"mainPanel",void 0);Z([(0,V.query)(".ft-text-field--input")],U.prototype,"input",void 0);Z([(0,V.query)(".ft-text-field-suggestion--new-value")],U.prototype,"newValueSuggestion",void 0);Z([(0,V.query)(".ft-text-field--suggestions")],U.prototype,"suggestionsContainer",void 0);Z([(0,V.queryAssignedElements)({selector:"ft-text-field-suggestion"})],U.prototype,"suggestions",void 0);(0,sa.customElement)("ft-text-field")(U);(0,sa.customElement)("ft-text-field-suggestion")(ce);var Td=g(R());var Ao=g(B()),lr=g(q()),Qt=g(R());var be=g(R());var Ed=g(R()),Ad=e=>Ed.FtReduxStore.get({name:"ft-reader-"+e,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var la=class{constructor(t,o){this.mapId=t,this.paginatedToc=o,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,o,i){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,o,i):[{tocId:n.tocId,title:n.title,depth:o,children:this.extractPagesToc(n.children,o+1,n.tocId)}]))}convertNodes(t,o,i){return t.flatMap(n=>{var a,s,c;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],o,n.tocId),...this.convertNodes(n.children,o,n.tocId)];let u=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:u,depth:o,parentTocId:i,children:[]};this.register(p);let y=this.convertSectionNodes((c=n.pageToc)!==null&&c!==void 0?c:[],o+1,n.tocId),f=this.convertNodes(n.children,o+1,p.tocId);return p.children=[...y,...f],[p]})}convertSectionNodes(t,o,i){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...n,prettyUrl:s,depth:o,parentTocId:i,children:[]};return this.register(c),c.children=this.convertSectionNodes(n.children,o+1,n.tocId),[c]})}buildPage(t,o){var i,n,a,s,c,u;let p={number:this.pages.length+1,title:(i=t.title)!==null&&i!==void 0?i:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(b=>this.nodeByTocId[b.tocId]),topics:[],hiddenTopics:[],breadcrumb:o?this.buildBreadcrumb(this.nodeByTocId[o]):[]},y=(b,x)=>(x?p.topics:p.hiddenTopics).push(b),f=(c=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&c!==void 0?c:[];return p.breadcrumb.forEach((b,x)=>{y(b,f[x])}),t.tocId&&y(t.tocId,t.pageConfiguration.isVisible),p.topics.push(...this.tocIds((u=t.pageToc)!==null&&u!==void 0?u:[])),p}registerPage(t){for(let o of[...t.topics,...t.hiddenTopics])this.pageByTocId[o]||(this.pageByTocId[o]=t);this.pages.push(t)}tocIds(t){return t.flatMap(o=>[o.tocId,...this.tocIds(o.children)])}buildBreadcrumb(t){let o=[t.tocId];for(;t?.parentTocId;)o.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return o}register(t){t.prettyUrl&&(this.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},Ai=class{convertPaginatedToc(t,o){return new la(t,o).build()}};var Ri=class extends Ee{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,o,i){super(!1,o),this.converter=t,this._mapId=i,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(o=>this.converter.convertPaginatedToc(t,o)))),this.cache.register("ratingSummary",()=>{var t,o;return ur((o=(t=T.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&o!==void 0?o:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var o;return(o=this.enrichedToc)===null||o===void 0?void 0:o.nodeByTocId[t]}getTocNodeNowByUrl(t){var o,i;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(o=this.enrichedToc)===null||o===void 0?void 0:o.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[t]}async getPage(t){let o=await this.getEnrichedToc();return o.pages[t-1]||o.pages[0]}async getPageByTocId(t){let o=await this.getEnrichedToc();return o.pageByTocId[t]||o.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,o){return this.cache.get("document-relatives-"+t+"-"+o.join("-"),()=>this.fetchRelativesForDocument(t,o))}getRelativesForTopicInMap(t,o,i){return this.cache.get("topic-relatives-"+[t,o,...i].join("-"),()=>this.fetchRelativesForTopicInMap(t,o,i))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,o,i){let n=this.getNavigationData(t,o,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,o,i){var n,a;t=t||"root";let s=this.enrichedToc,c=s?.pageByTocId[t],u=s?.nodeByTocId[t],p=u?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=u?.title)!==null&&n!==void 0?n:"",page:o&&c&&c.number!==o?o:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(t,o,i){return await this.getEnrichedToc(),this.getNavigationData(t,o,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(o=>{var i;return o?{type:o.topics.type,rating:(i=o.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,o){return this.makeRateMapRequest(t,o).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,o){return this.makeMapFeedbackRequest(t,o)}rateTopic(t,o,i){return this.makeRateTopicRequest(t,o,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=T.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,o,i){return this.makeTopicFeedbackRequest(t,o,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let o=this.getTocNodeNow(t),i=[{tocId:o.tocId,title:o.title}],n=this.getTocNodeNow(o.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(t,{session:o}){var i;if(!this.isFeatureAvailable(t))return!1;switch(t){case ie.FEEDBACK:return ur(o??[],tt.FEEDBACK_USER);case ie.RATING:return ur(o??[],tt.RATING_USER);case ie.PRINT:return ur(o??[],tt.PRINT_USER);case ie.BOOKMARK:return!!o?.sessionAuthenticated;case ie.COLLECTIONS:return ur(o??[],tt.COLLECTION_USER);case ie.PERSONAL_BOOKS:return ur(o??[],tt.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Ii=class e extends Ri{static async build(t){return new e(new Ai,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let o=await this.api.getMap(t);return this.fingerprint=o.fingerprint,o}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,o){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:t,valueFilter:{negative:!1,values:o}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(t,o,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:o,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[t]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(t,o){return this.api.sendMapFeedback(this.mapId,t,o)}makeRateMapRequest(t,o){return this.api.rateMap(this.mapId,t,o)}makeRateTopicRequest(t,o,i){return this.api.rateTopic(this.mapId,t,o,i)}makeTopicFeedbackRequest(t,o,i){return this.api.sendTopicFeedback(this.mapId,t,o,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var Ti=class e{static build(t,o){return new e(Ad(t.trim()||"context"),o??Ii.build)}loaded(){return(0,be.waitUntil)(()=>this._loaded)}constructor(t,o,i){this.store=t,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new be.Debouncer(10),this.initService(o)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setRenderedTopics(t){this.store.actions.renderedTopics(t)}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return(0,be.waitFor)(()=>this.service)}async navigateToTopic(t,o,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:o})}resolveValidNonRootTocId(t,o){var i,n,a;let s=(i=t==="root"?void 0:t)!==null&&i!==void 0?i:o.rootTocId;return o.topics.includes(s)?s:(a=(n=o.topics[0])!==null&&n!==void 0?n:o.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){await this.loaded();let i=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,o,i,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(o=this.service)===null||o===void 0?void 0:o.getMap().then(s=>this.store.actions.map(s)),(i=this.service)===null||i===void 0?void 0:i.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof be.CanceledPromiseError)&&this.errorHandler(s)}}fetchRelatives(){var t,o,i;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(o=this.service)===null||o===void 0||o.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(c=>c.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,o;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(o=(t=T.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&o!==void 0?o:[];return new be.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var o,i,n;await this.loaded();let a=await(0,be.waitFor)(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,u=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(i=(o=u?.results)===null||o===void 0?void 0:o[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=u.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var Rd=g(B());var Id=Rd.css`
|
|
1838
|
-
`;var Ni=class extends CustomEvent{constructor(
|
|
1847
|
+
@click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
|
|
1848
|
+
`:Xe.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0),e.has("visibleSuggestions")&&this.visibleSuggestions.length&&this.setSuggestionPosition()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.suggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("autocomplete")&&this.setupWatchAutofill()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var o,i,n;!((o=this.input)===null||o===void 0)&&o.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,o=!1){this.value!==e&&(this.setInternalValue(e),this.dispatchEvent(new CustomEvent("live-change",{detail:e}))),o&&this.dispatchedValue!==e&&(this.dispatchedValue=e,this.dispatchEvent(new CustomEvent("change",{detail:e})))}handleInput(e){var o;let i=((o=this.input)===null||o===void 0?void 0:o.value)||"";this.setValue(i,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var o;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(o=this.visibleSuggestions[n])===null||o===void 0||o.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var o;this.setValue(e.detail,!0),(o=this.input)===null||o===void 0||o.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,o;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((o=this.input)===null||o===void 0?void 0:o.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,sr.computeFlipOffsetPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed",B.suggestSize.name,0).then(({x:o,y:i})=>{this.suggestionsContainer.style.left=`${o}px`,this.suggestionsContainer.style.top=`${i}px`})}};F.elementDefinitions={"ft-input-label":Ve,"ft-ripple":j,"ft-typography":fe,"ft-icon":xe,"ft-text-field-suggestion":dt};F.styles=[Pr,sr.noTextInputDefaultClearButton,Cd];Z([(0,V.property)()],F.prototype,"label",void 0);Z([(0,V.property)({noAccessor:!0})],F.prototype,"value",null);Z([(0,V.state)()],F.prototype,"dispatchedValue",void 0);Z([(0,V.property)()],F.prototype,"helper",void 0);Z([(0,V.property)()],F.prototype,"suggestionsHelper",void 0);Z([(0,V.property)({type:Boolean})],F.prototype,"outlined",void 0);Z([(0,V.property)({type:Boolean})],F.prototype,"disabled",void 0);Z([(0,V.property)({type:Boolean})],F.prototype,"error",void 0);Z([(0,V.property)({type:Boolean})],F.prototype,"fixedMenuPosition",void 0);Z([(0,V.property)()],F.prototype,"prefix",void 0);Z([(0,V.property)()],F.prototype,"icon",void 0);Z([(0,V.property)()],F.prototype,"name",void 0);Z([(0,V.property)()],F.prototype,"type",void 0);Z([(0,V.property)()],F.prototype,"passwordHiddenIcon",void 0);Z([(0,V.property)()],F.prototype,"passwordRevealedIcon",void 0);Z([(0,V.property)()],F.prototype,"iconVariant",void 0);Z([(0,V.property)({type:Boolean})],F.prototype,"filterSuggestions",void 0);Z([(0,V.property)({type:Number})],F.prototype,"maxLength",void 0);Z([(0,V.property)({type:Boolean})],F.prototype,"password",void 0);Z([(0,V.property)({type:String})],F.prototype,"autocomplete",void 0);Z([(0,V.state)()],F.prototype,"focused",void 0);Z([(0,V.state)()],F.prototype,"hidePassword",void 0);Z([(0,V.state)()],F.prototype,"hideSuggestions",void 0);Z([(0,V.state)()],F.prototype,"visibleSuggestions",void 0);Z([(0,V.query)(".ft-text-field--main-panel")],F.prototype,"mainPanel",void 0);Z([(0,V.query)(".ft-text-field--input")],F.prototype,"input",void 0);Z([(0,V.query)(".ft-text-field-suggestion--new-value")],F.prototype,"newValueSuggestion",void 0);Z([(0,V.query)(".ft-text-field--suggestions")],F.prototype,"suggestionsContainer",void 0);Z([(0,V.queryAssignedElements)({selector:"ft-text-field-suggestion"})],F.prototype,"suggestions",void 0);(0,sa.customElement)("ft-text-field")(F);(0,sa.customElement)("ft-text-field-suggestion")(dt);var kd=g(R());var Ao=g(M()),lr=g(q()),Qe=g(R());var bt=g(R());var Td=g(R()),Id=t=>Td.FtReduxStore.get({name:"ft-reader-"+t,initialState:{mapId:void 0,renderedTopics:[],visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var la=class{constructor(e,o){this.mapId=e,this.paginatedToc=o,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(e,o,i){return e.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,i)),n.tocId==null?this.extractPagesToc(n.children,o,i):[{tocId:n.tocId,title:n.title,depth:o,children:this.extractPagesToc(n.children,o+1,n.tocId)}]))}convertNodes(e,o,i){return e.flatMap(n=>{var a,s,c;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],o,n.tocId),...this.convertNodes(n.children,o,n.tocId)];let u=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),p={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:u,depth:o,parentTocId:i,children:[]};this.register(p);let y=this.convertSectionNodes((c=n.pageToc)!==null&&c!==void 0?c:[],o+1,n.tocId),f=this.convertNodes(n.children,o+1,p.tocId);return p.children=[...y,...f],[p]})}convertSectionNodes(e,o,i){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...n,prettyUrl:s,depth:o,parentTocId:i,children:[]};return this.register(c),c.children=this.convertSectionNodes(n.children,o+1,n.tocId),[c]})}buildPage(e,o){var i,n,a,s,c,u;let p={number:this.pages.length+1,title:(i=e.title)!==null&&i!==void 0?i:"",rootTocId:(n=e.tocId)!==null&&n!==void 0?n:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(b=>this.nodeByTocId[b.tocId]),topics:[],hiddenTopics:[],breadcrumb:o?this.buildBreadcrumb(this.nodeByTocId[o]):[]},y=(b,x)=>(x?p.topics:p.hiddenTopics).push(b),f=(c=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&c!==void 0?c:[];return p.breadcrumb.forEach((b,x)=>{y(b,f[x])}),e.tocId&&y(e.tocId,e.pageConfiguration.isVisible),p.topics.push(...this.tocIds((u=e.pageToc)!==null&&u!==void 0?u:[])),p}registerPage(e){for(let o of[...e.topics,...e.hiddenTopics])this.pageByTocId[o]||(this.pageByTocId[o]=e);this.pages.push(e)}tocIds(e){return e.flatMap(o=>[o.tocId,...this.tocIds(o.children)])}buildBreadcrumb(e){let o=[e.tocId];for(;e?.parentTocId;)o.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return o}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Ri=class{convertPaginatedToc(e,o){return new la(e,o).build()}};var _i=class extends wt{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,o,i){super(!1,o),this.converter=e,this._mapId=i,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(o=>this.converter.convertPaginatedToc(e,o)))),this.cache.register("ratingSummary",()=>{var e,o;return ur((o=(e=T.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&o!==void 0?o:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(e){return(await this.getEnrichedToc()).nodeByTocId[e]}getTocNodeNow(e){var o;return(o=this.enrichedToc)===null||o===void 0?void 0:o.nodeByTocId[e]}getTocNodeNowByUrl(e){var o,i;let n=this.getMapNow();return n?.prettyUrl==e||`${n?.id}/root`===e?(o=this.enrichedToc)===null||o===void 0?void 0:o.toc[0]:(i=this.enrichedToc)===null||i===void 0?void 0:i.nodeByUrl[e]}async getPage(e){let o=await this.getEnrichedToc();return o.pages[e-1]||o.pages[0]}async getPageByTocId(e){let o=await this.getEnrichedToc();return o.pageByTocId[e]||o.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(e,o){return this.cache.get("document-relatives-"+e+"-"+o.join("-"),()=>this.fetchRelativesForDocument(e,o))}getRelativesForTopicInMap(e,o,i){return this.cache.get("topic-relatives-"+[e,o,...i].join("-"),()=>this.fetchRelativesForTopicInMap(e,o,i))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true`)}getLink(e,o,i){let n=this.getNavigationData(e,o,i),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(e,o,i){var n,a;e=e||"root";let s=this.enrichedToc,c=s?.pageByTocId[e],u=s?.nodeByTocId[e],p=u?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(n=u?.title)!==null&&n!==void 0?n:"",page:o&&c&&c.number!==o?o:void 0,prettyUrl:p?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(p??""))!==null&&a!==void 0?a:!1,section:i}}async getAccurateNavigationData(e,o,i){return await this.getEnrichedToc(),this.getNavigationData(e,o,i)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(o=>{var i;return o?{type:o.topics.type,rating:(i=o.topics)===null||i===void 0?void 0:i.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,o){return this.makeRateMapRequest(e,o).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,o){return this.makeMapFeedbackRequest(e,o)}rateTopic(e,o,i){return this.makeRateTopicRequest(e,o,i).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=T.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,o,i){return this.makeTopicFeedbackRequest(e,o,i)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e){let o=this.getTocNodeNow(e),i=[{tocId:o.tocId,title:o.title}],n=this.getTocNodeNow(o.parentTocId);for(;n;)i.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return i}isFeatureAccessible(e,{session:o}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case it.FEEDBACK:return ur(o??[],ee.FEEDBACK_USER);case it.RATING:return ur(o??[],ee.RATING_USER);case it.PRINT:return ur(o??[],ee.PRINT_USER);case it.BOOKMARK:return!!o?.sessionAuthenticated;case it.COLLECTIONS:return ur(o??[],ee.COLLECTION_USER);case it.PERSONAL_BOOKS:return ur(o??[],ee.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Ti=class t extends _i{static async build(e){return new t(new Ri,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e){let o=await this.api.getMap(e);return this.fingerprint=o.fingerprint,o}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e){return await this.getMap(),this.api.getPages(e,this.fingerprint)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,o){let i={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:o}}],sort:[],facets:[]};return this.api.search(i)}fetchRelativesForTopicInMap(e,o,i){let n={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:o,valueFilter:{negative:!1,values:i}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(n)}makeMapFeedbackRequest(e,o){return this.api.sendMapFeedback(this.mapId,e,o)}makeRateMapRequest(e,o){return this.api.rateMap(this.mapId,e,o)}makeRateTopicRequest(e,o,i){return this.api.rateTopic(this.mapId,e,o,i)}makeTopicFeedbackRequest(e,o,i){return this.api.sendTopicFeedback(this.mapId,e,o,i)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var Ii=class t{static build(e,o){return new t(Id(e.trim()||"context"),o??Ti.build)}loaded(){return(0,bt.waitUntil)(()=>this._loaded)}constructor(e,o,i){this.store=e,this.clusteringHelperProvider=i,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new bt.Debouncer(10),this.initService(o)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,bt.waitFor)(()=>this.service)}async navigateToTopic(e,o,i){await this.loaded();let n=await this.awaitService(),a=await(i!=null?n.getPage(i):n.getPageByTocId(e??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(e,a),section:o})}resolveValidNonRootTocId(e,o){var i,n,a;let s=(i=e==="root"?void 0:e)!==null&&i!==void 0?i:o.rootTocId;return o.topics.includes(s)?s:(a=(n=o.topics[0])!==null&&n!==void 0?n:o.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let i=await(await this.awaitService()).getPage(e);this.store.actions.currentPage(i)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var e,o,i,n,a;try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(s=>this.store.actions.configuration(s)),(o=this.service)===null||o===void 0?void 0:o.getMap().then(s=>this.store.actions.map(s)),(i=this.service)===null||i===void 0?void 0:i.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof bt.CanceledPromiseError)&&this.errorHandler(s)}}fetchRelatives(){var e,o,i;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(o=this.service)===null||o===void 0||o.getRelativesForDocument((i=this.store.getState().configuration)===null||i===void 0?void 0:i.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(c=>c.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var e,o;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let i=this.store.getState().relatives;if(i){let n=i.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(o=(e=T.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&o!==void 0?o:[];return new bt.ClusteringHelper(i,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var o,i,n;await this.loaded();let a=await(0,bt.waitFor)(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),s=this.store.getState().mapId,u=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((n=(i=(o=u?.results)===null||o===void 0?void 0:o[0])===null||i===void 0?void 0:i.entries)===null||n===void 0)&&n[0]){let p=u.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}};var Nd=g(M());var Ld=Nd.css`
|
|
1849
|
+
`;var Ni=class extends CustomEvent{constructor(e,o){super("ft-reader-map-loaded",{detail:{map:e,toc:o}})}},Li=class extends CustomEvent{constructor(e,o){super("ft-reader-visible-topics-change",{detail:{visibleTopics:o}})}},ki=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Pi=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Di=class extends Event{constructor(){super("ft-reader-map-not-found")}},$i=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Bi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Mi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Ui=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}};var Je=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},hu=t=>e=>+(e??"NaN")>0?+e:t,we=class extends Qe.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new Qe.Debouncer(5),this.navigationDebouncer=new Qe.Debouncer(10),this.mapLoadedEventDebouncer=new Qe.Debouncer(50),this.addStore(T)}render(){return Ao.html`
|
|
1839
1850
|
${this.importStyleIfNeeded()}
|
|
1840
1851
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1841
|
-
`}importStyleIfNeeded(){var
|
|
1852
|
+
`}importStyleIfNeeded(){var e,o;let i=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!i||window.location.href.startsWith((o=this.baseUrl)!==null&&o!==void 0?o:"")?Ao.nothing:Ao.html`
|
|
1842
1853
|
<style>
|
|
1843
1854
|
@import "${i}"
|
|
1844
1855
|
</style>
|
|
1845
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=
|
|
1856
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=Ii.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let o=e.fontsStylesheet();if(o&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${o}"]`)){let i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",o),document.head.append(i)}window.FluidTopicsReaderService=new Ui(this.stateManager)})}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(o=>e.has(o))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var o,i;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((o=this.scrollTarget)===null||o===void 0?void 0:o.tocId)==null){let n=e.get("scrollTarget");n?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var a;return this.stateManager.service.getAccurateNavigationData(n.tocId,(a=this.currentPage)===null||a===void 0?void 0:a.number,n.section).then(s=>this.dispatchEvent(new ki(s)))})}(e.has("visibleTopics")||e.has("scrollTarget"))&&((i=this.scrollTarget)===null||i===void 0?void 0:i.tocId)==null&&Promise.all(this.visibleTopics.map(n=>{var a;return this.stateManager.service.getAccurateNavigationData(n,(a=this.currentPage)===null||a===void 0?void 0:a.number)})).then(n=>{let a=n.filter(s=>s!=null&&s.topicTitle!=="").map(s=>{var c;return{tocId:s.tocId,title:s.topicTitle,page:s.page,prettyUrl:s.prettyUrl,prettyUrlDuplicated:s.prettyUrlDuplicated,breadcrumb:(c=this.stateManager.service)===null||c===void 0?void 0:c.buildBreadcrumb(s.tocId)}});this.dispatchEvent(new Li(this.map,a))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Mi),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(e){e.stopPropagation();let o=e.composedPath()[0];this.register(o)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let o=e;o.status===401?this.dispatchEvent(new $i):o.status===403?this.dispatchEvent(new Bi):o.status===404?this.dispatchEvent(new Di):this.dispatchEvent(new Pi(e))}reloadBookmarks(){hd.reloadBookmarks()}async reloadRating(){var e,o;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(o=this.stateManager.store)===null||o===void 0||o.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Ni(this.map,this.toc))})}};we.styles=Ld;Je([(0,Qe.redux)({store:T.name})],we.prototype,"baseUrl",void 0);Je([(0,Qe.redux)({store:T.name})],we.prototype,"session",void 0);Je([(0,lr.property)()],we.prototype,"mapId",void 0);Je([(0,lr.property)()],we.prototype,"tocId",void 0);Je([(0,lr.property)()],we.prototype,"section",void 0);Je([(0,lr.property)()],we.prototype,"topicPivot",void 0);Je([(0,lr.property)()],we.prototype,"searchInDocumentQuery",void 0);Je([(0,lr.property)({type:Number,converter:{fromAttribute:hu()}})],we.prototype,"page",void 0);Je([(0,Qe.redux)({store:"reader"})],we.prototype,"map",void 0);Je([(0,Qe.redux)({store:"reader"})],we.prototype,"toc",void 0);Je([(0,Qe.redux)({store:"reader"})],we.prototype,"visibleTopics",void 0);Je([(0,Qe.redux)({store:"reader"})],we.prototype,"currentPage",void 0);Je([(0,Qe.redux)({store:"reader"})],we.prototype,"scrollTarget",void 0);Je([(0,lr.property)({attribute:!1})],we.prototype,"readerServiceProvider",void 0);(0,kd.customElement)("ft-reader-context")(we);var Fi=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},Wi=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},zi=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},Hi=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},Vi=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Ae=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},Q=class extends nr(Ft){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(G,Sd)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(it.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(it.RATING,{session:this.session}))&&this.ratingAllowed&&this.configuredRatingType!=be.NO_RATING}get configuredRatingType(){var e,o;return(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&o!==void 0?o:be.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,o,i;return(i=(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||o===void 0?void 0:o.type)!==null&&i!==void 0?i:be.NO_RATING}get ratingValue(){var e,o,i;return(i=(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||o===void 0?void 0:o.value)!==null&&i!==void 0?i:-1}get ratingDate(){var e,o;let i=(o=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||o===void 0?void 0:o.date;return typeof i=="string"?(0,Gi.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?ye.nothing:ye.html`
|
|
1846
1857
|
<div class="ft-reader-feedback">
|
|
1847
|
-
${this.hideTitle?
|
|
1858
|
+
${this.hideTitle?ye.nothing:ye.html`
|
|
1848
1859
|
<ft-typography variant="title" part="main-title">
|
|
1849
1860
|
${this.i18n(this.i18nProperties.feedbackMainTitle)}
|
|
1850
1861
|
</ft-typography>
|
|
@@ -1852,19 +1863,19 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1852
1863
|
${this.renderRatingSection()}
|
|
1853
1864
|
${this.renderFeedbackSection()}
|
|
1854
1865
|
</div>
|
|
1855
|
-
`}renderRatingSection(){return this.canRateThisContent?
|
|
1866
|
+
`}renderRatingSection(){return this.canRateThisContent?ye.html`
|
|
1856
1867
|
<div class="ft-reader-feedback--rating" part="rating-container">
|
|
1857
1868
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1858
|
-
${this.i18n(this.ratingSummary.type===
|
|
1869
|
+
${this.i18n(this.ratingSummary.type===be.DICHOTOMOUS?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
|
|
1859
1870
|
</ft-typography>
|
|
1860
1871
|
${this.renderRating()}
|
|
1861
1872
|
<ft-typography variant="caption" class="ft-reader-feedback--rating-date" part="rating-date">
|
|
1862
1873
|
${this.renderRatingDate()}
|
|
1863
1874
|
</ft-typography>
|
|
1864
1875
|
</div>
|
|
1865
|
-
`:
|
|
1876
|
+
`:ye.nothing}renderRatingDate(){let e=this.ratingDate;if(e==null)return G.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return G.messages.ratedNow();let o=new Date().toLocaleDateString(),i=e.toLocaleDateString();return o===i?G.messages.ratedToday():G.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case be.STARS:return ye.html`
|
|
1866
1877
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1867
|
-
${(0,
|
|
1878
|
+
${(0,Pd.repeat)(new Array(5),(a,s)=>s,(a,s)=>{let c=this.ratingTypeOfDoneRatingOfThisContent===be.STARS&&this.ratingValue>s,u=s+1;return ye.html`
|
|
1868
1879
|
<ft-button round part="rating-stars-${u}"
|
|
1869
1880
|
label="${G.messages.starsRating(u)}"
|
|
1870
1881
|
tooltipPosition="top"
|
|
@@ -1875,7 +1886,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1875
1886
|
></ft-button>
|
|
1876
1887
|
`})}
|
|
1877
1888
|
</div>
|
|
1878
|
-
`;case
|
|
1889
|
+
`;case be.LIKE:let e=this.ratingTypeOfDoneRatingOfThisContent===be.LIKE&&this.ratingValue===0,o=this.ratingTypeOfDoneRatingOfThisContent===be.LIKE&&this.ratingValue===1;return ye.html`
|
|
1879
1890
|
<ft-switch unselectable
|
|
1880
1891
|
@change=${a=>this.rate(a.detail)}
|
|
1881
1892
|
part="rating rating-like"
|
|
@@ -1888,14 +1899,14 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1888
1899
|
${G.messages.like()}
|
|
1889
1900
|
</ft-switch-option>
|
|
1890
1901
|
<ft-switch-option .value=${0}
|
|
1891
|
-
?selected=${
|
|
1902
|
+
?selected=${e}
|
|
1892
1903
|
.iconVariant=${this.iconVariant}
|
|
1893
|
-
icon="${
|
|
1904
|
+
icon="${e?this.filledDislikeIcon:this.emptyDislikeIcon}"
|
|
1894
1905
|
role="radio">
|
|
1895
1906
|
${G.messages.dislike()}
|
|
1896
1907
|
</ft-switch-option>
|
|
1897
1908
|
</ft-switch>
|
|
1898
|
-
`;case
|
|
1909
|
+
`;case be.DICHOTOMOUS:let i=this.ratingTypeOfDoneRatingOfThisContent===be.DICHOTOMOUS&&this.ratingValue===0,n=this.ratingTypeOfDoneRatingOfThisContent===be.DICHOTOMOUS&&this.ratingValue===1;return ye.html`
|
|
1899
1910
|
<ft-switch unselectable
|
|
1900
1911
|
@change=${a=>this.rate(a.detail)}
|
|
1901
1912
|
part="rating rating-dichotomous">
|
|
@@ -1908,7 +1919,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1908
1919
|
${G.messages.dichotomousNo()}
|
|
1909
1920
|
</ft-switch-option>
|
|
1910
1921
|
</ft-switch>
|
|
1911
|
-
`}return
|
|
1922
|
+
`}return ye.nothing}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,o,i,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),c=ye.html`
|
|
1912
1923
|
<ft-button primary
|
|
1913
1924
|
type="submit" name="submit"
|
|
1914
1925
|
class="ft-reader-feedback--send-feedback"
|
|
@@ -1916,11 +1927,11 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1916
1927
|
part="send-feedback">
|
|
1917
1928
|
${G.messages.okButton()}
|
|
1918
1929
|
</ft-button>
|
|
1919
|
-
`;s&&(c=
|
|
1930
|
+
`;s&&(c=ye.html`
|
|
1920
1931
|
<a class="ft-reader-feedback--feedback-link" href="${s}">
|
|
1921
1932
|
${c}
|
|
1922
1933
|
</a>
|
|
1923
|
-
`);let u=this.withMoreOptionsButton&&(!((
|
|
1934
|
+
`);let u=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers)?ye.html`
|
|
1924
1935
|
<ft-button outlined
|
|
1925
1936
|
type="button" name="more-options"
|
|
1926
1937
|
class="ft-reader-feedback--more-options"
|
|
@@ -1928,13 +1939,13 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1928
1939
|
part="more-options">
|
|
1929
1940
|
${G.messages.moreOptionsButton()}
|
|
1930
1941
|
</ft-button>
|
|
1931
|
-
`:
|
|
1942
|
+
`:ye.nothing;return ye.html`
|
|
1932
1943
|
<form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
|
|
1933
1944
|
@submit="${p=>this.onFormSubmitEvent(p,!!s)}">
|
|
1934
1945
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1935
1946
|
${this.i18n(this.i18nProperties.feedbackSectionTitle)}
|
|
1936
1947
|
</ft-typography>
|
|
1937
|
-
${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?
|
|
1948
|
+
${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?ye.html`
|
|
1938
1949
|
<ft-text-field outlined name="email" type="email" autocomplete="email"
|
|
1939
1950
|
class="ft-reader-feedback--from-input"
|
|
1940
1951
|
label=${G.messages.feedbackfromEmail()}
|
|
@@ -1942,7 +1953,7 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1942
1953
|
?error=${this.from&&!this.validFromEmail()}
|
|
1943
1954
|
helper=${this.from&&!this.validFromEmail()?G.messages.feedbackfromEmailInvalid():""}
|
|
1944
1955
|
/>
|
|
1945
|
-
`:
|
|
1956
|
+
`:ye.nothing}
|
|
1946
1957
|
<ft-text-area outlined
|
|
1947
1958
|
class="ft-reader-feedback--feedback-input" part="feedback-input"
|
|
1948
1959
|
label="${G.messages.feedbackInputLabel()}"
|
|
@@ -1953,15 +1964,15 @@ Also for action icons.`,l.colorGray200),contentGlobalSubtle:r.extend("--ft-conte
|
|
|
1953
1964
|
${c}
|
|
1954
1965
|
</div>
|
|
1955
1966
|
</form>
|
|
1956
|
-
`}return
|
|
1967
|
+
`}return ye.nothing}onFormSubmitEvent(e,o){e.preventDefault(),o?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,o,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((o=(e=this.session)===null||e===void 0?void 0:e.profile)===null||o===void 0?void 0:o.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new Fi({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.value="",0)}};Q.elementDefinitions={"ft-button":ht,"ft-typography":fe,"ft-switch":He,"ft-switch-option":he,"ft-text-area":Ne,"ft-text-field":F};Q.styles=vs;Ae([(0,me.property)({type:Boolean})],Q.prototype,"editorMode",void 0);Ae([(0,me.property)({type:Boolean})],Q.prototype,"hideTitle",void 0);Ae([(0,me.property)({type:Boolean})],Q.prototype,"withMoreOptionsButton",void 0);Ae([(0,me.property)({type:Boolean})],Q.prototype,"ratingAllowed",void 0);Ae([(0,me.property)({attribute:!1})],Q.prototype,"i18nProperties",void 0);Ae([(0,me.property)({attribute:!1})],Q.prototype,"ratingSummary",void 0);Ae([(0,me.property)({attribute:!1})],Q.prototype,"session",void 0);Ae([(0,me.query)(".ft-reader-feedback--feedback-input")],Q.prototype,"feedbackInput",void 0);Ae([(0,me.state)()],Q.prototype,"from",void 0);Ae([(0,me.state)()],Q.prototype,"feedbackMessage",void 0);Ae([(0,me.property)()],Q.prototype,"iconVariant",void 0);Ae([(0,me.property)()],Q.prototype,"emptyStarIcon",void 0);Ae([(0,me.property)()],Q.prototype,"filledStarIcon",void 0);Ae([(0,me.property)()],Q.prototype,"emptyLikeIcon",void 0);Ae([(0,me.property)()],Q.prototype,"filledLikeIcon",void 0);Ae([(0,me.property)()],Q.prototype,"emptyDislikeIcon",void 0);Ae([(0,me.property)()],Q.prototype,"filledDislikeIcon",void 0);Ae([(0,Gi.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],Q.prototype,"configuration",void 0);Ae([(0,me.property)()],Q.prototype,"feedbackMailLinkBuilder",void 0);var Xr=ar.fromGwt("server");var Qr=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,o,i,n,a){var s;this.subject=e,this.url=o,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(c=>"["+c.values[c.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(c=>"["+c.values.join(", ")+"]").join(" ")}filterMetadata(e,o){return o.map(i=>e.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var e,o;let i=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(e){var o;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
|
|
1957
1968
|
${this.bodyMetadata}
|
|
1958
1969
|
${this.url}
|
|
1959
1970
|
_________________________________________________________________
|
|
1960
1971
|
|
|
1961
|
-
${
|
|
1972
|
+
${e??""}
|
|
1962
1973
|
|
|
1963
1974
|
_________________________________________________________________
|
|
1964
|
-
${Xr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configuration)===null||o===void 0?void 0:o.recipients.join(",")}?subject=${i}&body=${n}`}};var cr=ar.build("inDesignerFeedbackComponent"),
|
|
1975
|
+
${Xr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configuration)===null||o===void 0?void 0:o.recipients.join(",")}?subject=${i}&body=${n}`}};var cr=ar.build("inDesignerFeedbackComponent"),ji={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var ke=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 nr(Ft){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=De.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Qr,this.i18nProperties={feedbackMainTitle:G.properties.mapFeedbackMainTitle(),ratingSectionTitle:G.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:G.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:G.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new Me.Debouncer(100),this.sendRatingDebouncer=new Me.Debouncer(500),this.addStore(T)}render(){return Dd.html`
|
|
1965
1976
|
<ft-reader-feedback
|
|
1966
1977
|
ratingAllowed
|
|
1967
1978
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1977,16 +1988,16 @@ ${Xr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configura
|
|
|
1977
1988
|
.filledLikeIcon=${this.filledLikeIcon}
|
|
1978
1989
|
.emptyDislikeIcon=${this.emptyDislikeIcon}
|
|
1979
1990
|
.filledDislikeIcon=${this.filledDislikeIcon}
|
|
1980
|
-
.feedbackMailLinkBuilder=${
|
|
1991
|
+
.feedbackMailLinkBuilder=${e=>this.feedbackLinkBuilder.build(e)}
|
|
1981
1992
|
@rate=${this.rate}
|
|
1982
1993
|
@send-feedback=${this.sendFeedback}
|
|
1983
1994
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1984
1995
|
@open-more-options=${this.openMoreOptions}
|
|
1985
1996
|
></ft-reader-feedback>
|
|
1986
|
-
`}update(
|
|
1997
|
+
`}update(e){var o,i,n,a;super.update(e),e.has("map")&&this.map&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(cr,ji),["map","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(o=this.service)===null||o===void 0?void 0:o.getLink())!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(e){super.onStoreAvailable(e),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var e,o;this.map&&(!((o=(e=this.session)===null||e===void 0?void 0:e.profile)===null||o===void 0)&&o.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getMapRating())}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var o,i,n;if(!this.editorMode&&this.ratingSummary){try{e==null?await((o=this.service)===null||o===void 0?void 0:o.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new Me.FtNotificationEvent({type:"error",message:G.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Me.FtNotificationEvent({type:"info",message:cr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var o;try{this.editorMode?this.dispatchEvent(new Me.FtNotificationEvent({type:"info",message:cr.messages.feedbackAndRatingDisabledInEditor()})):(await((o=this.service)===null||o===void 0?void 0:o.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new Me.FtNotificationEvent({type:"info",message:G.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Me.FtNotificationEvent({type:"error",message:G.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Vi)}openMoreOptions(){var e,o,i;this.dispatchEvent(new zi({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((o=this.ratingSummary)===null||o===void 0?void 0:o.type)||be.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};pe.elementDefinitions={"ft-reader-feedback":Q};ke([(0,Me.redux)({store:T.name})],pe.prototype,"session",void 0);ke([(0,Me.redux)({store:"reader"})],pe.prototype,"map",void 0);ke([(0,Me.redux)({store:T.name})],pe.prototype,"editorMode",void 0);ke([(0,Me.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],pe.prototype,"configuration",void 0);ke([(0,et.state)()],pe.prototype,"ratingSummary",void 0);ke([(0,et.property)({type:Boolean})],pe.prototype,"hideTitle",void 0);ke([(0,et.property)({type:Boolean})],pe.prototype,"withMoreOptionsButton",void 0);ke([(0,et.property)()],pe.prototype,"iconVariant",void 0);ke([(0,et.property)()],pe.prototype,"emptyStarIcon",void 0);ke([(0,et.property)()],pe.prototype,"filledStarIcon",void 0);ke([(0,et.property)()],pe.prototype,"emptyLikeIcon",void 0);ke([(0,et.property)()],pe.prototype,"filledLikeIcon",void 0);ke([(0,et.property)()],pe.prototype,"emptyDislikeIcon",void 0);ke([(0,et.property)()],pe.prototype,"filledDislikeIcon",void 0);ke([(0,et.query)("ft-reader-feedback")],pe.prototype,"readerFeedback",void 0);ke([Ei(Xr.properties["mail.map_feedback.subject"](t=>{var e;return[(e=t.map)===null||e===void 0?void 0:e.title]}))],pe.prototype,"mailSubject",void 0);ke([(0,Me.reduxEventListener)({eventName:"rating-changed"})],pe.prototype,"fetchRatingSummary",null);var Bd=g(M()),tt=g(q()),Ue=g(R());var da=g(q());var $d=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},pa=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},ca=Symbol("registerInterval");function yu(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[ca]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[ca]):this.dispatchEvent(new pa)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=ca,$d([(0,da.state)()],o.prototype,"tocNode",void 0),$d([(0,da.state)()],o.prototype,"disableContextInteractions",void 0),o}var Ki=class extends yu(Ft){};var Pe=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},ue=class extends nr(Ki){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=De.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Qr,this.i18nProperties={feedbackMainTitle:G.properties.topicFeedbackMainTitle(),ratingSectionTitle:G.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:G.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:G.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new Ue.Debouncer(100),this.sendRatingDebouncer=new Ue.Debouncer(500),this.addStore(T)}render(){var e;return Bd.html`
|
|
1987
1998
|
<ft-reader-feedback
|
|
1988
1999
|
.i18nProperties=${this.i18nProperties}
|
|
1989
|
-
?ratingAllowed=${(
|
|
2000
|
+
?ratingAllowed=${(e=this.tocNode)===null||e===void 0?void 0:e.hasRating}
|
|
1990
2001
|
.editorMode=${this.editorMode}
|
|
1991
2002
|
?hideTitle=${this.hideTitle}
|
|
1992
2003
|
?withMoreOptionsButton=${this.withMoreOptionsButton}
|
|
@@ -2005,7 +2016,7 @@ ${Xr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(o=this.configura
|
|
|
2005
2016
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
2006
2017
|
@open-more-options=${this.openMoreOptions}
|
|
2007
2018
|
></ft-reader-feedback>
|
|
2008
|
-
`}update(
|
|
2019
|
+
`}update(e){var o,i,n,a;super.update(e),["tocNode","user"].some(s=>e.has(s))&&this.tocNode&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(cr,ji),["map","tocNode","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(i=(o=this.service)===null||o===void 0?void 0:o.getLink(this.tocNode.tocId))!==null&&i!==void 0?i:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var e,o;this.tocNode&&(!((o=(e=this.session)===null||e===void 0?void 0:e.profile)===null||o===void 0)&&o.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getTopicRating(this.tocNode.tocId))}rate(e){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var o,i,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((o=this.service)===null||o===void 0?void 0:o.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new Ue.FtNotificationEvent({type:"error",message:G.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Ue.FtNotificationEvent({type:"info",message:cr.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var o;try{!this.editorMode&&this.tocNode?(await((o=this.service)===null||o===void 0?void 0:o.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new Ue.FtNotificationEvent({type:"info",message:G.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new Ue.FtNotificationEvent({type:"info",message:cr.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new Ue.FtNotificationEvent({type:"error",message:G.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new Hi(e))}openMoreOptions(){var e,o,i,n,a,s,c,u;this.dispatchEvent(new Wi({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(o=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&o!==void 0?o:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(c=this.ratingSummary)===null||c===void 0?void 0:c.type:be.NO_RATING)||be.NO_RATING,ratingValue:(u=this.ratingSummary)===null||u===void 0?void 0:u.rating}))}};ue.elementDefinitions={"ft-reader-feedback":Q};Pe([(0,Ue.redux)({store:T.name})],ue.prototype,"session",void 0);Pe([(0,Ue.redux)({store:"reader"})],ue.prototype,"map",void 0);Pe([(0,Ue.redux)({store:T.name})],ue.prototype,"editorMode",void 0);Pe([(0,Ue.redux)({store:"reader",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ue.prototype,"configuration",void 0);Pe([(0,tt.state)()],ue.prototype,"ratingSummary",void 0);Pe([(0,tt.property)({type:Boolean})],ue.prototype,"hideTitle",void 0);Pe([(0,tt.property)({type:Boolean})],ue.prototype,"withMoreOptionsButton",void 0);Pe([(0,tt.property)()],ue.prototype,"iconVariant",void 0);Pe([(0,tt.property)()],ue.prototype,"emptyStarIcon",void 0);Pe([(0,tt.property)()],ue.prototype,"filledStarIcon",void 0);Pe([(0,tt.property)()],ue.prototype,"emptyLikeIcon",void 0);Pe([(0,tt.property)()],ue.prototype,"filledLikeIcon",void 0);Pe([(0,tt.property)()],ue.prototype,"emptyDislikeIcon",void 0);Pe([(0,tt.property)()],ue.prototype,"filledDislikeIcon",void 0);Pe([(0,tt.query)("ft-reader-feedback")],ue.prototype,"readerFeedback",void 0);Pe([Ei(Xr.properties["mail.feedback.subject"](t=>{var e,o;return[(e=t.tocNode)===null||e===void 0?void 0:e.title,(o=t.map)===null||o===void 0?void 0:o.title]}))],ue.prototype,"mailSubject",void 0);Pe([(0,Ue.reduxEventListener)({eventName:"rating-changed"})],ue.prototype,"fetchRatingSummary",null);(0,ua.customElement)("ft-reader-map-feedback")(pe);(0,ua.customElement)("ft-reader-topic-feedback")(ue);})();
|
|
2009
2020
|
/*! Bundled license information:
|
|
2010
2021
|
|
|
2011
2022
|
lit-html/lit-html.js:
|