@fluid-topics/ft-search-bar 1.1.2 → 1.1.4
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 +227 -227
- package/build/ft-search-bar.min.js +245 -245
- package/package.json +14 -14
|
@@ -17,35 +17,35 @@
|
|
|
17
17
|
.ft-size-watcher--local .ft-size-watcher--watcher {
|
|
18
18
|
width: 100%;
|
|
19
19
|
}
|
|
20
|
-
`;var c=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class p extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}class
|
|
20
|
+
`;var c=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class p extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}class f extends e.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=l.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new e.Debouncer}render(){return o.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(t){super.contentAvailableCallback(t),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=l.S:this.size<976?this.category=l.M:this.size<1024?this.category=l.L:this.size<1440?this.category=l.XL:this.category=l.XXL,this.dispatchEvent(new p(this.size,this.category)))}),this.debounceTimeout)}}
|
|
24
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),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=l.S:this.size<976?this.category=l.M:this.size<1024?this.category=l.L:this.size<1440?this.category=l.XL:this.category=l.XXL,this.dispatchEvent(new p(this.size,this.category)))}),this.debounceTimeout)}}f.elementDefinitions={},f.styles=s,c([i.property({type:Number})],f.prototype,"debounceTimeout",void 0),c([i.property({type:Boolean})],f.prototype,"local",void 0),c([i.property({type:Number,reflect:!0})],f.prototype,"size",void 0),c([i.property({type:String,reflect:!0})],f.prototype,"category",void 0),c([i.query(".ft-size-watcher--watcher")],f.prototype,"watcher",void 0),e.customElement("ft-size-watcher")(f);
|
|
25
25
|
/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
29
|
*/
|
|
30
|
-
const
|
|
30
|
+
const h=globalThis,d=h.trustedTypes,u=d?d.createPolicy("lit-html",{createHTML:t=>t}):void 0,g="$lit$",b=`lit$${(Math.random()+"").slice(9)}$`,y="?"+b,m=`<${y}>`,v=document,x=()=>v.createComment(""),$=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,w="[ \t\n\f\r]",k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,S=/-->/g,N=/>/g,C=RegExp(`>|${w}(?:([^\\s"'>=/]+)(${w}*=${w}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),I=/'/g,E=/"/g,L=/^(?:script|style|textarea|title)$/i,R=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),z=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),W=new WeakMap,B=v.createTreeWalker(v,129);function Z(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==u?u.createHTML(e):e}const F=(t,e)=>{const o=t.length-1,i=[];let r,a=2===e?"<svg>":"",n=k;for(let e=0;e<o;e++){const o=t[e];let l,s,c=-1,p=0;for(;p<o.length&&(n.lastIndex=p,s=n.exec(o),null!==s);)p=n.lastIndex,n===k?"!--"===s[1]?n=S:void 0!==s[1]?n=N:void 0!==s[2]?(L.test(s[2])&&(r=RegExp("</"+s[2],"g")),n=C):void 0!==s[3]&&(n=C):n===C?">"===s[0]?(n=r??k,c=-1):void 0===s[1]?c=-2:(c=n.lastIndex-s[2].length,l=s[1],n=void 0===s[3]?C:'"'===s[3]?E:I):n===E||n===I?n=C:n===S||n===N?n=k:(n=C,r=void 0);const f=n===C&&t[e+1].startsWith("/>")?" ":"";a+=n===k?o+m:c>=0?(i.push(l),o.slice(0,c)+g+o.slice(c)+b+f):o+b+(-2===c?e:f)}return[Z(t,a+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class K{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,a=0;const n=t.length-1,l=this.parts,[s,c]=F(t,e);if(this.el=K.createElement(s,o),B.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=B.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(g)){const e=c[a++],o=i.getAttribute(t).split(b),n=/([.?@])?(.*)/.exec(e);l.push({type:1,index:r,name:n[2],strings:o,ctor:"."===n[1]?M:"?"===n[1]?j:"@"===n[1]?T:P}),i.removeAttribute(t)}else t.startsWith(b)&&(l.push({type:6,index:r}),i.removeAttribute(t));if(L.test(i.tagName)){const t=i.textContent.split(b),e=t.length-1;if(e>0){i.textContent=d?d.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],x()),B.nextNode(),l.push({type:2,index:++r});i.append(t[e],x())}}}else if(8===i.nodeType)if(i.data===y)l.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(b,t+1));)l.push({type:7,index:r}),t+=b.length-1}r++}}static createElement(t,e){const o=v.createElement("template");return o.innerHTML=t,o}}function D(t,e,o=t,i){if(e===z)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const a=$(e)?void 0:e._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=D(t,r._$AS(t,e.values),r,i)),e}class A{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??v).importNode(e,!0);B.currentNode=i;let r=B.nextNode(),a=0,n=0,l=o[0];for(;void 0!==l;){if(a===l.index){let e;2===l.type?e=new H(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new G(r,this,t)),this._$AV.push(e),l=o[++n]}a!==l?.index&&(r=B.nextNode(),a++)}return B.currentNode=v,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class H{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=D(this,t,e),$(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==z&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>O(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==U&&$(this._$AH)?this._$AA.nextSibling.data=t:this.$(v.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=K.createElement(Z(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new A(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=W.get(t.strings);return void 0===e&&W.set(t.strings,e=new K(t)),e}T(t){O(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new H(this.k(x()),this.k(x()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class P{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=U}_$AI(t,e=this,o,i){const r=this.strings;let a=!1;if(void 0===r)t=D(this,t,e,0),a=!$(t)||t!==this._$AH&&t!==z,a&&(this._$AH=t);else{const i=t;let n,l;for(t=r[0],n=0;n<r.length-1;n++)l=D(this,i[o+n],e,n),l===z&&(l=this._$AH[n]),a||=!$(l)||l!==this._$AH[n],l===U?t=U:t!==U&&(t+=(l??"")+r[n+1]),this._$AH[n]=l}a&&!i&&this.O(t)}O(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class M extends P{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===U?void 0:t}}class j extends P{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==U)}}class T extends P{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=D(this,t,e,0)??U)===z)return;const o=this._$AH,i=t===U&&o!==U||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==U&&(o===U||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class G{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){D(this,t)}}const _=h.litHtmlPolyfillSupport;_?.(K,H),(h.litHtmlVersions??=[]).push("3.1.0");
|
|
31
31
|
/**
|
|
32
32
|
* @license
|
|
33
33
|
* Copyright 2020 Google LLC
|
|
34
34
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
35
35
|
*/
|
|
36
|
-
const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litStatic$:t,r:V}),X=new Map,J=(t=>(e,...o)=>{const i=o.length;let r,a;const n=[],l=[];let s,c=0,p=!1;for(;c<i;){for(s=e[c];c<i&&void 0!==(a=o[c],r=q(a));)s+=r+e[++c],p=!0;c!==i&&l.push(a),n.push(s),c++}if(c===i&&n.push(e[i]),p){const t=n.join("$$lit$$");void 0===(e=X.get(t))&&(n.raw=n,X.set(t,e=n)),o=l}return t(e,...o)})(R);var Q;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Q||(Q={}));const tt=t=>"string"==typeof t?o.unsafeCSS(t):t;class et{static create(t,e,i,r){const a=t=>tt(null!=t?t:r),n=o.css`var(${tt(t)}, ${a(r)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=r,n.defaultCssValue=a,n.get=e=>o.css`var(${tt(t)}, ${a(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,e,i,r){const a=t=>i.get(null!=t?t:r),n=o.css`var(${tt(t)}, ${a(r)})`;return n.name=t,n.description=e,n.category=i.category,n.fallbackVariable=i,n.defaultValue=r,n.defaultCssValue=a,n.get=e=>o.css`var(${tt(t)}, ${a(e)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),n}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):tt(null!=e?e:t.lastResortDefaultValue()),r=o.css`var(${tt(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=i,r.get=e=>o.css`var(${tt(t.name)}, ${i(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const ot={colorWhite:et.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:et.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:et.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:et.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:et.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:et.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:et.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:et.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:et.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:et.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:et.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:et.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:et.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:et.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:et.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:et.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:et.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:et.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:et.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:et.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:et.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:et.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:et.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:et.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:et.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:et.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:et.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:et.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:et.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:et.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:et.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:et.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:et.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:et.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:et.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:et.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:et.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:et.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:et.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:et.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:et.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:et.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:et.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:et.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:et.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:et.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:et.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:et.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:et.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:et.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:et.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:et.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:et.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:et.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:et.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:et.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:et.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:et.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:et.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:et.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:et.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:et.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:et.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:et.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:et.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:et.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:et.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:et.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:et.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:et.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:et.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:et.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:et.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:et.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:et.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:et.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:et.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:et.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:et.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:et.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:et.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:et.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:et.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:et.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:et.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:et.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:et.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:et.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:et.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:et.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:et.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:et.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:et.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:et.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:et.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:et.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:et.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:et.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:et.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:et.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:et.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:et.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:et.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:et.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:et.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:et.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:et.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:et.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:et.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:et.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:et.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:et.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:et.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:et.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:et.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:et.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:et.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:et.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:et.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:et.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:et.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:et.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:et.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:et.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:et.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:et.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:et.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:et.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:et.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:et.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:et.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:et.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:et.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:et.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:et.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:et.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:et.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:et.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:et.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:et.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:et.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:et.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:et.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:et.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:et.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:et.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:et.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:et.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:et.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:et.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:et.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:et.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:et.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:et.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:et.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:et.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:et.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:et.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:et.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:et.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:et.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:et.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:et.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:et.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:et.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:et.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:et.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:et.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:et.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:et.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:et.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:et.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:et.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:et.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:et.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:et.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:et.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:et.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:et.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:et.create("--ft-icon-size-6","","SIZE","48px"),opacity0:et.create("--ft-opacity-0","","NUMBER","0"),opacity8:et.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:et.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:et.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:et.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:et.create("--ft-opacity-80","","NUMBER","0.8")},it={display:{fontFamily:et.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:et.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:et.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:et.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:et.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:et.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:et.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:et.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:et.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:et.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:et.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:et.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:et.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:et.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:et.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:et.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:et.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:et.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:et.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:et.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:et.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:et.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:et.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:et.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:et.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:et.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:et.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:et.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:et.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:et.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:et.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:et.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:et.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:et.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:et.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:et.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:et.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:et.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:et.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:et.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:et.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:et.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:et.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:et.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:et.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:et.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:et.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:et.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:et.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:et.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:et.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:et.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:et.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:et.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:et.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:et.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:et.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:et.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:et.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:et.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:et.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:et.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:et.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:et.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:et.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:et.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:et.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:et.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:et.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:et.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:et.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:et.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:et.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:et.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:et.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:et.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:et.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:et.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:et.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:et.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:et.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:et.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:et.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:et.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:et.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:et.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:et.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:et.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:et.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:et.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:et.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:et.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:et.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:et.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:et.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:et.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:et.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:et.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:et.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:et.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:et.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:et.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:et.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:et.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:et.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:et.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:et.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:et.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:et.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:et.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:et.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:et.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},rt={backgroundActionPrimary:et.extend("--ft-background-action-primary","Used as backgorund of primary action components.",ot.colorBrand0),backgroundErrorPrimary:et.extend("--ft-background-error-primary","Used as background of error components.",ot.colorRed0),backgroundErrorSubtle:et.extend("--ft-background-error-subtle","Used as background of subtle error components.",ot.colorRed10),backgroundInfoPrimary:et.extend("--ft-background-info-primary","Used as background of information components.",ot.colorCyan200),backgroundInfoSubtle:et.extend("--ft-background-info-subtle","Used as background of subtle information components.",ot.colorCyan10),backgroundWarningPrimary:et.extend("--ft-background-warning-primary","Used as background of warning components.",ot.colorOrange300),backgroundWarningSubtle:et.extend("--ft-background-warning-subtle","Used as background of subtle information components.",ot.colorOrange10),backgroundSuccessPrimary:et.extend("--ft-background-success-primary","Used as background of success components.",ot.colorGreen200),backgroundSuccessSubtle:et.extend("--ft-background-success-subtle","Used as background of subtle success components.",ot.colorGreen10),backgroundGlobalSurface:et.extend("--ft-background-global-surface","Used as app background.",ot.colorWhite),backgroundGlobalOnSurface:et.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",ot.colorGray10),backgroundGlobalOnSurfaceDark:et.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",ot.colorGray30),contentActionPrimary:et.extend("--ft-content-action-primary","Used on label of primary action on light surface.",ot.colorBrand0),contentWarningPrimary:et.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",ot.colorOrange300),contentWarningIconOnly:et.extend("--ft-content-warning-icon-only","Used on warning status icons alone",ot.colorOrange0),contentErrorPrimary:et.extend("--ft-content-error-primary","Used on label of error messages on light surface.",ot.colorRed0),contentErrorIconOnly:et.extend("--ft-content-error-icon-only","Used on error status icons alone",ot.colorRed0),contentInfoPrimary:et.extend("--ft-content-info-primary","Used on label of information messages on light surface.",ot.colorCyan200),contentInfoIconOnly:et.extend("--ft-content-info-icon-only","Used on info status icons alone",ot.colorCyan0),contentSuccessIconOnly:et.extend("--ft-content-success-icon-only","Used on success status icons alone",ot.colorGreen0),contentSuccessPrimary:et.extend("--ft-content-success-primary","Used on label of success messages on light surface.",ot.colorGreen200),contentGlobalPrimary:et.extend("--ft-content-global-primary","Used for main content on the page.",ot.colorGray500),contentGlobalSecondary:et.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",ot.colorGray200),contentGlobalSubtle:et.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",ot.colorGray0),contentGlobalOnColor:et.extend("--ft-content-global-on-color","Used for content on a dominant color.",ot.colorWhite),borderActionPrimary:et.extend("--ft-border-action-primary","Used as border for primary action components.",ot.colorBrand0),borderActionFocusRing:et.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",ot.colorCyan0),borderWarningPrimary:et.extend("--ft-border-warning-primary","Used as border for warning components.",ot.colorOrange30),borderSuccessPrimary:et.extend("--ft-border-success-primary","Used as border for success components.",ot.colorGreen30),borderErrorPrimary:et.extend("--ft-border-error-primary","Used as border for error components.",ot.colorRed30),borderInfoPrimary:et.extend("--ft-border-info-primary","Used as border for information components.",ot.colorCyan30),borderGlobalSubtle:et.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",ot.colorGray30),borderGlobalPrimary:et.extend("--ft-border-global-primary","Used as border for element like input.",ot.colorGray50),borderInputPrimary:et.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",ot.colorGray80)},at={largeHeight:et.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:et.extend("--ft-button-large-horizontal-padding","",ot.spacing4),largeGap:et.extend("--ft-button-large-gap","",ot.spacing2),largeBorderRadius:et.extend("--ft-button-large-border-radius","",ot.borderRadiusS),largeIconSize:et.extend("--ft-button-large-icon-size","",ot.iconSize3),largeBorderWidth:et.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:et.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:et.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:et.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:et.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:et.extend("--ft-button-small-horizontal-padding","",ot.spacing3),smallGap:et.extend("--ft-button-small-gap","",ot.spacing2),smallBorderRadius:et.extend("--ft-button-small-border-radius","",ot.borderRadiusS),smallIconSize:et.extend("--ft-button-small-icon-size","",ot.iconSize2),smallBorderWidth:et.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:et.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:et.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:et.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:et.extend("--ft-button-primary-background-color","",rt.backgroundActionPrimary),primaryColor:et.extend("--ft-button-primary-color","",rt.contentGlobalOnColor),primaryIconColor:et.extend("--ft-button-primary-icon-color","",rt.contentGlobalOnColor),primaryStateLayerColor:et.extend("--ft-button-primary-state-layer-color","",rt.contentGlobalOnColor),primaryStateLayerOpacityHover:et.extend("--ft-button-primary-state-layer-opacity-hover","",ot.opacity16),primaryStateLayerOpacityFocus:et.extend("--ft-button-primary-state-layer-opacity-focus","",ot.opacity16),primaryStateLayerOpacityActive:et.extend("--ft-button-primary-state-layer-opacity-active","",ot.opacity24),primaryComponentOpacityDisabled:et.extend("--ft-button-primary-component-opacity-disabled","",ot.opacity40),focusFocusRingColor:et.extend("--ft-button-focus-focus-ring-color","",rt.borderActionFocusRing),tertiaryBackgroundColor:et.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:et.extend("--ft-button-tertiary-color","",rt.contentActionPrimary),tertiaryIconColor:et.extend("--ft-button-tertiary-icon-color","",rt.contentActionPrimary),tertiaryStateLayerColor:et.extend("--ft-button-tertiary-state-layer-color","",rt.contentActionPrimary),tertiaryStateLayerOpacityHover:et.extend("--ft-button-tertiary-state-layer-opacity-hover","",ot.opacity8),tertiaryStateLayerOpacityFocus:et.extend("--ft-button-tertiary-state-layer-opacity-focus","",ot.opacity8),tertiaryStateLayerOpacityActive:et.extend("--ft-button-tertiary-state-layer-opacity-active","",ot.opacity16),tertiaryComponentOpacityDisabled:et.extend("--ft-button-tertiary-component-opacity-disabled","",ot.opacity40),secondaryBackgroundColor:et.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:et.extend("--ft-button-secondary-color","",rt.contentActionPrimary),secondaryIconColor:et.extend("--ft-button-secondary-icon-color","",rt.contentActionPrimary),secondaryStateLayerColor:et.extend("--ft-button-secondary-state-layer-color","",rt.contentActionPrimary),secondaryStateLayerOpacityHover:et.extend("--ft-button-secondary-state-layer-opacity-hover","",ot.opacity8),secondaryStateLayerOpacityFocus:et.extend("--ft-button-secondary-state-layer-opacity-focus","",ot.opacity8),secondaryStateLayerOpacityActive:et.extend("--ft-button-secondary-state-layer-opacity-active","",ot.opacity16),secondaryComponentOpacityDisabled:et.extend("--ft-button-secondary-component-opacity-disabled","",ot.opacity40),secondaryBorderColor:et.extend("--ft-button-secondary-border-color","",rt.borderActionPrimary),neutralBackgroundColor:et.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:et.extend("--ft-button-neutral-icon-color","",rt.contentGlobalSecondary),neutralColor:et.extend("--ft-button-neutral-color","",rt.contentGlobalSecondary),neutralStateLayerColor:et.extend("--ft-button-neutral-state-layer-color","",rt.contentGlobalSecondary),neutralStateLayerOpacityHover:et.extend("--ft-button-neutral-state-layer-opacity-hover","",ot.opacity8),neutralStateLayerOpacityFocus:et.extend("--ft-button-neutral-state-layer-opacity-focus","",ot.opacity8),neutralStateLayerOpacityActive:et.extend("--ft-button-neutral-state-layer-opacity-active","",ot.opacity16),neutralComponentOpacityDisabled:et.extend("--ft-button-neutral-component-opacity-disabled","",ot.opacity40)};et.extend("--ft-tabs-top-left-border-radius","",ot.borderRadiusS),et.extend("--ft-tabs-top-right-border-radius","",ot.borderRadiusS),et.extend("--ft-tabs-label-horizontal-padding","",ot.spacing4),et.extend("--ft-tabs-label-vertical-padding","",ot.spacing3),et.extend("--ft-tabs-label-gap","",ot.spacing1),et.extend("--ft-switch-group-horizontal-padding","",ot.spacing1),et.extend("--ft-switch-group-vertical-padding","",ot.spacing1),et.extend("--ft-switch-group-gap","",ot.spacing1),et.extend("--ft-switch-group-background-color","",rt.backgroundGlobalSurface),et.extend("--ft-switch-group-border-color","",rt.borderGlobalSubtle),et.create("--ft-switch-group-border-radius","","SIZE","6px"),et.extend("--ft-switch-label-horizontal-padding","",ot.spacing2),et.extend("--ft-switch-label-vertical-padding","",ot.spacing1),et.extend("--ft-switch-icon-horizontal-padding","",ot.spacing1),et.extend("--ft-switch-icon-vertical-padding","",ot.spacing1),et.create("--ft-switch-focus-outline-width","","SIZE","2px"),et.extend("--ft-switch-focus-focus-ring-color","",rt.borderActionFocusRing),et.extend("--ft-switch-option-border-radius","",ot.borderRadiusS),et.extend("--ft-switch-off-state-layer-opacity-hover","",ot.opacity8),et.extend("--ft-switch-off-state-layer-opacity-focus","",ot.opacity8),et.extend("--ft-switch-off-state-layer-opacity-active","",ot.opacity16),et.extend("--ft-switch-off-component-opacity-disabled","",ot.opacity40),et.extend("--ft-switch-off-color","",rt.contentGlobalSubtle),et.extend("--ft-switch-off-state-layer-color","",rt.contentGlobalSubtle),et.extend("--ft-chart-1-light","for area color charts",ot.colorBrand40),et.extend("--ft-chart-1-base","for line charts",ot.colorBrand0),et.extend("--ft-chart-2-light","for area color charts",ot.colorYellow60),et.extend("--ft-chart-2-base","for line charts",ot.colorYellow100),et.extend("--ft-chart-3-light","",ot.colorUltramarine40),et.extend("--ft-chart-3-base","",ot.colorUltramarine70),et.extend("--ft-chart-4-light","",ot.colorCyan50),et.extend("--ft-chart-4-base","",ot.colorCyan100),et.extend("--ft-chart-5-light","",ot.colorRed40),et.extend("--ft-chart-5-base","",ot.colorRed60),et.extend("--ft-chart-6-light","",ot.colorGreen40),et.extend("--ft-chart-6-base","",ot.colorGreen70),et.extend("--ft-chart-7-light","",ot.colorOrange70),et.extend("--ft-chart-7-base","",ot.colorOrange100),et.extend("--ft-chart-8-light","",ot.colorAvocado70),et.extend("--ft-chart-8-base","",ot.colorAvocado200),et.extend("--ft-chart-9-light","",ot.colorBrown50),et.extend("--ft-chart-9-base","",ot.colorBrown200),et.extend("--ft-chart-10-light","",ot.colorGray50),et.extend("--ft-chart-10-base","",ot.colorGray80),et.extend("--ft-chart-monochrome-10","",ot.colorBrand10),et.extend("--ft-chart-monochrome-20","",ot.colorBrand20),et.extend("--ft-chart-monochrome-30","",ot.colorBrand40),et.extend("--ft-chart-monochrome-40","",ot.colorBrand60),et.extend("--ft-chart-monochrome-50","",ot.colorBrand0),et.extend("--ft-chart-monochrome-60","",ot.colorBrand200),et.extend("--ft-chip-large-horizontal-padding","",ot.spacing4),et.extend("--ft-chip-large-vertical-padding","",ot.spacing2),et.extend("--ft-chip-large-gap","",ot.spacing1),et.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),et.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),et.extend("--ft-chip-large-border-radius","",ot.borderRadiusPill),et.create("--ft-chip-large-border-width","","SIZE","1px"),et.extend("--ft-chip-large-icon-size","",ot.iconSize3),et.extend("--ft-chip-medium-horizontal-padding","",ot.spacing3),et.extend("--ft-chip-medium-vertical-padding","",ot.spacing1),et.extend("--ft-chip-medium-gap","",ot.spacing1),et.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),et.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),et.extend("--ft-chip-medium-border-radius","",ot.borderRadiusPill),et.create("--ft-chip-medium-border-width","","SIZE","1px"),et.extend("--ft-chip-medium-icon-size","",ot.iconSize2),et.extend("--ft-chip-small-horizontal-padding","",ot.spacing2),et.extend("--ft-chip-small-vertical-padding","",ot.spacing05),et.extend("--ft-chip-small-gap","",ot.spacing1),et.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),et.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),et.extend("--ft-chip-small-border-radius","",ot.borderRadiusPill),et.create("--ft-chip-small-border-width","","SIZE","1px"),et.extend("--ft-chip-small-icon-size","",ot.iconSize1),et.extend("--ft-chip-neutral-background-color","",rt.backgroundGlobalOnSurface),et.extend("--ft-chip-neutral-color","",rt.contentGlobalPrimary),et.extend("--ft-chip-neutral-border-color","",rt.borderGlobalSubtle),et.extend("--ft-chip-info-background-color","",rt.backgroundInfoSubtle),et.extend("--ft-chip-info-color","",rt.contentInfoPrimary),et.extend("--ft-chip-info-border-color","",rt.borderInfoPrimary),et.extend("--ft-chip-success-background-color","",rt.backgroundSuccessSubtle),et.extend("--ft-chip-success-color","",rt.contentSuccessPrimary),et.extend("--ft-chip-success-border-color","",rt.borderSuccessPrimary),et.extend("--ft-chip-warning-background-color","",rt.backgroundWarningSubtle),et.extend("--ft-chip-warning-color","",rt.contentWarningPrimary),et.extend("--ft-chip-warning-border-color","",rt.borderWarningPrimary),et.extend("--ft-chip-error-background-color","",rt.backgroundErrorSubtle),et.extend("--ft-chip-error-color","",rt.contentErrorPrimary),et.extend("--ft-chip-error-border-color","",rt.borderErrorPrimary),et.create("--ft-notice-border-width","","SIZE","1px"),et.extend("--ft-notice-horizontal-padding","",ot.spacing2),et.extend("--ft-notice-vertical-padding","",ot.spacing1),et.extend("--ft-notice-border-radius","",ot.borderRadiusS),et.extend("--ft-notice-gap","",ot.spacing2),et.extend("--ft-notice-icon-size","",ot.iconSize3),et.extend("--ft-notice-info-background-color","",rt.backgroundInfoSubtle),et.extend("--ft-notice-info-border-color","",rt.borderInfoPrimary),et.extend("--ft-notice-info-color","",rt.contentInfoPrimary),et.extend("--ft-notice-warning-background-color","",rt.backgroundWarningSubtle),et.extend("--ft-notice-warning-border-color","",rt.borderWarningPrimary),et.extend("--ft-notice-warning-color","",rt.contentWarningPrimary),et.extend("--ft-checkbox-label-color","",rt.contentGlobalPrimary),et.extend("--ft-checkbox-checked-background-color","",rt.contentActionPrimary),et.extend("--ft-checkbox-checked-state-layer-color","",rt.contentActionPrimary),et.extend("--ft-checkbox-checked-color","",rt.contentGlobalOnColor),et.extend("--ft-checkbox-checked-state-layer-opacity-hover","",ot.opacity16),et.extend("--ft-checkbox-checked-state-layer-opacity-focus","",ot.opacity16),et.extend("--ft-checkbox-checked-state-layer-opacity-active","",ot.opacity24),et.extend("--ft-checkbox-checked-component-opacity-disabled","",ot.opacity40),et.extend("--ft-checkbox-unchecked-border-color","",ot.colorGray80),et.extend("--ft-checkbox-unchecked-state-layer-color","",ot.colorGray80),et.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",ot.opacity16),et.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",ot.opacity16),et.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",ot.opacity24),et.extend("--ft-checkbox-unchecked-component-opacity-disabled","",ot.opacity40),et.extend("--ft-checkbox-focus-focus-ring-color","",rt.borderActionFocusRing),et.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),et.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),et.extend("--ft-checkbox-gap","",ot.spacing3),et.extend("--ft-toggle-off-state-layer-opacity-hover","",ot.opacity16),et.extend("--ft-toggle-off-state-layer-opacity-focus","",ot.opacity16),et.extend("--ft-toggle-off-state-layer-opacity-active","",ot.opacity24),et.extend("--ft-toggle-off-component-opacity-disabled","",ot.opacity40),et.extend("--ft-toggle-off-background-color","",rt.contentGlobalSubtle),et.extend("--ft-toggle-off-icon-color","",rt.contentGlobalSubtle),et.extend("--ft-toggle-off-state-layer-color","",rt.contentGlobalSubtle),et.extend("--ft-toggle-on-state-layer-opacity-hover","",ot.opacity16),et.extend("--ft-toggle-on-state-layer-opacity-focus","",ot.opacity16),et.extend("--ft-toggle-on-state-layer-opacity-active","",ot.opacity24),et.extend("--ft-toggle-on-component-opacity-disabled","",ot.opacity40),et.extend("--ft-toggle-on-background-color","",rt.contentActionPrimary),et.extend("--ft-toggle-on-icon-color","",rt.contentActionPrimary),et.extend("--ft-toggle-on-state-layer-color","",rt.contentActionPrimary),et.extend("--ft-toggle-label-color","",rt.contentGlobalPrimary),et.extend("--ft-toggle-focus-focus-ring-color","",rt.borderActionFocusRing),et.extend("--ft-toggle-gap","",ot.spacing3),et.extend("--ft-radio-label-color","",rt.contentGlobalPrimary),et.extend("--ft-radio-selected-color","",rt.contentActionPrimary),et.extend("--ft-radio-selected-state-layer-color","",rt.contentActionPrimary),et.extend("--ft-radio-selected-state-layer-opacity-hover","",ot.opacity16),et.extend("--ft-radio-selected-state-layer-opacity-focus","",ot.opacity16),et.extend("--ft-radio-selected-state-layer-opacity-active","",ot.opacity24),et.extend("--ft-radio-selected-component-opacity-disabled","",ot.opacity40),et.extend("--ft-radio-unselected-state-layer-color","",ot.colorGray80),et.extend("--ft-radio-unselected-state-layer-opacity-hover","",ot.opacity16),et.extend("--ft-radio-unselected-state-layer-opacity-focus","",ot.opacity16),et.extend("--ft-radio-unselected-state-layer-opacity-active","",ot.opacity24),et.extend("--ft-radio-unselected-component-opacity-disabled","",ot.opacity40),et.extend("--ft-radio-focus-focus-ring-color","",rt.borderActionFocusRing),et.create("--ft-radio-focus-outline-offset","","SIZE","3px"),et.create("--ft-radio-focus-outline-width","","SIZE","2px"),et.extend("--ft-radio-gap","",ot.spacing3),et.extend("--ft-notification-icon-size","",ot.iconSize4),et.extend("--ft-notification-horizontal-padding","",ot.spacing4),et.extend("--ft-notification-vertical-padding","",ot.spacing4),et.extend("--ft-notification-info-background-color","",rt.backgroundInfoSubtle),et.extend("--ft-notification-info-color","",rt.contentInfoPrimary),et.extend("--ft-notification-info-border-color","",rt.borderInfoPrimary),et.extend("--ft-notification-success-background-color","",rt.backgroundSuccessSubtle),et.extend("--ft-notification-success-color","",rt.contentSuccessPrimary),et.extend("--ft-notification-success-border-color","",rt.borderSuccessPrimary),et.extend("--ft-notification-warning-background-color","",rt.backgroundWarningSubtle),et.extend("--ft-notification-warning-color","",rt.contentWarningPrimary),et.extend("--ft-notification-warning-border-color","",rt.borderWarningPrimary),et.extend("--ft-notification-error-background-color","",rt.backgroundErrorSubtle),et.extend("--ft-notification-error-color","",rt.contentErrorPrimary),et.extend("--ft-notification-error-border-color","",rt.borderErrorPrimary),et.extend("--ft-notification-border-radius","",ot.borderRadiusPill),et.create("--ft-notification-border-width","","SIZE","1px"),et.extend("--ft-notification-gap-leading","",ot.spacing2),et.extend("--ft-notification-gap-trailing","",ot.spacing8);const nt=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.titleFont),lt=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.contentFont),st={fontFamily:lt,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ct=e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",nt),pt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",st.fontSize,"20px"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",st.fontWeight,"normal"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",st.letterSpacing,"0.15px"),dt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",st.lineHeight,"1.2"),ut=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",st.textTransform,"inherit"),bt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",nt),gt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",st.fontSize,"14px"),yt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",st.fontWeight,"normal"),mt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",st.letterSpacing,"0.105px"),vt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",st.lineHeight,"1.7"),xt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",st.textTransform,"inherit"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",lt),Ot=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",st.fontSize,"16px"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",st.fontWeight,"600"),kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",st.letterSpacing,"0.144px"),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",st.lineHeight,"1.5"),Nt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",st.textTransform,"inherit"),Ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",lt),It=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",st.fontSize,"14px"),Et=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",st.fontWeight,"normal"),Lt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",st.letterSpacing,"0.098px"),Rt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",st.lineHeight,"1.7"),zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",st.textTransform,"inherit"),Ut={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",lt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",st.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",st.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",st.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",st.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",st.textTransform,"inherit")},Wt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",lt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",st.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",st.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",st.letterSpacing,"0.252px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",st.lineHeight,"1.4"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",st.textTransform,"inherit")},Bt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",lt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",st.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",st.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",st.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",st.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",st.textTransform,"inherit")},Zt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",lt),Kt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",st.fontSize,"10px"),Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",st.fontWeight,"normal"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",st.letterSpacing,"0.33px"),At=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",st.lineHeight,"1.6"),Ht=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",st.textTransform,"inherit"),Pt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",lt),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",st.fontSize,"10px"),jt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",st.fontWeight,"normal"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",st.letterSpacing,"1.5px"),Gt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",st.lineHeight,"1.6"),_t=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",st.textTransform,"uppercase"),Vt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",lt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",st.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",st.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",st.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",st.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",st.textTransform,"uppercase")},qt=o.css`
|
|
36
|
+
const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litStatic$:t,r:V}),X=new Map,J=(t=>(e,...o)=>{const i=o.length;let r,a;const n=[],l=[];let s,c=0,p=!1;for(;c<i;){for(s=e[c];c<i&&void 0!==(a=o[c],r=q(a));)s+=r+e[++c],p=!0;c!==i&&l.push(a),n.push(s),c++}if(c===i&&n.push(e[i]),p){const t=n.join("$$lit$$");void 0===(e=X.get(t))&&(n.raw=n,X.set(t,e=n)),o=l}return t(e,...o)})(R);var Q;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Q||(Q={}));const tt=t=>"string"==typeof t?o.unsafeCSS(t):t;class et{static create(t,e,i,r){const a=t=>tt(null!=t?t:r),n=o.css`var(${tt(t)}, ${a(r)})`;return n.name=t,n.description=e,n.category=i,n.defaultValue=r,n.defaultCssValue=a,n.get=e=>o.css`var(${tt(t)}, ${a(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,e,i,r){const a=t=>i.get(null!=t?t:r),n=o.css`var(${tt(t)}, ${a(r)})`;return n.name=t,n.description=e,n.category=i.category,n.fallbackVariable=i,n.defaultValue=r,n.defaultCssValue=a,n.get=e=>o.css`var(${tt(t)}, ${a(e)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),n}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):tt(null!=e?e:t.lastResortDefaultValue()),r=o.css`var(${tt(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=i,r.get=e=>o.css`var(${tt(t.name)}, ${i(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const ot={colorWhite:et.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:et.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:et.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:et.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:et.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:et.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:et.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:et.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:et.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:et.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:et.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:et.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:et.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:et.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:et.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:et.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:et.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:et.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:et.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:et.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:et.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:et.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:et.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:et.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:et.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:et.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:et.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:et.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:et.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:et.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:et.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:et.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:et.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:et.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:et.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:et.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:et.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:et.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:et.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:et.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:et.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:et.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:et.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:et.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:et.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:et.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:et.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:et.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:et.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:et.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:et.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:et.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:et.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:et.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:et.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:et.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:et.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:et.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:et.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:et.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:et.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:et.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:et.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:et.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:et.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:et.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:et.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:et.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:et.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:et.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:et.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:et.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:et.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:et.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:et.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:et.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:et.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:et.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:et.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:et.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:et.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:et.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:et.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:et.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:et.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:et.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:et.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:et.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:et.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:et.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:et.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:et.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:et.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:et.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:et.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:et.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:et.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:et.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:et.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:et.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:et.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:et.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:et.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:et.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:et.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:et.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:et.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:et.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:et.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:et.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:et.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:et.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:et.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:et.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:et.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:et.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:et.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:et.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:et.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:et.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:et.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:et.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:et.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:et.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:et.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:et.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:et.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:et.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:et.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:et.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:et.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:et.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:et.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:et.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:et.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:et.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:et.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:et.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:et.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:et.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:et.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:et.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:et.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:et.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:et.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:et.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:et.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:et.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:et.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:et.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:et.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:et.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:et.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:et.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:et.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:et.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:et.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:et.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:et.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:et.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:et.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:et.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:et.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:et.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:et.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:et.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:et.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:et.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:et.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:et.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:et.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:et.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:et.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:et.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:et.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:et.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:et.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:et.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:et.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:et.create("--ft-icon-size-6","","SIZE","48px"),opacity0:et.create("--ft-opacity-0","","NUMBER","0"),opacity8:et.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:et.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:et.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:et.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:et.create("--ft-opacity-80","","NUMBER","0.8")},it={display:{fontFamily:et.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:et.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:et.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:et.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:et.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:et.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:et.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:et.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:et.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:et.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:et.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:et.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:et.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:et.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:et.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:et.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:et.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:et.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:et.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:et.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:et.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:et.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:et.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:et.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:et.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:et.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:et.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:et.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:et.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:et.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:et.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:et.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:et.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:et.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:et.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:et.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:et.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:et.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:et.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:et.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:et.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:et.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:et.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:et.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:et.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:et.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:et.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:et.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:et.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:et.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:et.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:et.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:et.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:et.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:et.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:et.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:et.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:et.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:et.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:et.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:et.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:et.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:et.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:et.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:et.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:et.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:et.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:et.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:et.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:et.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:et.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:et.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:et.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:et.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:et.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:et.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:et.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:et.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:et.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:et.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:et.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:et.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:et.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:et.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:et.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:et.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:et.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:et.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:et.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:et.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:et.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:et.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:et.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:et.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:et.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:et.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:et.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:et.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:et.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:et.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:et.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:et.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:et.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:et.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:et.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:et.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:et.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:et.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:et.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:et.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:et.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:et.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:et.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:et.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:et.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:et.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:et.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},rt={backgroundActionPrimary:et.extend("--ft-background-action-primary","Used as backgorund of primary action components.",ot.colorBrand0),backgroundErrorPrimary:et.extend("--ft-background-error-primary","Used as background of error components.",ot.colorRed0),backgroundErrorSubtle:et.extend("--ft-background-error-subtle","Used as background of subtle error components.",ot.colorRed10),backgroundInfoPrimary:et.extend("--ft-background-info-primary","Used as background of information components.",ot.colorCyan200),backgroundInfoSubtle:et.extend("--ft-background-info-subtle","Used as background of subtle information components.",ot.colorCyan10),backgroundWarningPrimary:et.extend("--ft-background-warning-primary","Used as background of warning components.",ot.colorOrange300),backgroundWarningSubtle:et.extend("--ft-background-warning-subtle","Used as background of subtle information components.",ot.colorOrange10),backgroundSuccessPrimary:et.extend("--ft-background-success-primary","Used as background of success components.",ot.colorGreen200),backgroundSuccessSubtle:et.extend("--ft-background-success-subtle","Used as background of subtle success components.",ot.colorGreen10),backgroundGlobalSurface:et.extend("--ft-background-global-surface","Used as app background.",ot.colorWhite),backgroundGlobalOnSurface:et.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",ot.colorGray10),backgroundGlobalOnSurfaceDark:et.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",ot.colorGray30),contentActionPrimary:et.extend("--ft-content-action-primary","Used on label of primary action on light surface.",ot.colorBrand0),contentWarningPrimary:et.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",ot.colorOrange300),contentWarningIconOnly:et.extend("--ft-content-warning-icon-only","Used on warning status icons alone",ot.colorOrange0),contentErrorPrimary:et.extend("--ft-content-error-primary","Used on label of error messages on light surface.",ot.colorRed0),contentErrorIconOnly:et.extend("--ft-content-error-icon-only","Used on error status icons alone",ot.colorRed0),contentInfoPrimary:et.extend("--ft-content-info-primary","Used on label of information messages on light surface.",ot.colorCyan200),contentInfoIconOnly:et.extend("--ft-content-info-icon-only","Used on info status icons alone",ot.colorCyan0),contentSuccessIconOnly:et.extend("--ft-content-success-icon-only","Used on success status icons alone",ot.colorGreen0),contentSuccessPrimary:et.extend("--ft-content-success-primary","Used on label of success messages on light surface.",ot.colorGreen200),contentGlobalPrimary:et.extend("--ft-content-global-primary","Used for main content on the page.",ot.colorGray500),contentGlobalSecondary:et.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",ot.colorGray200),contentGlobalSubtle:et.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",ot.colorGray0),contentGlobalOnColor:et.extend("--ft-content-global-on-color","Used for content on a dominant color.",ot.colorWhite),borderActionPrimary:et.extend("--ft-border-action-primary","Used as border for primary action components.",ot.colorBrand0),borderActionFocusRing:et.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",ot.colorCyan0),borderWarningPrimary:et.extend("--ft-border-warning-primary","Used as border for warning components.",ot.colorOrange30),borderSuccessPrimary:et.extend("--ft-border-success-primary","Used as border for success components.",ot.colorGreen30),borderErrorPrimary:et.extend("--ft-border-error-primary","Used as border for error components.",ot.colorRed30),borderInfoPrimary:et.extend("--ft-border-info-primary","Used as border for information components.",ot.colorCyan30),borderGlobalSubtle:et.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",ot.colorGray30),borderGlobalPrimary:et.extend("--ft-border-global-primary","Used as border for element like input.",ot.colorGray50),borderInputPrimary:et.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",ot.colorGray80)},at={largeHeight:et.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:et.extend("--ft-button-large-horizontal-padding","",ot.spacing4),largeGap:et.extend("--ft-button-large-gap","",ot.spacing2),largeBorderRadius:et.extend("--ft-button-large-border-radius","",ot.borderRadiusS),largeIconSize:et.extend("--ft-button-large-icon-size","",ot.iconSize3),largeBorderWidth:et.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:et.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:et.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:et.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:et.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:et.extend("--ft-button-small-horizontal-padding","",ot.spacing3),smallGap:et.extend("--ft-button-small-gap","",ot.spacing2),smallBorderRadius:et.extend("--ft-button-small-border-radius","",ot.borderRadiusS),smallIconSize:et.extend("--ft-button-small-icon-size","",ot.iconSize2),smallBorderWidth:et.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:et.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:et.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:et.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:et.extend("--ft-button-primary-background-color","",rt.backgroundActionPrimary),primaryColor:et.extend("--ft-button-primary-color","",rt.contentGlobalOnColor),primaryIconColor:et.extend("--ft-button-primary-icon-color","",rt.contentGlobalOnColor),primaryStateLayerColor:et.extend("--ft-button-primary-state-layer-color","",rt.contentGlobalOnColor),primaryStateLayerOpacityHover:et.extend("--ft-button-primary-state-layer-opacity-hover","",ot.opacity16),primaryStateLayerOpacityFocus:et.extend("--ft-button-primary-state-layer-opacity-focus","",ot.opacity16),primaryStateLayerOpacityActive:et.extend("--ft-button-primary-state-layer-opacity-active","",ot.opacity24),primaryComponentOpacityDisabled:et.extend("--ft-button-primary-component-opacity-disabled","",ot.opacity40),focusFocusRingColor:et.extend("--ft-button-focus-focus-ring-color","",rt.borderActionFocusRing),tertiaryBackgroundColor:et.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:et.extend("--ft-button-tertiary-color","",rt.contentActionPrimary),tertiaryIconColor:et.extend("--ft-button-tertiary-icon-color","",rt.contentActionPrimary),tertiaryStateLayerColor:et.extend("--ft-button-tertiary-state-layer-color","",rt.contentActionPrimary),tertiaryStateLayerOpacityHover:et.extend("--ft-button-tertiary-state-layer-opacity-hover","",ot.opacity8),tertiaryStateLayerOpacityFocus:et.extend("--ft-button-tertiary-state-layer-opacity-focus","",ot.opacity8),tertiaryStateLayerOpacityActive:et.extend("--ft-button-tertiary-state-layer-opacity-active","",ot.opacity16),tertiaryComponentOpacityDisabled:et.extend("--ft-button-tertiary-component-opacity-disabled","",ot.opacity40),secondaryBackgroundColor:et.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:et.extend("--ft-button-secondary-color","",rt.contentActionPrimary),secondaryIconColor:et.extend("--ft-button-secondary-icon-color","",rt.contentActionPrimary),secondaryStateLayerColor:et.extend("--ft-button-secondary-state-layer-color","",rt.contentActionPrimary),secondaryStateLayerOpacityHover:et.extend("--ft-button-secondary-state-layer-opacity-hover","",ot.opacity8),secondaryStateLayerOpacityFocus:et.extend("--ft-button-secondary-state-layer-opacity-focus","",ot.opacity8),secondaryStateLayerOpacityActive:et.extend("--ft-button-secondary-state-layer-opacity-active","",ot.opacity16),secondaryComponentOpacityDisabled:et.extend("--ft-button-secondary-component-opacity-disabled","",ot.opacity40),secondaryBorderColor:et.extend("--ft-button-secondary-border-color","",rt.borderActionPrimary),neutralBackgroundColor:et.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:et.extend("--ft-button-neutral-icon-color","",rt.contentGlobalSecondary),neutralColor:et.extend("--ft-button-neutral-color","",rt.contentGlobalSecondary),neutralStateLayerColor:et.extend("--ft-button-neutral-state-layer-color","",rt.contentGlobalSecondary),neutralStateLayerOpacityHover:et.extend("--ft-button-neutral-state-layer-opacity-hover","",ot.opacity8),neutralStateLayerOpacityFocus:et.extend("--ft-button-neutral-state-layer-opacity-focus","",ot.opacity8),neutralStateLayerOpacityActive:et.extend("--ft-button-neutral-state-layer-opacity-active","",ot.opacity16),neutralComponentOpacityDisabled:et.extend("--ft-button-neutral-component-opacity-disabled","",ot.opacity40)};et.extend("--ft-tabs-top-left-border-radius","",ot.borderRadiusS),et.extend("--ft-tabs-top-right-border-radius","",ot.borderRadiusS),et.extend("--ft-tabs-label-horizontal-padding","",ot.spacing4),et.extend("--ft-tabs-label-vertical-padding","",ot.spacing3),et.extend("--ft-tabs-label-gap","",ot.spacing1),et.extend("--ft-switch-group-horizontal-padding","",ot.spacing1),et.extend("--ft-switch-group-vertical-padding","",ot.spacing1),et.extend("--ft-switch-group-gap","",ot.spacing1),et.extend("--ft-switch-group-background-color","",rt.backgroundGlobalSurface),et.extend("--ft-switch-group-border-color","",rt.borderGlobalSubtle),et.create("--ft-switch-group-border-radius","","SIZE","6px"),et.extend("--ft-switch-label-horizontal-padding","",ot.spacing2),et.extend("--ft-switch-label-vertical-padding","",ot.spacing1),et.extend("--ft-switch-icon-horizontal-padding","",ot.spacing1),et.extend("--ft-switch-icon-vertical-padding","",ot.spacing1),et.create("--ft-switch-focus-outline-width","","SIZE","2px"),et.extend("--ft-switch-focus-focus-ring-color","",rt.borderActionFocusRing),et.extend("--ft-switch-option-border-radius","",ot.borderRadiusS),et.extend("--ft-switch-off-state-layer-opacity-hover","",ot.opacity8),et.extend("--ft-switch-off-state-layer-opacity-focus","",ot.opacity8),et.extend("--ft-switch-off-state-layer-opacity-active","",ot.opacity16),et.extend("--ft-switch-off-component-opacity-disabled","",ot.opacity40),et.extend("--ft-switch-off-color","",rt.contentGlobalSubtle),et.extend("--ft-switch-off-state-layer-color","",rt.contentGlobalSubtle),et.extend("--ft-chart-1-light","for area color charts",ot.colorBrand40),et.extend("--ft-chart-1-base","for line charts",ot.colorBrand0),et.extend("--ft-chart-2-light","for area color charts",ot.colorYellow60),et.extend("--ft-chart-2-base","for line charts",ot.colorYellow100),et.extend("--ft-chart-3-light","",ot.colorUltramarine40),et.extend("--ft-chart-3-base","",ot.colorUltramarine70),et.extend("--ft-chart-4-light","",ot.colorCyan50),et.extend("--ft-chart-4-base","",ot.colorCyan100),et.extend("--ft-chart-5-light","",ot.colorRed40),et.extend("--ft-chart-5-base","",ot.colorRed60),et.extend("--ft-chart-6-light","",ot.colorGreen40),et.extend("--ft-chart-6-base","",ot.colorGreen70),et.extend("--ft-chart-7-light","",ot.colorOrange70),et.extend("--ft-chart-7-base","",ot.colorOrange100),et.extend("--ft-chart-8-light","",ot.colorAvocado70),et.extend("--ft-chart-8-base","",ot.colorAvocado200),et.extend("--ft-chart-9-light","",ot.colorBrown50),et.extend("--ft-chart-9-base","",ot.colorBrown200),et.extend("--ft-chart-10-light","",ot.colorGray50),et.extend("--ft-chart-10-base","",ot.colorGray80),et.extend("--ft-chart-monochrome-10","",ot.colorBrand10),et.extend("--ft-chart-monochrome-20","",ot.colorBrand20),et.extend("--ft-chart-monochrome-30","",ot.colorBrand40),et.extend("--ft-chart-monochrome-40","",ot.colorBrand60),et.extend("--ft-chart-monochrome-50","",ot.colorBrand0),et.extend("--ft-chart-monochrome-60","",ot.colorBrand200),et.extend("--ft-chip-large-horizontal-padding","",ot.spacing4),et.extend("--ft-chip-large-vertical-padding","",ot.spacing2),et.extend("--ft-chip-large-gap","",ot.spacing1),et.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),et.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),et.extend("--ft-chip-large-border-radius","",ot.borderRadiusPill),et.create("--ft-chip-large-border-width","","SIZE","1px"),et.extend("--ft-chip-large-icon-size","",ot.iconSize3),et.extend("--ft-chip-medium-horizontal-padding","",ot.spacing3),et.extend("--ft-chip-medium-vertical-padding","",ot.spacing1),et.extend("--ft-chip-medium-gap","",ot.spacing1),et.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),et.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),et.extend("--ft-chip-medium-border-radius","",ot.borderRadiusPill),et.create("--ft-chip-medium-border-width","","SIZE","1px"),et.extend("--ft-chip-medium-icon-size","",ot.iconSize2),et.extend("--ft-chip-small-horizontal-padding","",ot.spacing2),et.extend("--ft-chip-small-vertical-padding","",ot.spacing05),et.extend("--ft-chip-small-gap","",ot.spacing1),et.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),et.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),et.extend("--ft-chip-small-border-radius","",ot.borderRadiusPill),et.create("--ft-chip-small-border-width","","SIZE","1px"),et.extend("--ft-chip-small-icon-size","",ot.iconSize1),et.extend("--ft-chip-neutral-background-color","",rt.backgroundGlobalOnSurface),et.extend("--ft-chip-neutral-color","",rt.contentGlobalPrimary),et.extend("--ft-chip-neutral-border-color","",rt.borderGlobalSubtle),et.extend("--ft-chip-info-background-color","",rt.backgroundInfoSubtle),et.extend("--ft-chip-info-color","",rt.contentInfoPrimary),et.extend("--ft-chip-info-border-color","",rt.borderInfoPrimary),et.extend("--ft-chip-success-background-color","",rt.backgroundSuccessSubtle),et.extend("--ft-chip-success-color","",rt.contentSuccessPrimary),et.extend("--ft-chip-success-border-color","",rt.borderSuccessPrimary),et.extend("--ft-chip-warning-background-color","",rt.backgroundWarningSubtle),et.extend("--ft-chip-warning-color","",rt.contentWarningPrimary),et.extend("--ft-chip-warning-border-color","",rt.borderWarningPrimary),et.extend("--ft-chip-error-background-color","",rt.backgroundErrorSubtle),et.extend("--ft-chip-error-color","",rt.contentErrorPrimary),et.extend("--ft-chip-error-border-color","",rt.borderErrorPrimary),et.create("--ft-notice-border-width","","SIZE","1px"),et.extend("--ft-notice-horizontal-padding","",ot.spacing2),et.extend("--ft-notice-vertical-padding","",ot.spacing1),et.extend("--ft-notice-border-radius","",ot.borderRadiusS),et.extend("--ft-notice-gap","",ot.spacing2),et.extend("--ft-notice-icon-size","",ot.iconSize3),et.extend("--ft-notice-info-background-color","",rt.backgroundInfoSubtle),et.extend("--ft-notice-info-border-color","",rt.borderInfoPrimary),et.extend("--ft-notice-info-color","",rt.contentInfoPrimary),et.extend("--ft-notice-warning-background-color","",rt.backgroundWarningSubtle),et.extend("--ft-notice-warning-border-color","",rt.borderWarningPrimary),et.extend("--ft-notice-warning-color","",rt.contentWarningPrimary),et.extend("--ft-checkbox-label-color","",rt.contentGlobalPrimary),et.extend("--ft-checkbox-checked-background-color","",rt.contentActionPrimary),et.extend("--ft-checkbox-checked-state-layer-color","",rt.contentActionPrimary),et.extend("--ft-checkbox-checked-color","",rt.contentGlobalOnColor),et.extend("--ft-checkbox-checked-state-layer-opacity-hover","",ot.opacity16),et.extend("--ft-checkbox-checked-state-layer-opacity-focus","",ot.opacity16),et.extend("--ft-checkbox-checked-state-layer-opacity-active","",ot.opacity24),et.extend("--ft-checkbox-checked-component-opacity-disabled","",ot.opacity40),et.extend("--ft-checkbox-unchecked-border-color","",ot.colorGray80),et.extend("--ft-checkbox-unchecked-state-layer-color","",ot.colorGray80),et.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",ot.opacity16),et.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",ot.opacity16),et.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",ot.opacity24),et.extend("--ft-checkbox-unchecked-component-opacity-disabled","",ot.opacity40),et.extend("--ft-checkbox-focus-focus-ring-color","",rt.borderActionFocusRing),et.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),et.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),et.extend("--ft-checkbox-gap","",ot.spacing3),et.extend("--ft-toggle-off-state-layer-opacity-hover","",ot.opacity16),et.extend("--ft-toggle-off-state-layer-opacity-focus","",ot.opacity16),et.extend("--ft-toggle-off-state-layer-opacity-active","",ot.opacity24),et.extend("--ft-toggle-off-component-opacity-disabled","",ot.opacity40),et.extend("--ft-toggle-off-background-color","",rt.contentGlobalSubtle),et.extend("--ft-toggle-off-icon-color","",rt.contentGlobalSubtle),et.extend("--ft-toggle-off-state-layer-color","",rt.contentGlobalSubtle),et.extend("--ft-toggle-on-state-layer-opacity-hover","",ot.opacity16),et.extend("--ft-toggle-on-state-layer-opacity-focus","",ot.opacity16),et.extend("--ft-toggle-on-state-layer-opacity-active","",ot.opacity24),et.extend("--ft-toggle-on-component-opacity-disabled","",ot.opacity40),et.extend("--ft-toggle-on-background-color","",rt.contentActionPrimary),et.extend("--ft-toggle-on-icon-color","",rt.contentActionPrimary),et.extend("--ft-toggle-on-state-layer-color","",rt.contentActionPrimary),et.extend("--ft-toggle-label-color","",rt.contentGlobalPrimary),et.extend("--ft-toggle-focus-focus-ring-color","",rt.borderActionFocusRing),et.extend("--ft-toggle-gap","",ot.spacing3),et.extend("--ft-radio-label-color","",rt.contentGlobalPrimary),et.extend("--ft-radio-selected-color","",rt.contentActionPrimary),et.extend("--ft-radio-selected-state-layer-color","",rt.contentActionPrimary),et.extend("--ft-radio-selected-state-layer-opacity-hover","",ot.opacity16),et.extend("--ft-radio-selected-state-layer-opacity-focus","",ot.opacity16),et.extend("--ft-radio-selected-state-layer-opacity-active","",ot.opacity24),et.extend("--ft-radio-selected-component-opacity-disabled","",ot.opacity40),et.extend("--ft-radio-unselected-state-layer-color","",ot.colorGray80),et.extend("--ft-radio-unselected-state-layer-opacity-hover","",ot.opacity16),et.extend("--ft-radio-unselected-state-layer-opacity-focus","",ot.opacity16),et.extend("--ft-radio-unselected-state-layer-opacity-active","",ot.opacity24),et.extend("--ft-radio-unselected-component-opacity-disabled","",ot.opacity40),et.extend("--ft-radio-focus-focus-ring-color","",rt.borderActionFocusRing),et.create("--ft-radio-focus-outline-offset","","SIZE","3px"),et.create("--ft-radio-focus-outline-width","","SIZE","2px"),et.extend("--ft-radio-gap","",ot.spacing3),et.extend("--ft-notification-icon-size","",ot.iconSize4),et.extend("--ft-notification-horizontal-padding","",ot.spacing4),et.extend("--ft-notification-vertical-padding","",ot.spacing4),et.extend("--ft-notification-info-background-color","",rt.backgroundInfoSubtle),et.extend("--ft-notification-info-color","",rt.contentInfoPrimary),et.extend("--ft-notification-info-border-color","",rt.borderInfoPrimary),et.extend("--ft-notification-success-background-color","",rt.backgroundSuccessSubtle),et.extend("--ft-notification-success-color","",rt.contentSuccessPrimary),et.extend("--ft-notification-success-border-color","",rt.borderSuccessPrimary),et.extend("--ft-notification-warning-background-color","",rt.backgroundWarningSubtle),et.extend("--ft-notification-warning-color","",rt.contentWarningPrimary),et.extend("--ft-notification-warning-border-color","",rt.borderWarningPrimary),et.extend("--ft-notification-error-background-color","",rt.backgroundErrorSubtle),et.extend("--ft-notification-error-color","",rt.contentErrorPrimary),et.extend("--ft-notification-error-border-color","",rt.borderErrorPrimary),et.extend("--ft-notification-border-radius","",ot.borderRadiusPill),et.create("--ft-notification-border-width","","SIZE","1px"),et.extend("--ft-notification-gap-leading","",ot.spacing2),et.extend("--ft-notification-gap-trailing","",ot.spacing8);const nt=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.titleFont),lt=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.contentFont),st={fontFamily:lt,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ct=e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",nt),pt=e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",st.fontSize,"20px"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",st.fontWeight,"normal"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",st.letterSpacing,"0.15px"),dt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",st.lineHeight,"1.2"),ut=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",st.textTransform,"inherit"),gt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",nt),bt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",st.fontSize,"14px"),yt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",st.fontWeight,"normal"),mt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",st.letterSpacing,"0.105px"),vt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",st.lineHeight,"1.7"),xt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",st.textTransform,"inherit"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",lt),Ot=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",st.fontSize,"16px"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",st.fontWeight,"600"),kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",st.letterSpacing,"0.144px"),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",st.lineHeight,"1.5"),Nt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",st.textTransform,"inherit"),Ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",lt),It=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",st.fontSize,"14px"),Et=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",st.fontWeight,"normal"),Lt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",st.letterSpacing,"0.098px"),Rt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",st.lineHeight,"1.7"),zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",st.textTransform,"inherit"),Ut={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",lt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",st.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",st.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",st.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",st.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",st.textTransform,"inherit")},Wt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",lt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",st.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",st.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",st.letterSpacing,"0.252px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",st.lineHeight,"1.4"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",st.textTransform,"inherit")},Bt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",lt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",st.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",st.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",st.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",st.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",st.textTransform,"inherit")},Zt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",lt),Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",st.fontSize,"10px"),Kt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",st.fontWeight,"normal"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",st.letterSpacing,"0.33px"),At=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",st.lineHeight,"1.6"),Ht=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",st.textTransform,"inherit"),Pt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",lt),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",st.fontSize,"10px"),jt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",st.fontWeight,"normal"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",st.letterSpacing,"1.5px"),Gt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",st.lineHeight,"1.6"),_t=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",st.textTransform,"uppercase"),Vt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",lt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",st.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",st.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",st.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",st.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",st.textTransform,"uppercase")},qt=o.css`
|
|
37
37
|
.ft-typography--title {
|
|
38
38
|
font-family: ${ct};
|
|
39
39
|
font-size: ${pt};
|
|
40
|
-
font-weight: ${
|
|
41
|
-
letter-spacing: ${
|
|
40
|
+
font-weight: ${ft};
|
|
41
|
+
letter-spacing: ${ht};
|
|
42
42
|
line-height: ${dt};
|
|
43
43
|
text-transform: ${ut};
|
|
44
44
|
}
|
|
45
45
|
`,Yt=o.css`
|
|
46
46
|
.ft-typography--title-dense {
|
|
47
|
-
font-family: ${
|
|
48
|
-
font-size: ${
|
|
47
|
+
font-family: ${gt};
|
|
48
|
+
font-size: ${bt};
|
|
49
49
|
font-weight: ${yt};
|
|
50
50
|
letter-spacing: ${mt};
|
|
51
51
|
line-height: ${vt};
|
|
@@ -100,8 +100,8 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
100
100
|
`,oe=o.css`
|
|
101
101
|
.ft-typography--breadcrumb {
|
|
102
102
|
font-family: ${Zt};
|
|
103
|
-
font-size: ${
|
|
104
|
-
font-weight: ${
|
|
103
|
+
font-size: ${Ft};
|
|
104
|
+
font-weight: ${Kt};
|
|
105
105
|
letter-spacing: ${Dt};
|
|
106
106
|
line-height: ${At};
|
|
107
107
|
text-transform: ${Ht};
|
|
@@ -144,7 +144,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
144
144
|
</${Y(this.element)}>
|
|
145
145
|
`:J`
|
|
146
146
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
147
|
-
`}}function ce(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function pe(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>pe(e,t.selected))),value:t.value}}function
|
|
147
|
+
`}}function ce(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function pe(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>pe(e,t.selected))),value:t.value}}function fe(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>pe(t,!1)))}}se.styles=[qt,Yt,Xt,Jt,Qt,te,ee,oe,ie,re,ae,...ne],le([i.property()],se.prototype,"element",void 0),le([i.property()],se.prototype,"variant",void 0),e.customElement("ft-typography")(se);const he=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorContent),de={color:he,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color","",he),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ue=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorPrimary),ge=ue,be=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",ue),ye=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorSecondary),me=ye,ve=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",ye),xe=o.css`
|
|
148
148
|
:host {
|
|
149
149
|
display: contents;
|
|
150
150
|
}
|
|
@@ -207,11 +207,11 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
210
|
-
background-color: ${
|
|
210
|
+
background-color: ${be};
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
214
|
-
background-color: ${
|
|
214
|
+
background-color: ${ge};
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
.ft-ripple .ft-ripple--background {
|
|
@@ -521,7 +521,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
521
521
|
<div class="ft-ripple--background"></div>
|
|
522
522
|
<div class="ft-ripple--effect"></div>
|
|
523
523
|
</div>
|
|
524
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",o),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Be.elementDefinitions={},Be.styles=xe,We([i.property({type:Boolean})],Be.prototype,"primary",void 0),We([i.property({type:Boolean})],Be.prototype,"secondary",void 0),We([i.property({type:Boolean})],Be.prototype,"unbounded",void 0),We([i.property({type:Boolean})],Be.prototype,"activated",void 0),We([i.property({type:Boolean})],Be.prototype,"selected",void 0),We([i.property({type:Boolean})],Be.prototype,"disabled",void 0),We([i.state()],Be.prototype,"hovered",void 0),We([i.state()],Be.prototype,"focused",void 0),We([i.state()],Be.prototype,"pressed",void 0),We([i.state()],Be.prototype,"rippling",void 0),We([i.state()],Be.prototype,"originX",void 0),We([i.state()],Be.prototype,"originY",void 0),We([i.query(".ft-ripple")],Be.prototype,"ripple",void 0),We([i.query(".ft-ripple--effect")],Be.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(Be);const Ze={distance:e.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:e.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:e.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:e.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),maxWidth:e.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},
|
|
524
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",o),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",o),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Be.elementDefinitions={},Be.styles=xe,We([i.property({type:Boolean})],Be.prototype,"primary",void 0),We([i.property({type:Boolean})],Be.prototype,"secondary",void 0),We([i.property({type:Boolean})],Be.prototype,"unbounded",void 0),We([i.property({type:Boolean})],Be.prototype,"activated",void 0),We([i.property({type:Boolean})],Be.prototype,"selected",void 0),We([i.property({type:Boolean})],Be.prototype,"disabled",void 0),We([i.state()],Be.prototype,"hovered",void 0),We([i.state()],Be.prototype,"focused",void 0),We([i.state()],Be.prototype,"pressed",void 0),We([i.state()],Be.prototype,"rippling",void 0),We([i.state()],Be.prototype,"originX",void 0),We([i.state()],Be.prototype,"originY",void 0),We([i.query(".ft-ripple")],Be.prototype,"ripple",void 0),We([i.query(".ft-ripple--effect")],Be.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(Be);const Ze={distance:e.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:e.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:e.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:e.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),maxWidth:e.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Fe=o.css`
|
|
525
525
|
.ft-tooltip--container {
|
|
526
526
|
display: block;
|
|
527
527
|
}
|
|
@@ -550,7 +550,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
550
550
|
position: relative;
|
|
551
551
|
word-break: break-word;
|
|
552
552
|
}
|
|
553
|
-
`;var Fe,De,Ae=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class He extends e.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 e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return o.html`
|
|
553
|
+
`,Ke=["start","end"],De=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+Ke[0],e+"-"+Ke[1])),[]),Ae=Math.min,He=Math.max,Pe=Math.round,Me=t=>({x:t,y:t}),je={left:"right",right:"left",bottom:"top",top:"bottom"},Te={start:"end",end:"start"};function Ge(t,e,o){return He(t,Ae(e,o))}function _e(t,e){return"function"==typeof t?t(e):t}function Ve(t){return t.split("-")[0]}function qe(t){return t.split("-")[1]}function Ye(t){return"x"===t?"y":"x"}function Xe(t){return"y"===t?"height":"width"}function Je(t){return["top","bottom"].includes(Ve(t))?"y":"x"}function Qe(t){return Ye(Je(t))}function to(t){return t.replace(/left|right|bottom|top/g,(t=>je[t]))}function eo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function oo(t,e,o){let{reference:i,floating:r}=t;const a=Je(e),n=Qe(e),l=Xe(n),s=Ve(e),c="y"===a,p=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,h=i[l]/2-r[l]/2;let d;switch(s){case"top":d={x:p,y:i.y-r.height};break;case"bottom":d={x:p,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-r.width,y:f};break;default:d={x:i.x,y:i.y}}switch(qe(e)){case"start":d[n]-=h*(o&&c?-1:1);break;case"end":d[n]+=h*(o&&c?-1:1)}return d}async function io(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:a,rects:n,elements:l,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=_e(e,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(d),g=l[h?"floating"===f?"reference":"floating":f],b=eo(await a.getClippingRect({element:null==(o=await(null==a.isElement?void 0:a.isElement(g)))||o?g:g.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating)),boundary:c,rootBoundary:p,strategy:s})),y="floating"===f?{...n.floating,x:i,y:r}:n.reference,m=await(null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating)),v=await(null==a.isElement?void 0:a.isElement(m))&&await(null==a.getScale?void 0:a.getScale(m))||{x:1,y:1},x=eo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:m,strategy:s}):y);return{top:(b.top-x.top+u.top)/v.y,bottom:(x.bottom-b.bottom+u.bottom)/v.y,left:(b.left-x.left+u.left)/v.x,right:(x.right-b.right+u.right)/v.x}}function ro(t,e,o){return(t?[...o.filter((e=>qe(e)===t)),...o.filter((e=>qe(e)!==t))]:o.filter((t=>Ve(t)===t))).filter((o=>!t||(qe(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>Te[t]))}(o)!==o)))}const ao=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:a,middlewareData:n,placement:l,platform:s,elements:c}=e,{crossAxis:p=!1,alignment:f,allowedPlacements:h=De,autoAlignment:d=!0,...u}=_e(t,e),g=void 0!==f||h===De?ro(f||null,d,h):h,b=await io(e,u),y=(null==(o=n.autoPlacement)?void 0:o.index)||0,m=g[y];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=qe(t),r=Qe(t),a=Xe(r);let n="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[a]>e.floating[a]&&(n=to(n)),[n,to(n)]}(m,a,await(null==s.isRTL?void 0:s.isRTL(c.floating)));if(l!==m)return{reset:{placement:g[0]}};const x=[b[Ve(m)],b[v[0]],b[v[1]]],$=[...(null==(i=n.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],O=g[y+1];if(O)return{data:{index:y+1,overflows:$},reset:{placement:O}};const w=$.map((t=>{const e=qe(t.placement);return[t.placement,e&&p?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),k=w.filter((t=>t[2].slice(0,qe(t[0])?2:3).every((t=>t<=0)))),S=(null==(r=k[0])?void 0:r[0])||w[0][0];return S!==l?{data:{index:y+1,overflows:$},reset:{placement:S}}:{}}}};function no(t){return co(t)?(t.nodeName||"").toLowerCase():"#document"}function lo(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function so(t){var e;return null==(e=(co(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function co(t){return t instanceof Node||t instanceof lo(t).Node}function po(t){return t instanceof Element||t instanceof lo(t).Element}function fo(t){return t instanceof HTMLElement||t instanceof lo(t).HTMLElement}function ho(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof lo(t).ShadowRoot)}function uo(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=vo(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function go(t){return["table","td","th"].includes(no(t))}function bo(t){const e=yo(),o=vo(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function yo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function mo(t){return["html","body","#document"].includes(no(t))}function vo(t){return lo(t).getComputedStyle(t)}function xo(t){return po(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function $o(t){if("html"===no(t))return t;const e=t.assignedSlot||t.parentNode||ho(t)&&t.host||so(t);return ho(e)?e.host:e}function Oo(t){const e=$o(t);return mo(e)?t.ownerDocument?t.ownerDocument.body:t.body:fo(e)&&uo(e)?e:Oo(e)}function wo(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Oo(t),a=r===(null==(i=t.ownerDocument)?void 0:i.body),n=lo(r);return a?e.concat(n,n.visualViewport||[],uo(r)?r:[],n.frameElement&&o?wo(n.frameElement):[]):e.concat(r,wo(r,[],o))}function ko(t){const e=vo(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=fo(t),a=r?t.offsetWidth:o,n=r?t.offsetHeight:i,l=Pe(o)!==a||Pe(i)!==n;return l&&(o=a,i=n),{width:o,height:i,$:l}}function So(t){return po(t)?t:t.contextElement}function No(t){const e=So(t);if(!fo(e))return Me(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:a}=ko(e);let n=(a?Pe(o.width):o.width)/i,l=(a?Pe(o.height):o.height)/r;return n&&Number.isFinite(n)||(n=1),l&&Number.isFinite(l)||(l=1),{x:n,y:l}}const Co=Me(0);function Io(t){const e=lo(t);return yo()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Co}function Eo(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),a=So(t);let n=Me(1);e&&(i?po(i)&&(n=No(i)):n=No(t));const l=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==lo(t))&&e}(a,o,i)?Io(a):Me(0);let s=(r.left+l.x)/n.x,c=(r.top+l.y)/n.y,p=r.width/n.x,f=r.height/n.y;if(a){const t=lo(a),e=i&&po(i)?lo(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=No(o),e=o.getBoundingClientRect(),i=vo(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,a=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;s*=t.x,c*=t.y,p*=t.x,f*=t.y,s+=r,c+=a,o=lo(o).frameElement}}return eo({width:p,height:f,x:s,y:c})}function Lo(t){return Eo(so(t)).left+xo(t).scrollLeft}function Ro(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=lo(t),i=so(t),r=o.visualViewport;let a=i.clientWidth,n=i.clientHeight,l=0,s=0;if(r){a=r.width,n=r.height;const t=yo();(!t||t&&"fixed"===e)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:a,height:n,x:l,y:s}}(t,o);else if("document"===e)i=function(t){const e=so(t),o=xo(t),i=t.ownerDocument.body,r=He(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),a=He(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let n=-o.scrollLeft+Lo(t);const l=-o.scrollTop;return"rtl"===vo(i).direction&&(n+=He(e.clientWidth,i.clientWidth)-r),{width:r,height:a,x:n,y:l}}(so(t));else if(po(e))i=function(t,e){const o=Eo(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,a=fo(t)?No(t):Me(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:r*a.x,y:i*a.y}}(e,o);else{const o=Io(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return eo(i)}function zo(t,e){const o=$o(t);return!(o===e||!po(o)||mo(o))&&("fixed"===vo(o).position||zo(o,e))}function Uo(t,e,o){const i=fo(e),r=so(e),a="fixed"===o,n=Eo(t,!0,a,e);let l={scrollLeft:0,scrollTop:0};const s=Me(0);if(i||!i&&!a)if(("body"!==no(e)||uo(r))&&(l=xo(e)),i){const t=Eo(e,!0,a,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else r&&(s.x=Lo(r));return{x:n.left+l.scrollLeft-s.x,y:n.top+l.scrollTop-s.y,width:n.width,height:n.height}}function Wo(t,e){return fo(t)&&"fixed"!==vo(t).position?e?e(t):t.offsetParent:null}function Bo(t,e){const o=lo(t);if(!fo(t))return o;let i=Wo(t,e);for(;i&&go(i)&&"static"===vo(i).position;)i=Wo(i,e);return i&&("html"===no(i)||"body"===no(i)&&"static"===vo(i).position&&!bo(i))?o:i||function(t){let e=$o(t);for(;fo(e)&&!mo(e);){if(bo(e))return e;e=$o(e)}return null}(t)||o}const Zo={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=fo(o),a=so(o);if(o===a)return e;let n={scrollLeft:0,scrollTop:0},l=Me(1);const s=Me(0);if((r||!r&&"fixed"!==i)&&(("body"!==no(o)||uo(a))&&(n=xo(o)),fo(o))){const t=Eo(o);l=No(o),s.x=t.x+o.clientLeft,s.y=t.y+o.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-n.scrollLeft*l.x+s.x,y:e.y*l.y-n.scrollTop*l.y+s.y}},getDocumentElement:so,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const a=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=wo(t,[],!1).filter((t=>po(t)&&"body"!==no(t))),r=null;const a="fixed"===vo(t).position;let n=a?$o(t):t;for(;po(n)&&!mo(n);){const e=vo(n),o=bo(n);o||"fixed"!==e.position||(r=null),(a?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||uo(n)&&!o&&zo(t,n))?i=i.filter((t=>t!==n)):r=e,n=$o(n)}return e.set(t,i),i}(e,this._c):[].concat(o),i],n=a[0],l=a.reduce(((t,o)=>{const i=Ro(e,o,r);return t.top=He(i.top,t.top),t.right=Ae(i.right,t.right),t.bottom=Ae(i.bottom,t.bottom),t.left=He(i.left,t.left),t}),Ro(e,n,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Bo,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||Bo,a=this.getDimensions;return{reference:Uo(e,await r(o),i),floating:{x:0,y:0,...await a(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return ko(t)},getScale:No,isElement:po,isRTL:function(t){return"rtl"===vo(t).direction}},Fo=(t,e,o)=>{const i=new Map,r={platform:Zo,...o},a={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:a=[],platform:n}=o,l=a.filter(Boolean),s=await(null==n.isRTL?void 0:n.isRTL(e));let c=await n.getElementRects({reference:t,floating:e,strategy:r}),{x:p,y:f}=oo(c,i,s),h=i,d={},u=0;for(let o=0;o<l.length;o++){const{name:a,fn:g}=l[o],{x:b,y,data:m,reset:v}=await g({x:p,y:f,initialPlacement:i,placement:h,strategy:r,middlewareData:d,rects:c,platform:n,elements:{reference:t,floating:e}});p=null!=b?b:p,f=null!=y?y:f,d={...d,[a]:{...d[a],...m}},v&&u<=50&&(u++,"object"==typeof v&&(v.placement&&(h=v.placement),v.rects&&(c=!0===v.rects?await n.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:p,y:f}=oo(c,h,s))),o=-1)}return{x:p,y:f,placement:h,strategy:r,middlewareData:d}})(t,e,{...r,platform:a})};var Ko,Do,Ao=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Ho extends e.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 e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return o.html`
|
|
554
554
|
<div part="container"
|
|
555
555
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
556
556
|
@mouseenter=${this.onHover}
|
|
@@ -568,19 +568,19 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
568
568
|
</div>
|
|
569
569
|
</div>
|
|
570
570
|
</div>
|
|
571
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=this.tooltip.offsetWidth,o=this.tooltip.offsetHeight,i=(t.offsetHeight-o)/2,r=(t.offsetWidth-e)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-o-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft-e-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=a+"px",l.top=n+"px";const s=this.tooltip.getBoundingClientRect();let c=-s.x,p=s.x+s.width-window.innerWidth;l.left=a+Math.round(this.correctOutOfWindowPixels(c,p))+"px";let h=-s.y,f=s.y+s.height-window.innerHeight;l.top=n+Math.round(this.correctOutOfWindowPixels(h,f))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${Ze.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}He.elementDefinitions={"ft-typography":se},He.styles=Ke,Ae([i.property()],He.prototype,"text",void 0),Ae([i.property({type:Boolean})],He.prototype,"manual",void 0),Ae([i.property({type:Boolean})],He.prototype,"inline",void 0),Ae([i.property({type:Number})],He.prototype,"delay",void 0),Ae([i.property()],He.prototype,"position",void 0),Ae([i.queryAssignedNodes()],He.prototype,"slotNodes",void 0),Ae([i.query(".ft-tooltip--container")],He.prototype,"container",void 0),Ae([i.query(".ft-tooltip")],He.prototype,"tooltip",void 0),Ae([i.query(".ft-tooltip--content")],He.prototype,"tooltipContent",void 0),Ae([i.state()],He.prototype,"visible",void 0),e.customElement("ft-tooltip")(He),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Fe||(Fe={})),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=""}(De||(De={}));const Pe=new Map([...["abw"].map((t=>[t,De.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,De.AUDIO])),...["avi"].map((t=>[t,De.AVI])),...["chm","xhs"].map((t=>[t,De.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,De.CODE])),...["csv"].map((t=>[t,De.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,De.DITA])),...["epub"].map((t=>[t,De.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,De.EXCEL])),...["flac"].map((t=>[t,De.FLAC])),...["gif"].map((t=>[t,De.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,De.GZIP])),...["html","htm","xhtml"].map((t=>[t,De.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,De.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,De.JPEG])),...["json"].map((t=>[t,De.JSON])),...["m4a","m4p"].map((t=>[t,De.M4A])),...["mov","qt"].map((t=>[t,De.MOV])),...["mp3"].map((t=>[t,De.MP3])),...["mp4","m4v"].map((t=>[t,De.MP4])),...["ogg","oga"].map((t=>[t,De.OGG])),...["pdf","ps"].map((t=>[t,De.PDF])),...["png"].map((t=>[t,De.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,De.POWERPOINT])),...["rar"].map((t=>[t,De.RAR])),...["stp"].map((t=>[t,De.STP])),...["txt","rtf","md","mdown"].map((t=>[t,De.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,De.VIDEO])),...["wav"].map((t=>[t,De.WAV])),...["wma"].map((t=>[t,De.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,De.WORD])),...["xml","xsl","rdf"].map((t=>[t,De.XML])),...["yaml","yml","x-yaml"].map((t=>[t,De.YAML])),...["zip"].map((t=>[t,De.ZIP]))]),Me=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"]]);var je;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(je||(je={}));var Te=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Ge extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=o.nothing}render(){const t=this.variant&&Object.values(je).includes(this.variant)?this.variant:je.fluid_topics,e=t!==je.material||!!this.value;return o.html`
|
|
571
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Fo(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:i,placement:r}=e,{mainAxis:a=!0,crossAxis:n=!1,limiter:l={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...s}=_e(t,e),c={x:o,y:i},p=await io(e,s),f=Je(Ve(r)),h=Ye(f);let d=c[h],u=c[f];if(a){const t="y"===h?"bottom":"right";d=Ge(d+p["y"===h?"top":"left"],d,d-p[t])}if(n){const t="y"===f?"bottom":"right";u=Ge(u+p["y"===f?"top":"left"],u,u-p[t])}const g=l.fn({...e,[h]:d,[f]:u});return{...g,data:{x:g.x-o,y:g.y-i}}}}),ao({allowedPlacements:[this.position]})]}).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}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())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Ho.elementDefinitions={"ft-typography":se},Ho.styles=Fe,Ao([i.property()],Ho.prototype,"text",void 0),Ao([i.property({type:Boolean})],Ho.prototype,"manual",void 0),Ao([i.property({type:Boolean})],Ho.prototype,"inline",void 0),Ao([i.property({type:Number})],Ho.prototype,"delay",void 0),Ao([i.property()],Ho.prototype,"position",void 0),Ao([i.queryAssignedNodes()],Ho.prototype,"slotNodes",void 0),Ao([i.query(".ft-tooltip--container")],Ho.prototype,"container",void 0),Ao([i.query(".ft-tooltip")],Ho.prototype,"tooltip",void 0),Ao([i.query(".ft-tooltip--content")],Ho.prototype,"tooltipContent",void 0),Ao([i.state()],Ho.prototype,"visible",void 0),e.customElement("ft-tooltip")(Ho),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Ko||(Ko={})),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=""}(Do||(Do={}));const Po=new Map([...["abw"].map((t=>[t,Do.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,Do.AUDIO])),...["avi"].map((t=>[t,Do.AVI])),...["chm","xhs"].map((t=>[t,Do.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,Do.CODE])),...["csv"].map((t=>[t,Do.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Do.DITA])),...["epub"].map((t=>[t,Do.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Do.EXCEL])),...["flac"].map((t=>[t,Do.FLAC])),...["gif"].map((t=>[t,Do.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Do.GZIP])),...["html","htm","xhtml"].map((t=>[t,Do.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Do.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Do.JPEG])),...["json"].map((t=>[t,Do.JSON])),...["m4a","m4p"].map((t=>[t,Do.M4A])),...["mov","qt"].map((t=>[t,Do.MOV])),...["mp3"].map((t=>[t,Do.MP3])),...["mp4","m4v"].map((t=>[t,Do.MP4])),...["ogg","oga"].map((t=>[t,Do.OGG])),...["pdf","ps"].map((t=>[t,Do.PDF])),...["png"].map((t=>[t,Do.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Do.POWERPOINT])),...["rar"].map((t=>[t,Do.RAR])),...["stp"].map((t=>[t,Do.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Do.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,Do.VIDEO])),...["wav"].map((t=>[t,Do.WAV])),...["wma"].map((t=>[t,Do.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Do.WORD])),...["xml","xsl","rdf"].map((t=>[t,Do.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Do.YAML])),...["zip"].map((t=>[t,Do.ZIP]))]),Mo=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"]]);var jo;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(jo||(jo={}));var To=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Go extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=o.nothing}render(){const t=this.variant&&Object.values(jo).includes(this.variant)?this.variant:jo.fluid_topics,e=t!==jo.material||!!this.value;return o.html`
|
|
572
572
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
573
573
|
${n.unsafeHTML(this.resolvedIcon)}
|
|
574
574
|
<slot ?hidden=${e}></slot>
|
|
575
575
|
</i>
|
|
576
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case
|
|
576
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case jo.file_format:this.resolvedIcon=null!==(t=Do[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case jo.material:this.resolvedIcon=this.value||o.nothing;break;default:this.resolvedIcon=null!==(e=Ko[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Go.elementDefinitions={},Go.styles=ke,To([i.property()],Go.prototype,"variant",void 0),To([i.property()],Go.prototype,"value",void 0),To([i.state()],Go.prototype,"resolvedIcon",void 0),To([i.query("slot")],Go.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Go);class _o extends e.FtLitElement{render(){return o.html`
|
|
577
577
|
<div class="ft-loader">
|
|
578
578
|
<div></div>
|
|
579
579
|
<div></div>
|
|
580
580
|
<div></div>
|
|
581
581
|
<div></div>
|
|
582
582
|
</div>
|
|
583
|
-
`}}
|
|
583
|
+
`}}_o.styles=Oe,e.customElement("ft-loader")(_o);var Vo=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class qo extends(e.toFtFormComponent(e.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}}render(){return this.addTooltipIfNeeded(o.html`
|
|
584
584
|
<button part="button"
|
|
585
585
|
class="${a.classMap(this.buttonClasses)}"
|
|
586
586
|
aria-label="${this.getLabel()}"
|
|
@@ -603,7 +603,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
603
603
|
</ft-tooltip>
|
|
604
604
|
`:t}resolveIcon(){return this.loading?o.html`
|
|
605
605
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?o.html`
|
|
606
|
-
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:o.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}
|
|
606
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:o.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}qo.elementDefinitions={"ft-ripple":Be,"ft-tooltip":Ho,"ft-typography":se,"ft-icon":Go,"ft-loader":_o},Vo([i.property({type:String,reflect:!0})],qo.prototype,"role",void 0),Vo([i.property()],qo.prototype,"type",void 0),Vo([i.property({type:Boolean})],qo.prototype,"disabled",void 0),Vo([i.property()],qo.prototype,"label",void 0),Vo([i.property()],qo.prototype,"icon",void 0),Vo([i.property()],qo.prototype,"iconVariant",void 0),Vo([i.property({type:Boolean})],qo.prototype,"trailingIcon",void 0),Vo([i.property({type:Boolean})],qo.prototype,"loading",void 0),Vo([i.property()],qo.prototype,"tooltipPosition",void 0),Vo([i.property({type:Boolean})],qo.prototype,"hideTooltip",void 0),Vo([i.property({type:Boolean})],qo.prototype,"forceTooltip",void 0),Vo([i.query(".ft-button")],qo.prototype,"button",void 0),Vo([i.query(".ft-button--label slot")],qo.prototype,"slottedContent",void 0);var Yo=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Xo extends qo{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"}}Xo.styles=[e.safariEllipsisFix,Ue],Yo([i.property({type:Boolean})],Xo.prototype,"primary",void 0),Yo([i.property({type:Boolean})],Xo.prototype,"outlined",void 0),Yo([i.property({type:Boolean})],Xo.prototype,"dense",void 0),Yo([i.property({type:Boolean})],Xo.prototype,"round",void 0);const Jo=[o.css`
|
|
607
607
|
:host {
|
|
608
608
|
display: inline-block;
|
|
609
609
|
max-width: 100%;
|
|
@@ -821,14 +821,14 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
821
821
|
width: ${at.smallIconOnlyWidth};
|
|
822
822
|
padding: unset;
|
|
823
823
|
}
|
|
824
|
-
`,e.noTextSelect];var
|
|
824
|
+
`,e.noTextSelect];var Qo=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class ti extends qo{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Q.caption1medium:Q.body2medium}}ti.styles=[e.safariEllipsisFix,Jo],Qo([i.property({type:Boolean})],ti.prototype,"primary",void 0),Qo([i.property({type:Boolean})],ti.prototype,"secondary",void 0),Qo([i.property({type:Boolean})],ti.prototype,"tertiary",void 0),Qo([i.property({type:Boolean})],ti.prototype,"neutral",void 0),Qo([i.property({type:Boolean})],ti.prototype,"small",void 0),e.customElement("ft-button")(Xo),e.customElement("ftds-button")(ti);const ei=e.FtCssVariableFactory.extend("--ft-checkbox-text-color","",e.designSystemVariables.colorOnSurfaceHigh),oi=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),ii=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnPrimary,"Design system"),ri=e.FtCssVariableFactory.extend("--ft-checkbox-border-color","",e.designSystemVariables.colorOnSurfaceMedium),ai=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),ni=o.css`
|
|
825
825
|
* {
|
|
826
826
|
box-sizing: border-box;
|
|
827
827
|
}
|
|
828
828
|
|
|
829
829
|
.ft-checkbox {
|
|
830
830
|
box-sizing: border-box;
|
|
831
|
-
color: ${
|
|
831
|
+
color: ${ei};
|
|
832
832
|
|
|
833
833
|
display: inline-flex;
|
|
834
834
|
align-items: center;
|
|
@@ -836,7 +836,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
836
836
|
}
|
|
837
837
|
|
|
838
838
|
.ft-checkbox--disabled {
|
|
839
|
-
color: ${
|
|
839
|
+
color: ${ai};
|
|
840
840
|
}
|
|
841
841
|
|
|
842
842
|
input {
|
|
@@ -860,26 +860,26 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
860
860
|
|
|
861
861
|
.ft-checkbox--box {
|
|
862
862
|
display: flex;
|
|
863
|
-
border: 2px solid ${
|
|
863
|
+
border: 2px solid ${ri};
|
|
864
864
|
border-radius: 2px;
|
|
865
865
|
|
|
866
866
|
width: 18px;
|
|
867
867
|
height: 18px;
|
|
868
868
|
|
|
869
|
-
color: ${
|
|
869
|
+
color: ${ii};
|
|
870
870
|
}
|
|
871
871
|
|
|
872
872
|
|
|
873
873
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
874
874
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
875
|
-
border-color: ${
|
|
876
|
-
background-color: ${
|
|
875
|
+
border-color: ${oi};
|
|
876
|
+
background-color: ${oi};
|
|
877
877
|
}
|
|
878
878
|
|
|
879
879
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
880
|
-
border-color: ${
|
|
880
|
+
border-color: ${ai};
|
|
881
881
|
background-color: transparent;
|
|
882
|
-
color: ${
|
|
882
|
+
color: ${ai};
|
|
883
883
|
}
|
|
884
884
|
|
|
885
885
|
.ft-checkbox--checkmark {
|
|
@@ -898,7 +898,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
898
898
|
.ft-checkbox--indeterminate .ft-checkbox--checkmark {
|
|
899
899
|
opacity: 1;
|
|
900
900
|
}
|
|
901
|
-
`;var
|
|
901
|
+
`;var li=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class si extends e.FtLitElement{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return o.html`
|
|
902
902
|
<label class="${a.classMap(t)}" for="checkbox-input">
|
|
903
903
|
<div class="ft-checkbox--box-container">
|
|
904
904
|
<ft-ripple
|
|
@@ -924,14 +924,14 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
924
924
|
<slot></slot>
|
|
925
925
|
</ft-typography>
|
|
926
926
|
</label>
|
|
927
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}
|
|
927
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}si.elementDefinitions={"ft-ripple":Be,"ft-typography":se},si.styles=ni,li([i.property()],si.prototype,"name",void 0),li([i.property({type:Boolean,reflect:!0})],si.prototype,"checked",void 0),li([i.property({type:Boolean})],si.prototype,"indeterminate",void 0),li([i.property({type:Boolean})],si.prototype,"disabled",void 0),li([i.query(".ft-checkbox")],si.prototype,"container",void 0),li([i.query("ft-ripple")],si.prototype,"ripple",void 0),e.customElement("ft-checkbox")(si);const ci=e.FtCssVariableFactory.extend("--ft-radio-text-color","",e.designSystemVariables.colorOnSurfaceHigh),pi=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),fi=(e.FtCssVariableFactory.external(e.designSystemVariables.colorOnPrimary,"Design system"),e.FtCssVariableFactory.extend("--ft-radio-border-color","",e.designSystemVariables.colorOnSurfaceMedium)),hi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),di=o.css`
|
|
928
928
|
* {
|
|
929
929
|
box-sizing: border-box;
|
|
930
930
|
}
|
|
931
931
|
|
|
932
932
|
.ft-radio {
|
|
933
933
|
box-sizing: border-box;
|
|
934
|
-
color: ${
|
|
934
|
+
color: ${ci};
|
|
935
935
|
|
|
936
936
|
display: inline-flex;
|
|
937
937
|
align-items: center;
|
|
@@ -939,7 +939,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
939
939
|
}
|
|
940
940
|
|
|
941
941
|
.ft-radio--disabled {
|
|
942
|
-
color: ${
|
|
942
|
+
color: ${hi};
|
|
943
943
|
}
|
|
944
944
|
|
|
945
945
|
input {
|
|
@@ -962,7 +962,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
962
962
|
}
|
|
963
963
|
|
|
964
964
|
.ft-radio--box {
|
|
965
|
-
border: 2px solid ${
|
|
965
|
+
border: 2px solid ${fi};
|
|
966
966
|
border-radius: 50%;
|
|
967
967
|
|
|
968
968
|
display: flex;
|
|
@@ -975,7 +975,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
975
975
|
|
|
976
976
|
.ft-radio--box:after {
|
|
977
977
|
content: " ";
|
|
978
|
-
background-color: ${
|
|
978
|
+
background-color: ${pi};
|
|
979
979
|
|
|
980
980
|
border-radius: 50%;
|
|
981
981
|
|
|
@@ -987,7 +987,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
987
987
|
}
|
|
988
988
|
|
|
989
989
|
.ft-radio--checked .ft-radio--box {
|
|
990
|
-
border-color: ${
|
|
990
|
+
border-color: ${pi};
|
|
991
991
|
}
|
|
992
992
|
|
|
993
993
|
|
|
@@ -996,14 +996,14 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
996
996
|
}
|
|
997
997
|
|
|
998
998
|
.ft-radio--disabled .ft-radio--box {
|
|
999
|
-
border-color: ${
|
|
999
|
+
border-color: ${hi};
|
|
1000
1000
|
background-color: transparent;
|
|
1001
1001
|
}
|
|
1002
1002
|
|
|
1003
1003
|
.ft-radio--disabled .ft-radio--box:after {
|
|
1004
|
-
background-color: ${
|
|
1004
|
+
background-color: ${hi};
|
|
1005
1005
|
}
|
|
1006
|
-
`;var
|
|
1006
|
+
`;var ui=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class gi extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class bi extends e.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return o.html`
|
|
1007
1007
|
<div class="${a.classMap(t)}">
|
|
1008
1008
|
<div class="ft-radio--box-container">
|
|
1009
1009
|
<ft-ripple
|
|
@@ -1028,16 +1028,16 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1028
1028
|
</ft-typography>
|
|
1029
1029
|
</label>
|
|
1030
1030
|
</div>
|
|
1031
|
-
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new
|
|
1031
|
+
`}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new gi(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new gi(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}bi.elementDefinitions={"ft-ripple":Be,"ft-typography":se},bi.styles=di,ui([i.property()],bi.prototype,"value",void 0),ui([i.property()],bi.prototype,"name",void 0),ui([i.property({type:Boolean,reflect:!0})],bi.prototype,"checked",void 0),ui([i.property({type:Boolean})],bi.prototype,"disabled",void 0),ui([i.query(".ft-radio")],bi.prototype,"container",void 0),ui([i.query("ft-ripple")],bi.prototype,"ripple",void 0),ui([i.query("input")],bi.prototype,"input",void 0);const yi=o.css`
|
|
1032
1032
|
:host {
|
|
1033
1033
|
display: contents;
|
|
1034
1034
|
}
|
|
1035
|
-
`;var
|
|
1035
|
+
`;var mi=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class vi extends e.FtLitElement{constructor(){super(...arguments),this.name=""}render(){return o.html`
|
|
1036
1036
|
<slot @slotchange=${this.onSlotChange}
|
|
1037
1037
|
@change=${this.onChange}
|
|
1038
1038
|
@keydown=${this.onKeyDown}
|
|
1039
1039
|
></slot>
|
|
1040
|
-
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),o=this.radioButtons.indexOf(e)-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}
|
|
1040
|
+
`}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value})),this.focusCurrentValue()}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),o=this.radioButtons.indexOf(e)-1;this.radioButtons[o<0?this.radioButtons.length-1:o].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}focusCurrentValue(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}vi.elementDefinitions={},vi.styles=yi,mi([i.property()],vi.prototype,"name",void 0),mi([i.queryAssignedElements()],vi.prototype,"radioButtons",void 0),e.customElement("ft-radio")(bi),e.customElement("ft-radio-group")(vi);const xi={borderRadiusM:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusM,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:e.FtCssVariableFactory.external(Wt.fontFamily,"Body2 typography"),fontSize:e.FtCssVariableFactory.external(Wt.fontSize,"Body2 typography"),fontWeight:e.FtCssVariableFactory.external(Wt.fontWeight,"Body2 typography"),letterSpacing:e.FtCssVariableFactory.external(Wt.letterSpacing,"Body2 typography"),lineHeight:e.FtCssVariableFactory.external(Wt.lineHeight,"Body2 typography"),textTransform:e.FtCssVariableFactory.external(Wt.textTransform,"Body2 typography")},$i=o.css`
|
|
1041
1041
|
.ft-filter-level--container {
|
|
1042
1042
|
display: flex;
|
|
1043
1043
|
flex-direction: column;
|
|
@@ -1051,14 +1051,14 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1051
1051
|
flex-shrink: 0;
|
|
1052
1052
|
text-decoration: none;
|
|
1053
1053
|
position: relative;
|
|
1054
|
-
border-radius: ${
|
|
1054
|
+
border-radius: ${xi.borderRadiusM};
|
|
1055
1055
|
overflow: hidden;
|
|
1056
1056
|
display: flex;
|
|
1057
1057
|
align-items: center;
|
|
1058
1058
|
padding: 4px 4px;
|
|
1059
1059
|
gap: 4px;
|
|
1060
1060
|
cursor: pointer;
|
|
1061
|
-
color: ${
|
|
1061
|
+
color: ${xi.colorOnSurface};
|
|
1062
1062
|
}
|
|
1063
1063
|
|
|
1064
1064
|
.ft-filter-level--go-back:focus {
|
|
@@ -1087,7 +1087,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1087
1087
|
}
|
|
1088
1088
|
|
|
1089
1089
|
ft-button {
|
|
1090
|
-
${e.setVariable(Ne.color
|
|
1090
|
+
${e.setVariable(Ne.color,xi.colorOnSurface)};
|
|
1091
1091
|
}
|
|
1092
1092
|
|
|
1093
1093
|
ft-radio, ft-checkbox {
|
|
@@ -1101,9 +1101,9 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1101
1101
|
|
|
1102
1102
|
.ft-filter-level--no-values {
|
|
1103
1103
|
margin: 10px 0;
|
|
1104
|
-
color: ${
|
|
1104
|
+
color: ${xi.colorOnSurfaceMedium};
|
|
1105
1105
|
}
|
|
1106
|
-
`;var
|
|
1106
|
+
`;var Oi=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class wi extends e.FtLitElement{constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=[...this.options];this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return o.html`
|
|
1107
1107
|
<div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
|
|
1108
1108
|
${null==this.parent?null:o.html`
|
|
1109
1109
|
<div tabindex="0"
|
|
@@ -1167,7 +1167,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1167
1167
|
@change=${t=>t.stopPropagation()}>
|
|
1168
1168
|
${t.renderOption?t.renderOption:t.label}
|
|
1169
1169
|
</ft-radio>
|
|
1170
|
-
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}
|
|
1170
|
+
`}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}wi.elementDefinitions={"ft-button":Xo,"ft-ripple":Be,"ft-typography":se,"ft-checkbox":si,"ft-icon":Go,"ft-radio":bi},wi.styles=$i,Oi([i.property({type:String})],wi.prototype,"filterId",void 0),Oi([i.property({type:Object})],wi.prototype,"parent",void 0),Oi([i.property({type:Array})],wi.prototype,"options",void 0),Oi([i.property({type:Boolean})],wi.prototype,"multivalued",void 0),Oi([i.property({type:Boolean})],wi.prototype,"disabled",void 0),Oi([i.property({type:Boolean})],wi.prototype,"hideSelectedOptions",void 0),Oi([i.property({type:Boolean})],wi.prototype,"preventNavigation",void 0),Oi([i.property({type:String})],wi.prototype,"filter",void 0),Oi([i.property({type:String})],wi.prototype,"moreValuesButtonLabel",void 0),Oi([i.property({type:String})],wi.prototype,"noValuesLabel",void 0),Oi([i.property({type:Number})],wi.prototype,"displayedValuesLimit",void 0),Oi([i.query(".ft-filter-level--container")],wi.prototype,"container",void 0),Oi([i.state()],wi.prototype,"displayedPages",void 0);const ki={buttonsColor:e.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",e.designSystemVariables.colorPrimary),buttonsZIndex:e.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","COLOR","1"),gap:e.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system")},Si=o.css`
|
|
1171
1171
|
.ft-snap-scroll {
|
|
1172
1172
|
box-sizing: border-box;
|
|
1173
1173
|
position: relative;
|
|
@@ -1202,7 +1202,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1202
1202
|
flex-wrap: nowrap;
|
|
1203
1203
|
align-items: flex-start;
|
|
1204
1204
|
justify-content: flex-start;
|
|
1205
|
-
gap: ${
|
|
1205
|
+
gap: ${ki.gap};
|
|
1206
1206
|
}
|
|
1207
1207
|
|
|
1208
1208
|
.ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
|
|
@@ -1245,11 +1245,11 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1245
1245
|
.ft-snap-scroll--next {
|
|
1246
1246
|
position: absolute;
|
|
1247
1247
|
display: flex;
|
|
1248
|
-
z-index: ${
|
|
1248
|
+
z-index: ${ki.buttonsZIndex};
|
|
1249
1249
|
opacity: 1;
|
|
1250
1250
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1251
1251
|
${e.setVariable(Ne.backgroundColor,"transparent")};
|
|
1252
|
-
${e.setVariable(Ne.color,
|
|
1252
|
+
${e.setVariable(Ne.color,ki.buttonsColor)};
|
|
1253
1253
|
}
|
|
1254
1254
|
|
|
1255
1255
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1262,37 +1262,37 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1262
1262
|
top: 0;
|
|
1263
1263
|
left: -1px;
|
|
1264
1264
|
bottom: 0;
|
|
1265
|
-
background: linear-gradient(to right, ${
|
|
1265
|
+
background: linear-gradient(to right, ${ki.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1266
1266
|
}
|
|
1267
1267
|
|
|
1268
1268
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous {
|
|
1269
1269
|
top: -1px;
|
|
1270
1270
|
left: 0;
|
|
1271
1271
|
right: 0;
|
|
1272
|
-
background: linear-gradient(to bottom, ${
|
|
1272
|
+
background: linear-gradient(to bottom, ${ki.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1273
1273
|
}
|
|
1274
1274
|
|
|
1275
1275
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next {
|
|
1276
1276
|
top: 0;
|
|
1277
1277
|
right: -1px;
|
|
1278
1278
|
bottom: 0;
|
|
1279
|
-
background: linear-gradient(to left, ${
|
|
1279
|
+
background: linear-gradient(to left, ${ki.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1280
1280
|
}
|
|
1281
1281
|
|
|
1282
1282
|
.ft-snap-scroll--vertical .ft-snap-scroll--next {
|
|
1283
1283
|
left: 0;
|
|
1284
1284
|
right: 0;
|
|
1285
1285
|
bottom: -1px;
|
|
1286
|
-
background: linear-gradient(to top, ${
|
|
1286
|
+
background: linear-gradient(to top, ${ki.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
|
|
1287
1287
|
}
|
|
1288
1288
|
|
|
1289
1289
|
.ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
|
|
1290
1290
|
.ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
|
|
1291
1291
|
.ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
|
|
1292
1292
|
.ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
|
|
1293
|
-
background-color: ${
|
|
1293
|
+
background-color: ${ki.colorSurface};
|
|
1294
1294
|
}
|
|
1295
|
-
`;var
|
|
1295
|
+
`;var Ni=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Ci extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class Ii extends e.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 e.Debouncer(200),this.updateScrollDebouncer=new e.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,o=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<o||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=a.classMap({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":e.isSafari}),i=this.controls&&this.withScroll;return o.html`
|
|
1296
1296
|
<div part="container" class="${t}">
|
|
1297
1297
|
<ft-button
|
|
1298
1298
|
class="ft-snap-scroll--previous"
|
|
@@ -1316,7 +1316,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1316
1316
|
@click=${this.next}
|
|
1317
1317
|
></ft-button>
|
|
1318
1318
|
</div>
|
|
1319
|
-
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new
|
|
1319
|
+
`}update(t){super.update(t),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Ci(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,o;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(o=this.contentSlot)||void 0===o||o.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}Ii.elementDefinitions={"ft-button":Xo},Ii.styles=Si,Ni([i.property({type:Boolean})],Ii.prototype,"horizontal",void 0),Ni([i.property({type:Boolean})],Ii.prototype,"hideScrollbar",void 0),Ni([i.property({type:Boolean})],Ii.prototype,"controls",void 0),Ni([i.property({type:Boolean})],Ii.prototype,"limitSize",void 0),Ni([i.state()],Ii.prototype,"elements",void 0),Ni([i.state()],Ii.prototype,"currentElement",void 0),Ni([i.state()],Ii.prototype,"withScroll",void 0),Ni([i.state()],Ii.prototype,"startReached",void 0),Ni([i.state()],Ii.prototype,"endReached",void 0),Ni([i.query(".ft-snap-scroll--content")],Ii.prototype,"contentSlot",void 0),e.customElement("ft-snap-scroll")(Ii);const Ei=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),Li=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),Ri=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),zi=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),Ui=e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),Wi=e.FtCssVariableFactory.external(e.designSystemVariables.transitionDuration,"Design system"),Bi=e.FtCssVariableFactory.external(e.designSystemVariables.transitionTimingFunction,"Design system"),Zi=[ee,o.css`
|
|
1320
1320
|
:host {
|
|
1321
1321
|
display: flex;
|
|
1322
1322
|
max-height: 100%;
|
|
@@ -1329,7 +1329,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1329
1329
|
flex-direction: column;
|
|
1330
1330
|
max-height: 100%;
|
|
1331
1331
|
max-width: 100%;
|
|
1332
|
-
color: ${
|
|
1332
|
+
color: ${Li};
|
|
1333
1333
|
}
|
|
1334
1334
|
|
|
1335
1335
|
.ft-filter--header {
|
|
@@ -1365,8 +1365,8 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1365
1365
|
padding: 0 10px;
|
|
1366
1366
|
overflow: hidden;
|
|
1367
1367
|
height: 32px;
|
|
1368
|
-
transition: height ${
|
|
1369
|
-
margin ${
|
|
1368
|
+
transition: height ${Wi} ${Bi},
|
|
1369
|
+
margin ${Wi} ${Bi};
|
|
1370
1370
|
transition-delay: 500ms;
|
|
1371
1371
|
}
|
|
1372
1372
|
|
|
@@ -1379,15 +1379,15 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1379
1379
|
display: block;
|
|
1380
1380
|
width: 100%;
|
|
1381
1381
|
border-radius: 4px;
|
|
1382
|
-
border: 1px solid ${
|
|
1382
|
+
border: 1px solid ${Ei};
|
|
1383
1383
|
padding: 4px;
|
|
1384
|
-
background-color: ${
|
|
1385
|
-
color: ${
|
|
1386
|
-
outline-color: ${
|
|
1384
|
+
background-color: ${Ui};
|
|
1385
|
+
color: ${Li};
|
|
1386
|
+
outline-color: ${zi};
|
|
1387
1387
|
}
|
|
1388
1388
|
|
|
1389
1389
|
input::placeholder {
|
|
1390
|
-
color: ${
|
|
1390
|
+
color: ${Ri};
|
|
1391
1391
|
}
|
|
1392
1392
|
|
|
1393
1393
|
input:placeholder-shown {
|
|
@@ -1403,7 +1403,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1403
1403
|
}
|
|
1404
1404
|
|
|
1405
1405
|
.ft-filter--separator {
|
|
1406
|
-
border-top: 1px solid ${
|
|
1406
|
+
border-top: 1px solid ${Ei};
|
|
1407
1407
|
margin: 4px 10px;
|
|
1408
1408
|
}
|
|
1409
1409
|
|
|
@@ -1428,7 +1428,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1428
1428
|
slot:not([name]) {
|
|
1429
1429
|
display: none;
|
|
1430
1430
|
}
|
|
1431
|
-
`];var
|
|
1431
|
+
`];var Fi=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Ki extends CustomEvent{constructor(t){super("change",{detail:t})}}class Di extends e.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new e.Debouncer(300),this.changeDebouncer=new e.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return e.flatDeep(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}get selectedValues(){return this.flatOptions.filter((t=>t.selected)).map((t=>t.value))}render(){const t=this.flatOptions.some((t=>t.selected)),e=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return o.html`
|
|
1432
1432
|
<div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
|
|
1433
1433
|
part="container">
|
|
1434
1434
|
${this.label||t?o.html`
|
|
@@ -1500,17 +1500,17 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1500
1500
|
.exportpartsPrefixes=${["values","available-values"]}
|
|
1501
1501
|
noValuesLabel="${this.noValuesLabel}"
|
|
1502
1502
|
></ft-filter-level>
|
|
1503
|
-
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const o=this.flatOptions.find((e=>e.value===t.detail.value));o.selected=!o.selected;const i=t=>{var e;t!==o&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(i)};this.multivalued?null===(e=o.subOptions)||void 0===e||e.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;e.deepEqual(this.lastDispatchedValues,t)||(this.dispatchEvent(new
|
|
1503
|
+
`}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const o=this.flatOptions.find((e=>e.value===t.detail.value));o.selected=!o.selected;const i=t=>{var e;t!==o&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(i)};this.multivalued?null===(e=o.subOptions)||void 0===e||e.forEach(i):this.options.forEach(i),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;this.sendEventIfValuesChanged(),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}sendEventIfValuesChanged(){const t=this.selectedValues;e.deepEqual(this.lastDispatchedValues,t)||(this.dispatchEvent(new Ki(t)),this.lastDispatchedValues=t)}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(){var t,e;this.filter=null!==(e=null===(t=this.filterInput)||void 0===t?void 0:t.value)&&void 0!==e?e:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}Di.elementDefinitions={"ft-button":Xo,"ft-filter-level":wi,"ft-snap-scroll":Ii,"ft-typography":se},Di.styles=Zi,Fi([i.property({type:String})],Di.prototype,"id",void 0),Fi([i.property({type:String})],Di.prototype,"label",void 0),Fi([i.property({type:String})],Di.prototype,"filterPlaceHolder",void 0),Fi([i.property({type:String})],Di.prototype,"clearButtonLabel",void 0),Fi([i.property({type:String})],Di.prototype,"moreValuesButtonLabel",void 0),Fi([i.property({type:String})],Di.prototype,"noValuesLabel",void 0),Fi([e.jsonProperty([])],Di.prototype,"options",void 0),Fi([i.property({type:Boolean})],Di.prototype,"multivalued",void 0),Fi([i.property({type:Boolean})],Di.prototype,"disabled",void 0),Fi([i.property({type:Boolean})],Di.prototype,"raiseSelectedOptions",void 0),Fi([i.property({type:Number})],Di.prototype,"displayedValuesLimit",void 0),Fi([i.property({type:Boolean})],Di.prototype,"hideClearButton",void 0),Fi([i.query(".ft-filter--slot")],Di.prototype,"slotElement",void 0),Fi([i.query(".ft-filter--container")],Di.prototype,"container",void 0),Fi([i.query(".ft-filter--values")],Di.prototype,"valuesContainer",void 0),Fi([i.query(".ft-filter--levels")],Di.prototype,"levelsContainer",void 0),Fi([i.state()],Di.prototype,"lastLevelHasHiddenvalues",void 0),Fi([i.query(".ft-filter--filter input")],Di.prototype,"filterInput",void 0),Fi([i.queryAll(".ft-filter--levels ft-filter-level")],Di.prototype,"levels",void 0),Fi([i.state()],Di.prototype,"withScroll",void 0),Fi([i.state()],Di.prototype,"filter",void 0),Fi([i.state()],Di.prototype,"slideIn",void 0),Fi([i.state()],Di.prototype,"slideOut",void 0);var Ai=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Hi extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return o.html`
|
|
1504
1504
|
<slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
|
|
1505
|
-
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}
|
|
1505
|
+
`}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Hi.elementDefinitions={},Ai([i.property({type:String})],Hi.prototype,"label",void 0),Ai([i.property({type:Object,converter:t=>t})],Hi.prototype,"value",void 0),Ai([i.property({type:Boolean,reflect:!0})],Hi.prototype,"selected",void 0),Ai([i.property({type:Object})],Hi.prototype,"subOptions",void 0),Ai([e.jsonProperty({})],Hi.prototype,"renderOption",void 0),Ai([i.query(".ft-filter-option--slot")],Hi.prototype,"slotElement",void 0),e.customElement("ft-filter")(Di),e.customElement("ft-filter-option")(Hi);const Pi=o.css`
|
|
1506
1506
|
.ft-accordion {
|
|
1507
1507
|
box-sizing: border-box;
|
|
1508
1508
|
}
|
|
1509
|
-
`;var
|
|
1509
|
+
`;var Mi=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class ji extends e.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return o.html`
|
|
1510
1510
|
<div class="ft-accordion">
|
|
1511
1511
|
<slot @activated=${this.onChange}></slot>
|
|
1512
1512
|
</div>
|
|
1513
|
-
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}
|
|
1513
|
+
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}ji.elementDefinitions={},ji.styles=Pi,Mi([i.property({type:Boolean})],ji.prototype,"multi",void 0),Mi([i.query("slot")],ji.prototype,"content",void 0);const Ti=e.FtCssVariableFactory.create("--ft-accordion-toggle-horizontal-spacing","","SIZE","16px"),Gi=e.FtCssVariableFactory.create("--ft-accordion-toggle-vertical-spacing","","SIZE","16px"),_i=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),Vi=o.css`
|
|
1514
1514
|
.ft-accordion-item {
|
|
1515
1515
|
display: flex;
|
|
1516
1516
|
flex-direction: column;
|
|
@@ -1523,8 +1523,8 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1523
1523
|
display: flex;
|
|
1524
1524
|
align-items: center;
|
|
1525
1525
|
cursor: pointer;
|
|
1526
|
-
padding: ${
|
|
1527
|
-
gap: calc(${
|
|
1526
|
+
padding: ${Gi} ${Ti};
|
|
1527
|
+
gap: calc(${Ti} / 2);
|
|
1528
1528
|
outline: none;
|
|
1529
1529
|
}
|
|
1530
1530
|
|
|
@@ -1549,13 +1549,13 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1549
1549
|
.ft-accordion-item--active .ft-accordion-item--content {
|
|
1550
1550
|
height: initial;
|
|
1551
1551
|
overflow: visible;
|
|
1552
|
-
padding: ${
|
|
1552
|
+
padding: ${Gi} ${Ti};
|
|
1553
1553
|
}
|
|
1554
1554
|
|
|
1555
1555
|
.ft-accordion-item--separator {
|
|
1556
|
-
border-bottom: 1px solid ${
|
|
1556
|
+
border-bottom: 1px solid ${_i};
|
|
1557
1557
|
}
|
|
1558
|
-
`;var
|
|
1558
|
+
`;var qi=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class Yi extends e.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return o.html`
|
|
1559
1559
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
1560
1560
|
<div class="ft-accordion-item--toggle"
|
|
1561
1561
|
part="toggle"
|
|
@@ -1585,7 +1585,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1585
1585
|
</div>
|
|
1586
1586
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1587
1587
|
</div>
|
|
1588
|
-
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}
|
|
1588
|
+
`}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}Yi.elementDefinitions={"ft-ripple":Be,"ft-typography":se,"ft-icon":Go},Yi.styles=Vi,qi([i.property()],Yi.prototype,"icon",void 0),qi([i.property()],Yi.prototype,"iconVariant",void 0),qi([i.property()],Yi.prototype,"label",void 0),qi([i.property({type:Boolean,reflect:!0})],Yi.prototype,"active",void 0),e.customElement("ft-accordion")(ji),e.customElement("ft-accordion-item")(Yi);const Xi=e.FtCssVariableFactory.extend("--ft-chip-color","",e.designSystemVariables.colorOnSurface),Ji={backgroundColor:e.FtCssVariableFactory.extend("--ft-chip-background-color","",e.designSystemVariables.colorSurface),color:Xi,fontSize:e.FtCssVariableFactory.extend("--ft-chip-font-size","",Wt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:e.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Xi),horizontalPadding:e.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:e.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Qi=e.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",e.FtCssVariableFactory.extend("--ft-chip-color","",e.designSystemVariables.colorOnPrimary)),tr={backgroundColor:e.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",e.FtCssVariableFactory.extend("--ft-chip-background-color","",e.designSystemVariables.colorPrimary)),color:Qi,rippleColor:e.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Qi)},er=e.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),or=e.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),ir=[e.noTextSelect,o.css`
|
|
1589
1589
|
:host {
|
|
1590
1590
|
display: inline-block;
|
|
1591
1591
|
max-width: 100%;
|
|
@@ -1601,20 +1601,20 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1601
1601
|
box-sizing: border-box;
|
|
1602
1602
|
pointer-events: auto;
|
|
1603
1603
|
|
|
1604
|
-
--ft-chip-internal-font-size: ${
|
|
1604
|
+
--ft-chip-internal-font-size: ${Ji.fontSize};
|
|
1605
1605
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
1606
|
-
${e.setVariable(we.size,
|
|
1607
|
-
--ft-chip-internal-vertical-padding: ${
|
|
1608
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
1606
|
+
${e.setVariable(we.size,Ji.iconSize)};
|
|
1607
|
+
--ft-chip-internal-vertical-padding: ${Ji.verticalPadding};
|
|
1608
|
+
--ft-chip-internal-horizontal-padding: ${Ji.horizontalPadding};
|
|
1609
1609
|
--ft-chip-internal-icon-padding: 3px;
|
|
1610
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
1610
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Ji.iconSize});
|
|
1611
1611
|
|
|
1612
|
-
border: 1px solid ${
|
|
1613
|
-
color: ${
|
|
1614
|
-
${e.setVariable(de.color,
|
|
1612
|
+
border: 1px solid ${Ji.colorOutline};
|
|
1613
|
+
color: ${Ji.color};
|
|
1614
|
+
${e.setVariable(de.color,Ji.rippleColor)};
|
|
1615
1615
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
1616
1616
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
1617
|
-
background-color: ${
|
|
1617
|
+
background-color: ${Ji.backgroundColor};
|
|
1618
1618
|
line-height: var(--ft-chip-internal-content-height);
|
|
1619
1619
|
}
|
|
1620
1620
|
|
|
@@ -1624,8 +1624,8 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1624
1624
|
|
|
1625
1625
|
.ft-chip--dense {
|
|
1626
1626
|
--ft-chip-internal-icon-padding: 3px;
|
|
1627
|
-
--ft-chip-internal-vertical-padding: ${
|
|
1628
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
1627
|
+
--ft-chip-internal-vertical-padding: ${or};
|
|
1628
|
+
--ft-chip-internal-horizontal-padding: ${er};
|
|
1629
1629
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
1630
1630
|
}
|
|
1631
1631
|
|
|
@@ -1637,15 +1637,15 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1637
1637
|
cursor: default;
|
|
1638
1638
|
pointer-events: none;
|
|
1639
1639
|
filter: grayscale(1);
|
|
1640
|
-
opacity: ${
|
|
1640
|
+
opacity: ${Ji.opacityDisabled};
|
|
1641
1641
|
}
|
|
1642
1642
|
|
|
1643
1643
|
.ft-chip--highlighted {
|
|
1644
1644
|
border: none;
|
|
1645
1645
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
1646
|
-
background-color: ${
|
|
1647
|
-
${e.setVariable(de.color,
|
|
1648
|
-
color: ${
|
|
1646
|
+
background-color: ${tr.backgroundColor};
|
|
1647
|
+
${e.setVariable(de.color,tr.rippleColor)};
|
|
1648
|
+
color: ${tr.color};
|
|
1649
1649
|
}
|
|
1650
1650
|
|
|
1651
1651
|
.ft-chip--clickable {
|
|
@@ -1675,7 +1675,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1675
1675
|
}
|
|
1676
1676
|
|
|
1677
1677
|
.ft-chip--icon-button {
|
|
1678
|
-
${e.setVariable(Ne.iconSize,
|
|
1678
|
+
${e.setVariable(Ne.iconSize,Ji.iconSize)};
|
|
1679
1679
|
${e.setVariable(Ne.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
1680
1680
|
${e.setVariable(Ne.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
1681
1681
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
@@ -1722,7 +1722,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1722
1722
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
1723
1723
|
order: -1;
|
|
1724
1724
|
}
|
|
1725
|
-
`];var
|
|
1725
|
+
`];var rr=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class ar extends CustomEvent{constructor(){super("icon-click")}}class nr extends e.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(){const t={"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":e.isSafari};return o.html`
|
|
1726
1726
|
<div class="${a.classMap(t)}"
|
|
1727
1727
|
aria-label="${this.getLabel()}"
|
|
1728
1728
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -1745,25 +1745,25 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1745
1745
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
1746
1746
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
1747
1747
|
</div>
|
|
1748
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
1748
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ar))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ar))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}nr.elementDefinitions={"ft-ripple":Be,"ft-typography":se,"ft-icon":Go,"ft-button":Xo},nr.styles=ir,rr([i.property({type:Boolean})],nr.prototype,"highlighted",void 0),rr([i.property({type:Boolean})],nr.prototype,"removable",void 0),rr([i.property({type:Boolean})],nr.prototype,"disabled",void 0),rr([i.property({type:Boolean})],nr.prototype,"clickable",void 0),rr([i.property({type:Boolean})],nr.prototype,"iconClickable",void 0),rr([i.property({type:Boolean})],nr.prototype,"dense",void 0),rr([i.property({type:Boolean})],nr.prototype,"multiLine",void 0),rr([i.property()],nr.prototype,"label",void 0),rr([i.property()],nr.prototype,"iconLabel",void 0),rr([i.property()],nr.prototype,"icon",void 0),rr([i.property()],nr.prototype,"iconVariant",void 0),rr([i.property({type:Boolean})],nr.prototype,"trailingIcon",void 0),rr([i.query("ft-typography slot")],nr.prototype,"slottedContent",void 0),e.customElement("ft-chip")(nr);const lr={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:e.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color","",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color","",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},sr=o.css`
|
|
1749
1749
|
.ft-input-label {
|
|
1750
1750
|
position: absolute;
|
|
1751
1751
|
inset: 0;
|
|
1752
1752
|
display: flex;
|
|
1753
|
-
background-color: ${
|
|
1754
|
-
border-radius: ${
|
|
1753
|
+
background-color: ${lr.colorSurface};
|
|
1754
|
+
border-radius: ${lr.borderRadiusS} ${lr.borderRadiusS} 0 0;
|
|
1755
1755
|
}
|
|
1756
1756
|
|
|
1757
1757
|
.ft-input-label--outlined {
|
|
1758
|
-
border-radius: ${
|
|
1758
|
+
border-radius: ${lr.borderRadiusS};
|
|
1759
1759
|
}
|
|
1760
1760
|
|
|
1761
1761
|
.ft-input-label {
|
|
1762
|
-
border-color: ${
|
|
1762
|
+
border-color: ${lr.borderColor};
|
|
1763
1763
|
}
|
|
1764
1764
|
|
|
1765
1765
|
.ft-input-label.ft-input-label--in-error {
|
|
1766
|
-
border-color: ${
|
|
1766
|
+
border-color: ${lr.colorError}
|
|
1767
1767
|
}
|
|
1768
1768
|
|
|
1769
1769
|
.ft-input-label:before,
|
|
@@ -1776,7 +1776,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1776
1776
|
}
|
|
1777
1777
|
|
|
1778
1778
|
.ft-input-label:before {
|
|
1779
|
-
width: calc(${
|
|
1779
|
+
width: calc(${lr.horizontalSpacing} - 4px);
|
|
1780
1780
|
flex-shrink: 0;
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
@@ -1792,20 +1792,20 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1792
1792
|
border-bottom-width: 1px;
|
|
1793
1793
|
border-bottom-style: solid;
|
|
1794
1794
|
border-color: inherit;
|
|
1795
|
-
color: ${
|
|
1795
|
+
color: ${lr.textColor};
|
|
1796
1796
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
1797
|
-
max-width: calc(${
|
|
1797
|
+
max-width: calc(${lr.labelMaxWidth} - 2 * (${lr.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
1798
1798
|
text-overflow: ellipsis;
|
|
1799
|
-
${e.setVariable(Bt.fontSize,
|
|
1800
|
-
${e.setVariable(Bt.lineHeight,
|
|
1799
|
+
${e.setVariable(Bt.fontSize,lr.fontSize)};
|
|
1800
|
+
${e.setVariable(Bt.lineHeight,lr.fontSize)};
|
|
1801
1801
|
}
|
|
1802
1802
|
|
|
1803
1803
|
.ft-input-label--in-error .ft-input-label--text {
|
|
1804
|
-
color: ${
|
|
1804
|
+
color: ${lr.colorError}
|
|
1805
1805
|
}
|
|
1806
1806
|
|
|
1807
1807
|
.ft-input-label--disabled .ft-input-label--text {
|
|
1808
|
-
color: ${
|
|
1808
|
+
color: ${lr.disabledTextColor};
|
|
1809
1809
|
}
|
|
1810
1810
|
|
|
1811
1811
|
.ft-input-label--hidden-text {
|
|
@@ -1822,19 +1822,19 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1822
1822
|
overflow: hidden;
|
|
1823
1823
|
white-space: nowrap;
|
|
1824
1824
|
text-overflow: ellipsis;
|
|
1825
|
-
padding: ${
|
|
1826
|
-
margin: calc(${
|
|
1825
|
+
padding: ${lr.verticalSpacing} 4px;
|
|
1826
|
+
margin: calc(${lr.verticalSpacing} * -1) 0;
|
|
1827
1827
|
max-width: 100%;
|
|
1828
1828
|
box-sizing: border-box;
|
|
1829
1829
|
}
|
|
1830
1830
|
|
|
1831
1831
|
.ft-input-label--raised .ft-input-label--text {
|
|
1832
|
-
${e.setVariable(Bt.fontSize,
|
|
1833
|
-
${e.setVariable(Bt.lineHeight,
|
|
1832
|
+
${e.setVariable(Bt.fontSize,lr.raisedFontSize)};
|
|
1833
|
+
${e.setVariable(Bt.lineHeight,lr.raisedFontSize)};
|
|
1834
1834
|
}
|
|
1835
1835
|
|
|
1836
1836
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
1837
|
-
top: ${
|
|
1837
|
+
top: ${lr.verticalSpacing};
|
|
1838
1838
|
}
|
|
1839
1839
|
|
|
1840
1840
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -1847,27 +1847,27 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1847
1847
|
.ft-input-label--outlined:before {
|
|
1848
1848
|
border-left-width: 1px;
|
|
1849
1849
|
border-left-style: solid;
|
|
1850
|
-
border-radius: ${
|
|
1850
|
+
border-radius: ${lr.borderRadiusS} 0 0 ${lr.borderRadiusS};
|
|
1851
1851
|
}
|
|
1852
1852
|
|
|
1853
1853
|
.ft-input-label--outlined:after {
|
|
1854
1854
|
border-right-width: 1px;
|
|
1855
1855
|
border-right-style: solid;
|
|
1856
|
-
border-radius: 0 ${
|
|
1856
|
+
border-radius: 0 ${lr.borderRadiusS} ${lr.borderRadiusS} 0;
|
|
1857
1857
|
}
|
|
1858
1858
|
|
|
1859
1859
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
1860
1860
|
padding: 2px 4px;
|
|
1861
|
-
z-index: ${
|
|
1862
|
-
background-color: ${
|
|
1863
|
-
border-radius: ${
|
|
1861
|
+
z-index: ${lr.raisedZIndex};
|
|
1862
|
+
background-color: ${lr.colorSurface};
|
|
1863
|
+
border-radius: ${lr.borderRadiusS};
|
|
1864
1864
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
1865
1865
|
}
|
|
1866
1866
|
|
|
1867
1867
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
1868
1868
|
border-top: none;
|
|
1869
1869
|
}
|
|
1870
|
-
`;var
|
|
1870
|
+
`;var cr=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class pr extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"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 o.html`
|
|
1871
1871
|
<div class="${a.classMap(t)}">
|
|
1872
1872
|
${this.text?o.html`
|
|
1873
1873
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -1876,7 +1876,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1876
1876
|
</div>
|
|
1877
1877
|
`:null}
|
|
1878
1878
|
</div>
|
|
1879
|
-
`}}
|
|
1879
|
+
`}}pr.elementDefinitions={},pr.styles=[ee,sr],cr([i.property({type:String})],pr.prototype,"text",void 0),cr([i.property({type:Boolean})],pr.prototype,"raised",void 0),cr([i.property({type:Boolean})],pr.prototype,"outlined",void 0),cr([i.property({type:Boolean})],pr.prototype,"disabled",void 0),cr([i.property({type:Boolean})],pr.prototype,"error",void 0),e.customElement("ft-input-label")(pr);const fr={labelSize:e.FtCssVariableFactory.create("--ft-select-label-size","","SIZE","11px"),selectedOptionSize:e.FtCssVariableFactory.create("--ft-select-selected-option-size","","SIZE","14px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-select-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-select-horizontal-spacing","","SIZE","16px"),optionsHeight:e.FtCssVariableFactory.create("--ft-select-options-height","","SIZE","unset"),selectedOptionColor:e.FtCssVariableFactory.extend("--ft-select-selected-option-color","",e.designSystemVariables.colorOnSurface),helperColor:e.FtCssVariableFactory.extend("--ft-select-helper-color","",e.designSystemVariables.colorOnSurfaceMedium),optionsColor:e.FtCssVariableFactory.extend("--ft-select-options-color","",e.designSystemVariables.colorOnSurface),optionsZIndex:e.FtCssVariableFactory.create("--ft-select-options-z-index","","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},hr=o.css`
|
|
1880
1880
|
*:focus {
|
|
1881
1881
|
outline: none;
|
|
1882
1882
|
}
|
|
@@ -1890,7 +1890,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1890
1890
|
.ft-select--main-panel {
|
|
1891
1891
|
position: relative;
|
|
1892
1892
|
display: flex;
|
|
1893
|
-
height: calc(4 * ${
|
|
1893
|
+
height: calc(4 * ${fr.verticalSpacing} + ${fr.labelSize} + ${fr.selectedOptionSize});
|
|
1894
1894
|
}
|
|
1895
1895
|
|
|
1896
1896
|
.ft-select--input-panel {
|
|
@@ -1899,11 +1899,11 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1899
1899
|
display: flex;
|
|
1900
1900
|
align-items: center;
|
|
1901
1901
|
overflow: hidden;
|
|
1902
|
-
padding-left: ${
|
|
1903
|
-
padding-right: ${
|
|
1902
|
+
padding-left: ${fr.horizontalSpacing};
|
|
1903
|
+
padding-right: ${fr.horizontalSpacing};
|
|
1904
1904
|
gap: 8px;
|
|
1905
|
-
color: ${
|
|
1906
|
-
${e.setVariable(de.color,
|
|
1905
|
+
color: ${fr.selectedOptionColor};
|
|
1906
|
+
${e.setVariable(de.color,fr.selectedOptionColor)};
|
|
1907
1907
|
}
|
|
1908
1908
|
|
|
1909
1909
|
.ft-select--input-panel,
|
|
@@ -1919,7 +1919,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1919
1919
|
|
|
1920
1920
|
.ft-select--disabled .ft-select--input-panel,
|
|
1921
1921
|
.ft-select--disabled .ft-select--option {
|
|
1922
|
-
color: ${
|
|
1922
|
+
color: ${fr.colorOnSurfaceDisabled};
|
|
1923
1923
|
}
|
|
1924
1924
|
|
|
1925
1925
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -1928,20 +1928,20 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1928
1928
|
}
|
|
1929
1929
|
|
|
1930
1930
|
ft-input-label {
|
|
1931
|
-
${e.setVariable(
|
|
1932
|
-
${e.setVariable(
|
|
1933
|
-
${e.setVariable(
|
|
1934
|
-
${e.setVariable(
|
|
1935
|
-
${e.setVariable(
|
|
1931
|
+
${e.setVariable(lr.fontSize,fr.selectedOptionSize)};
|
|
1932
|
+
${e.setVariable(lr.raisedFontSize,fr.labelSize)};
|
|
1933
|
+
${e.setVariable(lr.verticalSpacing,fr.verticalSpacing)};
|
|
1934
|
+
${e.setVariable(lr.horizontalSpacing,fr.horizontalSpacing)};
|
|
1935
|
+
${e.setVariable(lr.labelMaxWidth,`calc(100% - ${we.size} - 8px)`)};
|
|
1936
1936
|
}
|
|
1937
1937
|
|
|
1938
1938
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
1939
|
-
color: ${
|
|
1939
|
+
color: ${fr.colorPrimary};
|
|
1940
1940
|
}
|
|
1941
1941
|
|
|
1942
1942
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
1943
|
-
${e.setVariable(
|
|
1944
|
-
${e.setVariable(
|
|
1943
|
+
${e.setVariable(lr.borderColor,fr.colorPrimary)};
|
|
1944
|
+
${e.setVariable(lr.textColor,fr.colorPrimary)};
|
|
1945
1945
|
}
|
|
1946
1946
|
|
|
1947
1947
|
.ft-select--selected-option {
|
|
@@ -1951,12 +1951,12 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1951
1951
|
overflow: hidden;
|
|
1952
1952
|
white-space: nowrap;
|
|
1953
1953
|
text-overflow: ellipsis;
|
|
1954
|
-
${e.setVariable(Ut.fontSize,
|
|
1955
|
-
${e.setVariable(Ut.lineHeight,
|
|
1954
|
+
${e.setVariable(Ut.fontSize,fr.selectedOptionSize)};
|
|
1955
|
+
${e.setVariable(Ut.lineHeight,fr.selectedOptionSize)};
|
|
1956
1956
|
}
|
|
1957
1957
|
|
|
1958
1958
|
.ft-select--in-error .ft-select--selected-option {
|
|
1959
|
-
color: ${
|
|
1959
|
+
color: ${fr.colorError};
|
|
1960
1960
|
}
|
|
1961
1961
|
|
|
1962
1962
|
ft-icon {
|
|
@@ -1968,16 +1968,16 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1968
1968
|
}
|
|
1969
1969
|
|
|
1970
1970
|
.ft-select--filled .ft-select--input-panel {
|
|
1971
|
-
border-radius: ${
|
|
1971
|
+
border-radius: ${fr.borderRadiusS} ${fr.borderRadiusS} 0 0;
|
|
1972
1972
|
}
|
|
1973
1973
|
|
|
1974
1974
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
1975
1975
|
align-self: stretch;
|
|
1976
|
-
padding-top: calc(${
|
|
1976
|
+
padding-top: calc(${fr.labelSize} + 2 * ${fr.verticalSpacing});
|
|
1977
1977
|
}
|
|
1978
1978
|
|
|
1979
1979
|
.ft-select--outlined .ft-select--input-panel {
|
|
1980
|
-
border-radius: ${
|
|
1980
|
+
border-radius: ${fr.borderRadiusS};
|
|
1981
1981
|
}
|
|
1982
1982
|
|
|
1983
1983
|
.ft-select--options {
|
|
@@ -1986,10 +1986,10 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
1986
1986
|
top: 100%;
|
|
1987
1987
|
left: 0;
|
|
1988
1988
|
right: 0;
|
|
1989
|
-
color: ${
|
|
1990
|
-
background: ${
|
|
1991
|
-
z-index: ${
|
|
1992
|
-
box-shadow: ${
|
|
1989
|
+
color: ${fr.optionsColor};
|
|
1990
|
+
background: ${fr.colorSurface};
|
|
1991
|
+
z-index: ${fr.optionsZIndex};
|
|
1992
|
+
box-shadow: ${fr.elevation02};
|
|
1993
1993
|
}
|
|
1994
1994
|
|
|
1995
1995
|
.ft-select--fixed .ft-select--options {
|
|
@@ -2000,13 +2000,13 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2000
2000
|
|
|
2001
2001
|
.ft-select--options-displayed .ft-select--options {
|
|
2002
2002
|
display: block;
|
|
2003
|
-
max-height: ${
|
|
2003
|
+
max-height: ${fr.optionsHeight};
|
|
2004
2004
|
overflow-y: auto;
|
|
2005
2005
|
}
|
|
2006
2006
|
|
|
2007
2007
|
.ft-select--option {
|
|
2008
2008
|
position: relative;
|
|
2009
|
-
padding: 4px ${
|
|
2009
|
+
padding: 4px ${fr.horizontalSpacing};
|
|
2010
2010
|
min-height: 32px;
|
|
2011
2011
|
display: flex;
|
|
2012
2012
|
align-items: center;
|
|
@@ -2018,15 +2018,15 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2018
2018
|
}
|
|
2019
2019
|
|
|
2020
2020
|
.ft-select--helper-text {
|
|
2021
|
-
padding: 0 ${
|
|
2022
|
-
color: ${
|
|
2021
|
+
padding: 0 ${fr.horizontalSpacing};
|
|
2022
|
+
color: ${fr.helperColor};
|
|
2023
2023
|
}
|
|
2024
2024
|
|
|
2025
2025
|
.ft-select--in-error .ft-select--helper-text {
|
|
2026
|
-
color: ${
|
|
2026
|
+
color: ${fr.colorError};
|
|
2027
2027
|
}
|
|
2028
|
-
`;var
|
|
2029
|
-
<div class="${a.classMap(
|
|
2028
|
+
`;var dr=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};class ur extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return o.html``}update(t){super.update(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}ur.elementDefinitions={},dr([i.property({type:String})],ur.prototype,"label",void 0),dr([i.property({type:Object,converter:t=>t})],ur.prototype,"value",void 0),dr([i.property({type:Boolean,reflect:!0})],ur.prototype,"selected",void 0);class gr extends e.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=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,n,l;let s=this.hasOptionsMenuOpen,c=this.disabled||!this.hasOptions;const p=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,f={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":c,"ft-select--options-displayed":s,"ft-select--has-option-selected":p,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return o.html`
|
|
2029
|
+
<div class="${a.classMap(f)}" part="container">
|
|
2030
2030
|
<div class="ft-select--main-panel" part="main-panel">
|
|
2031
2031
|
<ft-input-label text="${this.label}"
|
|
2032
2032
|
part="label"
|
|
@@ -2073,34 +2073,34 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2073
2073
|
<ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
|
|
2074
2074
|
<span>${t.label}</span>
|
|
2075
2075
|
</div>
|
|
2076
|
-
`}update(t){super.update(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,o;super.contentAvailableCallback(t),t.has("focusOptions")&&this.focusOptions&&(null===(o=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===o||o.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let o=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));o&&o.length>0&&(this.options=o)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,o,i,r,a;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(i=null===(o=this.focusedOption)||void 0===o?void 0:o.previousElementSibling)&&void 0!==i?i:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(a=null===(r=this.focusedOption)||void 0===r?void 0:r.nextElementSibling)&&void 0!==a?a:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,e){var o;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(o=this.mainPanel)||void 0===o||o.focus())}selectOption(t){var o,i;if(!e.deepEqual(null===(o=this.selectedOption)||void 0===o?void 0:o.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}
|
|
2076
|
+
`}update(t){super.update(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.width=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,o;super.contentAvailableCallback(t),t.has("focusOptions")&&this.focusOptions&&(null===(o=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===o||o.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let o=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));o&&o.length>0&&(this.options=o)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,o,i,r,a;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(i=null===(o=this.focusedOption)||void 0===o?void 0:o.previousElementSibling)&&void 0!==i?i:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(a=null===(r=this.focusedOption)||void 0===r?void 0:r.nextElementSibling)&&void 0!==a?a:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,e){var o;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(o=this.mainPanel)||void 0===o||o.focus())}selectOption(t){var o,i;if(!e.deepEqual(null===(o=this.selectedOption)||void 0===o?void 0:o.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(i=this.selectedOption)||void 0===i?void 0:i.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}gr.elementDefinitions={"ft-input-label":pr,"ft-typography":se,"ft-ripple":Be,"ft-icon":Go},gr.styles=[te,ee,hr],dr([i.property({type:String})],gr.prototype,"label",void 0),dr([i.property({type:String})],gr.prototype,"helper",void 0),dr([i.property({type:Boolean})],gr.prototype,"outlined",void 0),dr([i.property({type:Boolean})],gr.prototype,"disabled",void 0),dr([i.property({type:Boolean})],gr.prototype,"error",void 0),dr([i.property({type:Boolean})],gr.prototype,"fixedMenuPosition",void 0),dr([i.property({type:Array})],gr.prototype,"options",void 0),dr([i.state()],gr.prototype,"selectedOption",void 0),dr([i.state()],gr.prototype,"optionsDisplayed",void 0),dr([i.state()],gr.prototype,"focusOptions",void 0),dr([i.query(".ft-select")],gr.prototype,"container",void 0),dr([i.query(".ft-select--options")],gr.prototype,"optionsMenu",void 0),dr([i.query(".ft-select--input-panel")],gr.prototype,"mainPanel",void 0),dr([i.query(".ft-select--option:first-child")],gr.prototype,"firstOption",void 0),dr([i.query(".ft-select--option:focus")],gr.prototype,"focusedOption",void 0),dr([i.query(".ft-select--option.ft-select--option-selected")],gr.prototype,"selectedOptionElement",void 0),dr([i.query(".ft-select--option:last-child")],gr.prototype,"lastOption",void 0),dr([i.query("slot")],gr.prototype,"optionsSlot",void 0),e.customElement("ft-select")(gr),e.customElement("ft-select-option")(ur);const br={display:e.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:e.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:e.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:e.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:e.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:e.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:e.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusM,"Design system")},yr=o.css`
|
|
2077
2077
|
:host {
|
|
2078
|
-
width: ${
|
|
2079
|
-
height: ${
|
|
2080
|
-
display: ${
|
|
2078
|
+
width: ${br.width};
|
|
2079
|
+
height: ${br.height};
|
|
2080
|
+
display: ${br.display};
|
|
2081
2081
|
overflow: hidden;
|
|
2082
|
-
border-radius: ${
|
|
2082
|
+
border-radius: ${br.borderRadiusM};
|
|
2083
2083
|
background: linear-gradient(
|
|
2084
2084
|
90deg,
|
|
2085
2085
|
transparent,
|
|
2086
|
-
${
|
|
2087
|
-
${
|
|
2088
|
-
transparent ${
|
|
2089
|
-
), ${
|
|
2086
|
+
${br.glareColor} calc(0.45 * ${br.glareWidth}),
|
|
2087
|
+
${br.glareColor} calc(0.55 * ${br.glareWidth}),
|
|
2088
|
+
transparent ${br.glareWidth}
|
|
2089
|
+
), ${br.backgroundColor};
|
|
2090
2090
|
background-repeat: repeat-y;
|
|
2091
2091
|
background-size: 100vw 100vh;
|
|
2092
2092
|
background-attachment: fixed;
|
|
2093
|
-
background-position: calc(${
|
|
2094
|
-
animation: shine ${
|
|
2093
|
+
background-position: calc(${br.glareWidth} * -1) 0;
|
|
2094
|
+
animation: shine ${br.animationDuration} infinite;
|
|
2095
2095
|
animation-timing-function: linear;
|
|
2096
2096
|
}
|
|
2097
2097
|
|
|
2098
2098
|
@keyframes shine {
|
|
2099
2099
|
to {
|
|
2100
|
-
background-position: calc(100vw + ${
|
|
2100
|
+
background-position: calc(100vw + ${br.glareWidth}) 0, calc(${br.glareWidth} * -1) 0;
|
|
2101
2101
|
}
|
|
2102
2102
|
}
|
|
2103
|
-
`,
|
|
2103
|
+
`,mr={height:e.FtCssVariableFactory.create("--ft-search-bar-height","","SIZE","38px"),borderRadius:e.FtCssVariableFactory.extend("--ft-search-bar-border-radius","",e.designSystemVariables.borderRadiusS),mobileOpenPosition:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-position","","POSITION","fixed"),mobileOpenTop:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-top","","SIZE","0"),mobileOpenBottom:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-bottom","","SIZE","0"),mobileOpenLeft:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-left","","SIZE","0"),mobileOpenRight:e.FtCssVariableFactory.create("--ft-search-bar-mobile-open-right","","SIZE","0"),desktopFiltersHeight:e.FtCssVariableFactory.create("--ft-search-bar-desktop-filters-height","","SIZE","350px"),floatingZIndex:e.FtCssVariableFactory.create("--ft-search-bar-floating-components-z-index","","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),buttonColor:e.FtCssVariableFactory.external(Ne.color,"Button"),buttonRippleColor:e.FtCssVariableFactory.external(Ne.rippleColor,"Button")},vr=o.css`
|
|
2104
2104
|
* {
|
|
2105
2105
|
box-sizing: border-box;
|
|
2106
2106
|
}
|
|
@@ -2109,7 +2109,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2109
2109
|
display: flex;
|
|
2110
2110
|
flex-direction: column;
|
|
2111
2111
|
gap: 8px;
|
|
2112
|
-
color: ${
|
|
2112
|
+
color: ${mr.colorOnSurface};
|
|
2113
2113
|
outline: none;
|
|
2114
2114
|
}
|
|
2115
2115
|
|
|
@@ -2118,21 +2118,21 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2118
2118
|
}
|
|
2119
2119
|
|
|
2120
2120
|
.ft-search-bar--mobile-menu-open {
|
|
2121
|
-
position: ${
|
|
2122
|
-
top: ${
|
|
2123
|
-
bottom: ${
|
|
2124
|
-
left: ${
|
|
2125
|
-
right: ${
|
|
2126
|
-
z-index: ${
|
|
2121
|
+
position: ${mr.mobileOpenPosition};
|
|
2122
|
+
top: ${mr.mobileOpenTop};
|
|
2123
|
+
bottom: ${mr.mobileOpenBottom};
|
|
2124
|
+
left: ${mr.mobileOpenLeft};
|
|
2125
|
+
right: ${mr.mobileOpenRight};
|
|
2126
|
+
z-index: ${mr.floatingZIndex};
|
|
2127
2127
|
padding: 16px;
|
|
2128
2128
|
}
|
|
2129
2129
|
|
|
2130
2130
|
.ft-search-bar--mobile-menu-open:not(.ft-search-bar--forced-open) {
|
|
2131
|
-
background: ${
|
|
2131
|
+
background: ${mr.colorSurface};
|
|
2132
2132
|
}
|
|
2133
2133
|
|
|
2134
2134
|
.ft-search-bar--mobile-menu-open.ft-search-bar--forced-open {
|
|
2135
|
-
position: ${
|
|
2135
|
+
position: ${mr.mobileOpenPosition.get("static")};
|
|
2136
2136
|
}
|
|
2137
2137
|
|
|
2138
2138
|
.ft-search-bar {
|
|
@@ -2140,20 +2140,20 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2140
2140
|
display: flex;
|
|
2141
2141
|
flex-direction: row;
|
|
2142
2142
|
align-items: center;
|
|
2143
|
-
height: ${
|
|
2143
|
+
height: ${mr.height};
|
|
2144
2144
|
|
|
2145
|
-
background: ${
|
|
2146
|
-
border: 1px solid ${
|
|
2147
|
-
border-radius: ${
|
|
2145
|
+
background: ${mr.colorSurface};
|
|
2146
|
+
border: 1px solid ${mr.colorOutline};
|
|
2147
|
+
border-radius: ${mr.borderRadius};
|
|
2148
2148
|
}
|
|
2149
2149
|
|
|
2150
2150
|
.ft-search-bar--skeleton {
|
|
2151
|
-
${e.setVariable(
|
|
2152
|
-
${e.setVariable(
|
|
2151
|
+
${e.setVariable(br.height,mr.height)};
|
|
2152
|
+
${e.setVariable(br.borderRadiusM,mr.borderRadius)};
|
|
2153
2153
|
}
|
|
2154
2154
|
|
|
2155
2155
|
.ft-search-bar--floating-panel-open .ft-search-bar {
|
|
2156
|
-
border-radius: ${
|
|
2156
|
+
border-radius: ${mr.borderRadius} ${mr.borderRadius} 0 0;
|
|
2157
2157
|
}
|
|
2158
2158
|
|
|
2159
2159
|
.ft-search-bar--input-container {
|
|
@@ -2171,7 +2171,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2171
2171
|
align-self: stretch;
|
|
2172
2172
|
display: grid;
|
|
2173
2173
|
padding: 0 8px;
|
|
2174
|
-
border-radius: ${
|
|
2174
|
+
border-radius: ${mr.borderRadius};
|
|
2175
2175
|
}
|
|
2176
2176
|
|
|
2177
2177
|
.ft-search-bar--dense .ft-search-bar--input-outline {
|
|
@@ -2180,7 +2180,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2180
2180
|
}
|
|
2181
2181
|
|
|
2182
2182
|
.ft-search-bar--input-container:focus-within .ft-search-bar--input-outline {
|
|
2183
|
-
outline: 2px solid ${
|
|
2183
|
+
outline: 2px solid ${mr.colorPrimary};
|
|
2184
2184
|
}
|
|
2185
2185
|
|
|
2186
2186
|
.ft-search-bar--input {
|
|
@@ -2188,12 +2188,12 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2188
2188
|
flex-grow: 1;
|
|
2189
2189
|
border: none;
|
|
2190
2190
|
background-color: transparent;
|
|
2191
|
-
color: ${
|
|
2191
|
+
color: ${mr.colorOnSurface};
|
|
2192
2192
|
outline: none;
|
|
2193
2193
|
}
|
|
2194
2194
|
|
|
2195
2195
|
.ft-search-bar--input::placeholder {
|
|
2196
|
-
color: ${
|
|
2196
|
+
color: ${mr.colorOnSurfaceMedium};
|
|
2197
2197
|
}
|
|
2198
2198
|
|
|
2199
2199
|
.ft-search-bar--actions {
|
|
@@ -2203,7 +2203,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2203
2203
|
align-items: center;
|
|
2204
2204
|
height: 100%;
|
|
2205
2205
|
|
|
2206
|
-
${e.setVariable(Ze.zIndex,`calc(${
|
|
2206
|
+
${e.setVariable(Ze.zIndex,`calc(${mr.floatingZIndex} + 1)`)};
|
|
2207
2207
|
}
|
|
2208
2208
|
|
|
2209
2209
|
.ft-search-bar > ft-button,
|
|
@@ -2213,8 +2213,8 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2213
2213
|
}
|
|
2214
2214
|
|
|
2215
2215
|
.ft-search-bar--left-action {
|
|
2216
|
-
${e.setVariable(Ne.borderRadius,`calc(${
|
|
2217
|
-
border-right: 1px solid ${
|
|
2216
|
+
${e.setVariable(Ne.borderRadius,`calc(${mr.borderRadius} - 1px) 0 0 calc(${mr.borderRadius} - 1px)`)};
|
|
2217
|
+
border-right: 1px solid ${mr.colorOutline};
|
|
2218
2218
|
height: 100%;
|
|
2219
2219
|
}
|
|
2220
2220
|
|
|
@@ -2223,7 +2223,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2223
2223
|
}
|
|
2224
2224
|
|
|
2225
2225
|
.ft-search-bar--floating-panel-open .ft-search-bar--left-action {
|
|
2226
|
-
${e.setVariable(Ne.borderRadius,`calc(${
|
|
2226
|
+
${e.setVariable(Ne.borderRadius,`calc(${mr.borderRadius} - 1px) 0 0 0`)};
|
|
2227
2227
|
}
|
|
2228
2228
|
|
|
2229
2229
|
.ft-search-bar .ft-search-bar--launch-search,
|
|
@@ -2233,13 +2233,13 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2233
2233
|
|
|
2234
2234
|
.ft-search-bar--separator {
|
|
2235
2235
|
height: 20px;
|
|
2236
|
-
border-right: 1px solid ${
|
|
2236
|
+
border-right: 1px solid ${mr.colorOutline};
|
|
2237
2237
|
}
|
|
2238
2238
|
|
|
2239
2239
|
.ft-search-bar--left-action.ft-search-bar--content-locale {
|
|
2240
|
-
${e.setVariable(
|
|
2241
|
-
${e.setVariable(
|
|
2242
|
-
${e.setVariable(
|
|
2240
|
+
${e.setVariable(lr.borderColor,"transparent")};
|
|
2241
|
+
${e.setVariable(lr.borderRadiusS,`calc(${mr.borderRadius} - 1px)`)};
|
|
2242
|
+
${e.setVariable(fr.selectedOptionColor,mr.buttonColor)};
|
|
2243
2243
|
}
|
|
2244
2244
|
|
|
2245
2245
|
.ft-search-bar--left-action.ft-search-bar--content-locale,
|
|
@@ -2256,7 +2256,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2256
2256
|
}
|
|
2257
2257
|
|
|
2258
2258
|
.ft-search-bar--left-action.ft-search-bar--content-locale::part(selected-value) {
|
|
2259
|
-
border-radius: calc(${
|
|
2259
|
+
border-radius: calc(${mr.borderRadius} - 1px) 0 0 calc(${mr.borderRadius} - 1px);
|
|
2260
2260
|
}
|
|
2261
2261
|
|
|
2262
2262
|
[part="content-locale-selector"] {
|
|
@@ -2265,7 +2265,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2265
2265
|
flex-direction: column;
|
|
2266
2266
|
max-height: 100%;
|
|
2267
2267
|
max-width: 100%;
|
|
2268
|
-
color: ${
|
|
2268
|
+
color: ${Li};
|
|
2269
2269
|
}
|
|
2270
2270
|
|
|
2271
2271
|
[part="content-locale-selector"] > ft-radio-group {
|
|
@@ -2295,14 +2295,14 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2295
2295
|
${e.setVariable(st.fontWeight,"bold")};
|
|
2296
2296
|
}
|
|
2297
2297
|
|
|
2298
|
-
|
|
2298
|
+
`,xr=o.css`
|
|
2299
2299
|
.ft-search-bar--presets {
|
|
2300
2300
|
min-width: 200px;
|
|
2301
2301
|
}
|
|
2302
2302
|
|
|
2303
2303
|
.ft-search-bar--desktop-menu .ft-search-bar--presets {
|
|
2304
2304
|
margin-right: auto;
|
|
2305
|
-
${e.setVariable(
|
|
2305
|
+
${e.setVariable(fr.optionsZIndex,"2")};
|
|
2306
2306
|
}
|
|
2307
2307
|
|
|
2308
2308
|
.ft-search-bar--desktop-menu {
|
|
@@ -2355,8 +2355,8 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2355
2355
|
|
|
2356
2356
|
.ft-search-bar--desktop-menu .ft-search-bar--filters-container {
|
|
2357
2357
|
display: block;
|
|
2358
|
-
height: ${
|
|
2359
|
-
${e.setVariable(
|
|
2358
|
+
height: ${mr.desktopFiltersHeight};
|
|
2359
|
+
${e.setVariable(ki.gap,"16px")};
|
|
2360
2360
|
}
|
|
2361
2361
|
|
|
2362
2362
|
.ft-search-bar--desktop-menu ft-filter {
|
|
@@ -2371,15 +2371,15 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2371
2371
|
}
|
|
2372
2372
|
|
|
2373
2373
|
.ft-search-bar--desktop-menu [data-filters-count="2"] ft-filter {
|
|
2374
|
-
max-width: calc(50% - ${
|
|
2374
|
+
max-width: calc(50% - ${ki.gap} / 2);
|
|
2375
2375
|
}
|
|
2376
2376
|
|
|
2377
2377
|
.ft-search-bar--desktop-menu [data-filters-count="3"] ft-filter {
|
|
2378
|
-
max-width: max(250px, calc(33% - 2 * ${
|
|
2378
|
+
max-width: max(250px, calc(33% - 2 * ${ki.gap} / 3));
|
|
2379
2379
|
}
|
|
2380
2380
|
|
|
2381
2381
|
.ft-search-bar--desktop-menu [data-filters-count="4"] ft-filter {
|
|
2382
|
-
max-width: max(250px, calc(25% - 3 * ${
|
|
2382
|
+
max-width: max(250px, calc(25% - 3 * ${ki.gap} / 4));
|
|
2383
2383
|
}
|
|
2384
2384
|
|
|
2385
2385
|
.ft-search-bar--hierarchical-filter {
|
|
@@ -2436,7 +2436,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2436
2436
|
.ft-search-bar--filter-label-values {
|
|
2437
2437
|
flex-grow: 0;
|
|
2438
2438
|
flex-shrink: 1;
|
|
2439
|
-
color: ${
|
|
2439
|
+
color: ${mr.colorOnSurfaceMedium};
|
|
2440
2440
|
}
|
|
2441
2441
|
|
|
2442
2442
|
ft-accordion-item::part(toggle) {
|
|
@@ -2456,8 +2456,8 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2456
2456
|
.ft-search-bar--desktop-menu .ft-search-bar--launch-search {
|
|
2457
2457
|
margin: 0;
|
|
2458
2458
|
}
|
|
2459
|
-
`;class
|
|
2460
|
-
`}}
|
|
2459
|
+
`;class $r extends e.FtLitElement{render(){return o.html`
|
|
2460
|
+
`}}$r.elementDefinitions={},$r.styles=yr,e.customElement("ft-skeleton")($r);class Or{constructor(t,o=300){this.searchBar=t,this.updateDebouncer=new e.Debouncer(o)}render(){const t=this.searchBar.recentSearches.filter((t=>t.toLowerCase().includes(this.searchBar.query.toLowerCase()))),e=this.searchBar.suggestions.length>0||t.length>0;return o.html`
|
|
2461
2461
|
<div class="ft-search-bar--suggestions ft-word-wrap ${e?"ft-search-bar--suggestions-not-empty":""}"
|
|
2462
2462
|
part="suggestions-container"
|
|
2463
2463
|
@keydown=${t=>this.onSuggestKeyDown(t)}>
|
|
@@ -2491,9 +2491,9 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2491
2491
|
</a>
|
|
2492
2492
|
`))}
|
|
2493
2493
|
</div>
|
|
2494
|
-
`}update(){return new Promise(((t,e)=>{this.updateDebouncer.run((async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],t()}))}))}onSuggestKeyDown(t){var e,o,i,r,a,n;switch(t.key){case"ArrowUp":null===(i=null!==(o=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==o?o:this.getLastSuggestionElement())||void 0===i||i.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(n=null!==(a=null===(r=this.getFocusedSuggestionElement())||void 0===r?void 0:r.nextElementSibling)&&void 0!==a?a:this.getFirstSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.searchBar.setQuery(e),this.searchBar.launchSearch()}removeRecentSearch(t,e){var o,i;t.preventDefault(),t.stopPropagation();let r=t.target.closest(".ft-search-bar--suggestion");const a=null!==(i=null!==(o=null==r?void 0:r.previousElementSibling)&&void 0!==o?o:null==r?void 0:r.nextElementSibling)&&void 0!==i?i:this.searchBar.input;null==a||a.focus(),this.searchBar.recentSearches=this.searchBar.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.searchBar.saveRecentSearches()}getIcon(t){const e="DOCUMENT"===t.type?
|
|
2494
|
+
`}update(){return new Promise(((t,e)=>{this.updateDebouncer.run((async()=>{this.searchBar.suggestions=this.searchBar.api&&this.searchBar.query.length>2?await this.searchBar.api.getSuggestions(this.searchBar.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],t()}))}))}onSuggestKeyDown(t){var e,o,i,r,a,n;switch(t.key){case"ArrowUp":null===(i=null!==(o=null===(e=this.getFocusedSuggestionElement())||void 0===e?void 0:e.previousElementSibling)&&void 0!==o?o:this.getLastSuggestionElement())||void 0===i||i.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(n=null!==(a=null===(r=this.getFocusedSuggestionElement())||void 0===r?void 0:r.nextElementSibling)&&void 0!==a?a:this.getFirstSuggestionElement())||void 0===n||n.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.searchBar.setQuery(e),this.searchBar.launchSearch()}removeRecentSearch(t,e){var o,i;t.preventDefault(),t.stopPropagation();let r=t.target.closest(".ft-search-bar--suggestion");const a=null!==(i=null!==(o=null==r?void 0:r.previousElementSibling)&&void 0!==o?o:null==r?void 0:r.nextElementSibling)&&void 0!==i?i:this.searchBar.input;null==a||a.focus(),this.searchBar.recentSearches=this.searchBar.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.searchBar.saveRecentSearches()}getIcon(t){const e="DOCUMENT"===t.type?jo.file_format:jo.fluid_topics;let i;switch(t.type){case"MAP":i="BOOK"===t.editorialType?Ko.BOOK:Ko.ARTICLE;break;case"DOCUMENT":i=function(t,e){var o,i,r,a;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[n,l]=((null!==(o=Mo.get(t))&&void 0!==o?o:t)+"/").split("/");return null!==(a=null!==(r=null!==(i=Po.get(l))&&void 0!==i?i:Po.get(e))&&void 0!==r?r:Po.get(n))&&void 0!==a?a:Do.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":i=Ko.TOPICS}return o.html`
|
|
2495
2495
|
<ft-icon .variant="${e}" .value="${i}" part="suggestion-icon"></ft-icon>
|
|
2496
|
-
`}getFocusedSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion:focus-within")}getLastSuggestionElement(){let t=this.searchBar.querySelectorAll(".ft-search-bar--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}}
|
|
2496
|
+
`}getFocusedSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion:focus-within")}getLastSuggestionElement(){let t=this.searchBar.querySelectorAll(".ft-search-bar--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.searchBar.querySelector(".ft-search-bar--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}}Or.styles=[e.wordWrap,o.css`
|
|
2497
2497
|
.ft-search-bar--mobile .ft-search-bar--suggestions {
|
|
2498
2498
|
flex-grow: 1;
|
|
2499
2499
|
flex-shrink: 1;
|
|
@@ -2502,7 +2502,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2502
2502
|
}
|
|
2503
2503
|
|
|
2504
2504
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
2505
|
-
border-top: 1px solid ${
|
|
2505
|
+
border-top: 1px solid ${mr.colorOutline};
|
|
2506
2506
|
}
|
|
2507
2507
|
|
|
2508
2508
|
.ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
|
|
@@ -2512,15 +2512,15 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2512
2512
|
.ft-search-bar--floating-panel,
|
|
2513
2513
|
.ft-search-bar--desktop .ft-search-bar--suggestions {
|
|
2514
2514
|
position: absolute;
|
|
2515
|
-
z-index: ${
|
|
2515
|
+
z-index: ${mr.floatingZIndex};
|
|
2516
2516
|
top: 100%;
|
|
2517
2517
|
left: -1px;
|
|
2518
2518
|
right: -1px;
|
|
2519
2519
|
display: none;
|
|
2520
|
-
background: ${
|
|
2521
|
-
border: 1px solid ${
|
|
2522
|
-
border-radius: 0 0 ${
|
|
2523
|
-
box-shadow: ${
|
|
2520
|
+
background: ${mr.colorSurface};
|
|
2521
|
+
border: 1px solid ${mr.colorOutline};
|
|
2522
|
+
border-radius: 0 0 ${mr.borderRadius} ${mr.borderRadius};
|
|
2523
|
+
box-shadow: ${mr.elevation02};
|
|
2524
2524
|
outline: none;
|
|
2525
2525
|
}
|
|
2526
2526
|
|
|
@@ -2540,7 +2540,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2540
2540
|
padding: 8px;
|
|
2541
2541
|
gap: 8px;
|
|
2542
2542
|
cursor: pointer;
|
|
2543
|
-
color: ${
|
|
2543
|
+
color: ${mr.colorOnSurface};
|
|
2544
2544
|
min-height: 52px;
|
|
2545
2545
|
}
|
|
2546
2546
|
|
|
@@ -2557,7 +2557,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2557
2557
|
}
|
|
2558
2558
|
|
|
2559
2559
|
.ft-search-bar--recent-search + .ft-search-bar--suggestion:not(.ft-search-bar--recent-search) {
|
|
2560
|
-
border-top: 1px solid ${
|
|
2560
|
+
border-top: 1px solid ${mr.colorOutline};
|
|
2561
2561
|
}
|
|
2562
2562
|
|
|
2563
2563
|
.ft-search-bar--suggestion ft-typography {
|
|
@@ -2565,7 +2565,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2565
2565
|
flex-grow: 1;
|
|
2566
2566
|
flex-shrink: 1;
|
|
2567
2567
|
}
|
|
2568
|
-
`];class
|
|
2568
|
+
`];class wr{constructor(t){this.searchBar=t}render(){if(!this.searchBar.hasLocaleSelector()&&!this.searchBar.hasFacets())return o.html``;const t=this.searchBar.isMobile(),i=!t&&this.searchBar.dense||t&&this.searchBar.isMobileMenuOpen(),a=o.html`
|
|
2569
2569
|
${this.searchBar.hasLocaleSelector()&&(this.searchBar.hasFacets()||t)?o.html`
|
|
2570
2570
|
<ft-chip part="selected-filters selected-filter-ft-locale"
|
|
2571
2571
|
?dense=${this.searchBar.dense&&!t}
|
|
@@ -2615,7 +2615,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2615
2615
|
<div class="ft-search-bar--selected-filters" part="selected-filters-container">
|
|
2616
2616
|
${a}
|
|
2617
2617
|
</div>
|
|
2618
|
-
`}openMobileFilters(t){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=t)}getLocaleLabel(t){var e;return null!==(e=this.searchBar.availableContentLocales.filter((e=>{var o;return(null!==(o=e.lang)&&void 0!==o?o:"").toLowerCase()===(null!=t?t:"").toLowerCase()})).map((t=>t.label)).pop())&&void 0!==e?e:t}}
|
|
2618
|
+
`}openMobileFilters(t){this.searchBar.isMobile()&&(this.searchBar.mobileMenuOpen=!0,this.searchBar.displayFacets=!0,this.searchBar.scrollToFacet=t)}getLocaleLabel(t){var e;return null!==(e=this.searchBar.availableContentLocales.filter((e=>{var o;return(null!==(o=e.lang)&&void 0!==o?o:"").toLowerCase()===(null!=t?t:"").toLowerCase()})).map((t=>t.label)).pop())&&void 0!==e?e:t}}wr.styles=o.css`
|
|
2619
2619
|
.ft-search-bar--selected-filters:not(ft-snap-scroll) {
|
|
2620
2620
|
flex-shrink: 0;
|
|
2621
2621
|
display: flex;
|
|
@@ -2626,7 +2626,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2626
2626
|
|
|
2627
2627
|
ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2628
2628
|
overflow: hidden;
|
|
2629
|
-
${e.setVariable(
|
|
2629
|
+
${e.setVariable(ki.gap,"4px")};
|
|
2630
2630
|
}
|
|
2631
2631
|
|
|
2632
2632
|
ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
|
|
@@ -2634,8 +2634,8 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2634
2634
|
}
|
|
2635
2635
|
|
|
2636
2636
|
.ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
|
|
2637
|
-
${e.setVariable(
|
|
2638
|
-
${e.setVariable(
|
|
2637
|
+
${e.setVariable(Ji.iconSize,"17px")};
|
|
2638
|
+
${e.setVariable(Ji.fontSize,"12px")};
|
|
2639
2639
|
}
|
|
2640
2640
|
|
|
2641
2641
|
.ft-search-bar--selected-filters * {
|
|
@@ -2645,7 +2645,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2645
2645
|
.ft-search-bar--selected-filters ft-chip {
|
|
2646
2646
|
flex-grow: 0;
|
|
2647
2647
|
}
|
|
2648
|
-
`;class
|
|
2648
|
+
`;class kr{constructor(t,e,o){this.searchBar=t,this.selectedFacetsManager=null!=e?e:new wr(t),this.suggestManager=null!=o?o:new Or(t)}render(){const t={"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 o.html`
|
|
2649
2649
|
<div class="${a.classMap(t)}" part="container" tabindex="-1">
|
|
2650
2650
|
<div class="ft-search-bar">
|
|
2651
2651
|
<div class="ft-search-bar--input-container" part="input-container">
|
|
@@ -2694,9 +2694,9 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2694
2694
|
@click=${()=>{var t;return this.searchBar.isMobileMenuOpen()?this.searchBar.launchSearch():null===(t=this.searchBar.input)||void 0===t?void 0:t.focus()}}
|
|
2695
2695
|
></ft-button>
|
|
2696
2696
|
</div>
|
|
2697
|
-
`}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.searchBar.query=e.value,"Enter"===t.key&&this.searchBar.launchSearch()}}
|
|
2697
|
+
`}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.searchBar.query=e.value,"Enter"===t.key&&this.searchBar.launchSearch()}}kr.styles=o.css`
|
|
2698
2698
|
|
|
2699
|
-
`;class
|
|
2699
|
+
`;class Sr{constructor(t,e,o){this.searchBar=t,this.selectedFacetsManager=null!=e?e:new wr(t),this.suggestManager=null!=o?o:new Or(t)}render(){const t={"ft-search-bar--container":!0,"ft-search-bar--dense":this.searchBar.dense,"ft-search-bar--desktop":!0,"ft-search-bar--floating-panel-open":this.searchBar.displayFacets&&!this.searchBar.forceMenuOpen,"ft-search-bar--forced-open":this.searchBar.forceMenuOpen};return o.html`
|
|
2700
2700
|
<div class="${a.classMap(t)}" part="container" tabindex="-1">
|
|
2701
2701
|
<div class="ft-search-bar" part="search-bar">
|
|
2702
2702
|
${this.renderSearchBarLeftAction()}
|
|
@@ -2763,9 +2763,9 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2763
2763
|
@click=${()=>this.searchBar.launchSearch()}
|
|
2764
2764
|
></ft-button>
|
|
2765
2765
|
</div>
|
|
2766
|
-
`}onSearchBarKeyDown(t){var e;switch(t.key){case"Escape":this.searchBar.mobileMenuOpen=!1,null===(e=this.searchBar.input)||void 0===e||e.blur();break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.suggestManager.focusFirstSuggestion()}}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.searchBar.query=e.value,"Enter"===t.key&&this.searchBar.launchSearch()}}
|
|
2766
|
+
`}onSearchBarKeyDown(t){var e;switch(t.key){case"Escape":this.searchBar.mobileMenuOpen=!1,null===(e=this.searchBar.input)||void 0===e||e.blur();break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),this.suggestManager.focusFirstSuggestion()}}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.searchBar.query=e.value,"Enter"===t.key&&this.searchBar.launchSearch()}}Sr.styles=o.css`
|
|
2767
2767
|
|
|
2768
|
-
`;var
|
|
2768
|
+
`;var Nr=function(t,e,o,i){for(var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(e,o,n):r(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};null==window.fluidtopics&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");const Cr={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"};class Ir extends CustomEvent{constructor(t){super("launch-search",{detail:t,bubbles:!0,composed:!0})}}class Er extends CustomEvent{constructor(t){super("change",{detail:t})}}const Lr=()=>{};class Rr extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.mode="auto",this.forceMobileMenuOpen=!1,this.forceMenuOpen=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.availableContentLocalesInitialized=!1,this.labels={},this.labelResolver=new e.ParametrizedLabelResolver(Cr,{}),this.displayedFilters=[],this.presets=[],this.priors=[],this.searchRequestSerializer=t=>e.serializeRequest(this.baseUrl,t),this.searchFilters=[],this.sizeCategory=l.M,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.facetsInitialized=!1,this.knownFacetLabels=new Map,this.query="",this.suggestions=[],this.recentSearches=[],this.suggestManager=new Or(this),this.selectedFacetsManager=new wr(this),this.desktopSearchBarManager=new Sr(this),this.mobileSearchBarManager=new kr(this,this.selectedFacetsManager,this.suggestManager),this.stateChangeEventDebouncer=new e.Debouncer(10),this.updateLocalesDebouncer=new e.Debouncer(10),this.facetsLoaded=!1,this.updateFacetsDebouncer=new e.Debouncer(500),this.closeFloatingContainer=t=>{this.isMobile()||(this.displayFacets=this.displayFacets&&t.composedPath().some((t=>t===this.floatingContainer)))},this.compareFilters=(t,e)=>t.key===e.key&&t.negative==e.negative&&t.values.length===e.values.length&&t.values.every((t=>e.values.includes(t))),this.compareRequests=(t,e)=>(null==t.contentLocale||null==e.contentLocale||t.contentLocale===e.contentLocale)&&t.filters.length===e.filters.length&&t.filters.every((t=>e.filters.some((e=>this.compareFilters(t,e)))))}isMobileMenuOpen(){return this.isMobile()&&(this.forceMobileMenuOpen||this.forceMenuOpen||this.mobileMenuOpen)}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,priors:this.hasPriors?this.priors:void 0,filters:this.searchFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){const t=this.searchFilters.filter((t=>t.values.length>0&&!this.displayedFilters.includes(t.key))).map((t=>({id:t.key})));return[...this.displayedFilters.map((t=>({id:t}))),...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===l.S}}hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return null!=this.presets&&this.presets.length>0}get hasPriors(){return null!=this.priors&&this.priors.length>0}hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;null===(t=this.container)||void 0===t||t.focus()}focusInput(){this.input?this.input.focus():setTimeout((()=>this.focusInput()),50)}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){return o.html`
|
|
2769
2769
|
<ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
|
|
2770
2770
|
${this.renderSearchBar()}
|
|
2771
2771
|
`}renderSearchBar(){return this.facetsInitialized&&this.availableContentLocalesInitialized?this.isMobile()?this.mobileSearchBarManager.render():this.desktopSearchBarManager.render():o.html`
|
|
@@ -2790,7 +2790,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2790
2790
|
</div>
|
|
2791
2791
|
</ft-accordion-item>
|
|
2792
2792
|
`:null}
|
|
2793
|
-
${r.repeat(this.facets,(t=>t.key),(t=>{const i=
|
|
2793
|
+
${r.repeat(this.facets,(t=>t.key),(t=>{const i=fe(t),r=t.key.replace(":","-"),a=function(t){return e.flatDeep(t.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).filter((t=>t.selected)).map((t=>t.label))}(i);return t.rootNodes.length>0?o.html`
|
|
2794
2794
|
<ft-accordion-item data-facet-key="${t.key}">
|
|
2795
2795
|
<div class="ft-search-bar--filter-label" slot="toggle">
|
|
2796
2796
|
<ft-typography variant="button">${t.label}</ft-typography>
|
|
@@ -2882,7 +2882,7 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2882
2882
|
${this.getContentLocaleRadioGroup()}
|
|
2883
2883
|
</div>
|
|
2884
2884
|
`:o.nothing}
|
|
2885
|
-
${r.repeat(this.facets,(t=>t.key),(t=>{const e=
|
|
2885
|
+
${r.repeat(this.facets,(t=>t.key),(t=>{const e=fe(t),i=e.options.some((t=>{var e,o;return(null!==(o=null===(e=t.subOptions)||void 0===e?void 0:e.length)&&void 0!==o?o:0)>0})),r=t.key.replace(":","-");return o.html`
|
|
2886
2886
|
<ft-filter
|
|
2887
2887
|
class="${i?"ft-search-bar--hierarchical-filter":""}"
|
|
2888
2888
|
part="filters filter filter-${r}"
|
|
@@ -2901,11 +2901,11 @@ const V=Symbol.for(""),q=t=>{if(t?.r===V)return t?._$litStatic$},Y=t=>({_$litSta
|
|
|
2901
2901
|
></ft-filter>
|
|
2902
2902
|
`}))}
|
|
2903
2903
|
</ft-snap-scroll>
|
|
2904
|
-
`:o.nothing}async firstUpdated(t){super.firstUpdated(t),this.initApi(),window.addEventListener("storage",(t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()}))}update(t){var o,i,r,a,n;if(t.has("labels")&&(this.labelResolver=new e.ParametrizedLabelResolver(
|
|
2904
|
+
`:o.nothing}async firstUpdated(t){super.firstUpdated(t),this.initApi(),window.addEventListener("storage",(t=>{t.key===this.recentSearchesStorageKey&&this.initRecentSearches()}))}update(t){var o,i,r,a,n;if(t.has("labels")&&(this.labelResolver=new e.ParametrizedLabelResolver(Cr,this.labels)),t.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile()),super.update(t),(t.has("availableContentLocales")||t.has("contentLocale"))&&this.availableContentLocales.length>0){const e=t=>this.availableContentLocales.some((e=>e.lang==t));e(this.contentLocale)||(this.contentLocale=t.has("contentLocale")&&e(t.get("contentLocale"))?t.get("contentLocale"):null===(o=this.availableContentLocales[0])||void 0===o?void 0:o.lang)}if(t.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.initRecentSearches()),t.has("presets")&&(null!==(i=this.presets)&&void 0!==i?i:[]).forEach((t=>t.filters.forEach((t=>t.values=t.values.map((t=>ce(t))))))),t.has("presets")||t.has("selectedPreset")){const t=(null!==(r=this.presets)&&void 0!==r?r:[]).find((t=>t.name===this.selectedPreset));t&&!this.compareRequests(this.request,t)&&this.setFiltersFromPreset(t)}t.has("contentLocale")&&null!=this.contentLocale&&(this.knownFacetLabels=new Map),["contentLocale","searchFilters"].some((e=>t.has(e)))&&(this.selectedPreset=null===(n=(null!==(a=this.presets)&&void 0!==a?a:[]).find((t=>this.compareRequests(t,this.request))))||void 0===n?void 0:n.name),["baseUrl","apiIntegrationIdentifier"].some((e=>t.has(e)))&&(this.api=void 0,this.initApi()),t.has("api")&&this.api&&this.initSearchData(),["uiLocale","contentLocale","searchFilters","displayedFilters"].some((e=>t.has(e)))&&this.updateFacets(),["query","uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.suggestManager.update(),["query","uiLocale","contentLocale","searchFilters"].some((e=>t.has(e)))&&this.dispatchStateChangeEvent()}dispatchStateChangeEvent(){this.stateChangeEventDebouncer.run((()=>this.dispatchEvent(new Er(this.request))))}initSearchData(){this.availableContentLocalesInitialized=!1,this.facetsLoaded=!1,this.facetsInitialized=!1,this.updateLocalesDebouncer.run((()=>{var t;null===(t=this.api)||void 0===t||t.getAvailableSearchLocales().then((t=>t.contentLocales)).catch((()=>[])).then((t=>{this.availableContentLocales=t,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(t){var e,o,i;if(super.contentAvailableCallback(t),t.has("displayFacets")&&this.displayFacets&&(null===(e=this.floatingContainer)||void 0===e||e.focus()),null!=this.scrollToFacet&&this.facetsLoaded){null===(o=this.scrollingFiltersContainer)||void 0===o||o.scrollIndexIntoView(this.facets.findIndex((t=>t.key===this.scrollToFacet)));const t=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);t&&(t.active=!0),this.scrollToFacet=void 0}}initApi(){null==this.api&&(this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0,setTimeout((()=>this.initApi()),10))}async retrieveFacetsFromSearch(){var t;const e=new Map;await(null===(t=this.api)||void 0===t?void 0:t.search({...this.request,query:""}).then((t=>t.facets.forEach((t=>{this.knownFacetLabels.set(t.key,t.label),e.set(t.key,t)})))).catch(Lr)),this.facets=[];for(let t of this.facetsRequest)e.has(t.id)?this.facets.push(e.get(t.id)):this.knownFacetLabels.has(t.id)&&this.facets.push({key:t.id,label:this.knownFacetLabels.get(t.id),rootNodes:[],multiSelectionable:!0,hierarchical:!1})}onFloatingContainerKeyUp(t){var e;"Escape"===t.key&&(this.displayFacets=!1,null===(e=this.filtersOpener)||void 0===e||e.focus())}setQuery(t){this.input&&(this.input.value=t),this.query=t}launchSearch(){if(this.query){let t=this.recentSearches.filter((t=>t.toLowerCase()!==this.query.toLowerCase())).filter(((t,e)=>e<20));this.recentSearches=[this.query,...t],this.saveRecentSearches()}this.dispatchEvent(new Ir(this.request)),this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}initRecentSearches(){var t;this.recentSearches=JSON.parse(null!==(t=window.localStorage.getItem(this.recentSearchesStorageKey))&&void 0!==t?t:"[]")}saveRecentSearches(){const t=JSON.stringify(this.recentSearches);window.localStorage.setItem(this.recentSearchesStorageKey,t),window.dispatchEvent(new StorageEvent("storage",{key:this.recentSearchesStorageKey,newValue:t,storageArea:window.localStorage,url:window.location.href}))}connectedCallback(){super.connectedCallback(),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}updateSize(t){this.sizeCategory=t.detail.category}setFilter(t,o){let i=this.searchFilters.filter((e=>e.key!==t));this.facets.forEach((i=>{i.key===t&&e.flatDeep(i.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=o.includes(t.value)))})),o.length&&i.push({key:t,negative:!1,values:o}),this.searchFilters=i,this.scrollToFacet=t}setFiltersFromPreset(t){null!=t&&(null!=t.contentLocale&&(this.contentLocale=t.contentLocale),this.searchFilters=t.filters)}clearFilters(){this.facets.forEach((t=>e.flatDeep(t.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=!1)))),this.searchFilters=[];const t=this.facets[0];this.scrollToFacet=null==t?void 0:t.key}querySelector(t){return this.shadowRoot.querySelector(t)}querySelectorAll(t){return this.shadowRoot.querySelectorAll(t)}renderDesktopFloatingMenu(){return this.forceMenuOpen?o.nothing:o.html`
|
|
2905
2905
|
<div class="ft-search-bar--floating-panel"
|
|
2906
2906
|
id="ft-search-bar-floating-panel"
|
|
2907
2907
|
@keyup=${this.onFloatingContainerKeyUp}
|
|
2908
2908
|
part="floating-panel"
|
|
2909
2909
|
tabindex="-1">
|
|
2910
2910
|
${this.renderDesktopMenu()}
|
|
2911
|
-
</div>`}}
|
|
2911
|
+
</div>`}}Rr.elementDefinitions={"ft-accordion":ji,"ft-accordion-item":Yi,"ft-button":Xo,"ft-chip":nr,"ft-filter":Di,"ft-filter-option":Hi,"ft-icon":Go,"ft-ripple":Be,"ft-select":gr,"ft-select-option":ur,"ft-size-watcher":f,"ft-skeleton":$r,"ft-snap-scroll":Ii,"ft-tooltip":Ho,"ft-typography":se,"ft-radio-group":vi,"ft-radio":bi},Rr.styles=[te,vr,xr,wr.styles,Or.styles],Nr([i.property({type:Boolean})],Rr.prototype,"dense",void 0),Nr([i.property()],Rr.prototype,"mode",void 0),Nr([i.property({type:Boolean})],Rr.prototype,"forceMobileMenuOpen",void 0),Nr([i.property({type:Boolean})],Rr.prototype,"forceMenuOpen",void 0),Nr([i.property()],Rr.prototype,"baseUrl",void 0),Nr([i.property()],Rr.prototype,"apiIntegrationIdentifier",void 0),Nr([i.property()],Rr.prototype,"contentLocale",void 0),Nr([i.state()],Rr.prototype,"availableContentLocales",void 0),Nr([i.state()],Rr.prototype,"availableContentLocalesInitialized",void 0),Nr([i.property()],Rr.prototype,"uiLocale",void 0),Nr([e.jsonProperty({})],Rr.prototype,"labels",void 0),Nr([e.jsonProperty([])],Rr.prototype,"displayedFilters",void 0),Nr([e.jsonProperty([])],Rr.prototype,"presets",void 0),Nr([i.property({type:String,reflect:!0})],Rr.prototype,"selectedPreset",void 0),Nr([e.jsonProperty([])],Rr.prototype,"priors",void 0),Nr([i.property()],Rr.prototype,"searchRequestSerializer",void 0),Nr([i.state()],Rr.prototype,"searchFilters",void 0),Nr([i.state()],Rr.prototype,"sizeCategory",void 0),Nr([i.state()],Rr.prototype,"displayFacets",void 0),Nr([i.state()],Rr.prototype,"mobileMenuOpen",void 0),Nr([i.state()],Rr.prototype,"facets",void 0),Nr([i.state()],Rr.prototype,"facetsInitialized",void 0),Nr([i.query(".ft-search-bar--container")],Rr.prototype,"container",void 0),Nr([i.query(".ft-search-bar--filters-opener")],Rr.prototype,"filtersOpener",void 0),Nr([i.query(".ft-search-bar--floating-panel")],Rr.prototype,"floatingContainer",void 0),Nr([i.query("ft-snap-scroll.ft-search-bar--filters-container")],Rr.prototype,"scrollingFiltersContainer",void 0),Nr([i.query(".ft-search-bar--input")],Rr.prototype,"input",void 0),Nr([i.state()],Rr.prototype,"query",void 0),Nr([i.state()],Rr.prototype,"suggestions",void 0),Nr([i.state()],Rr.prototype,"recentSearches",void 0),Nr([i.state()],Rr.prototype,"scrollToFacet",void 0),Nr([i.state()],Rr.prototype,"api",void 0),Nr([i.state()],Rr.prototype,"facetsLoaded",void 0),e.customElement("ft-search-bar")(Rr),t.DEFAULT_LABELS=Cr,t.FtSearchBar=Rr,t.FtSearchBarCssVariables=mr,t.LaunchSearchEvent=Ir,t.SearchStateChangeEvent=Er,t.facetsCss=xr,t.searchBarCss=vr}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|