@fluid-topics/ft-search-type 1.0.62 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-search-type.d.ts +1 -1
- package/build/ft-search-type.light.js +279 -279
- package/build/ft-search-type.min.js +413 -392
- package/package.json +4 -4
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
!function(t,o,e,i,r,n
|
|
1
|
+
!function(t,o,e,i,r,a,n){const s=e.css`
|
|
2
2
|
`
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
5
5
|
* Copyright 2017 Google LLC
|
|
6
6
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
7
|
-
|
|
7
|
+
*/,l=globalThis,c=l.trustedTypes,h=c?c.createPolicy("lit-html",{createHTML:t=>t}):void 0,p="$lit$",f=`lit$${(Math.random()+"").slice(9)}$`,d="?"+f,u=`<${d}>`,y=document,g=()=>y.createComment(""),b=t=>null===t||"object"!=typeof t&&"function"!=typeof t,m=Array.isArray,v="[ \t\n\f\r]",x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,N=/>/g,S=RegExp(`>|${v}(?:([^\\s"'>=/]+)(${v}*=${v}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),w=/'/g,$=/"/g,C=/^(?:script|style|textarea|title)$/i,k=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),I=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),R=new WeakMap,U=y.createTreeWalker(y,129);function L(t,o){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==h?h.createHTML(o):o}const W=(t,o)=>{const e=t.length-1,i=[];let r,a=2===o?"<svg>":"",n=x;for(let o=0;o<e;o++){const e=t[o];let s,l,c=-1,h=0;for(;h<e.length&&(n.lastIndex=h,l=n.exec(e),null!==l);)h=n.lastIndex,n===x?"!--"===l[1]?n=O:void 0!==l[1]?n=N:void 0!==l[2]?(C.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=S):void 0!==l[3]&&(n=S):n===S?">"===l[0]?(n=r??x,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,s=l[1],n=void 0===l[3]?S:'"'===l[3]?$:w):n===$||n===w?n=S:n===O||n===N?n=x:(n=S,r=void 0);const d=n===S&&t[o+1].startsWith("/>")?" ":"";a+=n===x?e+u:c>=0?(i.push(s),e.slice(0,c)+p+e.slice(c)+f+d):e+f+(-2===c?o:d)}return[L(t,a+(t[e]||"<?>")+(2===o?"</svg>":"")),i]};class z{constructor({strings:t,_$litType$:o},e){let i;this.parts=[];let r=0,a=0;const n=t.length-1,s=this.parts,[l,h]=W(t,o);if(this.el=z.createElement(l,e),U.currentNode=this.el.content,2===o){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=U.nextNode())&&s.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(p)){const o=h[a++],e=i.getAttribute(t).split(f),n=/([.?@])?(.*)/.exec(o);s.push({type:1,index:r,name:n[2],strings:e,ctor:"."===n[1]?Z:"?"===n[1]?F:"@"===n[1]?T:D}),i.removeAttribute(t)}else t.startsWith(f)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(C.test(i.tagName)){const t=i.textContent.split(f),o=t.length-1;if(o>0){i.textContent=c?c.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],g()),U.nextNode(),s.push({type:2,index:++r});i.append(t[o],g())}}}else if(8===i.nodeType)if(i.data===d)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(f,t+1));)s.push({type:7,index:r}),t+=f.length-1}r++}}static createElement(t,o){const e=y.createElement("template");return e.innerHTML=t,e}}function K(t,o,e=t,i){if(o===I)return o;let r=void 0!==i?e._$Co?.[i]:e._$Cl;const a=b(o)?void 0:o._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,e,i)),void 0!==i?(e._$Co??=[])[i]=r:e._$Cl=r),void 0!==r&&(o=K(t,r._$AS(t,o.values),r,i)),o}class B{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:o},parts:e}=this._$AD,i=(t?.creationScope??y).importNode(o,!0);U.currentNode=i;let r=U.nextNode(),a=0,n=0,s=e[0];for(;void 0!==s;){if(a===s.index){let o;2===s.type?o=new A(r,r.nextSibling,this,t):1===s.type?o=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(o=new H(r,this,t)),this._$AV.push(o),s=e[++n]}a!==s?.index&&(r=U.nextNode(),a++)}return U.currentNode=y,i}p(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}class A{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,o,e,i){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===t?.nodeType&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=K(this,t,o),b(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==I&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>m(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==E&&b(this._$AH)?this._$AA.nextSibling.data=t:this.$(y.createTextNode(t)),this._$AH=t}g(t){const{values:o,_$litType$:e}=t,i="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=z.createElement(L(e.h,e.h[0]),this.options)),e);if(this._$AH?._$AD===i)this._$AH.p(o);else{const t=new B(i,this),e=t.u(this.options);t.p(o),this.$(e),this._$AH=t}}_$AC(t){let o=R.get(t.strings);return void 0===o&&R.set(t.strings,o=new z(t)),o}T(t){m(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,i=0;for(const r of t)i===o.length?o.push(e=new A(this.k(g()),this.k(g()),this,this.options)):e=o[i],e._$AI(r),i++;i<o.length&&(this._$AR(e&&e._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class D{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,o,e,i,r){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=E}_$AI(t,o=this,e,i){const r=this.strings;let a=!1;if(void 0===r)t=K(this,t,o,0),a=!b(t)||t!==this._$AH&&t!==I,a&&(this._$AH=t);else{const i=t;let n,s;for(t=r[0],n=0;n<r.length-1;n++)s=K(this,i[e+n],o,n),s===I&&(s=this._$AH[n]),a||=!b(s)||s!==this._$AH[n],s===E?t=E:t!==E&&(t+=(s??"")+r[n+1]),this._$AH[n]=s}a&&!i&&this.O(t)}O(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Z extends D{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===E?void 0:t}}class F extends D{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==E)}}class T extends D{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){if((t=K(this,t,o,0)??E)===I)return;const e=this._$AH,i=t===E&&e!==E||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,r=t!==E&&(e===E||i);i&&this.element.removeEventListener(this.name,this,e),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class H{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const P=l.litHtmlPolyfillSupport;P?.(z,A),(l.litHtmlVersions??=[]).push("3.1.0");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t._$litStatic$},G=t=>({_$litStatic$:t,r:M}),V=new Map,q=(t=>(o,...e)=>{const i=e.length;let r,n;const a=[],s=[];let l,c=0,h=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(n=e[c],r=_(n));)l+=r+o[++c],h=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(o[i]),h){const t=a.join("$$lit$$");void 0===(o=V.get(t))&&(a.raw=a,V.set(t,o=a)),e=s}return t(o,...e)})(I);var Y;!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"}(Y||(Y={}));const X=t=>"string"==typeof t?e.unsafeCSS(t):t;class Q{static create(t,o,i,r){const n=t=>X(null!=t?t:r),a=e.css`var(${X(t)}, ${n(r)})`;return a.name=t,a.description=t,a.category=i,a.defaultValue=r,a.defaultCssValue=n,a.get=o=>e.css`var(${X(t)}, ${n(o)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>r,a}static extend(t,o,i,r){const n=t=>i.get(null!=t?t:r),a=e.css`var(${X(t)}, ${n(r)})`;return a.name=t,a.description=o,a.category=i.category,a.fallbackVariable=i,a.defaultValue=r,a.defaultCssValue=n,a.get=o=>e.css`var(${X(t)}, ${n(o)})`,a.breadcrumb=()=>[i.name,...i.breadcrumb()],a.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),a}static external(t,o){const i=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):X(null!=o?o:t.lastResortDefaultValue()),r=e.css`var(${X(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=i,r.get=o=>e.css`var(${X(t.name)}, ${i(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const J={colorWhite:Q.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:Q.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:Q.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:Q.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:Q.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:Q.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:Q.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:Q.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:Q.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:Q.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:Q.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:Q.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:Q.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:Q.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:Q.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:Q.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:Q.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:Q.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:Q.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:Q.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:Q.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:Q.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:Q.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:Q.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:Q.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:Q.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:Q.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:Q.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:Q.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:Q.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:Q.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:Q.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:Q.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:Q.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:Q.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:Q.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:Q.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:Q.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:Q.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:Q.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:Q.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:Q.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:Q.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:Q.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:Q.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:Q.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:Q.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:Q.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:Q.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:Q.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:Q.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:Q.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:Q.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:Q.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:Q.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:Q.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:Q.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:Q.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:Q.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:Q.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:Q.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:Q.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:Q.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:Q.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:Q.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:Q.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:Q.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:Q.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:Q.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:Q.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:Q.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:Q.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:Q.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:Q.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:Q.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:Q.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:Q.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:Q.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:Q.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:Q.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:Q.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:Q.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:Q.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:Q.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:Q.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:Q.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:Q.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:Q.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:Q.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:Q.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:Q.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:Q.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:Q.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:Q.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:Q.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:Q.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:Q.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:Q.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:Q.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:Q.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:Q.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:Q.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:Q.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:Q.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:Q.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:Q.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:Q.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:Q.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:Q.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:Q.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:Q.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:Q.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:Q.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:Q.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:Q.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:Q.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:Q.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:Q.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:Q.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:Q.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:Q.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:Q.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:Q.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:Q.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:Q.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:Q.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:Q.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:Q.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:Q.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:Q.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:Q.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:Q.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:Q.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:Q.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:Q.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:Q.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:Q.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:Q.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:Q.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:Q.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:Q.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:Q.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:Q.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:Q.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:Q.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:Q.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:Q.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:Q.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:Q.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:Q.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:Q.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:Q.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:Q.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:Q.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:Q.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:Q.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:Q.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:Q.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:Q.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:Q.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:Q.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:Q.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:Q.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:Q.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:Q.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:Q.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:Q.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:Q.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:Q.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:Q.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:Q.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:Q.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:Q.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:Q.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:Q.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:Q.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:Q.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:Q.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:Q.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:Q.create("--ft-icon-size-6","","SIZE","48px"),opacity0:Q.create("--ft-opacity-0","","NUMBER","0"),opacity8:Q.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:Q.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:Q.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:Q.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:Q.create("--ft-opacity-80","","NUMBER","0.8")},tt={display:{fontFamily:Q.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:Q.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:Q.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Q.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:Q.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:Q.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:Q.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Q.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:Q.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:Q.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:Q.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:Q.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:Q.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:Q.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:Q.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:Q.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:Q.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:Q.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:Q.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:Q.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Q.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:Q.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Q.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:Q.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:Q.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Q.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:Q.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:Q.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:Q.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Q.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:Q.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:Q.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:Q.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:Q.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:Q.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:Q.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Q.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:Q.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Q.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:Q.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:Q.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:Q.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Q.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:Q.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:Q.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:Q.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Q.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:Q.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:Q.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:Q.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Q.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:Q.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:Q.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:Q.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:Q.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Q.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:Q.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Q.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:Q.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:Q.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:Q.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Q.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:Q.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Q.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:Q.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Q.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:Q.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Q.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:Q.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:Q.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Q.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:Q.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Q.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:Q.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Q.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:Q.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Q.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:Q.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:Q.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:Q.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:Q.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:Q.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:Q.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:Q.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Q.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:Q.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:Q.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:Q.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:Q.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Q.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:Q.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:Q.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:Q.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:Q.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:Q.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Q.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:Q.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:Q.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:Q.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:Q.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:Q.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:Q.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:Q.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:Q.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:Q.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:Q.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:Q.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:Q.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:Q.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:Q.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:Q.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:Q.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:Q.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:Q.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:Q.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:Q.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:Q.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},ot={backgroundActionPrimary:Q.extend("--ft-background-action-primary","Used as backgorund of primary action components.",J.colorBrand0),backgroundErrorPrimary:Q.extend("--ft-background-error-primary","Used as background of error components.",J.colorRed0),backgroundErrorSubtle:Q.extend("--ft-background-error-subtle","Used as background of subtle error components.",J.colorRed10),backgroundInfoPrimary:Q.extend("--ft-background-info-primary","Used as background of information components.",J.colorCyan200),backgroundInfoSubtle:Q.extend("--ft-background-info-subtle","Used as background of subtle information components.",J.colorCyan10),backgroundWarningPrimary:Q.extend("--ft-background-warning-primary","Used as background of warning components.",J.colorOrange300),backgroundWarningSubtle:Q.extend("--ft-background-warning-subtle","Used as background of subtle information components.",J.colorOrange10),backgroundSuccessPrimary:Q.extend("--ft-background-success-primary","Used as background of success components.",J.colorGreen200),backgroundSuccessSubtle:Q.extend("--ft-background-success-subtle","Used as background of subtle success components.",J.colorGreen10),backgroundGlobalSurface:Q.extend("--ft-background-global-surface","Used as app background.",J.colorWhite),backgroundGlobalOnSurface:Q.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",J.colorGray10),backgroundGlobalOnSurfaceDark:Q.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",J.colorGray30),contentActionPrimary:Q.extend("--ft-content-action-primary","Used on label of primary action on light surface.",J.colorBrand0),contentWarningPrimary:Q.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",J.colorOrange300),contentWarningIconOnly:Q.extend("--ft-content-warning-icon-only","Used on warning status icons alone",J.colorOrange0),contentErrorPrimary:Q.extend("--ft-content-error-primary","Used on label of error messages on light surface.",J.colorRed0),contentErrorIconOnly:Q.extend("--ft-content-error-icon-only","Used on error status icons alone",J.colorRed0),contentInfoPrimary:Q.extend("--ft-content-info-primary","Used on label of information messages on light surface.",J.colorCyan200),contentInfoIconOnly:Q.extend("--ft-content-info-icon-only","Used on info status icons alone",J.colorCyan0),contentSuccessIconOnly:Q.extend("--ft-content-success-icon-only","Used on success status icons alone",J.colorGreen0),contentSuccessPrimary:Q.extend("--ft-content-success-primary","Used on label of success messages on light surface.",J.colorGreen200),contentGlobalPrimary:Q.extend("--ft-content-global-primary","Used for main content on the page.",J.colorGray500),contentGlobalSecondary:Q.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",J.colorGray200),contentGlobalSubtle:Q.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",J.colorGray0),contentGlobalOnColor:Q.extend("--ft-content-global-on-color","Used for content on a dominant color.",J.colorWhite),borderActionPrimary:Q.extend("--ft-border-action-primary","Used as border for primary action components.",J.colorBrand0),borderActionFocusRing:Q.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",J.colorCyan0),borderWarningPrimary:Q.extend("--ft-border-warning-primary","Used as border for warning components.",J.colorOrange30),borderSuccessPrimary:Q.extend("--ft-border-success-primary","Used as border for success components.",J.colorGreen30),borderErrorPrimary:Q.extend("--ft-border-error-primary","Used as border for error components.",J.colorRed30),borderInfoPrimary:Q.extend("--ft-border-info-primary","Used as border for information components.",J.colorCyan30),borderGlobalSubtle:Q.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",J.colorGray30),borderGlobalPrimary:Q.extend("--ft-border-global-primary","Used as border for element like input.",J.colorGray50),borderInputPrimary:Q.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",J.colorGray80)},et={largeHeight:Q.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:Q.extend("--ft-button-large-horizontal-padding","",J.spacing4),largeGap:Q.extend("--ft-button-large-gap","",J.spacing2),largeBorderRadius:Q.extend("--ft-button-large-border-radius","",J.borderRadiusS),largeIconSize:Q.extend("--ft-button-large-icon-size","",J.iconSize3),largeBorderWidth:Q.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:Q.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:Q.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:Q.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:Q.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:Q.extend("--ft-button-small-horizontal-padding","",J.spacing3),smallGap:Q.extend("--ft-button-small-gap","",J.spacing2),smallBorderRadius:Q.extend("--ft-button-small-border-radius","",J.borderRadiusS),smallIconSize:Q.extend("--ft-button-small-icon-size","",J.iconSize2),smallBorderWidth:Q.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:Q.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:Q.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:Q.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:Q.extend("--ft-button-primary-background-color","",ot.backgroundActionPrimary),primaryColor:Q.extend("--ft-button-primary-color","",ot.contentGlobalOnColor),primaryIconColor:Q.extend("--ft-button-primary-icon-color","",ot.contentGlobalOnColor),primaryStateLayerColor:Q.extend("--ft-button-primary-state-layer-color","",ot.contentGlobalOnColor),primaryStateLayerOpacityHover:Q.extend("--ft-button-primary-state-layer-opacity-hover","",J.opacity16),primaryStateLayerOpacityFocus:Q.extend("--ft-button-primary-state-layer-opacity-focus","",J.opacity16),primaryStateLayerOpacityActive:Q.extend("--ft-button-primary-state-layer-opacity-active","",J.opacity24),primaryComponentOpacityDisabled:Q.extend("--ft-button-primary-component-opacity-disabled","",J.opacity40),focusFocusRingColor:Q.extend("--ft-button-focus-focus-ring-color","",ot.borderActionFocusRing),tertiaryBackgroundColor:Q.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:Q.extend("--ft-button-tertiary-color","",ot.contentActionPrimary),tertiaryIconColor:Q.extend("--ft-button-tertiary-icon-color","",ot.contentActionPrimary),tertiaryStateLayerColor:Q.extend("--ft-button-tertiary-state-layer-color","",ot.contentActionPrimary),tertiaryStateLayerOpacityHover:Q.extend("--ft-button-tertiary-state-layer-opacity-hover","",J.opacity8),tertiaryStateLayerOpacityFocus:Q.extend("--ft-button-tertiary-state-layer-opacity-focus","",J.opacity8),tertiaryStateLayerOpacityActive:Q.extend("--ft-button-tertiary-state-layer-opacity-active","",J.opacity16),tertiaryComponentOpacityDisabled:Q.extend("--ft-button-tertiary-component-opacity-disabled","",J.opacity40),secondaryBackgroundColor:Q.extend("--ft-button-secondary-background-color","",J.colorWhite),secondaryColor:Q.extend("--ft-button-secondary-color","",ot.contentActionPrimary),secondaryIconColor:Q.extend("--ft-button-secondary-icon-color","",ot.contentActionPrimary),secondaryStateLayerColor:Q.extend("--ft-button-secondary-state-layer-color","",ot.contentActionPrimary),secondaryStateLayerOpacityHover:Q.extend("--ft-button-secondary-state-layer-opacity-hover","",J.opacity8),secondaryStateLayerOpacityFocus:Q.extend("--ft-button-secondary-state-layer-opacity-focus","",J.opacity8),secondaryStateLayerOpacityActive:Q.extend("--ft-button-secondary-state-layer-opacity-active","",J.opacity16),secondaryComponentOpacityDisabled:Q.extend("--ft-button-secondary-component-opacity-disabled","",J.opacity40),secondaryBorderColor:Q.extend("--ft-button-secondary-border-color","",ot.borderActionPrimary),neutralBackgroundColor:Q.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:Q.extend("--ft-button-neutral-icon-color","",ot.contentGlobalSecondary),neutralColor:Q.extend("--ft-button-neutral-color","",ot.contentGlobalSecondary),neutralStateLayerColor:Q.extend("--ft-button-neutral-state-layer-color","",ot.contentGlobalSecondary),neutralStateLayerOpacityHover:Q.extend("--ft-button-neutral-state-layer-opacity-hover","",J.opacity8),neutralStateLayerOpacityFocus:Q.extend("--ft-button-neutral-state-layer-opacity-focus","",J.opacity8),neutralStateLayerOpacityActive:Q.extend("--ft-button-neutral-state-layer-opacity-active","",J.opacity16),neutralComponentOpacityDisabled:Q.extend("--ft-button-neutral-component-opacity-disabled","",J.opacity40)};Q.extend("--ft-tabs-top-left-border-radius","",J.borderRadiusS),Q.extend("--ft-tabs-top-right-border-radius","",J.borderRadiusS),Q.extend("--ft-tabs-label-horizontal-padding","",J.spacing4),Q.extend("--ft-tabs-label-vertical-padding","",J.spacing3),Q.extend("--ft-tabs-label-gap","",J.spacing1),Q.extend("--ft-switch-group-horizontal-padding","",J.spacing1),Q.extend("--ft-switch-group-vertical-padding","",J.spacing1),Q.extend("--ft-switch-group-gap","",J.spacing1),Q.extend("--ft-switch-group-background-color","",ot.backgroundGlobalSurface),Q.extend("--ft-switch-group-border-color","",ot.borderGlobalSubtle),Q.create("--ft-switch-group-border-radius","","SIZE","6px"),Q.extend("--ft-switch-label-horizontal-padding","",J.spacing2),Q.extend("--ft-switch-label-vertical-padding","",J.spacing1),Q.extend("--ft-switch-icon-horizontal-padding","",J.spacing1),Q.extend("--ft-switch-icon-vertical-padding","",J.spacing1),Q.create("--ft-switch-focus-outline-width","","SIZE","2px"),Q.extend("--ft-switch-focus-focus-ring-color","",ot.borderActionFocusRing),Q.extend("--ft-switch-option-border-radius","",J.borderRadiusS),Q.extend("--ft-switch-off-state-layer-opacity-hover","",J.opacity8),Q.extend("--ft-switch-off-state-layer-opacity-focus","",J.opacity8),Q.extend("--ft-switch-off-state-layer-opacity-active","",J.opacity16),Q.extend("--ft-switch-off-component-opacity-disabled","",J.opacity40),Q.extend("--ft-switch-off-color","",ot.contentGlobalSubtle),Q.extend("--ft-switch-off-state-layer-color","",ot.contentGlobalSubtle),Q.extend("--ft-chart-1-light","for area color charts",J.colorBrand40),Q.extend("--ft-chart-1-base","for line charts",J.colorBrand0),Q.extend("--ft-chart-2-light","for area color charts",J.colorYellow60),Q.extend("--ft-chart-2-base","for line charts",J.colorYellow100),Q.extend("--ft-chart-3-light","",J.colorUltramarine40),Q.extend("--ft-chart-3-base","",J.colorUltramarine70),Q.extend("--ft-chart-4-light","",J.colorCyan50),Q.extend("--ft-chart-4-base","",J.colorCyan100),Q.extend("--ft-chart-5-light","",J.colorRed40),Q.extend("--ft-chart-5-base","",J.colorRed60),Q.extend("--ft-chart-6-light","",J.colorGreen40),Q.extend("--ft-chart-6-base","",J.colorGreen70),Q.extend("--ft-chart-7-light","",J.colorOrange70),Q.extend("--ft-chart-7-base","",J.colorOrange100),Q.extend("--ft-chart-8-light","",J.colorAvocado70),Q.extend("--ft-chart-8-base","",J.colorAvocado200),Q.extend("--ft-chart-9-light","",J.colorBrown50),Q.extend("--ft-chart-9-base","",J.colorBrown200),Q.extend("--ft-chart-10-light","",J.colorGray50),Q.extend("--ft-chart-10-base","",J.colorGray80),Q.extend("--ft-chart-monochrome-10","",J.colorBrand10),Q.extend("--ft-chart-monochrome-20","",J.colorBrand20),Q.extend("--ft-chart-monochrome-30","",J.colorBrand40),Q.extend("--ft-chart-monochrome-40","",J.colorBrand60),Q.extend("--ft-chart-monochrome-50","",J.colorBrand0),Q.extend("--ft-chart-monochrome-60","",J.colorBrand200),Q.extend("--ft-chip-large-horizontal-padding","",J.spacing4),Q.extend("--ft-chip-large-vertical-padding","",J.spacing2),Q.extend("--ft-chip-large-gap","",J.spacing1),Q.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),Q.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),Q.extend("--ft-chip-large-border-radius","",J.borderRadiusPill),Q.create("--ft-chip-large-border-width","","SIZE","1px"),Q.extend("--ft-chip-large-icon-size","",J.iconSize3),Q.extend("--ft-chip-medium-horizontal-padding","",J.spacing3),Q.extend("--ft-chip-medium-vertical-padding","",J.spacing1),Q.extend("--ft-chip-medium-gap","",J.spacing1),Q.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),Q.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),Q.extend("--ft-chip-medium-border-radius","",J.borderRadiusPill),Q.create("--ft-chip-medium-border-width","","SIZE","1px"),Q.extend("--ft-chip-medium-icon-size","",J.iconSize2),Q.extend("--ft-chip-small-horizontal-padding","",J.spacing2),Q.extend("--ft-chip-small-vertical-padding","",J.spacing05),Q.extend("--ft-chip-small-gap","",J.spacing1),Q.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),Q.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),Q.extend("--ft-chip-small-border-radius","",J.borderRadiusPill),Q.create("--ft-chip-small-border-width","","SIZE","1px"),Q.extend("--ft-chip-small-icon-size","",J.iconSize1),Q.extend("--ft-chip-neutral-background-color","",ot.backgroundGlobalOnSurface),Q.extend("--ft-chip-neutral-color","",ot.contentGlobalPrimary),Q.extend("--ft-chip-neutral-border-color","",ot.borderGlobalSubtle),Q.extend("--ft-chip-info-background-color","",ot.backgroundInfoSubtle),Q.extend("--ft-chip-info-color","",ot.contentInfoPrimary),Q.extend("--ft-chip-info-border-color","",ot.borderInfoPrimary),Q.extend("--ft-chip-success-background-color","",ot.backgroundSuccessSubtle),Q.extend("--ft-chip-success-color","",ot.contentSuccessPrimary),Q.extend("--ft-chip-success-border-color","",ot.borderSuccessPrimary),Q.extend("--ft-chip-warning-background-color","",ot.backgroundWarningSubtle),Q.extend("--ft-chip-warning-color","",ot.contentWarningPrimary),Q.extend("--ft-chip-warning-border-color","",ot.borderWarningPrimary),Q.extend("--ft-chip-error-background-color","",ot.backgroundErrorSubtle),Q.extend("--ft-chip-error-color","",ot.contentErrorPrimary),Q.extend("--ft-chip-error-border-color","",ot.borderErrorPrimary),Q.create("--ft-notice-border-width","","SIZE","1px"),Q.extend("--ft-notice-horizontal-padding","",J.spacing2),Q.extend("--ft-notice-vertical-padding","",J.spacing1),Q.extend("--ft-notice-border-radius","",J.borderRadiusS),Q.extend("--ft-notice-gap","",J.spacing2),Q.extend("--ft-notice-icon-size","",J.iconSize3),Q.extend("--ft-notice-info-background-color","",ot.backgroundInfoSubtle),Q.extend("--ft-notice-info-border-color","",ot.borderInfoPrimary),Q.extend("--ft-notice-info-color","",ot.contentInfoPrimary),Q.extend("--ft-notice-warning-background-color","",ot.backgroundWarningSubtle),Q.extend("--ft-notice-warning-border-color","",ot.borderWarningPrimary),Q.extend("--ft-notice-warning-color","",ot.contentWarningPrimary),Q.extend("--ft-checkbox-label-color","",ot.contentGlobalPrimary),Q.extend("--ft-checkbox-checked-background-color","",ot.contentActionPrimary),Q.extend("--ft-checkbox-checked-state-layer-color","",ot.contentActionPrimary),Q.extend("--ft-checkbox-checked-color","",ot.contentGlobalOnColor),Q.extend("--ft-checkbox-checked-state-layer-opacity-hover","",J.opacity16),Q.extend("--ft-checkbox-checked-state-layer-opacity-focus","",J.opacity16),Q.extend("--ft-checkbox-checked-state-layer-opacity-active","",J.opacity24),Q.extend("--ft-checkbox-checked-component-opacity-disabled","",J.opacity40),Q.extend("--ft-checkbox-unchecked-border-color","",J.colorGray80),Q.extend("--ft-checkbox-unchecked-state-layer-color","",J.colorGray80),Q.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",J.opacity16),Q.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",J.opacity16),Q.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",J.opacity24),Q.extend("--ft-checkbox-unchecked-component-opacity-disabled","",J.opacity40),Q.extend("--ft-checkbox-focus-focus-ring-color","",ot.borderActionFocusRing),Q.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),Q.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),Q.extend("--ft-checkbox-gap","",J.spacing3),Q.extend("--ft-toggle-off-state-layer-opacity-hover","",J.opacity16),Q.extend("--ft-toggle-off-state-layer-opacity-focus","",J.opacity16),Q.extend("--ft-toggle-off-state-layer-opacity-active","",J.opacity24),Q.extend("--ft-toggle-off-component-opacity-disabled","",J.opacity40),Q.extend("--ft-toggle-off-background-color","",ot.contentGlobalSubtle),Q.extend("--ft-toggle-off-icon-color","",ot.contentGlobalSubtle),Q.extend("--ft-toggle-off-state-layer-color","",ot.contentGlobalSubtle),Q.extend("--ft-toggle-on-state-layer-opacity-hover","",J.opacity16),Q.extend("--ft-toggle-on-state-layer-opacity-focus","",J.opacity16),Q.extend("--ft-toggle-on-state-layer-opacity-active","",J.opacity24),Q.extend("--ft-toggle-on-component-opacity-disabled","",J.opacity40),Q.extend("--ft-toggle-on-background-color","",ot.contentActionPrimary),Q.extend("--ft-toggle-on-icon-color","",ot.contentActionPrimary),Q.extend("--ft-toggle-on-state-layer-color","",ot.contentActionPrimary),Q.extend("--ft-toggle-label-color","",ot.contentGlobalPrimary),Q.extend("--ft-toggle-focus-focus-ring-color","",ot.borderActionFocusRing),Q.extend("--ft-toggle-gap","",J.spacing3),Q.extend("--ft-radio-label-color","",ot.contentGlobalPrimary),Q.extend("--ft-radio-selected-color","",ot.contentActionPrimary),Q.extend("--ft-radio-selected-state-layer-color","",ot.contentActionPrimary),Q.extend("--ft-radio-selected-state-layer-opacity-hover","",J.opacity16),Q.extend("--ft-radio-selected-state-layer-opacity-focus","",J.opacity16),Q.extend("--ft-radio-selected-state-layer-opacity-active","",J.opacity24),Q.extend("--ft-radio-selected-component-opacity-disabled","",J.opacity40),Q.extend("--ft-radio-unselected-state-layer-color","",J.colorGray80),Q.extend("--ft-radio-unselected-state-layer-opacity-hover","",J.opacity16),Q.extend("--ft-radio-unselected-state-layer-opacity-focus","",J.opacity16),Q.extend("--ft-radio-unselected-state-layer-opacity-active","",J.opacity24),Q.extend("--ft-radio-unselected-component-opacity-disabled","",J.opacity40),Q.extend("--ft-radio-focus-focus-ring-color","",ot.borderActionFocusRing),Q.create("--ft-radio-focus-outline-offset","","SIZE","3px"),Q.create("--ft-radio-focus-outline-width","","SIZE","2px"),Q.extend("--ft-radio-gap","",J.spacing3),Q.extend("--ft-notification-icon-size","",J.iconSize4),Q.extend("--ft-notification-horizontal-padding","",J.spacing4),Q.extend("--ft-notification-vertical-padding","",J.spacing4),Q.extend("--ft-notification-info-background-color","",ot.backgroundInfoSubtle),Q.extend("--ft-notification-info-color","",ot.contentInfoPrimary),Q.extend("--ft-notification-info-border-color","",ot.borderInfoPrimary),Q.extend("--ft-notification-success-background-color","",ot.backgroundSuccessSubtle),Q.extend("--ft-notification-success-color","",ot.contentSuccessPrimary),Q.extend("--ft-notification-success-border-color","",ot.borderSuccessPrimary),Q.extend("--ft-notification-warning-background-color","",ot.backgroundWarningSubtle),Q.extend("--ft-notification-warning-color","",ot.contentWarningPrimary),Q.extend("--ft-notification-warning-border-color","",ot.borderWarningPrimary),Q.extend("--ft-notification-error-background-color","",ot.backgroundErrorSubtle),Q.extend("--ft-notification-error-color","",ot.contentErrorPrimary),Q.extend("--ft-notification-error-border-color","",ot.borderErrorPrimary),Q.extend("--ft-notification-border-radius","",J.borderRadiusPill),Q.create("--ft-notification-border-width","","SIZE","1px"),Q.extend("--ft-notification-gap-leading","",J.spacing2),Q.extend("--ft-notification-gap-trailing","",J.spacing8);const it=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),rt=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),nt={fontFamily:rt,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},at=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",it),st=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",nt.fontSize,"20px"),lt=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",nt.fontWeight,"normal"),ct=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",nt.letterSpacing,"0.15px"),ht=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",nt.lineHeight,"1.2"),pt=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",nt.textTransform,"inherit"),ft=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",it),dt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",nt.fontSize,"14px"),ut=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",nt.fontWeight,"normal"),yt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",nt.letterSpacing,"0.105px"),gt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",nt.lineHeight,"1.7"),bt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",nt.textTransform,"inherit"),mt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",rt),vt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",nt.fontSize,"16px"),xt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",nt.fontWeight,"600"),Ot=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",nt.letterSpacing,"0.144px"),Nt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",nt.lineHeight,"1.5"),St=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",nt.textTransform,"inherit"),wt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",rt),$t=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",nt.fontSize,"14px"),Ct=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",nt.fontWeight,"normal"),kt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",nt.letterSpacing,"0.098px"),It=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",nt.lineHeight,"1.7"),Et=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",nt.textTransform,"inherit"),Rt=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",rt),Ut=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",nt.fontSize,"16px"),Lt=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",nt.fontWeight,"normal"),Wt=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",nt.letterSpacing,"0.496px"),zt=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",nt.lineHeight,"1.5"),Kt=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",nt.textTransform,"inherit"),Bt={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",rt),fontSize:o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",nt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",nt.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",nt.letterSpacing,"0.252px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",nt.lineHeight,"1.4"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",nt.textTransform,"inherit")},At=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",rt),Dt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",nt.fontSize,"12px"),Zt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",nt.fontWeight,"normal"),Ft=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",nt.letterSpacing,"0.396px"),Tt=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",nt.lineHeight,"1.33"),Ht=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",nt.textTransform,"inherit"),Pt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",rt),jt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",nt.fontSize,"10px"),Mt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",nt.fontWeight,"normal"),_t=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",nt.letterSpacing,"0.33px"),Gt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",nt.lineHeight,"1.6"),Vt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",nt.textTransform,"inherit"),qt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",rt),Yt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",nt.fontSize,"10px"),Xt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",nt.fontWeight,"normal"),Qt=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",nt.letterSpacing,"1.5px"),Jt=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",nt.lineHeight,"1.6"),to=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",nt.textTransform,"uppercase"),oo={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",rt),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",nt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",nt.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",nt.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",nt.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",nt.textTransform,"uppercase")},eo=e.css`
|
|
13
|
+
const j=Symbol.for(""),M=t=>{if(t?.r===j)return t?._$litStatic$},_=t=>({_$litStatic$:t,r:j}),G=new Map,V=(t=>(o,...e)=>{const i=e.length;let r,a;const n=[],s=[];let l,c=0,h=!1;for(;c<i;){for(l=o[c];c<i&&void 0!==(a=e[c],r=M(a));)l+=r+o[++c],h=!0;c!==i&&s.push(a),n.push(l),c++}if(c===i&&n.push(o[i]),h){const t=n.join("$$lit$$");void 0===(o=G.get(t))&&(n.raw=n,G.set(t,o=n)),e=s}return t(o,...e)})(k);var q;!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"}(q||(q={}));const Y=t=>"string"==typeof t?e.unsafeCSS(t):t;class X{static create(t,o,i,r){const a=t=>Y(null!=t?t:r),n=e.css`var(${Y(t)}, ${a(r)})`;return n.name=t,n.description=o,n.category=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${Y(t)}, ${a(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,o,i,r){const a=t=>i.get(null!=t?t:r),n=e.css`var(${Y(t)}, ${a(r)})`;return n.name=t,n.description=o,n.category=i.category,n.fallbackVariable=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${Y(t)}, ${a(o)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),n}static external(t,o){const i=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):Y(null!=o?o:t.lastResortDefaultValue()),r=e.css`var(${Y(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=i,r.get=o=>e.css`var(${Y(t.name)}, ${i(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const Q={colorWhite:X.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:X.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:X.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:X.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:X.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:X.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:X.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:X.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:X.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:X.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:X.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:X.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:X.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:X.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:X.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:X.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:X.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:X.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:X.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:X.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:X.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:X.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:X.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:X.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:X.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:X.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:X.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:X.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:X.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:X.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:X.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:X.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:X.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:X.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:X.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:X.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:X.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:X.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:X.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:X.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:X.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:X.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:X.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:X.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:X.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:X.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:X.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:X.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:X.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:X.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:X.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:X.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:X.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:X.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:X.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:X.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:X.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:X.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:X.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:X.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:X.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:X.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:X.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:X.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:X.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:X.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:X.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:X.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:X.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:X.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:X.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:X.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:X.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:X.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:X.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:X.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:X.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:X.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:X.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:X.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:X.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:X.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:X.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:X.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:X.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:X.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:X.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:X.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:X.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:X.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:X.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:X.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:X.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:X.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:X.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:X.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:X.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:X.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:X.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:X.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:X.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:X.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:X.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:X.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:X.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:X.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:X.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:X.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:X.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:X.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:X.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:X.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:X.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:X.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:X.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:X.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:X.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:X.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:X.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:X.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:X.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:X.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:X.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:X.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:X.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:X.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:X.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:X.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:X.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:X.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:X.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:X.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:X.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:X.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:X.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:X.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:X.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:X.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:X.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:X.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:X.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:X.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:X.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:X.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:X.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:X.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:X.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:X.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:X.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:X.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:X.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:X.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:X.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:X.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:X.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:X.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:X.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:X.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:X.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:X.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:X.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:X.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:X.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:X.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:X.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:X.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:X.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:X.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:X.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:X.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:X.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:X.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:X.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:X.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:X.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:X.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:X.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:X.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:X.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:X.create("--ft-icon-size-6","","SIZE","48px"),opacity0:X.create("--ft-opacity-0","","NUMBER","0"),opacity8:X.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:X.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:X.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:X.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:X.create("--ft-opacity-80","","NUMBER","0.8")},J={display:{fontFamily:X.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:X.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:X.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:X.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:X.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:X.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:X.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:X.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:X.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:X.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:X.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:X.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:X.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:X.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:X.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:X.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:X.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:X.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:X.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:X.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:X.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:X.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:X.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:X.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:X.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:X.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:X.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:X.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:X.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:X.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:X.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:X.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:X.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:X.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:X.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:X.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:X.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:X.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:X.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:X.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:X.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:X.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:X.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:X.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:X.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:X.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:X.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:X.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:X.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:X.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:X.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:X.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:X.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:X.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:X.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:X.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},tt={backgroundActionPrimary:X.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Q.colorBrand0),backgroundErrorPrimary:X.extend("--ft-background-error-primary","Used as background of error components.",Q.colorRed0),backgroundErrorSubtle:X.extend("--ft-background-error-subtle","Used as background of subtle error components.",Q.colorRed10),backgroundInfoPrimary:X.extend("--ft-background-info-primary","Used as background of information components.",Q.colorCyan200),backgroundInfoSubtle:X.extend("--ft-background-info-subtle","Used as background of subtle information components.",Q.colorCyan10),backgroundWarningPrimary:X.extend("--ft-background-warning-primary","Used as background of warning components.",Q.colorOrange300),backgroundWarningSubtle:X.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Q.colorOrange10),backgroundSuccessPrimary:X.extend("--ft-background-success-primary","Used as background of success components.",Q.colorGreen200),backgroundSuccessSubtle:X.extend("--ft-background-success-subtle","Used as background of subtle success components.",Q.colorGreen10),backgroundGlobalSurface:X.extend("--ft-background-global-surface","Used as app background.",Q.colorWhite),backgroundGlobalOnSurface:X.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Q.colorGray10),backgroundGlobalOnSurfaceDark:X.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Q.colorGray30),contentActionPrimary:X.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Q.colorBrand0),contentWarningPrimary:X.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Q.colorOrange300),contentWarningIconOnly:X.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Q.colorOrange0),contentErrorPrimary:X.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Q.colorRed0),contentErrorIconOnly:X.extend("--ft-content-error-icon-only","Used on error status icons alone",Q.colorRed0),contentInfoPrimary:X.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Q.colorCyan200),contentInfoIconOnly:X.extend("--ft-content-info-icon-only","Used on info status icons alone",Q.colorCyan0),contentSuccessIconOnly:X.extend("--ft-content-success-icon-only","Used on success status icons alone",Q.colorGreen0),contentSuccessPrimary:X.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Q.colorGreen200),contentGlobalPrimary:X.extend("--ft-content-global-primary","Used for main content on the page.",Q.colorGray500),contentGlobalSecondary:X.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Q.colorGray200),contentGlobalSubtle:X.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Q.colorGray0),contentGlobalOnColor:X.extend("--ft-content-global-on-color","Used for content on a dominant color.",Q.colorWhite),borderActionPrimary:X.extend("--ft-border-action-primary","Used as border for primary action components.",Q.colorBrand0),borderActionFocusRing:X.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Q.colorCyan0),borderWarningPrimary:X.extend("--ft-border-warning-primary","Used as border for warning components.",Q.colorOrange30),borderSuccessPrimary:X.extend("--ft-border-success-primary","Used as border for success components.",Q.colorGreen30),borderErrorPrimary:X.extend("--ft-border-error-primary","Used as border for error components.",Q.colorRed30),borderInfoPrimary:X.extend("--ft-border-info-primary","Used as border for information components.",Q.colorCyan30),borderGlobalSubtle:X.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Q.colorGray30),borderGlobalPrimary:X.extend("--ft-border-global-primary","Used as border for element like input.",Q.colorGray50),borderInputPrimary:X.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Q.colorGray80)},ot={largeHeight:X.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:X.extend("--ft-button-large-horizontal-padding","",Q.spacing4),largeGap:X.extend("--ft-button-large-gap","",Q.spacing2),largeBorderRadius:X.extend("--ft-button-large-border-radius","",Q.borderRadiusS),largeIconSize:X.extend("--ft-button-large-icon-size","",Q.iconSize3),largeBorderWidth:X.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:X.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:X.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:X.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:X.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:X.extend("--ft-button-small-horizontal-padding","",Q.spacing3),smallGap:X.extend("--ft-button-small-gap","",Q.spacing2),smallBorderRadius:X.extend("--ft-button-small-border-radius","",Q.borderRadiusS),smallIconSize:X.extend("--ft-button-small-icon-size","",Q.iconSize2),smallBorderWidth:X.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:X.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:X.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:X.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:X.extend("--ft-button-primary-background-color","",tt.backgroundActionPrimary),primaryColor:X.extend("--ft-button-primary-color","",tt.contentGlobalOnColor),primaryIconColor:X.extend("--ft-button-primary-icon-color","",tt.contentGlobalOnColor),primaryStateLayerColor:X.extend("--ft-button-primary-state-layer-color","",tt.contentGlobalOnColor),primaryStateLayerOpacityHover:X.extend("--ft-button-primary-state-layer-opacity-hover","",Q.opacity16),primaryStateLayerOpacityFocus:X.extend("--ft-button-primary-state-layer-opacity-focus","",Q.opacity16),primaryStateLayerOpacityActive:X.extend("--ft-button-primary-state-layer-opacity-active","",Q.opacity24),primaryComponentOpacityDisabled:X.extend("--ft-button-primary-component-opacity-disabled","",Q.opacity40),focusFocusRingColor:X.extend("--ft-button-focus-focus-ring-color","",tt.borderActionFocusRing),tertiaryBackgroundColor:X.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:X.extend("--ft-button-tertiary-color","",tt.contentActionPrimary),tertiaryIconColor:X.extend("--ft-button-tertiary-icon-color","",tt.contentActionPrimary),tertiaryStateLayerColor:X.extend("--ft-button-tertiary-state-layer-color","",tt.contentActionPrimary),tertiaryStateLayerOpacityHover:X.extend("--ft-button-tertiary-state-layer-opacity-hover","",Q.opacity8),tertiaryStateLayerOpacityFocus:X.extend("--ft-button-tertiary-state-layer-opacity-focus","",Q.opacity8),tertiaryStateLayerOpacityActive:X.extend("--ft-button-tertiary-state-layer-opacity-active","",Q.opacity16),tertiaryComponentOpacityDisabled:X.extend("--ft-button-tertiary-component-opacity-disabled","",Q.opacity40),secondaryBackgroundColor:X.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:X.extend("--ft-button-secondary-color","",tt.contentActionPrimary),secondaryIconColor:X.extend("--ft-button-secondary-icon-color","",tt.contentActionPrimary),secondaryStateLayerColor:X.extend("--ft-button-secondary-state-layer-color","",tt.contentActionPrimary),secondaryStateLayerOpacityHover:X.extend("--ft-button-secondary-state-layer-opacity-hover","",Q.opacity8),secondaryStateLayerOpacityFocus:X.extend("--ft-button-secondary-state-layer-opacity-focus","",Q.opacity8),secondaryStateLayerOpacityActive:X.extend("--ft-button-secondary-state-layer-opacity-active","",Q.opacity16),secondaryComponentOpacityDisabled:X.extend("--ft-button-secondary-component-opacity-disabled","",Q.opacity40),secondaryBorderColor:X.extend("--ft-button-secondary-border-color","",tt.borderActionPrimary),neutralBackgroundColor:X.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:X.extend("--ft-button-neutral-icon-color","",tt.contentGlobalSecondary),neutralColor:X.extend("--ft-button-neutral-color","",tt.contentGlobalSecondary),neutralStateLayerColor:X.extend("--ft-button-neutral-state-layer-color","",tt.contentGlobalSecondary),neutralStateLayerOpacityHover:X.extend("--ft-button-neutral-state-layer-opacity-hover","",Q.opacity8),neutralStateLayerOpacityFocus:X.extend("--ft-button-neutral-state-layer-opacity-focus","",Q.opacity8),neutralStateLayerOpacityActive:X.extend("--ft-button-neutral-state-layer-opacity-active","",Q.opacity16),neutralComponentOpacityDisabled:X.extend("--ft-button-neutral-component-opacity-disabled","",Q.opacity40)};X.extend("--ft-tabs-top-left-border-radius","",Q.borderRadiusS),X.extend("--ft-tabs-top-right-border-radius","",Q.borderRadiusS),X.extend("--ft-tabs-label-horizontal-padding","",Q.spacing4),X.extend("--ft-tabs-label-vertical-padding","",Q.spacing3),X.extend("--ft-tabs-label-gap","",Q.spacing1),X.extend("--ft-switch-group-horizontal-padding","",Q.spacing1),X.extend("--ft-switch-group-vertical-padding","",Q.spacing1),X.extend("--ft-switch-group-gap","",Q.spacing1),X.extend("--ft-switch-group-background-color","",tt.backgroundGlobalSurface),X.extend("--ft-switch-group-border-color","",tt.borderGlobalSubtle),X.create("--ft-switch-group-border-radius","","SIZE","6px"),X.extend("--ft-switch-label-horizontal-padding","",Q.spacing2),X.extend("--ft-switch-label-vertical-padding","",Q.spacing1),X.extend("--ft-switch-icon-horizontal-padding","",Q.spacing1),X.extend("--ft-switch-icon-vertical-padding","",Q.spacing1),X.create("--ft-switch-focus-outline-width","","SIZE","2px"),X.extend("--ft-switch-focus-focus-ring-color","",tt.borderActionFocusRing),X.extend("--ft-switch-option-border-radius","",Q.borderRadiusS),X.extend("--ft-switch-off-state-layer-opacity-hover","",Q.opacity8),X.extend("--ft-switch-off-state-layer-opacity-focus","",Q.opacity8),X.extend("--ft-switch-off-state-layer-opacity-active","",Q.opacity16),X.extend("--ft-switch-off-component-opacity-disabled","",Q.opacity40),X.extend("--ft-switch-off-color","",tt.contentGlobalSubtle),X.extend("--ft-switch-off-state-layer-color","",tt.contentGlobalSubtle),X.extend("--ft-chart-1-light","for area color charts",Q.colorBrand40),X.extend("--ft-chart-1-base","for line charts",Q.colorBrand0),X.extend("--ft-chart-2-light","for area color charts",Q.colorYellow60),X.extend("--ft-chart-2-base","for line charts",Q.colorYellow100),X.extend("--ft-chart-3-light","",Q.colorUltramarine40),X.extend("--ft-chart-3-base","",Q.colorUltramarine70),X.extend("--ft-chart-4-light","",Q.colorCyan50),X.extend("--ft-chart-4-base","",Q.colorCyan100),X.extend("--ft-chart-5-light","",Q.colorRed40),X.extend("--ft-chart-5-base","",Q.colorRed60),X.extend("--ft-chart-6-light","",Q.colorGreen40),X.extend("--ft-chart-6-base","",Q.colorGreen70),X.extend("--ft-chart-7-light","",Q.colorOrange70),X.extend("--ft-chart-7-base","",Q.colorOrange100),X.extend("--ft-chart-8-light","",Q.colorAvocado70),X.extend("--ft-chart-8-base","",Q.colorAvocado200),X.extend("--ft-chart-9-light","",Q.colorBrown50),X.extend("--ft-chart-9-base","",Q.colorBrown200),X.extend("--ft-chart-10-light","",Q.colorGray50),X.extend("--ft-chart-10-base","",Q.colorGray80),X.extend("--ft-chart-monochrome-10","",Q.colorBrand10),X.extend("--ft-chart-monochrome-20","",Q.colorBrand20),X.extend("--ft-chart-monochrome-30","",Q.colorBrand40),X.extend("--ft-chart-monochrome-40","",Q.colorBrand60),X.extend("--ft-chart-monochrome-50","",Q.colorBrand0),X.extend("--ft-chart-monochrome-60","",Q.colorBrand200),X.extend("--ft-chip-large-horizontal-padding","",Q.spacing4),X.extend("--ft-chip-large-vertical-padding","",Q.spacing2),X.extend("--ft-chip-large-gap","",Q.spacing1),X.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),X.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),X.extend("--ft-chip-large-border-radius","",Q.borderRadiusPill),X.create("--ft-chip-large-border-width","","SIZE","1px"),X.extend("--ft-chip-large-icon-size","",Q.iconSize3),X.extend("--ft-chip-medium-horizontal-padding","",Q.spacing3),X.extend("--ft-chip-medium-vertical-padding","",Q.spacing1),X.extend("--ft-chip-medium-gap","",Q.spacing1),X.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),X.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),X.extend("--ft-chip-medium-border-radius","",Q.borderRadiusPill),X.create("--ft-chip-medium-border-width","","SIZE","1px"),X.extend("--ft-chip-medium-icon-size","",Q.iconSize2),X.extend("--ft-chip-small-horizontal-padding","",Q.spacing2),X.extend("--ft-chip-small-vertical-padding","",Q.spacing05),X.extend("--ft-chip-small-gap","",Q.spacing1),X.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),X.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),X.extend("--ft-chip-small-border-radius","",Q.borderRadiusPill),X.create("--ft-chip-small-border-width","","SIZE","1px"),X.extend("--ft-chip-small-icon-size","",Q.iconSize1),X.extend("--ft-chip-neutral-background-color","",tt.backgroundGlobalOnSurface),X.extend("--ft-chip-neutral-color","",tt.contentGlobalPrimary),X.extend("--ft-chip-neutral-border-color","",tt.borderGlobalSubtle),X.extend("--ft-chip-info-background-color","",tt.backgroundInfoSubtle),X.extend("--ft-chip-info-color","",tt.contentInfoPrimary),X.extend("--ft-chip-info-border-color","",tt.borderInfoPrimary),X.extend("--ft-chip-success-background-color","",tt.backgroundSuccessSubtle),X.extend("--ft-chip-success-color","",tt.contentSuccessPrimary),X.extend("--ft-chip-success-border-color","",tt.borderSuccessPrimary),X.extend("--ft-chip-warning-background-color","",tt.backgroundWarningSubtle),X.extend("--ft-chip-warning-color","",tt.contentWarningPrimary),X.extend("--ft-chip-warning-border-color","",tt.borderWarningPrimary),X.extend("--ft-chip-error-background-color","",tt.backgroundErrorSubtle),X.extend("--ft-chip-error-color","",tt.contentErrorPrimary),X.extend("--ft-chip-error-border-color","",tt.borderErrorPrimary),X.create("--ft-notice-border-width","","SIZE","1px"),X.extend("--ft-notice-horizontal-padding","",Q.spacing2),X.extend("--ft-notice-vertical-padding","",Q.spacing1),X.extend("--ft-notice-border-radius","",Q.borderRadiusS),X.extend("--ft-notice-gap","",Q.spacing2),X.extend("--ft-notice-icon-size","",Q.iconSize3),X.extend("--ft-notice-info-background-color","",tt.backgroundInfoSubtle),X.extend("--ft-notice-info-border-color","",tt.borderInfoPrimary),X.extend("--ft-notice-info-color","",tt.contentInfoPrimary),X.extend("--ft-notice-warning-background-color","",tt.backgroundWarningSubtle),X.extend("--ft-notice-warning-border-color","",tt.borderWarningPrimary),X.extend("--ft-notice-warning-color","",tt.contentWarningPrimary),X.extend("--ft-checkbox-label-color","",tt.contentGlobalPrimary),X.extend("--ft-checkbox-checked-background-color","",tt.contentActionPrimary),X.extend("--ft-checkbox-checked-state-layer-color","",tt.contentActionPrimary),X.extend("--ft-checkbox-checked-color","",tt.contentGlobalOnColor),X.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Q.opacity16),X.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Q.opacity16),X.extend("--ft-checkbox-checked-state-layer-opacity-active","",Q.opacity24),X.extend("--ft-checkbox-checked-component-opacity-disabled","",Q.opacity40),X.extend("--ft-checkbox-unchecked-border-color","",Q.colorGray80),X.extend("--ft-checkbox-unchecked-state-layer-color","",Q.colorGray80),X.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Q.opacity16),X.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Q.opacity16),X.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Q.opacity24),X.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Q.opacity40),X.extend("--ft-checkbox-focus-focus-ring-color","",tt.borderActionFocusRing),X.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),X.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),X.extend("--ft-checkbox-gap","",Q.spacing3),X.extend("--ft-toggle-off-state-layer-opacity-hover","",Q.opacity16),X.extend("--ft-toggle-off-state-layer-opacity-focus","",Q.opacity16),X.extend("--ft-toggle-off-state-layer-opacity-active","",Q.opacity24),X.extend("--ft-toggle-off-component-opacity-disabled","",Q.opacity40),X.extend("--ft-toggle-off-background-color","",tt.contentGlobalSubtle),X.extend("--ft-toggle-off-icon-color","",tt.contentGlobalSubtle),X.extend("--ft-toggle-off-state-layer-color","",tt.contentGlobalSubtle),X.extend("--ft-toggle-on-state-layer-opacity-hover","",Q.opacity16),X.extend("--ft-toggle-on-state-layer-opacity-focus","",Q.opacity16),X.extend("--ft-toggle-on-state-layer-opacity-active","",Q.opacity24),X.extend("--ft-toggle-on-component-opacity-disabled","",Q.opacity40),X.extend("--ft-toggle-on-background-color","",tt.contentActionPrimary),X.extend("--ft-toggle-on-icon-color","",tt.contentActionPrimary),X.extend("--ft-toggle-on-state-layer-color","",tt.contentActionPrimary),X.extend("--ft-toggle-label-color","",tt.contentGlobalPrimary),X.extend("--ft-toggle-focus-focus-ring-color","",tt.borderActionFocusRing),X.extend("--ft-toggle-gap","",Q.spacing3),X.extend("--ft-radio-label-color","",tt.contentGlobalPrimary),X.extend("--ft-radio-selected-color","",tt.contentActionPrimary),X.extend("--ft-radio-selected-state-layer-color","",tt.contentActionPrimary),X.extend("--ft-radio-selected-state-layer-opacity-hover","",Q.opacity16),X.extend("--ft-radio-selected-state-layer-opacity-focus","",Q.opacity16),X.extend("--ft-radio-selected-state-layer-opacity-active","",Q.opacity24),X.extend("--ft-radio-selected-component-opacity-disabled","",Q.opacity40),X.extend("--ft-radio-unselected-state-layer-color","",Q.colorGray80),X.extend("--ft-radio-unselected-state-layer-opacity-hover","",Q.opacity16),X.extend("--ft-radio-unselected-state-layer-opacity-focus","",Q.opacity16),X.extend("--ft-radio-unselected-state-layer-opacity-active","",Q.opacity24),X.extend("--ft-radio-unselected-component-opacity-disabled","",Q.opacity40),X.extend("--ft-radio-focus-focus-ring-color","",tt.borderActionFocusRing),X.create("--ft-radio-focus-outline-offset","","SIZE","3px"),X.create("--ft-radio-focus-outline-width","","SIZE","2px"),X.extend("--ft-radio-gap","",Q.spacing3),X.extend("--ft-notification-icon-size","",Q.iconSize4),X.extend("--ft-notification-horizontal-padding","",Q.spacing4),X.extend("--ft-notification-vertical-padding","",Q.spacing4),X.extend("--ft-notification-info-background-color","",tt.backgroundInfoSubtle),X.extend("--ft-notification-info-color","",tt.contentInfoPrimary),X.extend("--ft-notification-info-border-color","",tt.borderInfoPrimary),X.extend("--ft-notification-success-background-color","",tt.backgroundSuccessSubtle),X.extend("--ft-notification-success-color","",tt.contentSuccessPrimary),X.extend("--ft-notification-success-border-color","",tt.borderSuccessPrimary),X.extend("--ft-notification-warning-background-color","",tt.backgroundWarningSubtle),X.extend("--ft-notification-warning-color","",tt.contentWarningPrimary),X.extend("--ft-notification-warning-border-color","",tt.borderWarningPrimary),X.extend("--ft-notification-error-background-color","",tt.backgroundErrorSubtle),X.extend("--ft-notification-error-color","",tt.contentErrorPrimary),X.extend("--ft-notification-error-border-color","",tt.borderErrorPrimary),X.extend("--ft-notification-border-radius","",Q.borderRadiusPill),X.create("--ft-notification-border-width","","SIZE","1px"),X.extend("--ft-notification-gap-leading","",Q.spacing2),X.extend("--ft-notification-gap-trailing","",Q.spacing8);const et=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),it=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),rt={fontFamily:it,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},at=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",et),nt=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",rt.fontSize,"20px"),st=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",rt.fontWeight,"normal"),lt=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",rt.letterSpacing,"0.15px"),ct=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",rt.lineHeight,"1.2"),ht=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",rt.textTransform,"inherit"),pt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",et),ft=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",rt.fontSize,"14px"),dt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",rt.fontWeight,"normal"),ut=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",rt.letterSpacing,"0.105px"),yt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",rt.lineHeight,"1.7"),gt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",rt.textTransform,"inherit"),bt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",it),mt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",rt.fontSize,"16px"),vt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",rt.fontWeight,"600"),xt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",rt.letterSpacing,"0.144px"),Ot=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",rt.lineHeight,"1.5"),Nt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",rt.textTransform,"inherit"),St=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",it),wt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",rt.fontSize,"14px"),$t=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",rt.fontWeight,"normal"),Ct=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",rt.letterSpacing,"0.098px"),kt=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",rt.lineHeight,"1.7"),It=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",rt.textTransform,"inherit"),Et=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",it),Rt=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",rt.fontSize,"16px"),Ut=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",rt.fontWeight,"normal"),Lt=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",rt.letterSpacing,"0.496px"),Wt=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",rt.lineHeight,"1.5"),zt=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",rt.textTransform,"inherit"),Kt={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",it),fontSize:o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",rt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",rt.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",rt.letterSpacing,"0.252px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",rt.lineHeight,"1.4"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",rt.textTransform,"inherit")},Bt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",it),At=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",rt.fontSize,"12px"),Dt=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",rt.fontWeight,"normal"),Zt=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",rt.letterSpacing,"0.396px"),Ft=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",rt.lineHeight,"1.33"),Tt=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",rt.textTransform,"inherit"),Ht=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",it),Pt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",rt.fontSize,"10px"),jt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",rt.fontWeight,"normal"),Mt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",rt.letterSpacing,"0.33px"),_t=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",rt.lineHeight,"1.6"),Gt=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",rt.textTransform,"inherit"),Vt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",it),qt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",rt.fontSize,"10px"),Yt=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",rt.fontWeight,"normal"),Xt=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",rt.letterSpacing,"1.5px"),Qt=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",rt.lineHeight,"1.6"),Jt=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",rt.textTransform,"uppercase"),to={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",it),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",rt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",rt.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",rt.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",rt.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",rt.textTransform,"uppercase")},oo=e.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${at};
|
|
16
|
-
font-size: ${
|
|
17
|
-
font-weight: ${
|
|
18
|
-
letter-spacing: ${
|
|
19
|
-
line-height: ${
|
|
20
|
-
text-transform: ${
|
|
16
|
+
font-size: ${nt};
|
|
17
|
+
font-weight: ${st};
|
|
18
|
+
letter-spacing: ${lt};
|
|
19
|
+
line-height: ${ct};
|
|
20
|
+
text-transform: ${ht};
|
|
21
21
|
}
|
|
22
|
-
`,
|
|
22
|
+
`,eo=e.css`
|
|
23
23
|
.ft-typography--title-dense {
|
|
24
|
-
font-family: ${
|
|
25
|
-
font-size: ${
|
|
26
|
-
font-weight: ${
|
|
27
|
-
letter-spacing: ${
|
|
28
|
-
line-height: ${
|
|
29
|
-
text-transform: ${
|
|
24
|
+
font-family: ${pt};
|
|
25
|
+
font-size: ${ft};
|
|
26
|
+
font-weight: ${dt};
|
|
27
|
+
letter-spacing: ${ut};
|
|
28
|
+
line-height: ${yt};
|
|
29
|
+
text-transform: ${gt};
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`,io=e.css`
|
|
32
32
|
.ft-typography--subtitle1 {
|
|
33
|
-
font-family: ${
|
|
34
|
-
font-size: ${
|
|
35
|
-
font-weight: ${
|
|
36
|
-
letter-spacing: ${
|
|
37
|
-
line-height: ${
|
|
38
|
-
text-transform: ${
|
|
33
|
+
font-family: ${bt};
|
|
34
|
+
font-size: ${mt};
|
|
35
|
+
font-weight: ${vt};
|
|
36
|
+
letter-spacing: ${xt};
|
|
37
|
+
line-height: ${Ot};
|
|
38
|
+
text-transform: ${Nt};
|
|
39
39
|
}
|
|
40
|
-
`,
|
|
40
|
+
`,ro=e.css`
|
|
41
41
|
.ft-typography--subtitle2 {
|
|
42
|
-
font-family: ${
|
|
43
|
-
font-size: ${
|
|
44
|
-
font-weight: ${
|
|
45
|
-
letter-spacing: ${
|
|
46
|
-
line-height: ${
|
|
47
|
-
text-transform: ${
|
|
42
|
+
font-family: ${St};
|
|
43
|
+
font-size: ${wt};
|
|
44
|
+
font-weight: ${$t};
|
|
45
|
+
letter-spacing: ${Ct};
|
|
46
|
+
line-height: ${kt};
|
|
47
|
+
text-transform: ${It};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
`,ao=e.css`
|
|
51
51
|
.ft-typography--body1 {
|
|
52
|
-
font-family: ${
|
|
53
|
-
font-size: ${
|
|
54
|
-
font-weight: ${
|
|
55
|
-
letter-spacing: ${
|
|
56
|
-
line-height: ${
|
|
57
|
-
text-transform: ${
|
|
52
|
+
font-family: ${Et};
|
|
53
|
+
font-size: ${Rt};
|
|
54
|
+
font-weight: ${Ut};
|
|
55
|
+
letter-spacing: ${Lt};
|
|
56
|
+
line-height: ${Wt};
|
|
57
|
+
text-transform: ${zt};
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,no=e.css`
|
|
60
60
|
.ft-typography--body2 {
|
|
61
|
-
font-family: ${
|
|
62
|
-
font-size: ${
|
|
63
|
-
font-weight: ${
|
|
64
|
-
letter-spacing: ${
|
|
65
|
-
line-height: ${
|
|
66
|
-
text-transform: ${
|
|
61
|
+
font-family: ${Kt.fontFamily};
|
|
62
|
+
font-size: ${Kt.fontSize};
|
|
63
|
+
font-weight: ${Kt.fontWeight};
|
|
64
|
+
letter-spacing: ${Kt.letterSpacing};
|
|
65
|
+
line-height: ${Kt.lineHeight};
|
|
66
|
+
text-transform: ${Kt.textTransform};
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`,so=e.css`
|
|
69
69
|
.ft-typography--caption {
|
|
70
|
-
font-family: ${
|
|
71
|
-
font-size: ${
|
|
72
|
-
font-weight: ${
|
|
73
|
-
letter-spacing: ${
|
|
74
|
-
line-height: ${
|
|
75
|
-
text-transform: ${
|
|
70
|
+
font-family: ${Bt};
|
|
71
|
+
font-size: ${At};
|
|
72
|
+
font-weight: ${Dt};
|
|
73
|
+
letter-spacing: ${Zt};
|
|
74
|
+
line-height: ${Ft};
|
|
75
|
+
text-transform: ${Tt};
|
|
76
76
|
}
|
|
77
|
-
`,
|
|
77
|
+
`,lo=e.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
|
-
font-family: ${
|
|
80
|
-
font-size: ${
|
|
81
|
-
font-weight: ${
|
|
82
|
-
letter-spacing: ${
|
|
83
|
-
line-height: ${
|
|
84
|
-
text-transform: ${
|
|
79
|
+
font-family: ${Ht};
|
|
80
|
+
font-size: ${Pt};
|
|
81
|
+
font-weight: ${jt};
|
|
82
|
+
letter-spacing: ${Mt};
|
|
83
|
+
line-height: ${_t};
|
|
84
|
+
text-transform: ${Gt};
|
|
85
85
|
}
|
|
86
|
-
`,
|
|
86
|
+
`,co=e.css`
|
|
87
87
|
.ft-typography--overline {
|
|
88
|
-
font-family: ${
|
|
89
|
-
font-size: ${
|
|
90
|
-
font-weight: ${
|
|
91
|
-
letter-spacing: ${
|
|
92
|
-
line-height: ${
|
|
93
|
-
text-transform: ${
|
|
88
|
+
font-family: ${Vt};
|
|
89
|
+
font-size: ${qt};
|
|
90
|
+
font-weight: ${Yt};
|
|
91
|
+
letter-spacing: ${Xt};
|
|
92
|
+
line-height: ${Qt};
|
|
93
|
+
text-transform: ${Jt};
|
|
94
94
|
}
|
|
95
|
-
`,
|
|
95
|
+
`,ho=e.css`
|
|
96
96
|
.ft-typography--button {
|
|
97
|
-
font-family: ${
|
|
98
|
-
font-size: ${
|
|
99
|
-
font-weight: ${
|
|
100
|
-
letter-spacing: ${
|
|
101
|
-
line-height: ${
|
|
102
|
-
text-transform: ${
|
|
103
|
-
}
|
|
104
|
-
`,
|
|
97
|
+
font-family: ${to.fontFamily};
|
|
98
|
+
font-size: ${to.fontSize};
|
|
99
|
+
font-weight: ${to.fontWeight};
|
|
100
|
+
letter-spacing: ${to.letterSpacing};
|
|
101
|
+
line-height: ${to.lineHeight};
|
|
102
|
+
text-transform: ${to.textTransform};
|
|
103
|
+
}
|
|
104
|
+
`,po=e.css`
|
|
105
105
|
.ft-typography {
|
|
106
106
|
vertical-align: inherit;
|
|
107
107
|
}
|
|
108
|
-
`,
|
|
108
|
+
`,fo=[Object.keys(J).map((t=>function(t){const o=J[t];return e.css`
|
|
109
109
|
.ft-typography--${e.unsafeCSS(t)} {
|
|
110
110
|
font-family: ${o.fontFamily};
|
|
111
111
|
font-size: ${o.fontSize};
|
|
@@ -114,14 +114,14 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
114
114
|
line-height: ${o.lineHeight};
|
|
115
115
|
text-transform: ${o.textCase};
|
|
116
116
|
}
|
|
117
|
-
`}(t)))];var
|
|
118
|
-
<${
|
|
117
|
+
`}(t)))];var uo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class yo extends o.FtLitElement{constructor(){super(...arguments),this.variant=q.body1}render(){return this.element?V`
|
|
118
|
+
<${_(this.element)}
|
|
119
119
|
class="ft-typography ft-typography--${this.variant}">
|
|
120
120
|
<slot></slot>
|
|
121
|
-
</${
|
|
122
|
-
`:
|
|
121
|
+
</${_(this.element)}>
|
|
122
|
+
`:V`
|
|
123
123
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
124
|
-
`}}
|
|
124
|
+
`}}yo.styles=[oo,eo,io,ro,ao,no,so,lo,co,ho,po,...fo],uo([i.property()],yo.prototype,"element",void 0),uo([i.property()],yo.prototype,"variant",void 0),o.customElement("ft-typography")(yo);const go=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorContent),bo={color:go,backgroundColor:o.FtCssVariableFactory.extend("--ft-ripple-background-color","",go),opacityContentOnSurfacePressed:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},mo=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorPrimary),vo=mo,xo=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",mo),Oo=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorSecondary),No=Oo,So=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",Oo),wo=e.css`
|
|
125
125
|
:host {
|
|
126
126
|
display: contents;
|
|
127
127
|
}
|
|
@@ -134,7 +134,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
134
134
|
|
|
135
135
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
136
136
|
overflow: hidden;
|
|
137
|
-
border-radius: ${
|
|
137
|
+
border-radius: ${bo.borderRadius};
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
.ft-ripple .ft-ripple--background,
|
|
@@ -168,27 +168,27 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.ft-ripple .ft-ripple--background {
|
|
171
|
-
background-color: ${
|
|
171
|
+
background-color: ${bo.backgroundColor};
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
.ft-ripple .ft-ripple--effect {
|
|
175
|
-
background-color: ${
|
|
175
|
+
background-color: ${bo.color};
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
179
|
-
background-color: ${
|
|
179
|
+
background-color: ${So};
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
183
|
-
background-color: ${
|
|
183
|
+
background-color: ${No};
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
187
|
-
background-color: ${
|
|
187
|
+
background-color: ${xo};
|
|
188
188
|
}
|
|
189
189
|
|
|
190
190
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
191
|
-
background-color: ${
|
|
191
|
+
background-color: ${vo};
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
.ft-ripple .ft-ripple--background {
|
|
@@ -218,22 +218,22 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
221
|
-
opacity: ${
|
|
221
|
+
opacity: ${bo.opacityContentOnSurfaceHover};
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
225
|
-
opacity: ${
|
|
225
|
+
opacity: ${bo.opacityContentOnSurfaceSelected};
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
229
|
-
opacity: ${
|
|
229
|
+
opacity: ${bo.opacityContentOnSurfaceFocused};
|
|
230
230
|
}
|
|
231
231
|
|
|
232
232
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
233
|
-
opacity: ${
|
|
233
|
+
opacity: ${bo.opacityContentOnSurfacePressed};
|
|
234
234
|
transform: translate(-50%, -50%) scale(1);
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
`,$o={color:o.FtCssVariableFactory.extend("--ft-loader-color","",o.designSystemVariables.colorPrimary),size:o.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Co=e.css`
|
|
237
237
|
:host {
|
|
238
238
|
line-height: 0;
|
|
239
239
|
}
|
|
@@ -242,8 +242,8 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
242
242
|
display: inline-block;
|
|
243
243
|
position: relative;
|
|
244
244
|
|
|
245
|
-
width: ${
|
|
246
|
-
height: ${
|
|
245
|
+
width: ${$o.size};
|
|
246
|
+
height: ${$o.size};
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
.ft-loader div {
|
|
@@ -252,7 +252,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
252
252
|
width: 25%;
|
|
253
253
|
height: 25%;
|
|
254
254
|
border-radius: 50%;
|
|
255
|
-
background: ${
|
|
255
|
+
background: ${$o.color};
|
|
256
256
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
257
257
|
}
|
|
258
258
|
|
|
@@ -299,10 +299,10 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
299
299
|
transform: translate(0, 0);
|
|
300
300
|
}
|
|
301
301
|
100% {
|
|
302
|
-
transform: translate(calc(0.35 * ${
|
|
302
|
+
transform: translate(calc(0.35 * ${$o.size}), 0);
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
`,
|
|
305
|
+
`,ko={size:o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Io=e.css`
|
|
306
306
|
:host, i.ft-icon {
|
|
307
307
|
display: inline-flex;
|
|
308
308
|
align-items: center;
|
|
@@ -311,14 +311,14 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
:host {
|
|
314
|
-
width: ${
|
|
315
|
-
height: ${
|
|
314
|
+
width: ${ko.size};
|
|
315
|
+
height: ${ko.size};
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
i.ft-icon {
|
|
319
319
|
width: 100%;
|
|
320
320
|
height: 100%;
|
|
321
|
-
font-size: ${
|
|
321
|
+
font-size: ${ko.size};
|
|
322
322
|
line-height: 1;
|
|
323
323
|
font-weight: normal;
|
|
324
324
|
text-transform: none;
|
|
@@ -329,28 +329,28 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
329
329
|
text-rendering: auto;
|
|
330
330
|
-webkit-font-smoothing: antialiased;
|
|
331
331
|
-moz-osx-font-smoothing: grayscale;
|
|
332
|
-
vertical-align: ${
|
|
332
|
+
vertical-align: ${ko.verticalAlign};
|
|
333
333
|
}
|
|
334
334
|
|
|
335
335
|
i.ft-icon.ft-icon--fluid-topics {
|
|
336
|
-
font-family: ${
|
|
336
|
+
font-family: ${ko.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
337
337
|
|
|
338
338
|
/* Ugly fix because font is broken */
|
|
339
|
-
font-size: calc(0.75 * ${
|
|
340
|
-
line-height: ${
|
|
339
|
+
font-size: calc(0.75 * ${ko.size});
|
|
340
|
+
line-height: ${ko.size};
|
|
341
341
|
position: relative;
|
|
342
342
|
top: -4%;
|
|
343
343
|
justify-content: center;
|
|
344
344
|
}
|
|
345
345
|
|
|
346
346
|
.ft-icon--file-format {
|
|
347
|
-
font-family: ${
|
|
347
|
+
font-family: ${ko.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
.ft-icon--material {
|
|
351
|
-
font-family: ${
|
|
351
|
+
font-family: ${ko.materialFontFamily}, "Material Icons", sans-serif;
|
|
352
352
|
}
|
|
353
|
-
`,
|
|
353
|
+
`,Eo=o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorPrimary),Ro={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorSurface),borderRadius:o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusL),color:Eo,fontSize:o.FtCssVariableFactory.extend("--ft-button-font-size","",to.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.FtCssVariableFactory.extend("--ft-button-ripple-color","",Eo),verticalPadding:o.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},Uo=o.FtCssVariableFactory.extend("--ft-button-primary-color","",o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorOnPrimary)),Lo={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-primary-background-color","",o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorPrimary)),color:Uo,rippleColor:o.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Uo)},Wo=o.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusM)),zo=o.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Ko=o.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Bo=o.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),Ao=[e.css`
|
|
354
354
|
:host {
|
|
355
355
|
display: inline-block;
|
|
356
356
|
max-width: 100%;
|
|
@@ -361,7 +361,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
361
361
|
box-shadow: 0px 0px 0px transparent;
|
|
362
362
|
border: 0px solid transparent;
|
|
363
363
|
text-shadow: 0px 0px 0px transparent;
|
|
364
|
-
font-size: ${
|
|
364
|
+
font-size: ${Ro.fontSize};
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
button:hover {
|
|
@@ -390,31 +390,31 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
390
390
|
border: none;
|
|
391
391
|
pointer-events: auto;
|
|
392
392
|
|
|
393
|
-
--ft-button-internal-line-height: max(calc(${
|
|
394
|
-
--ft-button-internal-color: ${
|
|
395
|
-
${o.setVariable(
|
|
396
|
-
${o.setVariable(
|
|
393
|
+
--ft-button-internal-line-height: max(calc(${Ro.fontSize} + 2px), ${Ro.iconSize});
|
|
394
|
+
--ft-button-internal-color: ${Ro.color};
|
|
395
|
+
${o.setVariable(ko.size,Ro.iconSize)};
|
|
396
|
+
${o.setVariable(bo.color,Ro.rippleColor)};
|
|
397
397
|
|
|
398
|
-
border-radius: ${
|
|
399
|
-
padding: ${
|
|
400
|
-
background-color: ${
|
|
398
|
+
border-radius: ${Ro.borderRadius};
|
|
399
|
+
padding: ${Ro.verticalPadding} ${Ro.horizontalPadding};
|
|
400
|
+
background-color: ${Ro.backgroundColor};
|
|
401
401
|
color: var(--ft-button-internal-color);
|
|
402
402
|
-webkit-mask-image: radial-gradient(white, black);
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
.ft-button.ft-button--outlined {
|
|
406
406
|
border: 1px solid var(--ft-button-internal-color);
|
|
407
|
-
padding: calc(${
|
|
407
|
+
padding: calc(${Ro.verticalPadding} - 1px) calc(${Ro.horizontalPadding} - 1px);
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
.ft-button.ft-button--dense {
|
|
411
|
-
padding: ${
|
|
412
|
-
border-radius: ${
|
|
413
|
-
gap: ${
|
|
411
|
+
padding: ${zo} ${Ko};
|
|
412
|
+
border-radius: ${Wo};
|
|
413
|
+
gap: ${Bo};
|
|
414
414
|
}
|
|
415
415
|
|
|
416
416
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
417
|
-
padding: calc(${
|
|
417
|
+
padding: calc(${zo} - 1px) calc(${Ko} - 1px);
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
.ft-button:not([disabled]):hover {
|
|
@@ -422,22 +422,22 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
422
422
|
}
|
|
423
423
|
|
|
424
424
|
.ft-button--round {
|
|
425
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
425
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ro.verticalPadding});
|
|
426
426
|
}
|
|
427
427
|
|
|
428
428
|
.ft-button--round.ft-button--dense {
|
|
429
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
429
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${zo});
|
|
430
430
|
}
|
|
431
431
|
|
|
432
432
|
.ft-button[disabled] {
|
|
433
433
|
filter: grayscale(1);
|
|
434
|
-
opacity: ${
|
|
434
|
+
opacity: ${Ro.opacityDisabled};
|
|
435
435
|
}
|
|
436
436
|
|
|
437
437
|
.ft-button.ft-button--primary {
|
|
438
|
-
background-color: ${
|
|
439
|
-
--ft-button-internal-color: ${
|
|
440
|
-
${o.setVariable(
|
|
438
|
+
background-color: ${Lo.backgroundColor};
|
|
439
|
+
--ft-button-internal-color: ${Lo.color};
|
|
440
|
+
${o.setVariable(bo.color,Lo.rippleColor)};
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
.ft-button:focus {
|
|
@@ -450,13 +450,13 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
450
450
|
white-space: nowrap;
|
|
451
451
|
text-overflow: ellipsis;
|
|
452
452
|
display: block;
|
|
453
|
-
margin: 0 ${
|
|
454
|
-
${o.setVariable(
|
|
455
|
-
${o.setVariable(
|
|
453
|
+
margin: 0 ${Ro.iconPadding};
|
|
454
|
+
${o.setVariable(to.fontSize,"1em")};
|
|
455
|
+
${o.setVariable(to.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
.ft-button--dense .ft-button--label {
|
|
459
|
-
margin: 0 ${
|
|
459
|
+
margin: 0 ${Bo};
|
|
460
460
|
}
|
|
461
461
|
|
|
462
462
|
.ft-button--label[hidden] {
|
|
@@ -469,13 +469,13 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
.ft-button--label[hidden] + ft-icon {
|
|
472
|
-
margin: 0 calc(${
|
|
473
|
-
padding: 0 ${
|
|
472
|
+
margin: 0 calc(${Ro.horizontalPadding} * -1);
|
|
473
|
+
padding: 0 ${Ro.verticalPadding};
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
477
|
-
margin: 0 calc(${
|
|
478
|
-
padding: 0 ${
|
|
477
|
+
margin: 0 calc(${Ko} * -1);
|
|
478
|
+
padding: 0 ${zo};
|
|
479
479
|
}
|
|
480
480
|
|
|
481
481
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -484,21 +484,21 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
ft-loader {
|
|
487
|
-
${o.setVariable(
|
|
488
|
-
${o.setVariable(
|
|
487
|
+
${o.setVariable($o.size,Ro.iconSize)};
|
|
488
|
+
${o.setVariable($o.color,"var(--ft-button-internal-color)")};
|
|
489
489
|
}
|
|
490
|
-
`,o.noTextSelect];var
|
|
490
|
+
`,o.noTextSelect];var Do=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Zo extends o.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o.Debouncer(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),a=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-a.x:a.width/2),this.originY=Math.round(null!=r?r-a.y:a.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
491
491
|
<style>
|
|
492
492
|
.ft-ripple .ft-ripple--effect {
|
|
493
493
|
left: ${this.originX}px;
|
|
494
494
|
top: ${this.originY}px;
|
|
495
495
|
}
|
|
496
496
|
</style>
|
|
497
|
-
<div class="${
|
|
497
|
+
<div class="${a.classMap(t)}">
|
|
498
498
|
<div class="ft-ripple--background"></div>
|
|
499
499
|
<div class="ft-ripple--effect"></div>
|
|
500
500
|
</div>
|
|
501
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}
|
|
501
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Zo.elementDefinitions={},Zo.styles=wo,Do([i.property({type:Boolean})],Zo.prototype,"primary",void 0),Do([i.property({type:Boolean})],Zo.prototype,"secondary",void 0),Do([i.property({type:Boolean})],Zo.prototype,"unbounded",void 0),Do([i.property({type:Boolean})],Zo.prototype,"activated",void 0),Do([i.property({type:Boolean})],Zo.prototype,"selected",void 0),Do([i.property({type:Boolean})],Zo.prototype,"disabled",void 0),Do([i.state()],Zo.prototype,"hovered",void 0),Do([i.state()],Zo.prototype,"focused",void 0),Do([i.state()],Zo.prototype,"pressed",void 0),Do([i.state()],Zo.prototype,"rippling",void 0),Do([i.state()],Zo.prototype,"originX",void 0),Do([i.state()],Zo.prototype,"originY",void 0),Do([i.query(".ft-ripple")],Zo.prototype,"ripple",void 0),Do([i.query(".ft-ripple--effect")],Zo.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(Zo);const Fo=o.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),To=o.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),Ho=o.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),Po=o.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),jo=o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),Mo=o.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),_o=e.css`
|
|
502
502
|
.ft-tooltip--container {
|
|
503
503
|
display: block;
|
|
504
504
|
}
|
|
@@ -513,21 +513,21 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
513
513
|
box-sizing: border-box;
|
|
514
514
|
overflow: hidden;
|
|
515
515
|
width: max-content;
|
|
516
|
-
max-width: ${
|
|
516
|
+
max-width: ${Mo};
|
|
517
517
|
text-align: center;
|
|
518
|
-
padding: ${
|
|
519
|
-
z-index: ${
|
|
518
|
+
padding: ${Fo};
|
|
519
|
+
z-index: ${Po};
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
.ft-tooltip--content {
|
|
523
523
|
padding: 4px 8px;
|
|
524
|
-
border-radius: ${
|
|
525
|
-
background-color: ${
|
|
526
|
-
color: ${
|
|
524
|
+
border-radius: ${jo};
|
|
525
|
+
background-color: ${Ho};
|
|
526
|
+
color: ${To};
|
|
527
527
|
position: relative;
|
|
528
528
|
word-break: break-word;
|
|
529
529
|
}
|
|
530
|
-
`;var Vo,qo,Yo
|
|
530
|
+
`;var Go,Vo,qo,Yo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Xo extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
531
531
|
<div part="container"
|
|
532
532
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
533
533
|
@mouseenter=${this.onHover}
|
|
@@ -545,21 +545,21 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
545
545
|
</div>
|
|
546
546
|
</div>
|
|
547
547
|
</div>
|
|
548
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let n=0,a=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":a=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":a=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":a=t.offsetTop+i-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=n+"px",s.top=a+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,h=l.x+l.width-window.innerWidth;s.left=n+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let p=-l.y,f=l.y+l.height-window.innerHeight;s.top=a+Math.round(this.correctOutOfWindowPixels(p,f))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${_o})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Qo.elementDefinitions={"ft-typography":go},Qo.styles=Go,Xo([i.property()],Qo.prototype,"text",void 0),Xo([i.property({type:Boolean})],Qo.prototype,"manual",void 0),Xo([i.property({type:Boolean})],Qo.prototype,"inline",void 0),Xo([i.property({type:Number})],Qo.prototype,"delay",void 0),Xo([i.property()],Qo.prototype,"position",void 0),Xo([i.queryAssignedNodes("",!0)],Qo.prototype,"slotNodes",void 0),Xo([i.query(".ft-tooltip--container")],Qo.prototype,"container",void 0),Xo([i.query(".ft-tooltip")],Qo.prototype,"tooltip",void 0),Xo([i.query(".ft-tooltip--content")],Qo.prototype,"tooltipContent",void 0),Xo([i.state()],Qo.prototype,"visible",void 0),o.customElement("ft-tooltip")(Qo),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Vo||(Vo={})),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=""}(qo||(qo={})),new Map([...["abw"].map((t=>[t,qo.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,qo.AUDIO])),...["avi"].map((t=>[t,qo.AVI])),...["chm","xhs"].map((t=>[t,qo.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,qo.CODE])),...["csv"].map((t=>[t,qo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,qo.DITA])),...["epub"].map((t=>[t,qo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,qo.EXCEL])),...["flac"].map((t=>[t,qo.FLAC])),...["gif"].map((t=>[t,qo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,qo.GZIP])),...["html","htm","xhtml"].map((t=>[t,qo.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,qo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,qo.JPEG])),...["json"].map((t=>[t,qo.JSON])),...["m4a","m4p"].map((t=>[t,qo.M4A])),...["mov","qt"].map((t=>[t,qo.MOV])),...["mp3"].map((t=>[t,qo.MP3])),...["mp4","m4v"].map((t=>[t,qo.MP4])),...["ogg","oga"].map((t=>[t,qo.OGG])),...["pdf","ps"].map((t=>[t,qo.PDF])),...["png"].map((t=>[t,qo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,qo.POWERPOINT])),...["rar"].map((t=>[t,qo.RAR])),...["stp"].map((t=>[t,qo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,qo.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,qo.VIDEO])),...["wav"].map((t=>[t,qo.WAV])),...["wma"].map((t=>[t,qo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,qo.WORD])),...["xml","xsl","rdf"].map((t=>[t,qo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,qo.YAML])),...["zip"].map((t=>[t,qo.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Yo||(Yo={}));var Jo=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class te extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Yo).includes(this.variant)?this.variant:Yo.fluid_topics,o=t!==Yo.material||!!this.value;return e.html`
|
|
548
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const s=this.tooltip.style;s.left=a+"px",s.top=n+"px";const l=this.tooltip.getBoundingClientRect();let c=-l.x,h=l.x+l.width-window.innerWidth;s.left=a+Math.round(this.correctOutOfWindowPixels(c,h))+"px";let p=-l.y,f=l.y+l.height-window.innerHeight;s.top=n+Math.round(this.correctOutOfWindowPixels(p,f))+"px",s.maxWidth=`max(${t.offsetWidth}px, ${Mo})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Xo.elementDefinitions={"ft-typography":yo},Xo.styles=_o,Yo([i.property()],Xo.prototype,"text",void 0),Yo([i.property({type:Boolean})],Xo.prototype,"manual",void 0),Yo([i.property({type:Boolean})],Xo.prototype,"inline",void 0),Yo([i.property({type:Number})],Xo.prototype,"delay",void 0),Yo([i.property()],Xo.prototype,"position",void 0),Yo([i.queryAssignedNodes()],Xo.prototype,"slotNodes",void 0),Yo([i.query(".ft-tooltip--container")],Xo.prototype,"container",void 0),Yo([i.query(".ft-tooltip")],Xo.prototype,"tooltip",void 0),Yo([i.query(".ft-tooltip--content")],Xo.prototype,"tooltipContent",void 0),Yo([i.state()],Xo.prototype,"visible",void 0),o.customElement("ft-tooltip")(Xo),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Go||(Go={})),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=""}(Vo||(Vo={})),new Map([...["abw"].map((t=>[t,Vo.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,Vo.AUDIO])),...["avi"].map((t=>[t,Vo.AVI])),...["chm","xhs"].map((t=>[t,Vo.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,Vo.CODE])),...["csv"].map((t=>[t,Vo.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Vo.DITA])),...["epub"].map((t=>[t,Vo.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Vo.EXCEL])),...["flac"].map((t=>[t,Vo.FLAC])),...["gif"].map((t=>[t,Vo.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Vo.GZIP])),...["html","htm","xhtml"].map((t=>[t,Vo.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Vo.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Vo.JPEG])),...["json"].map((t=>[t,Vo.JSON])),...["m4a","m4p"].map((t=>[t,Vo.M4A])),...["mov","qt"].map((t=>[t,Vo.MOV])),...["mp3"].map((t=>[t,Vo.MP3])),...["mp4","m4v"].map((t=>[t,Vo.MP4])),...["ogg","oga"].map((t=>[t,Vo.OGG])),...["pdf","ps"].map((t=>[t,Vo.PDF])),...["png"].map((t=>[t,Vo.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Vo.POWERPOINT])),...["rar"].map((t=>[t,Vo.RAR])),...["stp"].map((t=>[t,Vo.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Vo.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,Vo.VIDEO])),...["wav"].map((t=>[t,Vo.WAV])),...["wma"].map((t=>[t,Vo.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Vo.WORD])),...["xml","xsl","rdf"].map((t=>[t,Vo.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Vo.YAML])),...["zip"].map((t=>[t,Vo.ZIP]))]),function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(qo||(qo={}));var Qo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Jo extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(qo).includes(this.variant)?this.variant:qo.fluid_topics,o=t!==qo.material||!!this.value;return e.html`
|
|
549
549
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
550
|
-
${
|
|
550
|
+
${n.unsafeHTML(this.resolvedIcon)}
|
|
551
551
|
<slot ?hidden=${o}></slot>
|
|
552
552
|
</i>
|
|
553
|
-
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let i=this.value||this.textContent;switch(this.variant){case
|
|
553
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let i=this.value||this.textContent;switch(this.variant){case qo.file_format:this.resolvedIcon=null!==(t=Vo[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case qo.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=Go[i.replace("-","_").toUpperCase()])&&void 0!==o?o:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Jo.elementDefinitions={},Jo.styles=Io,Qo([i.property()],Jo.prototype,"variant",void 0),Qo([i.property()],Jo.prototype,"value",void 0),Qo([i.state()],Jo.prototype,"resolvedIcon",void 0),Qo([i.query("slot")],Jo.prototype,"slottedContent",void 0),o.customElement("ft-icon")(Jo);class te extends o.FtLitElement{render(){return e.html`
|
|
554
554
|
<div class="ft-loader">
|
|
555
555
|
<div></div>
|
|
556
556
|
<div></div>
|
|
557
557
|
<div></div>
|
|
558
558
|
<div></div>
|
|
559
559
|
</div>
|
|
560
|
-
`}}
|
|
560
|
+
`}}te.styles=Co,o.customElement("ft-loader")(te);var oe=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ee extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
|
|
561
561
|
<button part="button"
|
|
562
|
-
class="${
|
|
562
|
+
class="${a.classMap(this.buttonClasses)}"
|
|
563
563
|
aria-label="${this.getLabel()}"
|
|
564
564
|
?disabled=${this.isDisabled()}>
|
|
565
565
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
@@ -580,7 +580,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
580
580
|
</ft-tooltip>
|
|
581
581
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
582
582
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
583
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
583
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}ee.elementDefinitions={"ft-ripple":Zo,"ft-tooltip":Xo,"ft-typography":yo,"ft-icon":Jo,"ft-loader":te},oe([i.property({type:String,reflect:!0})],ee.prototype,"role",void 0),oe([i.property()],ee.prototype,"type",void 0),oe([i.property({type:Boolean})],ee.prototype,"disabled",void 0),oe([i.property()],ee.prototype,"label",void 0),oe([i.property()],ee.prototype,"icon",void 0),oe([i.property()],ee.prototype,"iconVariant",void 0),oe([i.property({type:Boolean})],ee.prototype,"trailingIcon",void 0),oe([i.property({type:Boolean})],ee.prototype,"loading",void 0),oe([i.property()],ee.prototype,"tooltipPosition",void 0),oe([i.property({type:Boolean})],ee.prototype,"hideTooltip",void 0),oe([i.property({type:Boolean})],ee.prototype,"forceTooltip",void 0),oe([i.query(".ft-button")],ee.prototype,"button",void 0),oe([i.query(".ft-button--label slot")],ee.prototype,"slottedContent",void 0);var ie=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class re extends ee{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"}}re.styles=[o.safariEllipsisFix,Ao],ie([i.property({type:Boolean})],re.prototype,"primary",void 0),ie([i.property({type:Boolean})],re.prototype,"outlined",void 0),ie([i.property({type:Boolean})],re.prototype,"dense",void 0),ie([i.property({type:Boolean})],re.prototype,"round",void 0);const ae=[e.css`
|
|
584
584
|
:host {
|
|
585
585
|
display: inline-block;
|
|
586
586
|
max-width: 100%;
|
|
@@ -630,7 +630,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
630
630
|
}
|
|
631
631
|
|
|
632
632
|
.ft-button:focus-visible {
|
|
633
|
-
outline-color: ${
|
|
633
|
+
outline-color: ${ot.focusFocusRingColor};
|
|
634
634
|
outline-style: solid;
|
|
635
635
|
}
|
|
636
636
|
|
|
@@ -659,153 +659,153 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
659
659
|
/** Primary styles **/
|
|
660
660
|
|
|
661
661
|
.ft-button--primary {
|
|
662
|
-
${o.setVariable(
|
|
662
|
+
${o.setVariable($o.color,ot.primaryIconColor)};
|
|
663
663
|
|
|
664
|
-
${o.setVariable(
|
|
665
|
-
${o.setVariable(
|
|
666
|
-
${o.setVariable(
|
|
667
|
-
${o.setVariable(
|
|
668
|
-
${o.setVariable(
|
|
664
|
+
${o.setVariable(bo.color,ot.primaryStateLayerColor)};
|
|
665
|
+
${o.setVariable(bo.opacityContentOnSurfaceHover,ot.primaryStateLayerOpacityHover)};
|
|
666
|
+
${o.setVariable(bo.opacityContentOnSurfaceFocused,ot.primaryStateLayerOpacityFocus)};
|
|
667
|
+
${o.setVariable(bo.opacityContentOnSurfaceSelected,ot.primaryStateLayerOpacityActive)};
|
|
668
|
+
${o.setVariable(bo.opacityContentOnSurfacePressed,ot.primaryStateLayerOpacityActive)};
|
|
669
669
|
|
|
670
|
-
background-color: ${
|
|
671
|
-
color: ${
|
|
670
|
+
background-color: ${ot.primaryBackgroundColor};
|
|
671
|
+
color: ${ot.primaryColor};
|
|
672
672
|
border-style: none;
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
.ft-button--primary[disabled] {
|
|
676
|
-
opacity: ${
|
|
676
|
+
opacity: ${ot.primaryComponentOpacityDisabled};
|
|
677
677
|
}
|
|
678
678
|
|
|
679
679
|
.ft-button--primary ft-icon {
|
|
680
|
-
color: ${
|
|
680
|
+
color: ${ot.primaryIconColor};
|
|
681
681
|
}
|
|
682
682
|
|
|
683
683
|
/** Secondary styles **/
|
|
684
684
|
|
|
685
685
|
.ft-button--secondary {
|
|
686
|
-
${o.setVariable(
|
|
686
|
+
${o.setVariable($o.color,ot.secondaryIconColor)};
|
|
687
687
|
|
|
688
|
-
${o.setVariable(
|
|
689
|
-
${o.setVariable(
|
|
690
|
-
${o.setVariable(
|
|
691
|
-
${o.setVariable(
|
|
692
|
-
${o.setVariable(
|
|
688
|
+
${o.setVariable(bo.color,ot.secondaryStateLayerColor)};
|
|
689
|
+
${o.setVariable(bo.opacityContentOnSurfaceHover,ot.secondaryStateLayerOpacityHover)};
|
|
690
|
+
${o.setVariable(bo.opacityContentOnSurfaceFocused,ot.secondaryStateLayerOpacityFocus)};
|
|
691
|
+
${o.setVariable(bo.opacityContentOnSurfaceSelected,ot.secondaryStateLayerOpacityActive)};
|
|
692
|
+
${o.setVariable(bo.opacityContentOnSurfacePressed,ot.secondaryStateLayerOpacityActive)};
|
|
693
693
|
|
|
694
|
-
background-color: ${
|
|
695
|
-
color: ${
|
|
696
|
-
border-color: ${
|
|
694
|
+
background-color: ${ot.secondaryBackgroundColor};
|
|
695
|
+
color: ${ot.secondaryColor};
|
|
696
|
+
border-color: ${ot.secondaryBorderColor};
|
|
697
697
|
border-style: solid;
|
|
698
698
|
}
|
|
699
699
|
|
|
700
700
|
.ft-button--secondary[disabled] {
|
|
701
|
-
opacity: ${
|
|
701
|
+
opacity: ${ot.secondaryComponentOpacityDisabled};
|
|
702
702
|
}
|
|
703
703
|
|
|
704
704
|
.ft-button--secondary ft-icon {
|
|
705
|
-
color: ${
|
|
705
|
+
color: ${ot.secondaryIconColor};
|
|
706
706
|
}
|
|
707
707
|
|
|
708
708
|
/** Tertiary styles **/
|
|
709
709
|
|
|
710
710
|
.ft-button--tertiary {
|
|
711
|
-
${o.setVariable(
|
|
711
|
+
${o.setVariable($o.color,ot.tertiaryIconColor)};
|
|
712
712
|
|
|
713
|
-
${o.setVariable(
|
|
714
|
-
${o.setVariable(
|
|
715
|
-
${o.setVariable(
|
|
716
|
-
${o.setVariable(
|
|
717
|
-
${o.setVariable(
|
|
713
|
+
${o.setVariable(bo.color,ot.tertiaryStateLayerColor)};
|
|
714
|
+
${o.setVariable(bo.opacityContentOnSurfaceHover,ot.tertiaryStateLayerOpacityHover)};
|
|
715
|
+
${o.setVariable(bo.opacityContentOnSurfaceFocused,ot.tertiaryStateLayerOpacityFocus)};
|
|
716
|
+
${o.setVariable(bo.opacityContentOnSurfaceSelected,ot.tertiaryStateLayerOpacityActive)};
|
|
717
|
+
${o.setVariable(bo.opacityContentOnSurfacePressed,ot.tertiaryStateLayerOpacityActive)};
|
|
718
718
|
|
|
719
|
-
background-color: ${
|
|
720
|
-
color: ${
|
|
719
|
+
background-color: ${ot.tertiaryBackgroundColor};
|
|
720
|
+
color: ${ot.tertiaryColor};
|
|
721
721
|
border-style: none;
|
|
722
722
|
}
|
|
723
723
|
|
|
724
724
|
.ft-button--tertiary[disabled] {
|
|
725
|
-
opacity: ${
|
|
725
|
+
opacity: ${ot.tertiaryComponentOpacityDisabled};
|
|
726
726
|
}
|
|
727
727
|
|
|
728
728
|
.ft-button--tertiary ft-icon {
|
|
729
|
-
color: ${
|
|
729
|
+
color: ${ot.tertiaryIconColor};
|
|
730
730
|
}
|
|
731
731
|
|
|
732
732
|
/** Neutral styles **/
|
|
733
733
|
|
|
734
734
|
.ft-button--neutral {
|
|
735
|
-
${o.setVariable(
|
|
735
|
+
${o.setVariable($o.color,ot.neutralIconColor)};
|
|
736
736
|
|
|
737
|
-
${o.setVariable(
|
|
738
|
-
${o.setVariable(
|
|
739
|
-
${o.setVariable(
|
|
740
|
-
${o.setVariable(
|
|
741
|
-
${o.setVariable(
|
|
737
|
+
${o.setVariable(bo.backgroundColor,ot.neutralStateLayerColor)};
|
|
738
|
+
${o.setVariable(bo.opacityContentOnSurfaceHover,ot.neutralStateLayerOpacityHover)};
|
|
739
|
+
${o.setVariable(bo.opacityContentOnSurfaceFocused,ot.neutralStateLayerOpacityFocus)};
|
|
740
|
+
${o.setVariable(bo.opacityContentOnSurfaceSelected,ot.neutralStateLayerOpacityActive)};
|
|
741
|
+
${o.setVariable(bo.opacityContentOnSurfacePressed,ot.neutralStateLayerOpacityActive)};
|
|
742
742
|
|
|
743
|
-
background-color: ${
|
|
744
|
-
color: ${
|
|
743
|
+
background-color: ${ot.neutralBackgroundColor};
|
|
744
|
+
color: ${ot.neutralColor};
|
|
745
745
|
border-style: none;
|
|
746
746
|
}
|
|
747
747
|
|
|
748
748
|
.ft-button--neutral[disabled] {
|
|
749
|
-
opacity: ${
|
|
749
|
+
opacity: ${ot.neutralComponentOpacityDisabled};
|
|
750
750
|
}
|
|
751
751
|
|
|
752
752
|
.ft-button--neutral ft-icon {
|
|
753
|
-
color: ${
|
|
753
|
+
color: ${ot.neutralIconColor};
|
|
754
754
|
}
|
|
755
755
|
|
|
756
756
|
/** Large styles **/
|
|
757
757
|
|
|
758
758
|
.ft-button--large {
|
|
759
|
-
${o.setVariable(
|
|
760
|
-
${o.setVariable(
|
|
759
|
+
${o.setVariable(ko.size,ot.largeIconSize)};
|
|
760
|
+
${o.setVariable($o.size,ot.largeIconSize)};
|
|
761
761
|
|
|
762
|
-
height: ${
|
|
763
|
-
padding: 0 ${
|
|
764
|
-
gap: ${
|
|
765
|
-
border-radius: ${
|
|
766
|
-
border-width: ${
|
|
762
|
+
height: ${ot.largeHeight};
|
|
763
|
+
padding: 0 ${ot.largeHorizontalPadding};
|
|
764
|
+
gap: ${ot.largeGap};
|
|
765
|
+
border-radius: ${ot.largeBorderRadius};
|
|
766
|
+
border-width: ${ot.largeBorderWidth};
|
|
767
767
|
}
|
|
768
768
|
|
|
769
769
|
.ft-button--large:focus-visible {
|
|
770
|
-
outline-width: ${
|
|
771
|
-
outline-offset: ${
|
|
770
|
+
outline-width: ${ot.largeFocusOutlineWidth};
|
|
771
|
+
outline-offset: ${ot.largeFocusOutlineOffset};
|
|
772
772
|
}
|
|
773
773
|
|
|
774
774
|
.ft-button--large.ft-button--icon-only {
|
|
775
|
-
width: ${
|
|
775
|
+
width: ${ot.largeIconOnlyWidth};
|
|
776
776
|
padding: unset;
|
|
777
777
|
}
|
|
778
778
|
|
|
779
779
|
/** Small styles **/
|
|
780
780
|
|
|
781
781
|
.ft-button--small {
|
|
782
|
-
${o.setVariable(
|
|
783
|
-
${o.setVariable(
|
|
782
|
+
${o.setVariable(ko.size,ot.smallIconSize)};
|
|
783
|
+
${o.setVariable($o.size,ot.smallIconSize)};
|
|
784
784
|
|
|
785
|
-
height: ${
|
|
786
|
-
padding: 0 ${
|
|
787
|
-
gap: ${
|
|
788
|
-
border-radius: ${
|
|
789
|
-
border-width: ${
|
|
785
|
+
height: ${ot.smallHeight};
|
|
786
|
+
padding: 0 ${ot.smallHorizontalPadding};
|
|
787
|
+
gap: ${ot.smallGap};
|
|
788
|
+
border-radius: ${ot.smallBorderRadius};
|
|
789
|
+
border-width: ${ot.smallBorderWidth};
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
.ft-button--small:focus-visible {
|
|
793
|
-
outline-width: ${
|
|
794
|
-
outline-offset: ${
|
|
793
|
+
outline-width: ${ot.smallFocusOutlineWidth};
|
|
794
|
+
outline-offset: ${ot.smallFocusOutlineOffset};
|
|
795
795
|
}
|
|
796
796
|
|
|
797
797
|
.ft-button--small.ft-button--icon-only {
|
|
798
|
-
width: ${
|
|
798
|
+
width: ${ot.smallIconOnlyWidth};
|
|
799
799
|
padding: unset;
|
|
800
800
|
}
|
|
801
|
-
`,o.noTextSelect];var
|
|
801
|
+
`,o.noTextSelect];var ne=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class se extends ee{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?q.caption1medium:q.body2medium}}se.styles=[o.safariEllipsisFix,ae],ne([i.property({type:Boolean})],se.prototype,"primary",void 0),ne([i.property({type:Boolean})],se.prototype,"secondary",void 0),ne([i.property({type:Boolean})],se.prototype,"tertiary",void 0),ne([i.property({type:Boolean})],se.prototype,"neutral",void 0),ne([i.property({type:Boolean})],se.prototype,"small",void 0),o.customElement("ft-button")(re),o.customElement("ftds-button")(se);const le=o.FtCssVariableFactory.extend("--ft-checkbox-text-color","",o.designSystemVariables.colorOnSurfaceHigh),ce=o.FtCssVariableFactory.external(o.designSystemVariables.colorPrimary,"Design system"),he=o.FtCssVariableFactory.external(o.designSystemVariables.colorOnPrimary,"Design system"),pe=o.FtCssVariableFactory.extend("--ft-checkbox-border-color","",o.designSystemVariables.colorOnSurfaceMedium),fe=o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceDisabled,"Design system"),de=e.css`
|
|
802
802
|
* {
|
|
803
803
|
box-sizing: border-box;
|
|
804
804
|
}
|
|
805
805
|
|
|
806
806
|
.ft-checkbox {
|
|
807
807
|
box-sizing: border-box;
|
|
808
|
-
color: ${
|
|
808
|
+
color: ${le};
|
|
809
809
|
|
|
810
810
|
display: inline-flex;
|
|
811
811
|
align-items: center;
|
|
@@ -813,7 +813,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
813
813
|
}
|
|
814
814
|
|
|
815
815
|
.ft-checkbox--disabled {
|
|
816
|
-
color: ${
|
|
816
|
+
color: ${fe};
|
|
817
817
|
}
|
|
818
818
|
|
|
819
819
|
input {
|
|
@@ -837,26 +837,26 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
837
837
|
|
|
838
838
|
.ft-checkbox--box {
|
|
839
839
|
display: flex;
|
|
840
|
-
border: 2px solid ${
|
|
840
|
+
border: 2px solid ${pe};
|
|
841
841
|
border-radius: 2px;
|
|
842
842
|
|
|
843
843
|
width: 18px;
|
|
844
844
|
height: 18px;
|
|
845
845
|
|
|
846
|
-
color: ${
|
|
846
|
+
color: ${he};
|
|
847
847
|
}
|
|
848
848
|
|
|
849
849
|
|
|
850
850
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
851
851
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
852
|
-
border-color: ${
|
|
853
|
-
background-color: ${
|
|
852
|
+
border-color: ${ce};
|
|
853
|
+
background-color: ${ce};
|
|
854
854
|
}
|
|
855
855
|
|
|
856
856
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
857
|
-
border-color: ${
|
|
857
|
+
border-color: ${fe};
|
|
858
858
|
background-color: transparent;
|
|
859
|
-
color: ${
|
|
859
|
+
color: ${fe};
|
|
860
860
|
}
|
|
861
861
|
|
|
862
862
|
.ft-checkbox--checkmark {
|
|
@@ -875,8 +875,8 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
875
875
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
876
876
|
opacity: 1;
|
|
877
877
|
}
|
|
878
|
-
`;var
|
|
879
|
-
<label class="${
|
|
878
|
+
`;var ue=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ye extends o.FtLitElement{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return e.html`
|
|
879
|
+
<label class="${a.classMap(t)}" for="checkbox-input">
|
|
880
880
|
<div class="ft-checkbox--box-container">
|
|
881
881
|
<ft-ripple
|
|
882
882
|
?disabled=${this.disabled}
|
|
@@ -901,14 +901,14 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
901
901
|
<slot></slot>
|
|
902
902
|
</ft-typography>
|
|
903
903
|
</label>
|
|
904
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var o;super.contentAvailableCallback(t),null===(o=this.ripple)||void 0===o||o.setupFor(this.container)}}
|
|
904
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var o;super.contentAvailableCallback(t),null===(o=this.ripple)||void 0===o||o.setupFor(this.container)}}ye.elementDefinitions={"ft-ripple":Zo,"ft-typography":yo},ye.styles=de,ue([i.property()],ye.prototype,"name",void 0),ue([i.property({type:Boolean,reflect:!0})],ye.prototype,"checked",void 0),ue([i.property({type:Boolean})],ye.prototype,"indeterminate",void 0),ue([i.property({type:Boolean})],ye.prototype,"disabled",void 0),ue([i.query(".ft-checkbox")],ye.prototype,"container",void 0),ue([i.query("ft-ripple")],ye.prototype,"ripple",void 0),o.customElement("ft-checkbox")(ye);const ge=o.FtCssVariableFactory.extend("--ft-radio-text-color","",o.designSystemVariables.colorOnSurfaceHigh),be=o.FtCssVariableFactory.external(o.designSystemVariables.colorPrimary,"Design system"),me=(o.FtCssVariableFactory.external(o.designSystemVariables.colorOnPrimary,"Design system"),o.FtCssVariableFactory.extend("--ft-radio-border-color","",o.designSystemVariables.colorOnSurfaceMedium)),ve=o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceDisabled,"Design system"),xe=e.css`
|
|
905
905
|
* {
|
|
906
906
|
box-sizing: border-box;
|
|
907
907
|
}
|
|
908
908
|
|
|
909
909
|
.ft-radio {
|
|
910
910
|
box-sizing: border-box;
|
|
911
|
-
color: ${
|
|
911
|
+
color: ${ge};
|
|
912
912
|
|
|
913
913
|
display: inline-flex;
|
|
914
914
|
align-items: center;
|
|
@@ -916,7 +916,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
916
916
|
}
|
|
917
917
|
|
|
918
918
|
.ft-radio--disabled {
|
|
919
|
-
color: ${
|
|
919
|
+
color: ${ve};
|
|
920
920
|
}
|
|
921
921
|
|
|
922
922
|
input {
|
|
@@ -939,7 +939,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
939
939
|
}
|
|
940
940
|
|
|
941
941
|
.ft-radio--box {
|
|
942
|
-
border: 2px solid ${
|
|
942
|
+
border: 2px solid ${me};
|
|
943
943
|
border-radius: 50%;
|
|
944
944
|
|
|
945
945
|
display: flex;
|
|
@@ -952,7 +952,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
952
952
|
|
|
953
953
|
.ft-radio--box:after {
|
|
954
954
|
content: " ";
|
|
955
|
-
background-color: ${
|
|
955
|
+
background-color: ${be};
|
|
956
956
|
|
|
957
957
|
border-radius: 50%;
|
|
958
958
|
|
|
@@ -964,7 +964,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
964
964
|
}
|
|
965
965
|
|
|
966
966
|
.ft-radio--checked .ft-radio--box {
|
|
967
|
-
border-color: ${
|
|
967
|
+
border-color: ${be};
|
|
968
968
|
}
|
|
969
969
|
|
|
970
970
|
|
|
@@ -973,15 +973,15 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
973
973
|
}
|
|
974
974
|
|
|
975
975
|
.ft-radio--disabled .ft-radio--box {
|
|
976
|
-
border-color: ${
|
|
976
|
+
border-color: ${ve};
|
|
977
977
|
background-color: transparent;
|
|
978
978
|
}
|
|
979
979
|
|
|
980
980
|
.ft-radio--disabled .ft-radio--box:after {
|
|
981
|
-
background-color: ${
|
|
981
|
+
background-color: ${ve};
|
|
982
982
|
}
|
|
983
|
-
`;var
|
|
984
|
-
<div class="${
|
|
983
|
+
`;var Oe=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ne extends CustomEvent{constructor(t,o){super("change",{detail:{value:t,checked:o},bubbles:!0,composed:!0})}}class Se extends o.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return e.html`
|
|
984
|
+
<div class="${a.classMap(t)}">
|
|
985
985
|
<div class="ft-radio--box-container">
|
|
986
986
|
<ft-ripple
|
|
987
987
|
?disabled=${this.disabled}
|
|
@@ -1005,16 +1005,16 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1005
1005
|
</ft-typography>
|
|
1006
1006
|
</label>
|
|
1007
1007
|
</div>
|
|
1008
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new
|
|
1008
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Ne(this.value,this.checked))}contentAvailableCallback(t){var o;super.contentAvailableCallback(t),null===(o=this.ripple)||void 0===o||o.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Ne(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Se.elementDefinitions={"ft-ripple":Zo,"ft-typography":yo},Se.styles=xe,Oe([i.property()],Se.prototype,"value",void 0),Oe([i.property()],Se.prototype,"name",void 0),Oe([i.property({type:Boolean,reflect:!0})],Se.prototype,"checked",void 0),Oe([i.property({type:Boolean})],Se.prototype,"disabled",void 0),Oe([i.query(".ft-radio")],Se.prototype,"container",void 0),Oe([i.query("ft-ripple")],Se.prototype,"ripple",void 0),Oe([i.query("input")],Se.prototype,"input",void 0);const we=e.css`
|
|
1009
1009
|
:host {
|
|
1010
1010
|
display: contents;
|
|
1011
1011
|
}
|
|
1012
|
-
`;var
|
|
1012
|
+
`;var $e=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ce extends o.FtLitElement{constructor(){super(...arguments),this.name=""}render(){return e.html`
|
|
1013
1013
|
<slot @slotchange=${this.onSlotChange}
|
|
1014
1014
|
@change=${this.onChange}
|
|
1015
1015
|
@keydown=${this.onKeyDown}
|
|
1016
1016
|
></slot>
|
|
1017
|
-
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((o=>o.checked=t.detail.value===o.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let o=this.findFtRadio(t),e=this.radioButtons.indexOf(o)-1;this.radioButtons[e<0?this.radioButtons.length-1:e].select();break}case"ArrowDown":case"ArrowRight":{let o=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[o>this.radioButtons.length-1?0:o].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}
|
|
1017
|
+
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((o=>o.checked=t.detail.value===o.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let o=this.findFtRadio(t),e=this.radioButtons.indexOf(o)-1;this.radioButtons[e<0?this.radioButtons.length-1:e].select();break}case"ArrowDown":case"ArrowRight":{let o=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[o>this.radioButtons.length-1?0:o].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}Ce.elementDefinitions={},Ce.styles=we,$e([i.property()],Ce.prototype,"name",void 0),$e([i.queryAssignedElements()],Ce.prototype,"radioButtons",void 0),o.customElement("ft-radio")(Se),o.customElement("ft-radio-group")(Ce);const ke={borderRadiusM:o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusM,"Design system"),colorOutline:o.FtCssVariableFactory.external(o.designSystemVariables.colorOutline,"Design system"),colorOnSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:o.FtCssVariableFactory.external(o.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:o.FtCssVariableFactory.external(o.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:o.FtCssVariableFactory.external(Kt.fontFamily,"Body2 typography"),fontSize:o.FtCssVariableFactory.external(Kt.fontSize,"Body2 typography"),fontWeight:o.FtCssVariableFactory.external(Kt.fontWeight,"Body2 typography"),letterSpacing:o.FtCssVariableFactory.external(Kt.letterSpacing,"Body2 typography"),lineHeight:o.FtCssVariableFactory.external(Kt.lineHeight,"Body2 typography"),textTransform:o.FtCssVariableFactory.external(Kt.textTransform,"Body2 typography")},Ie=e.css`
|
|
1018
1018
|
.ft-filter-level--container {
|
|
1019
1019
|
display: flex;
|
|
1020
1020
|
flex-direction: column;
|
|
@@ -1028,14 +1028,14 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1028
1028
|
flex-shrink: 0;
|
|
1029
1029
|
text-decoration: none;
|
|
1030
1030
|
position: relative;
|
|
1031
|
-
border-radius: ${
|
|
1031
|
+
border-radius: ${ke.borderRadiusM};
|
|
1032
1032
|
overflow: hidden;
|
|
1033
1033
|
display: flex;
|
|
1034
1034
|
align-items: center;
|
|
1035
1035
|
padding: 4px 4px;
|
|
1036
1036
|
gap: 4px;
|
|
1037
1037
|
cursor: pointer;
|
|
1038
|
-
color: ${
|
|
1038
|
+
color: ${ke.colorOnSurface};
|
|
1039
1039
|
}
|
|
1040
1040
|
|
|
1041
1041
|
.ft-filter-level--go-back:focus {
|
|
@@ -1064,7 +1064,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
1066
|
ft-button {
|
|
1067
|
-
${o.setVariable(
|
|
1067
|
+
${o.setVariable(Ro.color,ke.colorOnSurface)};
|
|
1068
1068
|
}
|
|
1069
1069
|
|
|
1070
1070
|
ft-radio, ft-checkbox {
|
|
@@ -1078,9 +1078,9 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1078
1078
|
|
|
1079
1079
|
.ft-filter-level--no-values {
|
|
1080
1080
|
margin: 10px 0;
|
|
1081
|
-
color: ${
|
|
1081
|
+
color: ${ke.colorOnSurfaceMedium};
|
|
1082
1082
|
}
|
|
1083
|
-
`;var
|
|
1083
|
+
`;var Ee=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Re extends o.FtLitElement{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,o;return null!==(o=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==o?o:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const o=t.slice(0,this.limit);return e.html`
|
|
1084
1084
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1085
1085
|
${null==this.parent?null:e.html`
|
|
1086
1086
|
<div tabindex="0"
|
|
@@ -1144,7 +1144,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1144
1144
|
@change=${t=>t.stopPropagation()}>
|
|
1145
1145
|
${t.renderOption?t.renderOption:t.label}
|
|
1146
1146
|
</ft-radio>
|
|
1147
|
-
`}onRadioKeyUp(t,o){o.selected&&" "===t.key&&this.optionsChanged(t,o)}optionsChanged(t,o){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:o}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}
|
|
1147
|
+
`}onRadioKeyUp(t,o){o.selected&&" "===t.key&&this.optionsChanged(t,o)}optionsChanged(t,o){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:o}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}Re.elementDefinitions={"ft-button":re,"ft-ripple":Zo,"ft-typography":yo,"ft-checkbox":ye,"ft-icon":Jo,"ft-radio":Se},Re.styles=Ie,Ee([i.property({type:String})],Re.prototype,"filterId",void 0),Ee([i.property({type:Object})],Re.prototype,"parent",void 0),Ee([i.property({type:Array})],Re.prototype,"options",void 0),Ee([i.property({type:Boolean})],Re.prototype,"multivalued",void 0),Ee([i.property({type:Boolean})],Re.prototype,"disabled",void 0),Ee([i.property({type:Boolean})],Re.prototype,"hideSelectedOptions",void 0),Ee([i.property({type:Boolean})],Re.prototype,"preventNavigation",void 0),Ee([i.property({type:String})],Re.prototype,"filter",void 0),Ee([i.property({type:String})],Re.prototype,"moreValuesButtonLabel",void 0),Ee([i.property({type:String})],Re.prototype,"noValuesLabel",void 0),Ee([i.property({type:Number})],Re.prototype,"displayedValuesLimit",void 0),Ee([i.query(".ft-filter-level--container")],Re.prototype,"container",void 0),Ee([i.state()],Re.prototype,"displayedPages",void 0);const Ue={buttonsColor:o.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",o.designSystemVariables.colorPrimary),buttonsZIndex:o.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","COLOR","1"),gap:o.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system")},Le=e.css`
|
|
1148
1148
|
.ft-snap-scroll {
|
|
1149
1149
|
box-sizing: border-box;
|
|
1150
1150
|
position: relative;
|
|
@@ -1179,7 +1179,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1179
1179
|
flex-wrap: nowrap;
|
|
1180
1180
|
align-items: flex-start;
|
|
1181
1181
|
justify-content: flex-start;
|
|
1182
|
-
gap: ${
|
|
1182
|
+
gap: ${Ue.gap};
|
|
1183
1183
|
}
|
|
1184
1184
|
|
|
1185
1185
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1222,11 +1222,11 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1222
1222
|
.ft-snap-scroll--next {
|
|
1223
1223
|
position: absolute;
|
|
1224
1224
|
display: flex;
|
|
1225
|
-
z-index: ${
|
|
1225
|
+
z-index: ${Ue.buttonsZIndex};
|
|
1226
1226
|
opacity: 1;
|
|
1227
1227
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1228
|
-
${o.setVariable(
|
|
1229
|
-
${o.setVariable(
|
|
1228
|
+
${o.setVariable(Ro.backgroundColor,"transparent")};
|
|
1229
|
+
${o.setVariable(Ro.color,Ue.buttonsColor)};
|
|
1230
1230
|
}
|
|
1231
1231
|
|
|
1232
1232
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1239,37 +1239,37 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1239
1239
|
top: 0;
|
|
1240
1240
|
left: -1px;
|
|
1241
1241
|
bottom: 0;
|
|
1242
|
-
background: linear-gradient(to right, ${
|
|
1242
|
+
background: linear-gradient(to right, ${Ue.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1243
1243
|
}
|
|
1244
1244
|
|
|
1245
1245
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1246
1246
|
top: -1px;
|
|
1247
1247
|
left: 0;
|
|
1248
1248
|
right: 0;
|
|
1249
|
-
background: linear-gradient(to bottom, ${
|
|
1249
|
+
background: linear-gradient(to bottom, ${Ue.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1250
1250
|
}
|
|
1251
1251
|
|
|
1252
1252
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1253
1253
|
top: 0;
|
|
1254
1254
|
right: -1px;
|
|
1255
1255
|
bottom: 0;
|
|
1256
|
-
background: linear-gradient(to left, ${
|
|
1256
|
+
background: linear-gradient(to left, ${Ue.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1257
1257
|
}
|
|
1258
1258
|
|
|
1259
1259
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1260
1260
|
left: 0;
|
|
1261
1261
|
right: 0;
|
|
1262
1262
|
bottom: -1px;
|
|
1263
|
-
background: linear-gradient(to top, ${
|
|
1263
|
+
background: linear-gradient(to top, ${Ue.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1264
1264
|
}
|
|
1265
1265
|
|
|
1266
1266
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1267
1267
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1268
1268
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1269
1269
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1270
|
-
background-color: ${
|
|
1270
|
+
background-color: ${Ue.colorSurface};
|
|
1271
1271
|
}
|
|
1272
|
-
`;var
|
|
1272
|
+
`;var We=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ze extends CustomEvent{constructor(t,o){super("current-element-change",{detail:{index:t,element:o}})}}class Ke extends o.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new o.Debouncer(200),this.updateScrollDebouncer=new o.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let o=this.elements[t];if(o){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,e=this.contentSlot[this.scrollAttribute]+this.prevSize;(o[this.offsetAttribute]<e||o[this.offsetAttribute]+o[this.sizeAttribute]>t)&&this.scrollToElement(o)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=a.classMap({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":o.isSafari}),i=this.controls&&this.withScroll;return e.html`
|
|
1273
1273
|
<div part="container" class="${t}">
|
|
1274
1274
|
<ft-button
|
|
1275
1275
|
class="ft-snap-scroll--previous"
|
|
@@ -1293,7 +1293,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1293
1293
|
@click=${this.next}
|
|
1294
1294
|
></ft-button>
|
|
1295
1295
|
</div>
|
|
1296
|
-
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new
|
|
1296
|
+
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new ze(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var o;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(o=this.listenedContainer)||void 0===o||o.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const o=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<o&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var o,e;t&&(this.horizontal?null===(o=this.contentSlot)||void 0===o||o.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(e=this.contentSlot)||void 0===e||e.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,o;this.elements=null!==(o=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==o?o:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let o=0;o<this.elements.length;o++)(t<0||this.getDistanceFromStart(this.elements[o])<this.getDistanceFromStart(this.elements[t]))&&(t=o);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const o=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-o)}}Ke.elementDefinitions={"ft-button":re},Ke.styles=Le,We([i.property({type:Boolean})],Ke.prototype,"horizontal",void 0),We([i.property({type:Boolean})],Ke.prototype,"hideScrollbar",void 0),We([i.property({type:Boolean})],Ke.prototype,"controls",void 0),We([i.property({type:Boolean})],Ke.prototype,"limitSize",void 0),We([i.state()],Ke.prototype,"elements",void 0),We([i.state()],Ke.prototype,"currentElement",void 0),We([i.state()],Ke.prototype,"withScroll",void 0),We([i.state()],Ke.prototype,"startReached",void 0),We([i.state()],Ke.prototype,"endReached",void 0),We([i.query(".ft-snap-scroll--content")],Ke.prototype,"contentSlot",void 0),o.customElement("ft-snap-scroll")(Ke);const Be=o.FtCssVariableFactory.external(o.designSystemVariables.colorOutline,"Design system"),Ae=o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurface,"Design system"),De=o.FtCssVariableFactory.external(o.designSystemVariables.colorOnSurfaceMedium,"Design system"),Ze=o.FtCssVariableFactory.external(o.designSystemVariables.colorPrimary,"Design system"),Fe=o.FtCssVariableFactory.external(o.designSystemVariables.colorSurface,"Design system"),Te=o.FtCssVariableFactory.external(o.designSystemVariables.transitionDuration,"Design system"),He=o.FtCssVariableFactory.external(o.designSystemVariables.transitionTimingFunction,"Design system"),Pe=[so,e.css`
|
|
1297
1297
|
:host {
|
|
1298
1298
|
display: flex;
|
|
1299
1299
|
max-height: 100%;
|
|
@@ -1306,7 +1306,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1306
1306
|
flex-direction: column;
|
|
1307
1307
|
max-height: 100%;
|
|
1308
1308
|
max-width: 100%;
|
|
1309
|
-
color: ${
|
|
1309
|
+
color: ${Ae};
|
|
1310
1310
|
}
|
|
1311
1311
|
|
|
1312
1312
|
.ft-filter--header {
|
|
@@ -1316,13 +1316,13 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1316
1316
|
flex-shrink: 0;
|
|
1317
1317
|
padding: 0 10px;
|
|
1318
1318
|
margin-bottom: 8px;
|
|
1319
|
-
${o.setVariable(
|
|
1319
|
+
${o.setVariable(rt.fontSize,"14px")};
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
1322
|
.ft-filter--header ft-button {
|
|
1323
1323
|
flex-shrink: 0;
|
|
1324
1324
|
margin-left: auto;
|
|
1325
|
-
${o.setVariable(
|
|
1325
|
+
${o.setVariable(Ro.iconSize,"18px")};
|
|
1326
1326
|
}
|
|
1327
1327
|
|
|
1328
1328
|
.ft-filter--label {
|
|
@@ -1330,8 +1330,8 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1330
1330
|
flex-shrink: 1;
|
|
1331
1331
|
flex-grow: 1;
|
|
1332
1332
|
word-break: break-word;
|
|
1333
|
-
${o.setVariable(
|
|
1334
|
-
${o.setVariable(
|
|
1333
|
+
${o.setVariable(rt.lineHeight,"22px")};
|
|
1334
|
+
${o.setVariable(rt.fontWeight,"bold")};
|
|
1335
1335
|
}
|
|
1336
1336
|
|
|
1337
1337
|
.ft-filter--filter {
|
|
@@ -1342,8 +1342,8 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1342
1342
|
padding: 0 10px;
|
|
1343
1343
|
overflow: hidden;
|
|
1344
1344
|
height: 32px;
|
|
1345
|
-
transition: height ${
|
|
1346
|
-
margin ${
|
|
1345
|
+
transition: height ${Te} ${He},
|
|
1346
|
+
margin ${Te} ${He};
|
|
1347
1347
|
transition-delay: 500ms;
|
|
1348
1348
|
}
|
|
1349
1349
|
|
|
@@ -1356,15 +1356,15 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1356
1356
|
display: block;
|
|
1357
1357
|
width: 100%;
|
|
1358
1358
|
border-radius: 4px;
|
|
1359
|
-
border: 1px solid ${
|
|
1359
|
+
border: 1px solid ${Be};
|
|
1360
1360
|
padding: 4px;
|
|
1361
|
-
background-color: ${
|
|
1362
|
-
color: ${
|
|
1363
|
-
outline-color: ${
|
|
1361
|
+
background-color: ${Fe};
|
|
1362
|
+
color: ${Ae};
|
|
1363
|
+
outline-color: ${Ze};
|
|
1364
1364
|
}
|
|
1365
1365
|
|
|
1366
1366
|
input::placeholder {
|
|
1367
|
-
color: ${
|
|
1367
|
+
color: ${De};
|
|
1368
1368
|
}
|
|
1369
1369
|
|
|
1370
1370
|
input:placeholder-shown {
|
|
@@ -1380,7 +1380,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1380
1380
|
}
|
|
1381
1381
|
|
|
1382
1382
|
.ft-filter--separator {
|
|
1383
|
-
border-top: 1px solid ${
|
|
1383
|
+
border-top: 1px solid ${Be};
|
|
1384
1384
|
margin: 4px 10px;
|
|
1385
1385
|
}
|
|
1386
1386
|
|
|
@@ -1405,7 +1405,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1405
1405
|
slot:not([name]) {
|
|
1406
1406
|
display: none;
|
|
1407
1407
|
}
|
|
1408
|
-
`];var
|
|
1408
|
+
`];var je=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Me extends CustomEvent{constructor(t){super("change",{detail:t})}}class _e extends o.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new o.Debouncer(300),this.changeDebouncer=new o.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return o.flatDeep(this.options,(t=>{var o;return null!==(o=t.subOptions)&&void 0!==o?o:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),o=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return e.html`
|
|
1409
1409
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1410
1410
|
part="container">
|
|
1411
1411
|
${this.label||t?e.html`
|
|
@@ -1438,7 +1438,7 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1438
1438
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1439
1439
|
@option-change=${this.optionsChanged}></slot>
|
|
1440
1440
|
</div>
|
|
1441
|
-
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((o=>t.has(o))),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var o,e,i,r,
|
|
1441
|
+
`}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((o=>t.has(o))),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(t){var o,e,i,r,a;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(o=this.levelsContainer)||void 0===o||o.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(e=this.levelsContainer)||void 0===e||e.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300)),this.lastLevelHasHiddenvalues=null!==(a=null===(r=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(".ft-filter--levels ft-filter-level:last-child"))||void 0===r?void 0:r.hasHiddenValues)&&void 0!==a&&a}renderLevels(){const t=this.flatOptions,o=t.filter((t=>t.selected)),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,r=i<0?"ft-filter--level-center":"ft-filter--level-left";return e.html`
|
|
1442
1442
|
${this.raiseSelectedOptions&&o.length>0?e.html`
|
|
1443
1443
|
<ft-filter-level
|
|
1444
1444
|
filterId="${this.id}"
|
|
@@ -1477,26 +1477,26 @@ const M=Symbol.for(""),_=t=>{if((null==t?void 0:t.r)===M)return null==t?void 0:t
|
|
|
1477
1477
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1478
1478
|
noValuesLabel="${this.noValuesLabel}"
|
|
1479
1479
|
></ft-filter-level>
|
|
1480
|
-
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var o;t.stopPropagation();const e=this.flatOptions.find((o=>o.value===t.detail.value));e.selected=!e.selected;const i=t=>{var o;t!==e&&(t.selected=!1),null===(o=t.subOptions)||void 0===o||o.forEach(i)};this.multivalued?null===(o=e.subOptions)||void 0===o||o.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;o.deepEqual(this.lastDispatchedValues,t)||(this.dispatchEvent(new
|
|
1480
|
+
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var o;t.stopPropagation();const e=this.flatOptions.find((o=>o.value===t.detail.value));e.selected=!e.selected;const i=t=>{var o;t!==e&&(t.selected=!1),null===(o=t.subOptions)||void 0===o||o.forEach(i)};this.multivalued?null===(o=e.subOptions)||void 0===o||o.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;o.deepEqual(this.lastDispatchedValues,t)||(this.dispatchEvent(new Me(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,o;this.filter=null!==(o=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==o?o:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}_e.elementDefinitions={"ft-button":re,"ft-filter-level":Re,"ft-snap-scroll":Ke,"ft-typography":yo},_e.styles=Pe,je([i.property({type:String})],_e.prototype,"id",void 0),je([i.property({type:String})],_e.prototype,"label",void 0),je([i.property({type:String})],_e.prototype,"filterPlaceHolder",void 0),je([i.property({type:String})],_e.prototype,"clearButtonLabel",void 0),je([i.property({type:String})],_e.prototype,"moreValuesButtonLabel",void 0),je([i.property({type:String})],_e.prototype,"noValuesLabel",void 0),je([o.jsonProperty([])],_e.prototype,"options",void 0),je([i.property({type:Boolean})],_e.prototype,"multivalued",void 0),je([i.property({type:Boolean})],_e.prototype,"disabled",void 0),je([i.property({type:Boolean})],_e.prototype,"raiseSelectedOptions",void 0),je([i.property({type:Number})],_e.prototype,"displayedValuesLimit",void 0),je([i.property({type:Boolean})],_e.prototype,"hideClearButton",void 0),je([i.query(".ft-filter--slot")],_e.prototype,"slotElement",void 0),je([i.query(".ft-filter--container")],_e.prototype,"container",void 0),je([i.query(".ft-filter--values")],_e.prototype,"valuesContainer",void 0),je([i.query(".ft-filter--levels")],_e.prototype,"levelsContainer",void 0),je([i.state()],_e.prototype,"lastLevelHasHiddenvalues",void 0),je([i.query(".ft-filter--filter input")],_e.prototype,"filterInput",void 0),je([i.queryAll(".ft-filter--levels ft-filter-level")],_e.prototype,"levels",void 0),je([i.state()],_e.prototype,"withScroll",void 0),je([i.state()],_e.prototype,"filter",void 0),je([i.state()],_e.prototype,"slideIn",void 0),je([i.state()],_e.prototype,"slideOut",void 0);var Ge=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ve extends o.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return e.html`
|
|
1481
1481
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1482
|
-
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}
|
|
1483
|
-
`,
|
|
1484
|
-
`,
|
|
1482
|
+
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Ve.elementDefinitions={},Ge([i.property({type:String})],Ve.prototype,"label",void 0),Ge([i.property({type:Object,converter:t=>t})],Ve.prototype,"value",void 0),Ge([i.property({type:Boolean,reflect:!0})],Ve.prototype,"selected",void 0),Ge([i.property({type:Object})],Ve.prototype,"subOptions",void 0),Ge([o.jsonProperty({})],Ve.prototype,"renderOption",void 0),Ge([i.query(".ft-filter-option--slot")],Ve.prototype,"slotElement",void 0),o.customElement("ft-filter")(_e),o.customElement("ft-filter-option")(Ve);const qe=e.css`
|
|
1483
|
+
`,Ye=e.css`
|
|
1484
|
+
`,Xe=o.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,o)=>{t.baseUrl=o.payload},setApiIntegrationIdentifier:(t,o)=>{t.apiIntegrationIdentifier=o.payload},setUiLocale:(t,o)=>{t.uiLocale=o.payload},setAvailableUiLocales:(t,o)=>{t.availableUiLocales=o.payload},setEditorMode:(t,o)=>{t.editorMode=o.payload},setNoCustom:(t,o)=>{t.noCustom=o.payload},setNoCustomComponent:(t,o)=>{t.noCustomComponent=o.payload},setSession:(t,o)=>{t.session=o.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class Qe{static build(t){const{baseUrl:o,apiIntegrationIdentifier:e}=Xe.getState(),i=null!=t?t:e;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static get(t){var o;return null!=t?Qe.build(t):null!==(o=Qe.API)&&void 0!==o?o:Qe.API=Qe.build()}static await(t){return new Promise((o=>{let e=Qe.get(t);if(e)o(e);else{const i=Xe.subscribe((()=>{e=Qe.get(t),e&&(i(),o(e))}))}}))}}var Je;const ti=Symbol("clearAfterUnitTest");class oi{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={},this.currentUiLocale="",this[Je]=()=>{this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={}},this.currentUiLocale=Xe.getState().uiLocale,Xe.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Xe.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};o.deepEqual(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var r,a,n;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(a=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==a?a:{};return new o.ParametrizedLabelResolver(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},s).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>o.delay(0).then((()=>t())).catch((()=>null)))))}}Je=ti,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new oi((async(t,o)=>(await Qe.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new oi((async(t,o)=>(await Qe.await()).getCustomMessageContext(t,o))));const ei=window.FluidTopicsI18nService,ii=window.FluidTopicsCustomI18nService;var ri=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class ai extends o.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Qe.get(),this.cache=new o.CacheRegistry,this.cleanSessionDebouncer=new o.Debouncer}render(){return e.html`
|
|
1485
1485
|
<slot></slot>
|
|
1486
|
-
`}update(t){super.update(t),t.has("baseUrl")&&
|
|
1486
|
+
`}update(t){super.update(t),t.has("baseUrl")&&Xe.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Xe.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Xe.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Xe.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Xe.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Xe.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Xe.actions.setSession(this.session),t.has("availableUiLocales")&&Xe.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>ei.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const o=await t.getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),o.idleTimeoutInMillis),o}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}ai.elementDefinitions={},ai.styles=Ye,ri([i.property()],ai.prototype,"baseUrl",void 0),ri([i.property()],ai.prototype,"apiIntegrationIdentifier",void 0),ri([i.property()],ai.prototype,"uiLocale",void 0),ri([o.jsonProperty([])],ai.prototype,"availableUiLocales",void 0),ri([i.property({type:Boolean})],ai.prototype,"editorMode",void 0),ri([i.property({type:Boolean})],ai.prototype,"noCustom",void 0),ri([i.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ai.prototype,"noCustomComponent",void 0),ri([i.property({type:Boolean})],ai.prototype,"withManualResources",void 0),ri([o.jsonProperty([])],ai.prototype,"messageContexts",void 0),ri([o.jsonProperty(void 0)],ai.prototype,"session",void 0),ri([i.property({type:Object})],ai.prototype,"apiProvider",void 0);class ni{async listMySearches(){var t;return(null===(t=Xe.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Qe.await()).listMySearches(Xe.getState().session.profile.userId):[]}}const si=new o.CacheRegistry;class li{async listMyBookmarks(){return si.get("bookmarks",(async()=>(await Qe.await()).listMyBookmarks(Xe.getState().session.profile.userId)))}clearCache(){si.clear("bookmarks")}}const ci=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const hi=new class{constructor(){this.currentSession=Xe.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new li,Xe.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Xe.getState();o.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){ci.actions.savedSearches(void 0)}clearMyBookmarks(){ci.actions.bookmarks(void 0)}async reloadMySearches(){const t=new ni,o=await t.listMySearches();ci.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;ci.actions.bookmarks(o)}}};o.customElement("ft-app-context")(ai);var pi=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const fi=Symbol("i18nProperties"),di=Symbol("i18nUnsubs");function ui(t){var o;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[o]=new Map}get i18nService(){return this.useCustomMessageContexts?ii:ei}i18n(t,o,...e){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,o,...e);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var o;null===(o=this[fi])||void 0===o||o.forEach(((o,e)=>{o.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(o))})),setTimeout((()=>this.requestUpdate()),0)}update(t){var o;super.update(t),null===(o=this[fi])||void 0===o||o.forEach(((t,o)=>{null!=t.argsProvider&&(this[o]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[fi]&&new Set([...this[fi].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,o){t=t.toLowerCase(),this[di].has(t)||this[di].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=o?o:{})}addI18nContext(t,o){this.addI18nMessages(t.name,o)}disconnectedCallback(){super.disconnectedCallback(),this[di].forEach((t=>t())),this[di].clear()}}return o=di,pi([i.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class yi extends(ui(o.FtLitElement)){}class gi extends(ui(o.FtLitElementRedux)){}var bi=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class mi extends gi{constructor(){super(),this.editorMode=!1,this.addStore(Xe)}render(){return this.key&&this.context?e.html`
|
|
1487
1487
|
<span class="ft-i18n">
|
|
1488
1488
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1489
1489
|
</span>
|
|
1490
|
-
`:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}vi.elementDefinitions={},vi.styles=Ye,mi([o.redux()],vi.prototype,"editorMode",void 0),mi([i.property()],vi.prototype,"context",void 0),mi([i.property()],vi.prototype,"key",void 0),mi([o.jsonProperty([])],vi.prototype,"args",void 0),mi([i.property()],vi.prototype,"defaultMessage",void 0);class xi{static build(t){return new xi(t)}static fromGwt(t){return new xi(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>ii.resolveMessage(this.name,o,...t)})}}o.customElement("ft-i18n")(vi);const Oi={setRequest:(t,o)=>{t.request=o.payload},setRequestQuery:(t,o)=>{t.request.query=o.payload},setRequestContentLocale:(t,o)=>{t.request.contentLocale=o.payload},setPageSize:(t,o)=>{t.request.paging.perPage=o.payload},setPageNumber:(t,o)=>{t.request.paging.page=o.payload},setRequestSort:(t,o)=>{t.request.sort=o.payload},setRequestFilters:(t,o)=>{t.request.filters=o.payload},setRequestFacets:(t,o)=>{t.request.facets=o.payload},setRequestVirtualField:(t,o)=>{t.request.virtualField=o.payload},setRequestScope:(t,o)=>{t.request.scope=o.payload},setResults:(t,o)=>{t.results=o.payload},setFacets:(t,o)=>{t.facets=o.payload},setSpellcheck:(t,o)=>{t.spellcheck=o.payload},setLocales:(t,o)=>{t.locales=o.payload},setPaging:(t,o)=>{t.paging=o.payload},setLiveQuery:(t,o)=>{t.liveQuery=o.payload},setSuggestResults:(t,o)=>{t.suggestResults=o.payload}};var Ni,Si,wi,$i,Ci,ki,Ii,Ei,Ri,Ui,Li,Wi,zi,Ki;!function(t){!function(o){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return e.iterable&&(o[Symbol.iterator]=function(){return o}),o}function l(t){this.map={},t instanceof l?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(o,e){t.onload=function(){o(t.result)},t.onerror=function(){e(t.error)}}))}function p(t){var o=new FileReader,e=h(o);return o.readAsArrayBuffer(t),e}function f(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,o,e,i=c(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,o=new FileReader,e=h(o),o.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),e=new Array(o.length),i=0;i<o.length;i++)e[i]=String.fromCharCode(o[i]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,o){t=n(t),o=a(o);var e=this.map[t];this.map[t]=e?e+", "+o:o},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,o){this.map[n(t)]=a(o)},l.prototype.forEach=function(t,o){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(o,this.map[e],e,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(o,e){t.push(e)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(o,e){t.push([e,o])})),s(t)},e.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,o){var e,i,r=(o=o||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new l(o.headers)),this.method=(e=o.method||this.method||"GET",i=e.toUpperCase(),u.indexOf(i)>-1?i:e),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),i=e.shift().replace(/\+/g," "),r=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(i),decodeURIComponent(r))}})),o}function b(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new l(o.headers),this.url=o.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new b(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var e=Error(t);this.stack=e.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function v(t,i){return new Promise((function(r,n){var a=new y(t,i);if(a.signal&&a.signal.aborted)return n(new o.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,o,e={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",o=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),i=e.shift().trim();if(i){var r=e.join(":").trim();o.append(i,r)}})),o)};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,e))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new o.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&e.blob&&(s.responseType="blob"),a.headers.forEach((function(t,o){s.setRequestHeader(o,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=y,t.Response=b),o.Headers=l,o.Request=y,o.Response=b,o.fetch=v,Object.defineProperty(o,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Ni||(Ni={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Si||(Si={})),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"}(wi||(wi={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}($i||($i={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ci||(Ci={})),function(t){t.ASC="ASC",t.DESC="DESC"}(ki||(ki={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Ii||(Ii={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ei||(Ei={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ri||(Ri={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Ui||(Ui={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Li||(Li={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Wi||(Wi={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(zi||(zi={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Ki||(Ki={})),Ki.PERSONAL_BOOK_SHARE_USER,Ki.PERSONAL_BOOK_USER,Ki.HTML_EXPORT_USER,Ki.PERSONAL_BOOK_USER,Ki.PDF_EXPORT_USER,Ki.PERSONAL_BOOK_USER,Ki.KHUB_ADMIN,Ki.CONTENT_PUBLISHER,Ki.ADMIN,Ki.KHUB_ADMIN,Ki.USERS_ADMIN,Ki.PORTAL_ADMIN,Ki.DEVELOPER,Ki.BETA_USER,Ki.DEBUG_USER;class Bi{static async build(){return new Bi(await Je.await())}constructor(t){this.api=t,this.cache=new o.CacheRegistry,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const Ai=t=>t.request.virtualField===Ei.TITLE_ONLY&&t.request.scope===zi.DOCUMENTS;class Di extends Event{constructor(){super(Di.eventName)}}Di.eventName="search-context-clear-all-filters";class Zi{static build(t){return new Zi((t=>o.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:Oi}))(t.trim()||"context"),Bi.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.searchDebouncer=new o.Debouncer(100),this.suggestDebouncer=new o.Debouncer(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await o.delay(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let o=this.store.getState().locales,e=this.store.getState().request.contentLocale;if(t!=e){if(o){const i=t=>o.some((o=>o.lang==t));i(t)||(t=i(e)?e:o[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const o=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(o),this.store.actions.setPageNumber(1),o.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(Ei.TITLE_ONLY),this.store.actions.setRequestScope(zi.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Ei.EVERYWHERE),this.store.actions.setRequestScope(zi.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return Ai(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Di)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,o){let e=this.facetIds.filter((o=>o!=t));o&&e.push(o),this.facetIds=e,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let o=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(o)}setFilter(t,o){let e=this.store.getState().request.filters,i={key:t,values:o,negative:!1},r=[...e.filter((o=>o.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,e;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel(),this.cancelableSearch=o.cancelable(this.service.launchSearch(this.store.getState().request));const i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.setResults(i.results),this.store.actions.setFacets(i.facets),this.store.actions.setSpellcheck(i.spellcheck);else{let t=(null!==(e=this.store.getState().results)&&void 0!==e?e:[]).concat(i.results);this.store.actions.setResults(t)}this.store.actions.setPaging(i.paging)}catch(t){t instanceof o.CanceledPromiseError||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{let e={input:this.store.getState().liveQuery,filters:this.store.getState().request.filters,sort:this.store.getState().request.sort,contentLocale:this.store.getState().request.contentLocale};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=o.cancelable(this.service.launchSuggest(e));let i=await this.cancelableSuggest;this.store.actions.setSuggestResults(i.suggestions)}catch(t){t instanceof o.CanceledPromiseError||!this.errorHandler||this.errorHandler(t)}}}var Fi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ti extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Hi=Symbol("registerInterval");class Pi extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Hi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Hi]):this.dispatchEvent(new Ti)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=Hi,Fi([i.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}const ji=xi.build("designedSearchType"),Mi={label:"Search scope",documentTitlesOnly:"Search in document titles only"},_i=e.css`
|
|
1491
|
-
`;var
|
|
1490
|
+
`:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}mi.elementDefinitions={},mi.styles=qe,bi([o.redux()],mi.prototype,"editorMode",void 0),bi([i.property()],mi.prototype,"context",void 0),bi([i.property()],mi.prototype,"key",void 0),bi([o.jsonProperty([])],mi.prototype,"args",void 0),bi([i.property()],mi.prototype,"defaultMessage",void 0);class vi{static build(t){return new vi(t)}static fromGwt(t){return new vi(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,o)=>{const e=o;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...t)=>ei.resolveMessage(this.name,o,...t)})}}o.customElement("ft-i18n")(mi);const xi={setRequest:(t,o)=>{t.request=o.payload},setRequestQuery:(t,o)=>{t.request.query=o.payload},setRequestContentLocale:(t,o)=>{t.request.contentLocale=o.payload},setPageSize:(t,o)=>{t.request.paging.perPage=o.payload},setPageNumber:(t,o)=>{t.request.paging.page=o.payload},setRequestSort:(t,o)=>{t.request.sort=o.payload},setRequestFilters:(t,o)=>{t.request.filters=o.payload},setRequestFacets:(t,o)=>{t.request.facets=o.payload},setRequestVirtualField:(t,o)=>{t.request.virtualField=o.payload},setRequestScope:(t,o)=>{t.request.scope=o.payload},setResults:(t,o)=>{t.results=o.payload},setFacets:(t,o)=>{t.facets=o.payload},setSpellcheck:(t,o)=>{t.spellcheck=o.payload},setLocales:(t,o)=>{t.locales=o.payload},setPaging:(t,o)=>{t.paging=o.payload},setLiveQuery:(t,o)=>{t.liveQuery=o.payload},setSuggestResults:(t,o)=>{t.suggestResults=o.payload}};var Oi,Ni,Si,wi,$i,Ci,ki,Ii,Ei,Ri,Ui,Li,Wi,zi;!function(t){!function(o){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function a(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function n(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var o={next:function(){var o=t.shift();return{done:void 0===o,value:o}}};return e.iterable&&(o[Symbol.iterator]=function(){return o}),o}function l(t){this.map={},t instanceof l?t.forEach((function(t,o){this.append(o,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(o){this.append(o,t[o])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function h(t){return new Promise((function(o,e){t.onload=function(){o(t.result)},t.onerror=function(){e(t.error)}}))}function p(t){var o=new FileReader,e=h(o);return o.readAsArrayBuffer(t),e}function f(t){if(t.slice)return t.slice(0);var o=new Uint8Array(t.byteLength);return o.set(new Uint8Array(t)),o.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(t){var o;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((o=t)&&DataView.prototype.isPrototypeOf(o))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,o,e,i=c(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,o=new FileReader,e=h(o),o.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var o=new Uint8Array(t),e=new Array(o.length),i=0;i<o.length;i++)e[i]=String.fromCharCode(o[i]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,o){t=a(t),o=n(o);var e=this.map[t];this.map[t]=e?e+", "+o:o},l.prototype.delete=function(t){delete this.map[a(t)]},l.prototype.get=function(t){return t=a(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(a(t))},l.prototype.set=function(t,o){this.map[a(t)]=n(o)},l.prototype.forEach=function(t,o){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(o,this.map[e],e,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(o,e){t.push(e)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(o){t.push(o)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(o,e){t.push([e,o])})),s(t)},e.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(t,o){var e,i,r=(o=o||{}).body;if(t instanceof y){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,o.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=o.credentials||this.credentials||"same-origin",!o.headers&&this.headers||(this.headers=new l(o.headers)),this.method=(e=o.method||this.method||"GET",i=e.toUpperCase(),u.indexOf(i)>-1?i:e),this.mode=o.mode||this.mode||null,this.signal=o.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function g(t){var o=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),i=e.shift().replace(/\+/g," "),r=e.join("=").replace(/\+/g," ");o.append(decodeURIComponent(i),decodeURIComponent(r))}})),o}function b(t,o){o||(o={}),this.type="default",this.status=void 0===o.status?200:o.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in o?o.statusText:"OK",this.headers=new l(o.headers),this.url=o.url||"",this._initBody(t)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},d.call(y.prototype),d.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,o){if(-1===m.indexOf(o))throw new RangeError("Invalid status code");return new b(null,{status:o,headers:{location:t}})},o.DOMException=t.DOMException;try{new o.DOMException}catch(t){o.DOMException=function(t,o){this.message=t,this.name=o;var e=Error(t);this.stack=e.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function v(t,i){return new Promise((function(r,a){var n=new y(t,i);if(n.signal&&n.signal.aborted)return a(new o.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,o,e={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",o=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),i=e.shift().trim();if(i){var r=e.join(":").trim();o.append(i,r)}})),o)};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,e))},s.onerror=function(){a(new TypeError("Network request failed"))},s.ontimeout=function(){a(new TypeError("Network request failed"))},s.onabort=function(){a(new o.DOMException("Aborted","AbortError"))},s.open(n.method,n.url,!0),"include"===n.credentials?s.withCredentials=!0:"omit"===n.credentials&&(s.withCredentials=!1),"responseType"in s&&e.blob&&(s.responseType="blob"),n.headers.forEach((function(t,o){s.setRequestHeader(o,t)})),n.signal&&(n.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&n.signal.removeEventListener("abort",c)}),s.send(void 0===n._bodyInit?null:n._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=y,t.Response=b),o.Headers=l,o.Request=y,o.Response=b,o.fetch=v,Object.defineProperty(o,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Oi||(Oi={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(Ni||(Ni={})),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"}(Si||(Si={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(wi||(wi={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}($i||($i={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Ci||(Ci={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(ki||(ki={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(Ii||(Ii={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ei||(Ei={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Ri||(Ri={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ui||(Ui={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Li||(Li={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS"}(Wi||(Wi={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(zi||(zi={})),zi.PERSONAL_BOOK_SHARE_USER,zi.PERSONAL_BOOK_USER,zi.HTML_EXPORT_USER,zi.PERSONAL_BOOK_USER,zi.PDF_EXPORT_USER,zi.PERSONAL_BOOK_USER,zi.KHUB_ADMIN,zi.CONTENT_PUBLISHER,zi.ADMIN,zi.KHUB_ADMIN,zi.USERS_ADMIN,zi.PORTAL_ADMIN,zi.DEVELOPER,zi.BETA_USER,zi.DEBUG_USER;class Ki{static async build(){return new Ki(await Qe.await())}constructor(t){this.api=t,this.cache=new o.CacheRegistry,this.cache.registerFinal("available-locales",(()=>this.api.getAvailableSearchLocales()))}async launchSearch(t){return this.api.search(t)}async launchSuggest(t){return this.api.getSuggestions(t)}async getAvailableSearchLocales(){return this.cache.get("available-locales")}}const Bi=t=>t.request.virtualField===Ii.TITLE_ONLY&&t.request.scope===Wi.DOCUMENTS;class Ai extends Event{constructor(){super(Ai.eventName)}}Ai.eventName="search-context-clear-all-filters";class Di{static build(t){return new Di((t=>o.FtReduxStore.get({name:"ft-search-"+t,initialState:{request:{query:"",filters:[],facets:[],sort:[],paging:{page:1,perPage:20}},liveQuery:""},reducers:xi}))(t.trim()||"context"),Ki.build)}constructor(t,e){this.store=t,this.serviceProvider=e,this.searchDebouncer=new o.Debouncer(100),this.suggestDebouncer=new o.Debouncer(300)}async initService(){return this.service=await this.serviceProvider(),this.store.actions.setLocales((await this.service.getAvailableSearchLocales()).contentLocales),this.launchSearch()}async awaitService(){for(;null==this.service;)await o.delay(5);return this.service}setQuery(t){this.store.actions.setRequestQuery(t),this.store.actions.setLiveQuery(t),this.store.actions.setPageNumber(1),this.launchSearch()}setContentLocale(t){let o=this.store.getState().locales,e=this.store.getState().request.contentLocale;if(t!=e){if(o){const i=t=>o.some((o=>o.lang==t));i(t)||(t=i(e)?e:o[0].lang)}this.store.actions.setRequestContentLocale(t),this.store.actions.setPageNumber(1),this.store.actions.setRequestFilters([]),this.launchSearch()}return t}setPageSize(t){this.store.actions.setPageSize(t),this.launchSearch()}setPageNumber(t){this.store.actions.setPageNumber(t),this.launchSearch()}setSort(t){this.store.actions.setRequestSort(t),this.store.actions.setPageNumber(1),this.launchSearch()}setFilters(t){const o=t.filter((t=>t.values.length>0));this.store.actions.setRequestFilters(o),this.store.actions.setPageNumber(1),o.forEach((t=>{this.facetIds.includes(t.key)||(this.facetIds=[...this.facetIds,t.key])})),this.launchSearch()}setSearchInDocumentTitlesOnly(t){t?(this.store.actions.setRequestVirtualField(Ii.TITLE_ONLY),this.store.actions.setRequestScope(Wi.DOCUMENTS)):(this.store.actions.setRequestVirtualField(Ii.EVERYWHERE),this.store.actions.setRequestScope(Wi.DEFAULT)),this.launchSearch()}get searchInDocumentTitlesOnly(){return Bi(this.store.getState())}clearAllFilters(){this.setFilters([]),this.store.eventBus.dispatchEvent(new Ai)}addFacet(t){this.facetIds=[...this.facetIds,t],this.launchSearch()}replaceFacet(t,o){let e=this.facetIds.filter((o=>o!=t));o&&e.push(o),this.facetIds=e,this.launchSearch()}get facetIds(){return this.store.getState().request.facets.map((t=>t.id))}set facetIds(t){let o=[...new Set(t)].map((t=>({id:t})));this.store.actions.setRequestFacets(o)}setFilter(t,o){let e=this.store.getState().request.filters,i={key:t,values:o,negative:!1},r=[...e.filter((o=>o.key!==t)),i];this.setFilters(r)}setLiveQuery(t){this.store.actions.setLiveQuery(t),this.launchSuggest()}setRequest(t){this.store.actions.setRequest(t),this.store.actions.setLiveQuery(t.query),this.store.actions.setPageNumber(1),this.launchSearch()}async launchSearch(){return await this.awaitService(),this.searchDebouncer.run((()=>this.fetchSearchData()))}async launchSuggest(){await this.awaitService(),this.suggestDebouncer.run((()=>this.fetchSuggestData()))}async fetchSearchData(){var t,e;try{null===(t=this.cancelableSearch)||void 0===t||t.cancel(),this.cancelableSearch=o.cancelable(this.service.launchSearch(this.store.getState().request));const i=await this.cancelableSearch;if(i.paging.currentPage<=1)this.store.actions.setResults(i.results),this.store.actions.setFacets(i.facets),this.store.actions.setSpellcheck(i.spellcheck);else{let t=(null!==(e=this.store.getState().results)&&void 0!==e?e:[]).concat(i.results);this.store.actions.setResults(t)}this.store.actions.setPaging(i.paging)}catch(t){t instanceof o.CanceledPromiseError||!this.errorHandler||this.errorHandler(t)}}async fetchSuggestData(){var t;try{const e=this.store.getState(),i=e.request,r={input:e.liveQuery,filters:i.filters,sort:i.sort,contentLocale:i.contentLocale,scope:i.scope};null===(t=this.cancelableSuggest)||void 0===t||t.cancel(),this.cancelableSuggest=o.cancelable(this.service.launchSuggest(r));let a=await this.cancelableSuggest;this.store.actions.setSuggestResults(a.suggestions)}catch(t){t instanceof o.CanceledPromiseError||!this.errorHandler||this.errorHandler(t)}}}var Zi=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Fi extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Ti=Symbol("registerInterval");class Hi extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ti]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Ti]):this.dispatchEvent(new Fi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=Ti,Zi([i.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}const Pi=vi.build("designedSearchType"),ji={label:"Search scope",documentTitlesOnly:"Search in document titles only"},Mi=e.css`
|
|
1491
|
+
`;var _i=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Gi extends CustomEvent{constructor(t){super("ft-search-load-error",{detail:t})}}class Vi extends CustomEvent{constructor(t){super("ft-search-request-change",{detail:t})}}class qi extends CustomEvent{constructor(t,o,e){super("ft-search-results-change",{detail:{request:t,paging:o,spellcheck:e}})}}class Yi extends o.FtLitElementRedux{get stateManager(){return null==this._stateManager&&(this._stateManager=Di.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0")),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"search")),this._stateManager}constructor(){super(),this.query="",this.pageSize=20,this.searchInDocumentTitlesOnly=!1,this.filters=[],this.sort=[],this.addStore(Xe)}render(){return e.html`
|
|
1492
1492
|
<slot @register-ft-search-component=${this.registerComponent}></slot>
|
|
1493
|
-
`}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new
|
|
1493
|
+
`}update(t){super.update(t),t.has("query")&&void 0!==this.query&&this.stateManager.setQuery(this.query),t.has("contentLocale")&&void 0!==this.contentLocale&&this.stateManager.setContentLocale(this.contentLocale),t.has("session")&&this.session&&this.stateManager.initService(),t.has("filters")&&void 0!==this.filters&&this.stateManager.setFilters(this.filters),t.has("sort")&&void 0!==this.sort&&this.stateManager.setSort(this.sort),t.has("pageSize")&&void 0!==this.pageSize&&this.stateManager.setPageSize(this.pageSize),t.has("searchInDocumentTitlesOnly")&&void 0!==this.searchInDocumentTitlesOnly&&this.stateManager.setSearchInDocumentTitlesOnly(this.searchInDocumentTitlesOnly)}connectedCallback(){super.connectedCallback(),this.stateManager.setQuery(this.query),this.stateManager.setContentLocale(this.contentLocale),this.stateManager.setFilters(this.filters),this.stateManager.setPageSize(this.pageSize),this.stateManager.setSort(this.sort)}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("request")&&this.request&&this.dispatchEvent(new Vi(this.request)),t.has("paging")&&void 0!==this.paging&&this.dispatchEvent(new qi(this.request,this.paging,this.autocorrect))}registerComponent(t){t.stopPropagation();const o=t.composedPath()[0];this.register(o)}register(t){t.setSearchStateManager(this.stateManager)}handleLoadError(t){this.dispatchEvent(new Gi(t))}reloadSavedSearches(){hi.clearMySearches()}}Yi.elementDefinitions={},Yi.styles=Mi,_i([i.property()],Yi.prototype,"query",void 0),_i([i.property()],Yi.prototype,"contentLocale",void 0),_i([i.property({type:Number})],Yi.prototype,"pageSize",void 0),_i([i.property({type:Boolean})],Yi.prototype,"searchInDocumentTitlesOnly",void 0),_i([o.jsonProperty([])],Yi.prototype,"filters",void 0),_i([o.jsonProperty([])],Yi.prototype,"sort",void 0),_i([o.redux({store:"search"})],Yi.prototype,"request",void 0),_i([o.redux({store:"search"})],Yi.prototype,"paging",void 0),_i([o.redux({store:"search",selector:t=>t.spellcheck})],Yi.prototype,"autocorrect",void 0),_i([o.redux({store:Xe.name})],Yi.prototype,"session",void 0),o.customElement("ft-search-context")(Yi);var Xi=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,s=t.length-1;s>=0;s--)(r=t[s])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Qi extends(ui(Hi)){constructor(){super(),this.addI18nContext(Pi,ji)}render(){return e.html`
|
|
1494
1494
|
<ft-filter
|
|
1495
|
-
label=${
|
|
1496
|
-
.options=${[{label:
|
|
1495
|
+
label=${Pi.messages.label()}
|
|
1496
|
+
.options=${[{label:Pi.messages.documentTitlesOnly(),value:t=>{var o;return null===(o=this.stateManager)||void 0===o?void 0:o.setSearchInDocumentTitlesOnly(t)},selected:this.searchInDocumentTitlesOnly}]}
|
|
1497
1497
|
part="filter"
|
|
1498
1498
|
.exportpartsPrefixes=${["filter"]}
|
|
1499
1499
|
multivalued
|
|
1500
1500
|
@change=${this.onSelected}
|
|
1501
1501
|
></ft-filter>
|
|
1502
|
-
`}onSelected(t){var o;null===(o=this.filter)||void 0===o||o.options.forEach((t=>t.value(t.selected)))}}
|
|
1502
|
+
`}onSelected(t){var o;null===(o=this.filter)||void 0===o||o.options.forEach((t=>t.value(t.selected)))}}Qi.elementDefinitions={"ft-filter":_e},Qi.styles=s,Xi([o.redux({selector:Bi})],Qi.prototype,"searchInDocumentTitlesOnly",void 0),Xi([i.query("ft-filter")],Qi.prototype,"filter",void 0),o.customElement("ft-search-type")(Qi),t.FtSearchType=Qi,t.FtSearchTypeCssVariables={},t.searchTypeContext=Pi,t.searchTypeDefaultMessages=ji,t.styles=s}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|