@fluid-topics/ft-search-bar 1.1.81 → 1.1.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-search-bar.light.js +642 -635
- package/build/ft-search-bar.min.js +363 -363
- package/package.json +16 -16
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var pp=Object.create;var zn=Object.defineProperty;var dp=Object.getOwnPropertyDescriptor;var fp=Object.getOwnPropertyNames;var up=Object.getPrototypeOf,hp=Object.prototype.hasOwnProperty;var $o=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var mp=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of fp(e))!hp.call(t,n)&&n!==o&&zn(t,n,{get:()=>e[n],enumerable:!(i=dp(e,n))||i.enumerable});return t};var u=(t,e,o)=>(o=t!=null?pp(up(t)):{},mp(e||!t||!t.__esModule?zn(o,"default",{value:t,enumerable:!0}):o,t));var O=$o((Id,Fn)=>{Fn.exports=ftGlobals.wcUtils});var $=$o((Bd,Mn)=>{Mn.exports=ftGlobals.lit});var Z=$o((Dd,Wn)=>{Wn.exports=ftGlobals.litDecorators});var no=$o((_d,Un)=>{Un.exports=ftGlobals.litRepeat});var st=$o((qm,bl)=>{bl.exports=ftGlobals.litClassMap});var ql=$o((Tg,Zl)=>{Zl.exports=ftGlobals.litUnsafeHTML});var cp=u(O());var G=u($()),V=u(Z()),$r=u(no()),ee=u(O());var Kn=u(O());var jn=u($()),ao=u(Z()),Nr=u(O());var tt;(function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"})(tt||(tt={}));var Hn=u($());var Vn=Hn.css`
|
|
2
2
|
.ft-size-watcher--pixel {
|
|
3
3
|
width: 0;
|
|
4
4
|
height: 0;
|
|
@@ -17,126 +17,126 @@
|
|
|
17
17
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
18
18
|
width: 100%;
|
|
19
19
|
}
|
|
20
|
-
`;var
|
|
20
|
+
`;var Qo=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},vi=class extends CustomEvent{constructor(e,o){super("change",{detail:{size:e,category:o}})}},Ue=class extends Nr.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=tt.S,this.resizeObserver=new ResizeObserver(()=>this.updateSize()),this.debouncer=new Nr.Debouncer}render(){return jn.html`
|
|
21
21
|
<div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
|
|
22
22
|
<div class="ft-size-watcher--watcher"></div>
|
|
23
23
|
</div>
|
|
24
|
-
`}contentAvailableCallback(
|
|
25
|
-
\f\r]`,
|
|
26
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Pi=/'/g,zi=/"/g,Wi=/^(?:script|style|textarea|title)$/i,Mi=o=>(t,...r)=>({_$litType$:o,strings:t,values:r}),Ui=Mi(1),Hi=Mi(2),ko=Symbol.for("lit-noChange"),ut=Symbol.for("lit-nothing"),Fi=new WeakMap,He=Ve.createTreeWalker(Ve,129);function Vi(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Bi!==void 0?Bi.createHTML(t):t}var bs=(o,t)=>{let r=o.length-1,i=[],a,n=t===2?"<svg>":"",l=Ro;for(let c=0;c<r;c++){let f=o[c],h,v,x=-1,_=0;for(;_<f.length&&(l.lastIndex=_,v=l.exec(f),v!==null);)_=l.lastIndex,l===Ro?v[1]==="!--"?l=Ai:v[1]!==void 0?l=Ii:v[2]!==void 0?(Wi.test(v[2])&&(a=RegExp("</"+v[2],"g")),l=Ue):v[3]!==void 0&&(l=Ue):l===Ue?v[0]===">"?(l=a??Ro,x=-1):v[1]===void 0?x=-2:(x=l.lastIndex-v[2].length,h=v[1],l=v[3]===void 0?Ue:v[3]==='"'?zi:Pi):l===zi||l===Pi?l=Ue:l===Ai||l===Ii?l=Ro:(l=Ue,a=void 0);let B=l===Ue&&o[c+1].startsWith("/>")?" ":"";n+=l===Ro?f+ms:x>=0?(i.push(h),f.slice(0,x)+Di+f.slice(x)+ke+B):f+ke+(x===-2?c:B)}return[Vi(o,n+(o[r]||"<?>")+(t===2?"</svg>":"")),i]},No=class o{constructor({strings:t,_$litType$:r},i){let a;this.parts=[];let n=0,l=0,c=t.length-1,f=this.parts,[h,v]=bs(t,r);if(this.el=o.createElement(h,i),He.currentNode=this.el.content,r===2){let x=this.el.content.firstChild;x.replaceWith(...x.childNodes)}for(;(a=He.nextNode())!==null&&f.length<c;){if(a.nodeType===1){if(a.hasAttributes())for(let x of a.getAttributeNames())if(x.endsWith(Di)){let _=v[l++],B=a.getAttribute(x).split(ke),M=/([.?@])?(.*)/.exec(_);f.push({type:1,index:n,name:M[2],strings:B,ctor:M[1]==="."?Ar:M[1]==="?"?Ir:M[1]==="@"?Pr:no}),a.removeAttribute(x)}else x.startsWith(ke)&&(f.push({type:6,index:n}),a.removeAttribute(x));if(Wi.test(a.tagName)){let x=a.textContent.split(ke),_=x.length-1;if(_>0){a.textContent=Xo?Xo.emptyScript:"";for(let B=0;B<_;B++)a.append(x[B],Jo()),He.nextNode(),f.push({type:2,index:++n});a.append(x[_],Jo())}}}else if(a.nodeType===8)if(a.data===_i)f.push({type:2,index:n});else{let x=-1;for(;(x=a.data.indexOf(ke,x+1))!==-1;)f.push({type:7,index:n}),x+=ke.length-1}n++}}static createElement(t,r){let i=Ve.createElement("template");return i.innerHTML=t,i}};function ao(o,t,r=o,i){if(t===ko)return t;let a=i!==void 0?r._$Co?.[i]:r._$Cl,n=Lo(t)?void 0:t._$litDirective$;return a?.constructor!==n&&(a?._$AO?.(!1),n===void 0?a=void 0:(a=new n(o),a._$AT(o,r,i)),i!==void 0?(r._$Co??=[])[i]=a:r._$Cl=a),a!==void 0&&(t=ao(o,a._$AS(o,t.values),a,i)),t}var Br=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,a=(t?.creationScope??Ve).importNode(r,!0);He.currentNode=a;let n=He.nextNode(),l=0,c=0,f=i[0];for(;f!==void 0;){if(l===f.index){let h;f.type===2?h=new Qo(n,n.nextSibling,this,t):f.type===1?h=new f.ctor(n,f.name,f.strings,this,t):f.type===6&&(h=new zr(n,this,t)),this._$AV.push(h),f=i[++c]}l!==f?.index&&(n=He.nextNode(),l++)}return He.currentNode=Ve,a}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Qo=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,a){this.type=2,this._$AH=ut,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=ao(this,t,r),Lo(t)?t===ut||t==null||t===""?(this._$AH!==ut&&this._$AR(),this._$AH=ut):t!==this._$AH&&t!==ko&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):gs(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!==ut&&Lo(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ve.createTextNode(t)),this._$AH=t}g(t){let{values:r,_$litType$:i}=t,a=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=No.createElement(Vi(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===a)this._$AH.p(r);else{let n=new Br(a,this),l=n.u(this.options);n.p(r),this.$(l),this._$AH=n}}_$AC(t){let r=Fi.get(t.strings);return r===void 0&&Fi.set(t.strings,r=new No(t)),r}T(t){Ti(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,a=0;for(let n of t)a===r.length?r.push(i=new o(this.k(Jo()),this.k(Jo()),this,this.options)):i=r[a],i._$AI(n),a++;a<r.length&&(this._$AR(i&&i._$AB.nextSibling,a),r.length=a)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let i=t.nextSibling;t.remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},no=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,a,n){this.type=1,this._$AH=ut,this._$AN=void 0,this.element=t,this.name=r,this._$AM=a,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ut}_$AI(t,r=this,i,a){let n=this.strings,l=!1;if(n===void 0)t=ao(this,t,r,0),l=!Lo(t)||t!==this._$AH&&t!==ko,l&&(this._$AH=t);else{let c=t,f,h;for(t=n[0],f=0;f<n.length-1;f++)h=ao(this,c[i+f],r,f),h===ko&&(h=this._$AH[f]),l||=!Lo(h)||h!==this._$AH[f],h===ut?t=ut:t!==ut&&(t+=(h??"")+n[f+1]),this._$AH[f]=h}l&&!a&&this.O(t)}O(t){t===ut?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ar=class extends no{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ut?void 0:t}},Ir=class extends no{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ut)}},Pr=class extends no{constructor(t,r,i,a,n){super(t,r,i,a,n),this.type=5}_$AI(t,r=this){if((t=ao(this,t,r,0)??ut)===ko)return;let i=this._$AH,a=t===ut&&i!==ut||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==ut&&(i===ut||a);a&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},zr=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ao(this,t)}};var ys=Fr.litHtmlPolyfillSupport;ys?.(No,Qo),(Fr.litHtmlVersions??=[]).push("3.1.0");var Zi=Symbol.for(""),xs=o=>{if(o?.r===Zi)return o?._$litStatic$},Dr=o=>({_$litStatic$:o,r:Zi});var Gi=new Map,Ki=o=>(t,...r)=>{let i=r.length,a,n,l=[],c=[],f,h=0,v=!1;for(;h<i;){for(f=t[h];h<i&&(n=r[h],(a=xs(n))!==void 0);)f+=a+t[++h],v=!0;h!==i&&c.push(n),l.push(f),h++}if(h===i&&l.push(t[i]),v){let x=l.join("$$lit$$");(t=Gi.get(x))===void 0&&(l.raw=l,Gi.set(x,t=l)),r=c}return o(t,...r)},_r=Ki(Ui),cc=Ki(Hi);var Tr=d(X()),Pa=d(g());var Ge;(function(o){o.title="title",o.title_dense="title-dense",o.subtitle1="subtitle1",o.subtitle2="subtitle2",o.body1="body1",o.body2="body2",o.caption="caption",o.breadcrumb="breadcrumb",o.overline="overline",o.button="button",o.display="display",o.title1="title-1",o.title2="title-2",o.title3="title-3",o.body1regular="body-1-regular",o.body1medium="body-1-medium",o.body1semibold="body-1-semibold",o.body2regular="body-2-regular",o.body2medium="body-2-medium",o.body2semibold="body-2-semibold",o.label1medium="label-1-medium",o.label1semibold="label-1-semibold",o.label1bold="label-1-bold",o.label2medium="label-2-medium",o.label2semibold="label-2-semibold",o.label2bold="label-2-bold",o.caption1medium="caption-1-medium",o.caption1semibold="caption-1-semibold",o.caption1bold="caption-1-bold",o.caption2medium="caption-2-medium",o.caption2semibold="caption-2-semibold",o.caption2bold="caption-2-bold"})(Ge||(Ge={}));var jt=d(S()),m=d(g());var be=d(S(),1),Ne=o=>typeof o=="string"?(0,be.unsafeCSS)(o):o,e=class{static create(t,r,i,a){let n=c=>Ne(c??a),l=be.css`var(${Ne(t)}, ${n(a)})`;return l.name=t,l.description=r,l.category=i,l.defaultValue=a,l.defaultCssValue=n,l.get=c=>be.css`var(${Ne(t)}, ${n(c)})`,l.breadcrumb=()=>[],l.lastResortDefaultValue=()=>a,l}static extend(t,r,i,a){let n=c=>i.get(c??a),l=be.css`var(${Ne(t)}, ${n(a)})`;return l.name=t,l.description=r,l.category=i.category,l.fallbackVariable=i,l.defaultValue=a,l.defaultCssValue=n,l.get=c=>be.css`var(${Ne(t)}, ${n(c)})`,l.breadcrumb=()=>[i.name,...i.breadcrumb()],l.lastResortDefaultValue=()=>a??i.lastResortDefaultValue(),l}static external(t,r){let i=n=>t.fallbackVariable?t.fallbackVariable.get(n??t.defaultValue):Ne(n??t.lastResortDefaultValue()),a=be.css`var(${Ne(t.name)}, ${i(t.defaultValue)})`;return a.name=t.name,a.category=t.category,a.fallbackVariable=t.fallbackVariable,a.defaultValue=t.defaultValue,a.context=r,a.defaultCssValue=i,a.get=n=>be.css`var(${Ne(t.name)}, ${i(n)})`,a.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],a.lastResortDefaultValue=()=>t.lastResortDefaultValue(),a}};var s={colorWhite:e.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:e.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:e.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:e.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:e.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:e.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:e.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:e.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:e.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:e.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:e.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:e.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:e.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:e.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:e.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:e.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:e.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:e.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:e.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:e.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:e.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:e.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:e.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:e.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:e.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:e.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:e.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:e.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:e.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:e.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:e.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:e.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:e.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:e.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:e.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:e.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:e.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:e.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:e.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:e.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:e.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:e.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:e.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:e.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:e.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:e.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:e.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:e.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:e.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:e.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:e.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:e.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:e.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:e.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:e.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:e.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:e.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:e.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:e.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:e.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:e.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:e.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:e.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:e.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:e.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:e.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:e.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:e.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:e.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:e.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:e.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:e.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:e.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:e.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:e.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:e.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:e.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:e.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:e.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:e.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:e.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:e.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:e.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:e.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:e.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:e.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:e.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:e.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:e.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:e.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:e.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:e.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:e.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:e.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:e.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:e.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:e.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:e.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:e.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:e.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:e.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:e.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:e.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:e.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:e.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:e.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:e.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:e.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:e.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:e.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:e.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:e.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:e.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:e.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:e.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:e.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:e.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:e.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:e.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:e.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:e.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:e.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:e.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:e.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:e.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:e.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:e.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:e.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:e.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:e.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:e.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:e.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:e.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:e.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:e.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:e.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:e.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:e.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:e.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:e.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:e.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:e.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:e.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:e.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:e.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:e.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:e.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:e.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:e.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:e.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:e.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:e.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:e.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:e.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:e.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:e.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:e.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:e.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:e.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:e.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:e.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:e.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:e.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:e.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:e.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:e.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:e.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:e.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:e.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:e.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:e.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:e.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:e.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:e.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:e.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:e.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:e.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:e.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:e.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:e.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:e.create("--ft-opacity-0","","NUMBER","0"),opacity8:e.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:e.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:e.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:e.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:e.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:e.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:e.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:e.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:e.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:e.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:e.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:e.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:e.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:e.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},ji={fontFamily:e.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:e.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:e.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:e.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-display-textCase","","UNKNOWN","none")},qi={fontFamily:e.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:e.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:e.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:e.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Yi={fontFamily:e.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:e.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:e.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:e.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Xi={fontFamily:e.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:e.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:e.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:e.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Ji={fontFamily:e.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:e.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:e.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Qi={fontFamily:e.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:e.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},ta={fontFamily:e.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:e.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},ea={fontFamily:e.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:e.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},oa={fontFamily:e.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},vs={fontFamily:e.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:e.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:e.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},ra={fontFamily:e.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:e.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:e.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:e.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},ia={fontFamily:e.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},aa={fontFamily:e.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},na={fontFamily:e.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:e.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:e.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},la={fontFamily:e.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},sa={fontFamily:e.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},ca={fontFamily:e.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:e.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:e.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:e.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:e.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},pa={fontFamily:e.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},da={fontFamily:e.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},fa={fontFamily:e.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:e.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:e.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ha={fontFamily:e.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:e.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},ua={fontFamily:e.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:e.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},ma={fontFamily:e.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:e.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:e.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},ga={fontFamily:e.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:e.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:e.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},ba={fontFamily:e.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:e.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:e.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},ya={fontFamily:e.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:e.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:e.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:e.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:e.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:e.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:e.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:e.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:e.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},tr={display:ji,"title-1":qi,"title-2":Yi,"title-3":Xi,"body-1-regular":Ji,"body-1-medium":Qi,"body-1-semibold":ta,"body-2-regular":ea,"body-2-medium":oa,"body-2-medium-underline":vs,"body-2-semibold":ra,"label-1-medium":ia,"label-1-semibold":aa,"label-1-bold":na,"label-2-medium":la,"label-2-semibold":sa,"label-2-bold":ca,"caption-1-medium":pa,"caption-1-semibold":da,"caption-1-bold":fa,"caption-2-medium":ha,"caption-2-semibold":ua,"caption-2-bold":ma,"caption-3-medium":ga,"caption-3-semibold":ba,"caption-3-bold":ya};var p={backgroundActionPrimary:e.extend("--ft-background-action-primary","Used as backgorund of primary action components.",s.colorBrand0),backgroundErrorSubtle:e.extend("--ft-background-error-subtle","Used as background of subtle error components.",s.colorRed10),backgroundInfoSubtle:e.extend("--ft-background-info-subtle","Used as background of subtle information components.",s.colorCyan10),backgroundWarningSubtle:e.extend("--ft-background-warning-subtle","Used as background of subtle information components.",s.colorOrange10),backgroundSuccessSubtle:e.extend("--ft-background-success-subtle","Used as background of subtle success components.",s.colorGreen10),backgroundGlobalSurface:e.extend("--ft-background-global-surface","Used as app background.",s.colorWhite),backgroundGlobalOnSurface:e.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",s.colorGray10),backgroundGlobalOnSurfaceDark:e.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",s.colorGray30),contentActionPrimary:e.extend("--ft-content-action-primary","Used on label of primary action on light surface.",s.colorBrand0),contentWarningPrimary:e.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",s.colorOrange200),contentWarningIconOnly:e.extend("--ft-content-warning-icon-only","Used on warning status icons alone",s.colorOrange0),contentErrorPrimary:e.extend("--ft-content-error-primary","Used on label of error messages on light surface.",s.colorRed0),contentErrorIconOnly:e.extend("--ft-content-error-icon-only","Used on error status icons alone",s.colorRed70),contentInfoPrimary:e.extend("--ft-content-info-primary","Used on label of information messages on light surface.",s.colorCyan200),contentInfoIconOnly:e.extend("--ft-content-info-icon-only","Used on info status icons alone",s.colorCyan0),contentSuccessPrimary:e.extend("--ft-content-success-primary","Used on label of success messages on light surface.",s.colorGreen200),contentSuccessIconOnly:e.extend("--ft-content-success-icon-only","Used on success status icons alone",s.colorGreen0),contentGlobalPrimary:e.extend("--ft-content-global-primary","Used for main content on the page.",s.colorGray500),contentGlobalSecondary:e.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
27
|
-
Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",s.colorGray0),contentGlobalOnColor:e.extend("--ft-content-global-on-color","Used for content on a dominant color.",s.colorWhite),borderActionPrimary:e.extend("--ft-border-action-primary","Used as border for primary action components.",s.colorBrand0),borderActionFocusRing:e.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",s.colorCyan0),borderWarningPrimary:e.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",s.colorOrange200),borderWarningSubtle:e.extend("--ft-border-warning-subtle","Used as border for warning components.",s.colorOrange30),borderSuccessPrimary:e.extend("--ft-border-success-primary","Used as border for success buttons.",s.colorGreen200),borderSuccessSubtle:e.extend("--ft-border-success-subtle","Used as border for success components.",s.colorGreen30),borderErrorPrimary:e.extend("--ft-border-error-primary","Used as border for text fields in error states.",s.colorRed0),borderErrorSubtle:e.extend("--ft-border-error-subtle","Used as border for error components.",s.colorRed30),borderInfoPrimary:e.extend("--ft-border-info-primary","Used as border for buttons in info color.",s.colorCyan200),borderInfoSubtle:e.extend("--ft-border-info-subtle","Used as border for information components.",s.colorCyan30),borderGlobalPrimary:e.extend("--ft-border-global-primary","Used as border for element like input.",s.colorGray50),borderGlobalSubtle:e.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",s.colorGray30),borderInputPrimary:e.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",s.colorGray80)};var b={largeHeight:e.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:e.extend("--ft-button-large-horizontal-padding","",s.spacing4),largeGap:e.extend("--ft-button-large-gap","",s.spacing2),largeBorderRadius:e.extend("--ft-button-large-border-radius","",s.borderRadiusS),largeIconSize:e.extend("--ft-button-large-icon-size","",s.iconSize3),largeBorderWidth:e.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:e.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:e.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:e.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:e.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:e.extend("--ft-button-medium-horizontal-padding","",s.spacing3),mediumGap:e.extend("--ft-button-medium-gap","",s.spacing2),mediumBorderRadius:e.extend("--ft-button-medium-border-radius","",s.borderRadiusS),mediumIconSize:e.extend("--ft-button-medium-icon-size","",s.iconSize2),mediumBorderWidth:e.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:e.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:e.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:e.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:e.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:e.extend("--ft-button-small-horizontal-padding","",s.spacing2),smallGap:e.extend("--ft-button-small-gap","",s.spacing1),smallBorderRadius:e.extend("--ft-button-small-border-radius","",s.borderRadiusS),smallIconSize:e.extend("--ft-button-small-icon-size","",s.iconSize1),smallBorderWidth:e.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:e.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:e.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:e.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:e.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:e.extend("--ft-button-x-small-icon-size","",s.iconSize1),xSmallFocusOutlineOffset:e.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:e.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:e.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:e.extend("--ft-button-round-border-radius","",s.borderRadiusPill),primaryBackgroundColor:e.extend("--ft-button-primary-background-color","",p.backgroundActionPrimary),primaryColor:e.extend("--ft-button-primary-color","",p.contentGlobalOnColor),primaryIconColor:e.extend("--ft-button-primary-icon-color","",p.contentGlobalOnColor),primaryStateLayerColor:e.extend("--ft-button-primary-state-layer-color","",p.contentGlobalOnColor),primaryHoverStateLayerOpacity:e.extend("--ft-button-primary-hover-state-layer-opacity","",s.opacity16),primaryFocusStateLayerOpacity:e.extend("--ft-button-primary-focus-state-layer-opacity","",s.opacity16),primaryActiveStateLayerOpacity:e.extend("--ft-button-primary-active-state-layer-opacity","",s.opacity24),primaryDisabledComponentOpacity:e.extend("--ft-button-primary-disabled-component-opacity","",s.opacity40),focusFocusRingColor:e.extend("--ft-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBackgroundColor:e.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:e.extend("--ft-button-tertiary-color","",p.contentActionPrimary),tertiaryIconColor:e.extend("--ft-button-tertiary-icon-color","",p.contentActionPrimary),tertiaryStateLayerColor:e.extend("--ft-button-tertiary-state-layer-color","",p.contentActionPrimary),tertiaryHoverStateLayerOpacity:e.extend("--ft-button-tertiary-hover-state-layer-opacity","",s.opacity8),tertiaryFocusStateLayerOpacity:e.extend("--ft-button-tertiary-focus-state-layer-opacity","",s.opacity8),tertiaryActiveStateLayerOpacity:e.extend("--ft-button-tertiary-active-state-layer-opacity","",s.opacity16),tertiaryDisabledComponentOpacity:e.extend("--ft-button-tertiary-disabled-component-opacity","",s.opacity40),secondaryBackgroundColor:e.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:e.extend("--ft-button-secondary-color","",p.contentActionPrimary),secondaryIconColor:e.extend("--ft-button-secondary-icon-color","",p.contentActionPrimary),secondaryStateLayerColor:e.extend("--ft-button-secondary-state-layer-color","",p.contentActionPrimary),secondaryHoverStateLayerOpacity:e.extend("--ft-button-secondary-hover-state-layer-opacity","",s.opacity8),secondaryFocusStateLayerOpacity:e.extend("--ft-button-secondary-focus-state-layer-opacity","",s.opacity8),secondaryActiveStateLayerOpacity:e.extend("--ft-button-secondary-active-state-layer-opacity","",s.opacity16),secondaryDisabledComponentOpacity:e.extend("--ft-button-secondary-disabled-component-opacity","",s.opacity40),secondaryBorderColor:e.extend("--ft-button-secondary-border-color","",p.borderActionPrimary),neutralBackgroundColor:e.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:e.extend("--ft-button-neutral-icon-color","",p.contentGlobalSecondary),neutralColor:e.extend("--ft-button-neutral-color","",p.contentGlobalSecondary),neutralStateLayerColor:e.extend("--ft-button-neutral-state-layer-color","",p.contentGlobalSecondary),neutralHoverStateLayerOpacity:e.extend("--ft-button-neutral-hover-state-layer-opacity","",s.opacity8),neutralFocusStateLayerOpacity:e.extend("--ft-button-neutral-focus-state-layer-opacity","",s.opacity8),neutralActiveStateLayerOpacity:e.extend("--ft-button-neutral-active-state-layer-opacity","",s.opacity16),neutralDisabledComponentOpacity:e.extend("--ft-button-neutral-disabled-component-opacity","",s.opacity40)};var Rc={largeMinHeight:e.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:e.extend("--ft-chip-large-horizontal-padding","",s.spacing3),largeButtonRightPadding:e.extend("--ft-chip-large-button-right-padding","",s.spacing1),largeGap:e.extend("--ft-chip-large-gap","",s.spacing1),largeFocusOutlineOffset:e.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:e.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:e.extend("--ft-chip-large-border-radius","",s.borderRadiusPill),largeBorderWidth:e.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:e.extend("--ft-chip-large-icon-size","",s.iconSize3),mediumMinHeight:e.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:e.extend("--ft-chip-medium-horizontal-padding","",s.spacing2),mediumButtonRightPadding:e.extend("--ft-chip-medium-button-right-padding","",s.spacing05),mediumGap:e.extend("--ft-chip-medium-gap","",s.spacing1),mediumFocusOutlineOffset:e.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:e.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:e.extend("--ft-chip-medium-border-radius","",s.borderRadiusPill),mediumBorderWidth:e.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:e.extend("--ft-chip-medium-icon-size","",s.iconSize2),smallMinHeight:e.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:e.extend("--ft-chip-small-horizontal-padding","",s.spacing1),smallButtonRightPadding:e.extend("--ft-chip-small-button-right-padding","",s.spacing05),smallGap:e.extend("--ft-chip-small-gap","",s.spacing1),smallFocusOutlineOffset:e.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:e.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:e.extend("--ft-chip-small-border-radius","",s.borderRadiusPill),smallBorderWidth:e.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:e.extend("--ft-chip-small-icon-size","",s.iconSize1),neutralBackgroundColor:e.extend("--ft-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:e.extend("--ft-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:e.extend("--ft-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:e.extend("--ft-chip-neutral-border-color","",p.borderGlobalSubtle),infoBackgroundColor:e.extend("--ft-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:e.extend("--ft-chip-info-color","",p.contentInfoPrimary),infoIconColor:e.extend("--ft-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:e.extend("--ft-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:e.extend("--ft-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:e.extend("--ft-chip-success-color","",p.contentSuccessPrimary),successIconColor:e.extend("--ft-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:e.extend("--ft-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:e.extend("--ft-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:e.extend("--ft-chip-warning-color","",p.contentWarningPrimary),warningIconColor:e.extend("--ft-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:e.extend("--ft-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:e.extend("--ft-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:e.extend("--ft-chip-error-color","",p.contentErrorPrimary),errorIconColor:e.extend("--ft-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:e.extend("--ft-chip-error-border-color","",p.borderErrorSubtle)};var Ac={focusOpacity:e.extend("--ft-link-focus-opacity","",s.opacity80),focusFocusRingColor:e.extend("--ft-link-focus-focus-ring-color","",p.borderActionFocusRing),brandColor:e.extend("--ft-link-brand-color","",p.contentActionPrimary),infoColor:e.extend("--ft-link-info-color","",p.contentInfoPrimary)};var Dc={iconSize:e.extend("--ft-banner-icon-size","",s.iconSize5),borderWidth:e.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:e.extend("--ft-banner-left-padding","",s.spacing6),rightPadding:e.extend("--ft-banner-right-padding","",s.spacing6),verticalPadding:e.extend("--ft-banner-vertical-padding","",s.spacing6),horizontalSideGap:e.extend("--ft-banner-horizontal-side-gap","",s.spacing6),horizontalMobileGap:e.extend("--ft-banner-horizontal-mobile-gap","",s.spacing4),verticalMobileGap:e.extend("--ft-banner-vertical-mobile-gap","",s.spacing6),horizontalMiddleGap:e.extend("--ft-banner-horizontal-middle-gap","",s.spacing20),infoBackgroundColor:e.extend("--ft-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:e.extend("--ft-banner-info-color","",p.contentInfoPrimary),infoIconColor:e.extend("--ft-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:e.extend("--ft-banner-info-border-color","",p.borderInfoSubtle)};var Uc={horizontalPadding:e.extend("--ft-badge-horizontal-padding","",s.spacing1),verticalPadding:e.extend("--ft-badge-vertical-padding","",s.spacing1),borderRadius:e.extend("--ft-badge-border-radius","",s.borderRadiusPill),color:e.extend("--ft-badge-color","",p.contentGlobalOnColor),backgroundColor:e.extend("--ft-badge-background-color","",p.contentActionPrimary)};var Kc={horizontalGap:e.extend("--ft-breadcrumb-horizontal-gap","",s.spacing1),verticalGap:e.extend("--ft-breadcrumb-vertical-gap","",s.spacing2),currentColor:e.extend("--ft-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:e.extend("--ft-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:e.extend("--ft-breadcrumb-icon-color","",p.contentGlobalSubtle)};var Jc={horizontalPadding:e.extend("--ft-page-header-horizontal-padding","",s.spacing12),horizontalGap:e.extend("--ft-page-header-horizontal-gap","",s.spacing4),verticalGap:e.extend("--ft-page-header-vertical-gap","",s.spacing2),classicVerticalPadding:e.extend("--ft-page-header-classic-vertical-padding","",s.spacing6),multilineVerticalPadding:e.extend("--ft-page-header-multiline-vertical-padding","",s.spacing4),inlineVerticalPadding:e.extend("--ft-page-header-inline-vertical-padding","",s.spacing2),backgroundColor:e.extend("--ft-page-header-background-color","",s.colorWhite),bottomBorderColor:e.extend("--ft-page-header-bottom-border-color","",p.borderGlobalSubtle),titleColor:e.extend("--ft-page-header-title-color","",p.contentGlobalPrimary),subtitleColor:e.extend("--ft-page-header-subtitle-color","",p.contentGlobalSecondary)};var rp={smallContainerWidth:e.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:e.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:e.extend("--ft-modal-overlay-background-color","",s.colorGray700),overlayOpacity:e.extend("--ft-modal-overlay-opacity","",s.opacity40),shadow:e.extend("--ft-modal-shadow","",s.shadowElevation03),bodyBackgroundColor:e.extend("--ft-modal-body-background-color","",s.colorWhite),bodyColor:e.extend("--ft-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:e.extend("--ft-modal-body-horizontal-padding","",s.spacing6),bodyVerticalPadding:e.extend("--ft-modal-body-vertical-padding","",s.spacing6),bodyVerticalGap:e.extend("--ft-modal-body-vertical-gap","",s.spacing6),containerMargin:e.extend("--ft-modal-container-margin","",s.spacing3),headerBackgroundColor:e.extend("--ft-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:e.extend("--ft-modal-header-border-color","",p.borderGlobalSubtle),headerColor:e.extend("--ft-modal-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:e.extend("--ft-modal-header-trailing-icon-color","",p.contentGlobalSecondary),headerVerticalPadding:e.extend("--ft-modal-header-vertical-padding","",s.spacing1),headerRightPadding:e.extend("--ft-modal-header-right-padding","",s.spacing1),headerLeftPadding:e.extend("--ft-modal-header-left-padding","",s.spacing6),headerGap:e.extend("--ft-modal-header-gap","",s.spacing2),headerBorderBottom:e.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:e.extend("--ft-modal-border-radius","",s.borderRadiusM)};var sp={overlayOpacity:e.extend("--ft-drawer-overlay-opacity","",s.opacity40),shadow:e.extend("--ft-drawer-shadow","",s.shadowElevation03),bodyColor:e.extend("--ft-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:e.extend("--ft-drawer-body-horizontal-padding","",s.spacing6),bodyVerticalPadding:e.extend("--ft-drawer-body-vertical-padding","",s.spacing6),bodyGap:e.extend("--ft-drawer-body-gap","",s.spacing6),bodyBackgroundColor:e.extend("--ft-drawer-body-background-color","",s.colorWhite),headerBackgroundColor:e.extend("--ft-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:e.extend("--ft-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:e.extend("--ft-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:e.extend("--ft-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:e.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:e.extend("--ft-drawer-header-horizontal-padding","",s.spacing2),headerBorderWidth:e.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:e.extend("--ft-drawer-header-gap","",s.spacing3),buttonsBarBackgroundColor:e.extend("--ft-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:e.extend("--ft-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:e.extend("--ft-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:e.extend("--ft-drawer-buttons-bar-horizontal-padding","",s.spacing4),buttonsBarVerticalPadding:e.extend("--ft-drawer-buttons-bar-vertical-padding","",s.spacing4),buttonsBarGap:e.extend("--ft-drawer-buttons-bar-gap","",s.spacing3),buttonsBarBorderWidth:e.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:e.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:e.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:e.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:e.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:e.extend("--ft-drawer-overlay-background-color","",s.colorGray700)};var hp={fieldHorizontalPadding:e.extend("--ft-text-input-field-horizontal-padding","",s.spacing4),fieldHorizontalGap:e.extend("--ft-text-input-field-horizontal-gap","",s.spacing3),fieldVerticalGap:e.extend("--ft-text-input-field-vertical-gap","",s.spacing05),fieldIconSize:e.extend("--ft-text-input-field-icon-size","",s.iconSize3),fieldHeight:e.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:e.extend("--ft-text-input-helper-horizontal-padding","",s.spacing4),helperHorizontalGap:e.extend("--ft-text-input-helper-horizontal-gap","",s.spacing1),helperIconSize:e.extend("--ft-text-input-helper-icon-size","",s.iconSize2),borderRadius:e.extend("--ft-text-input-border-radius","",s.borderRadiusM),backgroundColor:e.extend("--ft-text-input-background-color","",s.colorWhite),contentValueColor:e.extend("--ft-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:e.extend("--ft-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:e.extend("--ft-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:e.extend("--ft-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:e.extend("--ft-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:e.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:e.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:e.extend("--ft-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:e.extend("--ft-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:e.extend("--ft-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderWidth:e.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:e.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:e.extend("--ft-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:e.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:e.extend("--ft-text-input-disabled-component-opacity","",s.opacity40)};var yp={backgroundColor:e.extend("--ft-text-area-background-color","",s.colorWhite),contentValueColor:e.extend("--ft-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:e.extend("--ft-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:e.extend("--ft-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:e.extend("--ft-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:e.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:e.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:e.extend("--ft-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:e.extend("--ft-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:e.extend("--ft-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:e.extend("--ft-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:e.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:e.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:e.extend("--ft-text-area-disabled-component-opacity","",s.opacity40),fieldHorizontalLeftPadding:e.extend("--ft-text-area-field-horizontal-left-padding","",s.spacing4),fieldHorizontalGap:e.extend("--ft-text-area-field-horizontal-gap","",s.spacing3),fieldVerticalGap:e.extend("--ft-text-area-field-vertical-gap","",s.spacing05),fieldMinHeight:e.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:e.extend("--ft-text-area-helper-horizontal-padding","",s.spacing4),helperHorizontalGap:e.extend("--ft-text-area-helper-horizontal-gap","",s.spacing1),helperIconSize:e.extend("--ft-text-area-helper-icon-size","",s.iconSize2),borderRadius:e.extend("--ft-text-area-border-radius","",s.borderRadiusM)};var Cp={height:e.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:e.extend("--ft-floating-menu-horizontal-padding","",s.spacing4),offIconColor:e.extend("--ft-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:e.extend("--ft-floating-menu-off-color","",p.contentGlobalPrimary),onColor:e.extend("--ft-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:e.extend("--ft-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:e.extend("--ft-floating-menu-gap","",s.spacing3),focusFocusRingColor:e.extend("--ft-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:e.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:e.extend("--ft-floating-menu-focus-state-layer-opacity","",s.opacity8),hoverStateLayerOpacity:e.extend("--ft-floating-menu-hover-state-layer-opacity","",s.opacity8),activeStateLayerOpacity:e.extend("--ft-floating-menu-active-state-layer-opacity","",s.opacity16),disabledComponentOpacity:e.extend("--ft-floating-menu-disabled-component-opacity","",s.opacity40),iconSize:e.extend("--ft-floating-menu-icon-size","",s.iconSize3),backgroundColor:e.extend("--ft-floating-menu-background-color","",p.backgroundGlobalOnSurface)};var Lp={fieldHorizontalPadding:e.extend("--ft-combobox-single-select-field-horizontal-padding","",s.spacing4),fieldHorizontalGap:e.extend("--ft-combobox-single-select-field-horizontal-gap","",s.spacing3),fieldVerticalGap:e.extend("--ft-combobox-single-select-field-vertical-gap","",s.spacing05),fieldIconSize:e.extend("--ft-combobox-single-select-field-icon-size","",s.iconSize3),fieldHeight:e.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:e.extend("--ft-combobox-single-select-helper-horizontal-padding","",s.spacing4),helperHorizontalGap:e.extend("--ft-combobox-single-select-helper-horizontal-gap","",s.spacing1),helperVerticalGap:e.extend("--ft-combobox-single-select-helper-vertical-gap","",s.spacing1),helperIconSize:e.extend("--ft-combobox-single-select-helper-icon-size","",s.iconSize2),menuVerticalGap:e.extend("--ft-combobox-single-select-menu-vertical-gap","",s.spacing2),borderRadius:e.extend("--ft-combobox-single-select-border-radius","",s.borderRadiusM),backgroundColor:e.extend("--ft-combobox-single-select-background-color","",s.colorWhite),labelColor:e.extend("--ft-combobox-single-select-label-color","",p.contentGlobalSubtle),contentValueColor:e.extend("--ft-combobox-single-select-content-value-color","",p.contentGlobalPrimary),trailingIconColor:e.extend("--ft-combobox-single-select-trailing-icon-color","",p.contentGlobalSubtle),defaultBorderColor:e.extend("--ft-combobox-single-select-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:e.extend("--ft-combobox-single-select-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:e.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:e.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:e.extend("--ft-combobox-single-select-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:e.extend("--ft-combobox-single-select-error-helper-text-color","",p.contentErrorPrimary),warningBorderWidth:e.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:e.extend("--ft-combobox-single-select-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:e.extend("--ft-combobox-single-select-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:e.extend("--ft-combobox-single-select-warning-helper-icon-color","",p.contentWarningIconOnly),focusOutlineWidth:e.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:e.extend("--ft-combobox-single-select-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:e.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:e.extend("--ft-combobox-single-select-disabled-component-opacity","",s.opacity40)};var Ip={backgroundColor:e.extend("--ft-combobox-multi-select-background-color","",s.colorWhite),labelColor:e.extend("--ft-combobox-multi-select-label-color","",p.contentGlobalSubtle),trailingIconColor:e.extend("--ft-combobox-multi-select-trailing-icon-color","",p.contentGlobalSubtle),defaultBorderColor:e.extend("--ft-combobox-multi-select-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:e.extend("--ft-combobox-multi-select-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:e.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:e.extend("--ft-combobox-multi-select-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:e.extend("--ft-combobox-multi-select-error-helper-text-color","",p.contentErrorPrimary),errorHelperIcon:e.extend("--ft-combobox-multi-select-error-helper-icon","",p.contentErrorIconOnly),errorBorderWidth:e.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:e.extend("--ft-combobox-multi-select-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:e.extend("--ft-combobox-multi-select-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:e.extend("--ft-combobox-multi-select-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:e.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:e.extend("--ft-combobox-multi-select-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:e.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:e.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:e.extend("--ft-combobox-multi-select-disabled-component-opacity","",s.opacity40),helperHorizontalPadding:e.extend("--ft-combobox-multi-select-helper-horizontal-padding","",s.spacing4),helperHorizontalGap:e.extend("--ft-combobox-multi-select-helper-horizontal-gap","",s.spacing1),helperVerticalGap:e.extend("--ft-combobox-multi-select-helper-vertical-gap","",s.spacing1),helperIconSize:e.extend("--ft-combobox-multi-select-helper-icon-size","",s.iconSize2),fieldHorizontalPadding:e.extend("--ft-combobox-multi-select-field-horizontal-padding","",s.spacing4),fieldHorizontalGap:e.extend("--ft-combobox-multi-select-field-horizontal-gap","",s.spacing3),fieldVerticalGap:e.extend("--ft-combobox-multi-select-field-vertical-gap","",s.spacing05),fieldIconSize:e.extend("--ft-combobox-multi-select-field-icon-size","",s.iconSize3),fieldMaxHeight:e.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:e.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",s.spacing1),contentValuesVerticalGap:e.extend("--ft-combobox-multi-select-content-values-vertical-gap","",s.spacing1),borderRadius:e.extend("--ft-combobox-multi-select-border-radius","",s.borderRadiusM)};var _p={backgroundColor:e.extend("--ft-popover-background-color","",p.backgroundGlobalOnSurface),horizontalPadding:e.extend("--ft-popover-horizontal-padding","",s.spacing6),verticalPadding:e.extend("--ft-popover-vertical-padding","",s.spacing6),titleColor:e.extend("--ft-popover-title-color","",p.contentGlobalPrimary),bodyColor:e.extend("--ft-popover-body-color","",p.contentGlobalSecondary),linkColor:e.extend("--ft-popover-link-color","",p.contentActionPrimary),gap:e.extend("--ft-popover-gap","",s.spacing3),borderRadius:e.extend("--ft-popover-border-radius","",s.borderRadiusM),shadow:e.extend("--ft-popover-shadow","",s.shadowElevation02)};var Hp={topLeftBorderRadius:e.extend("--ft-tabs-top-left-border-radius","",s.borderRadiusS),topRightBorderRadius:e.extend("--ft-tabs-top-right-border-radius","",s.borderRadiusS),withLabelHorizontalPadding:e.extend("--ft-tabs-with-label-horizontal-padding","",s.spacing4),withLabelVerticalPadding:e.extend("--ft-tabs-with-label-vertical-padding","",s.spacing3),horizontalGap:e.extend("--ft-tabs-horizontal-gap","",s.spacing1),verticalGap:e.extend("--ft-tabs-vertical-gap","",s.spacing1),offHoverStateLayerOpacity:e.extend("--ft-tabs-off-hover-state-layer-opacity","",s.opacity8),offDefaultStateLayerOpacity:e.extend("--ft-tabs-off-default-state-layer-opacity","",s.opacity0),offFocusStateLayerOpacity:e.extend("--ft-tabs-off-focus-state-layer-opacity","",s.opacity8),offDisabledComponentOpacity:e.extend("--ft-tabs-off-disabled-component-opacity","",s.opacity40),offColor:e.extend("--ft-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:e.extend("--ft-tabs-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:e.extend("--ft-tabs-on-hover-state-layer-opacity","",s.opacity8),onDefaultStateLayerOpacity:e.extend("--ft-tabs-on-default-state-layer-opacity","",s.opacity0),onFocusStateLayerOpacity:e.extend("--ft-tabs-on-focus-state-layer-opacity","",s.opacity8),onActiveStateLayerOpacity:e.extend("--ft-tabs-on-active-state-layer-opacity","",s.opacity16),onColor:e.extend("--ft-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:e.extend("--ft-tabs-on-state-layer-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:e.extend("--ft-tabs-icon-only-horizontal-padding","",s.spacing4),iconOnlyVerticalPadding:e.extend("--ft-tabs-icon-only-vertical-padding","",s.spacing4),alertTopPadding:e.extend("--ft-tabs-alert-top-padding","",s.spacing1),alertRightPadding:e.extend("--ft-tabs-alert-right-padding","",s.spacing05),focusOutlineWidth:e.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:e.extend("--ft-tabs-focus-focus-ring-color","",p.borderActionFocusRing)};var jp={hoverStateLayerOpacity:e.extend("--ft-collapsible-hover-state-layer-opacity","",s.opacity8),focusStateLayerOpacity:e.extend("--ft-collapsible-focus-state-layer-opacity","",s.opacity8),focusOutlineWidth:e.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:e.extend("--ft-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:e.extend("--ft-collapsible-active-state-layer-opacity","",s.opacity16),disabledComponentOpacity:e.extend("--ft-collapsible-disabled-component-opacity","",s.opacity40),horizontalPadding:e.extend("--ft-collapsible-horizontal-padding","",s.spacing4),verticalPadding:e.extend("--ft-collapsible-vertical-padding","",s.spacing3),color:e.extend("--ft-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:e.extend("--ft-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:e.extend("--ft-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:e.extend("--ft-collapsible-border-color","",p.borderGlobalSubtle),iconSize:e.extend("--ft-collapsible-icon-size","",s.iconSize3)};var Qp={groupHorizontalPadding:e.extend("--ft-switch-group-horizontal-padding","",s.spacing1),groupVerticalPadding:e.extend("--ft-switch-group-vertical-padding","",s.spacing1),groupGap:e.extend("--ft-switch-group-gap","",s.spacing1),groupBackgroundColor:e.extend("--ft-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:e.extend("--ft-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:e.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:e.extend("--ft-switch-label-horizontal-padding","",s.spacing2),labelVerticalPadding:e.extend("--ft-switch-label-vertical-padding","",s.spacing1),offHoverStateLayerOpacity:e.extend("--ft-switch-off-hover-state-layer-opacity","",s.opacity8),offFocusStateLayerOpacity:e.extend("--ft-switch-off-focus-state-layer-opacity","",s.opacity8),offActiveStateLayerOpacity:e.extend("--ft-switch-off-active-state-layer-opacity","",s.opacity16),offDisabledComponentOpacity:e.extend("--ft-switch-off-disabled-component-opacity","",s.opacity40),offColor:e.extend("--ft-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:e.extend("--ft-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:e.extend("--ft-switch-on-hover-state-layer-opacity","",s.opacity8),onFocusStateLayerOpacity:e.extend("--ft-switch-on-focus-state-layer-opacity","",s.opacity8),onActiveStateLayerOpacity:e.extend("--ft-switch-on-active-state-layer-opacity","",s.opacity16),onDisabledComponentOpacity:e.extend("--ft-switch-on-disabled-component-opacity","",s.opacity40),onColor:e.extend("--ft-switch-on-color","",p.contentActionPrimary),onStateLayerColor:e.extend("--ft-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:e.extend("--ft-switch-icon-horizontal-padding","",s.spacing1),iconVerticalPadding:e.extend("--ft-switch-icon-vertical-padding","",s.spacing1),focusOutlineWidth:e.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:e.extend("--ft-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:e.extend("--ft-switch-option-border-radius","",s.borderRadiusS)};var rd={color1Light:e.extend("--ft-chart-1-light","for area color charts",s.colorBrand40),color1Base:e.extend("--ft-chart-1-base","for line charts",s.colorBrand0),color2Light:e.extend("--ft-chart-2-light","for area color charts",s.colorYellow60),color2Base:e.extend("--ft-chart-2-base","for line charts",s.colorYellow100),color3Light:e.extend("--ft-chart-3-light","",s.colorUltramarine40),color3Base:e.extend("--ft-chart-3-base","",s.colorUltramarine70),color4Light:e.extend("--ft-chart-4-light","",s.colorCyan50),color4Base:e.extend("--ft-chart-4-base","",s.colorCyan100),color5Light:e.extend("--ft-chart-5-light","",s.colorRed40),color5Base:e.extend("--ft-chart-5-base","",s.colorRed60),color6Light:e.extend("--ft-chart-6-light","",s.colorGreen40),color6Base:e.extend("--ft-chart-6-base","",s.colorGreen70),color7Light:e.extend("--ft-chart-7-light","",s.colorOrange70),color7Base:e.extend("--ft-chart-7-base","",s.colorOrange100),color8Light:e.extend("--ft-chart-8-light","",s.colorAvocado70),color8Base:e.extend("--ft-chart-8-base","",s.colorAvocado200),color9Light:e.extend("--ft-chart-9-light","",s.colorBrown50),color9Base:e.extend("--ft-chart-9-base","",s.colorBrown200),color10Light:e.extend("--ft-chart-10-light","",s.colorGray50),color10Base:e.extend("--ft-chart-10-base","",s.colorGray80),monochrome10:e.extend("--ft-chart-monochrome-10","",s.colorBrand10),monochrome20:e.extend("--ft-chart-monochrome-20","",s.colorBrand20),monochrome30:e.extend("--ft-chart-monochrome-30","",s.colorBrand40),monochrome40:e.extend("--ft-chart-monochrome-40","",s.colorBrand60),monochrome50:e.extend("--ft-chart-monochrome-50","",s.colorBrand0),monochrome60:e.extend("--ft-chart-monochrome-60","",s.colorBrand200)};var sd={borderWidth:e.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:e.extend("--ft-notice-horizontal-padding","",s.spacing3),verticalPadding:e.extend("--ft-notice-vertical-padding","",s.spacing2),borderRadius:e.extend("--ft-notice-border-radius","",s.borderRadiusS),gap:e.extend("--ft-notice-gap","",s.spacing2),iconSize:e.extend("--ft-notice-icon-size","",s.iconSize3),infoBackgroundColor:e.extend("--ft-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:e.extend("--ft-notice-info-border-color","",p.borderInfoSubtle),infoColor:e.extend("--ft-notice-info-color","",p.contentInfoPrimary),infoIconColor:e.extend("--ft-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:e.extend("--ft-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:e.extend("--ft-notice-warning-border-color","",p.borderWarningSubtle),warningColor:e.extend("--ft-notice-warning-color","",p.contentWarningPrimary),warningIconColor:e.extend("--ft-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:e.extend("--ft-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:e.extend("--ft-notice-error-border-color","",p.borderErrorSubtle),errorColor:e.extend("--ft-notice-error-color","",p.contentErrorPrimary),errorIconColor:e.extend("--ft-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:e.extend("--ft-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:e.extend("--ft-notice-success-border-color","",p.borderSuccessSubtle),successColor:e.extend("--ft-notice-success-color","",p.contentSuccessPrimary),successIconColor:e.extend("--ft-notice-success-icon-color","",p.contentSuccessIconOnly)};var hd={color:e.extend("--ft-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:e.extend("--ft-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:e.extend("--ft-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:e.extend("--ft-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:e.extend("--ft-checkbox-checked-hover-state-layer-opacity","",s.opacity16),checkedFocusStateLayerOpacity:e.extend("--ft-checkbox-checked-focus-state-layer-opacity","",s.opacity16),checkedActiveStateLayerOpacity:e.extend("--ft-checkbox-checked-active-state-layer-opacity","",s.opacity24),checkedDisabledComponentOpacity:e.extend("--ft-checkbox-checked-disabled-component-opacity","",s.opacity40),uncheckedBorderColor:e.extend("--ft-checkbox-unchecked-border-color","",s.colorGray80),uncheckedStateLayerColor:e.extend("--ft-checkbox-unchecked-state-layer-color","",s.colorGray80),uncheckedHoverStateLayerOpacity:e.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",s.opacity16),uncheckedFocusStateLayerOpacity:e.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",s.opacity16),uncheckedActiveStateLayerOpacity:e.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",s.opacity24),uncheckedDisabledComponentOpacity:e.extend("--ft-checkbox-unchecked-disabled-component-opacity","",s.opacity40),focusFocusRingColor:e.extend("--ft-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:e.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:e.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:e.extend("--ft-checkbox-gap","",s.spacing3)};var yd={offHoverStateLayerOpacity:e.extend("--ft-toggle-off-hover-state-layer-opacity","",s.opacity16),offFocusStateLayerOpacity:e.extend("--ft-toggle-off-focus-state-layer-opacity","",s.opacity16),offActiveStateLayerOpacity:e.extend("--ft-toggle-off-active-state-layer-opacity","",s.opacity24),offDisabledComponentOpacity:e.extend("--ft-toggle-off-disabled-component-opacity","",s.opacity40),offBackgroundColor:e.extend("--ft-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:e.extend("--ft-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:e.extend("--ft-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:e.extend("--ft-toggle-on-hover-state-layer-opacity","",s.opacity16),onFocusStateLayerOpacity:e.extend("--ft-toggle-on-focus-state-layer-opacity","",s.opacity16),onActiveStateLayerOpacity:e.extend("--ft-toggle-on-active-state-layer-opacity","",s.opacity24),onDisabledComponentOpacity:e.extend("--ft-toggle-on-disabled-component-opacity","",s.opacity40),onBackgroundColor:e.extend("--ft-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:e.extend("--ft-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:e.extend("--ft-toggle-on-icon-color","",p.contentActionPrimary),color:e.extend("--ft-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:e.extend("--ft-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:e.extend("--ft-toggle-gap","",s.spacing3)};var Cd={color:e.extend("--ft-radio-color","",p.contentGlobalPrimary),selectedRadioColor:e.extend("--ft-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:e.extend("--ft-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:e.extend("--ft-radio-selected-hover-state-layer-opacity","",s.opacity16),selectedFocusStateLayerOpacity:e.extend("--ft-radio-selected-focus-state-layer-opacity","",s.opacity16),selectedActiveStateLayerOpacity:e.extend("--ft-radio-selected-active-state-layer-opacity","",s.opacity24),selectedDisabledComponentOpacity:e.extend("--ft-radio-selected-disabled-component-opacity","",s.opacity40),unselectedStateLayerColor:e.extend("--ft-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:e.extend("--ft-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:e.extend("--ft-radio-unselected-hover-state-layer-opacity","",s.opacity16),unselectedFocusStateLayerOpacity:e.extend("--ft-radio-unselected-focus-state-layer-opacity","",s.opacity16),unselectedActiveStateLayerOpacity:e.extend("--ft-radio-unselected-active-state-layer-opacity","",s.opacity24),unselectedDisabledComponentOpacity:e.extend("--ft-radio-unselected-disabled-component-opacity","",s.opacity40),focusFocusRingColor:e.extend("--ft-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:e.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:e.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:e.extend("--ft-radio-gap","",s.spacing3)};var Ld={iconSize:e.extend("--ft-notification-icon-size","",s.iconSize4),leftPadding:e.extend("--ft-notification-left-padding","",s.spacing5),rightPadding:e.extend("--ft-notification-right-padding","",s.spacing4),verticalPadding:e.extend("--ft-notification-vertical-padding","",s.spacing3),infoBackgroundColor:e.extend("--ft-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:e.extend("--ft-notification-info-color","",p.contentInfoPrimary),infoIconColor:e.extend("--ft-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:e.extend("--ft-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:e.extend("--ft-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:e.extend("--ft-notification-success-color","",p.contentSuccessPrimary),successIconColor:e.extend("--ft-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:e.extend("--ft-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:e.extend("--ft-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:e.extend("--ft-notification-warning-color","",p.contentWarningPrimary),warningIconColor:e.extend("--ft-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:e.extend("--ft-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:e.extend("--ft-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:e.extend("--ft-notification-error-color","",p.contentErrorPrimary),errorIconColor:e.extend("--ft-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:e.extend("--ft-notification-error-border-color","",p.borderErrorSubtle),borderRadius:e.extend("--ft-notification-border-radius","",s.borderRadiusPill),borderWidth:e.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:e.extend("--ft-notification-leading-gap","",s.spacing2),trailingGap:e.extend("--ft-notification-trailing-gap","",s.spacing8)};var Id={horizontalPadding:e.extend("--ft-tooltip-horizontal-padding","",s.spacing2),verticalPadding:e.extend("--ft-tooltip-vertical-padding","",s.spacing2),borderRadius:e.extend("--ft-tooltip-border-radius","",s.borderRadiusS),color:e.extend("--ft-tooltip-color","",p.contentGlobalOnColor),backgroundColor:e.extend("--ft-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:e.extend("--ft-tooltip-background-opacity","",s.opacity80),shadow:e.extend("--ft-tooltip-shadow","",s.shadowElevation03),maxWidth:e.create("--ft-tooltip-max-width","","SIZE","256px"),gap:e.extend("--ft-tooltip-gap","",s.spacing05)};var xa;(function(o){o.brand="brand",o.neutral="neutral",o.info="info",o.success="success",o.warning="warning",o.error="error"})(xa||(xa={}));var va;(function(o){o.large="large",o.medium="medium",o.small="small"})(va||(va={}));var er=d(S());function Sa(o){let t=tr[o];return er.css`
|
|
28
|
-
.ft-typography--${(0,
|
|
29
|
-
font-family: ${
|
|
30
|
-
font-size: ${
|
|
31
|
-
font-weight: ${
|
|
32
|
-
letter-spacing: ${
|
|
33
|
-
line-height: ${
|
|
34
|
-
text-transform: ${
|
|
35
|
-
}
|
|
36
|
-
`}var
|
|
24
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run(()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=tt.S:this.size<976?this.category=tt.M:this.size<1024?this.category=tt.L:this.size<1440?this.category=tt.XL:this.category=tt.XXL,this.dispatchEvent(new vi(this.size,this.category)))},this.debounceTimeout)}};Ue.elementDefinitions={};Ue.styles=Vn;Qo([(0,ao.property)({type:Number})],Ue.prototype,"debounceTimeout",void 0);Qo([(0,ao.property)({type:Boolean})],Ue.prototype,"local",void 0);Qo([(0,ao.property)({type:Number,reflect:!0})],Ue.prototype,"size",void 0);Qo([(0,ao.property)({type:String,reflect:!0})],Ue.prototype,"category",void 0);Qo([(0,ao.query)(".ft-size-watcher--watcher")],Ue.prototype,"watcher",void 0);(0,Kn.customElement)("ft-size-watcher")(Ue);var Xa=u(O());var Ri=globalThis,kr=Ri.trustedTypes,Gn=kr?kr.createPolicy("lit-html",{createHTML:t=>t}):void 0,Qn="$lit$",Wt=`lit$${(Math.random()+"").slice(9)}$`,ea="?"+Wt,gp=`<${ea}>`,co=document,Ar=()=>co.createComment(""),tr=t=>t===null||typeof t!="object"&&typeof t!="function",ta=Array.isArray,yp=t=>ta(t)||typeof t?.[Symbol.iterator]=="function",xi=`[
|
|
25
|
+
\f\r]`,er=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Zn=/-->/g,qn=/>/g,lo=RegExp(`>|${xi}(?:([^\\s"'>=/]+)(${xi}*=${xi}*(?:[^
|
|
26
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Yn=/'/g,Xn=/"/g,oa=/^(?:script|style|textarea|title)$/i,ra=t=>(e,...o)=>({_$litType$:t,strings:e,values:o}),ia=ra(1),na=ra(2),or=Symbol.for("lit-noChange"),be=Symbol.for("lit-nothing"),Jn=new WeakMap,so=co.createTreeWalker(co,129);function aa(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Gn!==void 0?Gn.createHTML(e):e}var bp=(t,e)=>{let o=t.length-1,i=[],n,a=e===2?"<svg>":"",l=er;for(let s=0;s<o;s++){let d=t[s],f,h,m=-1,g=0;for(;g<d.length&&(l.lastIndex=g,h=l.exec(d),h!==null);)g=l.lastIndex,l===er?h[1]==="!--"?l=Zn:h[1]!==void 0?l=qn:h[2]!==void 0?(oa.test(h[2])&&(n=RegExp("</"+h[2],"g")),l=lo):h[3]!==void 0&&(l=lo):l===lo?h[0]===">"?(l=n??er,m=-1):h[1]===void 0?m=-2:(m=l.lastIndex-h[2].length,f=h[1],l=h[3]===void 0?lo:h[3]==='"'?Xn:Yn):l===Xn||l===Yn?l=lo:l===Zn||l===qn?l=er:(l=lo,n=void 0);let b=l===lo&&t[s+1].startsWith("/>")?" ":"";a+=l===er?d+gp:m>=0?(i.push(f),d.slice(0,m)+Qn+d.slice(m)+Wt+b):d+Wt+(m===-2?s:b)}return[aa(t,a+(t[o]||"<?>")+(e===2?"</svg>":"")),i]},rr=class t{constructor({strings:e,_$litType$:o},i){let n;this.parts=[];let a=0,l=0,s=e.length-1,d=this.parts,[f,h]=bp(e,o);if(this.el=t.createElement(f,i),so.currentNode=this.el.content,o===2){let m=this.el.content.firstChild;m.replaceWith(...m.childNodes)}for(;(n=so.nextNode())!==null&&d.length<s;){if(n.nodeType===1){if(n.hasAttributes())for(let m of n.getAttributeNames())if(m.endsWith(Qn)){let g=h[l++],b=n.getAttribute(m).split(Wt),y=/([.?@])?(.*)/.exec(g);d.push({type:1,index:a,name:y[2],strings:b,ctor:y[1]==="."?Oi:y[1]==="?"?wi:y[1]==="@"?Ci:ko}),n.removeAttribute(m)}else m.startsWith(Wt)&&(d.push({type:6,index:a}),n.removeAttribute(m));if(oa.test(n.tagName)){let m=n.textContent.split(Wt),g=m.length-1;if(g>0){n.textContent=kr?kr.emptyScript:"";for(let b=0;b<g;b++)n.append(m[b],Ar()),so.nextNode(),d.push({type:2,index:++a});n.append(m[g],Ar())}}}else if(n.nodeType===8)if(n.data===ea)d.push({type:2,index:a});else{let m=-1;for(;(m=n.data.indexOf(Wt,m+1))!==-1;)d.push({type:7,index:a}),m+=Wt.length-1}a++}}static createElement(e,o){let i=co.createElement("template");return i.innerHTML=e,i}};function No(t,e,o=t,i){if(e===or)return e;let n=i!==void 0?o._$Co?.[i]:o._$Cl,a=tr(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(t),n._$AT(t,o,i)),i!==void 0?(o._$Co??=[])[i]=n:o._$Cl=n),n!==void 0&&(e=No(t,n._$AS(t,e.values),n,i)),e}var Si=class{constructor(e,o){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:o},parts:i}=this._$AD,n=(e?.creationScope??co).importNode(o,!0);so.currentNode=n;let a=so.nextNode(),l=0,s=0,d=i[0];for(;d!==void 0;){if(l===d.index){let f;d.type===2?f=new Lr(a,a.nextSibling,this,e):d.type===1?f=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(f=new Ei(a,this,e)),this._$AV.push(f),d=i[++s]}l!==d?.index&&(a=so.nextNode(),l++)}return so.currentNode=co,n}p(e){let o=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,o),o+=i.strings.length-2):i._$AI(e[o])),o++}},Lr=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,o,i,n){this.type=2,this._$AH=be,this._$AN=void 0,this._$AA=e,this._$AB=o,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,o=this._$AM;return o!==void 0&&e?.nodeType===11&&(e=o.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,o=this){e=No(this,e,o),tr(e)?e===be||e==null||e===""?(this._$AH!==be&&this._$AR(),this._$AH=be):e!==this._$AH&&e!==or&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):yp(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==be&&tr(this._$AH)?this._$AA.nextSibling.data=e:this.$(co.createTextNode(e)),this._$AH=e}g(e){let{values:o,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=rr.createElement(aa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(o);else{let a=new Si(n,this),l=a.u(this.options);a.p(o),this.$(l),this._$AH=a}}_$AC(e){let o=Jn.get(e.strings);return o===void 0&&Jn.set(e.strings,o=new rr(e)),o}T(e){ta(this._$AH)||(this._$AH=[],this._$AR());let o=this._$AH,i,n=0;for(let a of e)n===o.length?o.push(i=new t(this.k(Ar()),this.k(Ar()),this,this.options)):i=o[n],i._$AI(a),n++;n<o.length&&(this._$AR(i&&i._$AB.nextSibling,n),o.length=n)}_$AR(e=this._$AA.nextSibling,o){for(this._$AP?.(!1,!0,o);e&&e!==this._$AB;){let i=e.nextSibling;e.remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ko=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,o,i,n,a){this.type=1,this._$AH=be,this._$AN=void 0,this.element=e,this.name=o,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=be}_$AI(e,o=this,i,n){let a=this.strings,l=!1;if(a===void 0)e=No(this,e,o,0),l=!tr(e)||e!==this._$AH&&e!==or,l&&(this._$AH=e);else{let s=e,d,f;for(e=a[0],d=0;d<a.length-1;d++)f=No(this,s[i+d],o,d),f===or&&(f=this._$AH[d]),l||=!tr(f)||f!==this._$AH[d],f===be?e=be:e!==be&&(e+=(f??"")+a[d+1]),this._$AH[d]=f}l&&!n&&this.O(e)}O(e){e===be?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Oi=class extends ko{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===be?void 0:e}},wi=class extends ko{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==be)}},Ci=class extends ko{constructor(e,o,i,n,a){super(e,o,i,n,a),this.type=5}_$AI(e,o=this){if((e=No(this,e,o,0)??be)===or)return;let i=this._$AH,n=e===be&&i!==be||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,a=e!==be&&(i===be||n);n&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ei=class{constructor(e,o,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=o,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){No(this,e)}};var vp=Ri.litHtmlPolyfillSupport;vp?.(rr,Lr),(Ri.litHtmlVersions??=[]).push("3.1.0");var sa=Symbol.for(""),xp=t=>{if(t?.r===sa)return t?._$litStatic$},$i=t=>({_$litStatic$:t,r:sa});var la=new Map,ca=t=>(e,...o)=>{let i=o.length,n,a,l=[],s=[],d,f=0,h=!1;for(;f<i;){for(d=e[f];f<i&&(a=o[f],(n=xp(a))!==void 0);)d+=n+e[++f],h=!0;f!==i&&s.push(a),l.push(d),f++}if(f===i&&l.push(e[i]),h){let m=l.join("$$lit$$");(e=la.get(m))===void 0&&(l.raw=l,la.set(m,e=l)),o=s}return t(e,...o)},Ni=ca(ia),qd=ca(na);var ki=u(Z()),Ya=u(O());var po;(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"})(po||(po={}));var ot=u($()),S=u(O());var $t=u($(),1),Ut=t=>typeof t=="string"?(0,$t.unsafeCSS)(t):t,r=class{static create(e,o,i,n){let a=s=>Ut(s??n),l=$t.css`var(${Ut(e)}, ${a(n)})`;return l.name=e,l.description=o,l.category=i,l.defaultValue=n,l.defaultCssValue=a,l.get=s=>$t.css`var(${Ut(e)}, ${a(s)})`,l.breadcrumb=()=>[],l.lastResortDefaultValue=()=>n,l}static extend(e,o,i,n){let a=s=>i.get(s??n),l=$t.css`var(${Ut(e)}, ${a(n)})`;return l.name=e,l.description=o,l.category=i.category,l.fallbackVariable=i,l.defaultValue=n,l.defaultCssValue=a,l.get=s=>$t.css`var(${Ut(e)}, ${a(s)})`,l.breadcrumb=()=>[i.name,...i.breadcrumb()],l.lastResortDefaultValue=()=>n??i.lastResortDefaultValue(),l}static external(e,o){let i=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):Ut(a??e.lastResortDefaultValue()),n=$t.css`var(${Ut(e.name)}, ${i(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=o,n.defaultCssValue=i,n.get=a=>$t.css`var(${Ut(e.name)}, ${i(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};var c={colorWhite:r.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:r.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:r.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:r.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:r.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:r.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:r.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:r.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:r.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:r.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:r.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:r.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:r.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:r.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:r.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:r.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:r.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:r.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:r.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:r.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:r.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:r.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:r.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:r.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:r.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:r.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:r.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:r.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:r.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:r.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:r.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:r.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:r.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:r.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:r.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:r.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:r.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:r.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:r.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:r.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:r.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:r.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:r.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:r.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:r.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:r.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:r.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:r.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:r.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:r.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:r.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:r.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:r.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:r.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:r.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:r.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:r.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:r.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:r.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:r.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:r.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:r.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:r.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:r.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:r.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:r.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:r.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:r.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:r.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:r.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:r.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:r.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:r.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:r.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:r.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:r.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:r.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:r.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:r.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:r.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:r.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:r.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:r.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:r.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:r.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:r.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:r.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:r.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:r.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:r.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:r.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:r.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:r.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:r.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:r.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:r.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:r.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:r.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:r.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:r.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:r.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:r.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:r.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:r.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:r.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:r.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:r.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:r.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:r.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:r.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:r.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:r.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:r.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:r.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:r.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:r.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:r.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:r.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:r.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:r.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:r.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:r.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:r.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:r.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:r.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:r.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:r.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:r.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:r.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:r.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:r.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:r.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:r.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:r.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:r.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:r.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:r.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:r.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:r.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:r.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:r.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:r.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:r.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:r.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:r.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:r.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:r.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:r.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:r.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:r.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:r.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:r.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:r.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:r.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:r.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:r.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:r.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:r.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:r.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:r.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:r.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:r.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:r.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:r.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:r.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:r.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:r.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:r.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:r.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:r.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:r.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:r.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:r.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:r.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:r.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:r.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:r.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:r.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:r.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:r.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:r.create("--ft-opacity-0","","NUMBER","0"),opacity8:r.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:r.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:r.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:r.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:r.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:r.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:r.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:r.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:r.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:r.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:r.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:r.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:r.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:r.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},pa={fontFamily:r.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:r.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-display-textCase","","UNKNOWN","none")},da={fontFamily:r.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:r.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},fa={fontFamily:r.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:r.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:r.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},ua={fontFamily:r.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:r.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:r.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:r.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},ha={fontFamily:r.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},ma={fontFamily:r.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},ga={fontFamily:r.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:r.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},ya={fontFamily:r.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:r.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},ba={fontFamily:r.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},Sp={fontFamily:r.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:r.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:r.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},va={fontFamily:r.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:r.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:r.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:r.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},xa={fontFamily:r.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Sa={fontFamily:r.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Oa={fontFamily:r.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:r.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},wa={fontFamily:r.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Ca={fontFamily:r.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Ea={fontFamily:r.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:r.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:r.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:r.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Ra={fontFamily:r.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},$a={fontFamily:r.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Na={fontFamily:r.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:r.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ka={fontFamily:r.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},Aa={fontFamily:r.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},La={fontFamily:r.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:r.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Pa={fontFamily:r.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:r.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Ia={fontFamily:r.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:r.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},Ba={fontFamily:r.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:r.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:r.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:r.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:r.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:r.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:r.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:r.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:r.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Pr={display:pa,"title-1":da,"title-2":fa,"title-3":ua,"body-1-regular":ha,"body-1-medium":ma,"body-1-semibold":ga,"body-2-regular":ya,"body-2-medium":ba,"body-2-medium-underline":Sp,"body-2-semibold":va,"label-1-medium":xa,"label-1-semibold":Sa,"label-1-bold":Oa,"label-2-medium":wa,"label-2-semibold":Ca,"label-2-bold":Ea,"caption-1-medium":Ra,"caption-1-semibold":$a,"caption-1-bold":Na,"caption-2-medium":ka,"caption-2-semibold":Aa,"caption-2-bold":La,"caption-3-medium":Pa,"caption-3-semibold":Ia,"caption-3-bold":Ba};var p={backgroundActionPrimary:r.extend("--ft-background-action-primary","Used as backgorund of primary action components.",c.colorBrand0),backgroundErrorSubtle:r.extend("--ft-background-error-subtle","Used as background of subtle error components.",c.colorRed10),backgroundInfoSubtle:r.extend("--ft-background-info-subtle","Used as background of subtle information components.",c.colorCyan10),backgroundWarningSubtle:r.extend("--ft-background-warning-subtle","Used as background of subtle information components.",c.colorOrange10),backgroundSuccessSubtle:r.extend("--ft-background-success-subtle","Used as background of subtle success components.",c.colorGreen10),backgroundGlobalSurface:r.extend("--ft-background-global-surface","Used as app background.",c.colorWhite),backgroundGlobalOnSurface:r.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",c.colorGray10),backgroundGlobalOnSurfaceDark:r.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",c.colorGray30),contentActionPrimary:r.extend("--ft-content-action-primary","Used on label of primary action on light surface.",c.colorBrand0),contentWarningPrimary:r.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",c.colorOrange200),contentWarningIconOnly:r.extend("--ft-content-warning-icon-only","Used on warning status icons alone",c.colorOrange0),contentErrorPrimary:r.extend("--ft-content-error-primary","Used on label of error messages on light surface.",c.colorRed0),contentErrorIconOnly:r.extend("--ft-content-error-icon-only","Used on error status icons alone",c.colorRed70),contentInfoPrimary:r.extend("--ft-content-info-primary","Used on label of information messages on light surface.",c.colorCyan200),contentInfoIconOnly:r.extend("--ft-content-info-icon-only","Used on info status icons alone",c.colorCyan0),contentSuccessPrimary:r.extend("--ft-content-success-primary","Used on label of success messages on light surface.",c.colorGreen200),contentSuccessIconOnly:r.extend("--ft-content-success-icon-only","Used on success status icons alone",c.colorGreen0),contentGlobalPrimary:r.extend("--ft-content-global-primary","Used for main content on the page.",c.colorGray500),contentGlobalSecondary:r.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
27
|
+
Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",c.colorGray0),contentGlobalOnColor:r.extend("--ft-content-global-on-color","Used for content on a dominant color.",c.colorWhite),borderActionPrimary:r.extend("--ft-border-action-primary","Used as border for primary action components.",c.colorBrand0),borderActionFocusRing:r.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",c.colorCyan0),borderWarningPrimary:r.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",c.colorOrange200),borderWarningSubtle:r.extend("--ft-border-warning-subtle","Used as border for warning components.",c.colorOrange30),borderSuccessPrimary:r.extend("--ft-border-success-primary","Used as border for success buttons.",c.colorGreen200),borderSuccessSubtle:r.extend("--ft-border-success-subtle","Used as border for success components.",c.colorGreen30),borderErrorPrimary:r.extend("--ft-border-error-primary","Used as border for text fields in error states.",c.colorRed0),borderErrorSubtle:r.extend("--ft-border-error-subtle","Used as border for error components.",c.colorRed30),borderInfoPrimary:r.extend("--ft-border-info-primary","Used as border for buttons in info color.",c.colorCyan200),borderInfoSubtle:r.extend("--ft-border-info-subtle","Used as border for information components.",c.colorCyan30),borderGlobalPrimary:r.extend("--ft-border-global-primary","Used as border for element like input.",c.colorGray50),borderGlobalSubtle:r.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",c.colorGray30),borderInputPrimary:r.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",c.colorGray80)};var w={largeHeight:r.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:r.extend("--ft-button-large-horizontal-padding","",c.spacing4),largeGap:r.extend("--ft-button-large-gap","",c.spacing2),largeBorderRadius:r.extend("--ft-button-large-border-radius","",c.borderRadiusS),largeIconSize:r.extend("--ft-button-large-icon-size","",c.iconSize3),largeBorderWidth:r.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:r.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:r.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:r.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:r.extend("--ft-button-medium-horizontal-padding","",c.spacing3),mediumGap:r.extend("--ft-button-medium-gap","",c.spacing2),mediumBorderRadius:r.extend("--ft-button-medium-border-radius","",c.borderRadiusS),mediumIconSize:r.extend("--ft-button-medium-icon-size","",c.iconSize2),mediumBorderWidth:r.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:r.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:r.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:r.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-button-small-horizontal-padding","",c.spacing2),smallGap:r.extend("--ft-button-small-gap","",c.spacing1),smallBorderRadius:r.extend("--ft-button-small-border-radius","",c.borderRadiusS),smallIconSize:r.extend("--ft-button-small-icon-size","",c.iconSize1),smallBorderWidth:r.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:r.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:r.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:r.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:r.extend("--ft-button-x-small-icon-size","",c.iconSize1),xSmallFocusOutlineOffset:r.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:r.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:r.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:r.extend("--ft-button-round-border-radius","",c.borderRadiusPill),primaryBackgroundColor:r.extend("--ft-button-primary-background-color","",p.backgroundActionPrimary),primaryColor:r.extend("--ft-button-primary-color","",p.contentGlobalOnColor),primaryIconColor:r.extend("--ft-button-primary-icon-color","",p.contentGlobalOnColor),primaryStateLayerColor:r.extend("--ft-button-primary-state-layer-color","",p.contentGlobalOnColor),primaryHoverStateLayerOpacity:r.extend("--ft-button-primary-hover-state-layer-opacity","",c.opacity16),primaryFocusStateLayerOpacity:r.extend("--ft-button-primary-focus-state-layer-opacity","",c.opacity16),primaryActiveStateLayerOpacity:r.extend("--ft-button-primary-active-state-layer-opacity","",c.opacity24),primaryDisabledComponentOpacity:r.extend("--ft-button-primary-disabled-component-opacity","",c.opacity40),focusFocusRingColor:r.extend("--ft-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBackgroundColor:r.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:r.extend("--ft-button-tertiary-color","",p.contentActionPrimary),tertiaryIconColor:r.extend("--ft-button-tertiary-icon-color","",p.contentActionPrimary),tertiaryStateLayerColor:r.extend("--ft-button-tertiary-state-layer-color","",p.contentActionPrimary),tertiaryHoverStateLayerOpacity:r.extend("--ft-button-tertiary-hover-state-layer-opacity","",c.opacity8),tertiaryFocusStateLayerOpacity:r.extend("--ft-button-tertiary-focus-state-layer-opacity","",c.opacity8),tertiaryActiveStateLayerOpacity:r.extend("--ft-button-tertiary-active-state-layer-opacity","",c.opacity16),tertiaryDisabledComponentOpacity:r.extend("--ft-button-tertiary-disabled-component-opacity","",c.opacity40),secondaryBackgroundColor:r.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:r.extend("--ft-button-secondary-color","",p.contentActionPrimary),secondaryIconColor:r.extend("--ft-button-secondary-icon-color","",p.contentActionPrimary),secondaryStateLayerColor:r.extend("--ft-button-secondary-state-layer-color","",p.contentActionPrimary),secondaryHoverStateLayerOpacity:r.extend("--ft-button-secondary-hover-state-layer-opacity","",c.opacity8),secondaryFocusStateLayerOpacity:r.extend("--ft-button-secondary-focus-state-layer-opacity","",c.opacity8),secondaryActiveStateLayerOpacity:r.extend("--ft-button-secondary-active-state-layer-opacity","",c.opacity16),secondaryDisabledComponentOpacity:r.extend("--ft-button-secondary-disabled-component-opacity","",c.opacity40),secondaryBorderColor:r.extend("--ft-button-secondary-border-color","",p.borderActionPrimary),neutralBackgroundColor:r.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:r.extend("--ft-button-neutral-icon-color","",p.contentGlobalSecondary),neutralColor:r.extend("--ft-button-neutral-color","",p.contentGlobalSecondary),neutralStateLayerColor:r.extend("--ft-button-neutral-state-layer-color","",p.contentGlobalSecondary),neutralHoverStateLayerOpacity:r.extend("--ft-button-neutral-hover-state-layer-opacity","",c.opacity8),neutralFocusStateLayerOpacity:r.extend("--ft-button-neutral-focus-state-layer-opacity","",c.opacity8),neutralActiveStateLayerOpacity:r.extend("--ft-button-neutral-active-state-layer-opacity","",c.opacity16),neutralDisabledComponentOpacity:r.extend("--ft-button-neutral-disabled-component-opacity","",c.opacity40)};var hf={largeMinHeight:r.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:r.extend("--ft-chip-large-horizontal-padding","",c.spacing3),largeButtonRightPadding:r.extend("--ft-chip-large-button-right-padding","",c.spacing1),largeGap:r.extend("--ft-chip-large-gap","",c.spacing1),largeFocusOutlineOffset:r.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:r.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:r.extend("--ft-chip-large-border-radius","",c.borderRadiusPill),largeBorderWidth:r.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:r.extend("--ft-chip-large-icon-size","",c.iconSize3),mediumMinHeight:r.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:r.extend("--ft-chip-medium-horizontal-padding","",c.spacing2),mediumButtonRightPadding:r.extend("--ft-chip-medium-button-right-padding","",c.spacing05),mediumGap:r.extend("--ft-chip-medium-gap","",c.spacing1),mediumFocusOutlineOffset:r.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:r.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:r.extend("--ft-chip-medium-border-radius","",c.borderRadiusPill),mediumBorderWidth:r.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:r.extend("--ft-chip-medium-icon-size","",c.iconSize2),smallMinHeight:r.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:r.extend("--ft-chip-small-horizontal-padding","",c.spacing1),smallButtonRightPadding:r.extend("--ft-chip-small-button-right-padding","",c.spacing05),smallGap:r.extend("--ft-chip-small-gap","",c.spacing1),smallFocusOutlineOffset:r.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:r.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:r.extend("--ft-chip-small-border-radius","",c.borderRadiusPill),smallBorderWidth:r.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:r.extend("--ft-chip-small-icon-size","",c.iconSize1),neutralBackgroundColor:r.extend("--ft-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:r.extend("--ft-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:r.extend("--ft-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:r.extend("--ft-chip-neutral-border-color","",p.borderGlobalSubtle),infoBackgroundColor:r.extend("--ft-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:r.extend("--ft-chip-info-color","",p.contentInfoPrimary),infoIconColor:r.extend("--ft-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:r.extend("--ft-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:r.extend("--ft-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:r.extend("--ft-chip-success-color","",p.contentSuccessPrimary),successIconColor:r.extend("--ft-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:r.extend("--ft-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:r.extend("--ft-chip-warning-color","",p.contentWarningPrimary),warningIconColor:r.extend("--ft-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:r.extend("--ft-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:r.extend("--ft-chip-error-color","",p.contentErrorPrimary),errorIconColor:r.extend("--ft-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:r.extend("--ft-chip-error-border-color","",p.borderErrorSubtle)};var vf={focusOpacity:r.extend("--ft-link-focus-opacity","",c.opacity80),focusFocusRingColor:r.extend("--ft-link-focus-focus-ring-color","",p.borderActionFocusRing),brandColor:r.extend("--ft-link-brand-color","",p.contentActionPrimary),infoColor:r.extend("--ft-link-info-color","",p.contentInfoPrimary)};var Cf={iconSize:r.extend("--ft-banner-icon-size","",c.iconSize5),borderWidth:r.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:r.extend("--ft-banner-left-padding","",c.spacing6),rightPadding:r.extend("--ft-banner-right-padding","",c.spacing6),verticalPadding:r.extend("--ft-banner-vertical-padding","",c.spacing6),horizontalSideGap:r.extend("--ft-banner-horizontal-side-gap","",c.spacing6),horizontalMobileGap:r.extend("--ft-banner-horizontal-mobile-gap","",c.spacing4),verticalMobileGap:r.extend("--ft-banner-vertical-mobile-gap","",c.spacing6),horizontalMiddleGap:r.extend("--ft-banner-horizontal-middle-gap","",c.spacing20),infoBackgroundColor:r.extend("--ft-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:r.extend("--ft-banner-info-color","",p.contentInfoPrimary),infoIconColor:r.extend("--ft-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:r.extend("--ft-banner-info-border-color","",p.borderInfoSubtle)};var kf={horizontalPadding:r.extend("--ft-badge-horizontal-padding","",c.spacing1),verticalPadding:r.extend("--ft-badge-vertical-padding","",c.spacing1),borderRadius:r.extend("--ft-badge-border-radius","",c.borderRadiusPill),color:r.extend("--ft-badge-color","",p.contentGlobalOnColor),backgroundColor:r.extend("--ft-badge-background-color","",p.contentActionPrimary)};var Bf={horizontalGap:r.extend("--ft-breadcrumb-horizontal-gap","",c.spacing1),verticalGap:r.extend("--ft-breadcrumb-vertical-gap","",c.spacing2),currentColor:r.extend("--ft-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:r.extend("--ft-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:r.extend("--ft-breadcrumb-icon-color","",p.contentGlobalSubtle)};var Ff={horizontalPadding:r.extend("--ft-page-header-horizontal-padding","",c.spacing12),horizontalGap:r.extend("--ft-page-header-horizontal-gap","",c.spacing4),verticalGap:r.extend("--ft-page-header-vertical-gap","",c.spacing2),classicVerticalPadding:r.extend("--ft-page-header-classic-vertical-padding","",c.spacing6),multilineVerticalPadding:r.extend("--ft-page-header-multiline-vertical-padding","",c.spacing4),inlineVerticalPadding:r.extend("--ft-page-header-inline-vertical-padding","",c.spacing2),backgroundColor:r.extend("--ft-page-header-background-color","",c.colorWhite),bottomBorderColor:r.extend("--ft-page-header-bottom-border-color","",p.borderGlobalSubtle),titleColor:r.extend("--ft-page-header-title-color","",p.contentGlobalPrimary),subtitleColor:r.extend("--ft-page-header-subtitle-color","",p.contentGlobalSecondary)};var Vf={smallContainerWidth:r.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:r.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:r.extend("--ft-modal-overlay-background-color","",c.colorGray700),overlayOpacity:r.extend("--ft-modal-overlay-opacity","",c.opacity40),shadow:r.extend("--ft-modal-shadow","",c.shadowElevation03),bodyBackgroundColor:r.extend("--ft-modal-body-background-color","",c.colorWhite),bodyColor:r.extend("--ft-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-modal-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:r.extend("--ft-modal-body-vertical-padding","",c.spacing6),bodyVerticalGap:r.extend("--ft-modal-body-vertical-gap","",c.spacing6),containerMargin:r.extend("--ft-modal-container-margin","",c.spacing3),headerBackgroundColor:r.extend("--ft-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-modal-header-border-color","",p.borderGlobalSubtle),headerColor:r.extend("--ft-modal-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:r.extend("--ft-modal-header-trailing-icon-color","",p.contentGlobalSecondary),headerVerticalPadding:r.extend("--ft-modal-header-vertical-padding","",c.spacing1),headerRightPadding:r.extend("--ft-modal-header-right-padding","",c.spacing1),headerLeftPadding:r.extend("--ft-modal-header-left-padding","",c.spacing6),headerGap:r.extend("--ft-modal-header-gap","",c.spacing2),headerBorderBottom:r.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:r.extend("--ft-modal-border-radius","",c.borderRadiusM)};var qf={overlayOpacity:r.extend("--ft-drawer-overlay-opacity","",c.opacity40),shadow:r.extend("--ft-drawer-shadow","",c.shadowElevation03),bodyColor:r.extend("--ft-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:r.extend("--ft-drawer-body-horizontal-padding","",c.spacing6),bodyVerticalPadding:r.extend("--ft-drawer-body-vertical-padding","",c.spacing6),bodyGap:r.extend("--ft-drawer-body-gap","",c.spacing6),bodyBackgroundColor:r.extend("--ft-drawer-body-background-color","",c.colorWhite),headerBackgroundColor:r.extend("--ft-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:r.extend("--ft-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:r.extend("--ft-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:r.extend("--ft-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:r.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:r.extend("--ft-drawer-header-horizontal-padding","",c.spacing2),headerBorderWidth:r.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:r.extend("--ft-drawer-header-gap","",c.spacing3),buttonsBarBackgroundColor:r.extend("--ft-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:r.extend("--ft-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:r.extend("--ft-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:r.extend("--ft-drawer-buttons-bar-horizontal-padding","",c.spacing4),buttonsBarVerticalPadding:r.extend("--ft-drawer-buttons-bar-vertical-padding","",c.spacing4),buttonsBarGap:r.extend("--ft-drawer-buttons-bar-gap","",c.spacing3),buttonsBarBorderWidth:r.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:r.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:r.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:r.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:r.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:r.extend("--ft-drawer-overlay-background-color","",c.colorGray700)};var eu={fieldHorizontalPadding:r.extend("--ft-text-input-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:r.extend("--ft-text-input-field-horizontal-gap","",c.spacing3),fieldVerticalGap:r.extend("--ft-text-input-field-vertical-gap","",c.spacing05),fieldIconSize:r.extend("--ft-text-input-field-icon-size","",c.iconSize3),fieldHeight:r.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:r.extend("--ft-text-input-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-text-input-helper-horizontal-gap","",c.spacing1),helperIconSize:r.extend("--ft-text-input-helper-icon-size","",c.iconSize2),borderRadius:r.extend("--ft-text-input-border-radius","",c.borderRadiusM),backgroundColor:r.extend("--ft-text-input-background-color","",c.colorWhite),contentValueColor:r.extend("--ft-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:r.extend("--ft-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:r.extend("--ft-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderWidth:r.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:r.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:r.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-input-disabled-component-opacity","",c.opacity40)};var nu={backgroundColor:r.extend("--ft-text-area-background-color","",c.colorWhite),contentValueColor:r.extend("--ft-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:r.extend("--ft-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:r.extend("--ft-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:r.extend("--ft-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:r.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-text-area-disabled-component-opacity","",c.opacity40),fieldHorizontalLeftPadding:r.extend("--ft-text-area-field-horizontal-left-padding","",c.spacing4),fieldHorizontalGap:r.extend("--ft-text-area-field-horizontal-gap","",c.spacing3),fieldVerticalGap:r.extend("--ft-text-area-field-vertical-gap","",c.spacing05),fieldMinHeight:r.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:r.extend("--ft-text-area-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-text-area-helper-horizontal-gap","",c.spacing1),helperIconSize:r.extend("--ft-text-area-helper-icon-size","",c.iconSize2),borderRadius:r.extend("--ft-text-area-border-radius","",c.borderRadiusM)};var pu={height:r.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:r.extend("--ft-floating-menu-horizontal-padding","",c.spacing4),offIconColor:r.extend("--ft-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:r.extend("--ft-floating-menu-off-color","",p.contentGlobalPrimary),onColor:r.extend("--ft-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:r.extend("--ft-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:r.extend("--ft-floating-menu-gap","",c.spacing3),focusFocusRingColor:r.extend("--ft-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:r.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:r.extend("--ft-floating-menu-focus-state-layer-opacity","",c.opacity8),hoverStateLayerOpacity:r.extend("--ft-floating-menu-hover-state-layer-opacity","",c.opacity8),activeStateLayerOpacity:r.extend("--ft-floating-menu-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:r.extend("--ft-floating-menu-disabled-component-opacity","",c.opacity40),iconSize:r.extend("--ft-floating-menu-icon-size","",c.iconSize3),backgroundColor:r.extend("--ft-floating-menu-background-color","",p.backgroundGlobalOnSurface)};var mu={fieldHorizontalPadding:r.extend("--ft-combobox-single-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-single-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:r.extend("--ft-combobox-single-select-field-vertical-gap","",c.spacing05),fieldIconSize:r.extend("--ft-combobox-single-select-field-icon-size","",c.iconSize3),fieldHeight:r.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:r.extend("--ft-combobox-single-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-combobox-single-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:r.extend("--ft-combobox-single-select-helper-vertical-gap","",c.spacing1),helperIconSize:r.extend("--ft-combobox-single-select-helper-icon-size","",c.iconSize2),menuVerticalGap:r.extend("--ft-combobox-single-select-menu-vertical-gap","",c.spacing2),borderRadius:r.extend("--ft-combobox-single-select-border-radius","",c.borderRadiusM),backgroundColor:r.extend("--ft-combobox-single-select-background-color","",c.colorWhite),labelColor:r.extend("--ft-combobox-single-select-label-color","",p.contentGlobalSubtle),contentValueColor:r.extend("--ft-combobox-single-select-content-value-color","",p.contentGlobalPrimary),trailingIconColor:r.extend("--ft-combobox-single-select-trailing-icon-color","",p.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-single-select-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-single-select-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:r.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:r.extend("--ft-combobox-single-select-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-single-select-error-helper-text-color","",p.contentErrorPrimary),warningBorderWidth:r.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-single-select-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-single-select-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-single-select-warning-helper-icon-color","",p.contentWarningIconOnly),focusOutlineWidth:r.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-single-select-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:r.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-single-select-disabled-component-opacity","",c.opacity40)};var xu={backgroundColor:r.extend("--ft-combobox-multi-select-background-color","",c.colorWhite),labelColor:r.extend("--ft-combobox-multi-select-label-color","",p.contentGlobalSubtle),trailingIconColor:r.extend("--ft-combobox-multi-select-trailing-icon-color","",p.contentGlobalSubtle),defaultBorderColor:r.extend("--ft-combobox-multi-select-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:r.extend("--ft-combobox-multi-select-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:r.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:r.extend("--ft-combobox-multi-select-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:r.extend("--ft-combobox-multi-select-error-helper-text-color","",p.contentErrorPrimary),errorHelperIcon:r.extend("--ft-combobox-multi-select-error-helper-icon","",p.contentErrorIconOnly),errorBorderWidth:r.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:r.extend("--ft-combobox-multi-select-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:r.extend("--ft-combobox-multi-select-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:r.extend("--ft-combobox-multi-select-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:r.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-combobox-multi-select-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:r.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:r.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:r.extend("--ft-combobox-multi-select-disabled-component-opacity","",c.opacity40),helperHorizontalPadding:r.extend("--ft-combobox-multi-select-helper-horizontal-padding","",c.spacing4),helperHorizontalGap:r.extend("--ft-combobox-multi-select-helper-horizontal-gap","",c.spacing1),helperVerticalGap:r.extend("--ft-combobox-multi-select-helper-vertical-gap","",c.spacing1),helperIconSize:r.extend("--ft-combobox-multi-select-helper-icon-size","",c.iconSize2),fieldHorizontalPadding:r.extend("--ft-combobox-multi-select-field-horizontal-padding","",c.spacing4),fieldHorizontalGap:r.extend("--ft-combobox-multi-select-field-horizontal-gap","",c.spacing3),fieldVerticalGap:r.extend("--ft-combobox-multi-select-field-vertical-gap","",c.spacing05),fieldIconSize:r.extend("--ft-combobox-multi-select-field-icon-size","",c.iconSize3),fieldMaxHeight:r.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:r.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",c.spacing1),contentValuesVerticalGap:r.extend("--ft-combobox-multi-select-content-values-vertical-gap","",c.spacing1),borderRadius:r.extend("--ft-combobox-multi-select-border-radius","",c.borderRadiusM)};var Eu={backgroundColor:r.extend("--ft-popover-background-color","",p.backgroundGlobalOnSurface),horizontalPadding:r.extend("--ft-popover-horizontal-padding","",c.spacing6),verticalPadding:r.extend("--ft-popover-vertical-padding","",c.spacing6),titleColor:r.extend("--ft-popover-title-color","",p.contentGlobalPrimary),bodyColor:r.extend("--ft-popover-body-color","",p.contentGlobalSecondary),linkColor:r.extend("--ft-popover-link-color","",p.contentActionPrimary),gap:r.extend("--ft-popover-gap","",c.spacing3),borderRadius:r.extend("--ft-popover-border-radius","",c.borderRadiusM),shadow:r.extend("--ft-popover-shadow","",c.shadowElevation02)};var Au={topLeftBorderRadius:r.extend("--ft-tabs-top-left-border-radius","",c.borderRadiusS),topRightBorderRadius:r.extend("--ft-tabs-top-right-border-radius","",c.borderRadiusS),withLabelHorizontalPadding:r.extend("--ft-tabs-with-label-horizontal-padding","",c.spacing4),withLabelVerticalPadding:r.extend("--ft-tabs-with-label-vertical-padding","",c.spacing3),horizontalGap:r.extend("--ft-tabs-horizontal-gap","",c.spacing1),verticalGap:r.extend("--ft-tabs-vertical-gap","",c.spacing1),offHoverStateLayerOpacity:r.extend("--ft-tabs-off-hover-state-layer-opacity","",c.opacity8),offDefaultStateLayerOpacity:r.extend("--ft-tabs-off-default-state-layer-opacity","",c.opacity0),offFocusStateLayerOpacity:r.extend("--ft-tabs-off-focus-state-layer-opacity","",c.opacity8),offDisabledComponentOpacity:r.extend("--ft-tabs-off-disabled-component-opacity","",c.opacity40),offColor:r.extend("--ft-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-tabs-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-tabs-on-hover-state-layer-opacity","",c.opacity8),onDefaultStateLayerOpacity:r.extend("--ft-tabs-on-default-state-layer-opacity","",c.opacity0),onFocusStateLayerOpacity:r.extend("--ft-tabs-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:r.extend("--ft-tabs-on-active-state-layer-opacity","",c.opacity16),onColor:r.extend("--ft-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:r.extend("--ft-tabs-on-state-layer-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:r.extend("--ft-tabs-icon-only-horizontal-padding","",c.spacing4),iconOnlyVerticalPadding:r.extend("--ft-tabs-icon-only-vertical-padding","",c.spacing4),alertTopPadding:r.extend("--ft-tabs-alert-top-padding","",c.spacing1),alertRightPadding:r.extend("--ft-tabs-alert-right-padding","",c.spacing05),focusOutlineWidth:r.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-tabs-focus-focus-ring-color","",p.borderActionFocusRing)};var Du={hoverStateLayerOpacity:r.extend("--ft-collapsible-hover-state-layer-opacity","",c.opacity8),focusStateLayerOpacity:r.extend("--ft-collapsible-focus-state-layer-opacity","",c.opacity8),focusOutlineWidth:r.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:r.extend("--ft-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:r.extend("--ft-collapsible-active-state-layer-opacity","",c.opacity16),disabledComponentOpacity:r.extend("--ft-collapsible-disabled-component-opacity","",c.opacity40),horizontalPadding:r.extend("--ft-collapsible-horizontal-padding","",c.spacing4),verticalPadding:r.extend("--ft-collapsible-vertical-padding","",c.spacing3),color:r.extend("--ft-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:r.extend("--ft-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:r.extend("--ft-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:r.extend("--ft-collapsible-border-color","",p.borderGlobalSubtle),iconSize:r.extend("--ft-collapsible-icon-size","",c.iconSize3)};var Mu={groupHorizontalPadding:r.extend("--ft-switch-group-horizontal-padding","",c.spacing1),groupVerticalPadding:r.extend("--ft-switch-group-vertical-padding","",c.spacing1),groupGap:r.extend("--ft-switch-group-gap","",c.spacing1),groupBackgroundColor:r.extend("--ft-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:r.extend("--ft-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:r.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:r.extend("--ft-switch-label-horizontal-padding","",c.spacing2),labelVerticalPadding:r.extend("--ft-switch-label-vertical-padding","",c.spacing1),offHoverStateLayerOpacity:r.extend("--ft-switch-off-hover-state-layer-opacity","",c.opacity8),offFocusStateLayerOpacity:r.extend("--ft-switch-off-focus-state-layer-opacity","",c.opacity8),offActiveStateLayerOpacity:r.extend("--ft-switch-off-active-state-layer-opacity","",c.opacity16),offDisabledComponentOpacity:r.extend("--ft-switch-off-disabled-component-opacity","",c.opacity40),offColor:r.extend("--ft-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-switch-on-hover-state-layer-opacity","",c.opacity8),onFocusStateLayerOpacity:r.extend("--ft-switch-on-focus-state-layer-opacity","",c.opacity8),onActiveStateLayerOpacity:r.extend("--ft-switch-on-active-state-layer-opacity","",c.opacity16),onDisabledComponentOpacity:r.extend("--ft-switch-on-disabled-component-opacity","",c.opacity40),onColor:r.extend("--ft-switch-on-color","",p.contentActionPrimary),onStateLayerColor:r.extend("--ft-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:r.extend("--ft-switch-icon-horizontal-padding","",c.spacing1),iconVerticalPadding:r.extend("--ft-switch-icon-vertical-padding","",c.spacing1),focusOutlineWidth:r.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:r.extend("--ft-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:r.extend("--ft-switch-option-border-radius","",c.borderRadiusS)};var Vu={color1Light:r.extend("--ft-chart-1-light","for area color charts",c.colorBrand40),color1Base:r.extend("--ft-chart-1-base","for line charts",c.colorBrand0),color2Light:r.extend("--ft-chart-2-light","for area color charts",c.colorYellow60),color2Base:r.extend("--ft-chart-2-base","for line charts",c.colorYellow100),color3Light:r.extend("--ft-chart-3-light","",c.colorUltramarine40),color3Base:r.extend("--ft-chart-3-base","",c.colorUltramarine70),color4Light:r.extend("--ft-chart-4-light","",c.colorCyan50),color4Base:r.extend("--ft-chart-4-base","",c.colorCyan100),color5Light:r.extend("--ft-chart-5-light","",c.colorRed40),color5Base:r.extend("--ft-chart-5-base","",c.colorRed60),color6Light:r.extend("--ft-chart-6-light","",c.colorGreen40),color6Base:r.extend("--ft-chart-6-base","",c.colorGreen70),color7Light:r.extend("--ft-chart-7-light","",c.colorOrange70),color7Base:r.extend("--ft-chart-7-base","",c.colorOrange100),color8Light:r.extend("--ft-chart-8-light","",c.colorAvocado70),color8Base:r.extend("--ft-chart-8-base","",c.colorAvocado200),color9Light:r.extend("--ft-chart-9-light","",c.colorBrown50),color9Base:r.extend("--ft-chart-9-base","",c.colorBrown200),color10Light:r.extend("--ft-chart-10-light","",c.colorGray50),color10Base:r.extend("--ft-chart-10-base","",c.colorGray80),monochrome10:r.extend("--ft-chart-monochrome-10","",c.colorBrand10),monochrome20:r.extend("--ft-chart-monochrome-20","",c.colorBrand20),monochrome30:r.extend("--ft-chart-monochrome-30","",c.colorBrand40),monochrome40:r.extend("--ft-chart-monochrome-40","",c.colorBrand60),monochrome50:r.extend("--ft-chart-monochrome-50","",c.colorBrand0),monochrome60:r.extend("--ft-chart-monochrome-60","",c.colorBrand200)};var qu={borderWidth:r.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:r.extend("--ft-notice-horizontal-padding","",c.spacing3),verticalPadding:r.extend("--ft-notice-vertical-padding","",c.spacing2),borderRadius:r.extend("--ft-notice-border-radius","",c.borderRadiusS),gap:r.extend("--ft-notice-gap","",c.spacing2),iconSize:r.extend("--ft-notice-icon-size","",c.iconSize3),infoBackgroundColor:r.extend("--ft-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:r.extend("--ft-notice-info-border-color","",p.borderInfoSubtle),infoColor:r.extend("--ft-notice-info-color","",p.contentInfoPrimary),infoIconColor:r.extend("--ft-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:r.extend("--ft-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:r.extend("--ft-notice-warning-border-color","",p.borderWarningSubtle),warningColor:r.extend("--ft-notice-warning-color","",p.contentWarningPrimary),warningIconColor:r.extend("--ft-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:r.extend("--ft-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:r.extend("--ft-notice-error-border-color","",p.borderErrorSubtle),errorColor:r.extend("--ft-notice-error-color","",p.contentErrorPrimary),errorIconColor:r.extend("--ft-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:r.extend("--ft-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:r.extend("--ft-notice-success-border-color","",p.borderSuccessSubtle),successColor:r.extend("--ft-notice-success-color","",p.contentSuccessPrimary),successIconColor:r.extend("--ft-notice-success-icon-color","",p.contentSuccessIconOnly)};var eh={color:r.extend("--ft-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:r.extend("--ft-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:r.extend("--ft-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:r.extend("--ft-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:r.extend("--ft-checkbox-checked-hover-state-layer-opacity","",c.opacity16),checkedFocusStateLayerOpacity:r.extend("--ft-checkbox-checked-focus-state-layer-opacity","",c.opacity16),checkedActiveStateLayerOpacity:r.extend("--ft-checkbox-checked-active-state-layer-opacity","",c.opacity24),checkedDisabledComponentOpacity:r.extend("--ft-checkbox-checked-disabled-component-opacity","",c.opacity40),uncheckedBorderColor:r.extend("--ft-checkbox-unchecked-border-color","",c.colorGray80),uncheckedStateLayerColor:r.extend("--ft-checkbox-unchecked-state-layer-color","",c.colorGray80),uncheckedHoverStateLayerOpacity:r.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",c.opacity16),uncheckedFocusStateLayerOpacity:r.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",c.opacity16),uncheckedActiveStateLayerOpacity:r.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",c.opacity24),uncheckedDisabledComponentOpacity:r.extend("--ft-checkbox-unchecked-disabled-component-opacity","",c.opacity40),focusFocusRingColor:r.extend("--ft-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:r.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:r.extend("--ft-checkbox-gap","",c.spacing3)};var nh={offHoverStateLayerOpacity:r.extend("--ft-toggle-off-hover-state-layer-opacity","",c.opacity16),offFocusStateLayerOpacity:r.extend("--ft-toggle-off-focus-state-layer-opacity","",c.opacity16),offActiveStateLayerOpacity:r.extend("--ft-toggle-off-active-state-layer-opacity","",c.opacity24),offDisabledComponentOpacity:r.extend("--ft-toggle-off-disabled-component-opacity","",c.opacity40),offBackgroundColor:r.extend("--ft-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:r.extend("--ft-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:r.extend("--ft-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:r.extend("--ft-toggle-on-hover-state-layer-opacity","",c.opacity16),onFocusStateLayerOpacity:r.extend("--ft-toggle-on-focus-state-layer-opacity","",c.opacity16),onActiveStateLayerOpacity:r.extend("--ft-toggle-on-active-state-layer-opacity","",c.opacity24),onDisabledComponentOpacity:r.extend("--ft-toggle-on-disabled-component-opacity","",c.opacity40),onBackgroundColor:r.extend("--ft-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:r.extend("--ft-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:r.extend("--ft-toggle-on-icon-color","",p.contentActionPrimary),color:r.extend("--ft-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:r.extend("--ft-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:r.extend("--ft-toggle-gap","",c.spacing3)};var ph={color:r.extend("--ft-radio-color","",p.contentGlobalPrimary),selectedRadioColor:r.extend("--ft-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:r.extend("--ft-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:r.extend("--ft-radio-selected-hover-state-layer-opacity","",c.opacity16),selectedFocusStateLayerOpacity:r.extend("--ft-radio-selected-focus-state-layer-opacity","",c.opacity16),selectedActiveStateLayerOpacity:r.extend("--ft-radio-selected-active-state-layer-opacity","",c.opacity24),selectedDisabledComponentOpacity:r.extend("--ft-radio-selected-disabled-component-opacity","",c.opacity40),unselectedStateLayerColor:r.extend("--ft-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:r.extend("--ft-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:r.extend("--ft-radio-unselected-hover-state-layer-opacity","",c.opacity16),unselectedFocusStateLayerOpacity:r.extend("--ft-radio-unselected-focus-state-layer-opacity","",c.opacity16),unselectedActiveStateLayerOpacity:r.extend("--ft-radio-unselected-active-state-layer-opacity","",c.opacity24),unselectedDisabledComponentOpacity:r.extend("--ft-radio-unselected-disabled-component-opacity","",c.opacity40),focusFocusRingColor:r.extend("--ft-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:r.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:r.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:r.extend("--ft-radio-gap","",c.spacing3)};var mh={iconSize:r.extend("--ft-notification-icon-size","",c.iconSize4),leftPadding:r.extend("--ft-notification-left-padding","",c.spacing5),rightPadding:r.extend("--ft-notification-right-padding","",c.spacing4),verticalPadding:r.extend("--ft-notification-vertical-padding","",c.spacing3),infoBackgroundColor:r.extend("--ft-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:r.extend("--ft-notification-info-color","",p.contentInfoPrimary),infoIconColor:r.extend("--ft-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:r.extend("--ft-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:r.extend("--ft-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:r.extend("--ft-notification-success-color","",p.contentSuccessPrimary),successIconColor:r.extend("--ft-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:r.extend("--ft-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:r.extend("--ft-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:r.extend("--ft-notification-warning-color","",p.contentWarningPrimary),warningIconColor:r.extend("--ft-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:r.extend("--ft-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:r.extend("--ft-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:r.extend("--ft-notification-error-color","",p.contentErrorPrimary),errorIconColor:r.extend("--ft-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:r.extend("--ft-notification-error-border-color","",p.borderErrorSubtle),borderRadius:r.extend("--ft-notification-border-radius","",c.borderRadiusPill),borderWidth:r.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:r.extend("--ft-notification-leading-gap","",c.spacing2),trailingGap:r.extend("--ft-notification-trailing-gap","",c.spacing8)};var xh={horizontalPadding:r.extend("--ft-tooltip-horizontal-padding","",c.spacing2),verticalPadding:r.extend("--ft-tooltip-vertical-padding","",c.spacing2),borderRadius:r.extend("--ft-tooltip-border-radius","",c.borderRadiusS),color:r.extend("--ft-tooltip-color","",p.contentGlobalOnColor),backgroundColor:r.extend("--ft-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:r.extend("--ft-tooltip-background-opacity","",c.opacity80),shadow:r.extend("--ft-tooltip-shadow","",c.shadowElevation03),maxWidth:r.create("--ft-tooltip-max-width","","SIZE","256px"),gap:r.extend("--ft-tooltip-gap","",c.spacing05)};var Da;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Da||(Da={}));var _a;(function(t){t.large="large",t.medium="medium",t.small="small"})(_a||(_a={}));var Ir=u($());function Ta(t){let e=Pr[t];return Ir.css`
|
|
28
|
+
.ft-typography--${(0,Ir.unsafeCSS)(t)} {
|
|
29
|
+
font-family: ${e.fontFamily};
|
|
30
|
+
font-size: ${e.fontSize};
|
|
31
|
+
font-weight: ${e.fontWeight};
|
|
32
|
+
letter-spacing: ${e.letterSpacing};
|
|
33
|
+
line-height: ${e.lineHeight};
|
|
34
|
+
text-transform: ${e.textCase};
|
|
35
|
+
}
|
|
36
|
+
`}var za=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.titleFont),kt=S.FtCssVariableFactory.extend("--ft-typography-font-family","",S.designSystemVariables.contentFont),C={fontFamily:kt,fontSize:S.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:S.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:S.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:S.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:S.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Ao={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-title-font-family","",za),fontSize:S.FtCssVariableFactory.extend("--ft-typography-title-font-size","",C.fontSize,"20px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",C.letterSpacing,"0.15px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-title-line-height","",C.lineHeight,"1.2"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",C.textTransform,"inherit")},Lo={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",za),fontSize:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",C.letterSpacing,"0.105px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",C.lineHeight,"1.7"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",C.textTransform,"inherit")},Po={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",kt),fontSize:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",C.fontSize,"16px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",C.fontWeight,"600"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",C.letterSpacing,"0.144px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",C.lineHeight,"1.5"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",C.textTransform,"inherit")},Io={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",kt),fontSize:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",C.letterSpacing,"0.098px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",C.lineHeight,"1.7"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",C.textTransform,"inherit")},Nt={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",kt),fontSize:S.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",C.fontSize,"16px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",C.letterSpacing,"0.496px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",C.lineHeight,"1.5"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",C.textTransform,"inherit")},Se={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",kt),fontSize:S.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",C.letterSpacing,"0.252px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",C.lineHeight,"1.4"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",C.textTransform,"inherit")},lt={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",kt),fontSize:S.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",C.fontSize,"12px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",C.letterSpacing,"0.396px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",C.lineHeight,"1.33"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",C.textTransform,"inherit")},Bo={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",kt),fontSize:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",C.fontSize,"10px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",C.letterSpacing,"0.33px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",C.lineHeight,"1.6"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",C.textTransform,"inherit")},Do={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",kt),fontSize:S.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",C.fontSize,"10px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",C.fontWeight,"normal"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",C.letterSpacing,"1.5px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",C.lineHeight,"1.6"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",C.textTransform,"uppercase")},gt={fontFamily:S.FtCssVariableFactory.extend("--ft-typography-button-font-family","",kt),fontSize:S.FtCssVariableFactory.extend("--ft-typography-button-font-size","",C.fontSize,"14px"),fontWeight:S.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",C.fontWeight,"600"),letterSpacing:S.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",C.letterSpacing,"1.246px"),lineHeight:S.FtCssVariableFactory.extend("--ft-typography-button-line-height","",C.lineHeight,"1.15"),textTransform:S.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",C.textTransform,"uppercase")},Fa=ot.css`
|
|
37
37
|
.ft-typography--title {
|
|
38
|
-
font-family: ${
|
|
39
|
-
font-size: ${
|
|
40
|
-
font-weight: ${
|
|
41
|
-
letter-spacing: ${
|
|
42
|
-
line-height: ${
|
|
43
|
-
text-transform: ${
|
|
44
|
-
}
|
|
45
|
-
`,
|
|
38
|
+
font-family: ${Ao.fontFamily};
|
|
39
|
+
font-size: ${Ao.fontSize};
|
|
40
|
+
font-weight: ${Ao.fontWeight};
|
|
41
|
+
letter-spacing: ${Ao.letterSpacing};
|
|
42
|
+
line-height: ${Ao.lineHeight};
|
|
43
|
+
text-transform: ${Ao.textTransform};
|
|
44
|
+
}
|
|
45
|
+
`,Ma=ot.css`
|
|
46
46
|
.ft-typography--title-dense {
|
|
47
|
-
font-family: ${
|
|
48
|
-
font-size: ${
|
|
49
|
-
font-weight: ${
|
|
50
|
-
letter-spacing: ${
|
|
51
|
-
line-height: ${
|
|
52
|
-
text-transform: ${
|
|
53
|
-
}
|
|
54
|
-
|
|
47
|
+
font-family: ${Lo.fontFamily};
|
|
48
|
+
font-size: ${Lo.fontSize};
|
|
49
|
+
font-weight: ${Lo.fontWeight};
|
|
50
|
+
letter-spacing: ${Lo.letterSpacing};
|
|
51
|
+
line-height: ${Lo.lineHeight};
|
|
52
|
+
text-transform: ${Lo.textTransform};
|
|
53
|
+
}
|
|
54
|
+
`,Wa=ot.css`
|
|
55
55
|
.ft-typography--subtitle1 {
|
|
56
|
-
font-family: ${
|
|
57
|
-
font-size: ${
|
|
58
|
-
font-weight: ${
|
|
59
|
-
letter-spacing: ${
|
|
60
|
-
line-height: ${
|
|
61
|
-
text-transform: ${
|
|
62
|
-
}
|
|
63
|
-
`,
|
|
56
|
+
font-family: ${Po.fontFamily};
|
|
57
|
+
font-size: ${Po.fontSize};
|
|
58
|
+
font-weight: ${Po.fontWeight};
|
|
59
|
+
letter-spacing: ${Po.letterSpacing};
|
|
60
|
+
line-height: ${Po.lineHeight};
|
|
61
|
+
text-transform: ${Po.textTransform};
|
|
62
|
+
}
|
|
63
|
+
`,Ua=ot.css`
|
|
64
64
|
.ft-typography--subtitle2 {
|
|
65
|
-
font-family: ${
|
|
66
|
-
font-size: ${
|
|
67
|
-
font-weight: ${
|
|
68
|
-
letter-spacing: ${
|
|
69
|
-
line-height: ${
|
|
70
|
-
text-transform: ${
|
|
65
|
+
font-family: ${Io.fontFamily};
|
|
66
|
+
font-size: ${Io.fontSize};
|
|
67
|
+
font-weight: ${Io.fontWeight};
|
|
68
|
+
letter-spacing: ${Io.letterSpacing};
|
|
69
|
+
line-height: ${Io.lineHeight};
|
|
70
|
+
text-transform: ${Io.textTransform};
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
`,
|
|
73
|
+
`,Ha=ot.css`
|
|
74
74
|
.ft-typography--body1 {
|
|
75
|
-
font-family: ${
|
|
76
|
-
font-size: ${
|
|
77
|
-
font-weight: ${
|
|
78
|
-
letter-spacing: ${
|
|
79
|
-
line-height: ${
|
|
80
|
-
text-transform: ${
|
|
81
|
-
}
|
|
82
|
-
`,
|
|
75
|
+
font-family: ${Nt.fontFamily};
|
|
76
|
+
font-size: ${Nt.fontSize};
|
|
77
|
+
font-weight: ${Nt.fontWeight};
|
|
78
|
+
letter-spacing: ${Nt.letterSpacing};
|
|
79
|
+
line-height: ${Nt.lineHeight};
|
|
80
|
+
text-transform: ${Nt.textTransform};
|
|
81
|
+
}
|
|
82
|
+
`,_o=ot.css`
|
|
83
83
|
.ft-typography--body2 {
|
|
84
|
-
font-family: ${
|
|
85
|
-
font-size: ${
|
|
86
|
-
font-weight: ${
|
|
87
|
-
letter-spacing: ${
|
|
88
|
-
line-height: ${
|
|
89
|
-
text-transform: ${
|
|
90
|
-
}
|
|
91
|
-
`,
|
|
84
|
+
font-family: ${Se.fontFamily};
|
|
85
|
+
font-size: ${Se.fontSize};
|
|
86
|
+
font-weight: ${Se.fontWeight};
|
|
87
|
+
letter-spacing: ${Se.letterSpacing};
|
|
88
|
+
line-height: ${Se.lineHeight};
|
|
89
|
+
text-transform: ${Se.textTransform};
|
|
90
|
+
}
|
|
91
|
+
`,Ht=ot.css`
|
|
92
92
|
.ft-typography--caption {
|
|
93
|
-
font-family: ${
|
|
94
|
-
font-size: ${
|
|
95
|
-
font-weight: ${
|
|
96
|
-
letter-spacing: ${
|
|
97
|
-
line-height: ${
|
|
98
|
-
text-transform: ${
|
|
99
|
-
}
|
|
100
|
-
`,
|
|
93
|
+
font-family: ${lt.fontFamily};
|
|
94
|
+
font-size: ${lt.fontSize};
|
|
95
|
+
font-weight: ${lt.fontWeight};
|
|
96
|
+
letter-spacing: ${lt.letterSpacing};
|
|
97
|
+
line-height: ${lt.lineHeight};
|
|
98
|
+
text-transform: ${lt.textTransform};
|
|
99
|
+
}
|
|
100
|
+
`,Va=ot.css`
|
|
101
101
|
.ft-typography--breadcrumb {
|
|
102
|
-
font-family: ${
|
|
103
|
-
font-size: ${
|
|
104
|
-
font-weight: ${
|
|
105
|
-
letter-spacing: ${
|
|
106
|
-
line-height: ${
|
|
107
|
-
text-transform: ${
|
|
108
|
-
}
|
|
109
|
-
`,
|
|
102
|
+
font-family: ${Bo.fontFamily};
|
|
103
|
+
font-size: ${Bo.fontSize};
|
|
104
|
+
font-weight: ${Bo.fontWeight};
|
|
105
|
+
letter-spacing: ${Bo.letterSpacing};
|
|
106
|
+
line-height: ${Bo.lineHeight};
|
|
107
|
+
text-transform: ${Bo.textTransform};
|
|
108
|
+
}
|
|
109
|
+
`,ja=ot.css`
|
|
110
110
|
.ft-typography--overline {
|
|
111
|
-
font-family: ${
|
|
112
|
-
font-size: ${
|
|
113
|
-
font-weight: ${
|
|
114
|
-
letter-spacing: ${
|
|
115
|
-
line-height: ${
|
|
116
|
-
text-transform: ${
|
|
117
|
-
}
|
|
118
|
-
`,
|
|
111
|
+
font-family: ${Do.fontFamily};
|
|
112
|
+
font-size: ${Do.fontSize};
|
|
113
|
+
font-weight: ${Do.fontWeight};
|
|
114
|
+
letter-spacing: ${Do.letterSpacing};
|
|
115
|
+
line-height: ${Do.lineHeight};
|
|
116
|
+
text-transform: ${Do.textTransform};
|
|
117
|
+
}
|
|
118
|
+
`,Ka=ot.css`
|
|
119
119
|
.ft-typography--button {
|
|
120
|
-
font-family: ${
|
|
121
|
-
font-size: ${
|
|
122
|
-
font-weight: ${
|
|
123
|
-
letter-spacing: ${
|
|
124
|
-
line-height: ${
|
|
125
|
-
text-transform: ${
|
|
126
|
-
}
|
|
127
|
-
`,
|
|
120
|
+
font-family: ${gt.fontFamily};
|
|
121
|
+
font-size: ${gt.fontSize};
|
|
122
|
+
font-weight: ${gt.fontWeight};
|
|
123
|
+
letter-spacing: ${gt.letterSpacing};
|
|
124
|
+
line-height: ${gt.lineHeight};
|
|
125
|
+
text-transform: ${gt.textTransform};
|
|
126
|
+
}
|
|
127
|
+
`,Ga=ot.css`
|
|
128
128
|
.ft-typography {
|
|
129
129
|
vertical-align: inherit;
|
|
130
130
|
}
|
|
131
|
-
`,
|
|
132
|
-
<${
|
|
131
|
+
`,Za=[Object.keys(Pr).map(t=>Ta(t))];var qa=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},q=class extends Ya.FtLitElement{constructor(){super(...arguments),this.variant=po.body1}render(){return this.element?Ni`
|
|
132
|
+
<${$i(this.element)}
|
|
133
133
|
part="text"
|
|
134
134
|
class="ft-typography ft-typography--${this.variant}">
|
|
135
135
|
<slot></slot>
|
|
136
|
-
</${
|
|
137
|
-
`:
|
|
136
|
+
</${$i(this.element)}>
|
|
137
|
+
`:Ni`
|
|
138
138
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
139
|
-
`}};
|
|
139
|
+
`}};q.styles=[Fa,Ma,Wa,Ua,Ha,_o,Ht,Va,ja,Ka,Ga,...Za];qa([(0,ki.property)()],q.prototype,"element",void 0);qa([(0,ki.property)()],q.prototype,"variant",void 0);(0,Xa.customElement)("ft-typography")(q);var Ai=u(O());function Br(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Ja(t){return Br(t).split("|").pop()}function Qa(t){return Br(t).split("|").join(" > ")}function el(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map(o=>el(o,t.selected)),value:t.value}}function tl(t){return(0,Ai.flatDeep)(t.options,e=>{var o;return(o=e.subOptions)!==null&&o!==void 0?o:[]}).filter(e=>e.selected).map(e=>e.label)}function Li(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map(e=>el(e,!1))}}function ol(t){return(0,Ai.flatDeep)(t.rootNodes,e=>e.selected?[]:e.childNodes).filter(e=>e.selected).map(e=>e.value)}var Zi=u(O());var bo=u($()),Y=u(Z()),rt=u(O());var Ge=u($()),xe=u(Z()),Es=u(no()),Kr=u(O());var Vi=u(O());var ur=u(Z()),is=u(O());var gl=u($()),I=u(O());var sl=u($()),fe=u(O()),rl=fe.FtCssVariableFactory.extend("--ft-ripple-color","",fe.designSystemVariables.colorContent),_={color:rl,backgroundColor:fe.FtCssVariableFactory.extend("--ft-ripple-background-color","",rl),opacityContentOnSurfacePressed:fe.FtCssVariableFactory.external(fe.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:fe.FtCssVariableFactory.external(fe.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:fe.FtCssVariableFactory.external(fe.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:fe.FtCssVariableFactory.external(fe.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:fe.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},il=fe.FtCssVariableFactory.extend("--ft-ripple-color","",fe.designSystemVariables.colorPrimary),nl={color:il,backgroundColor:fe.FtCssVariableFactory.extend("--ft-ripple-background-color","",il)},al=fe.FtCssVariableFactory.extend("--ft-ripple-color","",fe.designSystemVariables.colorSecondary),ll={color:al,backgroundColor:fe.FtCssVariableFactory.extend("--ft-ripple-background-color","",al)},cl=sl.css`
|
|
140
140
|
:host {
|
|
141
141
|
display: contents;
|
|
142
142
|
}
|
|
@@ -149,7 +149,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
149
149
|
|
|
150
150
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
151
151
|
overflow: hidden;
|
|
152
|
-
border-radius: ${
|
|
152
|
+
border-radius: ${_.borderRadius};
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
.ft-ripple .ft-ripple--background,
|
|
@@ -183,27 +183,27 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
.ft-ripple .ft-ripple--background {
|
|
186
|
-
background-color: ${
|
|
186
|
+
background-color: ${_.backgroundColor};
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.ft-ripple .ft-ripple--effect {
|
|
190
|
-
background-color: ${
|
|
190
|
+
background-color: ${_.color};
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
194
|
-
background-color: ${
|
|
194
|
+
background-color: ${ll.backgroundColor};
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
198
|
-
background-color: ${
|
|
198
|
+
background-color: ${ll.color};
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
202
|
-
background-color: ${
|
|
202
|
+
background-color: ${nl.backgroundColor};
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
206
|
-
background-color: ${
|
|
206
|
+
background-color: ${nl.color};
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
.ft-ripple .ft-ripple--background {
|
|
@@ -233,22 +233,22 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
236
|
-
opacity: ${
|
|
236
|
+
opacity: ${_.opacityContentOnSurfaceHover};
|
|
237
237
|
}
|
|
238
238
|
|
|
239
239
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
240
|
-
opacity: ${
|
|
240
|
+
opacity: ${_.opacityContentOnSurfaceSelected};
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
244
|
-
opacity: ${
|
|
244
|
+
opacity: ${_.opacityContentOnSurfaceFocused};
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
248
|
-
opacity: ${
|
|
248
|
+
opacity: ${_.opacityContentOnSurfacePressed};
|
|
249
249
|
transform: translate(-50%, -50%) scale(1);
|
|
250
250
|
}
|
|
251
|
-
`;var
|
|
251
|
+
`;var pl=u($()),ir=u(O()),Pe={color:ir.FtCssVariableFactory.extend("--ft-loader-color","",ir.designSystemVariables.colorPrimary),size:ir.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},dl=pl.css`
|
|
252
252
|
:host {
|
|
253
253
|
line-height: 0;
|
|
254
254
|
}
|
|
@@ -257,8 +257,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
257
257
|
display: inline-block;
|
|
258
258
|
position: relative;
|
|
259
259
|
|
|
260
|
-
width: ${
|
|
261
|
-
height: ${
|
|
260
|
+
width: ${Pe.size};
|
|
261
|
+
height: ${Pe.size};
|
|
262
262
|
}
|
|
263
263
|
|
|
264
264
|
.ft-loader div {
|
|
@@ -267,7 +267,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
267
267
|
width: 25%;
|
|
268
268
|
height: 25%;
|
|
269
269
|
border-radius: 50%;
|
|
270
|
-
background: ${
|
|
270
|
+
background: ${Pe.color};
|
|
271
271
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
272
272
|
}
|
|
273
273
|
|
|
@@ -314,10 +314,10 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
314
314
|
transform: translate(0, 0);
|
|
315
315
|
}
|
|
316
316
|
100% {
|
|
317
|
-
transform: translate(calc(0.35 * ${
|
|
317
|
+
transform: translate(calc(0.35 * ${Pe.size}), 0);
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
|
-
`;var
|
|
320
|
+
`;var fl=u($()),At=u(O()),ve={size:At.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:At.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",At.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:At.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",At.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:At.FtCssVariableFactory.extend("--ft-icon-material-font-family","",At.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:At.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ul=fl.css`
|
|
321
321
|
:host, i.ft-icon {
|
|
322
322
|
display: inline-flex;
|
|
323
323
|
align-items: center;
|
|
@@ -326,14 +326,14 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
:host {
|
|
329
|
-
width: ${
|
|
330
|
-
height: ${
|
|
329
|
+
width: ${ve.size};
|
|
330
|
+
height: ${ve.size};
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
i.ft-icon {
|
|
334
334
|
width: 100%;
|
|
335
335
|
height: 100%;
|
|
336
|
-
font-size: ${
|
|
336
|
+
font-size: ${ve.size};
|
|
337
337
|
line-height: 1;
|
|
338
338
|
font-weight: normal;
|
|
339
339
|
text-transform: none;
|
|
@@ -344,28 +344,28 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
344
344
|
text-rendering: auto;
|
|
345
345
|
-webkit-font-smoothing: antialiased;
|
|
346
346
|
-moz-osx-font-smoothing: grayscale;
|
|
347
|
-
vertical-align: ${
|
|
347
|
+
vertical-align: ${ve.verticalAlign};
|
|
348
348
|
}
|
|
349
349
|
|
|
350
350
|
i.ft-icon.ft-icon--fluid-topics {
|
|
351
|
-
font-family: ${
|
|
351
|
+
font-family: ${ve.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
352
352
|
|
|
353
353
|
/* Ugly fix because font is broken */
|
|
354
|
-
font-size: calc(0.75 * ${
|
|
355
|
-
line-height: ${
|
|
354
|
+
font-size: calc(0.75 * ${ve.size});
|
|
355
|
+
line-height: ${ve.size};
|
|
356
356
|
position: relative;
|
|
357
357
|
top: -4%;
|
|
358
358
|
justify-content: center;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
.ft-icon--file-format {
|
|
362
|
-
font-family: ${
|
|
362
|
+
font-family: ${ve.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
363
363
|
}
|
|
364
364
|
|
|
365
365
|
.ft-icon--material {
|
|
366
|
-
font-family: ${
|
|
366
|
+
font-family: ${ve.materialFontFamily}, "Material Icons", sans-serif;
|
|
367
367
|
}
|
|
368
|
-
`;var
|
|
368
|
+
`;var hl=I.FtCssVariableFactory.extend("--ft-button-color","",I.designSystemVariables.colorPrimary),M={backgroundColor:I.FtCssVariableFactory.extend("--ft-button-background-color","",I.designSystemVariables.colorSurface),borderRadius:I.FtCssVariableFactory.extend("--ft-button-border-radius","",I.designSystemVariables.borderRadiusL),color:hl,fontSize:I.FtCssVariableFactory.extend("--ft-button-font-size","",gt.fontSize),iconSize:I.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:I.FtCssVariableFactory.extend("--ft-button-ripple-color","",hl),verticalPadding:I.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:I.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:I.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOpacityDisabled,"Design system")},ml=I.FtCssVariableFactory.extend("--ft-button-primary-color","",I.FtCssVariableFactory.extend("--ft-button-color","",I.designSystemVariables.colorOnPrimary)),Pi={backgroundColor:I.FtCssVariableFactory.extend("--ft-button-primary-background-color","",I.FtCssVariableFactory.extend("--ft-button-background-color","",I.designSystemVariables.colorPrimary)),color:ml,rippleColor:I.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",ml)},yt={borderRadius:I.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",I.FtCssVariableFactory.extend("--ft-button-border-radius","",I.designSystemVariables.borderRadiusM)),verticalPadding:I.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:I.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:I.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},yl=[gl.css`
|
|
369
369
|
:host {
|
|
370
370
|
display: inline-block;
|
|
371
371
|
max-width: 100%;
|
|
@@ -376,7 +376,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
376
376
|
box-shadow: 0px 0px 0px transparent;
|
|
377
377
|
border: 0px solid transparent;
|
|
378
378
|
text-shadow: 0px 0px 0px transparent;
|
|
379
|
-
font-size: ${
|
|
379
|
+
font-size: ${M.fontSize};
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
button:hover {
|
|
@@ -405,31 +405,31 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
405
405
|
border: none;
|
|
406
406
|
pointer-events: auto;
|
|
407
407
|
|
|
408
|
-
--ft-button-internal-line-height: max(calc(${
|
|
409
|
-
--ft-button-internal-color: ${
|
|
410
|
-
${(0
|
|
411
|
-
${(0
|
|
408
|
+
--ft-button-internal-line-height: max(calc(${M.fontSize} + 2px), ${M.iconSize});
|
|
409
|
+
--ft-button-internal-color: ${M.color};
|
|
410
|
+
${(0,I.setVariable)(ve.size,M.iconSize)};
|
|
411
|
+
${(0,I.setVariable)(_.color,M.rippleColor)};
|
|
412
412
|
|
|
413
|
-
border-radius: ${
|
|
414
|
-
padding: ${
|
|
415
|
-
background-color: ${
|
|
413
|
+
border-radius: ${M.borderRadius};
|
|
414
|
+
padding: ${M.verticalPadding} ${M.horizontalPadding};
|
|
415
|
+
background-color: ${M.backgroundColor};
|
|
416
416
|
color: var(--ft-button-internal-color);
|
|
417
417
|
-webkit-mask-image: radial-gradient(white, black);
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
.ft-button.ft-button--outlined {
|
|
421
421
|
border: 1px solid var(--ft-button-internal-color);
|
|
422
|
-
padding: calc(${
|
|
422
|
+
padding: calc(${M.verticalPadding} - 1px) calc(${M.horizontalPadding} - 1px);
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
.ft-button.ft-button--dense {
|
|
426
|
-
padding: ${
|
|
427
|
-
border-radius: ${
|
|
428
|
-
gap: ${
|
|
426
|
+
padding: ${yt.verticalPadding} ${yt.horizontalPadding};
|
|
427
|
+
border-radius: ${yt.borderRadius};
|
|
428
|
+
gap: ${yt.iconPadding};
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
432
|
-
padding: calc(${
|
|
432
|
+
padding: calc(${yt.verticalPadding} - 1px) calc(${yt.horizontalPadding} - 1px);
|
|
433
433
|
}
|
|
434
434
|
|
|
435
435
|
.ft-button:not([disabled]):hover {
|
|
@@ -437,22 +437,22 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
437
437
|
}
|
|
438
438
|
|
|
439
439
|
.ft-button--round {
|
|
440
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
440
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${M.verticalPadding});
|
|
441
441
|
}
|
|
442
442
|
|
|
443
443
|
.ft-button--round.ft-button--dense {
|
|
444
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
444
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${yt.verticalPadding});
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
.ft-button[disabled] {
|
|
448
448
|
filter: grayscale(1);
|
|
449
|
-
opacity: ${
|
|
449
|
+
opacity: ${M.opacityDisabled};
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
.ft-button.ft-button--primary {
|
|
453
|
-
background-color: ${
|
|
454
|
-
--ft-button-internal-color: ${
|
|
455
|
-
${(0
|
|
453
|
+
background-color: ${Pi.backgroundColor};
|
|
454
|
+
--ft-button-internal-color: ${Pi.color};
|
|
455
|
+
${(0,I.setVariable)(_.color,Pi.rippleColor)};
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
.ft-button:focus {
|
|
@@ -465,13 +465,13 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
465
465
|
white-space: nowrap;
|
|
466
466
|
text-overflow: ellipsis;
|
|
467
467
|
display: block;
|
|
468
|
-
margin: 0 ${
|
|
469
|
-
${(0
|
|
470
|
-
${(0
|
|
468
|
+
margin: 0 ${M.iconPadding};
|
|
469
|
+
${(0,I.setVariable)(gt.fontSize,"1em")};
|
|
470
|
+
${(0,I.setVariable)(gt.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
.ft-button--dense .ft-button--label {
|
|
474
|
-
margin: 0 ${
|
|
474
|
+
margin: 0 ${yt.iconPadding};
|
|
475
475
|
}
|
|
476
476
|
|
|
477
477
|
.ft-button--label[hidden] {
|
|
@@ -484,13 +484,13 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
484
484
|
}
|
|
485
485
|
|
|
486
486
|
.ft-button--label[hidden] + [part="icon"] {
|
|
487
|
-
margin: 0 calc(${
|
|
488
|
-
padding: 0 ${
|
|
487
|
+
margin: 0 calc(${M.horizontalPadding} * -1);
|
|
488
|
+
padding: 0 ${M.verticalPadding};
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
492
|
-
margin: 0 calc(${
|
|
493
|
-
padding: 0 ${
|
|
492
|
+
margin: 0 calc(${yt.horizontalPadding} * -1);
|
|
493
|
+
padding: 0 ${yt.verticalPadding};
|
|
494
494
|
}
|
|
495
495
|
|
|
496
496
|
.ft-button:not(.ft-button--trailing-icon) [part="label"]{
|
|
@@ -498,21 +498,21 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
498
498
|
}
|
|
499
499
|
|
|
500
500
|
ft-loader {
|
|
501
|
-
${(0
|
|
502
|
-
${(0
|
|
501
|
+
${(0,I.setVariable)(Pe.size,M.iconSize)};
|
|
502
|
+
${(0,I.setVariable)(Pe.color,"var(--ft-button-internal-color)")};
|
|
503
503
|
}
|
|
504
|
-
|
|
504
|
+
`,I.noTextSelect];var Wo=u(O());var Sl=u(O());var vl=u($()),Oe=u(Z()),xl=u(st()),nr=u(O());var Ie=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},z=class extends nr.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 nr.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new nr.Debouncer(10),this.moveRipple=e=>{var o,i;let{x:n,y:a}=this.getCoordinates(e),l=(i=(o=this.ripple)===null||o===void 0?void 0:o.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-l.x:l.width/2),this.originY=Math.round(a!=null?a-l.y:l.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return vl.html`
|
|
505
505
|
<style>
|
|
506
506
|
.ft-ripple .ft-ripple--effect {
|
|
507
507
|
left: ${this.originX}px;
|
|
508
508
|
top: ${this.originY}px;
|
|
509
509
|
}
|
|
510
510
|
</style>
|
|
511
|
-
<div class="${(0,
|
|
511
|
+
<div class="${(0,xl.classMap)(e)}">
|
|
512
512
|
<div class="ft-ripple--background"></div>
|
|
513
513
|
<div class="ft-ripple--effect"></div>
|
|
514
514
|
</div>
|
|
515
|
-
`}contentAvailableCallback(
|
|
515
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var o,i;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(o=this.target)===null||o===void 0||o.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,o;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((o=this.target)!==null&&o!==void 0?o:i)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let o=(...s)=>d=>{s.forEach(f=>window.addEventListener(f,this.endPress,{once:!0})),this.startPress(d)},i=o("mouseup","contextmenu"),n=o("touchend","touchcancel"),a=s=>{["Enter"," "].includes(s.key)&&o("keyup")(s)},l={passive:!0};e.addEventListener("mouseover",this.startHover,l),e.addEventListener("mousemove",this.moveRipple,l),e.addEventListener("mouseleave",this.endHover,l),e.addEventListener("mousedown",i,l),e.addEventListener("touchstart",n,l),e.addEventListener("touchmove",this.moveRipple,l),e.addEventListener("keydown",a,l),e.addEventListener("focus",this.startFocus,l),e.addEventListener("blur",this.endFocus,l),e.addEventListener("focusin",this.startFocus,l),e.addEventListener("focusout",this.endFocus,l),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,l),e.removeEventListener("mousemove",this.moveRipple,l),e.removeEventListener("mouseleave",this.endHover,l),e.removeEventListener("mousedown",i,l),e.removeEventListener("touchstart",n,l),e.removeEventListener("touchmove",this.moveRipple,l),e.removeEventListener("keydown",a,l),e.removeEventListener("focus",this.startFocus,l),e.removeEventListener("blur",this.endFocus,l),e.removeEventListener("focusin",this.startFocus,l),e.removeEventListener("focusout",this.endFocus,l),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let o=e,i=e,n,a;return o.x!=null?{x:n,y:a}=o:i.touches!=null&&(n=i.touches[0].clientX,a=i.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let o of e.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};z.elementDefinitions={};z.styles=cl;Ie([(0,Oe.property)({type:Boolean})],z.prototype,"primary",void 0);Ie([(0,Oe.property)({type:Boolean})],z.prototype,"secondary",void 0);Ie([(0,Oe.property)({type:Boolean})],z.prototype,"unbounded",void 0);Ie([(0,Oe.property)({type:Boolean})],z.prototype,"activated",void 0);Ie([(0,Oe.property)({type:Boolean})],z.prototype,"selected",void 0);Ie([(0,Oe.property)({type:Boolean})],z.prototype,"disabled",void 0);Ie([(0,Oe.state)()],z.prototype,"hovered",void 0);Ie([(0,Oe.state)()],z.prototype,"focused",void 0);Ie([(0,Oe.state)()],z.prototype,"pressed",void 0);Ie([(0,Oe.state)()],z.prototype,"rippling",void 0);Ie([(0,Oe.state)()],z.prototype,"originX",void 0);Ie([(0,Oe.state)()],z.prototype,"originY",void 0);Ie([(0,Oe.query)(".ft-ripple")],z.prototype,"ripple",void 0);Ie([(0,Oe.query)(".ft-ripple--effect")],z.prototype,"rippleEffect",void 0);(0,Sl.customElement)("ft-ripple")(z);var Gl=u(O());var Kl=u($()),me=u(Z()),dr=u(O());var Ol=u($()),Lt=u(O()),Vt={distance:Lt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Lt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Lt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:Lt.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:Lt.FtCssVariableFactory.external(Lt.designSystemVariables.borderRadiusS,"Design system"),maxWidth:Lt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},wl=Ol.css`
|
|
516
516
|
.ft-tooltip--container {
|
|
517
517
|
display: block;
|
|
518
518
|
}
|
|
@@ -527,21 +527,21 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
527
527
|
box-sizing: border-box;
|
|
528
528
|
overflow: hidden;
|
|
529
529
|
width: max-content;
|
|
530
|
-
max-width: ${
|
|
530
|
+
max-width: ${Vt.maxWidth};
|
|
531
531
|
text-align: center;
|
|
532
|
-
padding: ${
|
|
533
|
-
z-index: ${
|
|
532
|
+
padding: ${Vt.distance};
|
|
533
|
+
z-index: ${Vt.zIndex};
|
|
534
534
|
}
|
|
535
535
|
|
|
536
536
|
.ft-tooltip--content {
|
|
537
537
|
padding: 4px 8px;
|
|
538
|
-
border-radius: ${
|
|
539
|
-
background-color: ${
|
|
540
|
-
color: ${
|
|
538
|
+
border-radius: ${Vt.borderRadiusS};
|
|
539
|
+
background-color: ${Vt.backgroundColor};
|
|
540
|
+
color: ${Vt.color};
|
|
541
541
|
position: relative;
|
|
542
542
|
word-break: break-word;
|
|
543
543
|
}
|
|
544
|
-
`;var pn=["top","right","bottom","left"],cn=["start","end"],Vr=pn.reduce((o,t)=>o.concat(t,t+"-"+cn[0],t+"-"+cn[1]),[]),Io=Math.min,Ie=Math.max,Po=Math.round;var Oe=o=>({x:o,y:o}),Ss={left:"right",right:"left",bottom:"top",top:"bottom"},Os={start:"end",end:"start"};function Gr(o,t,r){return Ie(o,Io(t,r))}function rr(o,t){return typeof o=="function"?o(t):o}function mo(o){return o.split("-")[0]}function Pe(o){return o.split("-")[1]}function Zr(o){return o==="x"?"y":"x"}function Kr(o){return o==="y"?"height":"width"}function ir(o){return["top","bottom"].includes(mo(o))?"y":"x"}function jr(o){return Zr(ir(o))}function dn(o,t,r){r===void 0&&(r=!1);let i=Pe(o),a=jr(o),n=Kr(a),l=a==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(l=Hr(l)),[l,Hr(l)]}function fn(o){return o.replace(/start|end/g,t=>Os[t])}function Hr(o){return o.replace(/left|right|bottom|top/g,t=>Ss[t])}function Cs(o){return{top:0,right:0,bottom:0,left:0,...o}}function hn(o){return typeof o!="number"?Cs(o):{top:o,right:o,bottom:o,left:o}}function Ze(o){return{...o,top:o.y,left:o.x,right:o.x+o.width,bottom:o.y+o.height}}function un(o,t,r){let{reference:i,floating:a}=o,n=ir(t),l=jr(t),c=Kr(l),f=mo(t),h=n==="y",v=i.x+i.width/2-a.width/2,x=i.y+i.height/2-a.height/2,_=i[c]/2-a[c]/2,B;switch(f){case"top":B={x:v,y:i.y-a.height};break;case"bottom":B={x:v,y:i.y+i.height};break;case"right":B={x:i.x+i.width,y:x};break;case"left":B={x:i.x-a.width,y:x};break;default:B={x:i.x,y:i.y}}switch(Pe(t)){case"start":B[l]-=_*(r&&h?-1:1);break;case"end":B[l]+=_*(r&&h?-1:1);break}return B}var mn=async(o,t,r)=>{let{placement:i="bottom",strategy:a="absolute",middleware:n=[],platform:l}=r,c=n.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t)),h=await l.getElementRects({reference:o,floating:t,strategy:a}),{x:v,y:x}=un(h,i,f),_=i,B={},M=0;for(let it=0;it<c.length;it++){let{name:ct,fn:at}=c[it],{x:pt,y:St,data:Le,reset:vt}=await at({x:v,y:x,initialPlacement:i,placement:_,strategy:a,middlewareData:B,rects:h,platform:l,elements:{reference:o,floating:t}});if(v=pt??v,x=St??x,B={...B,[ct]:{...B[ct],...Le}},vt&&M<=50){M++,typeof vt=="object"&&(vt.placement&&(_=vt.placement),vt.rects&&(h=vt.rects===!0?await l.getElementRects({reference:o,floating:t,strategy:a}):vt.rects),{x:v,y:x}=un(h,_,f)),it=-1;continue}}return{x:v,y:x,placement:_,strategy:a,middlewareData:B}};async function qr(o,t){var r;t===void 0&&(t={});let{x:i,y:a,platform:n,rects:l,elements:c,strategy:f}=o,{boundary:h="clippingAncestors",rootBoundary:v="viewport",elementContext:x="floating",altBoundary:_=!1,padding:B=0}=rr(t,o),M=hn(B),ct=c[_?x==="floating"?"reference":"floating":x],at=Ze(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(ct)))==null||r?ct:ct.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(c.floating)),boundary:h,rootBoundary:v,strategy:f})),pt=x==="floating"?{...l.floating,x:i,y:a}:l.reference,St=await(n.getOffsetParent==null?void 0:n.getOffsetParent(c.floating)),Le=await(n.isElement==null?void 0:n.isElement(St))?await(n.getScale==null?void 0:n.getScale(St))||{x:1,y:1}:{x:1,y:1},vt=Ze(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:pt,offsetParent:St,strategy:f}):pt);return{top:(at.top-vt.top+M.top)/Le.y,bottom:(vt.bottom-at.bottom+M.bottom)/Le.y,left:(at.left-vt.left+M.left)/Le.x,right:(vt.right-at.right+M.right)/Le.x}}function ws(o,t,r){return(o?[...r.filter(a=>Pe(a)===o),...r.filter(a=>Pe(a)!==o)]:r.filter(a=>mo(a)===a)).filter(a=>o?Pe(a)===o||(t?fn(a)!==a:!1):!0)}var Yr=function(o){return o===void 0&&(o={}),{name:"autoPlacement",options:o,async fn(t){var r,i,a;let{rects:n,middlewareData:l,placement:c,platform:f,elements:h}=t,{crossAxis:v=!1,alignment:x,allowedPlacements:_=Vr,autoAlignment:B=!0,...M}=rr(o,t),it=x!==void 0||_===Vr?ws(x||null,B,_):_,ct=await qr(t,M),at=((r=l.autoPlacement)==null?void 0:r.index)||0,pt=it[at];if(pt==null)return{};let St=dn(pt,n,await(f.isRTL==null?void 0:f.isRTL(h.floating)));if(c!==pt)return{reset:{placement:it[0]}};let Le=[ct[mo(pt)],ct[St[0]],ct[St[1]]],vt=[...((i=l.autoPlacement)==null?void 0:i.overflows)||[],{placement:pt,overflows:Le}],xi=it[at+1];if(xi)return{data:{index:at+1,overflows:vt},reset:{placement:xi}};let vi=vt.map(ne=>{let $o=Pe(ne.placement);return[ne.placement,$o&&v?ne.overflows.slice(0,2).reduce((ls,ss)=>ls+ss,0):ne.overflows[0],ne.overflows]}).sort((ne,$o)=>ne[1]-$o[1]),Si=((a=vi.filter(ne=>ne[2].slice(0,Pe(ne[0])?2:3).every($o=>$o<=0))[0])==null?void 0:a[0])||vi[0][0];return Si!==c?{data:{index:at+1,overflows:vt},reset:{placement:Si}}:{}}}};var Xr=function(o){return o===void 0&&(o={}),{name:"shift",options:o,async fn(t){let{x:r,y:i,placement:a}=t,{mainAxis:n=!0,crossAxis:l=!1,limiter:c={fn:ct=>{let{x:at,y:pt}=ct;return{x:at,y:pt}}},...f}=rr(o,t),h={x:r,y:i},v=await qr(t,f),x=ir(mo(a)),_=Zr(x),B=h[_],M=h[x];if(n){let ct=_==="y"?"top":"left",at=_==="y"?"bottom":"right",pt=B+v[ct],St=B-v[at];B=Gr(pt,B,St)}if(l){let ct=x==="y"?"top":"left",at=x==="y"?"bottom":"right",pt=M+v[ct],St=M-v[at];M=Gr(pt,M,St)}let it=c.fn({...t,[_]:B,[x]:M});return{...it,data:{x:it.x-r,y:it.y-i}}}}};function Ce(o){return bn(o)?(o.nodeName||"").toLowerCase():"#document"}function Bt(o){var t;return(o==null||(t=o.ownerDocument)==null?void 0:t.defaultView)||window}function we(o){var t;return(t=(bn(o)?o.ownerDocument:o.document)||window.document)==null?void 0:t.documentElement}function bn(o){return o instanceof Node||o instanceof Bt(o).Node}function ce(o){return o instanceof Element||o instanceof Bt(o).Element}function te(o){return o instanceof HTMLElement||o instanceof Bt(o).HTMLElement}function gn(o){return typeof ShadowRoot>"u"?!1:o instanceof ShadowRoot||o instanceof Bt(o).ShadowRoot}function go(o){let{overflow:t,overflowX:r,overflowY:i,display:a}=_t(o);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!["inline","contents"].includes(a)}function yn(o){return["table","td","th"].includes(Ce(o))}function nr(o){let t=lr(),r=_t(o);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(r.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(r.contain||"").includes(i))}function xn(o){let t=Ke(o);for(;te(t)&&!zo(t);){if(nr(t))return t;t=Ke(t)}return null}function lr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function zo(o){return["html","body","#document"].includes(Ce(o))}function _t(o){return Bt(o).getComputedStyle(o)}function Fo(o){return ce(o)?{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop}:{scrollLeft:o.pageXOffset,scrollTop:o.pageYOffset}}function Ke(o){if(Ce(o)==="html")return o;let t=o.assignedSlot||o.parentNode||gn(o)&&o.host||we(o);return gn(t)?t.host:t}function vn(o){let t=Ke(o);return zo(t)?o.ownerDocument?o.ownerDocument.body:o.body:te(t)&&go(t)?t:vn(t)}function ar(o,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let a=vn(o),n=a===((i=o.ownerDocument)==null?void 0:i.body),l=Bt(a);return n?t.concat(l,l.visualViewport||[],go(a)?a:[],l.frameElement&&r?ar(l.frameElement):[]):t.concat(a,ar(a,[],r))}function Cn(o){let t=_t(o),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,a=te(o),n=a?o.offsetWidth:r,l=a?o.offsetHeight:i,c=Po(r)!==n||Po(i)!==l;return c&&(r=n,i=l),{width:r,height:i,$:c}}function wn(o){return ce(o)?o:o.contextElement}function bo(o){let t=wn(o);if(!te(t))return Oe(1);let r=t.getBoundingClientRect(),{width:i,height:a,$:n}=Cn(t),l=(n?Po(r.width):r.width)/i,c=(n?Po(r.height):r.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}var $s=Oe(0);function $n(o){let t=Bt(o);return!lr()||!t.visualViewport?$s:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Es(o,t,r){return t===void 0&&(t=!1),!r||t&&r!==Bt(o)?!1:t}function Do(o,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let a=o.getBoundingClientRect(),n=wn(o),l=Oe(1);t&&(i?ce(i)&&(l=bo(i)):l=bo(o));let c=Es(n,r,i)?$n(n):Oe(0),f=(a.left+c.x)/l.x,h=(a.top+c.y)/l.y,v=a.width/l.x,x=a.height/l.y;if(n){let _=Bt(n),B=i&&ce(i)?Bt(i):i,M=_.frameElement;for(;M&&i&&B!==_;){let it=bo(M),ct=M.getBoundingClientRect(),at=_t(M),pt=ct.left+(M.clientLeft+parseFloat(at.paddingLeft))*it.x,St=ct.top+(M.clientTop+parseFloat(at.paddingTop))*it.y;f*=it.x,h*=it.y,v*=it.x,x*=it.y,f+=pt,h+=St,M=Bt(M).frameElement}}return Ze({width:v,height:x,x:f,y:h})}function Rs(o){let{rect:t,offsetParent:r,strategy:i}=o,a=te(r),n=we(r);if(r===n)return t;let l={scrollLeft:0,scrollTop:0},c=Oe(1),f=Oe(0);if((a||!a&&i!=="fixed")&&((Ce(r)!=="body"||go(n))&&(l=Fo(r)),te(r))){let h=Do(r);c=bo(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}return{width:t.width*c.x,height:t.height*c.y,x:t.x*c.x-l.scrollLeft*c.x+f.x,y:t.y*c.y-l.scrollTop*c.y+f.y}}function Ls(o){return Array.from(o.getClientRects())}function En(o){return Do(we(o)).left+Fo(o).scrollLeft}function ks(o){let t=we(o),r=Fo(o),i=o.ownerDocument.body,a=Ie(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),n=Ie(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),l=-r.scrollLeft+En(o),c=-r.scrollTop;return _t(i).direction==="rtl"&&(l+=Ie(t.clientWidth,i.clientWidth)-a),{width:a,height:n,x:l,y:c}}function Ns(o,t){let r=Bt(o),i=we(o),a=r.visualViewport,n=i.clientWidth,l=i.clientHeight,c=0,f=0;if(a){n=a.width,l=a.height;let h=lr();(!h||h&&t==="fixed")&&(c=a.offsetLeft,f=a.offsetTop)}return{width:n,height:l,x:c,y:f}}function Bs(o,t){let r=Do(o,!0,t==="fixed"),i=r.top+o.clientTop,a=r.left+o.clientLeft,n=te(o)?bo(o):Oe(1),l=o.clientWidth*n.x,c=o.clientHeight*n.y,f=a*n.x,h=i*n.y;return{width:l,height:c,x:f,y:h}}function Sn(o,t,r){let i;if(t==="viewport")i=Ns(o,r);else if(t==="document")i=ks(we(o));else if(ce(t))i=Bs(t,r);else{let a=$n(o);i={...t,x:t.x-a.x,y:t.y-a.y}}return Ze(i)}function Rn(o,t){let r=Ke(o);return r===t||!ce(r)||zo(r)?!1:_t(r).position==="fixed"||Rn(r,t)}function As(o,t){let r=t.get(o);if(r)return r;let i=ar(o,[],!1).filter(c=>ce(c)&&Ce(c)!=="body"),a=null,n=_t(o).position==="fixed",l=n?Ke(o):o;for(;ce(l)&&!zo(l);){let c=_t(l),f=nr(l);!f&&c.position==="fixed"&&(a=null),(n?!f&&!a:!f&&c.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||go(l)&&!f&&Rn(o,l))?i=i.filter(v=>v!==l):a=c,l=Ke(l)}return t.set(o,i),i}function Is(o){let{element:t,boundary:r,rootBoundary:i,strategy:a}=o,l=[...r==="clippingAncestors"?As(t,this._c):[].concat(r),i],c=l[0],f=l.reduce((h,v)=>{let x=Sn(t,v,a);return h.top=Ie(x.top,h.top),h.right=Io(x.right,h.right),h.bottom=Io(x.bottom,h.bottom),h.left=Ie(x.left,h.left),h},Sn(t,c,a));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Ps(o){return Cn(o)}function zs(o,t,r){let i=te(t),a=we(t),n=r==="fixed",l=Do(o,!0,n,t),c={scrollLeft:0,scrollTop:0},f=Oe(0);if(i||!i&&!n)if((Ce(t)!=="body"||go(a))&&(c=Fo(t)),i){let h=Do(t,!0,n,t);f.x=h.x+t.clientLeft,f.y=h.y+t.clientTop}else a&&(f.x=En(a));return{x:l.left+c.scrollLeft-f.x,y:l.top+c.scrollTop-f.y,width:l.width,height:l.height}}function On(o,t){return!te(o)||_t(o).position==="fixed"?null:t?t(o):o.offsetParent}function Ln(o,t){let r=Bt(o);if(!te(o))return r;let i=On(o,t);for(;i&&yn(i)&&_t(i).position==="static";)i=On(i,t);return i&&(Ce(i)==="html"||Ce(i)==="body"&&_t(i).position==="static"&&!nr(i))?r:i||xn(o)||r}var Fs=async function(o){let{reference:t,floating:r,strategy:i}=o,a=this.getOffsetParent||Ln,n=this.getDimensions;return{reference:zs(t,await a(r),i),floating:{x:0,y:0,...await n(r)}}};function Ds(o){return _t(o).direction==="rtl"}var sr={convertOffsetParentRelativeRectToViewportRelativeRect:Rs,getDocumentElement:we,getClippingRect:Is,getOffsetParent:Ln,getElementRects:Fs,getClientRects:Ls,getDimensions:Ps,getScale:bo,isElement:ce,isRTL:Ds};var kn=(o,t,r)=>{let i=new Map,a={platform:sr,...r},n={...a.platform,_c:i};return mn(o,t,{...a,platform:n})};function Nn(o){return _s(o)}function Jr(o){return o.assignedSlot?o.assignedSlot:o.parentNode instanceof ShadowRoot?o.parentNode.host:o.parentNode}function _s(o){for(let t=o;t;t=Jr(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=Jr(o);t;t=Jr(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||t.tagName==="BODY"))return t}return null}async function cr(o,t,r){return kn(o,t,{platform:{...sr,getOffsetParent:i=>sr.getOffsetParent(i,Nn)},middleware:[Xr({crossAxis:!0}),Yr({allowedPlacements:[r]})]})}var At=function(o,t,r,i){var a=arguments.length,n=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(l=o[c])&&(n=(a<3?l(n):a>3?l(t,r,n):l(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},K=class 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 Bn.html`
|
|
544
|
+
`;var El=["top","right","bottom","left"],Cl=["start","end"],Bi=El.reduce((t,e)=>t.concat(e,e+"-"+Cl[0],e+"-"+Cl[1]),[]),ar=Math.min,jt=Math.max,lr=Math.round;var Pt=t=>({x:t,y:t}),Op={left:"right",right:"left",bottom:"top",top:"bottom"},wp={start:"end",end:"start"};function Di(t,e,o){return jt(t,ar(e,o))}function Dr(t,e){return typeof t=="function"?t(e):t}function To(t){return t.split("-")[0]}function Kt(t){return t.split("-")[1]}function _i(t){return t==="x"?"y":"x"}function Ti(t){return t==="y"?"height":"width"}function _r(t){return["top","bottom"].includes(To(t))?"y":"x"}function zi(t){return _i(_r(t))}function Rl(t,e,o){o===void 0&&(o=!1);let i=Kt(t),n=zi(t),a=Ti(n),l=n==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(l=Ii(l)),[l,Ii(l)]}function $l(t){return t.replace(/start|end/g,e=>wp[e])}function Ii(t){return t.replace(/left|right|bottom|top/g,e=>Op[e])}function Cp(t){return{top:0,right:0,bottom:0,left:0,...t}}function Nl(t){return typeof t!="number"?Cp(t):{top:t,right:t,bottom:t,left:t}}function fo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function kl(t,e,o){let{reference:i,floating:n}=t,a=_r(e),l=zi(e),s=Ti(l),d=To(e),f=a==="y",h=i.x+i.width/2-n.width/2,m=i.y+i.height/2-n.height/2,g=i[s]/2-n[s]/2,b;switch(d){case"top":b={x:h,y:i.y-n.height};break;case"bottom":b={x:h,y:i.y+i.height};break;case"right":b={x:i.x+i.width,y:m};break;case"left":b={x:i.x-n.width,y:m};break;default:b={x:i.x,y:i.y}}switch(Kt(e)){case"start":b[l]-=g*(o&&f?-1:1);break;case"end":b[l]+=g*(o&&f?-1:1);break}return b}var Al=async(t,e,o)=>{let{placement:i="bottom",strategy:n="absolute",middleware:a=[],platform:l}=o,s=a.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(e)),f=await l.getElementRects({reference:t,floating:e,strategy:n}),{x:h,y:m}=kl(f,i,d),g=i,b={},y=0;for(let v=0;v<s.length;v++){let{name:N,fn:E}=s[v],{x:R,y:P,data:H,reset:J}=await E({x:h,y:m,initialPlacement:i,placement:g,strategy:n,middlewareData:b,rects:f,platform:l,elements:{reference:t,floating:e}});if(h=R??h,m=P??m,b={...b,[N]:{...b[N],...H}},J&&y<=50){y++,typeof J=="object"&&(J.placement&&(g=J.placement),J.rects&&(f=J.rects===!0?await l.getElementRects({reference:t,floating:e,strategy:n}):J.rects),{x:h,y:m}=kl(f,g,d)),v=-1;continue}}return{x:h,y:m,placement:g,strategy:n,middlewareData:b}};async function Fi(t,e){var o;e===void 0&&(e={});let{x:i,y:n,platform:a,rects:l,elements:s,strategy:d}=t,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:g=!1,padding:b=0}=Dr(e,t),y=Nl(b),N=s[g?m==="floating"?"reference":"floating":m],E=fo(await a.getClippingRect({element:(o=await(a.isElement==null?void 0:a.isElement(N)))==null||o?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:f,rootBoundary:h,strategy:d})),R=m==="floating"?{...l.floating,x:i,y:n}:l.reference,P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),H=await(a.isElement==null?void 0:a.isElement(P))?await(a.getScale==null?void 0:a.getScale(P))||{x:1,y:1}:{x:1,y:1},J=fo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:R,offsetParent:P,strategy:d}):R);return{top:(E.top-J.top+y.top)/H.y,bottom:(J.bottom-E.bottom+y.bottom)/H.y,left:(E.left-J.left+y.left)/H.x,right:(J.right-E.right+y.right)/H.x}}function Ep(t,e,o){return(t?[...o.filter(n=>Kt(n)===t),...o.filter(n=>Kt(n)!==t)]:o.filter(n=>To(n)===n)).filter(n=>t?Kt(n)===t||(e?$l(n)!==n:!1):!0)}var Mi=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,n;let{rects:a,middlewareData:l,placement:s,platform:d,elements:f}=e,{crossAxis:h=!1,alignment:m,allowedPlacements:g=Bi,autoAlignment:b=!0,...y}=Dr(t,e),v=m!==void 0||g===Bi?Ep(m||null,b,g):g,N=await Fi(e,y),E=((o=l.autoPlacement)==null?void 0:o.index)||0,R=v[E];if(R==null)return{};let P=Rl(R,a,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(s!==R)return{reset:{placement:v[0]}};let H=[N[To(R)],N[P[0]],N[P[1]]],J=[...((i=l.autoPlacement)==null?void 0:i.overflows)||[],{placement:R,overflows:H}],Qe=v[E+1];if(Qe)return{data:{index:E+1,overflows:J},reset:{placement:Qe}};let Ft=J.map(Me=>{let et=Kt(Me.placement);return[Me.placement,et&&h?Me.overflows.slice(0,2).reduce((We,io)=>We+io,0):Me.overflows[0],Me.overflows]}).sort((Me,et)=>Me[1]-et[1]),Mt=((n=Ft.filter(Me=>Me[2].slice(0,Kt(Me[0])?2:3).every(et=>et<=0))[0])==null?void 0:n[0])||Ft[0][0];return Mt!==s?{data:{index:E+1,overflows:J},reset:{placement:Mt}}:{}}}};var Wi=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:o,y:i,placement:n}=e,{mainAxis:a=!0,crossAxis:l=!1,limiter:s={fn:N=>{let{x:E,y:R}=N;return{x:E,y:R}}},...d}=Dr(t,e),f={x:o,y:i},h=await Fi(e,d),m=_r(To(n)),g=_i(m),b=f[g],y=f[m];if(a){let N=g==="y"?"top":"left",E=g==="y"?"bottom":"right",R=b+h[N],P=b-h[E];b=Di(R,b,P)}if(l){let N=m==="y"?"top":"left",E=m==="y"?"bottom":"right",R=y+h[N],P=y-h[E];y=Di(R,y,P)}let v=s.fn({...e,[g]:b,[m]:y});return{...v,data:{x:v.x-o,y:v.y-i}}}}};function It(t){return Pl(t)?(t.nodeName||"").toLowerCase():"#document"}function Be(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Bt(t){var e;return(e=(Pl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Pl(t){return t instanceof Node||t instanceof Be(t).Node}function bt(t){return t instanceof Element||t instanceof Be(t).Element}function ct(t){return t instanceof HTMLElement||t instanceof Be(t).HTMLElement}function Ll(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Be(t).ShadowRoot}function zo(t){let{overflow:e,overflowX:o,overflowY:i,display:n}=He(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(n)}function Il(t){return["table","td","th"].includes(It(t))}function zr(t){let e=Fr(),o=He(t);return o.transform!=="none"||o.perspective!=="none"||(o.containerType?o.containerType!=="normal":!1)||!e&&(o.backdropFilter?o.backdropFilter!=="none":!1)||!e&&(o.filter?o.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(o.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(o.contain||"").includes(i))}function Bl(t){let e=uo(t);for(;ct(e)&&!sr(e);){if(zr(e))return e;e=uo(e)}return null}function Fr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function sr(t){return["html","body","#document"].includes(It(t))}function He(t){return Be(t).getComputedStyle(t)}function cr(t){return bt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function uo(t){if(It(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ll(t)&&t.host||Bt(t);return Ll(e)?e.host:e}function Dl(t){let e=uo(t);return sr(e)?t.ownerDocument?t.ownerDocument.body:t.body:ct(e)&&zo(e)?e:Dl(e)}function Tr(t,e,o){var i;e===void 0&&(e=[]),o===void 0&&(o=!0);let n=Dl(t),a=n===((i=t.ownerDocument)==null?void 0:i.body),l=Be(n);return a?e.concat(l,l.visualViewport||[],zo(n)?n:[],l.frameElement&&o?Tr(l.frameElement):[]):e.concat(n,Tr(n,[],o))}function zl(t){let e=He(t),o=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=ct(t),a=n?t.offsetWidth:o,l=n?t.offsetHeight:i,s=lr(o)!==a||lr(i)!==l;return s&&(o=a,i=l),{width:o,height:i,$:s}}function Fl(t){return bt(t)?t:t.contextElement}function Fo(t){let e=Fl(t);if(!ct(e))return Pt(1);let o=e.getBoundingClientRect(),{width:i,height:n,$:a}=zl(e),l=(a?lr(o.width):o.width)/i,s=(a?lr(o.height):o.height)/n;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}var Rp=Pt(0);function Ml(t){let e=Be(t);return!Fr()||!e.visualViewport?Rp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function $p(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==Be(t)?!1:e}function pr(t,e,o,i){e===void 0&&(e=!1),o===void 0&&(o=!1);let n=t.getBoundingClientRect(),a=Fl(t),l=Pt(1);e&&(i?bt(i)&&(l=Fo(i)):l=Fo(t));let s=$p(a,o,i)?Ml(a):Pt(0),d=(n.left+s.x)/l.x,f=(n.top+s.y)/l.y,h=n.width/l.x,m=n.height/l.y;if(a){let g=Be(a),b=i&&bt(i)?Be(i):i,y=g.frameElement;for(;y&&i&&b!==g;){let v=Fo(y),N=y.getBoundingClientRect(),E=He(y),R=N.left+(y.clientLeft+parseFloat(E.paddingLeft))*v.x,P=N.top+(y.clientTop+parseFloat(E.paddingTop))*v.y;d*=v.x,f*=v.y,h*=v.x,m*=v.y,d+=R,f+=P,y=Be(y).frameElement}}return fo({width:h,height:m,x:d,y:f})}function Np(t){let{rect:e,offsetParent:o,strategy:i}=t,n=ct(o),a=Bt(o);if(o===a)return e;let l={scrollLeft:0,scrollTop:0},s=Pt(1),d=Pt(0);if((n||!n&&i!=="fixed")&&((It(o)!=="body"||zo(a))&&(l=cr(o)),ct(o))){let f=pr(o);s=Fo(o),d.x=f.x+o.clientLeft,d.y=f.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-l.scrollLeft*s.x+d.x,y:e.y*s.y-l.scrollTop*s.y+d.y}}function kp(t){return Array.from(t.getClientRects())}function Wl(t){return pr(Bt(t)).left+cr(t).scrollLeft}function Ap(t){let e=Bt(t),o=cr(t),i=t.ownerDocument.body,n=jt(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=jt(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight),l=-o.scrollLeft+Wl(t),s=-o.scrollTop;return He(i).direction==="rtl"&&(l+=jt(e.clientWidth,i.clientWidth)-n),{width:n,height:a,x:l,y:s}}function Lp(t,e){let o=Be(t),i=Bt(t),n=o.visualViewport,a=i.clientWidth,l=i.clientHeight,s=0,d=0;if(n){a=n.width,l=n.height;let f=Fr();(!f||f&&e==="fixed")&&(s=n.offsetLeft,d=n.offsetTop)}return{width:a,height:l,x:s,y:d}}function Pp(t,e){let o=pr(t,!0,e==="fixed"),i=o.top+t.clientTop,n=o.left+t.clientLeft,a=ct(t)?Fo(t):Pt(1),l=t.clientWidth*a.x,s=t.clientHeight*a.y,d=n*a.x,f=i*a.y;return{width:l,height:s,x:d,y:f}}function _l(t,e,o){let i;if(e==="viewport")i=Lp(t,o);else if(e==="document")i=Ap(Bt(t));else if(bt(e))i=Pp(e,o);else{let n=Ml(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return fo(i)}function Ul(t,e){let o=uo(t);return o===e||!bt(o)||sr(o)?!1:He(o).position==="fixed"||Ul(o,e)}function Ip(t,e){let o=e.get(t);if(o)return o;let i=Tr(t,[],!1).filter(s=>bt(s)&&It(s)!=="body"),n=null,a=He(t).position==="fixed",l=a?uo(t):t;for(;bt(l)&&!sr(l);){let s=He(l),d=zr(l);!d&&s.position==="fixed"&&(n=null),(a?!d&&!n:!d&&s.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||zo(l)&&!d&&Ul(t,l))?i=i.filter(h=>h!==l):n=s,l=uo(l)}return e.set(t,i),i}function Bp(t){let{element:e,boundary:o,rootBoundary:i,strategy:n}=t,l=[...o==="clippingAncestors"?Ip(e,this._c):[].concat(o),i],s=l[0],d=l.reduce((f,h)=>{let m=_l(e,h,n);return f.top=jt(m.top,f.top),f.right=ar(m.right,f.right),f.bottom=ar(m.bottom,f.bottom),f.left=jt(m.left,f.left),f},_l(e,s,n));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Dp(t){return zl(t)}function _p(t,e,o){let i=ct(e),n=Bt(e),a=o==="fixed",l=pr(t,!0,a,e),s={scrollLeft:0,scrollTop:0},d=Pt(0);if(i||!i&&!a)if((It(e)!=="body"||zo(n))&&(s=cr(e)),i){let f=pr(e,!0,a,e);d.x=f.x+e.clientLeft,d.y=f.y+e.clientTop}else n&&(d.x=Wl(n));return{x:l.left+s.scrollLeft-d.x,y:l.top+s.scrollTop-d.y,width:l.width,height:l.height}}function Tl(t,e){return!ct(t)||He(t).position==="fixed"?null:e?e(t):t.offsetParent}function Hl(t,e){let o=Be(t);if(!ct(t))return o;let i=Tl(t,e);for(;i&&Il(i)&&He(i).position==="static";)i=Tl(i,e);return i&&(It(i)==="html"||It(i)==="body"&&He(i).position==="static"&&!zr(i))?o:i||Bl(t)||o}var Tp=async function(t){let{reference:e,floating:o,strategy:i}=t,n=this.getOffsetParent||Hl,a=this.getDimensions;return{reference:_p(e,await n(o),i),floating:{x:0,y:0,...await a(o)}}};function zp(t){return He(t).direction==="rtl"}var Mr={convertOffsetParentRelativeRectToViewportRelativeRect:Np,getDocumentElement:Bt,getClippingRect:Bp,getOffsetParent:Hl,getElementRects:Tp,getClientRects:kp,getDimensions:Dp,getScale:Fo,isElement:bt,isRTL:zp};var Vl=(t,e,o)=>{let i=new Map,n={platform:Mr,...o},a={...n.platform,_c:i};return Al(t,e,{...n,platform:a})};function jl(t){return Fp(t)}function Ui(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Fp(t){for(let e=t;e;e=Ui(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ui(t);e;e=Ui(e)){if(!(e instanceof Element))continue;let o=getComputedStyle(e);if(o.display!=="contents"&&(o.position!=="static"||o.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Wr(t,e,o){return Vl(t,e,{platform:{...Mr,getOffsetParent:i=>Mr.getOffsetParent(i,jl)},middleware:[Wi({crossAxis:!0}),Mi({allowedPlacements:[o]})]})}var De=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},te=class extends dr.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 dr.Debouncer,this.revealDebouncer=new dr.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Kl.html`
|
|
545
545
|
<div part="container"
|
|
546
546
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
547
547
|
@mouseenter=${this.onHover}
|
|
@@ -559,45 +559,45 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
559
559
|
</div>
|
|
560
560
|
</div>
|
|
561
561
|
</div>
|
|
562
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",cr(this.slottedElement,this.tooltip,this.position).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${r}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,r){return Math.max(t,Math.min(0,-r))}};K.elementDefinitions={"ft-typography":U};K.styles=sn;At([(0,dt.property)()],K.prototype,"text",void 0);At([(0,dt.property)({type:Boolean})],K.prototype,"manual",void 0);At([(0,dt.property)({type:Boolean})],K.prototype,"inline",void 0);At([(0,dt.property)({type:Number})],K.prototype,"delay",void 0);At([(0,dt.property)()],K.prototype,"position",void 0);At([(0,dt.queryAssignedNodes)()],K.prototype,"slotNodes",void 0);At([(0,dt.query)(".ft-tooltip--container")],K.prototype,"container",void 0);At([(0,dt.query)(".ft-tooltip")],K.prototype,"tooltip",void 0);At([(0,dt.query)(".ft-tooltip--content")],K.prototype,"tooltipContent",void 0);At([(0,dt.state)()],K.prototype,"visible",void 0);At([(0,dt.eventOptions)({passive:!0})],K.prototype,"onTouch",null);At([(0,dt.eventOptions)({passive:!0})],K.prototype,"onHover",null);At([(0,dt.eventOptions)({passive:!0})],K.prototype,"onOut",null);At([(0,dt.eventOptions)({passive:!0})],K.prototype,"onClick",null);(0,An.customElement)("ft-tooltip")(K);var _n=d(g());var To=d(S()),je=d(X()),Fn=d(g()),Dn=d(Pn());var ze;(function(o){o.ADD_TO_PBK="",o.ALERT="",o.ADD_ALERT="",o.BACK_TO_SEARCH="",o.ADD_BOOKMARK="",o.BOOKMARK="",o.BOOKS="",o.MENU="",o.DOWNLOAD="",o.EDIT="",o.FEEDBACK="",o.HOME="",o.MODIFY_PBK="",o.SCHEDULED="",o.SEARCH="",o.EXPORT="",o.TOC="",o.WRITE_UGC="",o.TRASH="",o.USER="",o.EXTLINK="",o.CALENDAR="",o.OFFLINE="",o.BOOK="",o.DOWNLOAD_PLAIN="",o.CHECK="",o.STAR_PLAIN="",o.TOPICS="",o.DISC="",o.CIRCLE="",o.SHARED="",o.SORT_UNSORTED="",o.SORT_UP="",o.SORT_DOWN="",o.WORKING="",o.CLOSE="",o.ZOOM_OUT="",o.ZOOM_IN="",o.ZOOM_REALSIZE="",o.ZOOM_FULLSCREEN="",o.ADMIN_RESTRICTED="",o.ADMIN="",o.ADMIN_KHUB="",o.ADMIN_THEME="",o.ADMIN_USERS="",o.WARNING="",o.CONTEXT="",o.SEARCH_HOME="",o.STEPS="",o.ICON_EXPAND="",o.ICON_COLLAPSE="",o.INFO="",o.MINUS_PLAIN="",o.PLUS_PLAIN="",o.FACET_HAS_DESCENDANT="",o.TRIANGLE_BOTTOM="",o.TRIANGLE_LEFT="",o.TRIANGLE_RIGHT="",o.TRIANGLE_TOP="",o.THIN_ARROW="",o.SIGN_IN="",o.LOGOUT="",o.TRANSLATE="",o.CLOSE_PLAIN="",o.CHECK_PLAIN="",o.ARTICLE="",o.COLUMNS="",o.ANALYTICS="",o.COLLECTIONS="",o.ARROW_DOWN="",o.ARROW_LEFT="",o.ARROW_RIGHT="",o.ARROW_UP="",o.SEARCH_IN_PUBLICATION="",o.COPY_TO_CLIPBOARD="",o.SHARED_PBK="",o.ATTACHMENTS="",o.STRIPE_ARROW_LEFT="",o.STRIPE_ARROW_RIGHT="",o.FILTERS="",o.DOT="",o.MINUS="",o.PLUS="",o.MAILS_AND_NOTIFICATIONS="",o.SAVE="",o.LOCKER="",o.ADMIN_INTEGRATION="",o.SYNC="",o.TAG="",o.BOOK_PLAIN="",o.UPLOAD="",o.ONLINE="",o.TAG_PLAIN="",o.ACCOUNT_SETTINGS="",o.PRINT="",o.DEFAULT_ROLES="",o.SHORTCUT_MENU="",o.RELATIVES_PLAIN="",o.RELATIVES="",o.PAUSE="",o.PLAY="",o.ADMIN_PORTAL="",o.STAR="",o.THUMBS_DOWN="",o.THUMBS_DOWN_PLAIN="",o.THUMBS_UP="",o.THUMBS_UP_PLAIN="",o.FEEDBACK_PLAIN="",o.RATE_PLAIN="",o.RATE="",o.OFFLINE_SETTINGS="",o.MY_COLLECTIONS="",o.THIN_ARROW_LEFT="",o.THIN_ARROW_RIGHT="",o.RESET="",o.MY_LIBRARY="",o.UNSTRUCTURED_DOC="",o.CONTEXTUAL="",o.THIN_ARROW_UP="",o.ARROW_RIGHT_TO_LINE="",o.DESKTOP="",o.TABLET_LANDSCAPE="",o.TABLET_PORTRAIT="",o.MOBILE_LANDSCAPE="",o.MOBILE_PORTRAIT="",o.DIAGRAM_SUNBURST="",o.DIAGRAM_SANKEY="",o.COMMENT_QUESTION="",o.COMMENT_QUESTION_PLAIN="",o.MESSAGE_BOT="",o.CHART_SIMPLE="",o.BARS_PROGRESS="",o.BOOK_OPEN_GEAR="",o.BOOK_OPEN_GEAR_SLASH="",o.LINE_CHART="",o.STACKED_CHART="",o.CHART_BAR_STACKED="",o.CHART_BAR_GROUPED="",o.EYE_SLASH="",o.X_MARK="",o.EXPAND_WIDE="",o.PIP="",o.PIP_WIDE="",o.LIFE_RING="",o.GLOBE="",o.PIGGY_BANK="",o.EXTLINK_LIGHT="",o.CLONE="",o.CLONE_LINK_SIMPLE="",o.CHART_BAR_NORMALIZED="",o.CONSUMER="",o.OCTAGON_XMARK="",o.HOURGLASS_HALF="",o.CLOCK="",o.CLOCK_THREE="",o.CALENDAR_DAY="",o.COMPUTER_MOUSE_MAGNIFYING_GLASS="",o.WAND_MAGIC_SPARKLES="",o.PAPER_PLANE="",o.CIRCLE_STOP="",o.ARROW_ROTATE_RIGHT="",o.ARROWS_ROTATE="",o.ALIGN_RIGHT="",o.FORMAT_CLEAR="",o.ALIGN_CENTER="",o.ALIGN_LEFT="",o.PALETTE="",o.BOLD="",o.ITALIC="",o.UNDERLINE="",o.STRIKETHROUGH="",o.LINK_SIMPLE_SLASH="",o.LINK_SIMPLE="",o.EYE="",o.SHARE="󨃱"})(ze||(ze={}));var u;(function(o){o.UNKNOWN="",o.ABW="",o.AUDIO="",o.AVI="",o.CHM="",o.CODE="",o.CSV="",o.DITA="",o.EPUB="",o.EXCEL="",o.FLAC="",o.GIF="",o.GZIP="",o.HTML="",o.IMAGE="",o.JPEG="",o.JSON="",o.M4A="",o.MOV="",o.MP3="",o.MP4="",o.OGG="",o.PDF="",o.PNG="",o.POWERPOINT="",o.RAR="",o.STP="",o.TEXT="",o.VIDEO="",o.WAV="",o.WMA="",o.WORD="",o.XML="",o.YAML="",o.ZIP=""})(u||(u={}));var Qr=new Map([...["abw"].map(o=>[o,u.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(o=>[o,u.AUDIO]),...["avi"].map(o=>[o,u.AVI]),...["chm","xhs"].map(o=>[o,u.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(o=>[o,u.CODE]),...["csv"].map(o=>[o,u.CSV]),...["dita","ditamap","ditaval"].map(o=>[o,u.DITA]),...["epub"].map(o=>[o,u.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(o=>[o,u.EXCEL]),...["flac"].map(o=>[o,u.FLAC]),...["gif"].map(o=>[o,u.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(o=>[o,u.GZIP]),...["html","htm","xhtml"].map(o=>[o,u.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(o=>[o,u.IMAGE]),...["jpeg","jpg","jpe"].map(o=>[o,u.JPEG]),...["json"].map(o=>[o,u.JSON]),...["m4a","m4p"].map(o=>[o,u.M4A]),...["mov","qt"].map(o=>[o,u.MOV]),...["mp3"].map(o=>[o,u.MP3]),...["mp4","m4v"].map(o=>[o,u.MP4]),...["ogg","oga"].map(o=>[o,u.OGG]),...["pdf","ps"].map(o=>[o,u.PDF]),...["png"].map(o=>[o,u.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(o=>[o,u.POWERPOINT]),...["rar"].map(o=>[o,u.RAR]),...["stp"].map(o=>[o,u.STP]),...["txt","rtf","md","mdown"].map(o=>[o,u.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(o=>[o,u.VIDEO]),...["wav"].map(o=>[o,u.WAV]),...["wma"].map(o=>[o,u.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(o=>[o,u.WORD]),...["xml","xsl","rdf"].map(o=>[o,u.XML]),...["yaml","yml","x-yaml"].map(o=>[o,u.YAML]),...["zip"].map(o=>[o,u.ZIP])]),Ts=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function zn(o,t){var r,i,a,n;o=(o??"").toLowerCase(),t=(t??"").toLowerCase();let[l,c]=(((r=Ts.get(o))!==null&&r!==void 0?r:o)+"/").split("/");return(n=(a=(i=Qr.get(c))!==null&&i!==void 0?i:Qr.get(t))!==null&&a!==void 0?a:Qr.get(l))!==null&&n!==void 0?n:u.UNKNOWN}var Jh={[u.ABW]:"#91ABC6",[u.AUDIO]:"#1795E3",[u.AVI]:"#E63324",[u.CHM]:"#71C3EB",[u.CODE]:"#71C3EB",[u.CSV]:"#1F7345",[u.DITA]:"#71C3EB",[u.EPUB]:"#85B926",[u.EXCEL]:"#1F7345",[u.FLAC]:"#1795E3",[u.GIF]:"#59B031",[u.GZIP]:"#F8AB36",[u.HTML]:"#71C3EB",[u.IMAGE]:"#59B031",[u.JPEG]:"#59B031",[u.JSON]:"#71C3EB",[u.M4A]:"#1795E3",[u.MOV]:"#E63324",[u.MP3]:"#1795E3",[u.MP4]:"#E63324",[u.OGG]:"#1795E3",[u.PDF]:"#E44948",[u.PNG]:"#59B031",[u.POWERPOINT]:"#B54A2B",[u.RAR]:"#F8AB36",[u.STP]:"#3764B1",[u.TEXT]:"#3162AB",[u.UNKNOWN]:"#999999",[u.VIDEO]:"#E63324",[u.WAV]:"#1795E3",[u.WMA]:"#1795E3",[u.WORD]:"#3162AB",[u.XML]:"#71C3EB",[u.YAML]:"#71C3EB",[u.ZIP]:"#F8AB36"};var ee;(function(o){o.fluid_topics="fluid-topics",o.file_format="file-format",o.material="material"})(ee||(ee={}));var pr=function(o,t,r,i){var a=arguments.length,n=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(l=o[c])&&(n=(a<3?l(n):a>3?l(t,r,n):l(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n},Q=class extends Fn.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=To.nothing}render(){let t=this.variant&&Object.values(ee).includes(this.variant)?this.variant:ee.fluid_topics,r=t!==ee.material||!!this.value;return To.html`
|
|
563
|
-
<i class="ft-icon ft-icon--${
|
|
564
|
-
${(0,
|
|
565
|
-
<slot ?hidden=${
|
|
562
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(o=>e.has(o))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(o=>o.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Wr(this.slottedElement,this.tooltip,this.position).then(({x:e,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${o}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,o){return Math.max(e,Math.min(0,-o))}};te.elementDefinitions={"ft-typography":q};te.styles=wl;De([(0,me.property)()],te.prototype,"text",void 0);De([(0,me.property)({type:Boolean})],te.prototype,"manual",void 0);De([(0,me.property)({type:Boolean})],te.prototype,"inline",void 0);De([(0,me.property)({type:Number})],te.prototype,"delay",void 0);De([(0,me.property)()],te.prototype,"position",void 0);De([(0,me.queryAssignedNodes)()],te.prototype,"slotNodes",void 0);De([(0,me.query)(".ft-tooltip--container")],te.prototype,"container",void 0);De([(0,me.query)(".ft-tooltip")],te.prototype,"tooltip",void 0);De([(0,me.query)(".ft-tooltip--content")],te.prototype,"tooltipContent",void 0);De([(0,me.state)()],te.prototype,"visible",void 0);De([(0,me.eventOptions)({passive:!0})],te.prototype,"onTouch",null);De([(0,me.eventOptions)({passive:!0})],te.prototype,"onHover",null);De([(0,me.eventOptions)({passive:!0})],te.prototype,"onOut",null);De([(0,me.eventOptions)({passive:!0})],te.prototype,"onClick",null);(0,Gl.customElement)("ft-tooltip")(te);var Ql=u(O());var fr=u($()),ho=u(Z()),Xl=u(O()),Jl=u(ql());var Gt;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.EYE="",t.SHARE="󨃱"})(Gt||(Gt={}));var x;(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=""})(x||(x={}));var Hi=new Map([...["abw"].map(t=>[t,x.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,x.AUDIO]),...["avi"].map(t=>[t,x.AVI]),...["chm","xhs"].map(t=>[t,x.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,x.CODE]),...["csv"].map(t=>[t,x.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,x.DITA]),...["epub"].map(t=>[t,x.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,x.EXCEL]),...["flac"].map(t=>[t,x.FLAC]),...["gif"].map(t=>[t,x.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,x.GZIP]),...["html","htm","xhtml"].map(t=>[t,x.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,x.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,x.JPEG]),...["json"].map(t=>[t,x.JSON]),...["m4a","m4p"].map(t=>[t,x.M4A]),...["mov","qt"].map(t=>[t,x.MOV]),...["mp3"].map(t=>[t,x.MP3]),...["mp4","m4v"].map(t=>[t,x.MP4]),...["ogg","oga"].map(t=>[t,x.OGG]),...["pdf","ps"].map(t=>[t,x.PDF]),...["png"].map(t=>[t,x.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,x.POWERPOINT]),...["rar"].map(t=>[t,x.RAR]),...["stp"].map(t=>[t,x.STP]),...["txt","rtf","md","mdown"].map(t=>[t,x.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,x.VIDEO]),...["wav"].map(t=>[t,x.WAV]),...["wma"].map(t=>[t,x.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,x.WORD]),...["xml","xsl","rdf"].map(t=>[t,x.XML]),...["yaml","yml","x-yaml"].map(t=>[t,x.YAML]),...["zip"].map(t=>[t,x.ZIP])]),Mp=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Yl(t,e){var o,i,n,a;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[l,s]=(((o=Mp.get(t))!==null&&o!==void 0?o:t)+"/").split("/");return(a=(n=(i=Hi.get(s))!==null&&i!==void 0?i:Hi.get(e))!==null&&n!==void 0?n:Hi.get(l))!==null&&a!==void 0?a:x.UNKNOWN}var zg={[x.ABW]:"#91ABC6",[x.AUDIO]:"#1795E3",[x.AVI]:"#E63324",[x.CHM]:"#71C3EB",[x.CODE]:"#71C3EB",[x.CSV]:"#1F7345",[x.DITA]:"#71C3EB",[x.EPUB]:"#85B926",[x.EXCEL]:"#1F7345",[x.FLAC]:"#1795E3",[x.GIF]:"#59B031",[x.GZIP]:"#F8AB36",[x.HTML]:"#71C3EB",[x.IMAGE]:"#59B031",[x.JPEG]:"#59B031",[x.JSON]:"#71C3EB",[x.M4A]:"#1795E3",[x.MOV]:"#E63324",[x.MP3]:"#1795E3",[x.MP4]:"#E63324",[x.OGG]:"#1795E3",[x.PDF]:"#E44948",[x.PNG]:"#59B031",[x.POWERPOINT]:"#B54A2B",[x.RAR]:"#F8AB36",[x.STP]:"#3764B1",[x.TEXT]:"#3162AB",[x.UNKNOWN]:"#999999",[x.VIDEO]:"#E63324",[x.WAV]:"#1795E3",[x.WMA]:"#1795E3",[x.WORD]:"#3162AB",[x.XML]:"#71C3EB",[x.YAML]:"#71C3EB",[x.ZIP]:"#F8AB36"};var pt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(pt||(pt={}));var Ur=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},le=class extends Xl.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=fr.nothing}render(){let e=this.variant&&Object.values(pt).includes(this.variant)?this.variant:pt.fluid_topics,o=e!==pt.material||!!this.value;return fr.html`
|
|
563
|
+
<i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
|
|
564
|
+
${(0,Jl.unsafeHTML)(this.resolvedIcon)}
|
|
565
|
+
<slot ?hidden=${o}></slot>
|
|
566
566
|
</i>
|
|
567
|
-
`}get textContent(){var
|
|
567
|
+
`}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&o!==void 0?o:""}update(e){super.update(e),["value","variant"].some(o=>e.has(o))&&this.resolveIcon()}resolveIcon(){var e,o;let i=this.value||this.textContent;switch(this.variant){case pt.file_format:this.resolvedIcon=(e=x[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case pt.material:this.resolvedIcon=this.value||fr.nothing;break;default:this.resolvedIcon=(o=Gt[i.replace("-","_").toUpperCase()])!==null&&o!==void 0?o:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};le.elementDefinitions={};le.styles=ul;Ur([(0,ho.property)()],le.prototype,"variant",void 0);Ur([(0,ho.property)()],le.prototype,"value",void 0);Ur([(0,ho.state)()],le.prototype,"resolvedIcon",void 0);Ur([(0,ho.query)("slot")],le.prototype,"slottedContent",void 0);(0,Ql.customElement)("ft-icon")(le);var os=u(O());var es=u($()),ts=u(O());var mo=class extends ts.FtLitElement{render(){return es.html`
|
|
568
568
|
<div class="ft-loader">
|
|
569
569
|
<div></div>
|
|
570
570
|
<div></div>
|
|
571
571
|
<div></div>
|
|
572
572
|
<div></div>
|
|
573
573
|
</div>
|
|
574
|
-
`}};
|
|
574
|
+
`}};mo.styles=dl;(0,os.customElement)("ft-loader")(mo);var Mo=u($()),rs=u(st()),Ee=u(Z()),Ve=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ue=class extends(0,Wo.toFtFormComponent)(Wo.FtLitElement,"button"){constructor(){super(),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.addEventListener("click",e=>{var o;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((o=this.form)===null||o===void 0||o.requestSubmit())})}render(){return this.addTooltipIfNeeded(Mo.html`
|
|
575
575
|
<button part="button"
|
|
576
|
-
class="${(0,
|
|
576
|
+
class="${(0,rs.classMap)(this.buttonClasses)}"
|
|
577
577
|
aria-label="${this.getLabel()}"
|
|
578
578
|
?disabled=${this.isDisabled()}>
|
|
579
579
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
580
580
|
<ft-typography part="label"
|
|
581
581
|
variant=${this.typographyVariant}
|
|
582
582
|
element="span"
|
|
583
|
-
class="ft-button--label ${
|
|
583
|
+
class="ft-button--label ${Wo.isSafari?"ft-safari-ellipsis-fix":""}"
|
|
584
584
|
?hidden=${!this.hasTextContent()}>
|
|
585
585
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
586
586
|
</ft-typography>
|
|
587
587
|
${this.resolveIcon()}
|
|
588
588
|
</button>
|
|
589
|
-
`)}addTooltipIfNeeded(
|
|
589
|
+
`)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Mo.html`
|
|
590
590
|
<ft-tooltip part="tooltip"
|
|
591
591
|
text="${this.getLabel()}"
|
|
592
592
|
position="${this.tooltipPosition}">
|
|
593
|
-
${
|
|
593
|
+
${e}
|
|
594
594
|
</ft-tooltip>
|
|
595
|
-
`:
|
|
596
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon?
|
|
595
|
+
`:e}resolveIcon(){return this.loading?Mo.html`
|
|
596
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?Mo.html`
|
|
597
597
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
598
|
-
`:
|
|
598
|
+
`:Mo.html`
|
|
599
599
|
<slot part="icon" name="icon"></slot>
|
|
600
|
-
`}focus(){var
|
|
600
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(o=>this.unslotText(o)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ue.elementDefinitions={"ft-ripple":z,"ft-tooltip":te,"ft-typography":q,"ft-icon":le,"ft-loader":mo};Ve([(0,Ee.property)({type:String,reflect:!0})],ue.prototype,"role",void 0);Ve([(0,Ee.property)()],ue.prototype,"type",void 0);Ve([(0,Ee.property)({type:Boolean})],ue.prototype,"disabled",void 0);Ve([(0,Ee.property)()],ue.prototype,"label",void 0);Ve([(0,Ee.property)()],ue.prototype,"icon",void 0);Ve([(0,Ee.property)()],ue.prototype,"iconVariant",void 0);Ve([(0,Ee.property)({type:Boolean})],ue.prototype,"trailingIcon",void 0);Ve([(0,Ee.property)({type:Boolean})],ue.prototype,"loading",void 0);Ve([(0,Ee.property)()],ue.prototype,"tooltipPosition",void 0);Ve([(0,Ee.property)({type:Boolean})],ue.prototype,"hideTooltip",void 0);Ve([(0,Ee.property)({type:Boolean})],ue.prototype,"forceTooltip",void 0);Ve([(0,Ee.query)(".ft-button")],ue.prototype,"button",void 0);Ve([(0,Ee.query)(".ft-button--label slot")],ue.prototype,"slottedContent",void 0);var Hr=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},ge=class extends ue{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"}};ge.styles=[is.safariEllipsisFix,yl];Hr([(0,ur.property)({type:Boolean})],ge.prototype,"primary",void 0);Hr([(0,ur.property)({type:Boolean})],ge.prototype,"outlined",void 0);Hr([(0,ur.property)({type:Boolean})],ge.prototype,"dense",void 0);Hr([(0,ur.property)({type:Boolean})],ge.prototype,"round",void 0);var Uo=u(Z());var ls=u(O());var ns=u($()),K=u(O());var as=[ns.css`
|
|
601
601
|
:host {
|
|
602
602
|
display: inline-block;
|
|
603
603
|
max-width: 100%;
|
|
@@ -647,7 +647,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
647
647
|
}
|
|
648
648
|
|
|
649
649
|
.ft-button:focus-visible {
|
|
650
|
-
outline-color: ${
|
|
650
|
+
outline-color: ${w.focusFocusRingColor};
|
|
651
651
|
outline-style: solid;
|
|
652
652
|
}
|
|
653
653
|
|
|
@@ -676,154 +676,154 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
676
676
|
/** Primary styles **/
|
|
677
677
|
|
|
678
678
|
.ft-button--primary {
|
|
679
|
-
${(0,
|
|
679
|
+
${(0,K.setVariable)(Pe.color,w.primaryIconColor)};
|
|
680
680
|
|
|
681
|
-
${(0,
|
|
682
|
-
${(0,
|
|
683
|
-
${(0,
|
|
684
|
-
${(0,
|
|
685
|
-
${(0,
|
|
681
|
+
${(0,K.setVariable)(_.color,w.primaryStateLayerColor)};
|
|
682
|
+
${(0,K.setVariable)(_.opacityContentOnSurfaceHover,w.primaryHoverStateLayerOpacity)};
|
|
683
|
+
${(0,K.setVariable)(_.opacityContentOnSurfaceFocused,w.primaryFocusStateLayerOpacity)};
|
|
684
|
+
${(0,K.setVariable)(_.opacityContentOnSurfaceSelected,w.primaryActiveStateLayerOpacity)};
|
|
685
|
+
${(0,K.setVariable)(_.opacityContentOnSurfacePressed,w.primaryActiveStateLayerOpacity)};
|
|
686
686
|
|
|
687
|
-
background-color: ${
|
|
688
|
-
color: ${
|
|
687
|
+
background-color: ${w.primaryBackgroundColor};
|
|
688
|
+
color: ${w.primaryColor};
|
|
689
689
|
border-style: none;
|
|
690
690
|
}
|
|
691
691
|
|
|
692
692
|
.ft-button--primary[disabled] {
|
|
693
|
-
opacity: ${
|
|
693
|
+
opacity: ${w.primaryDisabledComponentOpacity};
|
|
694
694
|
}
|
|
695
695
|
|
|
696
696
|
.ft-button--primary ft-icon {
|
|
697
|
-
color: ${
|
|
697
|
+
color: ${w.primaryIconColor};
|
|
698
698
|
}
|
|
699
699
|
|
|
700
700
|
/** Secondary styles **/
|
|
701
701
|
|
|
702
702
|
.ft-button--secondary {
|
|
703
|
-
${(0,
|
|
703
|
+
${(0,K.setVariable)(Pe.color,w.secondaryIconColor)};
|
|
704
704
|
|
|
705
|
-
${(0,
|
|
706
|
-
${(0,
|
|
707
|
-
${(0,
|
|
708
|
-
${(0,
|
|
709
|
-
${(0,
|
|
705
|
+
${(0,K.setVariable)(_.color,w.secondaryStateLayerColor)};
|
|
706
|
+
${(0,K.setVariable)(_.opacityContentOnSurfaceHover,w.secondaryHoverStateLayerOpacity)};
|
|
707
|
+
${(0,K.setVariable)(_.opacityContentOnSurfaceFocused,w.secondaryFocusStateLayerOpacity)};
|
|
708
|
+
${(0,K.setVariable)(_.opacityContentOnSurfaceSelected,w.secondaryActiveStateLayerOpacity)};
|
|
709
|
+
${(0,K.setVariable)(_.opacityContentOnSurfacePressed,w.secondaryActiveStateLayerOpacity)};
|
|
710
710
|
|
|
711
|
-
background-color: ${
|
|
712
|
-
color: ${
|
|
713
|
-
border-color: ${
|
|
711
|
+
background-color: ${w.secondaryBackgroundColor};
|
|
712
|
+
color: ${w.secondaryColor};
|
|
713
|
+
border-color: ${w.secondaryBorderColor};
|
|
714
714
|
border-style: solid;
|
|
715
715
|
}
|
|
716
716
|
|
|
717
717
|
.ft-button--secondary[disabled] {
|
|
718
|
-
opacity: ${
|
|
718
|
+
opacity: ${w.secondaryDisabledComponentOpacity};
|
|
719
719
|
}
|
|
720
720
|
|
|
721
721
|
.ft-button--secondary ft-icon {
|
|
722
|
-
color: ${
|
|
722
|
+
color: ${w.secondaryIconColor};
|
|
723
723
|
}
|
|
724
724
|
|
|
725
725
|
/** Tertiary styles **/
|
|
726
726
|
|
|
727
727
|
.ft-button--tertiary {
|
|
728
|
-
${(0,
|
|
728
|
+
${(0,K.setVariable)(Pe.color,w.tertiaryIconColor)};
|
|
729
729
|
|
|
730
|
-
${(0,
|
|
731
|
-
${(0,
|
|
732
|
-
${(0,
|
|
733
|
-
${(0,
|
|
734
|
-
${(0,
|
|
730
|
+
${(0,K.setVariable)(_.color,w.tertiaryStateLayerColor)};
|
|
731
|
+
${(0,K.setVariable)(_.opacityContentOnSurfaceHover,w.tertiaryHoverStateLayerOpacity)};
|
|
732
|
+
${(0,K.setVariable)(_.opacityContentOnSurfaceFocused,w.tertiaryFocusStateLayerOpacity)};
|
|
733
|
+
${(0,K.setVariable)(_.opacityContentOnSurfaceSelected,w.tertiaryActiveStateLayerOpacity)};
|
|
734
|
+
${(0,K.setVariable)(_.opacityContentOnSurfacePressed,w.tertiaryActiveStateLayerOpacity)};
|
|
735
735
|
|
|
736
|
-
background-color: ${
|
|
737
|
-
color: ${
|
|
736
|
+
background-color: ${w.tertiaryBackgroundColor};
|
|
737
|
+
color: ${w.tertiaryColor};
|
|
738
738
|
border-style: none;
|
|
739
739
|
}
|
|
740
740
|
|
|
741
741
|
.ft-button--tertiary[disabled] {
|
|
742
|
-
opacity: ${
|
|
742
|
+
opacity: ${w.tertiaryDisabledComponentOpacity};
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
.ft-button--tertiary ft-icon {
|
|
746
|
-
color: ${
|
|
746
|
+
color: ${w.tertiaryIconColor};
|
|
747
747
|
}
|
|
748
748
|
|
|
749
749
|
/** Neutral styles **/
|
|
750
750
|
|
|
751
751
|
.ft-button--neutral {
|
|
752
|
-
${(0,
|
|
752
|
+
${(0,K.setVariable)(Pe.color,w.neutralIconColor)};
|
|
753
753
|
|
|
754
|
-
${(0,
|
|
755
|
-
${(0,
|
|
756
|
-
${(0,
|
|
757
|
-
${(0,
|
|
758
|
-
${(0,
|
|
754
|
+
${(0,K.setVariable)(_.backgroundColor,w.neutralStateLayerColor)};
|
|
755
|
+
${(0,K.setVariable)(_.opacityContentOnSurfaceHover,w.neutralHoverStateLayerOpacity)};
|
|
756
|
+
${(0,K.setVariable)(_.opacityContentOnSurfaceFocused,w.neutralFocusStateLayerOpacity)};
|
|
757
|
+
${(0,K.setVariable)(_.opacityContentOnSurfaceSelected,w.neutralActiveStateLayerOpacity)};
|
|
758
|
+
${(0,K.setVariable)(_.opacityContentOnSurfacePressed,w.neutralActiveStateLayerOpacity)};
|
|
759
759
|
|
|
760
|
-
background-color: ${
|
|
761
|
-
color: ${
|
|
760
|
+
background-color: ${w.neutralBackgroundColor};
|
|
761
|
+
color: ${w.neutralColor};
|
|
762
762
|
border-style: none;
|
|
763
763
|
}
|
|
764
764
|
|
|
765
765
|
.ft-button--neutral[disabled] {
|
|
766
|
-
opacity: ${
|
|
766
|
+
opacity: ${w.neutralDisabledComponentOpacity};
|
|
767
767
|
}
|
|
768
768
|
|
|
769
769
|
.ft-button--neutral ft-icon {
|
|
770
|
-
color: ${
|
|
770
|
+
color: ${w.neutralIconColor};
|
|
771
771
|
}
|
|
772
772
|
|
|
773
773
|
/** Large styles **/
|
|
774
774
|
|
|
775
775
|
.ft-button--large {
|
|
776
|
-
${(0,
|
|
777
|
-
${(0,
|
|
776
|
+
${(0,K.setVariable)(ve.size,w.largeIconSize)};
|
|
777
|
+
${(0,K.setVariable)(Pe.size,w.largeIconSize)};
|
|
778
778
|
|
|
779
|
-
height: ${
|
|
780
|
-
padding: 0 ${
|
|
781
|
-
gap: ${
|
|
782
|
-
border-radius: ${
|
|
783
|
-
border-width: ${
|
|
779
|
+
height: ${w.largeHeight};
|
|
780
|
+
padding: 0 ${w.largeHorizontalPadding};
|
|
781
|
+
gap: ${w.largeGap};
|
|
782
|
+
border-radius: ${w.largeBorderRadius};
|
|
783
|
+
border-width: ${w.largeBorderWidth};
|
|
784
784
|
}
|
|
785
785
|
|
|
786
786
|
.ft-button--large:focus-visible {
|
|
787
|
-
outline-width: ${
|
|
788
|
-
outline-offset: ${
|
|
787
|
+
outline-width: ${w.largeFocusOutlineWidth};
|
|
788
|
+
outline-offset: ${w.largeFocusOutlineOffset};
|
|
789
789
|
}
|
|
790
790
|
|
|
791
791
|
.ft-button--large.ft-button--icon-only {
|
|
792
|
-
width: ${
|
|
792
|
+
width: ${w.largeIconOnlyWidth};
|
|
793
793
|
padding: unset;
|
|
794
794
|
}
|
|
795
795
|
|
|
796
796
|
/** Small styles **/
|
|
797
797
|
|
|
798
798
|
.ft-button--small {
|
|
799
|
-
${(0,
|
|
800
|
-
${(0,
|
|
799
|
+
${(0,K.setVariable)(ve.size,w.smallIconSize)};
|
|
800
|
+
${(0,K.setVariable)(Pe.size,w.smallIconSize)};
|
|
801
801
|
|
|
802
|
-
height: ${
|
|
803
|
-
padding: 0 ${
|
|
804
|
-
gap: ${
|
|
805
|
-
border-radius: ${
|
|
806
|
-
border-width: ${
|
|
802
|
+
height: ${w.smallHeight};
|
|
803
|
+
padding: 0 ${w.smallHorizontalPadding};
|
|
804
|
+
gap: ${w.smallGap};
|
|
805
|
+
border-radius: ${w.smallBorderRadius};
|
|
806
|
+
border-width: ${w.smallBorderWidth};
|
|
807
807
|
}
|
|
808
808
|
|
|
809
809
|
.ft-button--small:focus-visible {
|
|
810
|
-
outline-width: ${
|
|
811
|
-
outline-offset: ${
|
|
810
|
+
outline-width: ${w.smallFocusOutlineWidth};
|
|
811
|
+
outline-offset: ${w.smallFocusOutlineOffset};
|
|
812
812
|
}
|
|
813
813
|
|
|
814
814
|
.ft-button--small.ft-button--icon-only {
|
|
815
|
-
width: ${
|
|
815
|
+
width: ${w.smallIconOnlyWidth};
|
|
816
816
|
padding: unset;
|
|
817
817
|
}
|
|
818
|
-
`,
|
|
818
|
+
`,K.noTextSelect];var hr=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},vt=class extends ue{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?po.caption1medium:po.body2medium}};vt.styles=[ls.safariEllipsisFix,as];hr([(0,Uo.property)({type:Boolean})],vt.prototype,"primary",void 0);hr([(0,Uo.property)({type:Boolean})],vt.prototype,"secondary",void 0);hr([(0,Uo.property)({type:Boolean})],vt.prototype,"tertiary",void 0);hr([(0,Uo.property)({type:Boolean})],vt.prototype,"neutral",void 0);hr([(0,Uo.property)({type:Boolean})],vt.prototype,"small",void 0);(0,Vi.customElement)("ft-button")(ge);(0,Vi.customElement)("ftds-button")(vt);var us=u(O());var ps=u($()),Zt=u(Z()),ds=u(O()),fs=u(st());var je=u(O()),ss=u($());var Dt={textColor:je.FtCssVariableFactory.extend("--ft-checkbox-text-color","",je.designSystemVariables.colorOnSurfaceHigh),fontSize:je.FtCssVariableFactory.extend("--ft-checkbox-font-size","",C.fontSize),colorPrimary:je.FtCssVariableFactory.external(je.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:je.FtCssVariableFactory.external(je.designSystemVariables.colorOnPrimary,"Design system"),borderColor:je.FtCssVariableFactory.extend("--ft-checkbox-border-color","",je.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:je.FtCssVariableFactory.external(je.designSystemVariables.colorOnSurfaceDisabled,"Design system")},cs=ss.css`
|
|
819
819
|
* {
|
|
820
820
|
box-sizing: border-box;
|
|
821
821
|
}
|
|
822
822
|
|
|
823
823
|
.ft-checkbox {
|
|
824
824
|
box-sizing: border-box;
|
|
825
|
-
color: ${
|
|
826
|
-
font-size: ${
|
|
825
|
+
color: ${Dt.textColor};
|
|
826
|
+
font-size: ${Dt.fontSize};
|
|
827
827
|
|
|
828
828
|
display: inline-flex;
|
|
829
829
|
align-items: center;
|
|
@@ -831,7 +831,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
831
831
|
}
|
|
832
832
|
|
|
833
833
|
.ft-checkbox--disabled {
|
|
834
|
-
color: ${
|
|
834
|
+
color: ${Dt.colorOnSurfaceDisabled};
|
|
835
835
|
}
|
|
836
836
|
|
|
837
837
|
input {
|
|
@@ -855,26 +855,26 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
855
855
|
|
|
856
856
|
.ft-checkbox--box {
|
|
857
857
|
display: flex;
|
|
858
|
-
border: 2px solid ${
|
|
858
|
+
border: 2px solid ${Dt.borderColor};
|
|
859
859
|
border-radius: 2px;
|
|
860
860
|
|
|
861
861
|
width: 18px;
|
|
862
862
|
height: 18px;
|
|
863
863
|
|
|
864
|
-
color: ${
|
|
864
|
+
color: ${Dt.colorOnPrimary};
|
|
865
865
|
}
|
|
866
866
|
|
|
867
867
|
|
|
868
868
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
869
869
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
870
|
-
border-color: ${
|
|
871
|
-
background-color: ${
|
|
870
|
+
border-color: ${Dt.colorPrimary};
|
|
871
|
+
background-color: ${Dt.colorPrimary};
|
|
872
872
|
}
|
|
873
873
|
|
|
874
874
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
875
|
-
border-color: ${
|
|
875
|
+
border-color: ${Dt.colorOnSurfaceDisabled};
|
|
876
876
|
background-color: transparent;
|
|
877
|
-
color: ${
|
|
877
|
+
color: ${Dt.colorOnSurfaceDisabled};
|
|
878
878
|
}
|
|
879
879
|
|
|
880
880
|
.ft-checkbox--checkmark {
|
|
@@ -893,8 +893,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
893
893
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
894
894
|
opacity: 1;
|
|
895
895
|
}
|
|
896
|
-
`;var
|
|
897
|
-
<label class="${(0,
|
|
896
|
+
`;var Ho=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},_e=class extends ds.FtLitElement{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){let e={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return ps.html`
|
|
897
|
+
<label class="${(0,fs.classMap)(e)}" for="checkbox-input">
|
|
898
898
|
<div class="ft-checkbox--box-container">
|
|
899
899
|
<ft-ripple
|
|
900
900
|
?disabled=${this.disabled}
|
|
@@ -920,14 +920,14 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
920
920
|
<slot></slot>
|
|
921
921
|
</ft-typography>
|
|
922
922
|
</label>
|
|
923
|
-
`}onChange(
|
|
923
|
+
`}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),(o=this.ripple)===null||o===void 0||o.setupFor(this.container)}};_e.elementDefinitions={"ft-ripple":z,"ft-typography":q};_e.styles=cs;Ho([(0,Zt.property)()],_e.prototype,"name",void 0);Ho([(0,Zt.property)({type:Boolean,reflect:!0})],_e.prototype,"checked",void 0);Ho([(0,Zt.property)({type:Boolean})],_e.prototype,"indeterminate",void 0);Ho([(0,Zt.property)({type:Boolean})],_e.prototype,"disabled",void 0);Ho([(0,Zt.query)(".ft-checkbox")],_e.prototype,"container",void 0);Ho([(0,Zt.query)("ft-ripple")],_e.prototype,"ripple",void 0);(0,us.customElement)("ft-checkbox")(_e);var ji=u(O());var gs=u($()),dt=u(Z()),ys=u(O()),bs=u(st());var hs=u($()),Ke=u(O()),go={textColor:Ke.FtCssVariableFactory.extend("--ft-radio-text-color","",Ke.designSystemVariables.colorOnSurfaceHigh),colorPrimary:Ke.FtCssVariableFactory.external(Ke.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Ke.FtCssVariableFactory.external(Ke.designSystemVariables.colorOnPrimary,"Design system"),borderColor:Ke.FtCssVariableFactory.extend("--ft-radio-border-color","",Ke.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:Ke.FtCssVariableFactory.external(Ke.designSystemVariables.colorOnSurfaceDisabled,"Design system")},ms=hs.css`
|
|
924
924
|
* {
|
|
925
925
|
box-sizing: border-box;
|
|
926
926
|
}
|
|
927
927
|
|
|
928
928
|
.ft-radio {
|
|
929
929
|
box-sizing: border-box;
|
|
930
|
-
color: ${
|
|
930
|
+
color: ${go.textColor};
|
|
931
931
|
|
|
932
932
|
display: inline-flex;
|
|
933
933
|
align-items: center;
|
|
@@ -935,7 +935,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
935
935
|
}
|
|
936
936
|
|
|
937
937
|
.ft-radio--disabled {
|
|
938
|
-
color: ${
|
|
938
|
+
color: ${go.colorOnSurfaceDisabled};
|
|
939
939
|
}
|
|
940
940
|
|
|
941
941
|
input {
|
|
@@ -958,7 +958,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
958
958
|
}
|
|
959
959
|
|
|
960
960
|
.ft-radio--box {
|
|
961
|
-
border: 2px solid ${
|
|
961
|
+
border: 2px solid ${go.borderColor};
|
|
962
962
|
border-radius: 50%;
|
|
963
963
|
|
|
964
964
|
display: flex;
|
|
@@ -971,7 +971,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
971
971
|
|
|
972
972
|
.ft-radio--box:after {
|
|
973
973
|
content: " ";
|
|
974
|
-
background-color: ${
|
|
974
|
+
background-color: ${go.colorPrimary};
|
|
975
975
|
|
|
976
976
|
border-radius: 50%;
|
|
977
977
|
|
|
@@ -983,7 +983,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
983
983
|
}
|
|
984
984
|
|
|
985
985
|
.ft-radio--checked .ft-radio--box {
|
|
986
|
-
border-color: ${
|
|
986
|
+
border-color: ${go.colorPrimary};
|
|
987
987
|
}
|
|
988
988
|
|
|
989
989
|
|
|
@@ -992,24 +992,24 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
992
992
|
}
|
|
993
993
|
|
|
994
994
|
.ft-radio--disabled .ft-radio--box {
|
|
995
|
-
border-color: ${
|
|
995
|
+
border-color: ${go.colorOnSurfaceDisabled};
|
|
996
996
|
background-color: transparent;
|
|
997
997
|
}
|
|
998
998
|
|
|
999
999
|
.ft-radio--disabled .ft-radio--box:after {
|
|
1000
|
-
background-color: ${
|
|
1000
|
+
background-color: ${go.colorOnSurfaceDisabled};
|
|
1001
1001
|
}
|
|
1002
1002
|
|
|
1003
1003
|
.ft-radio:has(:focus-visible) {
|
|
1004
|
-
outline: 2px solid ${
|
|
1004
|
+
outline: 2px solid ${Ke.designSystemVariables.colorPrimary};
|
|
1005
1005
|
outline-offset: -2px;
|
|
1006
1006
|
}
|
|
1007
1007
|
|
|
1008
1008
|
.ft-radio ft-typography {
|
|
1009
1009
|
padding-right: 2px;
|
|
1010
1010
|
}
|
|
1011
|
-
`;var
|
|
1012
|
-
<div class="${(0,
|
|
1011
|
+
`;var _t=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Vr=class extends CustomEvent{constructor(e,o){super("change",{detail:{value:e,checked:o},bubbles:!0,composed:!0})}},ye=class extends ys.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.ariaChecked="false",this.disabled=!1,this.role="radio"}render(){let e={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return gs.html`
|
|
1012
|
+
<div class="${(0,bs.classMap)(e)}">
|
|
1013
1013
|
<div class="ft-radio--box-container">
|
|
1014
1014
|
<ft-ripple
|
|
1015
1015
|
?disabled=${this.disabled}
|
|
@@ -1027,13 +1027,13 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1027
1027
|
@change=${this.onChange}
|
|
1028
1028
|
>
|
|
1029
1029
|
</div>
|
|
1030
|
-
<label for="radio-button" @click=${
|
|
1030
|
+
<label for="radio-button" @click=${o=>{var i;o.stopPropagation(),o.preventDefault(),(i=this.input)===null||i===void 0||i.click()}}>
|
|
1031
1031
|
<ft-typography variant="body2">
|
|
1032
1032
|
<slot></slot>
|
|
1033
1033
|
</ft-typography>
|
|
1034
1034
|
</label>
|
|
1035
1035
|
</div>
|
|
1036
|
-
`}update(
|
|
1036
|
+
`}update(e){super.update(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Vr(this.value,this.checked))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),(o=this.ripple)===null||o===void 0||o.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Vr(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}};ye.elementDefinitions={"ft-ripple":z,"ft-typography":q};ye.styles=ms;_t([(0,dt.property)()],ye.prototype,"value",void 0);_t([(0,dt.property)()],ye.prototype,"name",void 0);_t([(0,dt.property)({type:Boolean,reflect:!0})],ye.prototype,"checked",void 0);_t([(0,dt.property)({attribute:"aria-checked",reflect:!0})],ye.prototype,"ariaChecked",void 0);_t([(0,dt.property)({type:Boolean})],ye.prototype,"disabled",void 0);_t([(0,dt.property)({reflect:!0,attribute:"role"})],ye.prototype,"role",void 0);_t([(0,dt.query)(".ft-radio")],ye.prototype,"container",void 0);_t([(0,dt.query)("ft-ripple")],ye.prototype,"ripple",void 0);_t([(0,dt.query)("input")],ye.prototype,"input",void 0);var Ss=u(O()),Tt=u(Z()),Os=u($());var vs=u($());var xs=vs.css`
|
|
1037
1037
|
:host {
|
|
1038
1038
|
display: block;
|
|
1039
1039
|
}
|
|
@@ -1041,12 +1041,12 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1041
1041
|
:host(:focus-visible) {
|
|
1042
1042
|
outline: none;
|
|
1043
1043
|
}
|
|
1044
|
-
`;var
|
|
1044
|
+
`;var Vo=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Te=class extends Ss.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.tabIndex=0,this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{this.tabIndex==0&&(this.tabIndex=-1,setTimeout(()=>this.focusCurrentChecked(),100))},this.onFocusOut=e=>{!this.contains(e.relatedTarget)&&(this.tabIndex=0)}}render(){return Os.html`
|
|
1045
1045
|
<slot @slotchange=${this.onSlotChange}
|
|
1046
1046
|
@change=${this.onChange}
|
|
1047
1047
|
@keydown=${this.onKeyDown}
|
|
1048
1048
|
></slot>
|
|
1049
|
-
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(
|
|
1049
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus),this.addEventListener("focusout",this.onFocusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus),this.removeEventListener("focusout",this.onFocusOut)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(o=>o.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(o=>o.checked=e.detail.value===o.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let o=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{o=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{o=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}o&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(o=>o.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Te.elementDefinitions={};Te.styles=xs;Vo([(0,Tt.property)()],Te.prototype,"name",void 0);Vo([(0,Tt.property)({reflect:!0,attribute:"role"})],Te.prototype,"role",void 0);Vo([(0,Tt.property)({reflect:!0})],Te.prototype,"tabIndex",void 0);Vo([(0,Tt.property)({reflect:!0,attribute:"aria-labelledby"})],Te.prototype,"ariaLabelledBy",void 0);Vo([(0,Tt.queryAssignedElements)()],Te.prototype,"radioButtons",void 0);Vo([(0,Tt.state)()],Te.prototype,"currentSelectedIndex",void 0);(0,ji.customElement)("ft-radio")(ye);(0,ji.customElement)("ft-radio-group")(Te);var ws=u($()),oe=u(O());var jr={borderRadiusM:oe.FtCssVariableFactory.external(oe.designSystemVariables.borderRadiusM,"Design system"),colorOutline:oe.FtCssVariableFactory.external(oe.designSystemVariables.colorOutline,"Design system"),colorOnSurface:oe.FtCssVariableFactory.external(oe.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:oe.FtCssVariableFactory.external(oe.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:oe.FtCssVariableFactory.external(oe.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:oe.FtCssVariableFactory.external(oe.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:oe.FtCssVariableFactory.external(oe.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:oe.FtCssVariableFactory.external(Se.fontFamily,"Body2 typography"),fontSize:oe.FtCssVariableFactory.external(Se.fontSize,"Body2 typography"),fontWeight:oe.FtCssVariableFactory.external(Se.fontWeight,"Body2 typography"),letterSpacing:oe.FtCssVariableFactory.external(Se.letterSpacing,"Body2 typography"),lineHeight:oe.FtCssVariableFactory.external(Se.lineHeight,"Body2 typography"),textTransform:oe.FtCssVariableFactory.external(Se.textTransform,"Body2 typography")},Cs=ws.css`
|
|
1050
1050
|
.ft-filter-level--container {
|
|
1051
1051
|
display: flex;
|
|
1052
1052
|
flex-direction: column;
|
|
@@ -1060,14 +1060,14 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1060
1060
|
flex-shrink: 0;
|
|
1061
1061
|
text-decoration: none;
|
|
1062
1062
|
position: relative;
|
|
1063
|
-
border-radius: ${
|
|
1063
|
+
border-radius: ${jr.borderRadiusM};
|
|
1064
1064
|
overflow: hidden;
|
|
1065
1065
|
display: flex;
|
|
1066
1066
|
align-items: center;
|
|
1067
1067
|
padding: 4px 4px;
|
|
1068
1068
|
gap: 4px;
|
|
1069
1069
|
cursor: pointer;
|
|
1070
|
-
color: ${
|
|
1070
|
+
color: ${jr.colorOnSurface};
|
|
1071
1071
|
}
|
|
1072
1072
|
|
|
1073
1073
|
.ft-filter-level--go-back:focus {
|
|
@@ -1096,7 +1096,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1096
1096
|
}
|
|
1097
1097
|
|
|
1098
1098
|
ft-button {
|
|
1099
|
-
${(0,
|
|
1099
|
+
${(0,oe.setVariable)(M.color,jr.colorOnSurface)};
|
|
1100
1100
|
}
|
|
1101
1101
|
|
|
1102
1102
|
ft-radio, ft-checkbox {
|
|
@@ -1110,11 +1110,11 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1110
1110
|
|
|
1111
1111
|
.ft-filter-level--no-values {
|
|
1112
1112
|
margin: 10px 0;
|
|
1113
|
-
color: ${
|
|
1113
|
+
color: ${jr.colorOnSurfaceMedium};
|
|
1114
1114
|
}
|
|
1115
|
-
`;var
|
|
1115
|
+
`;var Re=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},se=class extends Kr.FtLitElement{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,o;return(o=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&o!==void 0?o:0}render(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(i=>!i.selected)),this.filter&&(e=e.filter(i=>i.label.toLowerCase().includes(this.filter.toLowerCase())));let o=e.slice(0,this.limit);return Ge.html`
|
|
1116
1116
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1117
|
-
${this.parent==null?null:
|
|
1117
|
+
${this.parent==null?null:Ge.html`
|
|
1118
1118
|
<div tabindex="0"
|
|
1119
1119
|
part="controls go-back"
|
|
1120
1120
|
class="ft-filter-level--go-back"
|
|
@@ -1127,15 +1127,15 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1127
1127
|
<ft-typography variant="body2">${this.parent.label}</ft-typography>
|
|
1128
1128
|
</div>
|
|
1129
1129
|
`}
|
|
1130
|
-
${this.options.length===0&&this.noValuesLabel?
|
|
1130
|
+
${this.options.length===0&&this.noValuesLabel?Ge.html`
|
|
1131
1131
|
<ft-typography class="ft-filter-level--no-values" element="span" variant="body2">
|
|
1132
1132
|
${this.noValuesLabel}
|
|
1133
1133
|
</ft-typography>
|
|
1134
|
-
`:
|
|
1135
|
-
${(0,
|
|
1134
|
+
`:Ge.nothing}
|
|
1135
|
+
${(0,Es.repeat)(o,i=>i.value,i=>{var n;return Ge.html`
|
|
1136
1136
|
<div class="ft-filter-level--option" part="options" tabindex="-1">
|
|
1137
1137
|
${this.multivalued?this.buildMultiValuedOption(i):this.buildMonoValuedOption(i)}
|
|
1138
|
-
${this.preventNavigation||i.selected||((
|
|
1138
|
+
${this.preventNavigation||i.selected||((n=i.subOptions)!==null&&n!==void 0?n:[]).length===0?Ge.nothing:Ge.html`
|
|
1139
1139
|
<ft-button icon="thin_arrow_right"
|
|
1140
1140
|
part="controls navigate-hierarchy"
|
|
1141
1141
|
aria-label="expand node"
|
|
@@ -1146,7 +1146,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1146
1146
|
`}
|
|
1147
1147
|
</div>
|
|
1148
1148
|
`})}
|
|
1149
|
-
${
|
|
1149
|
+
${o.length<e.length?Ge.html`
|
|
1150
1150
|
<ft-button
|
|
1151
1151
|
class="ft-filter-level--display-more"
|
|
1152
1152
|
icon="thin_arrow"
|
|
@@ -1155,30 +1155,30 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1155
1155
|
@click=${this.displayMore}>
|
|
1156
1156
|
${this.moreValuesButtonLabel}
|
|
1157
1157
|
</ft-button>
|
|
1158
|
-
`:
|
|
1158
|
+
`:Ge.nothing}
|
|
1159
1159
|
</div>
|
|
1160
|
-
`}goBackOnKeyPress(
|
|
1160
|
+
`}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(e){var o;return Ge.html`
|
|
1161
1161
|
<ft-checkbox name="${this.filterId}"
|
|
1162
1162
|
part="multivalued-option"
|
|
1163
|
-
data-value="${
|
|
1164
|
-
.checked=${
|
|
1163
|
+
data-value="${e.value}"
|
|
1164
|
+
.checked=${e.selected}
|
|
1165
1165
|
.disabled=${this.disabled}
|
|
1166
|
-
.indeterminate=${(0,
|
|
1167
|
-
@change=${i=>this.optionsChanged(i,
|
|
1168
|
-
${
|
|
1166
|
+
.indeterminate=${(0,Kr.flatDeep)((o=e.subOptions)!==null&&o!==void 0?o:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
|
|
1167
|
+
@change=${i=>this.optionsChanged(i,e)}>
|
|
1168
|
+
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1169
1169
|
</ft-checkbox>
|
|
1170
|
-
`}buildMonoValuedOption(
|
|
1170
|
+
`}buildMonoValuedOption(e){return Ge.html`
|
|
1171
1171
|
<ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
|
|
1172
1172
|
part="monovalued-option"
|
|
1173
|
-
data-value="${
|
|
1174
|
-
value="${
|
|
1175
|
-
.checked=${
|
|
1173
|
+
data-value="${e.value}"
|
|
1174
|
+
value="${e.value}"
|
|
1175
|
+
.checked=${e.selected}
|
|
1176
1176
|
.disabled=${this.disabled}
|
|
1177
|
-
@keydown=${
|
|
1178
|
-
@change=${
|
|
1179
|
-
${
|
|
1177
|
+
@keydown=${o=>this.onRadioKeyDown(o,e)}
|
|
1178
|
+
@change=${o=>this.optionsChanged(o,e)}>
|
|
1179
|
+
${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
|
|
1180
1180
|
</ft-radio>
|
|
1181
|
-
`}onRadioKeyDown(
|
|
1181
|
+
`}onRadioKeyDown(e,o){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,o))}optionsChanged(e,o){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:o}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}};se.elementDefinitions={"ft-button":ge,"ft-ripple":z,"ft-typography":q,"ft-checkbox":_e,"ft-icon":le,"ft-radio":ye};se.styles=Cs;Re([(0,xe.property)({type:String})],se.prototype,"filterId",void 0);Re([(0,xe.property)({type:Object})],se.prototype,"parent",void 0);Re([(0,xe.property)({type:Array})],se.prototype,"options",void 0);Re([(0,xe.property)({type:Boolean})],se.prototype,"multivalued",void 0);Re([(0,xe.property)({type:Boolean})],se.prototype,"disabled",void 0);Re([(0,xe.property)({type:Boolean})],se.prototype,"hideSelectedOptions",void 0);Re([(0,xe.property)({type:Boolean})],se.prototype,"displayCount",void 0);Re([(0,xe.property)({type:Boolean})],se.prototype,"preventNavigation",void 0);Re([(0,xe.property)({type:String})],se.prototype,"filter",void 0);Re([(0,xe.property)({type:String})],se.prototype,"moreValuesButtonLabel",void 0);Re([(0,xe.property)({type:String})],se.prototype,"noValuesLabel",void 0);Re([(0,xe.property)({type:Number})],se.prototype,"displayedValuesLimit",void 0);Re([(0,xe.query)(".ft-filter-level--container")],se.prototype,"container",void 0);Re([(0,xe.state)()],se.prototype,"radios",void 0);Re([(0,xe.state)()],se.prototype,"displayedPages",void 0);var As=u(O());var Ns=u($()),Ze=u(Z()),yo=u(O());var ks=u(st());var Rs=u($()),ft=u(O());var $e={buttonsColor:ft.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",ft.designSystemVariables.colorPrimary),buttonsZIndex:ft.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:ft.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:ft.FtCssVariableFactory.external(ft.designSystemVariables.colorSurface,"Design system")},$s=Rs.css`
|
|
1182
1182
|
.ft-snap-scroll {
|
|
1183
1183
|
box-sizing: border-box;
|
|
1184
1184
|
position: relative;
|
|
@@ -1213,7 +1213,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1213
1213
|
flex-wrap: nowrap;
|
|
1214
1214
|
align-items: flex-start;
|
|
1215
1215
|
justify-content: flex-start;
|
|
1216
|
-
gap: ${
|
|
1216
|
+
gap: ${$e.gap};
|
|
1217
1217
|
}
|
|
1218
1218
|
|
|
1219
1219
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1256,11 +1256,11 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1256
1256
|
.ft-snap-scroll--next {
|
|
1257
1257
|
position: absolute;
|
|
1258
1258
|
display: flex;
|
|
1259
|
-
z-index: ${
|
|
1259
|
+
z-index: ${$e.buttonsZIndex};
|
|
1260
1260
|
opacity: 1;
|
|
1261
1261
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1262
|
-
${(0,
|
|
1263
|
-
${(0,
|
|
1262
|
+
${(0,ft.setVariable)(M.backgroundColor,"transparent")};
|
|
1263
|
+
${(0,ft.setVariable)(M.color,$e.buttonsColor)};
|
|
1264
1264
|
}
|
|
1265
1265
|
|
|
1266
1266
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1273,45 +1273,45 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1273
1273
|
top: 0;
|
|
1274
1274
|
left: -1px;
|
|
1275
1275
|
bottom: 0;
|
|
1276
|
-
background: linear-gradient(to right, ${
|
|
1276
|
+
background: linear-gradient(to right, ${$e.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1277
1277
|
}
|
|
1278
1278
|
|
|
1279
1279
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1280
1280
|
top: -1px;
|
|
1281
1281
|
left: 0;
|
|
1282
1282
|
right: 0;
|
|
1283
|
-
background: linear-gradient(to bottom, ${
|
|
1283
|
+
background: linear-gradient(to bottom, ${$e.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1284
1284
|
}
|
|
1285
1285
|
|
|
1286
1286
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1287
1287
|
top: 0;
|
|
1288
1288
|
right: -1px;
|
|
1289
1289
|
bottom: 0;
|
|
1290
|
-
background: linear-gradient(to left, ${
|
|
1290
|
+
background: linear-gradient(to left, ${$e.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1291
1291
|
}
|
|
1292
1292
|
|
|
1293
1293
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1294
1294
|
left: 0;
|
|
1295
1295
|
right: 0;
|
|
1296
1296
|
bottom: -1px;
|
|
1297
|
-
background: linear-gradient(to top, ${
|
|
1297
|
+
background: linear-gradient(to top, ${$e.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1298
1298
|
}
|
|
1299
1299
|
|
|
1300
1300
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1301
1301
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1302
1302
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1303
1303
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1304
|
-
background-color: ${
|
|
1304
|
+
background-color: ${$e.colorSurface};
|
|
1305
1305
|
}
|
|
1306
|
-
`;var
|
|
1307
|
-
<div part="container" class="${
|
|
1306
|
+
`;var xt=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Ki=class extends CustomEvent{constructor(e,o){super("current-element-change",{detail:{index:e,element:o}})}},he=class extends yo.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 yo.Debouncer(200),this.updateScrollDebouncer=new yo.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let o=this.elements[e];if(o){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(o[this.offsetAttribute]<n||o[this.offsetAttribute]+o[this.sizeAttribute]>i)&&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(){let e=(0,ks.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":yo.isSafari}),o=this.controls&&this.withScroll;return Ns.html`
|
|
1307
|
+
<div part="container" class="${e}">
|
|
1308
1308
|
<ft-button
|
|
1309
1309
|
class="ft-snap-scroll--previous"
|
|
1310
1310
|
part="controls"
|
|
1311
1311
|
primary
|
|
1312
1312
|
icon="${this.horizontal?"THIN_ARROW_LEFT":"THIN_ARROW_UP"}"
|
|
1313
|
-
?hidden=${!
|
|
1314
|
-
?disabled=${!
|
|
1313
|
+
?hidden=${!o||this.startReached}
|
|
1314
|
+
?disabled=${!o||this.startReached}
|
|
1315
1315
|
@click=${this.previous}
|
|
1316
1316
|
></ft-button>
|
|
1317
1317
|
<slot class="ft-snap-scroll--content"
|
|
@@ -1322,12 +1322,12 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1322
1322
|
part="controls"
|
|
1323
1323
|
primary
|
|
1324
1324
|
icon="${this.horizontal?"THIN_ARROW_RIGHT":"THIN_ARROW"}"
|
|
1325
|
-
?hidden=${!
|
|
1326
|
-
?disabled=${!
|
|
1325
|
+
?hidden=${!o||this.endReached}
|
|
1326
|
+
?disabled=${!o||this.endReached}
|
|
1327
1327
|
@click=${this.next}
|
|
1328
1328
|
></ft-button>
|
|
1329
1329
|
</div>
|
|
1330
|
-
`}update(
|
|
1330
|
+
`}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Ki(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var o;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(o=this.listenedContainer)===null||o===void 0||o.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let o=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<o&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var o,i;e&&(this.horizontal?(o=this.contentSlot)===null||o===void 0||o.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,o;this.elements=(o=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&o!==void 0?o:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let o=0;o<this.elements.length;o++)(e<0||this.getDistanceFromStart(this.elements[o])<this.getDistanceFromStart(this.elements[e]))&&(e=o);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let o=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-o)}};he.elementDefinitions={"ft-button":ge};he.styles=$s;xt([(0,Ze.property)({type:Boolean})],he.prototype,"horizontal",void 0);xt([(0,Ze.property)({type:Boolean})],he.prototype,"hideScrollbar",void 0);xt([(0,Ze.property)({type:Boolean})],he.prototype,"controls",void 0);xt([(0,Ze.property)({type:Boolean})],he.prototype,"limitSize",void 0);xt([(0,Ze.state)()],he.prototype,"elements",void 0);xt([(0,Ze.state)()],he.prototype,"currentElement",void 0);xt([(0,Ze.state)()],he.prototype,"withScroll",void 0);xt([(0,Ze.state)()],he.prototype,"startReached",void 0);xt([(0,Ze.state)()],he.prototype,"endReached",void 0);xt([(0,Ze.query)(".ft-snap-scroll--content")],he.prototype,"contentSlot",void 0);(0,As.customElement)("ft-snap-scroll")(he);var Ls=u($()),ae=u(O());var ze={colorOutline:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOutline,"Design system"),colorOnSurface:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorPrimary,"Design system"),colorSurface:ae.FtCssVariableFactory.external(ae.designSystemVariables.colorSurface,"Design system"),transitionDuration:ae.FtCssVariableFactory.external(ae.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:ae.FtCssVariableFactory.external(ae.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:ae.FtCssVariableFactory.extend("--ft-filter-label-color","",ae.designSystemVariables.colorOnSurface),labelFontSize:ae.FtCssVariableFactory.extend("--ft-filter-label-font-size","",C.fontSize,"16px")},Ps=[Ht,Ls.css`
|
|
1331
1331
|
:host {
|
|
1332
1332
|
display: flex;
|
|
1333
1333
|
max-height: 100%;
|
|
@@ -1354,7 +1354,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1354
1354
|
.ft-filter--header ft-button {
|
|
1355
1355
|
flex-shrink: 0;
|
|
1356
1356
|
margin-left: auto;
|
|
1357
|
-
${(0,
|
|
1357
|
+
${(0,ae.setVariable)(M.iconSize,"18px")};
|
|
1358
1358
|
}
|
|
1359
1359
|
.filter-label {
|
|
1360
1360
|
display: contents;
|
|
@@ -1365,10 +1365,10 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1365
1365
|
flex-shrink: 1;
|
|
1366
1366
|
flex-grow: 1;
|
|
1367
1367
|
word-break: break-word;
|
|
1368
|
-
color: ${
|
|
1369
|
-
font-size: ${
|
|
1370
|
-
${(0,
|
|
1371
|
-
${(0,
|
|
1368
|
+
color: ${ze.labelColor};
|
|
1369
|
+
font-size: ${ze.labelFontSize};
|
|
1370
|
+
${(0,ae.setVariable)(C.lineHeight,"22px")};
|
|
1371
|
+
${(0,ae.setVariable)(C.fontWeight,"bold")};
|
|
1372
1372
|
}
|
|
1373
1373
|
|
|
1374
1374
|
.ft-filter--filter {
|
|
@@ -1379,8 +1379,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1379
1379
|
padding: 0 10px;
|
|
1380
1380
|
overflow: hidden;
|
|
1381
1381
|
height: 32px;
|
|
1382
|
-
transition: height ${
|
|
1383
|
-
margin ${
|
|
1382
|
+
transition: height ${ze.transitionDuration} ${ze.transitionTimingFunction},
|
|
1383
|
+
margin ${ze.transitionDuration} ${ze.transitionTimingFunction};
|
|
1384
1384
|
transition-delay: 500ms;
|
|
1385
1385
|
}
|
|
1386
1386
|
|
|
@@ -1393,15 +1393,15 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1393
1393
|
display: block;
|
|
1394
1394
|
width: 100%;
|
|
1395
1395
|
border-radius: 4px;
|
|
1396
|
-
border: 1px solid ${
|
|
1396
|
+
border: 1px solid ${ze.colorOutline};
|
|
1397
1397
|
padding: 4px;
|
|
1398
|
-
background-color: ${
|
|
1399
|
-
color: ${
|
|
1400
|
-
outline-color: ${
|
|
1398
|
+
background-color: ${ze.colorSurface};
|
|
1399
|
+
color: ${ze.colorOnSurface};
|
|
1400
|
+
outline-color: ${ze.colorPrimary};
|
|
1401
1401
|
}
|
|
1402
1402
|
|
|
1403
1403
|
input::placeholder {
|
|
1404
|
-
color: ${
|
|
1404
|
+
color: ${ze.colorOnSurfaceMedium};
|
|
1405
1405
|
}
|
|
1406
1406
|
|
|
1407
1407
|
input:placeholder-shown {
|
|
@@ -1417,7 +1417,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1417
1417
|
}
|
|
1418
1418
|
|
|
1419
1419
|
.ft-filter--separator {
|
|
1420
|
-
border-top: 1px solid ${
|
|
1420
|
+
border-top: 1px solid ${ze.colorOutline};
|
|
1421
1421
|
margin: 4px 10px;
|
|
1422
1422
|
}
|
|
1423
1423
|
|
|
@@ -1442,10 +1442,10 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1442
1442
|
slot:not([name]) {
|
|
1443
1443
|
display: none;
|
|
1444
1444
|
}
|
|
1445
|
-
`];var
|
|
1445
|
+
`];var re=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Gi=class extends CustomEvent{constructor(e){super("change",{detail:e})}},j=class extends rt.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new rt.Debouncer(300),this.changeDebouncer=new rt.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,rt.flatDeep)(this.options,e=>{var o;return(o=e.subOptions)!==null&&o!==void 0?o:[]})}get childrenFilteredFlatOptions(){return(0,rt.flatDeep)(this.options,e=>{var o;return e.selected?[]:(o=e.subOptions)!==null&&o!==void 0?o:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(n=>n.selected),o=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return bo.html`
|
|
1446
1446
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1447
1447
|
part="container">
|
|
1448
|
-
${!this.label&&!
|
|
1448
|
+
${!this.label&&!e?null:bo.html`
|
|
1449
1449
|
|
|
1450
1450
|
<div class="ft-filter--header" part="header">
|
|
1451
1451
|
<div class="filter-label" id="id-group-${this.id}">
|
|
@@ -1454,20 +1454,20 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1454
1454
|
</ft-typography>
|
|
1455
1455
|
<slot name="label"></slot>
|
|
1456
1456
|
</div>
|
|
1457
|
-
${
|
|
1457
|
+
${e&&!this.hideClearButton?bo.html`
|
|
1458
1458
|
<ft-button icon="close" dense @click=${this.clear} part="clear-button">
|
|
1459
1459
|
${this.clearButtonLabel}
|
|
1460
1460
|
</ft-button>
|
|
1461
1461
|
`:null}
|
|
1462
1462
|
</div>
|
|
1463
1463
|
`}
|
|
1464
|
-
<div class="ft-filter--filter" ?hidden=${!
|
|
1464
|
+
<div class="ft-filter--filter" ?hidden=${!o}>
|
|
1465
1465
|
<input type="search"
|
|
1466
1466
|
part="input"
|
|
1467
1467
|
class="ft-typography--caption"
|
|
1468
|
-
?disabled=${!
|
|
1468
|
+
?disabled=${!o}
|
|
1469
1469
|
placeholder="${i}"
|
|
1470
|
-
size="${
|
|
1470
|
+
size="${o?i.length:0}"
|
|
1471
1471
|
@search=${this.onFilterChange}
|
|
1472
1472
|
@keyup=${this.onFilterChange}>
|
|
1473
1473
|
</div>
|
|
@@ -1478,15 +1478,15 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1478
1478
|
@slotchange=${this.updateOptionsFromSlot}
|
|
1479
1479
|
@option-change=${this.optionsChanged}></slot>
|
|
1480
1480
|
</div>
|
|
1481
|
-
`}update(
|
|
1482
|
-
${this.raiseSelectedOptions&&
|
|
1481
|
+
`}update(e){if(super.update(e),e.has("options")){let o=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>o.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var o,i,n,a,l;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(o=this.levelsContainer)===null||o===void 0||o.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&setTimeout(()=>{var s;(s=this.levelsContainer)===null||s===void 0||s.next(),this.slideIn=void 0},0),e.has("slideOut")&&this.slideOut&&((i=this.levelsContainer)===null||i===void 0||i.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(l=(a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||a===void 0?void 0:a.hasHiddenValues)!==null&&l!==void 0?l:!1}renderLevels(){let e=this.flatOptions,o=e.filter(a=>a.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return bo.html`
|
|
1482
|
+
${this.raiseSelectedOptions&&o.length>0?bo.html`
|
|
1483
1483
|
<ft-filter-level
|
|
1484
1484
|
filterId="${this.id}"
|
|
1485
1485
|
?multivalued=${this.multivalued}
|
|
1486
1486
|
?disabled=${this.disabled}
|
|
1487
1487
|
?displayCount="${this.displayCount}"
|
|
1488
1488
|
preventNavigation
|
|
1489
|
-
.options=${
|
|
1489
|
+
.options=${o}
|
|
1490
1490
|
@change=${this.onChange}
|
|
1491
1491
|
part="values selected-values"
|
|
1492
1492
|
.exportpartsPrefixes=${["values","selected-values"]}
|
|
@@ -1495,22 +1495,22 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1495
1495
|
`:null}
|
|
1496
1496
|
<ft-snap-scroll horizontal hideScrollbar
|
|
1497
1497
|
class="ft-filter--levels"
|
|
1498
|
-
@current-element-change=${
|
|
1499
|
-
${this.renderLevel(
|
|
1500
|
-
${this.displayedLevels.map(
|
|
1498
|
+
@current-element-change=${a=>this.levelsScrollDebouncer.run(()=>{for(;a.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
|
|
1499
|
+
${this.renderLevel(n,this.options)}
|
|
1500
|
+
${this.displayedLevels.map(a=>e.find(l=>l.value===a)).map((a,l)=>{var s;let d=a?.value===this.slideIn||a?.value===this.slideOut?"ft-filter--level-right":l===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(d,(s=a?.subOptions)!==null&&s!==void 0?s:[],a)})}
|
|
1501
1501
|
</ft-snap-scroll>
|
|
1502
|
-
`}renderLevel(
|
|
1502
|
+
`}renderLevel(e,o,i){return bo.html`
|
|
1503
1503
|
<ft-filter-level
|
|
1504
|
-
class="${
|
|
1504
|
+
class="${e}"
|
|
1505
1505
|
filterId="${this.id}"
|
|
1506
1506
|
.filter="${this.filter}"
|
|
1507
1507
|
moreValuesButtonLabel="${this.moreValuesButtonLabel}"
|
|
1508
1508
|
?multivalued=${this.multivalued}
|
|
1509
|
-
?disabled=${this.disabled||
|
|
1509
|
+
?disabled=${this.disabled||e!=="ft-filter--level-center"}
|
|
1510
1510
|
?hideSelectedOptions=${this.raiseSelectedOptions}
|
|
1511
1511
|
?displayCount="${this.displayCount}"
|
|
1512
1512
|
.parent=${i}
|
|
1513
|
-
.options=${
|
|
1513
|
+
.options=${o}
|
|
1514
1514
|
.displayedValuesLimit=${this.displayedValuesLimit}
|
|
1515
1515
|
@change=${this.onChange}
|
|
1516
1516
|
@go-back=${this.goBack}
|
|
@@ -1519,21 +1519,21 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1519
1519
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1520
1520
|
noValuesLabel="${this.noValuesLabel}"
|
|
1521
1521
|
></ft-filter-level>
|
|
1522
|
-
`}goBack(
|
|
1522
|
+
`}goBack(e){this.slideOut=e.detail.value}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var o;e.stopPropagation();let i=this.flatOptions.find(a=>a.value===e.detail.value);i.selected=!i.selected;let n=a=>{var l;a!==i&&(a.selected=!1),(l=a.subOptions)===null||l===void 0||l.forEach(n)};this.multivalued?(o=i.subOptions)===null||o===void 0||o.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(o=>o.requestUpdate())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,rt.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new Gi(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(o=>o),this.optionsChanged()}onFilterChange(){var e,o;this.filter=(o=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};j.elementDefinitions={"ft-button":ge,"ft-filter-level":se,"ft-snap-scroll":he,"ft-typography":q};j.styles=Ps;re([(0,Y.property)({type:String})],j.prototype,"id",void 0);re([(0,Y.property)({type:String})],j.prototype,"label",void 0);re([(0,Y.property)({type:String})],j.prototype,"filterPlaceHolder",void 0);re([(0,Y.property)({type:String})],j.prototype,"clearButtonLabel",void 0);re([(0,Y.property)({type:String})],j.prototype,"moreValuesButtonLabel",void 0);re([(0,Y.property)({type:String})],j.prototype,"noValuesLabel",void 0);re([(0,rt.jsonProperty)([])],j.prototype,"options",void 0);re([(0,Y.property)({type:Boolean})],j.prototype,"multivalued",void 0);re([(0,Y.property)({type:Boolean})],j.prototype,"disabled",void 0);re([(0,Y.property)({type:Boolean})],j.prototype,"raiseSelectedOptions",void 0);re([(0,Y.property)({type:Boolean})],j.prototype,"displayCount",void 0);re([(0,Y.property)({type:Number})],j.prototype,"displayedValuesLimit",void 0);re([(0,Y.property)({type:Boolean})],j.prototype,"hideClearButton",void 0);re([(0,Y.query)(".ft-filter--slot")],j.prototype,"slotElement",void 0);re([(0,Y.query)(".ft-filter--container")],j.prototype,"container",void 0);re([(0,Y.query)(".ft-filter--values")],j.prototype,"valuesContainer",void 0);re([(0,Y.query)(".ft-filter--levels")],j.prototype,"levelsContainer",void 0);re([(0,Y.state)()],j.prototype,"lastLevelHasHiddenvalues",void 0);re([(0,Y.query)(".ft-filter--filter input")],j.prototype,"filterInput",void 0);re([(0,Y.queryAll)(".ft-filter--levels ft-filter-level")],j.prototype,"levels",void 0);re([(0,Y.state)()],j.prototype,"withScroll",void 0);re([(0,Y.state)()],j.prototype,"filter",void 0);re([(0,Y.state)()],j.prototype,"slideIn",void 0);re([(0,Y.state)()],j.prototype,"slideOut",void 0);var Gr=u(O()),vo=u(Z()),Is=u($()),jo=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},qe=class extends Gr.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Is.html`
|
|
1523
1523
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1524
|
-
`}updateSubOptionsFromSlot(
|
|
1524
|
+
`}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(o=>o)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};qe.elementDefinitions={};jo([(0,vo.property)({type:String})],qe.prototype,"label",void 0);jo([(0,vo.property)({type:Object,converter:t=>t})],qe.prototype,"value",void 0);jo([(0,vo.property)({type:Boolean,reflect:!0})],qe.prototype,"selected",void 0);jo([(0,vo.property)({type:Object})],qe.prototype,"subOptions",void 0);jo([(0,Gr.jsonProperty)({})],qe.prototype,"renderOption",void 0);jo([(0,vo.query)(".ft-filter-option--slot")],qe.prototype,"slotElement",void 0);(0,Zi.customElement)("ft-filter")(j);(0,Zi.customElement)("ft-filter-option")(qe);var qi=u(O());var Ts=u($()),Zr=u(Z()),zs=u(O());var Bs=u($());var Ds=Bs.css`
|
|
1525
1525
|
.ft-accordion {
|
|
1526
1526
|
box-sizing: border-box;
|
|
1527
1527
|
}
|
|
1528
|
-
`;var
|
|
1528
|
+
`;var _s=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},St=class extends zs.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return Ts.html`
|
|
1529
1529
|
<div class="ft-accordion">
|
|
1530
1530
|
<slot @activated=${this.onChange}></slot>
|
|
1531
1531
|
</div>
|
|
1532
|
-
`}onChange(
|
|
1532
|
+
`}onChange(e){e.stopPropagation(),this.multi||this.content.assignedElements().forEach(o=>o.active=o===e.target)}};St.elementDefinitions={};St.styles=Ds;_s([(0,Zr.property)({type:Boolean})],St.prototype,"multi",void 0);_s([(0,Zr.query)("slot")],St.prototype,"content",void 0);var mr=u($()),gr=u(Z()),Ws=u(O());var Fs=u($()),So=u(O()),xo={horizontalSpacing:So.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),verticalSpacing:So.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),colorOutline:So.FtCssVariableFactory.external(So.designSystemVariables.colorOutline,"Design system"),backgroundColor:So.FtCssVariableFactory.create("--ft-accordion-item-background-color","","COLOR","#FFFFFF")},Ms=Fs.css`
|
|
1533
1533
|
.ft-accordion-item {
|
|
1534
1534
|
display: flex;
|
|
1535
1535
|
flex-direction: column;
|
|
1536
|
-
background-color: ${
|
|
1536
|
+
background-color: ${xo.backgroundColor};
|
|
1537
1537
|
}
|
|
1538
1538
|
|
|
1539
1539
|
.ft-accordion-item--toggle {
|
|
@@ -1543,8 +1543,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1543
1543
|
display: flex;
|
|
1544
1544
|
align-items: center;
|
|
1545
1545
|
cursor: pointer;
|
|
1546
|
-
padding: ${
|
|
1547
|
-
gap: calc(${
|
|
1546
|
+
padding: ${xo.verticalSpacing} ${xo.horizontalSpacing};
|
|
1547
|
+
gap: calc(${xo.horizontalSpacing} / 2);
|
|
1548
1548
|
outline: none;
|
|
1549
1549
|
}
|
|
1550
1550
|
|
|
@@ -1569,13 +1569,13 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1569
1569
|
.ft-accordion-item--active .ft-accordion-item--content {
|
|
1570
1570
|
height: initial;
|
|
1571
1571
|
overflow: visible;
|
|
1572
|
-
padding: ${
|
|
1572
|
+
padding: ${xo.verticalSpacing} ${xo.horizontalSpacing};
|
|
1573
1573
|
}
|
|
1574
1574
|
|
|
1575
1575
|
.ft-accordion-item--separator {
|
|
1576
|
-
border-bottom: 1px solid ${
|
|
1576
|
+
border-bottom: 1px solid ${xo.colorOutline};
|
|
1577
1577
|
}
|
|
1578
|
-
`;var
|
|
1578
|
+
`;var qr=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},it=class extends Ws.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return mr.html`
|
|
1579
1579
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1580
1580
|
<div class="ft-accordion-item--toggle"
|
|
1581
1581
|
part="toggle"
|
|
@@ -1586,13 +1586,13 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1586
1586
|
aria-controls="ft-accordion-item-content"
|
|
1587
1587
|
aria-expanded="${this.active}">
|
|
1588
1588
|
<ft-ripple part="toggle-ripple"></ft-ripple>
|
|
1589
|
-
${this.icon?
|
|
1589
|
+
${this.icon?mr.html`
|
|
1590
1590
|
<ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
|
|
1591
1591
|
`:null}
|
|
1592
|
-
${this.label?
|
|
1592
|
+
${this.label?mr.html`
|
|
1593
1593
|
<ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
|
|
1594
1594
|
</ft-typography>
|
|
1595
|
-
`:
|
|
1595
|
+
`:mr.html`
|
|
1596
1596
|
<slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
|
|
1597
1597
|
`}
|
|
1598
1598
|
<ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
|
|
@@ -1605,7 +1605,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1605
1605
|
</div>
|
|
1606
1606
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1607
1607
|
</div>
|
|
1608
|
-
`}update(
|
|
1608
|
+
`}update(e){super.update(e),e.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),this.active=!this.active)}};it.elementDefinitions={"ft-ripple":z,"ft-typography":q,"ft-icon":le};it.styles=Ms;qr([(0,gr.property)()],it.prototype,"icon",void 0);qr([(0,gr.property)()],it.prototype,"iconVariant",void 0);qr([(0,gr.property)()],it.prototype,"label",void 0);qr([(0,gr.property)({type:Boolean,reflect:!0})],it.prototype,"active",void 0);(0,qi.customElement)("ft-accordion")(St);(0,qi.customElement)("ft-accordion-item")(it);var Gs=u(O());var Xr=u($()),ke=u(Z()),Ks=u(st()),Qr=u(O());var Yr=u($()),F=u(O());var Us=F.FtCssVariableFactory.extend("--ft-chip-color","",F.designSystemVariables.colorOnSurface),Ne={backgroundColor:F.FtCssVariableFactory.extend("--ft-chip-background-color","",F.designSystemVariables.colorSurface),color:Us,fontSize:F.FtCssVariableFactory.extend("--ft-chip-font-size","",Se.fontSize),iconSize:F.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:F.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:F.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Us),horizontalPadding:F.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:F.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:F.FtCssVariableFactory.external(F.designSystemVariables.colorOutline,"Design system"),opacityDisabled:F.FtCssVariableFactory.external(F.designSystemVariables.colorOpacityDisabled,"Design system")},Hs=F.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",F.FtCssVariableFactory.extend("--ft-chip-color","",F.designSystemVariables.colorOnPrimary)),Yi={backgroundColor:F.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",F.FtCssVariableFactory.extend("--ft-chip-background-color","",F.designSystemVariables.colorPrimary)),color:Hs,rippleColor:F.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Hs)},Vs={horizontalPadding:F.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:F.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},js=[F.noTextSelect,Yr.css`
|
|
1609
1609
|
:host {
|
|
1610
1610
|
display: inline-block;
|
|
1611
1611
|
max-width: 100%;
|
|
@@ -1621,20 +1621,20 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1621
1621
|
box-sizing: border-box;
|
|
1622
1622
|
pointer-events: auto;
|
|
1623
1623
|
|
|
1624
|
-
--ft-chip-internal-font-size: ${
|
|
1624
|
+
--ft-chip-internal-font-size: ${Ne.fontSize};
|
|
1625
1625
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
1626
|
-
${(0,
|
|
1627
|
-
--ft-chip-internal-vertical-padding: ${
|
|
1628
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
1626
|
+
${(0,F.setVariable)(ve.size,Ne.iconSize)};
|
|
1627
|
+
--ft-chip-internal-vertical-padding: ${Ne.verticalPadding};
|
|
1628
|
+
--ft-chip-internal-horizontal-padding: ${Ne.horizontalPadding};
|
|
1629
1629
|
--ft-chip-internal-icon-padding: 3px;
|
|
1630
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
1630
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Ne.iconSize});
|
|
1631
1631
|
|
|
1632
|
-
border: 1px solid ${
|
|
1633
|
-
color: ${
|
|
1634
|
-
${(0,
|
|
1635
|
-
border-radius: var(${(0,
|
|
1632
|
+
border: 1px solid ${Ne.colorOutline};
|
|
1633
|
+
color: ${Ne.color};
|
|
1634
|
+
${(0,F.setVariable)(_.color,Ne.rippleColor)};
|
|
1635
|
+
border-radius: var(${(0,Yr.unsafeCSS)(Ne.borderRadius.name)}, calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding)));
|
|
1636
1636
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
1637
|
-
background-color: ${
|
|
1637
|
+
background-color: ${Ne.backgroundColor};
|
|
1638
1638
|
line-height: var(--ft-chip-internal-content-height);
|
|
1639
1639
|
}
|
|
1640
1640
|
|
|
@@ -1644,8 +1644,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1644
1644
|
|
|
1645
1645
|
.ft-chip--dense {
|
|
1646
1646
|
--ft-chip-internal-icon-padding: 3px;
|
|
1647
|
-
--ft-chip-internal-vertical-padding: ${
|
|
1648
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
1647
|
+
--ft-chip-internal-vertical-padding: ${Vs.verticalPadding};
|
|
1648
|
+
--ft-chip-internal-horizontal-padding: ${Vs.horizontalPadding};
|
|
1649
1649
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
1650
1650
|
}
|
|
1651
1651
|
|
|
@@ -1657,15 +1657,15 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1657
1657
|
cursor: default;
|
|
1658
1658
|
pointer-events: none;
|
|
1659
1659
|
filter: grayscale(1);
|
|
1660
|
-
opacity: ${
|
|
1660
|
+
opacity: ${Ne.opacityDisabled};
|
|
1661
1661
|
}
|
|
1662
1662
|
|
|
1663
1663
|
.ft-chip--highlighted {
|
|
1664
1664
|
border: none;
|
|
1665
1665
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
1666
|
-
background-color: ${
|
|
1667
|
-
${(0,
|
|
1668
|
-
color: ${
|
|
1666
|
+
background-color: ${Yi.backgroundColor};
|
|
1667
|
+
${(0,F.setVariable)(_.color,Yi.rippleColor)};
|
|
1668
|
+
color: ${Yi.color};
|
|
1669
1669
|
}
|
|
1670
1670
|
|
|
1671
1671
|
.ft-chip--clickable {
|
|
@@ -1695,9 +1695,9 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1695
1695
|
}
|
|
1696
1696
|
|
|
1697
1697
|
.ft-chip--icon-button {
|
|
1698
|
-
${(0,
|
|
1699
|
-
${(0,
|
|
1700
|
-
${(0,
|
|
1698
|
+
${(0,F.setVariable)(M.iconSize,Ne.iconSize)};
|
|
1699
|
+
${(0,F.setVariable)(M.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
1700
|
+
${(0,F.setVariable)(M.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
1701
1701
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
1702
1702
|
}
|
|
1703
1703
|
|
|
@@ -1705,8 +1705,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1705
1705
|
vertical-align: bottom;
|
|
1706
1706
|
display: block;
|
|
1707
1707
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
1708
|
-
${(0,
|
|
1709
|
-
${(0,
|
|
1708
|
+
${(0,F.setVariable)(Se.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
1709
|
+
${(0,F.setVariable)(Se.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
1710
1710
|
}
|
|
1711
1711
|
|
|
1712
1712
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -1742,8 +1742,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1742
1742
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1743
1743
|
order: -1;
|
|
1744
1744
|
}
|
|
1745
|
-
`];var
|
|
1746
|
-
<div class="${(0,
|
|
1745
|
+
`];var Ye=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Jr=class extends CustomEvent{constructor(){super("icon-click")}},ce=class extends Qr.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){let e={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Qr.isSafari};return Xr.html`
|
|
1746
|
+
<div class="${(0,Ks.classMap)(e)}"
|
|
1747
1747
|
aria-label="${this.getLabel()}"
|
|
1748
1748
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1749
1749
|
@keyup=${this.onKeyUp}
|
|
@@ -1754,7 +1754,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1754
1754
|
</ft-typography>
|
|
1755
1755
|
${this.internalIcon?this.renderIcon():null}
|
|
1756
1756
|
</div>
|
|
1757
|
-
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?
|
|
1757
|
+
`}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?Xr.html`
|
|
1758
1758
|
<ft-button round
|
|
1759
1759
|
class="ft-chip--icon-button"
|
|
1760
1760
|
@click=${this.onIconClick}
|
|
@@ -1763,29 +1763,29 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1763
1763
|
label="${this.iconLabel}"
|
|
1764
1764
|
part="icon-button"
|
|
1765
1765
|
></ft-button>
|
|
1766
|
-
`:
|
|
1766
|
+
`:Xr.html`
|
|
1767
1767
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1768
1768
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}" part="icon"></ft-icon>
|
|
1769
1769
|
</div>
|
|
1770
|
-
`}onKeyUp(
|
|
1770
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Jr))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Jr))}getLabel(){return this.label||this.textContent}get textContent(){var e,o;return(o=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&o!==void 0?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ce.elementDefinitions={"ft-ripple":z,"ft-typography":q,"ft-icon":le,"ft-button":ge};ce.styles=js;Ye([(0,ke.property)({type:Boolean})],ce.prototype,"highlighted",void 0);Ye([(0,ke.property)({type:Boolean})],ce.prototype,"removable",void 0);Ye([(0,ke.property)({type:Boolean})],ce.prototype,"disabled",void 0);Ye([(0,ke.property)({type:Boolean})],ce.prototype,"clickable",void 0);Ye([(0,ke.property)({type:Boolean})],ce.prototype,"iconClickable",void 0);Ye([(0,ke.property)({type:Boolean})],ce.prototype,"dense",void 0);Ye([(0,ke.property)({type:Boolean})],ce.prototype,"multiLine",void 0);Ye([(0,ke.property)()],ce.prototype,"label",void 0);Ye([(0,ke.property)()],ce.prototype,"iconLabel",void 0);Ye([(0,ke.property)()],ce.prototype,"icon",void 0);Ye([(0,ke.property)()],ce.prototype,"iconVariant",void 0);Ye([(0,ke.property)({type:Boolean})],ce.prototype,"trailingIcon",void 0);Ye([(0,ke.query)("ft-typography slot")],ce.prototype,"slottedContent",void 0);(0,Gs.customElement)("ft-chip")(ce);var Qi=u(O());var br=u($()),ie=u(Z()),Ji=u(st()),tc=u(no()),vr=u(O());var Js=u(O());var Xi=u($()),Ko=u(Z()),Ys=u(st()),Xs=u(O());var Zs=u($()),Q=u(O());var T={fontSize:Q.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Q.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Q.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Q.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Q.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Q.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Q.FtCssVariableFactory.extend("--ft-input-label-border-color","",Q.designSystemVariables.colorOutline),textColor:Q.FtCssVariableFactory.extend("--ft-input-label-text-color","",Q.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:Q.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",Q.designSystemVariables.colorOnSurfaceDisabled),colorSurface:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorSurface,"Design system"),borderRadiusS:Q.FtCssVariableFactory.external(Q.designSystemVariables.borderRadiusS,"Design system"),colorError:Q.FtCssVariableFactory.external(Q.designSystemVariables.colorError,"Design system")},qs=Zs.css`
|
|
1771
1771
|
.ft-input-label {
|
|
1772
1772
|
position: absolute;
|
|
1773
1773
|
inset: 0;
|
|
1774
1774
|
display: flex;
|
|
1775
|
-
background-color: ${
|
|
1776
|
-
border-radius: ${
|
|
1775
|
+
background-color: ${T.colorSurface};
|
|
1776
|
+
border-radius: ${T.borderRadiusS} ${T.borderRadiusS} 0 0;
|
|
1777
1777
|
}
|
|
1778
1778
|
|
|
1779
1779
|
.ft-input-label--outlined {
|
|
1780
|
-
border-radius: ${
|
|
1780
|
+
border-radius: ${T.borderRadiusS};
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
1783
|
.ft-input-label {
|
|
1784
|
-
border-color: ${
|
|
1784
|
+
border-color: ${T.borderColor};
|
|
1785
1785
|
}
|
|
1786
1786
|
|
|
1787
1787
|
.ft-input-label.ft-input-label--in-error {
|
|
1788
|
-
border-color: ${
|
|
1788
|
+
border-color: ${T.colorError}
|
|
1789
1789
|
}
|
|
1790
1790
|
|
|
1791
1791
|
.ft-input-label:before,
|
|
@@ -1798,7 +1798,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1798
1798
|
}
|
|
1799
1799
|
|
|
1800
1800
|
.ft-input-label:before {
|
|
1801
|
-
width: calc(${
|
|
1801
|
+
width: calc(${T.horizontalSpacing} - 4px);
|
|
1802
1802
|
flex-shrink: 0;
|
|
1803
1803
|
}
|
|
1804
1804
|
|
|
@@ -1814,20 +1814,20 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1814
1814
|
border-bottom-width: 1px;
|
|
1815
1815
|
border-bottom-style: solid;
|
|
1816
1816
|
border-color: inherit;
|
|
1817
|
-
color: ${
|
|
1817
|
+
color: ${T.textColor};
|
|
1818
1818
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
1819
|
-
max-width: calc(${
|
|
1819
|
+
max-width: calc(${T.labelMaxWidth} - 2 * (${T.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
1820
1820
|
text-overflow: ellipsis;
|
|
1821
|
-
${(0,
|
|
1822
|
-
${(0,
|
|
1821
|
+
${(0,Q.setVariable)(lt.fontSize,T.fontSize)};
|
|
1822
|
+
${(0,Q.setVariable)(lt.lineHeight,T.fontSize)};
|
|
1823
1823
|
}
|
|
1824
1824
|
|
|
1825
1825
|
.ft-input-label--in-error .ft-input-label--text {
|
|
1826
|
-
color: ${
|
|
1826
|
+
color: ${T.colorError}
|
|
1827
1827
|
}
|
|
1828
1828
|
|
|
1829
1829
|
.ft-input-label--disabled .ft-input-label--text {
|
|
1830
|
-
color: ${
|
|
1830
|
+
color: ${T.disabledTextColor};
|
|
1831
1831
|
}
|
|
1832
1832
|
|
|
1833
1833
|
.ft-input-label--hidden-text {
|
|
@@ -1844,19 +1844,19 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1844
1844
|
overflow: hidden;
|
|
1845
1845
|
white-space: nowrap;
|
|
1846
1846
|
text-overflow: ellipsis;
|
|
1847
|
-
padding: ${
|
|
1848
|
-
margin: calc(${
|
|
1847
|
+
padding: ${T.verticalSpacing} 4px;
|
|
1848
|
+
margin: calc(${T.verticalSpacing} * -1) 0;
|
|
1849
1849
|
max-width: 100%;
|
|
1850
1850
|
box-sizing: border-box;
|
|
1851
1851
|
}
|
|
1852
1852
|
|
|
1853
1853
|
.ft-input-label--raised .ft-input-label--text {
|
|
1854
|
-
${(0,
|
|
1855
|
-
${(0,
|
|
1854
|
+
${(0,Q.setVariable)(lt.fontSize,T.raisedFontSize)};
|
|
1855
|
+
${(0,Q.setVariable)(lt.lineHeight,T.raisedFontSize)};
|
|
1856
1856
|
}
|
|
1857
1857
|
|
|
1858
1858
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
1859
|
-
top: ${
|
|
1859
|
+
top: ${T.verticalSpacing};
|
|
1860
1860
|
}
|
|
1861
1861
|
|
|
1862
1862
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -1869,36 +1869,36 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1869
1869
|
.ft-input-label--outlined:before {
|
|
1870
1870
|
border-left-width: 1px;
|
|
1871
1871
|
border-left-style: solid;
|
|
1872
|
-
border-radius: ${
|
|
1872
|
+
border-radius: ${T.borderRadiusS} 0 0 ${T.borderRadiusS};
|
|
1873
1873
|
}
|
|
1874
1874
|
|
|
1875
1875
|
.ft-input-label--outlined:after {
|
|
1876
1876
|
border-right-width: 1px;
|
|
1877
1877
|
border-right-style: solid;
|
|
1878
|
-
border-radius: 0 ${
|
|
1878
|
+
border-radius: 0 ${T.borderRadiusS} ${T.borderRadiusS} 0;
|
|
1879
1879
|
}
|
|
1880
1880
|
|
|
1881
1881
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
1882
1882
|
padding: 2px 4px;
|
|
1883
|
-
z-index: ${
|
|
1884
|
-
background-color: ${
|
|
1885
|
-
border-radius: ${
|
|
1883
|
+
z-index: ${T.raisedZIndex};
|
|
1884
|
+
background-color: ${T.colorSurface};
|
|
1885
|
+
border-radius: ${T.borderRadiusS};
|
|
1886
1886
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
1887
1887
|
}
|
|
1888
1888
|
|
|
1889
1889
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
1890
1890
|
border-top: none;
|
|
1891
1891
|
}
|
|
1892
|
-
`;var
|
|
1893
|
-
<div class="${(0,
|
|
1894
|
-
${this.text?
|
|
1892
|
+
`;var yr=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Xe=class extends Xs.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let e={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return Xi.html`
|
|
1893
|
+
<div class="${(0,Ys.classMap)(e)}">
|
|
1894
|
+
${this.text?Xi.html`
|
|
1895
1895
|
<div class="ft-input-label--text ft-typography--caption">
|
|
1896
1896
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
1897
1897
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
1898
1898
|
</div>
|
|
1899
1899
|
`:null}
|
|
1900
1900
|
</div>
|
|
1901
|
-
`}};
|
|
1901
|
+
`}};Xe.elementDefinitions={};Xe.styles=[Ht,qs];yr([(0,Ko.property)({type:String})],Xe.prototype,"text",void 0);yr([(0,Ko.property)({type:Boolean})],Xe.prototype,"raised",void 0);yr([(0,Ko.property)({type:Boolean})],Xe.prototype,"outlined",void 0);yr([(0,Ko.property)({type:Boolean})],Xe.prototype,"disabled",void 0);yr([(0,Ko.property)({type:Boolean})],Xe.prototype,"error",void 0);(0,Js.customElement)("ft-input-label")(Xe);var Qs=u($()),B=u(O());var W={labelSize:B.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:B.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:B.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:B.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:B.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","70vh"),selectedOptionColor:B.FtCssVariableFactory.extend("--ft-select-selected-option-color","",B.designSystemVariables.colorOnSurface),helperColor:B.FtCssVariableFactory.extend("--ft-select-helper-color","",B.designSystemVariables.colorOnSurfaceMedium),optionsColor:B.FtCssVariableFactory.extend("--ft-select-options-color","",B.designSystemVariables.colorOnSurface),optionsZIndex:B.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),colorSurface:B.FtCssVariableFactory.external(B.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:B.FtCssVariableFactory.external(B.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:B.FtCssVariableFactory.external(B.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:B.FtCssVariableFactory.external(B.designSystemVariables.borderRadiusS,"Design system"),elevation02:B.FtCssVariableFactory.external(B.designSystemVariables.elevation02,"Design system"),colorError:B.FtCssVariableFactory.external(B.designSystemVariables.colorError,"Design system")},ec=Qs.css`
|
|
1902
1902
|
*:focus {
|
|
1903
1903
|
outline: none;
|
|
1904
1904
|
}
|
|
@@ -1912,7 +1912,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1912
1912
|
.ft-select--main-panel {
|
|
1913
1913
|
position: relative;
|
|
1914
1914
|
display: flex;
|
|
1915
|
-
height: calc(4 * ${
|
|
1915
|
+
height: calc(4 * ${W.verticalSpacing} + ${W.labelSize} + ${W.selectedOptionSize});
|
|
1916
1916
|
}
|
|
1917
1917
|
|
|
1918
1918
|
.ft-select--input-panel {
|
|
@@ -1921,17 +1921,17 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1921
1921
|
display: flex;
|
|
1922
1922
|
align-items: center;
|
|
1923
1923
|
overflow: hidden;
|
|
1924
|
-
padding-left: ${
|
|
1925
|
-
padding-right: ${
|
|
1924
|
+
padding-left: ${W.horizontalSpacing};
|
|
1925
|
+
padding-right: ${W.horizontalSpacing};
|
|
1926
1926
|
gap: 8px;
|
|
1927
|
-
color: ${
|
|
1928
|
-
${(0,
|
|
1927
|
+
color: ${W.selectedOptionColor};
|
|
1928
|
+
${(0,B.setVariable)(_.color,W.selectedOptionColor)};
|
|
1929
1929
|
}
|
|
1930
1930
|
|
|
1931
1931
|
.ft-select--input-panel,
|
|
1932
1932
|
.ft-select--option {
|
|
1933
|
-
${(0,
|
|
1934
|
-
${(0,
|
|
1933
|
+
${(0,B.setVariable)(_.opacityContentOnSurfaceHover,"0.08")};
|
|
1934
|
+
${(0,B.setVariable)(_.opacityContentOnSurfacePressed,"0.04")};
|
|
1935
1935
|
}
|
|
1936
1936
|
|
|
1937
1937
|
.ft-select--input-panel > *:not(ft-ripple),
|
|
@@ -1941,7 +1941,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1941
1941
|
|
|
1942
1942
|
.ft-select--disabled .ft-select--input-panel,
|
|
1943
1943
|
.ft-select--disabled .ft-select--option {
|
|
1944
|
-
color: ${
|
|
1944
|
+
color: ${W.colorOnSurfaceDisabled};
|
|
1945
1945
|
}
|
|
1946
1946
|
|
|
1947
1947
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -1950,20 +1950,20 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1950
1950
|
}
|
|
1951
1951
|
|
|
1952
1952
|
ft-input-label {
|
|
1953
|
-
${(0,
|
|
1954
|
-
${(0,
|
|
1955
|
-
${(0,
|
|
1956
|
-
${(0,
|
|
1957
|
-
${(0,
|
|
1953
|
+
${(0,B.setVariable)(T.fontSize,W.selectedOptionSize)};
|
|
1954
|
+
${(0,B.setVariable)(T.raisedFontSize,W.labelSize)};
|
|
1955
|
+
${(0,B.setVariable)(T.verticalSpacing,W.verticalSpacing)};
|
|
1956
|
+
${(0,B.setVariable)(T.horizontalSpacing,W.horizontalSpacing)};
|
|
1957
|
+
${(0,B.setVariable)(T.labelMaxWidth,`calc(100% - ${ve.size} - 8px)`)};
|
|
1958
1958
|
}
|
|
1959
1959
|
|
|
1960
1960
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
1961
|
-
color: ${
|
|
1961
|
+
color: ${W.colorPrimary};
|
|
1962
1962
|
}
|
|
1963
1963
|
|
|
1964
1964
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
1965
|
-
${(0,
|
|
1966
|
-
${(0,
|
|
1965
|
+
${(0,B.setVariable)(T.borderColor,W.colorPrimary)};
|
|
1966
|
+
${(0,B.setVariable)(T.textColor,W.colorPrimary)};
|
|
1967
1967
|
}
|
|
1968
1968
|
|
|
1969
1969
|
.ft-select--selected-option {
|
|
@@ -1973,12 +1973,12 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1973
1973
|
overflow: hidden;
|
|
1974
1974
|
white-space: nowrap;
|
|
1975
1975
|
text-overflow: ellipsis;
|
|
1976
|
-
${(0,
|
|
1977
|
-
${(0,
|
|
1976
|
+
${(0,B.setVariable)(Nt.fontSize,W.selectedOptionSize)};
|
|
1977
|
+
${(0,B.setVariable)(Nt.lineHeight,W.selectedOptionSize)};
|
|
1978
1978
|
}
|
|
1979
1979
|
|
|
1980
1980
|
.ft-select--in-error .ft-select--selected-option {
|
|
1981
|
-
color: ${
|
|
1981
|
+
color: ${W.colorError};
|
|
1982
1982
|
}
|
|
1983
1983
|
|
|
1984
1984
|
ft-icon {
|
|
@@ -1990,26 +1990,26 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
1990
1990
|
}
|
|
1991
1991
|
|
|
1992
1992
|
.ft-select--filled .ft-select--input-panel {
|
|
1993
|
-
border-radius: ${
|
|
1993
|
+
border-radius: ${W.borderRadiusS} ${W.borderRadiusS} 0 0;
|
|
1994
1994
|
}
|
|
1995
1995
|
|
|
1996
1996
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
1997
1997
|
align-self: stretch;
|
|
1998
|
-
padding-top: calc(${
|
|
1998
|
+
padding-top: calc(${W.labelSize} + 2 * ${W.verticalSpacing});
|
|
1999
1999
|
}
|
|
2000
2000
|
|
|
2001
2001
|
.ft-select--outlined .ft-select--input-panel {
|
|
2002
|
-
border-radius: ${
|
|
2002
|
+
border-radius: ${W.borderRadiusS};
|
|
2003
2003
|
}
|
|
2004
2004
|
|
|
2005
2005
|
.ft-select--options {
|
|
2006
2006
|
display: none;
|
|
2007
2007
|
position: absolute;
|
|
2008
2008
|
top: 100%;
|
|
2009
|
-
color: ${
|
|
2010
|
-
background: ${
|
|
2011
|
-
z-index: ${
|
|
2012
|
-
box-shadow: ${
|
|
2009
|
+
color: ${W.optionsColor};
|
|
2010
|
+
background: ${W.colorSurface};
|
|
2011
|
+
z-index: ${W.optionsZIndex};
|
|
2012
|
+
box-shadow: ${W.elevation02};
|
|
2013
2013
|
}
|
|
2014
2014
|
|
|
2015
2015
|
.ft-select--fixed .ft-select--options {
|
|
@@ -2018,13 +2018,13 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2018
2018
|
|
|
2019
2019
|
.ft-select--options-displayed .ft-select--options {
|
|
2020
2020
|
display: block;
|
|
2021
|
-
max-height: ${
|
|
2021
|
+
max-height: ${W.optionsHeight};
|
|
2022
2022
|
overflow-y: auto;
|
|
2023
2023
|
}
|
|
2024
2024
|
|
|
2025
2025
|
.ft-select--option {
|
|
2026
2026
|
position: relative;
|
|
2027
|
-
padding: 4px ${
|
|
2027
|
+
padding: 4px ${W.horizontalSpacing};
|
|
2028
2028
|
min-height: 32px;
|
|
2029
2029
|
display: flex;
|
|
2030
2030
|
align-items: center;
|
|
@@ -2036,34 +2036,34 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2036
2036
|
}
|
|
2037
2037
|
|
|
2038
2038
|
.ft-select--helper-text {
|
|
2039
|
-
padding: 0 ${
|
|
2040
|
-
color: ${
|
|
2039
|
+
padding: 0 ${W.horizontalSpacing};
|
|
2040
|
+
color: ${W.helperColor};
|
|
2041
2041
|
}
|
|
2042
2042
|
|
|
2043
2043
|
.ft-select--in-error .ft-select--helper-text {
|
|
2044
|
-
color: ${
|
|
2044
|
+
color: ${W.colorError};
|
|
2045
2045
|
}
|
|
2046
|
-
`;var
|
|
2047
|
-
<div class="${(0,
|
|
2046
|
+
`;var pe=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Ot=class extends vr.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return br.html``}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Ot.elementDefinitions={};pe([(0,ie.property)({type:String})],Ot.prototype,"label",void 0);pe([(0,ie.property)({type:Object,converter:t=>t})],Ot.prototype,"value",void 0);pe([(0,ie.property)({type:Boolean,reflect:!0})],Ot.prototype,"selected",void 0);var X=class extends vr.FtLitElement{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=e=>this.optionsDisplayed=this.optionsDisplayed&&e.composedPath().includes(this.container)}render(){var e,o,i,n,a;let l=this.hasOptionsMenuOpen,s=this.disabled||!this.hasOptions,d=((e=this.selectedOption)===null||e===void 0?void 0:e.value)!=null||((i=(o=this.selectedOption)===null||o===void 0?void 0:o.label)!==null&&i!==void 0?i:"").length>0,f={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":s,"ft-select--options-displayed":l,"ft-select--has-option-selected":d,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return br.html`
|
|
2047
|
+
<div class="${(0,Ji.classMap)(f)}" part="container">
|
|
2048
2048
|
<div class="ft-select--main-panel" part="main-panel">
|
|
2049
2049
|
<ft-input-label text="${this.label}"
|
|
2050
2050
|
part="label"
|
|
2051
|
-
?disabled=${
|
|
2051
|
+
?disabled=${s}
|
|
2052
2052
|
?outlined=${this.outlined}
|
|
2053
|
-
?raised=${
|
|
2053
|
+
?raised=${d||l}
|
|
2054
2054
|
?error=${this.error}
|
|
2055
2055
|
></ft-input-label>
|
|
2056
2056
|
<div class="ft-select--input-panel"
|
|
2057
2057
|
part="selected-value"
|
|
2058
|
-
tabindex="${
|
|
2058
|
+
tabindex="${s?"-1":"0"}"
|
|
2059
2059
|
@click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
|
|
2060
2060
|
@keydown=${this.onMainPanelKeyDown}
|
|
2061
2061
|
aria-label="${this.label}"
|
|
2062
2062
|
aria-haspopup="listbox"
|
|
2063
2063
|
aria-expanded="${l}">
|
|
2064
|
-
<ft-ripple ?disabled=${
|
|
2064
|
+
<ft-ripple ?disabled=${s} ?activated=${!this.outlined}></ft-ripple>
|
|
2065
2065
|
<ft-typography variant="body1" class="ft-select--selected-option">
|
|
2066
|
-
${(
|
|
2066
|
+
${(a=(n=this.selectedOption)===null||n===void 0?void 0:n.label)!==null&&a!==void 0?a:""}
|
|
2067
2067
|
</ft-typography>
|
|
2068
2068
|
<ft-icon>${l?"thin_arrow_up":"thin_arrow"}</ft-icon>
|
|
2069
2069
|
</div>
|
|
@@ -2071,54 +2071,54 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2071
2071
|
part="options"
|
|
2072
2072
|
@keydown=${this.onOptionsKeyDown}
|
|
2073
2073
|
innerrole="listbox">
|
|
2074
|
-
${(0,
|
|
2074
|
+
${(0,tc.repeat)(this.options,h=>h.value,h=>this.renderOption(h))}
|
|
2075
2075
|
</div>
|
|
2076
2076
|
</div>
|
|
2077
|
-
${this.helper?
|
|
2077
|
+
${this.helper?br.html`
|
|
2078
2078
|
<ft-typography class="ft-select--helper-text" variant="caption">${this.helper}
|
|
2079
2079
|
</ft-typography>`:void 0}
|
|
2080
2080
|
</div>
|
|
2081
2081
|
<slot @slotchange=${this.updateOptionsFromSlot}
|
|
2082
2082
|
@option-change=${this.updateOptionsFromSlot}
|
|
2083
2083
|
></slot>
|
|
2084
|
-
`}renderOption(
|
|
2085
|
-
<div class="${(0,
|
|
2084
|
+
`}renderOption(e){let o=this.selectedOption===e;return br.html`
|
|
2085
|
+
<div class="${(0,Ji.classMap)({"ft-select--option":!0,"ft-select--option-selected":o,"ft-typography--body2":!0})}"
|
|
2086
2086
|
part="option"
|
|
2087
2087
|
tabindex="0"
|
|
2088
|
-
data-value="${
|
|
2089
|
-
@keydown=${
|
|
2090
|
-
@click=${()=>this.selectOption(
|
|
2091
|
-
<ft-ripple ?primary=${
|
|
2092
|
-
<span>${
|
|
2088
|
+
data-value="${e.value}"
|
|
2089
|
+
@keydown=${n=>this.onOptionKeyDown(n,e)}
|
|
2090
|
+
@click=${()=>this.selectOption(e)}>
|
|
2091
|
+
<ft-ripple ?primary=${o} ?activated=${o}></ft-ripple>
|
|
2092
|
+
<span>${e.label}</span>
|
|
2093
2093
|
</div>
|
|
2094
|
-
`}update(
|
|
2094
|
+
`}update(e){super.update(e),e.has("options")&&(this.selectedOption=this.options.filter(o=>o.selected)[0]),e.has("selectedOption")&&(this.optionsDisplayed=!1)}contentAvailableCallback(e){var o,i;super.contentAvailableCallback(e),e.has("focusOptions")&&this.focusOptions&&((i=(o=this.selectedOptionElement)!==null&&o!==void 0?o:this.firstOption)===null||i===void 0||i.focus(),this.focusOptions=!1),e.has("optionsDisplayed")&&this.hasOptionsMenuOpen&&(this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px",Wr(this.mainPanel,this.optionsMenu,"bottom").then(({x:n,y:a})=>{this.optionsMenu.style.left=`${n}px`,this.optionsMenu.style.top=`${a}px`}))}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(e){var o;e.stopPropagation();let i=(o=this.optionsSlot)===null||o===void 0?void 0:o.assignedElements().map(n=>n);i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(e){switch(e.key){case" ":e.preventDefault(),e.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":e.preventDefault(),e.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0;break}}onOptionsKeyDown(e){var o,i,n,a,l;let s;switch(e.key){case"Escape":this.optionsDisplayed=!1,(o=this.mainPanel)===null||o===void 0||o.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":e.preventDefault(),e.stopPropagation(),s=(n=(i=this.focusedOption)===null||i===void 0?void 0:i.previousElementSibling)!==null&&n!==void 0?n:this.lastOption;break;case"ArrowDown":e.preventDefault(),e.stopPropagation(),s=(l=(a=this.focusedOption)===null||a===void 0?void 0:a.nextElementSibling)!==null&&l!==void 0?l:this.firstOption;break}s?.focus()}onOptionKeyDown(e,o){var i;(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),e.stopPropagation(),this.selectOption(o),this.optionsDisplayed=!1,(i=this.mainPanel)===null||i===void 0||i.focus())}selectOption(e){var o,i;if(!(0,vr.deepEqual)((o=this.selectedOption)===null||o===void 0?void 0:o.value,e.value)){this.selectedOption=e;for(let n of this.options)n.selected=n===e;this.dispatchEvent(new CustomEvent("change",{detail:(i=this.selectedOption)===null||i===void 0?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};X.elementDefinitions={"ft-input-label":Xe,"ft-typography":q,"ft-ripple":z,"ft-icon":le};X.styles=[_o,Ht,ec];pe([(0,ie.property)({type:String})],X.prototype,"label",void 0);pe([(0,ie.property)({type:String})],X.prototype,"helper",void 0);pe([(0,ie.property)({type:Boolean})],X.prototype,"outlined",void 0);pe([(0,ie.property)({type:Boolean})],X.prototype,"disabled",void 0);pe([(0,ie.property)({type:Boolean})],X.prototype,"error",void 0);pe([(0,ie.property)({type:Boolean})],X.prototype,"fixedMenuPosition",void 0);pe([(0,ie.property)({type:Array})],X.prototype,"options",void 0);pe([(0,ie.state)()],X.prototype,"selectedOption",void 0);pe([(0,ie.state)()],X.prototype,"optionsDisplayed",void 0);pe([(0,ie.state)()],X.prototype,"focusOptions",void 0);pe([(0,ie.query)(".ft-select")],X.prototype,"container",void 0);pe([(0,ie.query)(".ft-select--options")],X.prototype,"optionsMenu",void 0);pe([(0,ie.query)(".ft-select--input-panel")],X.prototype,"mainPanel",void 0);pe([(0,ie.query)(".ft-select--option:first-child")],X.prototype,"firstOption",void 0);pe([(0,ie.query)(".ft-select--option:focus")],X.prototype,"focusedOption",void 0);pe([(0,ie.query)(".ft-select--option.ft-select--option-selected")],X.prototype,"selectedOptionElement",void 0);pe([(0,ie.query)(".ft-select--option:last-child")],X.prototype,"lastOption",void 0);pe([(0,ie.query)("slot")],X.prototype,"optionsSlot",void 0);(0,Qi.customElement)("ft-select")(X);(0,Qi.customElement)("ft-select-option")(Ot);var A=u(O()),en=u($());var oc=u($()),ut=u(O()),we={display:ut.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:ut.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:ut.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:ut.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:ut.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:ut.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:ut.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:ut.FtCssVariableFactory.external(ut.designSystemVariables.borderRadiusM,"Design system")},rc=oc.css`
|
|
2095
2095
|
:host {
|
|
2096
|
-
width: ${
|
|
2097
|
-
height: ${
|
|
2098
|
-
display: ${
|
|
2096
|
+
width: ${we.width};
|
|
2097
|
+
height: ${we.height};
|
|
2098
|
+
display: ${we.display};
|
|
2099
2099
|
overflow: hidden;
|
|
2100
|
-
border-radius: ${
|
|
2100
|
+
border-radius: ${we.borderRadiusM};
|
|
2101
2101
|
background: linear-gradient(
|
|
2102
2102
|
90deg,
|
|
2103
2103
|
transparent,
|
|
2104
|
-
${
|
|
2105
|
-
${
|
|
2106
|
-
transparent ${
|
|
2107
|
-
), ${
|
|
2104
|
+
${we.glareColor} calc(0.45 * ${we.glareWidth}),
|
|
2105
|
+
${we.glareColor} calc(0.55 * ${we.glareWidth}),
|
|
2106
|
+
transparent ${we.glareWidth}
|
|
2107
|
+
), ${we.backgroundColor};
|
|
2108
2108
|
background-repeat: repeat-y;
|
|
2109
2109
|
background-size: 100vw 100vh;
|
|
2110
2110
|
background-attachment: fixed;
|
|
2111
|
-
background-position: calc(${
|
|
2112
|
-
animation: shine ${
|
|
2111
|
+
background-position: calc(${we.glareWidth} * -1) 0;
|
|
2112
|
+
animation: shine ${we.animationDuration} infinite;
|
|
2113
2113
|
animation-timing-function: linear;
|
|
2114
2114
|
}
|
|
2115
2115
|
|
|
2116
2116
|
@keyframes shine {
|
|
2117
2117
|
to {
|
|
2118
|
-
background-position: calc(100vw + ${
|
|
2118
|
+
background-position: calc(100vw + ${we.glareWidth}) 0, calc(${we.glareWidth} * -1) 0;
|
|
2119
2119
|
}
|
|
2120
2120
|
}
|
|
2121
|
-
`;var
|
|
2121
|
+
`;var k={height:A.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:A.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",A.designSystemVariables.borderRadiusS),mobileOpenPosition:A.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:A.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:A.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:A.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:A.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:A.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:A.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:A.FtCssVariableFactory.external(A.designSystemVariables.colorSurface,"Design system"),colorOnSurface:A.FtCssVariableFactory.external(A.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:A.FtCssVariableFactory.external(A.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:A.FtCssVariableFactory.external(A.designSystemVariables.colorOutline,"Design system"),colorPrimary:A.FtCssVariableFactory.external(A.designSystemVariables.colorPrimary,"Design system"),elevation02:A.FtCssVariableFactory.external(A.designSystemVariables.elevation02,"Design system"),buttonColor:A.FtCssVariableFactory.external(M.color,"Button"),buttonRippleColor:A.FtCssVariableFactory.external(M.rippleColor,"Button")},ic=en.css`
|
|
2122
2122
|
* {
|
|
2123
2123
|
box-sizing: border-box;
|
|
2124
2124
|
}
|
|
@@ -2127,7 +2127,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2127
2127
|
display: flex;
|
|
2128
2128
|
flex-direction: column;
|
|
2129
2129
|
gap: 8px;
|
|
2130
|
-
color: ${
|
|
2130
|
+
color: ${k.colorOnSurface};
|
|
2131
2131
|
outline: none;
|
|
2132
2132
|
}
|
|
2133
2133
|
|
|
@@ -2136,21 +2136,21 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2136
2136
|
}
|
|
2137
2137
|
|
|
2138
2138
|
.ft-search-bar--mobile-menu-open {
|
|
2139
|
-
position: ${
|
|
2140
|
-
top: ${
|
|
2141
|
-
bottom: ${
|
|
2142
|
-
left: ${
|
|
2143
|
-
right: ${
|
|
2144
|
-
z-index: ${
|
|
2139
|
+
position: ${k.mobileOpenPosition};
|
|
2140
|
+
top: ${k.mobileOpenTop};
|
|
2141
|
+
bottom: ${k.mobileOpenBottom};
|
|
2142
|
+
left: ${k.mobileOpenLeft};
|
|
2143
|
+
right: ${k.mobileOpenRight};
|
|
2144
|
+
z-index: ${k.floatingZIndex};
|
|
2145
2145
|
padding: 16px;
|
|
2146
2146
|
}
|
|
2147
2147
|
|
|
2148
2148
|
.ft-search-bar--mobile-menu-open:not(.ft-search-bar--forced-open) {
|
|
2149
|
-
background: ${
|
|
2149
|
+
background: ${k.colorSurface};
|
|
2150
2150
|
}
|
|
2151
2151
|
|
|
2152
2152
|
.ft-search-bar--mobile-menu-open.ft-search-bar--forced-open {
|
|
2153
|
-
position: ${
|
|
2153
|
+
position: ${k.mobileOpenPosition.get("static")};
|
|
2154
2154
|
}
|
|
2155
2155
|
|
|
2156
2156
|
.ft-search-bar {
|
|
@@ -2158,20 +2158,20 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2158
2158
|
display: flex;
|
|
2159
2159
|
flex-direction: row;
|
|
2160
2160
|
align-items: center;
|
|
2161
|
-
height: ${
|
|
2161
|
+
height: ${k.height};
|
|
2162
2162
|
|
|
2163
|
-
background: ${
|
|
2164
|
-
border: 1px solid ${
|
|
2165
|
-
border-radius: ${
|
|
2163
|
+
background: ${k.colorSurface};
|
|
2164
|
+
border: 1px solid ${k.colorOutline};
|
|
2165
|
+
border-radius: ${k.borderRadius};
|
|
2166
2166
|
}
|
|
2167
2167
|
|
|
2168
2168
|
.ft-search-bar--skeleton {
|
|
2169
|
-
${(0,
|
|
2170
|
-
${(0,
|
|
2169
|
+
${(0,A.setVariable)(we.height,k.height)};
|
|
2170
|
+
${(0,A.setVariable)(we.borderRadiusM,k.borderRadius)};
|
|
2171
2171
|
}
|
|
2172
2172
|
|
|
2173
2173
|
.ft-search-bar--floating-panel-open .ft-search-bar {
|
|
2174
|
-
border-radius: ${
|
|
2174
|
+
border-radius: ${k.borderRadius} ${k.borderRadius} 0 0;
|
|
2175
2175
|
}
|
|
2176
2176
|
|
|
2177
2177
|
.ft-search-bar--input-container {
|
|
@@ -2189,7 +2189,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2189
2189
|
align-self: stretch;
|
|
2190
2190
|
display: grid;
|
|
2191
2191
|
padding: 0 8px;
|
|
2192
|
-
border-radius: ${
|
|
2192
|
+
border-radius: ${k.borderRadius};
|
|
2193
2193
|
}
|
|
2194
2194
|
|
|
2195
2195
|
.ft-search-bar--dense .ft-search-bar--input-outline {
|
|
@@ -2198,7 +2198,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2198
2198
|
}
|
|
2199
2199
|
|
|
2200
2200
|
.ft-search-bar--input-container:focus-within .ft-search-bar--input-outline {
|
|
2201
|
-
outline: 2px solid ${
|
|
2201
|
+
outline: 2px solid ${k.colorPrimary};
|
|
2202
2202
|
}
|
|
2203
2203
|
|
|
2204
2204
|
.ft-search-bar--input {
|
|
@@ -2206,12 +2206,12 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2206
2206
|
flex-grow: 1;
|
|
2207
2207
|
border: none;
|
|
2208
2208
|
background-color: transparent;
|
|
2209
|
-
color: ${
|
|
2209
|
+
color: ${k.colorOnSurface};
|
|
2210
2210
|
outline: none;
|
|
2211
2211
|
}
|
|
2212
2212
|
|
|
2213
2213
|
.ft-search-bar--input::placeholder {
|
|
2214
|
-
color: ${
|
|
2214
|
+
color: ${k.colorOnSurfaceMedium};
|
|
2215
2215
|
}
|
|
2216
2216
|
|
|
2217
2217
|
.ft-search-bar--actions {
|
|
@@ -2221,18 +2221,18 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2221
2221
|
align-items: center;
|
|
2222
2222
|
height: 100%;
|
|
2223
2223
|
|
|
2224
|
-
${(0,
|
|
2224
|
+
${(0,A.setVariable)(Vt.zIndex,`calc(${k.floatingZIndex} + 1)`)};
|
|
2225
2225
|
}
|
|
2226
2226
|
|
|
2227
2227
|
.ft-search-bar > ft-button,
|
|
2228
2228
|
.ft-search-bar--actions ft-button {
|
|
2229
2229
|
flex-shrink: 0;
|
|
2230
|
-
${(0,
|
|
2230
|
+
${(0,A.setVariable)(M.backgroundColor,"transparent")};
|
|
2231
2231
|
}
|
|
2232
2232
|
|
|
2233
2233
|
.ft-search-bar--left-action {
|
|
2234
|
-
${(0,
|
|
2235
|
-
border-right: 1px solid ${
|
|
2234
|
+
${(0,A.setVariable)(M.borderRadius,`calc(${k.borderRadius} - 1px) 0 0 calc(${k.borderRadius} - 1px)`)};
|
|
2235
|
+
border-right: 1px solid ${k.colorOutline};
|
|
2236
2236
|
height: 100%;
|
|
2237
2237
|
}
|
|
2238
2238
|
|
|
@@ -2241,7 +2241,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2241
2241
|
}
|
|
2242
2242
|
|
|
2243
2243
|
.ft-search-bar--floating-panel-open .ft-search-bar--left-action {
|
|
2244
|
-
${(0,
|
|
2244
|
+
${(0,A.setVariable)(M.borderRadius,`calc(${k.borderRadius} - 1px) 0 0 0`)};
|
|
2245
2245
|
}
|
|
2246
2246
|
|
|
2247
2247
|
.ft-search-bar .ft-search-bar--launch-search,
|
|
@@ -2251,13 +2251,13 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2251
2251
|
|
|
2252
2252
|
.ft-search-bar--separator {
|
|
2253
2253
|
height: 20px;
|
|
2254
|
-
border-right: 1px solid ${
|
|
2254
|
+
border-right: 1px solid ${k.colorOutline};
|
|
2255
2255
|
}
|
|
2256
2256
|
|
|
2257
2257
|
.ft-search-bar--left-action.ft-search-bar--content-locale {
|
|
2258
|
-
${(0,
|
|
2259
|
-
${(0,
|
|
2260
|
-
${(0,
|
|
2258
|
+
${(0,A.setVariable)(T.borderColor,"transparent")};
|
|
2259
|
+
${(0,A.setVariable)(T.borderRadiusS,`calc(${k.borderRadius} - 1px)`)};
|
|
2260
|
+
${(0,A.setVariable)(W.selectedOptionColor,k.buttonColor)};
|
|
2261
2261
|
}
|
|
2262
2262
|
|
|
2263
2263
|
.ft-search-bar--left-action.ft-search-bar--content-locale,
|
|
@@ -2274,7 +2274,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2274
2274
|
}
|
|
2275
2275
|
|
|
2276
2276
|
.ft-search-bar--left-action.ft-search-bar--content-locale::part(selected-value) {
|
|
2277
|
-
border-radius: calc(${
|
|
2277
|
+
border-radius: calc(${k.borderRadius} - 1px) 0 0 calc(${k.borderRadius} - 1px);
|
|
2278
2278
|
}
|
|
2279
2279
|
|
|
2280
2280
|
[part="content-locale-selector"] {
|
|
@@ -2283,7 +2283,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2283
2283
|
flex-direction: column;
|
|
2284
2284
|
max-height: 100%;
|
|
2285
2285
|
max-width: 100%;
|
|
2286
|
-
color: ${
|
|
2286
|
+
color: ${ze.colorOnSurface};
|
|
2287
2287
|
}
|
|
2288
2288
|
|
|
2289
2289
|
[part="content-locale-selector"] > ft-radio-group {
|
|
@@ -2301,7 +2301,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2301
2301
|
flex-shrink: 0;
|
|
2302
2302
|
padding: 0 10px;
|
|
2303
2303
|
margin-bottom: 8px;
|
|
2304
|
-
${(0,
|
|
2304
|
+
${(0,A.setVariable)(C.fontSize,"14px")};
|
|
2305
2305
|
}
|
|
2306
2306
|
|
|
2307
2307
|
[part="content-locale-selector-label"] {
|
|
@@ -2309,18 +2309,18 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2309
2309
|
flex-shrink: 1;
|
|
2310
2310
|
flex-grow: 1;
|
|
2311
2311
|
word-break: break-word;
|
|
2312
|
-
${(0,
|
|
2313
|
-
${(0,
|
|
2312
|
+
${(0,A.setVariable)(C.lineHeight,"22px")};
|
|
2313
|
+
${(0,A.setVariable)(C.fontWeight,"bold")};
|
|
2314
2314
|
}
|
|
2315
2315
|
|
|
2316
|
-
`,
|
|
2316
|
+
`,nc=en.css`
|
|
2317
2317
|
.ft-search-bar--presets {
|
|
2318
2318
|
min-width: 200px;
|
|
2319
2319
|
}
|
|
2320
2320
|
|
|
2321
2321
|
.ft-search-bar--desktop-menu .ft-search-bar--presets {
|
|
2322
2322
|
margin-right: auto;
|
|
2323
|
-
${(0,
|
|
2323
|
+
${(0,A.setVariable)(W.optionsZIndex,"2")};
|
|
2324
2324
|
}
|
|
2325
2325
|
|
|
2326
2326
|
.ft-search-bar--desktop-menu {
|
|
@@ -2373,8 +2373,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2373
2373
|
|
|
2374
2374
|
.ft-search-bar--desktop-menu .ft-search-bar--filters-container {
|
|
2375
2375
|
display: block;
|
|
2376
|
-
height: ${
|
|
2377
|
-
${(0,
|
|
2376
|
+
height: ${k.desktopFiltersHeight};
|
|
2377
|
+
${(0,A.setVariable)($e.gap,"16px")};
|
|
2378
2378
|
}
|
|
2379
2379
|
|
|
2380
2380
|
.ft-search-bar--desktop-menu ft-filter {
|
|
@@ -2389,15 +2389,15 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2389
2389
|
}
|
|
2390
2390
|
|
|
2391
2391
|
.ft-search-bar--desktop-menu [data-filters-count="2"] ft-filter {
|
|
2392
|
-
max-width: calc(50% - ${
|
|
2392
|
+
max-width: calc(50% - ${$e.gap} / 2);
|
|
2393
2393
|
}
|
|
2394
2394
|
|
|
2395
2395
|
.ft-search-bar--desktop-menu [data-filters-count="3"] ft-filter {
|
|
2396
|
-
max-width: max(250px, calc(33% - 2 * ${
|
|
2396
|
+
max-width: max(250px, calc(33% - 2 * ${$e.gap} / 3));
|
|
2397
2397
|
}
|
|
2398
2398
|
|
|
2399
2399
|
.ft-search-bar--desktop-menu [data-filters-count="4"] ft-filter {
|
|
2400
|
-
max-width: max(250px, calc(25% - 3 * ${
|
|
2400
|
+
max-width: max(250px, calc(25% - 3 * ${$e.gap} / 4));
|
|
2401
2401
|
}
|
|
2402
2402
|
|
|
2403
2403
|
.ft-search-bar--hierarchical-filter {
|
|
@@ -2454,7 +2454,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2454
2454
|
.ft-search-bar--filter-label-values {
|
|
2455
2455
|
flex-grow: 0;
|
|
2456
2456
|
flex-shrink: 1;
|
|
2457
|
-
color: ${
|
|
2457
|
+
color: ${k.colorOnSurfaceMedium};
|
|
2458
2458
|
}
|
|
2459
2459
|
|
|
2460
2460
|
ft-accordion-item::part(toggle) {
|
|
@@ -2474,17 +2474,17 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2474
2474
|
.ft-search-bar--desktop-menu .ft-search-bar--launch-search {
|
|
2475
2475
|
margin: 0;
|
|
2476
2476
|
}
|
|
2477
|
-
`;var
|
|
2478
|
-
`}};
|
|
2479
|
-
<div class="ft-search-bar--suggestions ft-word-wrap ${
|
|
2477
|
+
`;var sc=u(O());var ac=u($()),lc=u(O());var qt=class extends lc.FtLitElement{render(){return ac.html`
|
|
2478
|
+
`}};qt.elementDefinitions={};qt.styles=rc;(0,sc.customElement)("ft-skeleton")(qt);var Oo=u($()),tn=u(no());var ei=u(O());var wt=class{constructor(e,o=300){this.searchBar=e,this.updateDebouncer=new ei.Debouncer(o)}render(){let e=this.searchBar.recentSearches.filter(i=>i.toLowerCase().includes(this.searchBar.query.toLowerCase())),o=this.searchBar.suggestions.length>0||e.length>0;return Oo.html`
|
|
2479
|
+
<div class="ft-search-bar--suggestions ft-word-wrap ${o?"ft-search-bar--suggestions-not-empty":""}"
|
|
2480
2480
|
part="suggestions-container"
|
|
2481
2481
|
@keydown=${i=>this.onSuggestKeyDown(i)}>
|
|
2482
|
-
${(0,
|
|
2482
|
+
${(0,tn.repeat)(e.slice(0,5),i=>i,i=>Oo.html`
|
|
2483
2483
|
<a href="${this.searchBar.searchRequestSerializer({...this.searchBar.request,query:i})}"
|
|
2484
2484
|
part="suggestions"
|
|
2485
2485
|
class="ft-search-bar--suggestion ft-search-bar--recent-search"
|
|
2486
|
-
@keyup=${
|
|
2487
|
-
@click=${
|
|
2486
|
+
@keyup=${n=>this.onSuggestKeyUp(n,i)}
|
|
2487
|
+
@click=${n=>this.onSuggestClick(n,i)}>
|
|
2488
2488
|
<ft-ripple></ft-ripple>
|
|
2489
2489
|
<ft-icon variant="material" value="history" part="suggestion-icon"></ft-icon>
|
|
2490
2490
|
<ft-typography variant="body1">${i}</ft-typography>
|
|
@@ -2494,24 +2494,24 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2494
2494
|
?dense=${!this.searchBar.isMobile}
|
|
2495
2495
|
label="${this.searchBar.labelResolver.resolve("removeRecentSearch")}"
|
|
2496
2496
|
tooltipPosition="left"
|
|
2497
|
-
@click=${
|
|
2497
|
+
@click=${n=>this.removeRecentSearch(n,i)}></ft-button>
|
|
2498
2498
|
</a>
|
|
2499
2499
|
`)}
|
|
2500
|
-
${(0,
|
|
2500
|
+
${(0,tn.repeat)(this.searchBar.suggestions,i=>i.value,i=>Oo.html`
|
|
2501
2501
|
<a href="${this.searchBar.searchRequestSerializer({...this.searchBar.request,query:i.value})}"
|
|
2502
2502
|
part="suggestions"
|
|
2503
2503
|
class="ft-search-bar--suggestion"
|
|
2504
|
-
@keyup=${
|
|
2505
|
-
@click=${
|
|
2504
|
+
@keyup=${n=>this.onSuggestKeyUp(n,i.value)}
|
|
2505
|
+
@click=${n=>this.onSuggestClick(n,i.value)}>
|
|
2506
2506
|
<ft-ripple></ft-ripple>
|
|
2507
2507
|
${this.getIcon(i)}
|
|
2508
2508
|
<ft-typography variant="body1">${i.value}</ft-typography>
|
|
2509
2509
|
</a>
|
|
2510
2510
|
`)}
|
|
2511
2511
|
</div>
|
|
2512
|
-
`}update(){return new Promise((
|
|
2513
|
-
<ft-icon .variant="${
|
|
2514
|
-
`}getFocusedSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion:focus-within")}getLastSuggestionElement(){let
|
|
2512
|
+
`}update(){return new Promise((e,o)=>{this.updateDebouncer.run(async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then(i=>i.suggestions).catch(()=>[]):[],e()})})}onSuggestKeyDown(e){var o,i,n,a,l,s;switch(e.key){case"ArrowUp":(n=(i=(o=this.getFocusedSuggestionElement())===null||o===void 0?void 0:o.previousElementSibling)!==null&&i!==void 0?i:this.getLastSuggestionElement())===null||n===void 0||n.focus(),e.preventDefault(),e.stopPropagation();break;case"ArrowDown":(s=(l=(a=this.getFocusedSuggestionElement())===null||a===void 0?void 0:a.nextElementSibling)!==null&&l!==void 0?l:this.getFirstSuggestionElement())===null||s===void 0||s.focus(),e.preventDefault(),e.stopPropagation();break}}onSuggestKeyUp(e,o){(e.key==="Enter"||e.key===" ")&&this.onSuggestSelected(e,o)}onSuggestClick(e,o){!e.ctrlKey&&!e.metaKey&&this.onSuggestSelected(e,o)}onSuggestSelected(e,o){e.preventDefault(),e.stopPropagation(),this.searchBar.setQuery(o),this.searchBar.launchSearch()}removeRecentSearch(e,o){var i,n;e.preventDefault(),e.stopPropagation();let a=e.target.closest(".ft-search-bar--suggestion"),l=(n=(i=a?.previousElementSibling)!==null&&i!==void 0?i:a?.nextElementSibling)!==null&&n!==void 0?n:this.searchBar.input;l?.focus(),this.searchBar.recentSearches=this.searchBar.recentSearches.filter(s=>s.toLowerCase()!==o.toLowerCase()),this.searchBar.saveRecentSearches()}getIcon(e){let o=e.type==="DOCUMENT"?pt.file_format:pt.fluid_topics,i;switch(e.type){case"MAP":i=e.editorialType==="BOOK"?Gt.BOOK:Gt.ARTICLE;break;case"DOCUMENT":i=Yl(e.mimeType,e.filenameExtension);break;case"TOPIC":i=Gt.TOPICS;break}return Oo.html`
|
|
2513
|
+
<ft-icon .variant="${o}" .value="${i}" part="suggestion-icon"></ft-icon>
|
|
2514
|
+
`}getFocusedSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion:focus-within")}getLastSuggestionElement(){let e=this.searchBar.querySelectorAll(".ft-search-bar--suggestion");return e.length>0?e[e.length-1]:null}getFirstSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion")}focusFirstSuggestion(){var e;(e=this.getFirstSuggestionElement())===null||e===void 0||e.focus()}};wt.styles=[ei.wordWrap,Oo.css`
|
|
2515
2515
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
2516
2516
|
flex-grow: 1;
|
|
2517
2517
|
flex-shrink: 1;
|
|
@@ -2520,7 +2520,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2520
2520
|
}
|
|
2521
2521
|
|
|
2522
2522
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
2523
|
-
border-top: 1px solid ${
|
|
2523
|
+
border-top: 1px solid ${k.colorOutline};
|
|
2524
2524
|
}
|
|
2525
2525
|
|
|
2526
2526
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
@@ -2530,15 +2530,15 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2530
2530
|
.ft-search-bar--floating-panel,
|
|
2531
2531
|
.ft-search-bar--desktop .ft-search-bar--suggestions {
|
|
2532
2532
|
position: absolute;
|
|
2533
|
-
z-index: ${
|
|
2533
|
+
z-index: ${k.floatingZIndex};
|
|
2534
2534
|
top: 100%;
|
|
2535
2535
|
left: -1px;
|
|
2536
2536
|
right: -1px;
|
|
2537
2537
|
display: none;
|
|
2538
|
-
background: ${
|
|
2539
|
-
border: 1px solid ${
|
|
2540
|
-
border-radius: 0 0 ${
|
|
2541
|
-
box-shadow: ${
|
|
2538
|
+
background: ${k.colorSurface};
|
|
2539
|
+
border: 1px solid ${k.colorOutline};
|
|
2540
|
+
border-radius: 0 0 ${k.borderRadius} ${k.borderRadius};
|
|
2541
|
+
box-shadow: ${k.elevation02};
|
|
2542
2542
|
outline: none;
|
|
2543
2543
|
}
|
|
2544
2544
|
|
|
@@ -2558,7 +2558,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2558
2558
|
padding: 8px;
|
|
2559
2559
|
gap: 8px;
|
|
2560
2560
|
cursor: pointer;
|
|
2561
|
-
color: ${
|
|
2561
|
+
color: ${k.colorOnSurface};
|
|
2562
2562
|
min-height: 52px;
|
|
2563
2563
|
}
|
|
2564
2564
|
|
|
@@ -2575,7 +2575,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2575
2575
|
}
|
|
2576
2576
|
|
|
2577
2577
|
.ft-search-bar--recent-search + .ft-search-bar--suggestion:not(.ft-search-bar--recent-search) {
|
|
2578
|
-
border-top: 1px solid ${
|
|
2578
|
+
border-top: 1px solid ${k.colorOutline};
|
|
2579
2579
|
}
|
|
2580
2580
|
|
|
2581
2581
|
.ft-search-bar--suggestion ft-typography {
|
|
@@ -2583,57 +2583,57 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2583
2583
|
flex-grow: 1;
|
|
2584
2584
|
flex-shrink: 1;
|
|
2585
2585
|
}
|
|
2586
|
-
`];var
|
|
2587
|
-
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||
|
|
2586
|
+
`];var Ae=u($()),on=u(no());var ti=u(O());var Ct=class{constructor(e){this.searchBar=e}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return Ae.html``;let e=this.searchBar.isMobile(),o=!e&&this.searchBar.dense||e&&this.searchBar.isMobileMenuOpen(),i=Ae.html`
|
|
2587
|
+
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||e)?Ae.html`
|
|
2588
2588
|
<ft-chip part="selected-filters selected-filter-ft-locale"
|
|
2589
|
-
?dense=${this.searchBar.dense&&!
|
|
2590
|
-
?clickable=${
|
|
2589
|
+
?dense=${this.searchBar.dense&&!e}
|
|
2590
|
+
?clickable=${e}
|
|
2591
2591
|
@click=${()=>this.openMobileFilters("ft:locale")}
|
|
2592
2592
|
data-key="ft:locale"
|
|
2593
2593
|
data-value="${this.searchBar.contentLocale}">
|
|
2594
2594
|
${this.getLocaleLabel(this.searchBar.contentLocale)}
|
|
2595
2595
|
</ft-chip>
|
|
2596
2596
|
`:null}
|
|
2597
|
-
${(0,
|
|
2597
|
+
${(0,on.repeat)(this.searchBar.facets,n=>n.key,n=>{let a=ol(n);return(0,on.repeat)(a,l=>{let s=n.label+": "+Qa(l),d=n.key.replace(":","-"),f=Ae.html`
|
|
2598
2598
|
<ft-chip
|
|
2599
|
-
part="selected-filters selected-filter-${
|
|
2600
|
-
?dense=${this.searchBar.dense&&!
|
|
2601
|
-
?clickable=${
|
|
2602
|
-
?removable=${!
|
|
2603
|
-
icon=${
|
|
2604
|
-
label="${
|
|
2605
|
-
title=${
|
|
2606
|
-
@click=${()=>this.openMobileFilters(
|
|
2607
|
-
@icon-click=${()=>this.searchBar.setFilter(
|
|
2608
|
-
data-key="${
|
|
2599
|
+
part="selected-filters selected-filter-${d}"
|
|
2600
|
+
?dense=${this.searchBar.dense&&!e}
|
|
2601
|
+
?clickable=${e}
|
|
2602
|
+
?removable=${!e}
|
|
2603
|
+
icon=${e?Ae.nothing:"close"}
|
|
2604
|
+
label="${s}"
|
|
2605
|
+
title=${o?s:Ae.nothing}
|
|
2606
|
+
@click=${()=>this.openMobileFilters(n.key)}
|
|
2607
|
+
@icon-click=${()=>this.searchBar.setFilter(n.key,a.filter(h=>h!==l))}
|
|
2608
|
+
data-key="${n.key}"
|
|
2609
2609
|
data-value="${l}">
|
|
2610
|
-
${
|
|
2610
|
+
${Ja(l)}
|
|
2611
2611
|
</ft-chip>
|
|
2612
|
-
`;return
|
|
2613
|
-
<ft-tooltip inline text="${
|
|
2614
|
-
${
|
|
2612
|
+
`;return o?f:Ae.html`
|
|
2613
|
+
<ft-tooltip inline text="${s}">
|
|
2614
|
+
${f}
|
|
2615
2615
|
</ft-tooltip>
|
|
2616
2616
|
`})})}
|
|
2617
|
-
${
|
|
2617
|
+
${e?Ae.html`
|
|
2618
2618
|
<ft-chip part="selected-filters mobile-filters-opener"
|
|
2619
2619
|
icon="plus"
|
|
2620
2620
|
clickable
|
|
2621
2621
|
@click=${()=>{this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0}}>
|
|
2622
2622
|
${this.searchBar.labelResolver.resolve("filtersButton")}
|
|
2623
2623
|
</ft-chip>
|
|
2624
|
-
`:
|
|
2625
|
-
`;return
|
|
2624
|
+
`:Ae.nothing}
|
|
2625
|
+
`;return o?Ae.html`
|
|
2626
2626
|
<ft-snap-scroll horizontal controls hideScrollbar limitSize
|
|
2627
2627
|
class="ft-search-bar--selected-filters"
|
|
2628
2628
|
part="selected-filters-container"
|
|
2629
2629
|
exportpartsPrefix="selected-filters-container">
|
|
2630
2630
|
${i}
|
|
2631
2631
|
</ft-snap-scroll>
|
|
2632
|
-
`:
|
|
2632
|
+
`:Ae.html`
|
|
2633
2633
|
<div class="ft-search-bar--selected-filters" part="selected-filters-container">
|
|
2634
2634
|
${i}
|
|
2635
2635
|
</div>
|
|
2636
|
-
`}openMobileFilters(
|
|
2636
|
+
`}openMobileFilters(e){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=e)}getLocaleLabel(e){var o;return(o=this.searchBar.availableContentLocales.filter(i=>{var n;return((n=i.lang)!==null&&n!==void 0?n:"").toLowerCase()===(e??"").toLowerCase()}).map(i=>i.label).pop())!==null&&o!==void 0?o:e}};Ct.styles=Ae.css`
|
|
2637
2637
|
.ft-search-bar--selected-filters:not(ft-snap-scroll) {
|
|
2638
2638
|
flex-shrink: 0;
|
|
2639
2639
|
display: flex;
|
|
@@ -2644,7 +2644,7 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2644
2644
|
|
|
2645
2645
|
ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2646
2646
|
overflow: hidden;
|
|
2647
|
-
${(0,
|
|
2647
|
+
${(0,ti.setVariable)($e.gap,"4px")};
|
|
2648
2648
|
}
|
|
2649
2649
|
|
|
2650
2650
|
ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
|
|
@@ -2652,8 +2652,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2652
2652
|
}
|
|
2653
2653
|
|
|
2654
2654
|
.ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2655
|
-
${(0,
|
|
2656
|
-
${(0,
|
|
2655
|
+
${(0,ti.setVariable)(Ne.iconSize,"17px")};
|
|
2656
|
+
${(0,ti.setVariable)(Ne.fontSize,"12px")};
|
|
2657
2657
|
}
|
|
2658
2658
|
|
|
2659
2659
|
.ft-search-bar--selected-filters * {
|
|
@@ -2663,8 +2663,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2663
2663
|
.ft-search-bar--selected-filters ft-chip {
|
|
2664
2664
|
flex-grow: 0;
|
|
2665
2665
|
}
|
|
2666
|
-
`;var
|
|
2667
|
-
<div class="${(0,
|
|
2666
|
+
`;var Et=u($());var cc=u(st()),xr=class{constructor(e,o,i){this.searchBar=e,this.selectedFacetsManager=o??new Ct(e),this.suggestManager=i??new wt(e)}render(){let e={"ft-search-bar--container":!0,"ft-search-bar--mobile":!0,"ft-search-bar--mobile-menu-open":this.searchBar.isMobileMenuOpen(),"ft-search-bar--forced-open":this.searchBar.forceMobileMenuOpen};return Et.html`
|
|
2667
|
+
<div class="${(0,cc.classMap)(e)}" part="container" tabindex="-1">
|
|
2668
2668
|
<div class="ft-search-bar">
|
|
2669
2669
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
2670
2670
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
@@ -2673,8 +2673,8 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2673
2673
|
type="search"
|
|
2674
2674
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
2675
2675
|
value="${this.searchBar.query}"
|
|
2676
|
-
@input=${
|
|
2677
|
-
@keyup=${
|
|
2676
|
+
@input=${o=>this.onInput(o)}
|
|
2677
|
+
@keyup=${o=>this.onSearchBarKeyUp(o)}
|
|
2678
2678
|
@focus=${()=>{this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!1}}>
|
|
2679
2679
|
</div>
|
|
2680
2680
|
</div>
|
|
@@ -2682,18 +2682,18 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2682
2682
|
</div>
|
|
2683
2683
|
${this.searchBar.displayFacets?this.searchBar.renderFacetsActions():this.selectedFacetsManager.render()}
|
|
2684
2684
|
${this.searchBar.displayFacets?this.searchBar.renderMobileFacets():this.suggestManager.render()}
|
|
2685
|
-
${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?
|
|
2685
|
+
${this.searchBar.isMobileMenuOpen()||this.searchBar.displayFacets?Et.html`
|
|
2686
2686
|
<ft-button class="ft-search-bar--launch-search"
|
|
2687
2687
|
part="launch-search-in-panel"
|
|
2688
2688
|
icon="search"
|
|
2689
2689
|
@click=${this.searchBar.launchSearch}>
|
|
2690
2690
|
${this.searchBar.labelResolver.resolve("searchButton")}
|
|
2691
2691
|
</ft-button>
|
|
2692
|
-
`:
|
|
2692
|
+
`:Et.nothing}
|
|
2693
2693
|
</div>
|
|
2694
|
-
`}renderMobileSearchBarButtons(){let
|
|
2694
|
+
`}renderMobileSearchBarButtons(){let e=this.searchBar.query||this.searchBar.isMobileMenuOpen()&&!this.searchBar.forceMobileMenuOpen;return Et.html`
|
|
2695
2695
|
<div class="ft-search-bar--actions" part="search-bar-actions">
|
|
2696
|
-
${
|
|
2696
|
+
${e?Et.html`
|
|
2697
2697
|
<ft-button class="ft-search-bar--clear-query"
|
|
2698
2698
|
part="clear-query"
|
|
2699
2699
|
icon="close"
|
|
@@ -2703,69 +2703,69 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2703
2703
|
@click=${()=>{this.searchBar.setQuery(""),this.searchBar.mobileMenuOpen=!1,this.searchBar.displayFacets=!1}}
|
|
2704
2704
|
></ft-button>
|
|
2705
2705
|
<div class="ft-search-bar--separator"></div>
|
|
2706
|
-
`:
|
|
2706
|
+
`:Et.nothing}
|
|
2707
2707
|
<ft-button class="ft-search-bar--launch-search"
|
|
2708
2708
|
part="launch-search-in-bar"
|
|
2709
2709
|
icon="search"
|
|
2710
2710
|
round
|
|
2711
2711
|
label="${this.searchBar.labelResolver.resolve("searchButton")}"
|
|
2712
2712
|
tooltipPosition="left"
|
|
2713
|
-
@click=${()=>{var
|
|
2713
|
+
@click=${()=>{var o;return this.searchBar.isMobileMenuOpen()?this.searchBar.launchSearch():(o=this.searchBar.input)===null||o===void 0?void 0:o.focus()}}
|
|
2714
2714
|
></ft-button>
|
|
2715
2715
|
</div>
|
|
2716
|
-
`}onSearchBarKeyUp(
|
|
2716
|
+
`}onSearchBarKeyUp(e){e.key==="Enter"&&this.searchBar.launchSearch()}onInput(e){let o=e.composedPath()[0];this.searchBar.query=o.value}};xr.styles=Et.css`
|
|
2717
2717
|
|
|
2718
|
-
`;var
|
|
2719
|
-
<div class="${(0,
|
|
2718
|
+
`;var Fe=u($()),pc=u(no());var dc=u(st()),Sr=class{constructor(e,o,i){this.searchBar=e,this.selectedFacetsManager=o??new Ct(e),this.suggestManager=i??new wt(e)}render(){let e={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen,"ft-search-bar--react-to-focus":this.searchBar.reactToFocus};return Fe.html`
|
|
2719
|
+
<div class="${(0,dc.classMap)(e)}" part="container" tabindex="-1">
|
|
2720
2720
|
<div class="ft-search-bar" part="search-bar">
|
|
2721
2721
|
${this.renderSearchBarLeftAction()}
|
|
2722
2722
|
<div class="ft-search-bar--input-container" part="input-container" tabindex="-1">
|
|
2723
2723
|
<div class="ft-search-bar--input-outline" part="input-outline">
|
|
2724
|
-
${this.searchBar.dense?this.selectedFacetsManager.render():
|
|
2724
|
+
${this.searchBar.dense?this.selectedFacetsManager.render():Fe.nothing}
|
|
2725
2725
|
<input class="ft-search-bar--input ft-typography--body2"
|
|
2726
2726
|
part="input"
|
|
2727
2727
|
type="search"
|
|
2728
2728
|
placeholder="${this.searchBar.labelResolver.resolve("inputPlaceHolder")}"
|
|
2729
2729
|
value="${this.searchBar.query}"
|
|
2730
|
-
@input=${
|
|
2731
|
-
@keydown=${
|
|
2732
|
-
@keyup=${
|
|
2730
|
+
@input=${o=>this.onInput(o)}
|
|
2731
|
+
@keydown=${o=>this.onSearchBarKeyDown(o)}
|
|
2732
|
+
@keyup=${o=>this.onSearchBarKeyUp(o)}>
|
|
2733
2733
|
</div>
|
|
2734
2734
|
${this.suggestManager.render()}
|
|
2735
2735
|
</div>
|
|
2736
2736
|
${this.renderDesktopSearchBarButtons()}
|
|
2737
2737
|
${this.searchBar.renderDesktopFloatingMenu()}
|
|
2738
2738
|
</div>
|
|
2739
|
-
${this.searchBar.dense?
|
|
2739
|
+
${this.searchBar.dense?Fe.nothing:this.searchBar.forceMenuOpen?this.searchBar.renderDesktopMenu():this.selectedFacetsManager.render()}
|
|
2740
2740
|
</div>
|
|
2741
|
-
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?
|
|
2741
|
+
`}renderSearchBarLeftAction(){return this.searchBar.hasFacets()?this.searchBar.forceMenuOpen?Fe.nothing:Fe.html`
|
|
2742
2742
|
<ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
|
|
2743
2743
|
part="filters-opener"
|
|
2744
2744
|
trailingIcon
|
|
2745
2745
|
icon="${this.searchBar.displayFacets?"THIN_ARROW_UP":"THIN_ARROW"}"
|
|
2746
|
-
@click=${
|
|
2747
|
-
@focusin=${
|
|
2746
|
+
@click=${e=>{e.stopPropagation(),this.searchBar.displayFacets=!this.searchBar.displayFacets}}
|
|
2747
|
+
@focusin=${e=>e.stopPropagation()}
|
|
2748
2748
|
aria-controls="ft-search-bar-floating-panel"
|
|
2749
2749
|
aria-expanded="${this.searchBar.displayFacets}">
|
|
2750
2750
|
${this.searchBar.labelResolver.resolve("filtersButton")}
|
|
2751
2751
|
</ft-button>
|
|
2752
|
-
`:this.searchBar.hasLocaleSelector()?
|
|
2752
|
+
`:this.searchBar.hasLocaleSelector()?Fe.html`
|
|
2753
2753
|
<ft-select outlined
|
|
2754
2754
|
class="ft-search-bar--content-locale ft-search-bar--left-action"
|
|
2755
2755
|
part="content-locale select-ft-locale"
|
|
2756
2756
|
.exportpartsPrefixes=${["content-locale","select-ft-locale"]}
|
|
2757
|
-
@change=${
|
|
2758
|
-
${(0,
|
|
2759
|
-
<ft-select-option .value=${
|
|
2760
|
-
label="${
|
|
2761
|
-
?selected=${
|
|
2757
|
+
@change=${e=>this.searchBar.contentLocale=e.detail==null?void 0:e.detail}>
|
|
2758
|
+
${(0,pc.repeat)(this.searchBar.availableContentLocales,e=>e.lang,e=>Fe.html`
|
|
2759
|
+
<ft-select-option .value=${e.lang}
|
|
2760
|
+
label="${e.label}"
|
|
2761
|
+
?selected=${e.lang===this.searchBar.contentLocale}>
|
|
2762
2762
|
</ft-select-option>
|
|
2763
2763
|
`)}
|
|
2764
2764
|
</ft-select>
|
|
2765
|
-
`:
|
|
2765
|
+
`:Fe.nothing}renderDesktopSearchBarButtons(){return Fe.html`
|
|
2766
2766
|
<div class="ft-search-bar--actions"
|
|
2767
2767
|
part="search-bar-actions">
|
|
2768
|
-
${this.searchBar.query?
|
|
2768
|
+
${this.searchBar.query?Fe.html`
|
|
2769
2769
|
<ft-button class="ft-search-bar--clear-query"
|
|
2770
2770
|
part="clear-query"
|
|
2771
2771
|
icon="close"
|
|
@@ -2783,49 +2783,49 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2783
2783
|
@click=${()=>this.searchBar.launchSearch()}
|
|
2784
2784
|
></ft-button>
|
|
2785
2785
|
</div>
|
|
2786
|
-
`}onSearchBarKeyDown(
|
|
2786
|
+
`}onSearchBarKeyDown(e){var o;switch(e.key){case"Escape":this.searchBar.mobileMenuOpen=!1,(o=this.searchBar.input)===null||o===void 0||o.blur();break;case"ArrowDown":e.stopPropagation(),e.preventDefault(),this.suggestManager.focusFirstSuggestion();break}}onSearchBarKeyUp(e){e.key==="Enter"&&this.searchBar.launchSearch()}onInput(e){let o=e.composedPath()[0];this.searchBar.query=o.value}};Sr.styles=Fe.css`
|
|
2787
2787
|
|
|
2788
|
-
`;var
|
|
2789
|
-
`;var
|
|
2788
|
+
`;var lp=u(O());var yc=u($()),nt=u(Z()),ht=u(O());var fc=u($());var uc=fc.css`
|
|
2789
|
+
`;var hc=u(O()),Wp="ft-app-info",Up={},D=hc.FtReduxStore.get({name:Wp,reducers:Up,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var Xt=u(O());var rn=u(O());var wo=class t{static get(e){let{baseUrl:o,apiIntegrationIdentifier:i}=D.getState(),n=e??i;if(o&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,n,!0)}static await(e){return new Promise(o=>{let i=t.get(e);if(i)o(i);else{let n=D.subscribe(()=>{i=t.get(e),i&&(n(),o(i))})}})}};var Yt=class{constructor(e=!0,o){var i;this.overrideApi=o;let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new rn.CacheRegistry,this.cache=e?n.commonCache:new rn.CacheRegistry}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:wo.get()}get awaitApi(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:wo.await()}clearCache(){this.cache.clearAll()}};var mc,Hp=Symbol("clearAfterUnitTest"),oi=class extends Yt{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[mc]=()=>{this.defaultMessages={},this.cache=new Xt.CacheRegistry,this.listeners={}},this.currentUiLocale=D.getState().uiLocale,D.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=D.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let o=e.name.toLowerCase();this.cache.setFinal(o,e),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,o){var i;if(e=e.toLowerCase(),Object.keys(o).length>0){let n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...o};(0,Xt.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}await this.fetchContext(e)}resolveMessage(e,o,...i){var n,a,l;e=e.toLowerCase(),this.fetchContext(e);let s=(a=(n=this.cache.getNow(e))===null||n===void 0?void 0:n.messages)!==null&&a!==void 0?a:{};return new Xt.ParametrizedLabelResolver((l=this.defaultMessages[e])!==null&&l!==void 0?l:{},s).resolve(o,...i)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(o){console.error(o)}}subscribe(e,o){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(o),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(o=>(0,Xt.delay)(0).then(()=>o()).catch(()=>null)))}};mc=Hp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends oi{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends oi{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var gc=window.FluidTopicsI18nService,Tx=window.FluidTopicsCustomI18nService;var Le=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},de=class extends ht.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>wo.get(),this.messageContexts=[],this.cache=new ht.CacheRegistry,this.cleanSessionDebouncer=new ht.Debouncer}render(){return yc.html`
|
|
2790
2790
|
<slot></slot>
|
|
2791
|
-
`}update(t){super.update(t),t.has("baseUrl")&&(P.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&P.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&P.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&P.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&P.actions.noCustom(this.noCustom),t.has("editorMode")&&P.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&P.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&P.actions.session(this.session),t.has("availableUiLocales")&&P.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>es.addContext(r)),t.has("openExternalDocumentInNewTab")&&P.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&P.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&P.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};rt.elementDefinitions={};rt.styles=Jl;Lt([(0,Xt.property)()],rt.prototype,"baseUrl",void 0);Lt([(0,Xt.property)()],rt.prototype,"apiIntegrationIdentifier",void 0);Lt([(0,Xt.property)()],rt.prototype,"uiLocale",void 0);Lt([(0,ae.jsonProperty)(null)],rt.prototype,"availableUiLocales",void 0);Lt([(0,ae.jsonProperty)(null)],rt.prototype,"metadataConfiguration",void 0);Lt([(0,Xt.property)({type:Boolean})],rt.prototype,"editorMode",void 0);Lt([(0,Xt.property)({type:Boolean})],rt.prototype,"noCustom",void 0);Lt([(0,Xt.property)({type:Boolean})],rt.prototype,"openExternalDocumentInNewTab",void 0);Lt([(0,Xt.property)({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],rt.prototype,"noCustomComponent",void 0);Lt([(0,Xt.property)({type:Boolean})],rt.prototype,"withManualResources",void 0);Lt([(0,Xt.property)({type:Boolean})],rt.prototype,"navigatorOnline",void 0);Lt([(0,Xt.property)({type:Boolean})],rt.prototype,"forcedOffline",void 0);Lt([(0,Xt.property)({type:Object})],rt.prototype,"apiProvider",void 0);Lt([(0,ae.jsonProperty)([])],rt.prototype,"messageContexts",void 0);Lt([(0,ae.jsonProperty)(void 0)],rt.prototype,"session",void 0);var Lr=d(g());var $r=class extends _e{async listMySearches(){let t=P.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Er=class extends _e{async listMyBookmarks(){let t=P.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var Hs="ft-user-assets",Rr=Lr.FtReduxStore.get({name:Hs,initialState:{savedSearches:void 0,bookmarks:void 0}}),ui=class{constructor(){this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Er,this.savedSearchesService=new $r,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=P.getState();(0,Lr.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Rr.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Rr.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Rr.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Rr.actions.bookmarks(r)}}},my=new ui;var mi=class{addCommand(t,r=!1){P.commands.add(t,r)}consumeCommand(t){return P.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new mi;var rs=d(g()),gi=class{highlightHtml(t,r){(0,rs.highlightHtml)(t,r)}};window.FluidTopicsHighlightHtmlService=new gi;(0,is.customElement)("ft-app-context")(rt);var z=function(o,t,r,i){var a=arguments.length,n=a<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,t,r,i);else for(var c=o.length-1;c>=0;c--)(l=o[c])&&(n=(a<3?l(n):a>3?l(t,r,n):l(t,r))||n);return a>3&&n&&Object.defineProperty(t,r,n),n};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var as={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove",back:"Back"},bi=class extends CustomEvent{constructor(t){super("launch-search",{detail:t,bubbles:!0,composed:!0})}},yi=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Vs=()=>{},w=class extends Z.FtLitElement{isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}constructor(){super(),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new Z.ParametrizedLabelResolver(as,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=t=>(0,Z.serializeRequest)(this.baseUrl,t),this.focusOnDisplay=!1,this.searchFilters=[],this.sizeCategory=Kt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.suggestManager=new ue(this),this.selectedFacetsManager=new me(this),this.desktopSearchBarManager=new jo(this),this.mobileSearchBarManager=new Ko(this,this.selectedFacetsManager,this.suggestManager),this.currentSession=P.getState().session,this.stateChangeEventDebouncer=new Z.Debouncer(10),this.updateLocalesDebouncer=new Z.Debouncer(10),this.facetsLoaded=!1,this.updateFacetsDebouncer=new Z.Debouncer(500),this.closeFloatingContainer=t=>{this.isMobile()||(this.displayFacets=this.displayFacets&&t.composedPath().some(r=>r===this.floatingContainer))},this.compareFilters=(t,r)=>t.key===r.key&&t.negative==r.negative&&t.values.length===r.values.length&&t.values.every(i=>r.values.includes(i)),this.compareRequests=(t,r)=>(t.contentLocale==null||r.contentLocale==null||t.contentLocale===r.contentLocale)&&t.filters.length===r.filters.length&&t.filters.every(i=>r.filters.some(a=>this.compareFilters(i,a))),this.enableFocusReactionCallback=()=>this.enableFocusReaction(),P.subscribe(()=>this.reloadWhenUserSessionChanges())}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,filters:this.searchFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let t=this.searchFilters.filter(r=>r.values.length>0&&!this.displayedFilters.includes(r.key)).map(r=>({id:r.key}));return[...this.displayedFilters.map(r=>({id:r})),...t]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,filters:this.searchFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===Kt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;(t=this.container)===null||t===void 0||t.focus()}async focusInput(t=!1){this.reactToFocus=t,await(0,Z.waitFor)(()=>this.input,50),this.input.focus(),t||this.enableFocusReactionOnAnyUserInteraction()}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return W.html`
|
|
2791
|
+
`}update(e){super.update(e),e.has("baseUrl")&&(D.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&D.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&D.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&D.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&D.actions.noCustom(this.noCustom),e.has("editorMode")&&D.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&D.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&D.actions.session(this.session),e.has("availableUiLocales")&&D.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(o=>gc.addContext(o)),e.has("openExternalDocumentInNewTab")&&D.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&D.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&D.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};de.elementDefinitions={};de.styles=uc;Le([(0,nt.property)()],de.prototype,"baseUrl",void 0);Le([(0,nt.property)()],de.prototype,"apiIntegrationIdentifier",void 0);Le([(0,nt.property)()],de.prototype,"uiLocale",void 0);Le([(0,ht.jsonProperty)(null)],de.prototype,"availableUiLocales",void 0);Le([(0,ht.jsonProperty)(null)],de.prototype,"metadataConfiguration",void 0);Le([(0,nt.property)({type:Boolean})],de.prototype,"editorMode",void 0);Le([(0,nt.property)({type:Boolean})],de.prototype,"noCustom",void 0);Le([(0,nt.property)({type:Boolean})],de.prototype,"openExternalDocumentInNewTab",void 0);Le([(0,nt.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],de.prototype,"noCustomComponent",void 0);Le([(0,nt.property)({type:Boolean})],de.prototype,"withManualResources",void 0);Le([(0,nt.property)({type:Boolean})],de.prototype,"navigatorOnline",void 0);Le([(0,nt.property)({type:Boolean})],de.prototype,"forcedOffline",void 0);Le([(0,nt.property)({type:Object})],de.prototype,"apiProvider",void 0);Le([(0,ht.jsonProperty)([])],de.prototype,"messageContexts",void 0);Le([(0,ht.jsonProperty)(void 0)],de.prototype,"session",void 0);var kd=u(Z());function Vp(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var o,i,n;if(Array.isArray(t)){if(o=t.length,o!=e.length)return!1;for(i=o;i--!==0;)if(!Go(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!Go(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(n=Object.keys(t),o=n.length,o!==Object.keys(e).length)return!1;for(i=o;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=o;i--!==0;){var a=n[i];if(!Go(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function Go(t,e){try{return Vp(t,e)}catch{return!1}}var jp=u(Z(),1);var ri=class{constructor(){this.queue=[]}add(e,o=!1){o&&(this.queue=this.queue.filter(i=>i.type!==e.type)),this.queue.push(e)}consume(e){let o=this.queue.find(i=>i.type===e);return o&&(this.queue=this.queue.filter(i=>i!==o)),o}};var an=u(Z(),1);var bc=u(Z(),1);function vc(t,e){let o=()=>JSON.parse(JSON.stringify(t));return(0,bc.property)({type:Object,converter:{fromAttribute:i=>{if(i==null)return o();try{return JSON.parse(i)}catch{return o()}},toAttribute:i=>JSON.stringify(i)},hasChanged:(i,n)=>!Go(i,n),...e??{}})}var ii=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,o){return this.callbacks=[e],this.debounce(o)}queue(e,o){return this.callbacks.push(e),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((o,i)=>{this.resolvePromise=o,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,o;let i=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(o=this.resolvePromise)!==null&&o!==void 0?o:()=>null;this.clearPromise();for(let l of i)try{await l()}catch(s){n(s);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Sc=u($(),1);var ni=window,Kp=ni.ShadowRoot&&(ni.ShadyCSS===void 0||ni.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qx=Symbol();var xc=(t,e)=>{Kp?t.adoptedStyleSheets=e.map(o=>o instanceof CSSStyleSheet?o:o.styleSheet):e.forEach(o=>{let i=document.createElement("style"),n=ni.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=o.cssText,t.appendChild(i)})};var ai=class extends Sc.LitElement{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let o={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(o);return xc(i,e.elementStyles),i}};var nn=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a},Cc,Oc=Symbol("constructorPrototype"),wc=Symbol("constructorName"),Ec=Symbol("exportpartsDebouncer"),Co=class extends ai{constructor(){super(),this.adoptedCustomStyleSheet=new CSSStyleSheet,this.useAdoptedStyleSheets=!0,this[Cc]=new ii(5),this[wc]=this.constructor.name,this[Oc]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[wc]&&Object.setPrototypeOf(this,this[Oc])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet])}catch(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var o,i,n;if(this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((o=this.customStylesheet)!==null&&o!==void 0?o:"")}catch(a){console.error(a,this.customStylesheet)}}else if(((n=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,o,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)!==null&&i!==void 0&&i)&&this[Ec].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var o,i,n,a,l,s;let d=g=>g!=null&&g.trim().length>0,f=e.filter(d).map(g=>g.trim());if(f.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(i=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let b=(a=(n=g.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],y=(s=(l=g.getAttribute("exportparts"))===null||l===void 0?void 0:l.split(",").map(v=>v.split(":")[1]))!==null&&s!==void 0?s:[];new Array(...b,...y).filter(d).map(v=>v.trim()).forEach(v=>h.add(v))}if(h.size===0){this.removeAttribute("exportparts");return}let m=[...h.values()].flatMap(g=>f.map(b=>`${g}:${b}--${g}`));this.setAttribute("exportparts",[...this.part,...m].join(", "))}};Cc=Ec;nn([(0,an.property)()],Co.prototype,"exportpartsPrefix",void 0);nn([vc([])],Co.prototype,"exportpartsPrefixes",void 0);nn([(0,an.property)()],Co.prototype,"customStylesheet",void 0);function Or(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Rc,$c,Nc,li=Symbol("internalReduxEventsUnsubscribers"),Jt=Symbol("internalStoresUnsubscribers"),Eo=Symbol("internalStores"),wr=class extends Co{constructor(){super(...arguments),this[Rc]=new Map,this[$c]=new Map,this[Nc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(o=>e.has(o))&&this.updateFromStores()}getUnnamedStore(){if(this[Eo].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Eo].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Eo].get(e)}addStore(e,o){var i;o=(i=o??(Or(e)?e.name:void 0))!==null&&i!==void 0?i:"default-store",this.unsubscribeFromStore(o),this.setupStore(o,e)}removeStore(e){let o=typeof e=="string"?e:e.name;this.unsubscribeFromStore(o),this[Eo].delete(o)}setupStore(e,o){this[Eo].set(e,o),this.subscribeToStore(e,o),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Eo].forEach((e,o)=>this.subscribeToStore(o,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,o)=>{let i=this.constructor.getPropertyOptions(o);if(!i?.attribute||!this.hasAttribute(typeof i?.attribute=="string"?i.attribute:o)){let n=this.getStore(e.store);n&&(e.store?this[Jt].has(e.store):this[Jt].size>0)&&(this[o]=e.selector(n.getState(),this))}})}subscribeToStore(e,o){var i;this[Jt].set(e,o.subscribe(()=>this.updateFromStores())),Or(o)&&o.eventBus&&((i=this.reduxConstructor.reduxEventListeners)===null||i===void 0||i.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||o.name===n.store)){let l=s=>this[a](s);o.eventBus.addEventListener(n.eventName,l),this[li].push(()=>o.eventBus.removeEventListener(n.eventName,l))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Jt].forEach((e,o)=>this.unsubscribeFromStore(o)),this[li].forEach(e=>e()),this[li]=[]}unsubscribeFromStore(e){this[Jt].has(e)&&this[Jt].get(e)(),this[Jt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Rc=Jt,$c=Eo,Nc=li;wr.reduxProperties=new Map;wr.reduxReactiveProperties=new Set;wr.reduxEventListeners=new Map;function at(t){for(var e=arguments.length,o=Array(e>1?e-1:0),i=1;i<e;i++)o[i-1]=arguments[i];if(0)var n,a;throw Error("[Immer] minified error nr: "+t+(o.length?" "+o.map(function(l){return"'"+l+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function zt(t){return!!t&&!!t[ne]}function mt(t){var e;return!!t&&(function(o){if(!o||typeof o!="object")return!1;var i=Object.getPrototypeOf(o);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===ed}(t)||Array.isArray(t)||!!t[Dc]||!!(!((e=t.constructor)===null||e===void 0)&&e[Dc])||mn(t)||gn(t))}function Ro(t,e,o){o===void 0&&(o=!1),Yo(t)===0?(o?Object.keys:qo)(t).forEach(function(i){o&&typeof i=="symbol"||e(i,t[i],t)}):t.forEach(function(i,n){return e(n,i,t)})}function Yo(t){var e=t[ne];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:mn(t)?2:gn(t)?3:0}function Zo(t,e){return Yo(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Gp(t,e){return Yo(t)===2?t.get(e):t[e]}function _c(t,e,o){var i=Yo(t);i===2?t.set(e,o):i===3?t.add(o):t[e]=o}function Tc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function mn(t){return Jp&&t instanceof Map}function gn(t){return Qp&&t instanceof Set}function Qt(t){return t.o||t.t}function yn(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Mc(t);delete e[ne];for(var o=qo(e),i=0;i<o.length;i++){var n=o[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[n]})}return Object.create(Object.getPrototypeOf(t),e)}function bn(t,e){return e===void 0&&(e=!1),vn(t)||zt(t)||!mt(t)||(Yo(t)>1&&(t.set=t.add=t.clear=t.delete=Zp),Object.freeze(t),e&&Ro(t,function(o,i){return bn(i,!0)},!0)),t}function Zp(){at(2)}function vn(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Rt(t){var e=hn[t];return e||at(18,t),e}function qp(t,e){hn[t]||(hn[t]=e)}function dn(){return Er}function ln(t,e){e&&(Rt("Patches"),t.u=[],t.s=[],t.v=e)}function si(t){fn(t),t.p.forEach(Yp),t.p=null}function fn(t){t===Er&&(Er=t.l)}function kc(t){return Er={p:[],l:Er,h:t,m:!0,_:0}}function Yp(t){var e=t[ne];e.i===0||e.i===1?e.j():e.g=!0}function sn(t,e){e._=e.p.length;var o=e.p[0],i=t!==void 0&&t!==o;return e.h.O||Rt("ES5").S(e,t,i),i?(o[ne].P&&(si(e),at(4)),mt(t)&&(t=ci(e,t),e.l||pi(e,t)),e.u&&Rt("Patches").M(o[ne].t,t,e.u,e.s)):t=ci(e,o,[]),si(e),e.u&&e.v(e.u,e.s),t!==Fc?t:void 0}function ci(t,e,o){if(vn(e))return e;var i=e[ne];if(!i)return Ro(e,function(s,d){return Ac(t,i,e,s,d,o)},!0),e;if(i.A!==t)return e;if(!i.P)return pi(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=yn(i.k):i.o,a=n,l=!1;i.i===3&&(a=new Set(n),n.clear(),l=!0),Ro(a,function(s,d){return Ac(t,i,n,s,d,o,l)}),pi(t,n,!1),o&&t.u&&Rt("Patches").N(i,o,t.u,t.s)}return i.o}function Ac(t,e,o,i,n,a,l){if(zt(n)){var s=ci(t,n,a&&e&&e.i!==3&&!Zo(e.R,i)?a.concat(i):void 0);if(_c(o,i,s),!zt(s))return;t.m=!1}else l&&o.add(n);if(mt(n)&&!vn(n)){if(!t.h.D&&t._<1)return;ci(t,n),e&&e.A.l||pi(t,n)}}function pi(t,e,o){o===void 0&&(o=!1),!t.l&&t.h.D&&t.m&&bn(e,o)}function cn(t,e){var o=t[ne];return(o?Qt(o):t)[e]}function Lc(t,e){if(e in t)for(var o=Object.getPrototypeOf(t);o;){var i=Object.getOwnPropertyDescriptor(o,e);if(i)return i;o=Object.getPrototypeOf(o)}}function eo(t){t.P||(t.P=!0,t.l&&eo(t.l))}function pn(t){t.o||(t.o=yn(t.t))}function un(t,e,o){var i=mn(e)?Rt("MapSet").F(e,o):gn(e)?Rt("MapSet").T(e,o):t.O?function(n,a){var l=Array.isArray(n),s={i:l?1:0,A:a?a.A:dn(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},d=s,f=Rr;l&&(d=[s],f=Cr);var h=Proxy.revocable(d,f),m=h.revoke,g=h.proxy;return s.k=g,s.j=m,g}(e,o):Rt("ES5").J(e,o);return(o?o.A:dn()).p.push(i),i}function Xp(t){return zt(t)||at(22,t),function e(o){if(!mt(o))return o;var i,n=o[ne],a=Yo(o);if(n){if(!n.P&&(n.i<4||!Rt("ES5").K(n)))return n.t;n.I=!0,i=Pc(o,a),n.I=!1}else i=Pc(o,a);return Ro(i,function(l,s){n&&Gp(n.t,l)===s||_c(i,l,e(s))}),a===3?new Set(i):i}(t)}function Pc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return yn(t)}function zc(){function t(l,s){var d=a[l];return d?d.enumerable=s:a[l]=d={configurable:!0,enumerable:s,get:function(){var f=this[ne];return Rr.get(f,l)},set:function(f){var h=this[ne];Rr.set(h,l,f)}},d}function e(l){for(var s=l.length-1;s>=0;s--){var d=l[s][ne];if(!d.P)switch(d.i){case 5:i(d)&&eo(d);break;case 4:o(d)&&eo(d)}}}function o(l){for(var s=l.t,d=l.k,f=qo(d),h=f.length-1;h>=0;h--){var m=f[h];if(m!==ne){var g=s[m];if(g===void 0&&!Zo(s,m))return!0;var b=d[m],y=b&&b[ne];if(y?y.t!==g:!Tc(b,g))return!0}}var v=!!s[ne];return f.length!==qo(s).length+(v?0:1)}function i(l){var s=l.k;if(s.length!==l.t.length)return!0;var d=Object.getOwnPropertyDescriptor(s,s.length-1);if(d&&!d.get)return!0;for(var f=0;f<s.length;f++)if(!s.hasOwnProperty(f))return!0;return!1}function n(l){l.g&&at(3,JSON.stringify(Qt(l)))}var a={};qp("ES5",{J:function(l,s){var d=Array.isArray(l),f=function(m,g){if(m){for(var b=Array(g.length),y=0;y<g.length;y++)Object.defineProperty(b,""+y,t(y,!0));return b}var v=Mc(g);delete v[ne];for(var N=qo(v),E=0;E<N.length;E++){var R=N[E];v[R]=t(R,m||!!v[R].enumerable)}return Object.create(Object.getPrototypeOf(g),v)}(d,l),h={i:d?5:4,A:s?s.A:dn(),P:!1,I:!1,R:{},l:s,t:l,k:f,o:null,g:!1,C:!1};return Object.defineProperty(f,ne,{value:h,writable:!0}),f},S:function(l,s,d){d?zt(s)&&s[ne].A===l&&e(l.p):(l.u&&function f(h){if(h&&typeof h=="object"){var m=h[ne];if(m){var g=m.t,b=m.k,y=m.R,v=m.i;if(v===4)Ro(b,function(H){H!==ne&&(g[H]!==void 0||Zo(g,H)?y[H]||f(b[H]):(y[H]=!0,eo(m)))}),Ro(g,function(H){b[H]!==void 0||Zo(b,H)||(y[H]=!1,eo(m))});else if(v===5){if(i(m)&&(eo(m),y.length=!0),b.length<g.length)for(var N=b.length;N<g.length;N++)y[N]=!1;else for(var E=g.length;E<b.length;E++)y[E]=!0;for(var R=Math.min(b.length,g.length),P=0;P<R;P++)b.hasOwnProperty(P)||(y[P]=!0),y[P]===void 0&&f(b[P])}}}}(l.p[0]),e(l.p))},K:function(l){return l.i===4?o(l):i(l)}})}var Ic,Er,xn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Jp=typeof Map<"u",Qp=typeof Set<"u",Bc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Fc=xn?Symbol.for("immer-nothing"):((Ic={})["immer-nothing"]=!0,Ic),Dc=xn?Symbol.for("immer-draftable"):"__$immer_draftable",ne=xn?Symbol.for("immer-state"):"__$immer_state";var ed=""+Object.prototype.constructor,qo=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Mc=Object.getOwnPropertyDescriptors||function(t){var e={};return qo(t).forEach(function(o){e[o]=Object.getOwnPropertyDescriptor(t,o)}),e},hn={},Rr={get:function(t,e){if(e===ne)return t;var o=Qt(t);if(!Zo(o,e))return function(n,a,l){var s,d=Lc(a,l);return d?"value"in d?d.value:(s=d.get)===null||s===void 0?void 0:s.call(n.k):void 0}(t,o,e);var i=o[e];return t.I||!mt(i)?i:i===cn(t.t,e)?(pn(t),t.o[e]=un(t.A.h,i,t)):i},has:function(t,e){return e in Qt(t)},ownKeys:function(t){return Reflect.ownKeys(Qt(t))},set:function(t,e,o){var i=Lc(Qt(t),e);if(i?.set)return i.set.call(t.k,o),!0;if(!t.P){var n=cn(Qt(t),e),a=n?.[ne];if(a&&a.t===o)return t.o[e]=o,t.R[e]=!1,!0;if(Tc(o,n)&&(o!==void 0||Zo(t.t,e)))return!0;pn(t),eo(t)}return t.o[e]===o&&(o!==void 0||e in t.o)||Number.isNaN(o)&&Number.isNaN(t.o[e])||(t.o[e]=o,t.R[e]=!0),!0},deleteProperty:function(t,e){return cn(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,pn(t),eo(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var o=Qt(t),i=Reflect.getOwnPropertyDescriptor(o,e);return i&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:i.enumerable,value:o[e]}},defineProperty:function(){at(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){at(12)}},Cr={};Ro(Rr,function(t,e){Cr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Cr.deleteProperty=function(t,e){return Cr.set.call(this,t,e,void 0)},Cr.set=function(t,e,o){return Rr.set.call(this,t[0],e,o,t[0])};var td=function(){function t(o){var i=this;this.O=Bc,this.D=!0,this.produce=function(n,a,l){if(typeof n=="function"&&typeof a!="function"){var s=a;a=n;var d=i;return function(v){var N=this;v===void 0&&(v=s);for(var E=arguments.length,R=Array(E>1?E-1:0),P=1;P<E;P++)R[P-1]=arguments[P];return d.produce(v,function(H){var J;return(J=a).call.apply(J,[N,H].concat(R))})}}var f;if(typeof a!="function"&&at(6),l!==void 0&&typeof l!="function"&&at(7),mt(n)){var h=kc(i),m=un(i,n,void 0),g=!0;try{f=a(m),g=!1}finally{g?si(h):fn(h)}return typeof Promise<"u"&&f instanceof Promise?f.then(function(v){return ln(h,l),sn(v,h)},function(v){throw si(h),v}):(ln(h,l),sn(f,h))}if(!n||typeof n!="object"){if((f=a(n))===void 0&&(f=n),f===Fc&&(f=void 0),i.D&&bn(f,!0),l){var b=[],y=[];Rt("Patches").M(n,f,b,y),l(b,y)}return f}at(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(f){for(var h=arguments.length,m=Array(h>1?h-1:0),g=1;g<h;g++)m[g-1]=arguments[g];return i.produceWithPatches(f,function(b){return n.apply(void 0,[b].concat(m))})};var l,s,d=i.produce(n,a,function(f,h){l=f,s=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(f){return[f,l,s]}):[d,l,s]},typeof o?.useProxies=="boolean"&&this.setUseProxies(o.useProxies),typeof o?.autoFreeze=="boolean"&&this.setAutoFreeze(o.autoFreeze)}var e=t.prototype;return e.createDraft=function(o){mt(o)||at(8),zt(o)&&(o=Xp(o));var i=kc(this),n=un(this,o,void 0);return n[ne].C=!0,fn(i),n},e.finishDraft=function(o,i){var n=o&&o[ne],a=n.A;return ln(a,i),sn(void 0,a)},e.setAutoFreeze=function(o){this.D=o},e.setUseProxies=function(o){o&&!Bc&&at(20),this.O=o},e.applyPatches=function(o,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){o=a.value;break}}n>-1&&(i=i.slice(n+1));var l=Rt("Patches").$;return zt(o)?l(o,i):this.produce(o,function(s){return l(s,i)})},t}(),Je=new td,od=Je.produce,d0=Je.produceWithPatches.bind(Je),f0=Je.setAutoFreeze.bind(Je),u0=Je.setUseProxies.bind(Je),h0=Je.applyPatches.bind(Je),m0=Je.createDraft.bind(Je),g0=Je.finishDraft.bind(Je),di=od;function to(t){"@babel/helpers - typeof";return to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},to(t)}function Sn(t,e){if(to(t)!=="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var i=o.call(t,e||"default");if(to(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function On(t){var e=Sn(t,"string");return to(e)==="symbol"?e:String(e)}function wn(t,e,o){return e=On(e),e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function Wc(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),o.push.apply(o,i)}return o}function fi(t){for(var e=1;e<arguments.length;e++){var o=arguments[e]!=null?arguments[e]:{};e%2?Wc(Object(o),!0).forEach(function(i){wn(t,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Wc(Object(o)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(o,i))})}return t}function Ce(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var Uc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Cn=function(){return Math.random().toString(36).substring(7).split("").join(".")},ui={INIT:"@@redux/INIT"+Cn(),REPLACE:"@@redux/REPLACE"+Cn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Cn()}};function rd(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function En(t,e,o){var i;if(typeof e=="function"&&typeof o=="function"||typeof o=="function"&&typeof arguments[3]=="function")throw new Error(Ce(0));if(typeof e=="function"&&typeof o>"u"&&(o=e,e=void 0),typeof o<"u"){if(typeof o!="function")throw new Error(Ce(1));return o(En)(t,e)}if(typeof t!="function")throw new Error(Ce(2));var n=t,a=e,l=[],s=l,d=!1;function f(){s===l&&(s=l.slice())}function h(){if(d)throw new Error(Ce(3));return a}function m(v){if(typeof v!="function")throw new Error(Ce(4));if(d)throw new Error(Ce(5));var N=!0;return f(),s.push(v),function(){if(N){if(d)throw new Error(Ce(6));N=!1,f();var R=s.indexOf(v);s.splice(R,1),l=null}}}function g(v){if(!rd(v))throw new Error(Ce(7));if(typeof v.type>"u")throw new Error(Ce(8));if(d)throw new Error(Ce(9));try{d=!0,a=n(a,v)}finally{d=!1}for(var N=l=s,E=0;E<N.length;E++){var R=N[E];R()}return v}function b(v){if(typeof v!="function")throw new Error(Ce(10));n=v,g({type:ui.REPLACE})}function y(){var v,N=m;return v={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(Ce(11));function P(){R.next&&R.next(h())}P();var H=N(P);return{unsubscribe:H}}},v[Uc]=function(){return this},v}return g({type:ui.INIT}),i={dispatch:g,subscribe:m,getState:h,replaceReducer:b},i[Uc]=y,i}function id(t){Object.keys(t).forEach(function(e){var o=t[e],i=o(void 0,{type:ui.INIT});if(typeof i>"u")throw new Error(Ce(12));if(typeof o(void 0,{type:ui.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ce(13))})}function Hc(t){for(var e=Object.keys(t),o={},i=0;i<e.length;i++){var n=e[i];typeof t[n]=="function"&&(o[n]=t[n])}var a=Object.keys(o),l,s;try{id(o)}catch(d){s=d}return function(f,h){if(f===void 0&&(f={}),s)throw s;if(0)var m;for(var g=!1,b={},y=0;y<a.length;y++){var v=a[y],N=o[v],E=f[v],R=N(E,h);if(typeof R>"u"){var P=h&&h.type;throw new Error(Ce(14))}b[v]=R,g=g||R!==E}return g=g||a.length!==Object.keys(f).length,g?b:f}}function Xo(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return e.length===0?function(i){return i}:e.length===1?e[0]:e.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function Vc(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return function(i){return function(){var n=i.apply(void 0,arguments),a=function(){throw new Error(Ce(15))},l={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},s=e.map(function(d){return d(l)});return a=Xo.apply(void 0,s)(n.dispatch),fi(fi({},n),{},{dispatch:a})}}}function jc(t){var e=function(i){var n=i.dispatch,a=i.getState;return function(l){return function(s){return typeof s=="function"?s(n,a,t):l(s)}}};return e}var Kc=jc();Kc.withExtraArgument=jc;var Rn=Kc;var Xc=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(i[a]=n[a])},t(e,o)};return function(e,o){if(typeof o!="function"&&o!==null)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");t(e,o);function i(){this.constructor=e}e.prototype=o===null?Object.create(o):(i.prototype=o.prototype,new i)}}(),nd=function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(f){return function(h){return d([f,h])}}function d(f){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,n&&(a=f[0]&2?n.return:f[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,f[1])).done)return a;switch(n=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return o.label++,{value:f[1],done:!1};case 5:o.label++,n=f[1],f=[0];continue;case 7:f=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){o=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){o.label=f[1];break}if(f[0]===6&&o.label<a[1]){o.label=a[1],a=f;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(f);break}a[2]&&o.ops.pop(),o.trys.pop();continue}f=e.call(t,o)}catch(h){f=[6,h],n=0}finally{i=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}},Jo=function(t,e){for(var o=0,i=e.length,n=t.length;o<i;o++,n++)t[n]=e[o];return t},ad=Object.defineProperty,ld=Object.defineProperties,sd=Object.getOwnPropertyDescriptors,Gc=Object.getOwnPropertySymbols,cd=Object.prototype.hasOwnProperty,pd=Object.prototype.propertyIsEnumerable,Zc=function(t,e,o){return e in t?ad(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o},oo=function(t,e){for(var o in e||(e={}))cd.call(e,o)&&Zc(t,o,e[o]);if(Gc)for(var i=0,n=Gc(e);i<n.length;i++){var o=n[i];pd.call(e,o)&&Zc(t,o,e[o])}return t},$n=function(t,e){return ld(t,sd(e))},dd=function(t,e,o){return new Promise(function(i,n){var a=function(d){try{s(o.next(d))}catch(f){n(f)}},l=function(d){try{s(o.throw(d))}catch(f){n(f)}},s=function(d){return d.done?i(d.value):Promise.resolve(d.value).then(a,l)};s((o=o.apply(t,e)).next())})};var fd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Xo:Xo.apply(null,arguments)},B0=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function ud(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var o=e;Object.getPrototypeOf(o)!==null;)o=Object.getPrototypeOf(o);return e===o}var hd=function(t){Xc(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Jo([void 0],o[0].concat(this)))):new(e.bind.apply(e,Jo([void 0],o.concat(this))))},e}(Array),md=function(t){Xc(e,t);function e(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];var n=t.apply(this,o)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return t.prototype.concat.apply(this,o)},e.prototype.prepend=function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return o.length===1&&Array.isArray(o[0])?new(e.bind.apply(e,Jo([void 0],o[0].concat(this)))):new(e.bind.apply(e,Jo([void 0],o.concat(this))))},e}(Array);function An(t){return mt(t)?di(t,function(){}):t}function gd(t){return typeof t=="boolean"}function yd(){return function(e){return bd(e)}}function bd(t){t===void 0&&(t={});var e=t.thunk,o=e===void 0?!0:e,i=t.immutableCheck,n=i===void 0?!0:i,a=t.serializableCheck,l=a===void 0?!0:a,s=new hd;if(o&&(gd(o)?s.push(Rn):s.push(Rn.withExtraArgument(o.extraArgument))),0){if(n)var d;if(l)var f}return s}var Nn=!0;function Jc(t){var e=yd(),o=t||{},i=o.reducer,n=i===void 0?void 0:i,a=o.middleware,l=a===void 0?e():a,s=o.devTools,d=s===void 0?!0:s,f=o.preloadedState,h=f===void 0?void 0:f,m=o.enhancers,g=m===void 0?void 0:m,b;if(typeof n=="function")b=n;else if(ud(n))b=Hc(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var y=l;if(typeof y=="function"&&(y=y(e),!Nn&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Nn&&y.some(function(H){return typeof H!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Vc.apply(void 0,y),N=Xo;d&&(N=fd(oo({trace:!Nn},typeof d=="object"&&d)));var E=new md(v),R=E;Array.isArray(g)?R=Jo([v],g):typeof g=="function"&&(R=g(E));var P=N.apply(void 0,R);return En(b,h,P)}function ro(t,e){function o(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(e){var a=e.apply(void 0,i);if(!a)throw new Error("prepareAction did not return an object");return oo(oo({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:i[0]}}return o.toString=function(){return""+t},o.type=t,o.match=function(i){return i.type===t},o}function Qc(t){var e={},o=[],i,n={addCase:function(a,l){var s=typeof a=="string"?a:a.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=l,n},addMatcher:function(a,l){return o.push({matcher:a,reducer:l}),n},addDefaultCase:function(a){return i=a,n}};return t(n),[e,o,i]}function vd(t){return typeof t=="function"}function xd(t,e,o,i){o===void 0&&(o=[]);var n=typeof e=="function"?Qc(e):[e,o,i],a=n[0],l=n[1],s=n[2],d;if(vd(t))d=function(){return An(t())};else{var f=An(t);d=function(){return f}}function h(m,g){m===void 0&&(m=d());var b=Jo([a[g.type]],l.filter(function(y){var v=y.matcher;return v(g)}).map(function(y){var v=y.reducer;return v}));return b.filter(function(y){return!!y}).length===0&&(b=[s]),b.reduce(function(y,v){if(v)if(zt(y)){var N=y,E=v(N,g);return E===void 0?y:E}else{if(mt(y))return di(y,function(R){return v(R,g)});var E=v(y,g);if(E===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return y},m)}return h.getInitialState=d,h}function Sd(t,e){return t+"/"+e}function ep(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var o=typeof t.initialState=="function"?t.initialState:An(t.initialState),i=t.reducers||{},n=Object.keys(i),a={},l={},s={};n.forEach(function(h){var m=i[h],g=Sd(e,h),b,y;"reducer"in m?(b=m.reducer,y=m.prepare):b=m,a[h]=b,l[g]=b,s[h]=y?ro(g,y):ro(g)});function d(){var h=typeof t.extraReducers=="function"?Qc(t.extraReducers):[t.extraReducers],m=h[0],g=m===void 0?{}:m,b=h[1],y=b===void 0?[]:b,v=h[2],N=v===void 0?void 0:v,E=oo(oo({},g),l);return xd(o,function(R){for(var P in E)R.addCase(P,E[P]);for(var H=0,J=y;H<J.length;H++){var Qe=J[H];R.addMatcher(Qe.matcher,Qe.reducer)}N&&R.addDefaultCase(N)})}var f;return{name:e,reducer:function(h,m){return f||(f=d()),f(h,m)},actions:s,caseReducers:a,getInitialState:function(){return f||(f=d()),f.getInitialState()}}}var Od="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",wd=function(t){t===void 0&&(t=21);for(var e="",o=t;o--;)e+=Od[Math.random()*64|0];return e},Cd=["name","message","stack","code"],kn=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),qc=function(){function t(e,o){this.payload=e,this.meta=o}return t}(),Ed=function(t){if(typeof t=="object"&&t!==null){for(var e={},o=0,i=Cd;o<i.length;o++){var n=i[o];typeof t[n]=="string"&&(e[n]=t[n])}return e}return{message:String(t)}},z0=function(){function t(e,o,i){var n=ro(e+"/fulfilled",function(h,m,g,b){return{payload:h,meta:$n(oo({},b||{}),{arg:g,requestId:m,requestStatus:"fulfilled"})}}),a=ro(e+"/pending",function(h,m,g){return{payload:void 0,meta:$n(oo({},g||{}),{arg:m,requestId:h,requestStatus:"pending"})}}),l=ro(e+"/rejected",function(h,m,g,b,y){return{payload:b,error:(i&&i.serializeError||Ed)(h||"Rejected"),meta:$n(oo({},y||{}),{arg:g,requestId:m,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),s=!1,d=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function f(h){return function(m,g,b){var y=i?.idGenerator?i.idGenerator(h):wd(),v=new d,N,E=!1;function R(H){N=H,v.abort()}var P=function(){return dd(this,null,function(){var H,J,Qe,Ft,bi,Mt,Me;return nd(this,function(et){switch(et.label){case 0:return et.trys.push([0,4,,5]),Ft=(H=i?.condition)==null?void 0:H.call(i,h,{getState:g,extra:b}),$d(Ft)?[4,Ft]:[3,2];case 1:Ft=et.sent(),et.label=2;case 2:if(Ft===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,bi=new Promise(function(We,io){return v.signal.addEventListener("abort",function(){return io({name:"AbortError",message:N||"Aborted"})})}),m(a(y,h,(J=i?.getPendingMeta)==null?void 0:J.call(i,{requestId:y,arg:h},{getState:g,extra:b}))),[4,Promise.race([bi,Promise.resolve(o(h,{dispatch:m,getState:g,extra:b,requestId:y,signal:v.signal,abort:R,rejectWithValue:function(We,io){return new kn(We,io)},fulfillWithValue:function(We,io){return new qc(We,io)}})).then(function(We){if(We instanceof kn)throw We;return We instanceof qc?n(We.payload,y,h,We.meta):n(We,y,h)})])];case 3:return Qe=et.sent(),[3,5];case 4:return Mt=et.sent(),Qe=Mt instanceof kn?l(null,y,h,Mt.payload,Mt.meta):l(Mt,y,h),[3,5];case 5:return Me=i&&!i.dispatchConditionRejection&&l.match(Qe)&&Qe.meta.condition,Me||m(Qe),[2,Qe]}})})}();return Object.assign(P,{abort:R,requestId:y,arg:h,unwrap:function(){return P.then(Rd)}})}}return Object.assign(f,{pending:a,rejected:l,fulfilled:n,typePrefix:e})}return t.withTypes=function(){return t},t}();function Rd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function $d(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var tp="listener",op="completed",rp="cancelled",F0="task-"+rp,M0="task-"+op,W0=tp+"-"+rp,U0=tp+"-"+op;var Ln="listenerMiddleware";var H0=ro(Ln+"/add"),V0=ro(Ln+"/removeAll"),j0=ro(Ln+"/remove");var Yc,K0=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Yc||(Yc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},Nd=function(t){return function(e){setTimeout(e,t)}},G0=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Nd(10);zc();window.ftReduxStores||(window.ftReduxStores={});var ip=class t{static get(e){var o;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[i];if(Or(a))return a;if(n==null)return;let l=ep({...n,reducers:(o=n.reducers)!==null&&o!==void 0?o:{}}),s=Jc({reducer:(d,f)=>f.type==="CLEAR_FT_REDUX_STORE"?l.getInitialState():typeof f.type=="string"&&f.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...f.overwrites}:l.reducer(d,f)});return window.ftReduxStores[n.name]=new t(l,s)}constructor(e,o){this.reduxSlice=e,this.reduxStore=o,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new ri,this.actions=new Proxy(this.reduxSlice.actions,{get:(i,n,a)=>{let l=n,s=i[l];return s?(...d)=>{let f=s(...d);return this.reduxStore.dispatch(f),f}:d=>{this.setState({[l]:d})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var yi=u(O());var hi=class extends Yt{async listMySearches(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var mi=class extends Yt{async listMyBookmarks(){let e=D.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Ad="ft-user-assets",gi=yi.FtReduxStore.get({name:Ad,initialState:{savedSearches:void 0,bookmarks:void 0}}),Pn=class{constructor(){this.currentSession=D.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new mi,this.savedSearchesService=new hi,D.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:o}=D.getState();(0,yi.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),gi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),gi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();gi.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let o=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;gi.actions.bookmarks(o)}}},OS=new Pn;var In=class{addCommand(e,o=!1){D.commands.add(e,o)}consumeCommand(e){return D.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new In;var np=u(O()),Bn=class{highlightHtml(e,o){(0,np.highlightHtml)(e,o)}};window.FluidTopicsHighlightHtmlService=new Bn;var ap=u(O());var Dn=class{isDate(e){var o,i,n,a;return(a=(n=((i=(o=D.getState().metadataConfiguration)===null||o===void 0?void 0:o.descriptors)!==null&&i!==void 0?i:[]).find(s=>s.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,o){var i,n,a;return ap.DateFormatter.format(e,(i=o?.locale)!==null&&i!==void 0?i:D.getState().uiLocale,(n=o?.longFormat)!==null&&n!==void 0?n:!1,(a=o?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Dn;(0,lp.customElement)("ft-app-context")(de);var U=function(t,e,o,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,o,i);else for(var s=t.length-1;s>=0;s--)(l=t[s])&&(a=(n<3?l(a):n>3?l(e,o,a):l(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};window.fluidtopics==null&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");var sp={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",noFilterValuesAvailable:"No values available",searchButton:"Search",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Quick filters",removeRecentSearch:"Remove",back:"Back"},_n=class extends CustomEvent{constructor(e){super("launch-search",{detail:e,bubbles:!0,composed:!0})}},Tn=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ld=()=>{},L=class extends ee.FtLitElement{isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}constructor(){super(),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new ee.ParametrizedLabelResolver(sp,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=e=>(0,ee.serializeRequest)(this.baseUrl,e),this.focusOnDisplay=!1,this.searchFilters=[],this.sizeCategory=tt.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.reactToFocus=!0,this.suggestManager=new wt(this),this.selectedFacetsManager=new Ct(this),this.desktopSearchBarManager=new Sr(this),this.mobileSearchBarManager=new xr(this,this.selectedFacetsManager,this.suggestManager),this.currentSession=D.getState().session,this.stateChangeEventDebouncer=new ee.Debouncer(10),this.updateLocalesDebouncer=new ee.Debouncer(10),this.facetsLoaded=!1,this.updateFacetsDebouncer=new ee.Debouncer(500),this.closeFloatingContainer=e=>{this.isMobile()||(this.displayFacets=this.displayFacets&&e.composedPath().some(o=>o===this.floatingContainer))},this.compareFilters=(e,o)=>e.key===o.key&&e.negative==o.negative&&e.values.length===o.values.length&&e.values.every(i=>o.values.includes(i)),this.compareRequests=(e,o)=>(e.contentLocale==null||o.contentLocale==null||e.contentLocale===o.contentLocale)&&e.filters.length===o.filters.length&&e.filters.every(i=>o.filters.some(n=>this.compareFilters(i,n))),this.enableFocusReactionCallback=()=>this.enableFocusReaction(),D.subscribe(()=>this.reloadWhenUserSessionChanges())}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,filters:this.searchFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){let e=this.searchFilters.filter(o=>o.values.length>0&&!this.displayedFilters.includes(o.key)).map(o=>({id:o.key}));return[...this.displayedFilters.map(o=>({id:o})),...e]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,filters:this.searchFilters,sort:[]}}isMobile(){switch(this.mode){case"mobile":return!0;case"desktop":return!1;default:return this.sizeCategory===tt.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets!=null&&this.presets.length>0}get hasPriors(){return this.priors!=null&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var e;(e=this.container)===null||e===void 0||e.focus()}async focusInput(e=!1){this.reactToFocus=e,await(0,ee.waitFor)(()=>this.input,50),this.input.focus(),e||this.enableFocusReactionOnAnyUserInteraction()}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return G.html`
|
|
2792
2792
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2793
2793
|
${this.renderSearchBar()}
|
|
2794
|
-
`}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():
|
|
2794
|
+
`}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():G.html`
|
|
2795
2795
|
<ft-skeleton class="ft-search-bar--container ft-search-bar--skeleton"
|
|
2796
2796
|
part="loader"
|
|
2797
2797
|
tabindex="-1"></ft-skeleton>
|
|
2798
|
-
`}renderMobileFacets(){let
|
|
2798
|
+
`}renderMobileFacets(){let e=this.availableContentLocales.filter(o=>o.lang===this.contentLocale).pop();return G.html`
|
|
2799
2799
|
<ft-accordion class="ft-search-bar--filters-container">
|
|
2800
|
-
${this.hasLocaleSelector()?
|
|
2800
|
+
${this.hasLocaleSelector()?G.html`
|
|
2801
2801
|
<ft-accordion-item data-facet-key="ft:locale">
|
|
2802
2802
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2803
2803
|
<ft-typography variant="button">${this.labelResolver.resolve("contentLocaleSelector")}
|
|
2804
2804
|
</ft-typography>
|
|
2805
|
-
${
|
|
2805
|
+
${e?.label?G.html`
|
|
2806
2806
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
2807
|
-
${
|
|
2807
|
+
${e?.label}
|
|
2808
2808
|
</ft-typography>
|
|
2809
|
-
`:
|
|
2809
|
+
`:G.nothing}
|
|
2810
2810
|
</div>
|
|
2811
2811
|
<div part="content-locale-selector">
|
|
2812
2812
|
${this.getContentLocaleRadioGroup()}
|
|
2813
2813
|
</div>
|
|
2814
2814
|
</ft-accordion-item>
|
|
2815
2815
|
`:null}
|
|
2816
|
-
${(0
|
|
2817
|
-
<ft-accordion-item data-facet-key="${
|
|
2816
|
+
${(0,$r.repeat)(this.facets,o=>o.key,o=>{let i=Li(o),n=o.key.replace(":","-"),a=tl(i);return o.rootNodes.length>0?G.html`
|
|
2817
|
+
<ft-accordion-item data-facet-key="${o.key}">
|
|
2818
2818
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2819
|
-
<ft-typography variant="button">${
|
|
2820
|
-
${
|
|
2819
|
+
<ft-typography variant="button">${o.label}</ft-typography>
|
|
2820
|
+
${a.length>0?G.html`
|
|
2821
2821
|
<ft-typography class="ft-search-bar--filter-label-values" variant="body2">
|
|
2822
|
-
${
|
|
2822
|
+
${a.join(", ")}
|
|
2823
2823
|
</ft-typography>
|
|
2824
|
-
`:
|
|
2824
|
+
`:G.nothing}
|
|
2825
2825
|
</div>
|
|
2826
2826
|
<ft-filter
|
|
2827
|
-
part="filters filter filter-${
|
|
2828
|
-
.exportpartsPrefixes=${["filter","filter-"+
|
|
2827
|
+
part="filters filter filter-${n}"
|
|
2828
|
+
.exportpartsPrefixes=${["filter","filter-"+n]}
|
|
2829
2829
|
id="${i.id}"
|
|
2830
2830
|
filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",i.label)}"
|
|
2831
2831
|
clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
|
|
@@ -2838,24 +2838,24 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2838
2838
|
@change=${l=>this.setFilter(i.id,l.detail)}
|
|
2839
2839
|
></ft-filter>
|
|
2840
2840
|
</ft-accordion-item>
|
|
2841
|
-
`:
|
|
2841
|
+
`:G.nothing})}
|
|
2842
2842
|
</ft-accordion>
|
|
2843
|
-
`}getContentLocaleRadioGroup(){var
|
|
2843
|
+
`}getContentLocaleRadioGroup(){var e;return G.html`
|
|
2844
2844
|
<ft-radio-group aria-labelledby="content_locale_radio_group_label"
|
|
2845
|
-
@change=${
|
|
2846
|
-
${(0
|
|
2847
|
-
<ft-radio value="${(i=
|
|
2848
|
-
?checked=${
|
|
2849
|
-
${
|
|
2845
|
+
@change=${o=>{this.contentLocale=o.detail==="all"?void 0:o.detail,this.clearFilters()}}>
|
|
2846
|
+
${(0,$r.repeat)((e=this.availableContentLocales)!==null&&e!==void 0?e:[],o=>o.lang,o=>{var i;return G.html`
|
|
2847
|
+
<ft-radio value="${(i=o.lang)!==null&&i!==void 0?i:"all"}"
|
|
2848
|
+
?checked=${o.lang==this.contentLocale}>
|
|
2849
|
+
${o.label}
|
|
2850
2850
|
</ft-radio>
|
|
2851
2851
|
`})}
|
|
2852
2852
|
</ft-radio-group>
|
|
2853
|
-
`}renderDesktopMenu(){return this.hasFacets()?
|
|
2853
|
+
`}renderDesktopMenu(){return this.hasFacets()?G.html`
|
|
2854
2854
|
<div class="ft-search-bar--desktop-menu">
|
|
2855
2855
|
${this.renderFacetsActions()}
|
|
2856
2856
|
${this.renderDesktopFacets()}
|
|
2857
2857
|
<div class="ft-search-bar--facets-actions">
|
|
2858
|
-
${this.forceMenuOpen?this.renderDesktopClearFilters():
|
|
2858
|
+
${this.forceMenuOpen?this.renderDesktopClearFilters():G.nothing}
|
|
2859
2859
|
<ft-button class="ft-search-bar--launch-search"
|
|
2860
2860
|
part="launch-search-in-panel"
|
|
2861
2861
|
icon="search"
|
|
@@ -2864,38 +2864,38 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2864
2864
|
</ft-button>
|
|
2865
2865
|
</div>
|
|
2866
2866
|
</div>
|
|
2867
|
-
`:
|
|
2867
|
+
`:G.nothing}renderFacetsActions(){var e;return G.html`
|
|
2868
2868
|
<div class="ft-search-bar--facets-actions">
|
|
2869
|
-
${this.hasPresets?
|
|
2869
|
+
${this.hasPresets?G.html`
|
|
2870
2870
|
<ft-select
|
|
2871
2871
|
class="ft-search-bar--presets"
|
|
2872
2872
|
part="presets"
|
|
2873
2873
|
label="${this.labelResolver.resolve("presetsSelector")}"
|
|
2874
2874
|
outlined
|
|
2875
|
-
@change=${
|
|
2876
|
-
${(0
|
|
2877
|
-
<ft-select-option value="${
|
|
2878
|
-
label="${
|
|
2879
|
-
?selected=${
|
|
2875
|
+
@change=${o=>this.selectedPreset=o.detail}>
|
|
2876
|
+
${(0,$r.repeat)((e=this.presets)!==null&&e!==void 0?e:[],o=>o.name,o=>G.html`
|
|
2877
|
+
<ft-select-option value="${o.name}"
|
|
2878
|
+
label="${o.name}"
|
|
2879
|
+
?selected=${o.name===this.selectedPreset}>
|
|
2880
2880
|
</ft-select-option>
|
|
2881
2881
|
`)}
|
|
2882
2882
|
</ft-select>
|
|
2883
|
-
`:
|
|
2883
|
+
`:G.nothing}
|
|
2884
2884
|
<slot name="facets-actions"></slot>
|
|
2885
|
-
${this.forceMenuOpen&&!this.isMobile()?
|
|
2885
|
+
${this.forceMenuOpen&&!this.isMobile()?G.nothing:this.renderDesktopClearFilters()}
|
|
2886
2886
|
</div>
|
|
2887
|
-
`}renderDesktopClearFilters(){return this.searchFilters.length>0?
|
|
2887
|
+
`}renderDesktopClearFilters(){return this.searchFilters.length>0?G.html`
|
|
2888
2888
|
<ft-button part="facets-actions"
|
|
2889
2889
|
@click=${this.clearFilters}>
|
|
2890
2890
|
${this.labelResolver.resolve("clearFilters")}
|
|
2891
2891
|
</ft-button>
|
|
2892
|
-
`:
|
|
2892
|
+
`:G.nothing}renderDesktopFacets(){return this.hasFacets()?G.html`
|
|
2893
2893
|
<ft-snap-scroll horizontal limitSize controls
|
|
2894
2894
|
class="ft-search-bar--filters-container"
|
|
2895
2895
|
part="filters-container"
|
|
2896
2896
|
exportpartsPrefix="filters-container"
|
|
2897
2897
|
data-filters-count="${this.facets.length+(this.hasLocaleSelector()?1:0)}">
|
|
2898
|
-
${this.hasLocaleSelector()?
|
|
2898
|
+
${this.hasLocaleSelector()?G.html`
|
|
2899
2899
|
<div part="content-locale-selector">
|
|
2900
2900
|
<div part="content-locale-selector-header">
|
|
2901
2901
|
<ft-typography variant="overline" id="content_locale_radio_group_label" part="content-locale-selector-label">
|
|
@@ -2904,34 +2904,34 @@ Also for action icons.`,s.colorGray200),contentGlobalSubtle:e.extend("--ft-conte
|
|
|
2904
2904
|
</div>
|
|
2905
2905
|
${this.getContentLocaleRadioGroup()}
|
|
2906
2906
|
</div>
|
|
2907
|
-
`:
|
|
2908
|
-
${(0
|
|
2907
|
+
`:G.nothing}
|
|
2908
|
+
${(0,$r.repeat)(this.facets,e=>e.key,e=>{let o=Li(e),i=o.options.some(a=>{var l,s;return((s=(l=a.subOptions)===null||l===void 0?void 0:l.length)!==null&&s!==void 0?s:0)>0}),n=e.key.replace(":","-");return G.html`
|
|
2909
2909
|
<ft-filter
|
|
2910
2910
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
2911
|
-
part="filters filter filter-${
|
|
2912
|
-
.exportpartsPrefixes=${["filter","filter-"+
|
|
2913
|
-
id="${
|
|
2914
|
-
label="${
|
|
2915
|
-
filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",
|
|
2911
|
+
part="filters filter filter-${n}"
|
|
2912
|
+
.exportpartsPrefixes=${["filter","filter-"+n]}
|
|
2913
|
+
id="${o.id}"
|
|
2914
|
+
label="${o.label}"
|
|
2915
|
+
filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",o.label)}"
|
|
2916
2916
|
clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
|
|
2917
2917
|
moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}"
|
|
2918
2918
|
noValuesLabel="${this.labelResolver.resolve("noFilterValuesAvailable")}"
|
|
2919
|
-
?multivalued=${
|
|
2919
|
+
?multivalued=${o.multivalued}
|
|
2920
2920
|
raiseSelectedOptions
|
|
2921
|
-
.options=${
|
|
2921
|
+
.options=${o.options}
|
|
2922
2922
|
.displayedValuesLimit=${10}
|
|
2923
|
-
@change=${
|
|
2923
|
+
@change=${a=>this.setFilter(o.id,a.detail)}
|
|
2924
2924
|
></ft-filter>
|
|
2925
2925
|
`})}
|
|
2926
2926
|
</ft-snap-scroll>
|
|
2927
|
-
`:
|
|
2927
|
+
`:G.nothing}async firstUpdated(e){super.firstUpdated(e),this.initApi(),window.addEventListener("storage",o=>{o.key===this.recentSearchesStorageKey&&this.initRecentSearches()})}update(e){var o,i,n,a,l;if(e.has("labels")&&(this.labelResolver=new ee.ParametrizedLabelResolver(sp,this.labels)),e.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(e),(e.has("availableContentLocales")||e.has("contentLocale"))&&this.availableContentLocales.length>0){let s=d=>this.availableContentLocales.some(f=>f.lang==d);s(this.contentLocale)||(this.contentLocale=e.has("contentLocale")&&s(e.get("contentLocale"))?e.get("contentLocale"):(o=this.availableContentLocales[0])===null||o===void 0?void 0:o.lang)}if(e.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),e.has("presets")&&((i=this.presets)!==null&&i!==void 0?i:[]).forEach(s=>s.filters.forEach(d=>d.values=d.values.map(f=>Br(f)))),e.has("presets")||e.has("selectedPreset")){let s=((n=this.presets)!==null&&n!==void 0?n:[]).find(d=>d.name===this.selectedPreset);s&&!this.compareRequests(this.request,s)&&this.setFiltersFromPreset(s)}e.has("contentLocale")&&this.contentLocale!=null&&(this.knownFacetLabels=new Map),["contentLocale","searchFilters"].some(s=>e.has(s))&&(this.selectedPreset=(l=((a=this.presets)!==null&&a!==void 0?a:[]).find(s=>this.compareRequests(s,this.request)))===null||l===void 0?void 0:l.name),["baseUrl","apiIntegrationIdentifier"].some(s=>e.has(s))&&(this.api=void 0,this.initApi()),e.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","searchFilters","displayedFilters"].some(s=>e.has(s))&&this.updateFacets(),["query","uiLocale","contentLocale","searchFilters","displayedFilters","api"].some(s=>e.has(s))&&this.suggestManager.update(),["query","uiLocale","contentLocale","searchFilters"].some(s=>e.has(s))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run(()=>this.dispatchEvent(new Tn(this.request)))}initSearchData(){this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run(()=>{var e;(e=this.api)===null||e===void 0||e.getAvailableSearchLocales().then(o=>o.contentLocales).catch(()=>[]).then(o=>{this.availableContentLocales=o,this.availableContentLocalesInitialized=!0})}),this.updateFacetsDebouncer.run(()=>{this.retrieveFacetsFromSearch().then(()=>{this.facetsLoaded=!0,this.facetsInitialized=!0})},this.facetsInitialized?500:10)}updateFacets(){this.api&&(this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run(async()=>{await this.retrieveFacetsFromSearch(),this.facetsLoaded=!0,this.facetsInitialized=!0},this.facetsInitialized?500:10)):this.facets=[])}contentAvailableCallback(e){var o,i,n;if(super.contentAvailableCallback(e),e.has("displayFacets")&&this.displayFacets&&((o=this.floatingContainer)===null||o===void 0||o.focus()),this.scrollToFacet!=null&&this.facetsLoaded){(i=this.scrollingFiltersContainer)===null||i===void 0||i.scrollIndexIntoView(this.facets.findIndex(l=>l.key===this.scrollToFacet));let a=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);a&&(a.active=!0),this.scrollToFacet=void 0}}initApi(){this.api==null&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout(()=>this.initApi(),10))}async retrieveFacetsFromSearch(){var e;let o=new Map;await((e=this.api)===null||e===void 0?void 0:e.search({...this.request,query:""}).then(i=>i.facets.forEach(n=>{this.knownFacetLabels.set(n.key,n.label),o.set(n.key,n)})).catch(Ld)),this.facets=[];for(let i of this.facetsRequest)o.has(i.id)?this.facets.push(o.get(i.id)):this.knownFacetLabels.has(i.id)&&this.facets.push({key:i.id,label:this.knownFacetLabels.get(i.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(e){var o;e.key==="Escape"&&(this.displayFacets=!1,(o=this.filtersOpener)===null||o===void 0||o.focus())}setQuery(e){this.input&&(this.input.value=e),this.query=e}launchSearch(){if(this.query){let e=this.recentSearches.filter(o=>o.toLowerCase()!==this.query.toLowerCase()).filter((o,i)=>i<20);this.recentSearches=[this.query,...e],this.saveRecentSearches()}this.dispatchEvent(new _n(this.request)),this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var e;this.recentSearches=JSON.parse((e=window.localStorage.getItem(this.recentSearchesStorageKey))!==null&&e!==void 0?e:"[]")}saveRecentSearches(){let e=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,e),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:e,storageArea:window.localStorage,url:window.location.href}))}async connectedCallback(){super.connectedCallback(),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer),this.focusOnDisplay&&!ee.isTouchScreen&&await this.focusInput()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}updateSize(e){this.sizeCategory=e.detail.category}setFilter(e,o){let i=this.searchFilters.filter(n=>n.key!==e);this.facets.forEach(n=>{n.key===e&&(0,ee.flatDeep)(n.rootNodes,a=>a.childNodes).forEach(a=>a.selected=o.includes(a.value))}),o.length&&i.push({key:e,negative:!1,values:o}),this.searchFilters=i,this.scrollToFacet=e}setFiltersFromPreset(e){e!=null&&(e.contentLocale!=null&&(this.contentLocale=e.contentLocale),this.searchFilters=e.filters)}clearFilters(){this.facets.forEach(o=>(0,ee.flatDeep)(o.rootNodes,i=>i.childNodes).forEach(i=>i.selected=!1)),this.searchFilters=[];let e=this.facets[0];this.scrollToFacet=e?.key}querySelector(e){return this.shadowRoot.querySelector(e)}querySelectorAll(e){return this.shadowRoot.querySelectorAll(e)}renderDesktopFloatingMenu(){return this.forceMenuOpen?G.nothing:G.html`
|
|
2928
2928
|
<div class="ft-search-bar--floating-panel"
|
|
2929
2929
|
id="ft-search-bar-floating-panel"
|
|
2930
2930
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
2931
2931
|
part="floating-panel"
|
|
2932
2932
|
tabindex="-1">
|
|
2933
2933
|
${this.renderDesktopMenu()}
|
|
2934
|
-
</div>`}enableFocusReactionOnAnyUserInteraction(){var
|
|
2934
|
+
</div>`}enableFocusReactionOnAnyUserInteraction(){var e,o,i;(e=this.container)===null||e===void 0||e.addEventListener("blur",this.enableFocusReactionCallback),(o=this.container)===null||o===void 0||o.addEventListener("click",this.enableFocusReactionCallback),(i=this.container)===null||i===void 0||i.addEventListener("keyup",this.enableFocusReactionCallback)}enableFocusReaction(){var e,o,i;this.reactToFocus=!0,(e=this.container)===null||e===void 0||e.removeEventListener("blur",this.enableFocusReactionCallback),(o=this.container)===null||o===void 0||o.removeEventListener("click",this.enableFocusReactionCallback),(i=this.container)===null||i===void 0||i.removeEventListener("keyup",this.enableFocusReactionCallback)}reloadWhenUserSessionChanges(){var e;let{session:o}=D.getState();(0,ee.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,o?.profile)||(this.currentSession=o,this.initSearchData())}};L.elementDefinitions={"ft-accordion":St,"ft-accordion-item":it,"ft-button":ge,"ft-chip":ce,"ft-filter":j,"ft-filter-option":qe,"ft-icon":le,"ft-ripple":z,"ft-select":X,"ft-select-option":Ot,"ft-size-watcher":Ue,"ft-skeleton":qt,"ft-snap-scroll":he,"ft-tooltip":te,"ft-typography":q,"ft-radio-group":Te,"ft-radio":ye};L.styles=[_o,ic,nc,Ct.styles,wt.styles];U([(0,V.property)({type:Boolean})],L.prototype,"dense",void 0);U([(0,V.property)()],L.prototype,"mode",void 0);U([(0,V.property)({type:Boolean})],L.prototype,"forceMobileMenuOpen",void 0);U([(0,V.property)({type:Boolean})],L.prototype,"forceMenuOpen",void 0);U([(0,V.property)()],L.prototype,"baseUrl",void 0);U([(0,V.property)()],L.prototype,"apiIntegrationIdentifier",void 0);U([(0,V.property)()],L.prototype,"contentLocale",void 0);U([(0,V.state)()],L.prototype,"availableContentLocales",void 0);U([(0,V.state)()],L.prototype,"availableContentLocalesInitialized",void 0);U([(0,V.property)()],L.prototype,"uiLocale",void 0);U([(0,ee.jsonProperty)({})],L.prototype,"labels",void 0);U([(0,ee.jsonProperty)([])],L.prototype,"displayedFilters",void 0);U([(0,ee.jsonProperty)([])],L.prototype,"presets",void 0);U([(0,V.property)({type:String,reflect:!0})],L.prototype,"selectedPreset",void 0);U([(0,ee.jsonProperty)([])],L.prototype,"priors",void 0);U([(0,V.property)()],L.prototype,"searchRequestSerializer",void 0);U([(0,V.property)({type:Boolean})],L.prototype,"focusOnDisplay",void 0);U([(0,V.state)()],L.prototype,"searchFilters",void 0);U([(0,V.state)()],L.prototype,"sizeCategory",void 0);U([(0,V.state)()],L.prototype,"displayFacets",void 0);U([(0,V.state)()],L.prototype,"mobileMenuOpen",void 0);U([(0,V.state)()],L.prototype,"facets",void 0);U([(0,V.state)()],L.prototype,"facetsInitialized",void 0);U([(0,V.query)(".ft-search-bar--container")],L.prototype,"container",void 0);U([(0,V.query)(".ft-search-bar--filters-opener")],L.prototype,"filtersOpener",void 0);U([(0,V.query)(".ft-search-bar--floating-panel")],L.prototype,"floatingContainer",void 0);U([(0,V.query)("ft-snap-scroll.ft-search-bar--filters-container")],L.prototype,"scrollingFiltersContainer",void 0);U([(0,V.query)(".ft-search-bar--input")],L.prototype,"input",void 0);U([(0,V.state)()],L.prototype,"query",void 0);U([(0,V.state)()],L.prototype,"suggestions",void 0);U([(0,V.state)()],L.prototype,"recentSearches",void 0);U([(0,V.state)()],L.prototype,"scrollToFacet",void 0);U([(0,V.state)()],L.prototype,"api",void 0);U([(0,V.state)()],L.prototype,"reactToFocus",void 0);U([(0,V.state)()],L.prototype,"facetsLoaded",void 0);(0,cp.customElement)("ft-search-bar")(L);})();
|
|
2935
2935
|
/*! Bundled license information:
|
|
2936
2936
|
|
|
2937
2937
|
lit-html/lit-html.js:
|
|
@@ -2947,4 +2947,11 @@ lit-html/static.js:
|
|
|
2947
2947
|
* Copyright 2020 Google LLC
|
|
2948
2948
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2949
2949
|
*)
|
|
2950
|
+
|
|
2951
|
+
@lit/reactive-element/css-tag.js:
|
|
2952
|
+
(**
|
|
2953
|
+
* @license
|
|
2954
|
+
* Copyright 2019 Google LLC
|
|
2955
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
2956
|
+
*)
|
|
2950
2957
|
*/
|