@fluid-topics/ft-search-selected-facets 1.0.53 → 1.0.54
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.
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
`,h=e.css`
|
|
8
8
|
`,p=i.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,i)=>{t.baseUrl=i.payload},setApiIntegrationIdentifier:(t,i)=>{t.apiIntegrationIdentifier=i.payload},setUiLocale:(t,i)=>{t.uiLocale=i.payload},setAvailableUiLocales:(t,i)=>{t.availableUiLocales=i.payload},setEditorMode:(t,i)=>{t.editorMode=i.payload},setNoCustom:(t,i)=>{t.noCustom=i.payload},setNoCustomComponent:(t,i)=>{t.noCustomComponent=i.payload},setSession:(t,i)=>{t.session=i.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class c{static build(t){const{baseUrl:i,apiIntegrationIdentifier:e}=p.getState(),o=null!=t?t:e;if(i&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,o,!0)}static get(t){var i;return null!=t?c.build(t):null!==(i=c.API)&&void 0!==i?i:c.API=c.build()}static await(t){return new Promise((i=>{let e=c.get(t);if(e)i(e);else{const o=p.subscribe((()=>{e=c.get(t),e&&(o(),i(e))}))}}))}}var f;const d=Symbol("clearAfterUnitTest");class u{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={},this.currentUiLocale="",this[f]=()=>{this.defaultMessages={},this.cache=new i.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 i=t.name.toLowerCase();this.cache.setFinal(i,t),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const n={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};i.deepEqual(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var n,s,r;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(s=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==s?s:{};return new i.ParametrizedLabelResolver(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},a).resolve(e,...o)}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,i){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(i),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(i)}}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=>i.delay(0).then((()=>t())).catch((()=>null)))))}}f=d,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new u((async(t,i)=>(await c.await()).getFluidTopicsMessageContext(t,i)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new u((async(t,i)=>(await c.await()).getCustomMessageContext(t,i))));const g=window.FluidTopicsI18nService;var v=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 x extends i.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=()=>c.get(),this.cache=new i.CacheRegistry,this.cleanSessionDebouncer=new i.Debouncer}render(){return e.html`
|
|
9
9
|
<slot></slot>
|
|
10
|
-
`}updated(t){super.updated(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=>g.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 i=await t.getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),i.idleTimeoutInMillis),i}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}x.elementDefinitions={},x.styles=h,v([n.property()],x.prototype,"baseUrl",void 0),v([n.property()],x.prototype,"apiIntegrationIdentifier",void 0),v([n.property()],x.prototype,"uiLocale",void 0),v([i.jsonProperty([])],x.prototype,"availableUiLocales",void 0),v([n.property({type:Boolean})],x.prototype,"editorMode",void 0),v([n.property({type:Boolean})],x.prototype,"noCustom",void 0),v([n.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],x.prototype,"noCustomComponent",void 0),v([n.property({type:Boolean})],x.prototype,"withManualResources",void 0),v([i.jsonProperty([])],x.prototype,"messageContexts",void 0),v([i.jsonProperty(void 0)],x.prototype,"session",void 0),v([n.property({type:Object})],x.prototype,"apiProvider",void 0),i.customElement("ft-app-context")(x);class
|
|
10
|
+
`}updated(t){super.updated(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=>g.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 i=await t.getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),i.idleTimeoutInMillis),i}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}x.elementDefinitions={},x.styles=h,v([n.property()],x.prototype,"baseUrl",void 0),v([n.property()],x.prototype,"apiIntegrationIdentifier",void 0),v([n.property()],x.prototype,"uiLocale",void 0),v([i.jsonProperty([])],x.prototype,"availableUiLocales",void 0),v([n.property({type:Boolean})],x.prototype,"editorMode",void 0),v([n.property({type:Boolean})],x.prototype,"noCustom",void 0),v([n.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],x.prototype,"noCustomComponent",void 0),v([n.property({type:Boolean})],x.prototype,"withManualResources",void 0),v([i.jsonProperty([])],x.prototype,"messageContexts",void 0),v([i.jsonProperty(void 0)],x.prototype,"session",void 0),v([n.property({type:Object})],x.prototype,"apiProvider",void 0);class b{async listMySearches(){var t;return(null===(t=p.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await c.await()).listMySearches(p.getState().session.profile.userId):[]}}const y=new i.CacheRegistry;class m{async listMyBookmarks(){return y.get("bookmarks",(async()=>(await c.await()).listMyBookmarks(p.getState().session.profile.userId)))}clearCache(){y.clear("bookmarks")}}const $=i.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 m,p.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=p.getState();i.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(){$.actions.savedSearches(void 0)}clearMyBookmarks(){$.actions.bookmarks(void 0)}async reloadMySearches(){const t=new b,i=await t.listMySearches();$.actions.savedSearches(i)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const i=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;$.actions.bookmarks(i)}}},i.customElement("ft-app-context")(x);class w extends Event{constructor(){super(w.eventName)}}w.eventName="search-context-clear-all-filters";var k=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 z extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const S=Symbol("registerInterval");class C extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=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[S]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[S]):this.dispatchEvent(new z)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=S,k([n.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}const I=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),O={color:I,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",I),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},j=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),E=j,B=i.FtCssVariableFactory.extend("--ft-ripple-background-color",j),M=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),N=M,U=i.FtCssVariableFactory.extend("--ft-ripple-background-color",M),A=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: ${O.borderRadius};
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.ft-ripple .ft-ripple--background,
|
|
@@ -30,27 +30,27 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.ft-ripple .ft-ripple--background {
|
|
33
|
-
background-color: ${
|
|
33
|
+
background-color: ${O.backgroundColor};
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.ft-ripple .ft-ripple--effect {
|
|
37
|
-
background-color: ${
|
|
37
|
+
background-color: ${O.color};
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
41
|
-
background-color: ${
|
|
41
|
+
background-color: ${U};
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
45
|
-
background-color: ${
|
|
45
|
+
background-color: ${N};
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
49
|
-
background-color: ${
|
|
49
|
+
background-color: ${B};
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
53
|
-
background-color: ${
|
|
53
|
+
background-color: ${E};
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.ft-ripple .ft-ripple--background {
|
|
@@ -82,22 +82,22 @@
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
85
|
-
opacity: ${
|
|
85
|
+
opacity: ${O.opacityContentOnSurfaceHover};
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
89
|
-
opacity: ${
|
|
89
|
+
opacity: ${O.opacityContentOnSurfaceSelected};
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
93
|
-
opacity: ${
|
|
93
|
+
opacity: ${O.opacityContentOnSurfaceFocused};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
97
|
-
opacity: ${
|
|
97
|
+
opacity: ${O.opacityContentOnSurfacePressed};
|
|
98
98
|
transform: translate(-50%, -50%) scale(1);
|
|
99
99
|
}
|
|
100
|
-
`;var
|
|
100
|
+
`;var T,F=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 Z extends i.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.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.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 i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.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`
|
|
101
101
|
<style>
|
|
102
102
|
.ft-ripple .ft-ripple--effect,
|
|
103
103
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -114,115 +114,115 @@
|
|
|
114
114
|
<div class="ft-ripple--background"></div>
|
|
115
115
|
<div class="ft-ripple--effect"></div>
|
|
116
116
|
</div>
|
|
117
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(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")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}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),this.setRippleSize()}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.resizeObserver.disconnect(),this.endRipple()}}M.elementDefinitions={},M.styles=B,U([n.property({type:Boolean})],M.prototype,"primary",void 0),U([n.property({type:Boolean})],M.prototype,"secondary",void 0),U([n.property({type:Boolean})],M.prototype,"unbounded",void 0),U([n.property({type:Boolean})],M.prototype,"activated",void 0),U([n.property({type:Boolean})],M.prototype,"selected",void 0),U([n.property({type:Boolean})],M.prototype,"disabled",void 0),U([n.state()],M.prototype,"hovered",void 0),U([n.state()],M.prototype,"focused",void 0),U([n.state()],M.prototype,"pressed",void 0),U([n.state()],M.prototype,"rippling",void 0),U([n.state()],M.prototype,"rippleSize",void 0),U([n.state()],M.prototype,"originX",void 0),U([n.state()],M.prototype,"originY",void 0),U([n.query(".ft-ripple")],M.prototype,"ripple",void 0),U([n.query(".ft-ripple--effect")],M.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(M);const A=window,T=A.trustedTypes,F=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",L=`lit$${(Math.random()+"").slice(9)}$`,_="?"+L,R=`<${_}>`,P=document,D=()=>P.createComment(""),W=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,K="[ \t\n\f\r]",V=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,G=/-->/g,q=/>/g,X=RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,J=/"/g,Q=/^(?:script|style|textarea|title)$/i,tt=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),it=Symbol.for("lit-noChange"),et=Symbol.for("lit-nothing"),ot=new WeakMap,nt=P.createTreeWalker(P,129,null,!1),st=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=V;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===V?"!--"===l[1]?r=G:void 0!==l[1]?r=q:void 0!==l[2]?(Q.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=X):void 0!==l[3]&&(r=X):r===X?">"===l[0]?(r=null!=n?n:V,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?X:'"'===l[3]?J:Y):r===J||r===Y?r=X:r===G||r===q?r=V:(r=X,n=void 0);const c=r===X&&t[i+1].startsWith("/>")?" ":"";s+=r===V?e+R:h>=0?(o.push(a),e.slice(0,h)+Z+e.slice(h)+L+c):e+L+(-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!==F?F.createHTML(a):a,o]};class rt{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]=st(t,i);if(this.el=rt.createElement(l,e),nt.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=nt.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(Z)||i.startsWith(L)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+Z).split(L),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?ct:"?"===i[1]?dt:"@"===i[1]?ut:pt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(Q.test(o.tagName)){const t=o.textContent.split(L),i=t.length-1;if(i>0){o.textContent=T?T.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],D()),nt.nextNode(),a.push({type:2,index:++n});o.append(t[i],D())}}}else if(8===o.nodeType)if(o.data===_)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(L,t+1));)a.push({type:7,index:n}),t+=L.length-1}n++}}static createElement(t,i){const e=P.createElement("template");return e.innerHTML=t,e}}function at(t,i,e=t,o){var n,s,r,a;if(i===it)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=W(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=at(t,l._$AS(t,i.values),l,o)),i}class lt{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:P).importNode(e,!0);nt.currentNode=n;let s=nt.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new ht(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new gt(s,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=nt.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 ht{constructor(t,i,e,o){var n;this.type=2,this._$AH=et,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=at(this,t,i),W(t)?t===et||null==t||""===t?(this._$AH!==et&&this._$AR(),this._$AH=et):t!==this._$AH&&t!==it&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>H(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!==et&&W(this._$AH)?this._$AA.nextSibling.data=t:this.$(P.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=rt.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 lt(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=ot.get(t.strings);return void 0===i&&ot.set(t.strings,i=new rt(t)),i}T(t){H(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 ht(this.k(D()),this.k(D()),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 pt{constructor(t,i,e,o,n){this.type=1,this._$AH=et,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=et}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=at(this,t,i,0),s=!W(t)||t!==this._$AH&&t!==it,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=at(this,o[e+r],i,r),a===it&&(a=this._$AH[r]),s||(s=!W(a)||a!==this._$AH[r]),a===et?t=et:t!==et&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===et?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ct extends pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===et?void 0:t}}const ft=T?T.emptyScript:"";class dt extends pt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==et?this.element.setAttribute(this.name,ft):this.element.removeAttribute(this.name)}}class ut extends pt{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=at(this,t,i,0))&&void 0!==e?e:et)===it)return;const o=this._$AH,n=t===et&&o!==et||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==et&&(o===et||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 gt{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){at(this,t)}}const vt=A.litHtmlPolyfillSupport;null==vt||vt(rt,ht),(null!==(N=A.litHtmlVersions)&&void 0!==N?N:A.litHtmlVersions=[]).push("2.7.3");
|
|
117
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(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")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}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),this.setRippleSize()}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.resizeObserver.disconnect(),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,"rippleSize",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,R=_?_.createPolicy("lit-html",{createHTML:t=>t}):void 0,P="$lit$",W=`lit$${(Math.random()+"").slice(9)}$`,D="?"+W,H=`<${D}>`,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)+P+e.slice(h)+W+c):e+W+(-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!==R?R.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(P)||i.startsWith(W)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+P).split(W),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(W),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===D)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(W,t+1));)a.push({type:7,index:n}),t+=W.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");
|
|
118
118
|
/**
|
|
119
119
|
* @license
|
|
120
120
|
* Copyright 2020 Google LLC
|
|
121
121
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
122
122
|
*/
|
|
123
|
-
const
|
|
123
|
+
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"),Rt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",jt.textTransform,"inherit"),Pt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",Ot),Wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",jt.fontSize,"16px"),Dt=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`
|
|
124
124
|
.ft-typography--title {
|
|
125
|
-
font-family: ${
|
|
126
|
-
font-size: ${
|
|
127
|
-
font-weight: ${Ot};
|
|
128
|
-
letter-spacing: ${jt};
|
|
129
|
-
line-height: ${Et};
|
|
130
|
-
text-transform: ${Bt};
|
|
131
|
-
}
|
|
132
|
-
`,ki=e.css`
|
|
133
|
-
.ft-typography--title-dense {
|
|
134
|
-
font-family: ${Nt};
|
|
135
|
-
font-size: ${Ut};
|
|
125
|
+
font-family: ${Et};
|
|
126
|
+
font-size: ${Bt};
|
|
136
127
|
font-weight: ${Mt};
|
|
137
|
-
letter-spacing: ${
|
|
138
|
-
line-height: ${
|
|
139
|
-
text-transform: ${
|
|
128
|
+
letter-spacing: ${Nt};
|
|
129
|
+
line-height: ${Ut};
|
|
130
|
+
text-transform: ${At};
|
|
131
|
+
}
|
|
132
|
+
`,Ii=e.css`
|
|
133
|
+
.ft-typography--title-dense {
|
|
134
|
+
font-family: ${Tt};
|
|
135
|
+
font-size: ${Ft};
|
|
136
|
+
font-weight: ${Zt};
|
|
137
|
+
letter-spacing: ${Lt};
|
|
138
|
+
line-height: ${_t};
|
|
139
|
+
text-transform: ${Rt};
|
|
140
140
|
}
|
|
141
|
-
`,
|
|
141
|
+
`,Oi=e.css`
|
|
142
142
|
.ft-typography--subtitle1 {
|
|
143
|
-
font-family: ${
|
|
144
|
-
font-size: ${
|
|
145
|
-
font-weight: ${
|
|
146
|
-
letter-spacing: ${
|
|
147
|
-
line-height: ${
|
|
148
|
-
text-transform: ${
|
|
149
|
-
}
|
|
150
|
-
`,
|
|
143
|
+
font-family: ${Pt};
|
|
144
|
+
font-size: ${Wt};
|
|
145
|
+
font-weight: ${Dt};
|
|
146
|
+
letter-spacing: ${Ht};
|
|
147
|
+
line-height: ${Kt};
|
|
148
|
+
text-transform: ${Vt};
|
|
149
|
+
}
|
|
150
|
+
`,ji=e.css`
|
|
151
151
|
.ft-typography--subtitle2 {
|
|
152
|
-
font-family: ${
|
|
153
|
-
font-size: ${
|
|
154
|
-
font-weight: ${
|
|
155
|
-
letter-spacing: ${
|
|
156
|
-
line-height: ${
|
|
157
|
-
text-transform: ${
|
|
152
|
+
font-family: ${Gt};
|
|
153
|
+
font-size: ${qt};
|
|
154
|
+
font-weight: ${Xt};
|
|
155
|
+
letter-spacing: ${Yt};
|
|
156
|
+
line-height: ${Jt};
|
|
157
|
+
text-transform: ${Qt};
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
`,
|
|
160
|
+
`,Ei=e.css`
|
|
161
161
|
.ft-typography--body1 {
|
|
162
|
-
font-family: ${
|
|
163
|
-
font-size: ${
|
|
164
|
-
font-weight: ${
|
|
165
|
-
letter-spacing: ${
|
|
166
|
-
line-height: ${
|
|
167
|
-
text-transform: ${
|
|
162
|
+
font-family: ${ti};
|
|
163
|
+
font-size: ${ii};
|
|
164
|
+
font-weight: ${ei};
|
|
165
|
+
letter-spacing: ${oi};
|
|
166
|
+
line-height: ${ni};
|
|
167
|
+
text-transform: ${si};
|
|
168
168
|
}
|
|
169
|
-
`,
|
|
169
|
+
`,Bi=e.css`
|
|
170
170
|
.ft-typography--body2 {
|
|
171
|
-
font-family: ${
|
|
172
|
-
font-size: ${
|
|
173
|
-
font-weight: ${
|
|
174
|
-
letter-spacing: ${
|
|
175
|
-
line-height: ${
|
|
176
|
-
text-transform: ${
|
|
177
|
-
}
|
|
178
|
-
`,
|
|
171
|
+
font-family: ${ri.fontFamily};
|
|
172
|
+
font-size: ${ri.fontSize};
|
|
173
|
+
font-weight: ${ri.fontWeight};
|
|
174
|
+
letter-spacing: ${ri.letterSpacing};
|
|
175
|
+
line-height: ${ri.lineHeight};
|
|
176
|
+
text-transform: ${ri.textTransform};
|
|
177
|
+
}
|
|
178
|
+
`,Mi=e.css`
|
|
179
179
|
.ft-typography--caption {
|
|
180
|
-
font-family: ${
|
|
181
|
-
font-size: ${
|
|
182
|
-
font-weight: ${
|
|
183
|
-
letter-spacing: ${
|
|
184
|
-
line-height: ${
|
|
185
|
-
text-transform: ${
|
|
180
|
+
font-family: ${ai};
|
|
181
|
+
font-size: ${li};
|
|
182
|
+
font-weight: ${hi};
|
|
183
|
+
letter-spacing: ${pi};
|
|
184
|
+
line-height: ${ci};
|
|
185
|
+
text-transform: ${fi};
|
|
186
186
|
}
|
|
187
|
-
`,
|
|
187
|
+
`,Ni=e.css`
|
|
188
188
|
.ft-typography--breadcrumb {
|
|
189
|
-
font-family: ${
|
|
190
|
-
font-size: ${
|
|
191
|
-
font-weight: ${
|
|
192
|
-
letter-spacing: ${
|
|
193
|
-
line-height: ${
|
|
194
|
-
text-transform: ${
|
|
195
|
-
}
|
|
196
|
-
`,
|
|
189
|
+
font-family: ${di};
|
|
190
|
+
font-size: ${ui};
|
|
191
|
+
font-weight: ${gi};
|
|
192
|
+
letter-spacing: ${vi};
|
|
193
|
+
line-height: ${xi};
|
|
194
|
+
text-transform: ${bi};
|
|
195
|
+
}
|
|
196
|
+
`,Ui=e.css`
|
|
197
197
|
.ft-typography--overline {
|
|
198
|
-
font-family: ${
|
|
199
|
-
font-size: ${
|
|
200
|
-
font-weight: ${
|
|
201
|
-
letter-spacing: ${
|
|
202
|
-
line-height: ${
|
|
203
|
-
text-transform: ${
|
|
204
|
-
}
|
|
205
|
-
`,
|
|
198
|
+
font-family: ${yi};
|
|
199
|
+
font-size: ${mi};
|
|
200
|
+
font-weight: ${$i};
|
|
201
|
+
letter-spacing: ${wi};
|
|
202
|
+
line-height: ${ki};
|
|
203
|
+
text-transform: ${zi};
|
|
204
|
+
}
|
|
205
|
+
`,Ai=e.css`
|
|
206
206
|
.ft-typography--button {
|
|
207
|
-
font-family: ${
|
|
208
|
-
font-size: ${
|
|
209
|
-
font-weight: ${
|
|
210
|
-
letter-spacing: ${
|
|
211
|
-
line-height: ${
|
|
212
|
-
text-transform: ${
|
|
213
|
-
}
|
|
214
|
-
`,
|
|
207
|
+
font-family: ${Si.fontFamily};
|
|
208
|
+
font-size: ${Si.fontSize};
|
|
209
|
+
font-weight: ${Si.fontWeight};
|
|
210
|
+
letter-spacing: ${Si.letterSpacing};
|
|
211
|
+
line-height: ${Si.lineHeight};
|
|
212
|
+
text-transform: ${Si.textTransform};
|
|
213
|
+
}
|
|
214
|
+
`,Ti=e.css`
|
|
215
215
|
.ft-typography {
|
|
216
216
|
vertical-align: inherit;
|
|
217
217
|
}
|
|
218
|
-
`;var
|
|
219
|
-
<${
|
|
218
|
+
`;var Fi,Zi,Li=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 _i extends i.FtLitElement{constructor(){super(...arguments),this.variant=Ct.body1}render(){return this.element?St`
|
|
219
|
+
<${kt(this.element)}
|
|
220
220
|
class="ft-typography ft-typography--${this.variant}">
|
|
221
221
|
<slot></slot>
|
|
222
|
-
</${
|
|
223
|
-
|
|
222
|
+
</${kt(this.element)}>
|
|
223
|
+
`:St`
|
|
224
224
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
225
|
-
`}}
|
|
225
|
+
`}}_i.styles=[Ci,Ii,Oi,ji,Ei,Bi,Mi,Ni,Ui,Ai,Ti],Li([n.property()],_i.prototype,"element",void 0),Li([n.property()],_i.prototype,"variant",void 0),i.customElement("ft-typography")(_i),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.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=""}(Fi||(Fi={})),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=""}(Zi||(Zi={})),new Map([...["abw"].map((t=>[t,Zi.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,Zi.AUDIO])),...["avi"].map((t=>[t,Zi.AVI])),...["chm","xhs"].map((t=>[t,Zi.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,Zi.CODE])),...["csv"].map((t=>[t,Zi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Zi.DITA])),...["epub"].map((t=>[t,Zi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Zi.EXCEL])),...["flac"].map((t=>[t,Zi.FLAC])),...["gif"].map((t=>[t,Zi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Zi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Zi.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,Zi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Zi.JPEG])),...["json"].map((t=>[t,Zi.JSON])),...["m4a","m4p"].map((t=>[t,Zi.M4A])),...["mov","qt"].map((t=>[t,Zi.MOV])),...["mp3"].map((t=>[t,Zi.MP3])),...["mp4","m4v"].map((t=>[t,Zi.MP4])),...["ogg","oga"].map((t=>[t,Zi.OGG])),...["pdf","ps"].map((t=>[t,Zi.PDF])),...["png"].map((t=>[t,Zi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Zi.POWERPOINT])),...["rar"].map((t=>[t,Zi.RAR])),...["stp"].map((t=>[t,Zi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Zi.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,Zi.VIDEO])),...["wav"].map((t=>[t,Zi.WAV])),...["wma"].map((t=>[t,Zi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Zi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Zi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Zi.YAML])),...["zip"].map((t=>[t,Zi.ZIP]))]);const Ri={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Pi=e.css`
|
|
226
226
|
:host, i.ft-icon {
|
|
227
227
|
display: inline-flex;
|
|
228
228
|
align-items: center;
|
|
@@ -231,14 +231,14 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
:host {
|
|
234
|
-
width: ${
|
|
235
|
-
height: ${
|
|
234
|
+
width: ${Ri.size};
|
|
235
|
+
height: ${Ri.size};
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
i.ft-icon {
|
|
239
239
|
width: 100%;
|
|
240
240
|
height: 100%;
|
|
241
|
-
font-size: ${
|
|
241
|
+
font-size: ${Ri.size};
|
|
242
242
|
line-height: 1;
|
|
243
243
|
font-weight: normal;
|
|
244
244
|
text-transform: none;
|
|
@@ -249,33 +249,33 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
249
249
|
text-rendering: auto;
|
|
250
250
|
-webkit-font-smoothing: antialiased;
|
|
251
251
|
-moz-osx-font-smoothing: grayscale;
|
|
252
|
-
vertical-align: ${
|
|
252
|
+
vertical-align: ${Ri.verticalAlign};
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
i.ft-icon.ft-icon--fluid-topics {
|
|
256
|
-
font-family: ${
|
|
256
|
+
font-family: ${Ri.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
257
257
|
|
|
258
258
|
/* Ugly fix because font is broken */
|
|
259
|
-
font-size: calc(0.75 * ${
|
|
260
|
-
line-height: ${
|
|
259
|
+
font-size: calc(0.75 * ${Ri.size});
|
|
260
|
+
line-height: ${Ri.size};
|
|
261
261
|
position: relative;
|
|
262
262
|
top: -4%;
|
|
263
263
|
justify-content: center;
|
|
264
264
|
}
|
|
265
265
|
|
|
266
266
|
.ft-icon--file-format {
|
|
267
|
-
font-family: ${
|
|
267
|
+
font-family: ${Ri.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
.ft-icon--material {
|
|
271
|
-
font-family: ${
|
|
271
|
+
font-family: ${Ri.materialFontFamily}, "Material Icons", sans-serif;
|
|
272
272
|
}
|
|
273
|
-
`;var
|
|
273
|
+
`;var Wi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Wi||(Wi={}));var Di=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 Hi extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Wi).includes(this.variant)?this.variant:Wi.fluid_topics,i=t!==Wi.material||!!this.value;return e.html`
|
|
274
274
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
275
275
|
${r.unsafeHTML(this.resolvedIcon)}
|
|
276
276
|
<slot ?hidden=${i}></slot>
|
|
277
277
|
</i>
|
|
278
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case
|
|
278
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Wi.file_format:this.resolvedIcon=null!==(t=Zi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Wi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Fi[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Hi.elementDefinitions={},Hi.styles=Pi,Di([n.property()],Hi.prototype,"variant",void 0),Di([n.property()],Hi.prototype,"value",void 0),Di([n.state()],Hi.prototype,"resolvedIcon",void 0),Di([n.query("slot")],Hi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Hi);const Ki=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Vi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Gi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),qi=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","100"),Xi=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Yi=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Ji=e.css`
|
|
279
279
|
.ft-tooltip--container {
|
|
280
280
|
display: block;
|
|
281
281
|
}
|
|
@@ -290,21 +290,21 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
290
290
|
box-sizing: border-box;
|
|
291
291
|
overflow: hidden;
|
|
292
292
|
width: max-content;
|
|
293
|
-
max-width: ${
|
|
293
|
+
max-width: ${Yi};
|
|
294
294
|
text-align: center;
|
|
295
|
-
padding: ${
|
|
296
|
-
z-index: ${
|
|
295
|
+
padding: ${Ki};
|
|
296
|
+
z-index: ${qi};
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
.ft-tooltip--content {
|
|
300
300
|
padding: 4px 8px;
|
|
301
|
-
border-radius: ${
|
|
302
|
-
background-color: ${
|
|
303
|
-
color: ${
|
|
301
|
+
border-radius: ${Xi};
|
|
302
|
+
background-color: ${Gi};
|
|
303
|
+
color: ${Vi};
|
|
304
304
|
position: relative;
|
|
305
305
|
word-break: break-word;
|
|
306
306
|
}
|
|
307
|
-
`;var
|
|
307
|
+
`;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`
|
|
308
308
|
<div part="container"
|
|
309
309
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
310
310
|
@mouseenter=${this.onHover}
|
|
@@ -322,7 +322,7 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
322
322
|
</div>
|
|
323
323
|
</div>
|
|
324
324
|
</div>
|
|
325
|
-
`}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, ${
|
|
325
|
+
`}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`
|
|
326
326
|
:host {
|
|
327
327
|
line-height: 0;
|
|
328
328
|
}
|
|
@@ -331,8 +331,8 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
331
331
|
display: inline-block;
|
|
332
332
|
position: relative;
|
|
333
333
|
|
|
334
|
-
width: ${
|
|
335
|
-
height: ${
|
|
334
|
+
width: ${ie.size};
|
|
335
|
+
height: ${ie.size};
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
.ft-loader div {
|
|
@@ -341,7 +341,7 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
341
341
|
width: 25%;
|
|
342
342
|
height: 25%;
|
|
343
343
|
border-radius: 50%;
|
|
344
|
-
background: ${
|
|
344
|
+
background: ${ie.color};
|
|
345
345
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
346
346
|
}
|
|
347
347
|
|
|
@@ -388,17 +388,17 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
388
388
|
transform: translate(0, 0);
|
|
389
389
|
}
|
|
390
390
|
100% {
|
|
391
|
-
transform: translate(calc(0.35 * ${
|
|
391
|
+
transform: translate(calc(0.35 * ${ie.size}), 0);
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
`;class
|
|
394
|
+
`;class oe extends i.FtLitElement{render(){return e.html`
|
|
395
395
|
<div class="ft-loader">
|
|
396
396
|
<div></div>
|
|
397
397
|
<div></div>
|
|
398
398
|
<div></div>
|
|
399
399
|
<div></div>
|
|
400
400
|
</div>
|
|
401
|
-
`}}
|
|
401
|
+
`}}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`
|
|
402
402
|
:host {
|
|
403
403
|
display: inline-block;
|
|
404
404
|
max-width: 100%;
|
|
@@ -409,7 +409,7 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
409
409
|
box-shadow: 0px 0px 0px transparent;
|
|
410
410
|
border: 0px solid transparent;
|
|
411
411
|
text-shadow: 0px 0px 0px transparent;
|
|
412
|
-
font-size: ${
|
|
412
|
+
font-size: ${se.fontSize};
|
|
413
413
|
}
|
|
414
414
|
|
|
415
415
|
button:hover {
|
|
@@ -438,31 +438,31 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
438
438
|
border: none;
|
|
439
439
|
pointer-events: auto;
|
|
440
440
|
|
|
441
|
-
--ft-button-internal-line-height: max(calc(${
|
|
442
|
-
--ft-button-internal-color: ${
|
|
443
|
-
${i.setVariable(
|
|
444
|
-
${i.setVariable(
|
|
441
|
+
--ft-button-internal-line-height: max(calc(${se.fontSize} + 2px), ${se.iconSize});
|
|
442
|
+
--ft-button-internal-color: ${se.color};
|
|
443
|
+
${i.setVariable(Ri.size,se.iconSize)};
|
|
444
|
+
${i.setVariable(O.color,se.rippleColor)};
|
|
445
445
|
|
|
446
|
-
border-radius: ${
|
|
447
|
-
padding: ${
|
|
448
|
-
background-color: ${
|
|
446
|
+
border-radius: ${se.borderRadius};
|
|
447
|
+
padding: ${se.verticalPadding} ${se.horizontalPadding};
|
|
448
|
+
background-color: ${se.backgroundColor};
|
|
449
449
|
color: var(--ft-button-internal-color);
|
|
450
450
|
-webkit-mask-image: radial-gradient(white, black);
|
|
451
451
|
}
|
|
452
452
|
|
|
453
453
|
.ft-button.ft-button--outlined {
|
|
454
454
|
border: 1px solid var(--ft-button-internal-color);
|
|
455
|
-
padding: calc(${
|
|
455
|
+
padding: calc(${se.verticalPadding} - 1px) calc(${se.horizontalPadding} - 1px);
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
.ft-button.ft-button--dense {
|
|
459
|
-
padding: ${
|
|
460
|
-
border-radius: ${
|
|
461
|
-
gap: ${
|
|
459
|
+
padding: ${he} ${pe};
|
|
460
|
+
border-radius: ${le};
|
|
461
|
+
gap: ${ce};
|
|
462
462
|
}
|
|
463
463
|
|
|
464
464
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
465
|
-
padding: calc(${
|
|
465
|
+
padding: calc(${he} - 1px) calc(${pe} - 1px);
|
|
466
466
|
}
|
|
467
467
|
|
|
468
468
|
.ft-button:not([disabled]):hover {
|
|
@@ -470,22 +470,22 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
.ft-button--round {
|
|
473
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
473
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${se.verticalPadding});
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
.ft-button--round.ft-button--dense {
|
|
477
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
477
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${he});
|
|
478
478
|
}
|
|
479
479
|
|
|
480
480
|
.ft-button[disabled] {
|
|
481
481
|
filter: grayscale(1);
|
|
482
|
-
opacity: ${
|
|
482
|
+
opacity: ${se.opacityDisabled};
|
|
483
483
|
}
|
|
484
484
|
|
|
485
485
|
.ft-button.ft-button--primary {
|
|
486
|
-
background-color: ${
|
|
487
|
-
--ft-button-internal-color: ${
|
|
488
|
-
${i.setVariable(
|
|
486
|
+
background-color: ${ae.backgroundColor};
|
|
487
|
+
--ft-button-internal-color: ${ae.color};
|
|
488
|
+
${i.setVariable(O.color,ae.rippleColor)};
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
.ft-button:focus {
|
|
@@ -498,13 +498,13 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
498
498
|
white-space: nowrap;
|
|
499
499
|
text-overflow: ellipsis;
|
|
500
500
|
display: block;
|
|
501
|
-
margin: 0 ${
|
|
502
|
-
${i.setVariable(
|
|
503
|
-
${i.setVariable(
|
|
501
|
+
margin: 0 ${se.iconPadding};
|
|
502
|
+
${i.setVariable(Si.fontSize,"1em")};
|
|
503
|
+
${i.setVariable(Si.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
504
504
|
}
|
|
505
505
|
|
|
506
506
|
.ft-button--dense .ft-button--label {
|
|
507
|
-
margin: 0 ${
|
|
507
|
+
margin: 0 ${ce};
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
.ft-button--label[hidden] {
|
|
@@ -517,13 +517,13 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
517
517
|
}
|
|
518
518
|
|
|
519
519
|
.ft-button--label[hidden] + ft-icon {
|
|
520
|
-
margin: 0 calc(${
|
|
521
|
-
padding: 0 ${
|
|
520
|
+
margin: 0 calc(${se.horizontalPadding} * -1);
|
|
521
|
+
padding: 0 ${se.verticalPadding};
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
525
|
-
margin: 0 calc(${
|
|
526
|
-
padding: 0 ${
|
|
525
|
+
margin: 0 calc(${pe} * -1);
|
|
526
|
+
padding: 0 ${he};
|
|
527
527
|
}
|
|
528
528
|
|
|
529
529
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -532,10 +532,10 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
532
532
|
}
|
|
533
533
|
|
|
534
534
|
ft-loader {
|
|
535
|
-
${i.setVariable(
|
|
536
|
-
${i.setVariable(
|
|
535
|
+
${i.setVariable(ie.size,se.iconSize)};
|
|
536
|
+
${i.setVariable(ie.color,"var(--ft-button-internal-color)")};
|
|
537
537
|
}
|
|
538
|
-
`,i.noTextSelect];var
|
|
538
|
+
`,i.noTextSelect];var de=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 ue extends i.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!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=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"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};return this.addTooltipIfNeeded(e.html`
|
|
539
539
|
<button part="button"
|
|
540
540
|
class="${s.classMap(t)}"
|
|
541
541
|
aria-label="${this.getLabel()}"
|
|
@@ -558,7 +558,7 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
558
558
|
</ft-tooltip>
|
|
559
559
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
560
560
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
561
|
-
<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}}
|
|
561
|
+
<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}}ue.elementDefinitions={"ft-ripple":Z,"ft-tooltip":te,"ft-typography":_i,"ft-icon":Hi,"ft-loader":oe},ue.styles=[i.safariEllipsisFix,fe],de([n.property({type:String,reflect:!0})],ue.prototype,"role",void 0),de([n.property({type:Boolean})],ue.prototype,"primary",void 0),de([n.property({type:Boolean})],ue.prototype,"outlined",void 0),de([n.property({type:Boolean})],ue.prototype,"disabled",void 0),de([n.property({type:Boolean})],ue.prototype,"dense",void 0),de([n.property({type:Boolean})],ue.prototype,"round",void 0),de([n.property()],ue.prototype,"label",void 0),de([n.property()],ue.prototype,"icon",void 0),de([n.property()],ue.prototype,"iconVariant",void 0),de([n.property({type:Boolean})],ue.prototype,"trailingIcon",void 0),de([n.property({type:Boolean})],ue.prototype,"loading",void 0),de([n.property()],ue.prototype,"tooltipPosition",void 0),de([n.property({type:Boolean})],ue.prototype,"hideTooltip",void 0),de([n.property({type:Boolean})],ue.prototype,"forceTooltip",void 0),de([n.query(".ft-button")],ue.prototype,"button",void 0),de([n.query(".ft-button--label slot")],ue.prototype,"slottedContent",void 0),i.customElement("ft-button")(ue);const ge=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),ve={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:ge,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",ri.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",ge),horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},xe=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),be={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:xe,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",xe)},ye=i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),me=i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),$e=[i.noTextSelect,e.css`
|
|
562
562
|
:host {
|
|
563
563
|
display: inline-block;
|
|
564
564
|
max-width: 100%;
|
|
@@ -574,20 +574,20 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
574
574
|
box-sizing: border-box;
|
|
575
575
|
pointer-events: auto;
|
|
576
576
|
|
|
577
|
-
--ft-chip-internal-font-size: ${
|
|
577
|
+
--ft-chip-internal-font-size: ${ve.fontSize};
|
|
578
578
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
579
|
-
${i.setVariable(
|
|
580
|
-
--ft-chip-internal-vertical-padding: ${
|
|
581
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
579
|
+
${i.setVariable(Ri.size,ve.iconSize)};
|
|
580
|
+
--ft-chip-internal-vertical-padding: ${ve.verticalPadding};
|
|
581
|
+
--ft-chip-internal-horizontal-padding: ${ve.horizontalPadding};
|
|
582
582
|
--ft-chip-internal-icon-padding: 3px;
|
|
583
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
583
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${ve.iconSize});
|
|
584
584
|
|
|
585
|
-
border: 1px solid ${
|
|
586
|
-
color: ${
|
|
587
|
-
${i.setVariable(
|
|
585
|
+
border: 1px solid ${ve.colorOutline};
|
|
586
|
+
color: ${ve.color};
|
|
587
|
+
${i.setVariable(O.color,ve.rippleColor)};
|
|
588
588
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
589
589
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
590
|
-
background-color: ${
|
|
590
|
+
background-color: ${ve.backgroundColor};
|
|
591
591
|
line-height: var(--ft-chip-internal-content-height);
|
|
592
592
|
}
|
|
593
593
|
|
|
@@ -597,8 +597,8 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
597
597
|
|
|
598
598
|
.ft-chip--dense {
|
|
599
599
|
--ft-chip-internal-icon-padding: 3px;
|
|
600
|
-
--ft-chip-internal-vertical-padding: ${
|
|
601
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
600
|
+
--ft-chip-internal-vertical-padding: ${me};
|
|
601
|
+
--ft-chip-internal-horizontal-padding: ${ye};
|
|
602
602
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
603
603
|
}
|
|
604
604
|
|
|
@@ -610,15 +610,15 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
610
610
|
cursor: default;
|
|
611
611
|
pointer-events: none;
|
|
612
612
|
filter: grayscale(1);
|
|
613
|
-
opacity: ${
|
|
613
|
+
opacity: ${ve.opacityDisabled};
|
|
614
614
|
}
|
|
615
615
|
|
|
616
616
|
.ft-chip--highlighted {
|
|
617
617
|
border: none;
|
|
618
618
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
619
|
-
background-color: ${
|
|
620
|
-
${i.setVariable(
|
|
621
|
-
color: ${
|
|
619
|
+
background-color: ${be.backgroundColor};
|
|
620
|
+
${i.setVariable(O.color,be.rippleColor)};
|
|
621
|
+
color: ${be.color};
|
|
622
622
|
}
|
|
623
623
|
|
|
624
624
|
.ft-chip--clickable {
|
|
@@ -648,9 +648,9 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
648
648
|
}
|
|
649
649
|
|
|
650
650
|
.ft-chip--icon-button {
|
|
651
|
-
${i.setVariable(
|
|
652
|
-
${i.setVariable(
|
|
653
|
-
${i.setVariable(
|
|
651
|
+
${i.setVariable(se.iconSize,ve.iconSize)};
|
|
652
|
+
${i.setVariable(se.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
653
|
+
${i.setVariable(se.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
654
654
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
655
655
|
}
|
|
656
656
|
|
|
@@ -658,8 +658,8 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
658
658
|
vertical-align: bottom;
|
|
659
659
|
display: block;
|
|
660
660
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
661
|
-
${i.setVariable(
|
|
662
|
-
${i.setVariable(
|
|
661
|
+
${i.setVariable(ri.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
662
|
+
${i.setVariable(ri.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
663
663
|
}
|
|
664
664
|
|
|
665
665
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -695,7 +695,7 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
695
695
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
696
696
|
order: -1;
|
|
697
697
|
}
|
|
698
|
-
`];var
|
|
698
|
+
`];var we=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 ke extends CustomEvent{constructor(){super("icon-click")}}class ze extends i.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":i.isSafari};return e.html`
|
|
699
699
|
<div class="${s.classMap(t)}"
|
|
700
700
|
aria-label="${this.getLabel()}"
|
|
701
701
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -718,7 +718,7 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
718
718
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
719
719
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
720
720
|
</div>
|
|
721
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
721
|
+
`}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,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}ze.elementDefinitions={"ft-ripple":Z,"ft-typography":_i,"ft-icon":Hi,"ft-button":ue},ze.styles=$e,we([n.property({type:Boolean})],ze.prototype,"highlighted",void 0),we([n.property({type:Boolean})],ze.prototype,"removable",void 0),we([n.property({type:Boolean})],ze.prototype,"disabled",void 0),we([n.property({type:Boolean})],ze.prototype,"clickable",void 0),we([n.property({type:Boolean})],ze.prototype,"iconClickable",void 0),we([n.property({type:Boolean})],ze.prototype,"dense",void 0),we([n.property({type:Boolean})],ze.prototype,"multiLine",void 0),we([n.property()],ze.prototype,"label",void 0),we([n.property()],ze.prototype,"iconLabel",void 0),we([n.property()],ze.prototype,"icon",void 0),we([n.property()],ze.prototype,"iconVariant",void 0),we([n.property({type:Boolean})],ze.prototype,"trailingIcon",void 0),we([n.query("ft-typography slot")],ze.prototype,"slottedContent",void 0),i.customElement("ft-chip")(ze);var Se=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 Ce extends C{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`
|
|
722
722
|
|
|
723
723
|
<div class="ft-search-selected-facets--container">
|
|
724
724
|
${o.repeat(this.facets,(t=>t.key),(t=>{const i=this.getSelectedValues(t);return o.repeat(i,(i=>t.key+"-"+i),(e=>this.renderFacet(t.key,t.label,i,e)))}))}
|
|
@@ -740,4 +740,4 @@ const xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void
|
|
|
740
740
|
${this.getLabelFromValue(n)}
|
|
741
741
|
</ft-chip>
|
|
742
742
|
</ft-tooltip>
|
|
743
|
-
`}getSelectedValues(t){return i.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}}
|
|
743
|
+
`}getSelectedValues(t){return i.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}}Ce.elementDefinitions={"ft-chip":ze,"ft-tooltip":te},Ce.styles=l,Se([i.redux({store:"search"})],Ce.prototype,"facets",void 0),Se([i.redux({store:p.name})],Ce.prototype,"editorMode",void 0),i.customElement("ft-search-selected-facets")(Ce),t.FtSearchSelectedFacets=Ce,t.FtSearchSelectedFacetsCssVariables=a,t.styles=l}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litRepeat,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|