@fluid-topics/ft-search-selected-facets 1.0.58 → 1.0.60
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.
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
!function(t,
|
|
1
|
+
!function(t,o,e,i,r,a,n){const l={spacing:o.FtCssVariableFactory.create("--ft-search-selected-facets-spacing","","SIZE","8px")},c=e.css`
|
|
2
2
|
.ft-search-selected-facets--container {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-wrap: wrap;
|
|
5
|
-
gap: ${
|
|
5
|
+
gap: ${l.spacing};
|
|
6
6
|
}
|
|
7
|
-
`,
|
|
8
|
-
`,p=
|
|
7
|
+
`,s=e.css`
|
|
8
|
+
`,p=o.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,o)=>{t.baseUrl=o.payload},setApiIntegrationIdentifier:(t,o)=>{t.apiIntegrationIdentifier=o.payload},setUiLocale:(t,o)=>{t.uiLocale=o.payload},setAvailableUiLocales:(t,o)=>{t.availableUiLocales=o.payload},setEditorMode:(t,o)=>{t.editorMode=o.payload},setNoCustom:(t,o)=>{t.noCustom=o.payload},setNoCustomComponent:(t,o)=>{t.noCustomComponent=o.payload},setSession:(t,o)=>{t.session=o.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class f{static build(t){const{baseUrl:o,apiIntegrationIdentifier:e}=p.getState(),i=null!=t?t:e;if(o&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(o,i,!0)}static get(t){var o;return null!=t?f.build(t):null!==(o=f.API)&&void 0!==o?o:f.API=f.build()}static await(t){return new Promise((o=>{let e=f.get(t);if(e)o(e);else{const i=p.subscribe((()=>{e=f.get(t),e&&(i(),o(e))}))}}))}}var d;const h=Symbol("clearAfterUnitTest");class g{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={},this.currentUiLocale="",this[d]=()=>{this.defaultMessages={},this.cache=new o.CacheRegistry,this.listeners={}},this.currentUiLocale=p.getState().uiLocale,p.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=p.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const o=t.name.toLowerCase();this.cache.setFinal(o,t),this.notify(o)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var i;if(t=t.toLowerCase(),Object.keys(e).length>0){const r={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...e};o.deepEqual(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...i){var r,a,n;t=t.toLowerCase(),this.fetchContext(t);const l=null!==(a=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==a?a:{};return new o.ParametrizedLabelResolver(null!==(n=this.defaultMessages[t])&&void 0!==n?n:{},l).resolve(e,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,o){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(o),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(o)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>o.delay(0).then((()=>t())).catch((()=>null)))))}}d=h,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new g((async(t,o)=>(await f.await()).getFluidTopicsMessageContext(t,o)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new g((async(t,o)=>(await f.await()).getCustomMessageContext(t,o))));const y=window.FluidTopicsI18nService;var u=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class b extends o.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>f.get(),this.cache=new o.CacheRegistry,this.cleanSessionDebouncer=new o.Debouncer}render(){return e.html`
|
|
9
9
|
<slot></slot>
|
|
10
|
-
`}update(t){super.update(t),t.has("baseUrl")&&p.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&p.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&p.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&p.actions.setNoCustom(this.noCustom),t.has("editorMode")&&p.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&p.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&p.actions.setSession(this.session),t.has("availableUiLocales")&&p.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>
|
|
10
|
+
`}update(t){super.update(t),t.has("baseUrl")&&p.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&p.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&p.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&p.actions.setNoCustom(this.noCustom),t.has("editorMode")&&p.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&p.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&p.actions.setSession(this.session),t.has("availableUiLocales")&&p.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>y.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const o=await t.getCurrentSession();return o.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),o.idleTimeoutInMillis),o}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}b.elementDefinitions={},b.styles=s,u([r.property()],b.prototype,"baseUrl",void 0),u([r.property()],b.prototype,"apiIntegrationIdentifier",void 0),u([r.property()],b.prototype,"uiLocale",void 0),u([o.jsonProperty([])],b.prototype,"availableUiLocales",void 0),u([r.property({type:Boolean})],b.prototype,"editorMode",void 0),u([r.property({type:Boolean})],b.prototype,"noCustom",void 0),u([r.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],b.prototype,"noCustomComponent",void 0),u([r.property({type:Boolean})],b.prototype,"withManualResources",void 0),u([o.jsonProperty([])],b.prototype,"messageContexts",void 0),u([o.jsonProperty(void 0)],b.prototype,"session",void 0),u([r.property({type:Object})],b.prototype,"apiProvider",void 0);class m{async listMySearches(){var t;return(null===(t=p.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await f.await()).listMySearches(p.getState().session.profile.userId):[]}}const x=new o.CacheRegistry;class v{async listMyBookmarks(){return x.get("bookmarks",(async()=>(await f.await()).listMyBookmarks(p.getState().session.profile.userId)))}clearCache(){x.clear("bookmarks")}}const O=o.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=p.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new v,p.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=p.getState();o.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){O.actions.savedSearches(void 0)}clearMyBookmarks(){O.actions.bookmarks(void 0)}async reloadMySearches(){const t=new m,o=await t.listMySearches();O.actions.savedSearches(o)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const o=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;O.actions.bookmarks(o)}}},o.customElement("ft-app-context")(b);class N extends Event{constructor(){super(N.eventName)}}N.eventName="search-context-clear-all-filters";var S=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class C extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const $=Symbol("registerInterval");class w extends(function(t){var o;class e extends t{constructor(){super(...arguments),this[o]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[$]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[$]):this.dispatchEvent(new C)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=$,S([r.state()],e.prototype,"stateManager",void 0),e}(o.FtLitElementRedux)){}const I=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorContent),k={color:I,backgroundColor:o.FtCssVariableFactory.extend("--ft-ripple-background-color","",I),opacityContentOnSurfacePressed:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},U=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorPrimary),W=U,R=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",U),L=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorSecondary),E=L,z=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",L),Z=e.css`
|
|
11
11
|
:host {
|
|
12
12
|
display: contents;
|
|
13
13
|
}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
22
22
|
overflow: hidden;
|
|
23
|
-
border-radius: ${
|
|
23
|
+
border-radius: ${k.borderRadius};
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.ft-ripple .ft-ripple--background,
|
|
@@ -54,27 +54,27 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.ft-ripple .ft-ripple--background {
|
|
57
|
-
background-color: ${
|
|
57
|
+
background-color: ${k.backgroundColor};
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.ft-ripple .ft-ripple--effect {
|
|
61
|
-
background-color: ${
|
|
61
|
+
background-color: ${k.color};
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
65
|
-
background-color: ${
|
|
65
|
+
background-color: ${z};
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
69
|
-
background-color: ${
|
|
69
|
+
background-color: ${E};
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
73
|
-
background-color: ${
|
|
73
|
+
background-color: ${R};
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
77
|
-
background-color: ${
|
|
77
|
+
background-color: ${W};
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.ft-ripple .ft-ripple--background {
|
|
@@ -104,141 +104,148 @@
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
107
|
-
opacity: ${
|
|
107
|
+
opacity: ${k.opacityContentOnSurfaceHover};
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
111
|
-
opacity: ${
|
|
111
|
+
opacity: ${k.opacityContentOnSurfaceSelected};
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
115
|
-
opacity: ${
|
|
115
|
+
opacity: ${k.opacityContentOnSurfaceFocused};
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
119
|
-
opacity: ${
|
|
119
|
+
opacity: ${k.opacityContentOnSurfacePressed};
|
|
120
120
|
transform: translate(-50%, -50%) scale(1);
|
|
121
121
|
}
|
|
122
|
-
`;var
|
|
122
|
+
`;var K,B=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class F extends o.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o.Debouncer(10),this.moveRipple=t=>{var o,e;let{x:i,y:r}=this.getCoordinates(t),a=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-a.x:a.width/2),this.originY=Math.round(null!=r?r-a.y:a.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
123
123
|
<style>
|
|
124
124
|
.ft-ripple .ft-ripple--effect {
|
|
125
125
|
left: ${this.originX}px;
|
|
126
126
|
top: ${this.originY}px;
|
|
127
127
|
}
|
|
128
128
|
</style>
|
|
129
|
-
<div class="${
|
|
129
|
+
<div class="${a.classMap(t)}">
|
|
130
130
|
<div class="ft-ripple--background"></div>
|
|
131
131
|
<div class="ft-ripple--effect"></div>
|
|
132
132
|
</div>
|
|
133
|
-
`}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 i,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),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 i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Z.elementDefinitions={},Z.styles=A,F([n.property({type:Boolean})],Z.prototype,"primary",void 0),F([n.property({type:Boolean})],Z.prototype,"secondary",void 0),F([n.property({type:Boolean})],Z.prototype,"unbounded",void 0),F([n.property({type:Boolean})],Z.prototype,"activated",void 0),F([n.property({type:Boolean})],Z.prototype,"selected",void 0),F([n.property({type:Boolean})],Z.prototype,"disabled",void 0),F([n.state()],Z.prototype,"hovered",void 0),F([n.state()],Z.prototype,"focused",void 0),F([n.state()],Z.prototype,"pressed",void 0),F([n.state()],Z.prototype,"rippling",void 0),F([n.state()],Z.prototype,"originX",void 0),F([n.state()],Z.prototype,"originY",void 0),F([n.query(".ft-ripple")],Z.prototype,"ripple",void 0),F([n.query(".ft-ripple--effect")],Z.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(Z);const L=window,_=L.trustedTypes,P=_?_.createPolicy("lit-html",{createHTML:t=>t}):void 0,W="$lit$",D=`lit$${(Math.random()+"").slice(9)}$`,R="?"+D,H=`<${R}>`,K=document,V=()=>K.createComment(""),G=t=>null===t||"object"!=typeof t&&"function"!=typeof t,q=Array.isArray,X="[ \t\n\f\r]",Y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J=/-->/g,Q=/>/g,tt=RegExp(`>|${X}(?:([^\\s"'>=/]+)(${X}*=${X}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,et=/"/g,ot=/^(?:script|style|textarea|title)$/i,nt=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),st=Symbol.for("lit-noChange"),rt=Symbol.for("lit-nothing"),at=new WeakMap,lt=K.createTreeWalker(K,129,null,!1),ht=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=Y;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,l=r.exec(e),null!==l);)p=r.lastIndex,r===Y?"!--"===l[1]?r=J:void 0!==l[1]?r=Q:void 0!==l[2]?(ot.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=tt):void 0!==l[3]&&(r=tt):r===tt?">"===l[0]?(r=null!=n?n:Y,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?tt:'"'===l[3]?et:it):r===et||r===it?r=tt:r===J||r===Q?r=Y:(r=tt,n=void 0);const c=r===tt&&t[i+1].startsWith("/>")?" ":"";s+=r===Y?e+H:h>=0?(o.push(a),e.slice(0,h)+W+e.slice(h)+D+c):e+D+(-2===h?(o.push(void 0),i):c)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==P?P.createHTML(a):a,o]};class pt{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=ht(t,i);if(this.el=pt.createElement(l,e),lt.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=lt.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(W)||i.startsWith(D)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+W).split(D),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?gt:"?"===i[1]?xt:"@"===i[1]?bt:ut})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(ot.test(o.tagName)){const t=o.textContent.split(D),i=t.length-1;if(i>0){o.textContent=_?_.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],V()),lt.nextNode(),a.push({type:2,index:++n});o.append(t[i],V())}}}else if(8===o.nodeType)if(o.data===R)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(D,t+1));)a.push({type:7,index:n}),t+=D.length-1}n++}}static createElement(t,i){const e=K.createElement("template");return e.innerHTML=t,e}}function ct(t,i,e=t,o){var n,s,r,a;if(i===st)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=G(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=ct(t,l._$AS(t,i.values),l,o)),i}class ft{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:K).importNode(e,!0);lt.currentNode=n;let s=lt.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new dt(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new yt(s,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=lt.nextNode(),r++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class dt{constructor(t,i,e,o){var n;this.type=2,this._$AH=rt,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=ct(this,t,i),G(t)?t===rt||null==t||""===t?(this._$AH!==rt&&this._$AR(),this._$AH=rt):t!==this._$AH&&t!==st&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>q(t)||"function"==typeof(null==t?void 0: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!==rt&&G(this._$AH)?this._$AA.nextSibling.data=t:this.$(K.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=pt.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new ft(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=at.get(t.strings);return void 0===i&&at.set(t.strings,i=new pt(t)),i}T(t){q(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new dt(this.k(V()),this.k(V()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class ut{constructor(t,i,e,o,n){this.type=1,this._$AH=rt,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=rt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=ct(this,t,i,0),s=!G(t)||t!==this._$AH&&t!==st,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=ct(this,o[e+r],i,r),a===st&&(a=this._$AH[r]),s||(s=!G(a)||a!==this._$AH[r]),a===rt?t=rt:t!==rt&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class gt extends ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===rt?void 0:t}}const vt=_?_.emptyScript:"";class xt extends ut{constructor(){super(...arguments),this.type=4}j(t){t&&t!==rt?this.element.setAttribute(this.name,vt):this.element.removeAttribute(this.name)}}class bt extends ut{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=ct(this,t,i,0))&&void 0!==e?e:rt)===st)return;const o=this._$AH,n=t===rt&&o!==rt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==rt&&(o===rt||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class yt{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){ct(this,t)}}const mt=L.litHtmlPolyfillSupport;null==mt||mt(pt,dt),(null!==(T=L.litHtmlVersions)&&void 0!==T?T:L.litHtmlVersions=[]).push("2.7.3");
|
|
133
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),i=o("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",i),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",i),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}F.elementDefinitions={},F.styles=Z,B([r.property({type:Boolean})],F.prototype,"primary",void 0),B([r.property({type:Boolean})],F.prototype,"secondary",void 0),B([r.property({type:Boolean})],F.prototype,"unbounded",void 0),B([r.property({type:Boolean})],F.prototype,"activated",void 0),B([r.property({type:Boolean})],F.prototype,"selected",void 0),B([r.property({type:Boolean})],F.prototype,"disabled",void 0),B([r.state()],F.prototype,"hovered",void 0),B([r.state()],F.prototype,"focused",void 0),B([r.state()],F.prototype,"pressed",void 0),B([r.state()],F.prototype,"rippling",void 0),B([r.state()],F.prototype,"originX",void 0),B([r.state()],F.prototype,"originY",void 0),B([r.query(".ft-ripple")],F.prototype,"ripple",void 0),B([r.query(".ft-ripple--effect")],F.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(F);const D=window,A=D.trustedTypes,H=A?A.createPolicy("lit-html",{createHTML:t=>t}):void 0,G="$lit$",j=`lit$${(Math.random()+"").slice(9)}$`,M="?"+j,P=`<${M}>`,T=document,_=()=>T.createComment(""),Y=t=>null===t||"object"!=typeof t&&"function"!=typeof t,V=Array.isArray,q="[ \t\n\f\r]",X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,J=/-->/g,Q=/>/g,tt=RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ot=/'/g,et=/"/g,it=/^(?:script|style|textarea|title)$/i,rt=(t=>(o,...e)=>({_$litType$:t,strings:o,values:e}))(1),at=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),lt=new WeakMap,ct=T.createTreeWalker(T,129,null,!1),st=(t,o)=>{const e=t.length-1,i=[];let r,a=2===o?"<svg>":"",n=X;for(let o=0;o<e;o++){const e=t[o];let l,c,s=-1,p=0;for(;p<e.length&&(n.lastIndex=p,c=n.exec(e),null!==c);)p=n.lastIndex,n===X?"!--"===c[1]?n=J:void 0!==c[1]?n=Q:void 0!==c[2]?(it.test(c[2])&&(r=RegExp("</"+c[2],"g")),n=tt):void 0!==c[3]&&(n=tt):n===tt?">"===c[0]?(n=null!=r?r:X,s=-1):void 0===c[1]?s=-2:(s=n.lastIndex-c[2].length,l=c[1],n=void 0===c[3]?tt:'"'===c[3]?et:ot):n===et||n===ot?n=tt:n===J||n===Q?n=X:(n=tt,r=void 0);const f=n===tt&&t[o+1].startsWith("/>")?" ":"";a+=n===X?e+P:s>=0?(i.push(l),e.slice(0,s)+G+e.slice(s)+j+f):e+j+(-2===s?(i.push(void 0),o):f)}const l=a+(t[e]||"<?>")+(2===o?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==H?H.createHTML(l):l,i]};class pt{constructor({strings:t,_$litType$:o},e){let i;this.parts=[];let r=0,a=0;const n=t.length-1,l=this.parts,[c,s]=st(t,o);if(this.el=pt.createElement(c,e),ct.currentNode=this.el.content,2===o){const t=this.el.content,o=t.firstChild;o.remove(),t.append(...o.childNodes)}for(;null!==(i=ct.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const o of i.getAttributeNames())if(o.endsWith(G)||o.startsWith(j)){const e=s[a++];if(t.push(o),void 0!==e){const t=i.getAttribute(e.toLowerCase()+G).split(j),o=/([.?@])?(.*)/.exec(e);l.push({type:1,index:r,name:o[2],strings:t,ctor:"."===o[1]?yt:"?"===o[1]?bt:"@"===o[1]?mt:gt})}else l.push({type:6,index:r})}for(const o of t)i.removeAttribute(o)}if(it.test(i.tagName)){const t=i.textContent.split(j),o=t.length-1;if(o>0){i.textContent=A?A.emptyScript:"";for(let e=0;e<o;e++)i.append(t[e],_()),ct.nextNode(),l.push({type:2,index:++r});i.append(t[o],_())}}}else if(8===i.nodeType)if(i.data===M)l.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(j,t+1));)l.push({type:7,index:r}),t+=j.length-1}r++}}static createElement(t,o){const e=T.createElement("template");return e.innerHTML=t,e}}function ft(t,o,e=t,i){var r,a,n,l;if(o===at)return o;let c=void 0!==i?null===(r=e._$Co)||void 0===r?void 0:r[i]:e._$Cl;const s=Y(o)?void 0:o._$litDirective$;return(null==c?void 0:c.constructor)!==s&&(null===(a=null==c?void 0:c._$AO)||void 0===a||a.call(c,!1),void 0===s?c=void 0:(c=new s(t),c._$AT(t,e,i)),void 0!==i?(null!==(n=(l=e)._$Co)&&void 0!==n?n:l._$Co=[])[i]=c:e._$Cl=c),void 0!==c&&(o=ft(t,c._$AS(t,o.values),c,i)),o}class dt{constructor(t,o){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=o}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var o;const{el:{content:e},parts:i}=this._$AD,r=(null!==(o=null==t?void 0:t.creationScope)&&void 0!==o?o:T).importNode(e,!0);ct.currentNode=r;let a=ct.nextNode(),n=0,l=0,c=i[0];for(;void 0!==c;){if(n===c.index){let o;2===c.type?o=new ht(a,a.nextSibling,this,t):1===c.type?o=new c.ctor(a,c.name,c.strings,this,t):6===c.type&&(o=new xt(a,this,t)),this._$AV.push(o),c=i[++l]}n!==(null==c?void 0:c.index)&&(a=ct.nextNode(),n++)}return r}v(t){let o=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,o),o+=e.strings.length-2):e._$AI(t[o])),o++}}class ht{constructor(t,o,e,i){var r;this.type=2,this._$AH=nt,this._$AN=void 0,this._$AA=t,this._$AB=o,this._$AM=e,this.options=i,this._$Cp=null===(r=null==i?void 0:i.isConnected)||void 0===r||r}get _$AU(){var t,o;return null!==(o=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==o?o:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const o=this._$AM;return void 0!==o&&11===(null==t?void 0:t.nodeType)&&(t=o.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,o=this){t=ft(this,t,o),Y(t)?t===nt||null==t||""===t?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==at&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>V(t)||"function"==typeof(null==t?void 0: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!==nt&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.$(T.createTextNode(t)),this._$AH=t}g(t){var o;const{values:e,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=pt.createElement(i.h,this.options)),i);if((null===(o=this._$AH)||void 0===o?void 0:o._$AD)===r)this._$AH.v(e);else{const t=new dt(r,this),o=t.u(this.options);t.v(e),this.$(o),this._$AH=t}}_$AC(t){let o=lt.get(t.strings);return void 0===o&<.set(t.strings,o=new pt(t)),o}T(t){V(this._$AH)||(this._$AH=[],this._$AR());const o=this._$AH;let e,i=0;for(const r of t)i===o.length?o.push(e=new ht(this.k(_()),this.k(_()),this,this.options)):e=o[i],e._$AI(r),i++;i<o.length&&(this._$AR(e&&e._$AB.nextSibling,i),o.length=i)}_$AR(t=this._$AA.nextSibling,o){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,o);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o}}setConnected(t){var o;void 0===this._$AM&&(this._$Cp=t,null===(o=this._$AP)||void 0===o||o.call(this,t))}}class gt{constructor(t,o,e,i,r){this.type=1,this._$AH=nt,this._$AN=void 0,this.element=t,this.name=o,this._$AM=i,this.options=r,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=nt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,o=this,e,i){const r=this.strings;let a=!1;if(void 0===r)t=ft(this,t,o,0),a=!Y(t)||t!==this._$AH&&t!==at,a&&(this._$AH=t);else{const i=t;let n,l;for(t=r[0],n=0;n<r.length-1;n++)l=ft(this,i[e+n],o,n),l===at&&(l=this._$AH[n]),a||(a=!Y(l)||l!==this._$AH[n]),l===nt?t=nt:t!==nt&&(t+=(null!=l?l:"")+r[n+1]),this._$AH[n]=l}a&&!i&&this.j(t)}j(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class yt extends gt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===nt?void 0:t}}const ut=A?A.emptyScript:"";class bt extends gt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==nt?this.element.setAttribute(this.name,ut):this.element.removeAttribute(this.name)}}class mt extends gt{constructor(t,o,e,i,r){super(t,o,e,i,r),this.type=5}_$AI(t,o=this){var e;if((t=null!==(e=ft(this,t,o,0))&&void 0!==e?e:nt)===at)return;const i=this._$AH,r=t===nt&&i!==nt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,a=t!==nt&&(i===nt||r);r&&this.element.removeEventListener(this.name,this,i),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var o,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(o=this.options)||void 0===o?void 0:o.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class xt{constructor(t,o,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=o,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){ft(this,t)}}const vt=D.litHtmlPolyfillSupport;null==vt||vt(pt,ht),(null!==(K=D.litHtmlVersions)&&void 0!==K?K:D.litHtmlVersions=[]).push("2.7.3");
|
|
134
134
|
/**
|
|
135
135
|
* @license
|
|
136
136
|
* Copyright 2020 Google LLC
|
|
137
137
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
138
138
|
*/
|
|
139
|
-
const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void 0:t._$litStatic$},kt=t=>({_$litStatic$:t,r:$t}),zt=new Map,St=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,h=0,p=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],n=wt(s));)l+=n+i[++h],p=!0;h!==o&&a.push(s),r.push(l),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=zt.get(t))&&(r.raw=r,zt.set(t,i=r)),e=a}return t(i,...e)})(nt);var Ct;!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"}(Ct||(Ct={}));const It=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),Ot=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),jt={fontFamily:Ot,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},Et=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",It),Bt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",jt.fontSize,"20px"),Mt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",jt.fontWeight,"normal"),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",jt.letterSpacing,"0.15px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",jt.lineHeight,"1.2"),At=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",jt.textTransform,"inherit"),Tt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",It),Ft=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",jt.fontSize,"14px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",jt.fontWeight,"normal"),Lt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",jt.letterSpacing,"0.105px"),_t=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",jt.lineHeight,"1.7"),Pt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",jt.textTransform,"inherit"),Wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",Ot),Dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",jt.fontSize,"16px"),Rt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",jt.fontWeight,"600"),Ht=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",jt.letterSpacing,"0.144px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",jt.lineHeight,"1.5"),Vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",jt.textTransform,"inherit"),Gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",Ot),qt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",jt.fontSize,"14px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",jt.fontWeight,"normal"),Yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",jt.letterSpacing,"0.098px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",jt.lineHeight,"1.7"),Qt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",jt.textTransform,"inherit"),ti=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",Ot),ii=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",jt.fontSize,"16px"),ei=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",jt.fontWeight,"normal"),oi=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",jt.letterSpacing,"0.496px"),ni=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",jt.lineHeight,"1.5"),si=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",jt.textTransform,"inherit"),ri={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",Ot),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",jt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",jt.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",jt.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",jt.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",jt.textTransform,"inherit")},ai=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",Ot),li=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",jt.fontSize,"12px"),hi=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",jt.fontWeight,"normal"),pi=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",jt.letterSpacing,"0.396px"),ci=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",jt.lineHeight,"1.33"),fi=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",jt.textTransform,"inherit"),di=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",Ot),ui=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",jt.fontSize,"10px"),gi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",jt.fontWeight,"normal"),vi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",jt.letterSpacing,"0.33px"),xi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",jt.lineHeight,"1.6"),bi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",jt.textTransform,"inherit"),yi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",Ot),mi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",jt.fontSize,"10px"),$i=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",jt.fontWeight,"normal"),wi=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",jt.letterSpacing,"1.5px"),ki=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",jt.lineHeight,"1.6"),zi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",jt.textTransform,"uppercase"),Si={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",Ot),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",jt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",jt.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",jt.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",jt.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",jt.textTransform,"uppercase")},Ci=e.css`
|
|
139
|
+
const Ot=Symbol.for(""),Nt=t=>{if((null==t?void 0:t.r)===Ot)return null==t?void 0:t._$litStatic$},St=t=>({_$litStatic$:t,r:Ot}),Ct=new Map,$t=(t=>(o,...e)=>{const i=e.length;let r,a;const n=[],l=[];let c,s=0,p=!1;for(;s<i;){for(c=o[s];s<i&&void 0!==(a=e[s],r=Nt(a));)c+=r+o[++s],p=!0;s!==i&&l.push(a),n.push(c),s++}if(s===i&&n.push(o[i]),p){const t=n.join("$$lit$$");void 0===(o=Ct.get(t))&&(n.raw=n,Ct.set(t,o=n)),e=l}return t(o,...e)})(rt);var wt;!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"}(wt||(wt={}));const It=t=>"string"==typeof t?e.unsafeCSS(t):t;class kt{static create(t,o,i,r){const a=t=>It(null!=t?t:r),n=e.css`var(${It(t)}, ${a(r)})`;return n.name=t,n.description=t,n.category=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${It(t)}, ${a(o)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>r,n}static extend(t,o,i,r){const a=t=>i.get(null!=t?t:r),n=e.css`var(${It(t)}, ${a(r)})`;return n.name=t,n.description=o,n.category=i.category,n.fallbackVariable=i,n.defaultValue=r,n.defaultCssValue=a,n.get=o=>e.css`var(${It(t)}, ${a(o)})`,n.breadcrumb=()=>[i.name,...i.breadcrumb()],n.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),n}static external(t,o){const i=o=>t.fallbackVariable?t.fallbackVariable.get(null!=o?o:t.defaultValue):It(null!=o?o:t.lastResortDefaultValue()),r=e.css`var(${It(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=o,r.defaultCssValue=i,r.get=o=>e.css`var(${It(t.name)}, ${i(o)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const Ut={colorWhite:kt.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:kt.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:kt.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:kt.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:kt.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:kt.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:kt.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:kt.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:kt.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:kt.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:kt.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:kt.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:kt.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:kt.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:kt.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:kt.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:kt.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:kt.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:kt.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:kt.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:kt.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:kt.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:kt.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:kt.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:kt.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:kt.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:kt.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:kt.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:kt.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:kt.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:kt.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:kt.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:kt.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:kt.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:kt.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:kt.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:kt.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:kt.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:kt.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:kt.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:kt.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:kt.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:kt.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:kt.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:kt.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:kt.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:kt.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:kt.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:kt.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:kt.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:kt.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:kt.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:kt.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:kt.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:kt.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:kt.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:kt.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:kt.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:kt.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:kt.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:kt.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:kt.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:kt.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:kt.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:kt.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:kt.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:kt.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:kt.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:kt.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:kt.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:kt.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:kt.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:kt.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:kt.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:kt.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:kt.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:kt.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:kt.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:kt.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:kt.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:kt.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:kt.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:kt.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:kt.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:kt.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:kt.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:kt.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:kt.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:kt.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:kt.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:kt.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:kt.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:kt.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:kt.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:kt.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:kt.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:kt.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:kt.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:kt.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:kt.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:kt.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:kt.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:kt.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:kt.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:kt.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:kt.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:kt.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:kt.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:kt.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:kt.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:kt.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:kt.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:kt.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:kt.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:kt.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:kt.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:kt.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:kt.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:kt.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:kt.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:kt.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:kt.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:kt.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:kt.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:kt.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:kt.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:kt.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:kt.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:kt.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:kt.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:kt.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:kt.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:kt.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:kt.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:kt.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:kt.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:kt.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:kt.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:kt.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:kt.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:kt.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:kt.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:kt.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:kt.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:kt.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:kt.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:kt.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:kt.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:kt.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:kt.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:kt.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:kt.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:kt.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:kt.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:kt.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:kt.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:kt.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:kt.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:kt.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:kt.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:kt.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:kt.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:kt.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:kt.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:kt.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:kt.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:kt.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:kt.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:kt.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:kt.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:kt.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:kt.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:kt.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:kt.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:kt.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:kt.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:kt.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:kt.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:kt.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:kt.create("--ft-icon-size-6","","SIZE","48px"),opacity0:kt.create("--ft-opacity-0","","NUMBER","0"),opacity8:kt.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:kt.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:kt.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:kt.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:kt.create("--ft-opacity-80","","NUMBER","0.8")},Wt={display:{fontFamily:kt.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:kt.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:kt.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:kt.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:kt.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:kt.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:kt.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:kt.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:kt.create("--ft-typography-title-1-fontSize","","SIZE","2rem"),letterSpacing:kt.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:kt.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:kt.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:kt.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-title-2-fontWeight","","UNKNOWN","600"),lineHeight:kt.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:kt.create("--ft-typography-title-2-fontSize","","SIZE","1.5rem"),letterSpacing:kt.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:kt.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:kt.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:kt.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-title-3-fontWeight","","UNKNOWN","600"),lineHeight:kt.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:kt.create("--ft-typography-title-3-fontSize","","SIZE","1.25rem"),letterSpacing:kt.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:kt.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:kt.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:kt.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:kt.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:kt.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:kt.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:kt.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:kt.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:kt.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:kt.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:kt.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:kt.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:kt.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:kt.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:kt.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:kt.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:kt.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:kt.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:kt.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:kt.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:kt.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:kt.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:kt.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:kt.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:kt.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:kt.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:kt.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:kt.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:kt.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:kt.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:kt.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:kt.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:kt.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:kt.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:kt.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:kt.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:kt.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:kt.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:kt.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:kt.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:kt.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:kt.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:kt.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:kt.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:kt.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:kt.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:kt.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:kt.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:kt.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:kt.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:kt.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:kt.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:kt.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:kt.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:kt.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:kt.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:kt.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:kt.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:kt.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:kt.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:kt.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:kt.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:kt.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:kt.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:kt.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:kt.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:kt.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:kt.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:kt.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:kt.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:kt.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:kt.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:kt.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:kt.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:kt.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:kt.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:kt.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:kt.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:kt.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:kt.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:kt.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:kt.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:kt.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:kt.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:kt.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:kt.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:kt.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:kt.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:kt.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:kt.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:kt.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:kt.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:kt.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:kt.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:kt.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:kt.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:kt.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:kt.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:kt.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:kt.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:kt.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:kt.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:kt.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:kt.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:kt.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:kt.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:kt.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:kt.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:kt.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:kt.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:kt.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:kt.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:kt.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")}},Rt={backgroundActionPrimary:kt.extend("--ft-background-action-primary","Used as backgorund of primary action components.",Ut.colorBrand0),backgroundErrorPrimary:kt.extend("--ft-background-error-primary","Used as background of error components.",Ut.colorRed0),backgroundErrorSubtle:kt.extend("--ft-background-error-subtle","Used as background of subtle error components.",Ut.colorRed10),backgroundInfoPrimary:kt.extend("--ft-background-info-primary","Used as background of information components.",Ut.colorCyan200),backgroundInfoSubtle:kt.extend("--ft-background-info-subtle","Used as background of subtle information components.",Ut.colorCyan10),backgroundWarningPrimary:kt.extend("--ft-background-warning-primary","Used as background of warning components.",Ut.colorOrange300),backgroundWarningSubtle:kt.extend("--ft-background-warning-subtle","Used as background of subtle information components.",Ut.colorOrange10),backgroundSuccessPrimary:kt.extend("--ft-background-success-primary","Used as background of success components.",Ut.colorGreen200),backgroundSuccessSubtle:kt.extend("--ft-background-success-subtle","Used as background of subtle success components.",Ut.colorGreen10),backgroundGlobalSurface:kt.extend("--ft-background-global-surface","Used as app background.",Ut.colorWhite),backgroundGlobalOnSurface:kt.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",Ut.colorGray10),backgroundGlobalOnSurfaceDark:kt.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",Ut.colorGray30),contentActionPrimary:kt.extend("--ft-content-action-primary","Used on label of primary action on light surface.",Ut.colorBrand0),contentWarningPrimary:kt.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",Ut.colorOrange300),contentWarningIconOnly:kt.extend("--ft-content-warning-icon-only","Used on warning status icons alone",Ut.colorOrange0),contentErrorPrimary:kt.extend("--ft-content-error-primary","Used on label of error messages on light surface.",Ut.colorRed0),contentErrorIconOnly:kt.extend("--ft-content-error-icon-only","Used on error status icons alone",Ut.colorRed0),contentInfoPrimary:kt.extend("--ft-content-info-primary","Used on label of information messages on light surface.",Ut.colorCyan200),contentInfoIconOnly:kt.extend("--ft-content-info-icon-only","Used on info status icons alone",Ut.colorCyan0),contentSuccessIconOnly:kt.extend("--ft-content-success-icon-only","Used on success status icons alone",Ut.colorGreen0),contentSuccessPrimary:kt.extend("--ft-content-success-primary","Used on label of success messages on light surface.",Ut.colorGreen200),contentGlobalPrimary:kt.extend("--ft-content-global-primary","Used for main content on the page.",Ut.colorGray500),contentGlobalSecondary:kt.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",Ut.colorGray200),contentGlobalSubtle:kt.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",Ut.colorGray0),contentGlobalOnColor:kt.extend("--ft-content-global-on-color","Used for content on a dominant color.",Ut.colorWhite),borderActionPrimary:kt.extend("--ft-border-action-primary","Used as border for primary action components.",Ut.colorBrand0),borderActionFocusRing:kt.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",Ut.colorCyan0),borderWarningPrimary:kt.extend("--ft-border-warning-primary","Used as border for warning components.",Ut.colorOrange30),borderSuccessPrimary:kt.extend("--ft-border-success-primary","Used as border for success components.",Ut.colorGreen30),borderErrorPrimary:kt.extend("--ft-border-error-primary","Used as border for error components.",Ut.colorRed30),borderInfoPrimary:kt.extend("--ft-border-info-primary","Used as border for information components.",Ut.colorCyan30),borderGlobalSubtle:kt.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",Ut.colorGray30),borderGlobalPrimary:kt.extend("--ft-border-global-primary","Used as border for element like input.",Ut.colorGray50),borderInputPrimary:kt.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",Ut.colorGray80)},Lt={largeHeight:kt.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:kt.extend("--ft-button-large-horizontal-padding","",Ut.spacing4),largeGap:kt.extend("--ft-button-large-gap","",Ut.spacing2),largeBorderRadius:kt.extend("--ft-button-large-border-radius","",Ut.borderRadiusS),largeIconSize:kt.extend("--ft-button-large-icon-size","",Ut.iconSize3),largeBorderWidth:kt.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:kt.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:kt.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:kt.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:kt.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:kt.extend("--ft-button-small-horizontal-padding","",Ut.spacing3),smallGap:kt.extend("--ft-button-small-gap","",Ut.spacing2),smallBorderRadius:kt.extend("--ft-button-small-border-radius","",Ut.borderRadiusS),smallIconSize:kt.extend("--ft-button-small-icon-size","",Ut.iconSize2),smallBorderWidth:kt.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:kt.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:kt.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:kt.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:kt.extend("--ft-button-primary-background-color","",Rt.backgroundActionPrimary),primaryColor:kt.extend("--ft-button-primary-color","",Rt.contentGlobalOnColor),primaryIconColor:kt.extend("--ft-button-primary-icon-color","",Rt.contentGlobalOnColor),primaryStateLayerColor:kt.extend("--ft-button-primary-state-layer-color","",Rt.contentGlobalOnColor),primaryStateLayerOpacityHover:kt.extend("--ft-button-primary-state-layer-opacity-hover","",Ut.opacity16),primaryStateLayerOpacityFocus:kt.extend("--ft-button-primary-state-layer-opacity-focus","",Ut.opacity16),primaryStateLayerOpacityActive:kt.extend("--ft-button-primary-state-layer-opacity-active","",Ut.opacity24),primaryComponentOpacityDisabled:kt.extend("--ft-button-primary-component-opacity-disabled","",Ut.opacity40),focusFocusRingColor:kt.extend("--ft-button-focus-focus-ring-color","",Rt.borderActionFocusRing),tertiaryBackgroundColor:kt.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:kt.extend("--ft-button-tertiary-color","",Rt.contentActionPrimary),tertiaryIconColor:kt.extend("--ft-button-tertiary-icon-color","",Rt.contentActionPrimary),tertiaryStateLayerColor:kt.extend("--ft-button-tertiary-state-layer-color","",Rt.contentActionPrimary),tertiaryStateLayerOpacityHover:kt.extend("--ft-button-tertiary-state-layer-opacity-hover","",Ut.opacity8),tertiaryStateLayerOpacityFocus:kt.extend("--ft-button-tertiary-state-layer-opacity-focus","",Ut.opacity8),tertiaryStateLayerOpacityActive:kt.extend("--ft-button-tertiary-state-layer-opacity-active","",Ut.opacity16),tertiaryComponentOpacityDisabled:kt.extend("--ft-button-tertiary-component-opacity-disabled","",Ut.opacity40),secondaryBackgroundColor:kt.extend("--ft-button-secondary-background-color","",Ut.colorWhite),secondaryColor:kt.extend("--ft-button-secondary-color","",Rt.contentActionPrimary),secondaryIconColor:kt.extend("--ft-button-secondary-icon-color","",Rt.contentActionPrimary),secondaryStateLayerColor:kt.extend("--ft-button-secondary-state-layer-color","",Rt.contentActionPrimary),secondaryStateLayerOpacityHover:kt.extend("--ft-button-secondary-state-layer-opacity-hover","",Ut.opacity8),secondaryStateLayerOpacityFocus:kt.extend("--ft-button-secondary-state-layer-opacity-focus","",Ut.opacity8),secondaryStateLayerOpacityActive:kt.extend("--ft-button-secondary-state-layer-opacity-active","",Ut.opacity16),secondaryComponentOpacityDisabled:kt.extend("--ft-button-secondary-component-opacity-disabled","",Ut.opacity40),secondaryBorderColor:kt.extend("--ft-button-secondary-border-color","",Rt.borderActionPrimary),neutralBackgroundColor:kt.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:kt.extend("--ft-button-neutral-icon-color","",Rt.contentGlobalSecondary),neutralColor:kt.extend("--ft-button-neutral-color","",Rt.contentGlobalSecondary),neutralStateLayerColor:kt.extend("--ft-button-neutral-state-layer-color","",Rt.contentGlobalSecondary),neutralStateLayerOpacityHover:kt.extend("--ft-button-neutral-state-layer-opacity-hover","",Ut.opacity8),neutralStateLayerOpacityFocus:kt.extend("--ft-button-neutral-state-layer-opacity-focus","",Ut.opacity8),neutralStateLayerOpacityActive:kt.extend("--ft-button-neutral-state-layer-opacity-active","",Ut.opacity16),neutralComponentOpacityDisabled:kt.extend("--ft-button-neutral-component-opacity-disabled","",Ut.opacity40)};kt.extend("--ft-tabs-top-left-border-radius","",Ut.borderRadiusS),kt.extend("--ft-tabs-top-right-border-radius","",Ut.borderRadiusS),kt.extend("--ft-tabs-label-horizontal-padding","",Ut.spacing4),kt.extend("--ft-tabs-label-vertical-padding","",Ut.spacing3),kt.extend("--ft-tabs-label-gap","",Ut.spacing1),kt.extend("--ft-switch-group-horizontal-padding","",Ut.spacing1),kt.extend("--ft-switch-group-vertical-padding","",Ut.spacing1),kt.extend("--ft-switch-group-gap","",Ut.spacing1),kt.extend("--ft-switch-group-background-color","",Rt.backgroundGlobalSurface),kt.extend("--ft-switch-group-border-color","",Rt.borderGlobalSubtle),kt.create("--ft-switch-group-border-radius","","SIZE","6px"),kt.extend("--ft-switch-label-horizontal-padding","",Ut.spacing2),kt.extend("--ft-switch-label-vertical-padding","",Ut.spacing1),kt.extend("--ft-switch-icon-horizontal-padding","",Ut.spacing1),kt.extend("--ft-switch-icon-vertical-padding","",Ut.spacing1),kt.create("--ft-switch-focus-outline-width","","SIZE","2px"),kt.extend("--ft-switch-focus-focus-ring-color","",Rt.borderActionFocusRing),kt.extend("--ft-switch-option-border-radius","",Ut.borderRadiusS),kt.extend("--ft-switch-off-state-layer-opacity-hover","",Ut.opacity8),kt.extend("--ft-switch-off-state-layer-opacity-focus","",Ut.opacity8),kt.extend("--ft-switch-off-state-layer-opacity-active","",Ut.opacity16),kt.extend("--ft-switch-off-component-opacity-disabled","",Ut.opacity40),kt.extend("--ft-switch-off-color","",Rt.contentGlobalSubtle),kt.extend("--ft-switch-off-state-layer-color","",Rt.contentGlobalSubtle),kt.extend("--ft-chart-1-light","for area color charts",Ut.colorBrand40),kt.extend("--ft-chart-1-base","for line charts",Ut.colorBrand0),kt.extend("--ft-chart-2-light","for area color charts",Ut.colorYellow60),kt.extend("--ft-chart-2-base","for line charts",Ut.colorYellow100),kt.extend("--ft-chart-3-light","",Ut.colorUltramarine40),kt.extend("--ft-chart-3-base","",Ut.colorUltramarine70),kt.extend("--ft-chart-4-light","",Ut.colorCyan50),kt.extend("--ft-chart-4-base","",Ut.colorCyan100),kt.extend("--ft-chart-5-light","",Ut.colorRed40),kt.extend("--ft-chart-5-base","",Ut.colorRed60),kt.extend("--ft-chart-6-light","",Ut.colorGreen40),kt.extend("--ft-chart-6-base","",Ut.colorGreen70),kt.extend("--ft-chart-7-light","",Ut.colorOrange70),kt.extend("--ft-chart-7-base","",Ut.colorOrange100),kt.extend("--ft-chart-8-light","",Ut.colorAvocado70),kt.extend("--ft-chart-8-base","",Ut.colorAvocado200),kt.extend("--ft-chart-9-light","",Ut.colorBrown50),kt.extend("--ft-chart-9-base","",Ut.colorBrown200),kt.extend("--ft-chart-10-light","",Ut.colorGray50),kt.extend("--ft-chart-10-base","",Ut.colorGray80),kt.extend("--ft-chart-monochrome-10","",Ut.colorBrand10),kt.extend("--ft-chart-monochrome-20","",Ut.colorBrand20),kt.extend("--ft-chart-monochrome-30","",Ut.colorBrand40),kt.extend("--ft-chart-monochrome-40","",Ut.colorBrand60),kt.extend("--ft-chart-monochrome-50","",Ut.colorBrand0),kt.extend("--ft-chart-monochrome-60","",Ut.colorBrand200),kt.extend("--ft-chip-large-horizontal-padding","",Ut.spacing4),kt.extend("--ft-chip-large-vertical-padding","",Ut.spacing2),kt.extend("--ft-chip-large-gap","",Ut.spacing1),kt.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),kt.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),kt.extend("--ft-chip-large-border-radius","",Ut.borderRadiusPill),kt.create("--ft-chip-large-border-width","","SIZE","1px"),kt.extend("--ft-chip-large-icon-size","",Ut.iconSize3),kt.extend("--ft-chip-medium-horizontal-padding","",Ut.spacing3),kt.extend("--ft-chip-medium-vertical-padding","",Ut.spacing1),kt.extend("--ft-chip-medium-gap","",Ut.spacing1),kt.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),kt.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),kt.extend("--ft-chip-medium-border-radius","",Ut.borderRadiusPill),kt.create("--ft-chip-medium-border-width","","SIZE","1px"),kt.extend("--ft-chip-medium-icon-size","",Ut.iconSize2),kt.extend("--ft-chip-small-horizontal-padding","",Ut.spacing2),kt.extend("--ft-chip-small-vertical-padding","",Ut.spacing05),kt.extend("--ft-chip-small-gap","",Ut.spacing1),kt.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),kt.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),kt.extend("--ft-chip-small-border-radius","",Ut.borderRadiusPill),kt.create("--ft-chip-small-border-width","","SIZE","1px"),kt.extend("--ft-chip-small-icon-size","",Ut.iconSize1),kt.extend("--ft-chip-neutral-background-color","",Rt.backgroundGlobalOnSurface),kt.extend("--ft-chip-neutral-color","",Rt.contentGlobalPrimary),kt.extend("--ft-chip-neutral-border-color","",Rt.borderGlobalSubtle),kt.extend("--ft-chip-info-background-color","",Rt.backgroundInfoSubtle),kt.extend("--ft-chip-info-color","",Rt.contentInfoPrimary),kt.extend("--ft-chip-info-border-color","",Rt.borderInfoPrimary),kt.extend("--ft-chip-success-background-color","",Rt.backgroundSuccessSubtle),kt.extend("--ft-chip-success-color","",Rt.contentSuccessPrimary),kt.extend("--ft-chip-success-border-color","",Rt.borderSuccessPrimary),kt.extend("--ft-chip-warning-background-color","",Rt.backgroundWarningSubtle),kt.extend("--ft-chip-warning-color","",Rt.contentWarningPrimary),kt.extend("--ft-chip-warning-border-color","",Rt.borderWarningPrimary),kt.extend("--ft-chip-error-background-color","",Rt.backgroundErrorSubtle),kt.extend("--ft-chip-error-color","",Rt.contentErrorPrimary),kt.extend("--ft-chip-error-border-color","",Rt.borderErrorPrimary),kt.create("--ft-notice-border-width","","SIZE","1px"),kt.extend("--ft-notice-horizontal-padding","",Ut.spacing2),kt.extend("--ft-notice-vertical-padding","",Ut.spacing1),kt.extend("--ft-notice-border-radius","",Ut.borderRadiusS),kt.extend("--ft-notice-gap","",Ut.spacing2),kt.extend("--ft-notice-icon-size","",Ut.iconSize3),kt.extend("--ft-notice-info-background-color","",Rt.backgroundInfoSubtle),kt.extend("--ft-notice-info-border-color","",Rt.borderInfoPrimary),kt.extend("--ft-notice-info-color","",Rt.contentInfoPrimary),kt.extend("--ft-notice-warning-background-color","",Rt.backgroundWarningSubtle),kt.extend("--ft-notice-warning-border-color","",Rt.borderWarningPrimary),kt.extend("--ft-notice-warning-color","",Rt.contentWarningPrimary),kt.extend("--ft-checkbox-label-color","",Rt.contentGlobalPrimary),kt.extend("--ft-checkbox-checked-background-color","",Rt.contentActionPrimary),kt.extend("--ft-checkbox-checked-state-layer-color","",Rt.contentActionPrimary),kt.extend("--ft-checkbox-checked-color","",Rt.contentGlobalOnColor),kt.extend("--ft-checkbox-checked-state-layer-opacity-hover","",Ut.opacity16),kt.extend("--ft-checkbox-checked-state-layer-opacity-focus","",Ut.opacity16),kt.extend("--ft-checkbox-checked-state-layer-opacity-active","",Ut.opacity24),kt.extend("--ft-checkbox-checked-component-opacity-disabled","",Ut.opacity40),kt.extend("--ft-checkbox-unchecked-border-color","",Ut.colorGray80),kt.extend("--ft-checkbox-unchecked-state-layer-color","",Ut.colorGray80),kt.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",Ut.opacity16),kt.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",Ut.opacity16),kt.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",Ut.opacity24),kt.extend("--ft-checkbox-unchecked-component-opacity-disabled","",Ut.opacity40),kt.extend("--ft-checkbox-focus-focus-ring-color","",Rt.borderActionFocusRing),kt.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),kt.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),kt.extend("--ft-checkbox-gap","",Ut.spacing3),kt.extend("--ft-toggle-off-state-layer-opacity-hover","",Ut.opacity16),kt.extend("--ft-toggle-off-state-layer-opacity-focus","",Ut.opacity16),kt.extend("--ft-toggle-off-state-layer-opacity-active","",Ut.opacity24),kt.extend("--ft-toggle-off-component-opacity-disabled","",Ut.opacity40),kt.extend("--ft-toggle-off-background-color","",Rt.contentGlobalSubtle),kt.extend("--ft-toggle-off-icon-color","",Rt.contentGlobalSubtle),kt.extend("--ft-toggle-off-state-layer-color","",Rt.contentGlobalSubtle),kt.extend("--ft-toggle-on-state-layer-opacity-hover","",Ut.opacity16),kt.extend("--ft-toggle-on-state-layer-opacity-focus","",Ut.opacity16),kt.extend("--ft-toggle-on-state-layer-opacity-active","",Ut.opacity24),kt.extend("--ft-toggle-on-component-opacity-disabled","",Ut.opacity40),kt.extend("--ft-toggle-on-background-color","",Rt.contentActionPrimary),kt.extend("--ft-toggle-on-icon-color","",Rt.contentActionPrimary),kt.extend("--ft-toggle-on-state-layer-color","",Rt.contentActionPrimary),kt.extend("--ft-toggle-label-color","",Rt.contentGlobalPrimary),kt.extend("--ft-toggle-focus-focus-ring-color","",Rt.borderActionFocusRing),kt.extend("--ft-toggle-gap","",Ut.spacing3),kt.extend("--ft-radio-label-color","",Rt.contentGlobalPrimary),kt.extend("--ft-radio-selected-color","",Rt.contentActionPrimary),kt.extend("--ft-radio-selected-state-layer-color","",Rt.contentActionPrimary),kt.extend("--ft-radio-selected-state-layer-opacity-hover","",Ut.opacity16),kt.extend("--ft-radio-selected-state-layer-opacity-focus","",Ut.opacity16),kt.extend("--ft-radio-selected-state-layer-opacity-active","",Ut.opacity24),kt.extend("--ft-radio-selected-component-opacity-disabled","",Ut.opacity40),kt.extend("--ft-radio-unselected-state-layer-color","",Ut.colorGray80),kt.extend("--ft-radio-unselected-state-layer-opacity-hover","",Ut.opacity16),kt.extend("--ft-radio-unselected-state-layer-opacity-focus","",Ut.opacity16),kt.extend("--ft-radio-unselected-state-layer-opacity-active","",Ut.opacity24),kt.extend("--ft-radio-unselected-component-opacity-disabled","",Ut.opacity40),kt.extend("--ft-radio-focus-focus-ring-color","",Rt.borderActionFocusRing),kt.create("--ft-radio-focus-outline-offset","","SIZE","3px"),kt.create("--ft-radio-focus-outline-width","","SIZE","2px"),kt.extend("--ft-radio-gap","",Ut.spacing3),kt.extend("--ft-notification-icon-size","",Ut.iconSize4),kt.extend("--ft-notification-horizontal-padding","",Ut.spacing4),kt.extend("--ft-notification-vertical-padding","",Ut.spacing4),kt.extend("--ft-notification-info-background-color","",Rt.backgroundInfoSubtle),kt.extend("--ft-notification-info-color","",Rt.contentInfoPrimary),kt.extend("--ft-notification-info-border-color","",Rt.borderInfoPrimary),kt.extend("--ft-notification-success-background-color","",Rt.backgroundSuccessSubtle),kt.extend("--ft-notification-success-color","",Rt.contentSuccessPrimary),kt.extend("--ft-notification-success-border-color","",Rt.borderSuccessPrimary),kt.extend("--ft-notification-warning-background-color","",Rt.backgroundWarningSubtle),kt.extend("--ft-notification-warning-color","",Rt.contentWarningPrimary),kt.extend("--ft-notification-warning-border-color","",Rt.borderWarningPrimary),kt.extend("--ft-notification-error-background-color","",Rt.backgroundErrorSubtle),kt.extend("--ft-notification-error-color","",Rt.contentErrorPrimary),kt.extend("--ft-notification-error-border-color","",Rt.borderErrorPrimary),kt.extend("--ft-notification-border-radius","",Ut.borderRadiusPill),kt.create("--ft-notification-border-width","","SIZE","1px"),kt.extend("--ft-notification-gap-leading","",Ut.spacing2),kt.extend("--ft-notification-gap-trailing","",Ut.spacing8);const Et=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.titleFont),zt=o.FtCssVariableFactory.extend("--ft-typography-font-family","",o.designSystemVariables.contentFont),Zt={fontFamily:zt,fontSize:o.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Kt=o.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Et),Bt=o.FtCssVariableFactory.extend("--ft-typography-title-font-size","",Zt.fontSize,"20px"),Ft=o.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",Zt.fontWeight,"normal"),Dt=o.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",Zt.letterSpacing,"0.15px"),At=o.FtCssVariableFactory.extend("--ft-typography-title-line-height","",Zt.lineHeight,"1.2"),Ht=o.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",Zt.textTransform,"inherit"),Gt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Et),jt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",Zt.fontSize,"14px"),Mt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",Zt.fontWeight,"normal"),Pt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",Zt.letterSpacing,"0.105px"),Tt=o.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",Zt.lineHeight,"1.7"),_t=o.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",Zt.textTransform,"inherit"),Yt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",zt),Vt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",Zt.fontSize,"16px"),qt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",Zt.fontWeight,"600"),Xt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",Zt.letterSpacing,"0.144px"),Jt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",Zt.lineHeight,"1.5"),Qt=o.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",Zt.textTransform,"inherit"),to=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",zt),oo=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",Zt.fontSize,"14px"),eo=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",Zt.fontWeight,"normal"),io=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",Zt.letterSpacing,"0.098px"),ro=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",Zt.lineHeight,"1.7"),ao=o.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",Zt.textTransform,"inherit"),no=o.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",zt),lo=o.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",Zt.fontSize,"16px"),co=o.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",Zt.fontWeight,"normal"),so=o.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",Zt.letterSpacing,"0.496px"),po=o.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",Zt.lineHeight,"1.5"),fo=o.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",Zt.textTransform,"inherit"),ho={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",zt),fontSize:o.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",Zt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",Zt.fontWeight,"normal"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",Zt.letterSpacing,"0.252px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",Zt.lineHeight,"1.4"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",Zt.textTransform,"inherit")},go=o.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",zt),yo=o.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",Zt.fontSize,"12px"),uo=o.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",Zt.fontWeight,"normal"),bo=o.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",Zt.letterSpacing,"0.396px"),mo=o.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",Zt.lineHeight,"1.33"),xo=o.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",Zt.textTransform,"inherit"),vo=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",zt),Oo=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",Zt.fontSize,"10px"),No=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",Zt.fontWeight,"normal"),So=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",Zt.letterSpacing,"0.33px"),Co=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",Zt.lineHeight,"1.6"),$o=o.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",Zt.textTransform,"inherit"),wo=o.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",zt),Io=o.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",Zt.fontSize,"10px"),ko=o.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",Zt.fontWeight,"normal"),Uo=o.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",Zt.letterSpacing,"1.5px"),Wo=o.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",Zt.lineHeight,"1.6"),Ro=o.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",Zt.textTransform,"uppercase"),Lo={fontFamily:o.FtCssVariableFactory.extend("--ft-typography-button-font-family","",zt),fontSize:o.FtCssVariableFactory.extend("--ft-typography-button-font-size","",Zt.fontSize,"14px"),fontWeight:o.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",Zt.fontWeight,"600"),letterSpacing:o.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",Zt.letterSpacing,"1.246px"),lineHeight:o.FtCssVariableFactory.extend("--ft-typography-button-line-height","",Zt.lineHeight,"1.15"),textTransform:o.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",Zt.textTransform,"uppercase")},Eo=e.css`
|
|
140
140
|
.ft-typography--title {
|
|
141
|
-
font-family: ${
|
|
141
|
+
font-family: ${Kt};
|
|
142
142
|
font-size: ${Bt};
|
|
143
|
-
font-weight: ${
|
|
144
|
-
letter-spacing: ${
|
|
145
|
-
line-height: ${
|
|
146
|
-
text-transform: ${
|
|
143
|
+
font-weight: ${Ft};
|
|
144
|
+
letter-spacing: ${Dt};
|
|
145
|
+
line-height: ${At};
|
|
146
|
+
text-transform: ${Ht};
|
|
147
147
|
}
|
|
148
|
-
`,
|
|
148
|
+
`,zo=e.css`
|
|
149
149
|
.ft-typography--title-dense {
|
|
150
|
-
font-family: ${Tt};
|
|
151
|
-
font-size: ${Ft};
|
|
152
|
-
font-weight: ${Zt};
|
|
153
|
-
letter-spacing: ${Lt};
|
|
154
|
-
line-height: ${_t};
|
|
155
|
-
text-transform: ${Pt};
|
|
156
|
-
}
|
|
157
|
-
`,Oi=e.css`
|
|
158
|
-
.ft-typography--subtitle1 {
|
|
159
|
-
font-family: ${Wt};
|
|
160
|
-
font-size: ${Dt};
|
|
161
|
-
font-weight: ${Rt};
|
|
162
|
-
letter-spacing: ${Ht};
|
|
163
|
-
line-height: ${Kt};
|
|
164
|
-
text-transform: ${Vt};
|
|
165
|
-
}
|
|
166
|
-
`,ji=e.css`
|
|
167
|
-
.ft-typography--subtitle2 {
|
|
168
150
|
font-family: ${Gt};
|
|
169
|
-
font-size: ${
|
|
170
|
-
font-weight: ${
|
|
171
|
-
letter-spacing: ${
|
|
151
|
+
font-size: ${jt};
|
|
152
|
+
font-weight: ${Mt};
|
|
153
|
+
letter-spacing: ${Pt};
|
|
154
|
+
line-height: ${Tt};
|
|
155
|
+
text-transform: ${_t};
|
|
156
|
+
}
|
|
157
|
+
`,Zo=e.css`
|
|
158
|
+
.ft-typography--subtitle1 {
|
|
159
|
+
font-family: ${Yt};
|
|
160
|
+
font-size: ${Vt};
|
|
161
|
+
font-weight: ${qt};
|
|
162
|
+
letter-spacing: ${Xt};
|
|
172
163
|
line-height: ${Jt};
|
|
173
164
|
text-transform: ${Qt};
|
|
174
165
|
}
|
|
166
|
+
`,Ko=e.css`
|
|
167
|
+
.ft-typography--subtitle2 {
|
|
168
|
+
font-family: ${to};
|
|
169
|
+
font-size: ${oo};
|
|
170
|
+
font-weight: ${eo};
|
|
171
|
+
letter-spacing: ${io};
|
|
172
|
+
line-height: ${ro};
|
|
173
|
+
text-transform: ${ao};
|
|
174
|
+
}
|
|
175
175
|
|
|
176
|
-
`,
|
|
176
|
+
`,Bo=e.css`
|
|
177
177
|
.ft-typography--body1 {
|
|
178
|
-
font-family: ${
|
|
179
|
-
font-size: ${
|
|
180
|
-
font-weight: ${
|
|
181
|
-
letter-spacing: ${
|
|
182
|
-
line-height: ${
|
|
183
|
-
text-transform: ${
|
|
184
|
-
}
|
|
185
|
-
`,
|
|
178
|
+
font-family: ${no};
|
|
179
|
+
font-size: ${lo};
|
|
180
|
+
font-weight: ${co};
|
|
181
|
+
letter-spacing: ${so};
|
|
182
|
+
line-height: ${po};
|
|
183
|
+
text-transform: ${fo};
|
|
184
|
+
}
|
|
185
|
+
`,Fo=e.css`
|
|
186
186
|
.ft-typography--body2 {
|
|
187
|
-
font-family: ${
|
|
188
|
-
font-size: ${
|
|
189
|
-
font-weight: ${
|
|
190
|
-
letter-spacing: ${
|
|
191
|
-
line-height: ${
|
|
192
|
-
text-transform: ${
|
|
193
|
-
}
|
|
194
|
-
`,
|
|
187
|
+
font-family: ${ho.fontFamily};
|
|
188
|
+
font-size: ${ho.fontSize};
|
|
189
|
+
font-weight: ${ho.fontWeight};
|
|
190
|
+
letter-spacing: ${ho.letterSpacing};
|
|
191
|
+
line-height: ${ho.lineHeight};
|
|
192
|
+
text-transform: ${ho.textTransform};
|
|
193
|
+
}
|
|
194
|
+
`,Do=e.css`
|
|
195
195
|
.ft-typography--caption {
|
|
196
|
-
font-family: ${
|
|
197
|
-
font-size: ${
|
|
198
|
-
font-weight: ${
|
|
199
|
-
letter-spacing: ${
|
|
200
|
-
line-height: ${
|
|
201
|
-
text-transform: ${
|
|
202
|
-
}
|
|
203
|
-
`,
|
|
196
|
+
font-family: ${go};
|
|
197
|
+
font-size: ${yo};
|
|
198
|
+
font-weight: ${uo};
|
|
199
|
+
letter-spacing: ${bo};
|
|
200
|
+
line-height: ${mo};
|
|
201
|
+
text-transform: ${xo};
|
|
202
|
+
}
|
|
203
|
+
`,Ao=e.css`
|
|
204
204
|
.ft-typography--breadcrumb {
|
|
205
|
-
font-family: ${
|
|
206
|
-
font-size: ${
|
|
207
|
-
font-weight: ${
|
|
208
|
-
letter-spacing: ${
|
|
209
|
-
line-height: ${
|
|
210
|
-
text-transform: ${
|
|
211
|
-
}
|
|
212
|
-
`,
|
|
205
|
+
font-family: ${vo};
|
|
206
|
+
font-size: ${Oo};
|
|
207
|
+
font-weight: ${No};
|
|
208
|
+
letter-spacing: ${So};
|
|
209
|
+
line-height: ${Co};
|
|
210
|
+
text-transform: ${$o};
|
|
211
|
+
}
|
|
212
|
+
`,Ho=e.css`
|
|
213
213
|
.ft-typography--overline {
|
|
214
|
-
font-family: ${
|
|
215
|
-
font-size: ${
|
|
216
|
-
font-weight: ${
|
|
217
|
-
letter-spacing: ${
|
|
218
|
-
line-height: ${
|
|
219
|
-
text-transform: ${
|
|
220
|
-
}
|
|
221
|
-
`,
|
|
214
|
+
font-family: ${wo};
|
|
215
|
+
font-size: ${Io};
|
|
216
|
+
font-weight: ${ko};
|
|
217
|
+
letter-spacing: ${Uo};
|
|
218
|
+
line-height: ${Wo};
|
|
219
|
+
text-transform: ${Ro};
|
|
220
|
+
}
|
|
221
|
+
`,Go=e.css`
|
|
222
222
|
.ft-typography--button {
|
|
223
|
-
font-family: ${
|
|
224
|
-
font-size: ${
|
|
225
|
-
font-weight: ${
|
|
226
|
-
letter-spacing: ${
|
|
227
|
-
line-height: ${
|
|
228
|
-
text-transform: ${
|
|
229
|
-
}
|
|
230
|
-
`,
|
|
223
|
+
font-family: ${Lo.fontFamily};
|
|
224
|
+
font-size: ${Lo.fontSize};
|
|
225
|
+
font-weight: ${Lo.fontWeight};
|
|
226
|
+
letter-spacing: ${Lo.letterSpacing};
|
|
227
|
+
line-height: ${Lo.lineHeight};
|
|
228
|
+
text-transform: ${Lo.textTransform};
|
|
229
|
+
}
|
|
230
|
+
`,jo=e.css`
|
|
231
231
|
.ft-typography {
|
|
232
232
|
vertical-align: inherit;
|
|
233
233
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
234
|
+
`,Mo=[Object.keys(Wt).map((t=>function(t){const o=Wt[t];return e.css`
|
|
235
|
+
font-family: ${o.fontFamily};
|
|
236
|
+
font-size: ${o.fontSize};
|
|
237
|
+
font-weight: ${o.fontWeight};
|
|
238
|
+
letter-spacing: ${o.letterSpacing};
|
|
239
|
+
line-height: ${o.lineHeight};
|
|
240
|
+
text-transform: ${o.textCase};
|
|
241
|
+
`}(t)))];var Po,To,_o=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Yo extends o.FtLitElement{constructor(){super(...arguments),this.variant=wt.body1}render(){return this.element?$t`
|
|
242
|
+
<${St(this.element)}
|
|
243
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
237
244
|
<slot></slot>
|
|
238
|
-
</${
|
|
239
|
-
|
|
245
|
+
</${St(this.element)}>
|
|
246
|
+
`:$t`
|
|
240
247
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
241
|
-
`}}
|
|
248
|
+
`}}Yo.styles=[Eo,zo,Zo,Ko,Bo,Fo,Do,Ao,Ho,Go,jo,...Mo],_o([r.property()],Yo.prototype,"element",void 0),_o([r.property()],Yo.prototype,"variant",void 0),o.customElement("ft-typography")(Yo),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=""}(Po||(Po={})),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=""}(To||(To={})),new Map([...["abw"].map((t=>[t,To.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,To.AUDIO])),...["avi"].map((t=>[t,To.AVI])),...["chm","xhs"].map((t=>[t,To.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,To.CODE])),...["csv"].map((t=>[t,To.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,To.DITA])),...["epub"].map((t=>[t,To.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,To.EXCEL])),...["flac"].map((t=>[t,To.FLAC])),...["gif"].map((t=>[t,To.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,To.GZIP])),...["html","htm","xhtml"].map((t=>[t,To.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,To.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,To.JPEG])),...["json"].map((t=>[t,To.JSON])),...["m4a","m4p"].map((t=>[t,To.M4A])),...["mov","qt"].map((t=>[t,To.MOV])),...["mp3"].map((t=>[t,To.MP3])),...["mp4","m4v"].map((t=>[t,To.MP4])),...["ogg","oga"].map((t=>[t,To.OGG])),...["pdf","ps"].map((t=>[t,To.PDF])),...["png"].map((t=>[t,To.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,To.POWERPOINT])),...["rar"].map((t=>[t,To.RAR])),...["stp"].map((t=>[t,To.STP])),...["txt","rtf","md","mdown"].map((t=>[t,To.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,To.VIDEO])),...["wav"].map((t=>[t,To.WAV])),...["wma"].map((t=>[t,To.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,To.WORD])),...["xml","xsl","rdf"].map((t=>[t,To.XML])),...["yaml","yml","x-yaml"].map((t=>[t,To.YAML])),...["zip"].map((t=>[t,To.ZIP]))]);const Vo={size:o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},qo=e.css`
|
|
242
249
|
:host, i.ft-icon {
|
|
243
250
|
display: inline-flex;
|
|
244
251
|
align-items: center;
|
|
@@ -247,14 +254,14 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
247
254
|
}
|
|
248
255
|
|
|
249
256
|
:host {
|
|
250
|
-
width: ${
|
|
251
|
-
height: ${
|
|
257
|
+
width: ${Vo.size};
|
|
258
|
+
height: ${Vo.size};
|
|
252
259
|
}
|
|
253
260
|
|
|
254
261
|
i.ft-icon {
|
|
255
262
|
width: 100%;
|
|
256
263
|
height: 100%;
|
|
257
|
-
font-size: ${
|
|
264
|
+
font-size: ${Vo.size};
|
|
258
265
|
line-height: 1;
|
|
259
266
|
font-weight: normal;
|
|
260
267
|
text-transform: none;
|
|
@@ -265,80 +272,33 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
265
272
|
text-rendering: auto;
|
|
266
273
|
-webkit-font-smoothing: antialiased;
|
|
267
274
|
-moz-osx-font-smoothing: grayscale;
|
|
268
|
-
vertical-align: ${
|
|
275
|
+
vertical-align: ${Vo.verticalAlign};
|
|
269
276
|
}
|
|
270
277
|
|
|
271
278
|
i.ft-icon.ft-icon--fluid-topics {
|
|
272
|
-
font-family: ${
|
|
279
|
+
font-family: ${Vo.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
273
280
|
|
|
274
281
|
/* Ugly fix because font is broken */
|
|
275
|
-
font-size: calc(0.75 * ${
|
|
276
|
-
line-height: ${
|
|
282
|
+
font-size: calc(0.75 * ${Vo.size});
|
|
283
|
+
line-height: ${Vo.size};
|
|
277
284
|
position: relative;
|
|
278
285
|
top: -4%;
|
|
279
286
|
justify-content: center;
|
|
280
287
|
}
|
|
281
288
|
|
|
282
289
|
.ft-icon--file-format {
|
|
283
|
-
font-family: ${
|
|
290
|
+
font-family: ${Vo.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
284
291
|
}
|
|
285
292
|
|
|
286
293
|
.ft-icon--material {
|
|
287
|
-
font-family: ${
|
|
294
|
+
font-family: ${Vo.materialFontFamily}, "Material Icons", sans-serif;
|
|
288
295
|
}
|
|
289
|
-
`;var
|
|
296
|
+
`;var Xo;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Xo||(Xo={}));var Jo=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Qo extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Xo).includes(this.variant)?this.variant:Xo.fluid_topics,o=t!==Xo.material||!!this.value;return e.html`
|
|
290
297
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
291
|
-
${
|
|
292
|
-
<slot ?hidden=${
|
|
298
|
+
${n.unsafeHTML(this.resolvedIcon)}
|
|
299
|
+
<slot ?hidden=${o}></slot>
|
|
293
300
|
</i>
|
|
294
|
-
`}get textContent(){var t,
|
|
295
|
-
.ft-tooltip--container {
|
|
296
|
-
display: block;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
.ft-tooltip--inline {
|
|
300
|
-
display: inline-block;
|
|
301
|
-
max-width: 100%;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
.ft-tooltip {
|
|
305
|
-
position: absolute;
|
|
306
|
-
box-sizing: border-box;
|
|
307
|
-
overflow: hidden;
|
|
308
|
-
width: max-content;
|
|
309
|
-
max-width: ${Yi};
|
|
310
|
-
text-align: center;
|
|
311
|
-
padding: ${Ki};
|
|
312
|
-
z-index: ${qi};
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
.ft-tooltip--content {
|
|
316
|
-
padding: 4px 8px;
|
|
317
|
-
border-radius: ${Xi};
|
|
318
|
-
background-color: ${Gi};
|
|
319
|
-
color: ${Vi};
|
|
320
|
-
position: relative;
|
|
321
|
-
word-break: break-word;
|
|
322
|
-
}
|
|
323
|
-
`;var Qi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class te extends i.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 i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
324
|
-
<div part="container"
|
|
325
|
-
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
326
|
-
@mouseenter=${this.onHover}
|
|
327
|
-
@mouseleave=${this.onOut}
|
|
328
|
-
@focusin=${this.onHover}
|
|
329
|
-
@focusout=${this.onOut}
|
|
330
|
-
@touchstart=${this.onTouch}>
|
|
331
|
-
<slot></slot>
|
|
332
|
-
<div part="tooltip" role="tooltip" inert
|
|
333
|
-
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
334
|
-
?hidden=${!this.visible}>
|
|
335
|
-
<div part="tooltip-content" class="ft-tooltip--content">
|
|
336
|
-
<slot name="text"></slot>
|
|
337
|
-
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
338
|
-
</div>
|
|
339
|
-
</div>
|
|
340
|
-
</div>
|
|
341
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&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 i=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,n=(t.offsetWidth-i)/2;let s=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-e-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=s+"px",a.top=r+"px";const l=this.tooltip.getBoundingClientRect();let h=-l.x,p=l.x+l.width-window.innerWidth;a.left=s+Math.round(this.correctOutOfWindowPixels(h,p))+"px";let c=-l.y,f=l.y+l.height-window.innerHeight;a.top=r+Math.round(this.correctOutOfWindowPixels(c,f))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${Yi})`}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,i){return Math.max(t,Math.min(0,-i))}}te.elementDefinitions={"ft-typography":_i},te.styles=Ji,Qi([n.property()],te.prototype,"text",void 0),Qi([n.property({type:Boolean})],te.prototype,"manual",void 0),Qi([n.property({type:Boolean})],te.prototype,"inline",void 0),Qi([n.property({type:Number})],te.prototype,"delay",void 0),Qi([n.property()],te.prototype,"position",void 0),Qi([n.queryAssignedNodes("",!0)],te.prototype,"slotNodes",void 0),Qi([n.query(".ft-tooltip--container")],te.prototype,"container",void 0),Qi([n.query(".ft-tooltip")],te.prototype,"tooltip",void 0),Qi([n.query(".ft-tooltip--content")],te.prototype,"tooltipContent",void 0),Qi([n.state()],te.prototype,"visible",void 0),i.customElement("ft-tooltip")(te);const ie={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},ee=e.css`
|
|
301
|
+
`}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let i=this.value||this.textContent;switch(this.variant){case Xo.file_format:this.resolvedIcon=null!==(t=To[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Xo.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=Po[i.replace("-","_").toUpperCase()])&&void 0!==o?o:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Qo.elementDefinitions={},Qo.styles=qo,Jo([r.property()],Qo.prototype,"variant",void 0),Jo([r.property()],Qo.prototype,"value",void 0),Jo([r.state()],Qo.prototype,"resolvedIcon",void 0),Jo([r.query("slot")],Qo.prototype,"slottedContent",void 0),o.customElement("ft-icon")(Qo);const te={color:o.FtCssVariableFactory.extend("--ft-loader-color","",o.designSystemVariables.colorPrimary),size:o.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},oe=e.css`
|
|
342
302
|
:host {
|
|
343
303
|
line-height: 0;
|
|
344
304
|
}
|
|
@@ -347,8 +307,8 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
347
307
|
display: inline-block;
|
|
348
308
|
position: relative;
|
|
349
309
|
|
|
350
|
-
width: ${
|
|
351
|
-
height: ${
|
|
310
|
+
width: ${te.size};
|
|
311
|
+
height: ${te.size};
|
|
352
312
|
}
|
|
353
313
|
|
|
354
314
|
.ft-loader div {
|
|
@@ -357,7 +317,7 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
357
317
|
width: 25%;
|
|
358
318
|
height: 25%;
|
|
359
319
|
border-radius: 50%;
|
|
360
|
-
background: ${
|
|
320
|
+
background: ${te.color};
|
|
361
321
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
362
322
|
}
|
|
363
323
|
|
|
@@ -404,17 +364,10 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
404
364
|
transform: translate(0, 0);
|
|
405
365
|
}
|
|
406
366
|
100% {
|
|
407
|
-
transform: translate(calc(0.35 * ${
|
|
367
|
+
transform: translate(calc(0.35 * ${te.size}), 0);
|
|
408
368
|
}
|
|
409
369
|
}
|
|
410
|
-
|
|
411
|
-
<div class="ft-loader">
|
|
412
|
-
<div></div>
|
|
413
|
-
<div></div>
|
|
414
|
-
<div></div>
|
|
415
|
-
<div></div>
|
|
416
|
-
</div>
|
|
417
|
-
`}}oe.styles=ee,i.customElement("ft-loader")(oe);const ne=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),se={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:ne,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",Si.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",ne),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},re=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),ae={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:re,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",re)},le=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),he=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),pe=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),ce=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),fe=[e.css`
|
|
370
|
+
`,ee=o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorPrimary),ie={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorSurface),borderRadius:o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusL),color:ee,fontSize:o.FtCssVariableFactory.extend("--ft-button-font-size","",Lo.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.FtCssVariableFactory.extend("--ft-button-ripple-color","",ee),verticalPadding:o.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},re=o.FtCssVariableFactory.extend("--ft-button-primary-color","",o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorOnPrimary)),ae={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-primary-background-color","",o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorPrimary)),color:re,rippleColor:o.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",re)},ne=o.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusM)),le=o.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),ce=o.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),se=o.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),pe=[e.css`
|
|
418
371
|
:host {
|
|
419
372
|
display: inline-block;
|
|
420
373
|
max-width: 100%;
|
|
@@ -425,7 +378,7 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
425
378
|
box-shadow: 0px 0px 0px transparent;
|
|
426
379
|
border: 0px solid transparent;
|
|
427
380
|
text-shadow: 0px 0px 0px transparent;
|
|
428
|
-
font-size: ${
|
|
381
|
+
font-size: ${ie.fontSize};
|
|
429
382
|
}
|
|
430
383
|
|
|
431
384
|
button:hover {
|
|
@@ -454,31 +407,31 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
454
407
|
border: none;
|
|
455
408
|
pointer-events: auto;
|
|
456
409
|
|
|
457
|
-
--ft-button-internal-line-height: max(calc(${
|
|
458
|
-
--ft-button-internal-color: ${
|
|
459
|
-
${
|
|
460
|
-
${
|
|
410
|
+
--ft-button-internal-line-height: max(calc(${ie.fontSize} + 2px), ${ie.iconSize});
|
|
411
|
+
--ft-button-internal-color: ${ie.color};
|
|
412
|
+
${o.setVariable(Vo.size,ie.iconSize)};
|
|
413
|
+
${o.setVariable(k.color,ie.rippleColor)};
|
|
461
414
|
|
|
462
|
-
border-radius: ${
|
|
463
|
-
padding: ${
|
|
464
|
-
background-color: ${
|
|
415
|
+
border-radius: ${ie.borderRadius};
|
|
416
|
+
padding: ${ie.verticalPadding} ${ie.horizontalPadding};
|
|
417
|
+
background-color: ${ie.backgroundColor};
|
|
465
418
|
color: var(--ft-button-internal-color);
|
|
466
419
|
-webkit-mask-image: radial-gradient(white, black);
|
|
467
420
|
}
|
|
468
421
|
|
|
469
422
|
.ft-button.ft-button--outlined {
|
|
470
423
|
border: 1px solid var(--ft-button-internal-color);
|
|
471
|
-
padding: calc(${
|
|
424
|
+
padding: calc(${ie.verticalPadding} - 1px) calc(${ie.horizontalPadding} - 1px);
|
|
472
425
|
}
|
|
473
426
|
|
|
474
427
|
.ft-button.ft-button--dense {
|
|
475
|
-
padding: ${
|
|
476
|
-
border-radius: ${
|
|
477
|
-
gap: ${
|
|
428
|
+
padding: ${le} ${ce};
|
|
429
|
+
border-radius: ${ne};
|
|
430
|
+
gap: ${se};
|
|
478
431
|
}
|
|
479
432
|
|
|
480
433
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
481
|
-
padding: calc(${
|
|
434
|
+
padding: calc(${le} - 1px) calc(${ce} - 1px);
|
|
482
435
|
}
|
|
483
436
|
|
|
484
437
|
.ft-button:not([disabled]):hover {
|
|
@@ -486,22 +439,22 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
486
439
|
}
|
|
487
440
|
|
|
488
441
|
.ft-button--round {
|
|
489
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
442
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ie.verticalPadding});
|
|
490
443
|
}
|
|
491
444
|
|
|
492
445
|
.ft-button--round.ft-button--dense {
|
|
493
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
446
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${le});
|
|
494
447
|
}
|
|
495
448
|
|
|
496
449
|
.ft-button[disabled] {
|
|
497
450
|
filter: grayscale(1);
|
|
498
|
-
opacity: ${
|
|
451
|
+
opacity: ${ie.opacityDisabled};
|
|
499
452
|
}
|
|
500
453
|
|
|
501
454
|
.ft-button.ft-button--primary {
|
|
502
455
|
background-color: ${ae.backgroundColor};
|
|
503
456
|
--ft-button-internal-color: ${ae.color};
|
|
504
|
-
${
|
|
457
|
+
${o.setVariable(k.color,ae.rippleColor)};
|
|
505
458
|
}
|
|
506
459
|
|
|
507
460
|
.ft-button:focus {
|
|
@@ -514,13 +467,13 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
514
467
|
white-space: nowrap;
|
|
515
468
|
text-overflow: ellipsis;
|
|
516
469
|
display: block;
|
|
517
|
-
margin: 0 ${
|
|
518
|
-
${
|
|
519
|
-
${
|
|
470
|
+
margin: 0 ${ie.iconPadding};
|
|
471
|
+
${o.setVariable(Lo.fontSize,"1em")};
|
|
472
|
+
${o.setVariable(Lo.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
520
473
|
}
|
|
521
474
|
|
|
522
475
|
.ft-button--dense .ft-button--label {
|
|
523
|
-
margin: 0 ${
|
|
476
|
+
margin: 0 ${se};
|
|
524
477
|
}
|
|
525
478
|
|
|
526
479
|
.ft-button--label[hidden] {
|
|
@@ -533,13 +486,13 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
533
486
|
}
|
|
534
487
|
|
|
535
488
|
.ft-button--label[hidden] + ft-icon {
|
|
536
|
-
margin: 0 calc(${
|
|
537
|
-
padding: 0 ${
|
|
489
|
+
margin: 0 calc(${ie.horizontalPadding} * -1);
|
|
490
|
+
padding: 0 ${ie.verticalPadding};
|
|
538
491
|
}
|
|
539
492
|
|
|
540
493
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
541
|
-
margin: 0 calc(${
|
|
542
|
-
padding: 0 ${
|
|
494
|
+
margin: 0 calc(${ce} * -1);
|
|
495
|
+
padding: 0 ${le};
|
|
543
496
|
}
|
|
544
497
|
|
|
545
498
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -548,33 +501,305 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
548
501
|
}
|
|
549
502
|
|
|
550
503
|
ft-loader {
|
|
551
|
-
${
|
|
552
|
-
${
|
|
504
|
+
${o.setVariable(te.size,ie.iconSize)};
|
|
505
|
+
${o.setVariable(te.color,"var(--ft-button-internal-color)")};
|
|
553
506
|
}
|
|
554
|
-
`,
|
|
507
|
+
`,o.noTextSelect],fe=o.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),de=o.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),he=o.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),ge=o.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),ye=o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusS,"Design system"),ue=o.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),be=e.css`
|
|
508
|
+
.ft-tooltip--container {
|
|
509
|
+
display: block;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
.ft-tooltip--inline {
|
|
513
|
+
display: inline-block;
|
|
514
|
+
max-width: 100%;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.ft-tooltip {
|
|
518
|
+
position: absolute;
|
|
519
|
+
box-sizing: border-box;
|
|
520
|
+
overflow: hidden;
|
|
521
|
+
width: max-content;
|
|
522
|
+
max-width: ${ue};
|
|
523
|
+
text-align: center;
|
|
524
|
+
padding: ${fe};
|
|
525
|
+
z-index: ${ge};
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.ft-tooltip--content {
|
|
529
|
+
padding: 4px 8px;
|
|
530
|
+
border-radius: ${ye};
|
|
531
|
+
background-color: ${he};
|
|
532
|
+
color: ${de};
|
|
533
|
+
position: relative;
|
|
534
|
+
word-break: break-word;
|
|
535
|
+
}
|
|
536
|
+
`;var me=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class xe extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
537
|
+
<div part="container"
|
|
538
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
539
|
+
@mouseenter=${this.onHover}
|
|
540
|
+
@mouseleave=${this.onOut}
|
|
541
|
+
@focusin=${this.onHover}
|
|
542
|
+
@focusout=${this.onOut}
|
|
543
|
+
@touchstart=${this.onTouch}>
|
|
544
|
+
<slot></slot>
|
|
545
|
+
<div part="tooltip" role="tooltip" inert
|
|
546
|
+
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
547
|
+
?hidden=${!this.visible}>
|
|
548
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
549
|
+
<slot name="text"></slot>
|
|
550
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
551
|
+
</div>
|
|
552
|
+
</div>
|
|
553
|
+
</div>
|
|
554
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const o=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,i=(t.offsetHeight-e)/2,r=(t.offsetWidth-o)/2;let a=0,n=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":n=t.offsetTop-e-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"bottom":n=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,a=t.offsetLeft+r-this.tooltip.offsetLeft;break;case"left":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft-o-this.tooltip.offsetLeft;break;case"right":n=t.offsetTop+i-this.tooltip.offsetTop,a=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=a+"px",l.top=n+"px";const c=this.tooltip.getBoundingClientRect();let s=-c.x,p=c.x+c.width-window.innerWidth;l.left=a+Math.round(this.correctOutOfWindowPixels(s,p))+"px";let f=-c.y,d=c.y+c.height-window.innerHeight;l.top=n+Math.round(this.correctOutOfWindowPixels(f,d))+"px",l.maxWidth=`max(${t.offsetWidth}px, ${ue})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}xe.elementDefinitions={"ft-typography":Yo},xe.styles=be,me([r.property()],xe.prototype,"text",void 0),me([r.property({type:Boolean})],xe.prototype,"manual",void 0),me([r.property({type:Boolean})],xe.prototype,"inline",void 0),me([r.property({type:Number})],xe.prototype,"delay",void 0),me([r.property()],xe.prototype,"position",void 0),me([r.queryAssignedNodes("",!0)],xe.prototype,"slotNodes",void 0),me([r.query(".ft-tooltip--container")],xe.prototype,"container",void 0),me([r.query(".ft-tooltip")],xe.prototype,"tooltip",void 0),me([r.query(".ft-tooltip--content")],xe.prototype,"tooltipContent",void 0),me([r.state()],xe.prototype,"visible",void 0),o.customElement("ft-tooltip")(xe);class ve extends o.FtLitElement{render(){return e.html`
|
|
555
|
+
<div class="ft-loader">
|
|
556
|
+
<div></div>
|
|
557
|
+
<div></div>
|
|
558
|
+
<div></div>
|
|
559
|
+
<div></div>
|
|
560
|
+
</div>
|
|
561
|
+
`}}ve.styles=oe,o.customElement("ft-loader")(ve);var Oe=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ne extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
|
|
555
562
|
<button part="button"
|
|
556
|
-
class="${
|
|
563
|
+
class="${a.classMap(this.buttonClasses)}"
|
|
557
564
|
aria-label="${this.getLabel()}"
|
|
558
565
|
?disabled=${this.isDisabled()}>
|
|
559
566
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
560
567
|
<ft-typography part="label"
|
|
561
|
-
variant
|
|
568
|
+
variant=${this.typographyVariant}
|
|
562
569
|
element="span"
|
|
563
|
-
class="ft-button--label ${
|
|
570
|
+
class="ft-button--label ${o.isSafari?"ft-safari-ellipsis-fix":""}"
|
|
564
571
|
?hidden=${!this.hasTextContent()}>
|
|
565
572
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
566
573
|
</ft-typography>
|
|
567
574
|
${this.resolveIcon()}
|
|
568
575
|
</button>
|
|
569
576
|
`)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?e.html`
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
577
|
+
<ft-tooltip part="tooltip"
|
|
578
|
+
text="${this.getLabel()}"
|
|
579
|
+
position="${this.tooltipPosition}">
|
|
580
|
+
${t}
|
|
581
|
+
</ft-tooltip>
|
|
575
582
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
576
583
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
577
|
-
|
|
584
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Ne.elementDefinitions={"ft-ripple":F,"ft-tooltip":xe,"ft-typography":Yo,"ft-icon":Qo,"ft-loader":ve},Oe([r.property({type:String,reflect:!0})],Ne.prototype,"role",void 0),Oe([r.property()],Ne.prototype,"type",void 0),Oe([r.property({type:Boolean})],Ne.prototype,"disabled",void 0),Oe([r.property()],Ne.prototype,"label",void 0),Oe([r.property()],Ne.prototype,"icon",void 0),Oe([r.property()],Ne.prototype,"iconVariant",void 0),Oe([r.property({type:Boolean})],Ne.prototype,"trailingIcon",void 0),Oe([r.property({type:Boolean})],Ne.prototype,"loading",void 0),Oe([r.property()],Ne.prototype,"tooltipPosition",void 0),Oe([r.property({type:Boolean})],Ne.prototype,"hideTooltip",void 0),Oe([r.property({type:Boolean})],Ne.prototype,"forceTooltip",void 0),Oe([r.query(".ft-button")],Ne.prototype,"button",void 0),Oe([r.query(".ft-button--label slot")],Ne.prototype,"slottedContent",void 0);var Se=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ce extends Ne{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!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"}}Ce.styles=[o.safariEllipsisFix,pe],Se([r.property({type:Boolean})],Ce.prototype,"primary",void 0),Se([r.property({type:Boolean})],Ce.prototype,"outlined",void 0),Se([r.property({type:Boolean})],Ce.prototype,"disabled",void 0),Se([r.property({type:Boolean})],Ce.prototype,"dense",void 0),Se([r.property({type:Boolean})],Ce.prototype,"round",void 0);const $e=[e.css`
|
|
585
|
+
:host {
|
|
586
|
+
display: inline-block;
|
|
587
|
+
max-width: 100%;
|
|
588
|
+
pointer-events: none;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/** Remove default button styles **/
|
|
592
|
+
|
|
593
|
+
button {
|
|
594
|
+
box-shadow: 0 0 0 transparent;
|
|
595
|
+
border: 0 solid transparent;
|
|
596
|
+
text-shadow: 0 0 0 transparent;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
button:hover {
|
|
600
|
+
box-shadow: 0 0 0 transparent;
|
|
601
|
+
text-shadow: 0 0 0 transparent;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
button:active {
|
|
605
|
+
outline: none;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
button:focus {
|
|
609
|
+
outline: 0;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
/** Base styles **/
|
|
613
|
+
|
|
614
|
+
.ft-button {
|
|
615
|
+
position: relative;
|
|
616
|
+
display: flex;
|
|
617
|
+
justify-content: center;
|
|
618
|
+
align-items: center;
|
|
619
|
+
width: 100%;
|
|
620
|
+
overflow: hidden;
|
|
621
|
+
box-sizing: border-box;
|
|
622
|
+
pointer-events: auto;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
.ft-button:not([disabled]):hover {
|
|
626
|
+
cursor: pointer;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.ft-button:focus {
|
|
630
|
+
outline: none;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.ft-button:focus-visible {
|
|
634
|
+
outline-color: ${Lt.focusFocusRingColor};
|
|
635
|
+
outline-style: solid;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
ft-icon {
|
|
639
|
+
flex-shrink: 0;
|
|
640
|
+
position: relative;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
644
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
645
|
+
order: -1;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.ft-button--label {
|
|
649
|
+
position: relative;
|
|
650
|
+
overflow: hidden;
|
|
651
|
+
white-space: nowrap;
|
|
652
|
+
text-overflow: ellipsis;
|
|
653
|
+
display: block;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.ft-button--label[hidden] {
|
|
657
|
+
display: none;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/** Primary styles **/
|
|
661
|
+
|
|
662
|
+
.ft-button--primary {
|
|
663
|
+
${o.setVariable(te.color,Lt.primaryIconColor)};
|
|
664
|
+
|
|
665
|
+
${o.setVariable(k.color,Lt.primaryStateLayerColor)};
|
|
666
|
+
${o.setVariable(k.opacityContentOnSurfaceHover,Lt.primaryStateLayerOpacityHover)};
|
|
667
|
+
${o.setVariable(k.opacityContentOnSurfaceFocused,Lt.primaryStateLayerOpacityFocus)};
|
|
668
|
+
${o.setVariable(k.opacityContentOnSurfaceSelected,Lt.primaryStateLayerOpacityActive)};
|
|
669
|
+
${o.setVariable(k.opacityContentOnSurfacePressed,Lt.primaryStateLayerOpacityActive)};
|
|
670
|
+
|
|
671
|
+
background-color: ${Lt.primaryBackgroundColor};
|
|
672
|
+
color: ${Lt.primaryColor};
|
|
673
|
+
border-style: none;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.ft-button--primary[disabled] {
|
|
677
|
+
opacity: ${Lt.primaryComponentOpacityDisabled};
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
.ft-button--primary ft-icon {
|
|
681
|
+
color: ${Lt.primaryIconColor};
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
/** Secondary styles **/
|
|
685
|
+
|
|
686
|
+
.ft-button--secondary {
|
|
687
|
+
${o.setVariable(te.color,Lt.secondaryIconColor)};
|
|
688
|
+
|
|
689
|
+
${o.setVariable(k.color,Lt.secondaryStateLayerColor)};
|
|
690
|
+
${o.setVariable(k.opacityContentOnSurfaceHover,Lt.secondaryStateLayerOpacityHover)};
|
|
691
|
+
${o.setVariable(k.opacityContentOnSurfaceFocused,Lt.secondaryStateLayerOpacityFocus)};
|
|
692
|
+
${o.setVariable(k.opacityContentOnSurfaceSelected,Lt.secondaryStateLayerOpacityActive)};
|
|
693
|
+
${o.setVariable(k.opacityContentOnSurfacePressed,Lt.secondaryStateLayerOpacityActive)};
|
|
694
|
+
|
|
695
|
+
background-color: ${Lt.secondaryBackgroundColor};
|
|
696
|
+
color: ${Lt.secondaryColor};
|
|
697
|
+
border-color: ${Lt.secondaryBorderColor};
|
|
698
|
+
border-style: solid;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
.ft-button--secondary[disabled] {
|
|
702
|
+
opacity: ${Lt.secondaryComponentOpacityDisabled};
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
.ft-button--secondary ft-icon {
|
|
706
|
+
color: ${Lt.secondaryIconColor};
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
/** Tertiary styles **/
|
|
710
|
+
|
|
711
|
+
.ft-button--tertiary {
|
|
712
|
+
${o.setVariable(te.color,Lt.tertiaryIconColor)};
|
|
713
|
+
|
|
714
|
+
${o.setVariable(k.color,Lt.tertiaryStateLayerColor)};
|
|
715
|
+
${o.setVariable(k.opacityContentOnSurfaceHover,Lt.tertiaryStateLayerOpacityHover)};
|
|
716
|
+
${o.setVariable(k.opacityContentOnSurfaceFocused,Lt.tertiaryStateLayerOpacityFocus)};
|
|
717
|
+
${o.setVariable(k.opacityContentOnSurfaceSelected,Lt.tertiaryStateLayerOpacityActive)};
|
|
718
|
+
${o.setVariable(k.opacityContentOnSurfacePressed,Lt.tertiaryStateLayerOpacityActive)};
|
|
719
|
+
|
|
720
|
+
background-color: ${Lt.tertiaryBackgroundColor};
|
|
721
|
+
color: ${Lt.tertiaryColor};
|
|
722
|
+
border-style: none;
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
.ft-button--tertiary[disabled] {
|
|
726
|
+
opacity: ${Lt.tertiaryComponentOpacityDisabled};
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.ft-button--tertiary ft-icon {
|
|
730
|
+
color: ${Lt.tertiaryIconColor};
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
/** Neutral styles **/
|
|
734
|
+
|
|
735
|
+
.ft-button--neutral {
|
|
736
|
+
${o.setVariable(te.color,Lt.neutralIconColor)};
|
|
737
|
+
|
|
738
|
+
${o.setVariable(k.backgroundColor,Lt.neutralStateLayerColor)};
|
|
739
|
+
${o.setVariable(k.opacityContentOnSurfaceHover,Lt.neutralStateLayerOpacityHover)};
|
|
740
|
+
${o.setVariable(k.opacityContentOnSurfaceFocused,Lt.neutralStateLayerOpacityFocus)};
|
|
741
|
+
${o.setVariable(k.opacityContentOnSurfaceSelected,Lt.neutralStateLayerOpacityActive)};
|
|
742
|
+
${o.setVariable(k.opacityContentOnSurfacePressed,Lt.neutralStateLayerOpacityActive)};
|
|
743
|
+
|
|
744
|
+
background-color: ${Lt.neutralBackgroundColor};
|
|
745
|
+
color: ${Lt.neutralColor};
|
|
746
|
+
border-style: none;
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
.ft-button--neutral[disabled] {
|
|
750
|
+
opacity: ${Lt.neutralComponentOpacityDisabled};
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.ft-button--neutral ft-icon {
|
|
754
|
+
color: ${Lt.neutralIconColor};
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
/** Large styles **/
|
|
758
|
+
|
|
759
|
+
.ft-button--large {
|
|
760
|
+
${o.setVariable(Vo.size,Lt.largeIconSize)};
|
|
761
|
+
${o.setVariable(te.size,Lt.largeIconSize)};
|
|
762
|
+
|
|
763
|
+
height: ${Lt.largeHeight};
|
|
764
|
+
padding: 0 ${Lt.largeHorizontalPadding};
|
|
765
|
+
gap: ${Lt.largeGap};
|
|
766
|
+
border-radius: ${Lt.largeBorderRadius};
|
|
767
|
+
border-width: ${Lt.largeBorderWidth};
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.ft-button--large:focus-visible {
|
|
771
|
+
outline-width: ${Lt.largeFocusOutlineWidth};
|
|
772
|
+
outline-offset: ${Lt.largeFocusOutlineOffset};
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
.ft-button--large.ft-button--icon-only {
|
|
776
|
+
width: ${Lt.largeIconOnlyWidth};
|
|
777
|
+
padding: unset;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/** Small styles **/
|
|
781
|
+
|
|
782
|
+
.ft-button--small {
|
|
783
|
+
${o.setVariable(Vo.size,Lt.smallIconSize)};
|
|
784
|
+
${o.setVariable(te.size,Lt.smallIconSize)};
|
|
785
|
+
|
|
786
|
+
height: ${Lt.smallHeight};
|
|
787
|
+
padding: 0 ${Lt.smallHorizontalPadding};
|
|
788
|
+
gap: ${Lt.smallGap};
|
|
789
|
+
border-radius: ${Lt.smallBorderRadius};
|
|
790
|
+
border-width: ${Lt.smallBorderWidth};
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.ft-button--small:focus-visible {
|
|
794
|
+
outline-width: ${Lt.smallFocusOutlineWidth};
|
|
795
|
+
outline-offset: ${Lt.smallFocusOutlineOffset};
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
.ft-button--small.ft-button--icon-only {
|
|
799
|
+
width: ${Lt.smallIconOnlyWidth};
|
|
800
|
+
padding: unset;
|
|
801
|
+
}
|
|
802
|
+
`,o.noTextSelect];var we=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ie extends Ne{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?wt.caption1medium:wt.body2medium}}Ie.styles=[o.safariEllipsisFix,$e],we([r.property({type:Boolean})],Ie.prototype,"primary",void 0),we([r.property({type:Boolean})],Ie.prototype,"secondary",void 0),we([r.property({type:Boolean})],Ie.prototype,"tertiary",void 0),we([r.property({type:Boolean})],Ie.prototype,"neutral",void 0),we([r.property({type:Boolean})],Ie.prototype,"small",void 0),o.customElement("ft-button")(Ce),o.customElement("ftds-button")(Ie);const ke=o.FtCssVariableFactory.extend("--ft-chip-color","",o.designSystemVariables.colorOnSurface),Ue={backgroundColor:o.FtCssVariableFactory.extend("--ft-chip-background-color","",o.designSystemVariables.colorSurface),color:ke,fontSize:o.FtCssVariableFactory.extend("--ft-chip-font-size","",ho.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:o.FtCssVariableFactory.extend("--ft-chip-ripple-color","",ke),horizontalPadding:o.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:o.FtCssVariableFactory.external(o.designSystemVariables.colorOutline,"Design system"),opacityDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},We=o.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",o.FtCssVariableFactory.extend("--ft-chip-color","",o.designSystemVariables.colorOnPrimary)),Re={backgroundColor:o.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",o.FtCssVariableFactory.extend("--ft-chip-background-color","",o.designSystemVariables.colorPrimary)),color:We,rippleColor:o.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",We)},Le=o.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),Ee=o.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),ze=[o.noTextSelect,e.css`
|
|
578
803
|
:host {
|
|
579
804
|
display: inline-block;
|
|
580
805
|
max-width: 100%;
|
|
@@ -590,20 +815,20 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
590
815
|
box-sizing: border-box;
|
|
591
816
|
pointer-events: auto;
|
|
592
817
|
|
|
593
|
-
--ft-chip-internal-font-size: ${
|
|
818
|
+
--ft-chip-internal-font-size: ${Ue.fontSize};
|
|
594
819
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
595
|
-
${
|
|
596
|
-
--ft-chip-internal-vertical-padding: ${
|
|
597
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
820
|
+
${o.setVariable(Vo.size,Ue.iconSize)};
|
|
821
|
+
--ft-chip-internal-vertical-padding: ${Ue.verticalPadding};
|
|
822
|
+
--ft-chip-internal-horizontal-padding: ${Ue.horizontalPadding};
|
|
598
823
|
--ft-chip-internal-icon-padding: 3px;
|
|
599
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
824
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Ue.iconSize});
|
|
600
825
|
|
|
601
|
-
border: 1px solid ${
|
|
602
|
-
color: ${
|
|
603
|
-
${
|
|
826
|
+
border: 1px solid ${Ue.colorOutline};
|
|
827
|
+
color: ${Ue.color};
|
|
828
|
+
${o.setVariable(k.color,Ue.rippleColor)};
|
|
604
829
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
605
830
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
606
|
-
background-color: ${
|
|
831
|
+
background-color: ${Ue.backgroundColor};
|
|
607
832
|
line-height: var(--ft-chip-internal-content-height);
|
|
608
833
|
}
|
|
609
834
|
|
|
@@ -613,8 +838,8 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
613
838
|
|
|
614
839
|
.ft-chip--dense {
|
|
615
840
|
--ft-chip-internal-icon-padding: 3px;
|
|
616
|
-
--ft-chip-internal-vertical-padding: ${
|
|
617
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
841
|
+
--ft-chip-internal-vertical-padding: ${Ee};
|
|
842
|
+
--ft-chip-internal-horizontal-padding: ${Le};
|
|
618
843
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
619
844
|
}
|
|
620
845
|
|
|
@@ -626,15 +851,15 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
626
851
|
cursor: default;
|
|
627
852
|
pointer-events: none;
|
|
628
853
|
filter: grayscale(1);
|
|
629
|
-
opacity: ${
|
|
854
|
+
opacity: ${Ue.opacityDisabled};
|
|
630
855
|
}
|
|
631
856
|
|
|
632
857
|
.ft-chip--highlighted {
|
|
633
858
|
border: none;
|
|
634
859
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
635
|
-
background-color: ${
|
|
636
|
-
${
|
|
637
|
-
color: ${
|
|
860
|
+
background-color: ${Re.backgroundColor};
|
|
861
|
+
${o.setVariable(k.color,Re.rippleColor)};
|
|
862
|
+
color: ${Re.color};
|
|
638
863
|
}
|
|
639
864
|
|
|
640
865
|
.ft-chip--clickable {
|
|
@@ -664,9 +889,9 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
664
889
|
}
|
|
665
890
|
|
|
666
891
|
.ft-chip--icon-button {
|
|
667
|
-
${
|
|
668
|
-
${
|
|
669
|
-
${
|
|
892
|
+
${o.setVariable(ie.iconSize,Ue.iconSize)};
|
|
893
|
+
${o.setVariable(ie.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
894
|
+
${o.setVariable(ie.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
670
895
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
671
896
|
}
|
|
672
897
|
|
|
@@ -674,8 +899,8 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
674
899
|
vertical-align: bottom;
|
|
675
900
|
display: block;
|
|
676
901
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
677
|
-
${
|
|
678
|
-
${
|
|
902
|
+
${o.setVariable(ho.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
903
|
+
${o.setVariable(ho.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
679
904
|
}
|
|
680
905
|
|
|
681
906
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -711,8 +936,8 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
711
936
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
712
937
|
order: -1;
|
|
713
938
|
}
|
|
714
|
-
`];var
|
|
715
|
-
<div class="${
|
|
939
|
+
`];var Ze=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ke extends CustomEvent{constructor(){super("icon-click")}}class Be extends o.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":o.isSafari};return e.html`
|
|
940
|
+
<div class="${a.classMap(t)}"
|
|
716
941
|
aria-label="${this.getLabel()}"
|
|
717
942
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
718
943
|
@keyup=${this.onKeyUp}>
|
|
@@ -734,26 +959,26 @@ const $t=Symbol.for(""),wt=t=>{if((null==t?void 0:t.r)===$t)return null==t?void
|
|
|
734
959
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
735
960
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
736
961
|
</div>
|
|
737
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
962
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Ke))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Ke))}getLabel(){return this.label||this.textContent}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}Be.elementDefinitions={"ft-ripple":F,"ft-typography":Yo,"ft-icon":Qo,"ft-button":Ce},Be.styles=ze,Ze([r.property({type:Boolean})],Be.prototype,"highlighted",void 0),Ze([r.property({type:Boolean})],Be.prototype,"removable",void 0),Ze([r.property({type:Boolean})],Be.prototype,"disabled",void 0),Ze([r.property({type:Boolean})],Be.prototype,"clickable",void 0),Ze([r.property({type:Boolean})],Be.prototype,"iconClickable",void 0),Ze([r.property({type:Boolean})],Be.prototype,"dense",void 0),Ze([r.property({type:Boolean})],Be.prototype,"multiLine",void 0),Ze([r.property()],Be.prototype,"label",void 0),Ze([r.property()],Be.prototype,"iconLabel",void 0),Ze([r.property()],Be.prototype,"icon",void 0),Ze([r.property()],Be.prototype,"iconVariant",void 0),Ze([r.property({type:Boolean})],Be.prototype,"trailingIcon",void 0),Ze([r.query("ft-typography slot")],Be.prototype,"slottedContent",void 0),o.customElement("ft-chip")(Be);var Fe=function(t,o,e,i){for(var r,a=arguments.length,n=a<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(a<3?r(n):a>3?r(o,e,n):r(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class De extends w{constructor(){super(),this.editorMode=!1,this.addStore(p)}render(){return this.editorMode?this.renderDummyFacet():null==this.facets||0===this.facets.length?e.nothing:e.html`
|
|
738
963
|
|
|
739
964
|
<div class="ft-search-selected-facets--container">
|
|
740
|
-
${
|
|
965
|
+
${i.repeat(this.facets,(t=>t.key),(t=>{const o=this.getSelectedValues(t);return i.repeat(o,(o=>t.key+"-"+o),(e=>this.renderFacet(t.key,t.label,o,e)))}))}
|
|
741
966
|
</div>
|
|
742
967
|
`}renderDummyFacet(){return e.html`
|
|
743
968
|
|
|
744
969
|
<div class="ft-search-selected-facets--container">
|
|
745
970
|
${[this.renderFacet("placeholder","placeholder",["value1","value2","value3"],"value1"),this.renderFacet("placeholder","placeholder",["value1","value2","value3"],"value2"),this.renderFacet("placeholder","placeholder",["value1","value2","value3"],"value3")]}
|
|
746
|
-
</div>`}renderFacet(t,i,
|
|
747
|
-
<ft-tooltip inline text="${
|
|
748
|
-
part="tooltips tooltip-${
|
|
971
|
+
</div>`}renderFacet(t,o,i,r){let a=o+": "+this.getBreadcrumbFromValue(r);const n=t.replace(":","-");return e.html`
|
|
972
|
+
<ft-tooltip inline text="${a}"
|
|
973
|
+
part="tooltips tooltip-${n}">
|
|
749
974
|
<ft-chip
|
|
750
|
-
part="ft-search-selected-facets ft-search-selected-facet-${
|
|
975
|
+
part="ft-search-selected-facets ft-search-selected-facet-${n}"
|
|
751
976
|
removable
|
|
752
|
-
label="${
|
|
753
|
-
@icon-click=${()=>{var
|
|
977
|
+
label="${a}"
|
|
978
|
+
@icon-click=${()=>{var o;return null===(o=this.stateManager)||void 0===o?void 0:o.setFilter(t,i.filter((t=>t!==r)))}}
|
|
754
979
|
data-key="${t}"
|
|
755
|
-
data-value="${
|
|
756
|
-
${this.getLabelFromValue(
|
|
980
|
+
data-value="${r}">
|
|
981
|
+
${this.getLabelFromValue(r)}
|
|
757
982
|
</ft-chip>
|
|
758
983
|
</ft-tooltip>
|
|
759
|
-
`}getSelectedValues(t){return
|
|
984
|
+
`}getSelectedValues(t){return o.flatDeep(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}getLabelFromValue(t){return this.unquote(t).split("|").pop()}getBreadcrumbFromValue(t){return this.unquote(t).split("|").join(" > ")}quote(t){return`"${t}"`}unquote(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}}De.elementDefinitions={"ft-chip":Be,"ft-tooltip":xe},De.styles=c,Fe([o.redux({store:"search"})],De.prototype,"facets",void 0),Fe([o.redux({store:p.name})],De.prototype,"editorMode",void 0),o.customElement("ft-search-selected-facets")(De),t.FtSearchSelectedFacets=De,t.FtSearchSelectedFacetsCssVariables=l,t.styles=c}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litRepeat,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|