@fluid-topics/ft-search-selected-facets 1.0.44 → 1.0.45
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);
|
|
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 b extends Event{constructor(){super(b.eventName)}}b.eventName="search-context-clear-all-filters";var y=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 m extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const $=Symbol("registerInterval");class w 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[$]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[$]):this.dispatchEvent(new m)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=$,y([n.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}const k=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),z={color:k,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",k),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")},S=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),C=S,I=i.FtCssVariableFactory.extend("--ft-ripple-background-color",S),O=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),j=O,E=i.FtCssVariableFactory.extend("--ft-ripple-background-color",O),B=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: ${z.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: ${z.backgroundColor};
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.ft-ripple .ft-ripple--effect {
|
|
37
|
-
background-color: ${
|
|
37
|
+
background-color: ${z.color};
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
41
|
-
background-color: ${
|
|
41
|
+
background-color: ${E};
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
45
|
-
background-color: ${
|
|
45
|
+
background-color: ${j};
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
49
|
-
background-color: ${
|
|
49
|
+
background-color: ${I};
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
53
|
-
background-color: ${
|
|
53
|
+
background-color: ${C};
|
|
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: ${z.opacityContentOnSurfaceHover};
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
89
|
-
opacity: ${
|
|
89
|
+
opacity: ${z.opacityContentOnSurfaceSelected};
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
93
|
-
opacity: ${
|
|
93
|
+
opacity: ${z.opacityContentOnSurfaceFocused};
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
97
|
-
opacity: ${
|
|
97
|
+
opacity: ${z.opacityContentOnSurfacePressed};
|
|
98
98
|
transform: translate(-50%, -50%) scale(1);
|
|
99
99
|
}
|
|
100
|
-
`;var
|
|
100
|
+
`;var N,U=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 A 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()}}U.elementDefinitions={},U.styles=E,N([n.property({type:Boolean})],U.prototype,"primary",void 0),N([n.property({type:Boolean})],U.prototype,"secondary",void 0),N([n.property({type:Boolean})],U.prototype,"unbounded",void 0),N([n.property({type:Boolean})],U.prototype,"activated",void 0),N([n.property({type:Boolean})],U.prototype,"selected",void 0),N([n.property({type:Boolean})],U.prototype,"disabled",void 0),N([n.state()],U.prototype,"hovered",void 0),N([n.state()],U.prototype,"focused",void 0),N([n.state()],U.prototype,"pressed",void 0),N([n.state()],U.prototype,"rippling",void 0),N([n.state()],U.prototype,"rippleSize",void 0),N([n.state()],U.prototype,"originX",void 0),N([n.state()],U.prototype,"originY",void 0),N([n.query(".ft-ripple")],U.prototype,"ripple",void 0),N([n.query(".ft-ripple--effect")],U.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(U);const A=window,T=A.trustedTypes,M=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",Z=`lit$${(Math.random()+"").slice(9)}$`,L="?"+Z,_=`<${L}>`,R=document,D=()=>R.createComment(""),P=t=>null===t||"object"!=typeof t&&"function"!=typeof t,W=Array.isArray,H="[ \t\n\f\r]",K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,V=/-->/g,G=/>/g,q=RegExp(`>|${H}(?:([^\\s"'>=/]+)(${H}*=${H}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),X=/'/g,Y=/"/g,J=/^(?:script|style|textarea|title)$/i,Q=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),tt=Symbol.for("lit-noChange"),it=Symbol.for("lit-nothing"),et=new WeakMap,ot=R.createTreeWalker(R,129,null,!1),nt=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=K;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===K?"!--"===l[1]?r=V:void 0!==l[1]?r=G:void 0!==l[2]?(J.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=q):void 0!==l[3]&&(r=q):r===q?">"===l[0]?(r=null!=n?n:K,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?q:'"'===l[3]?Y:X):r===Y||r===X?r=q:r===V||r===G?r=K:(r=q,n=void 0);const c=r===q&&t[i+1].startsWith("/>")?" ":"";s+=r===K?e+_:h>=0?(o.push(a),e.slice(0,h)+F+e.slice(h)+Z+c):e+Z+(-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!==M?M.createHTML(a):a,o]};class st{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]=nt(t,i);if(this.el=st.createElement(l,e),ot.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=ot.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(F)||i.startsWith(Z)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+F).split(Z),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?pt:"?"===i[1]?ft:"@"===i[1]?dt:ht})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(J.test(o.tagName)){const t=o.textContent.split(Z),i=t.length-1;if(i>0){o.textContent=T?T.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],D()),ot.nextNode(),a.push({type:2,index:++n});o.append(t[i],D())}}}else if(8===o.nodeType)if(o.data===L)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(Z,t+1));)a.push({type:7,index:n}),t+=Z.length-1}n++}}static createElement(t,i){const e=R.createElement("template");return e.innerHTML=t,e}}function rt(t,i,e=t,o){var n,s,r,a;if(i===tt)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=P(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=rt(t,l._$AS(t,i.values),l,o)),i}class at{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:R).importNode(e,!0);ot.currentNode=n;let s=ot.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new lt(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new ut(s,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=ot.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 lt{constructor(t,i,e,o){var n;this.type=2,this._$AH=it,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=rt(this,t,i),P(t)?t===it||null==t||""===t?(this._$AH!==it&&this._$AR(),this._$AH=it):t!==this._$AH&&t!==tt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>W(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!==it&&P(this._$AH)?this._$AA.nextSibling.data=t:this.$(R.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=st.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 at(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=et.get(t.strings);return void 0===i&&et.set(t.strings,i=new st(t)),i}T(t){W(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 lt(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 ht{constructor(t,i,e,o,n){this.type=1,this._$AH=it,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=it}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=rt(this,t,i,0),s=!P(t)||t!==this._$AH&&t!==tt,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=rt(this,o[e+r],i,r),a===tt&&(a=this._$AH[r]),s||(s=!P(a)||a!==this._$AH[r]),a===it?t=it:t!==it&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===it?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class pt extends ht{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===it?void 0:t}}const ct=T?T.emptyScript:"";class ft extends ht{constructor(){super(...arguments),this.type=4}j(t){t&&t!==it?this.element.setAttribute(this.name,ct):this.element.removeAttribute(this.name)}}class dt extends ht{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=rt(this,t,i,0))&&void 0!==e?e:it)===tt)return;const o=this._$AH,n=t===it&&o!==it||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==it&&(o===it||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 ut{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){rt(this,t)}}const gt=A.litHtmlPolyfillSupport;null==gt||gt(st,lt),(null!==(B=A.litHtmlVersions)&&void 0!==B?B: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()}}A.elementDefinitions={},A.styles=B,U([n.property({type:Boolean})],A.prototype,"primary",void 0),U([n.property({type:Boolean})],A.prototype,"secondary",void 0),U([n.property({type:Boolean})],A.prototype,"unbounded",void 0),U([n.property({type:Boolean})],A.prototype,"activated",void 0),U([n.property({type:Boolean})],A.prototype,"selected",void 0),U([n.property({type:Boolean})],A.prototype,"disabled",void 0),U([n.state()],A.prototype,"hovered",void 0),U([n.state()],A.prototype,"focused",void 0),U([n.state()],A.prototype,"pressed",void 0),U([n.state()],A.prototype,"rippling",void 0),U([n.state()],A.prototype,"rippleSize",void 0),U([n.state()],A.prototype,"originX",void 0),U([n.state()],A.prototype,"originY",void 0),U([n.query(".ft-ripple")],A.prototype,"ripple",void 0),U([n.query(".ft-ripple--effect")],A.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(A);const T=window,M=T.trustedTypes,F=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,Z="$lit$",L=`lit$${(Math.random()+"").slice(9)}$`,_="?"+L,R=`<${_}>`,D=document,P=()=>D.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=D.createTreeWalker(D,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=M?M.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],P()),nt.nextNode(),a.push({type:2,index:++n});o.append(t[i],P())}}}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=D.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:D).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.$(D.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(P()),this.k(P()),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=M?M.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=T.litHtmlPolyfillSupport;null==vt||vt(rt,ht),(null!==(N=T.litHtmlVersions)&&void 0!==N?N:T.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 xt=Symbol.for(""),bt=t=>{if((null==t?void 0:t.r)===xt)return null==t?void 0:t._$litStatic$},yt=t=>({_$litStatic$:t,r:xt}),mt=new Map,$t=(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=bt(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=mt.get(t))&&(r.raw=r,mt.set(t,i=r)),e=a}return t(i,...e)})(tt);var wt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(wt||(wt={}));const kt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),zt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),St={fontFamily:zt,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")},Ct=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",kt),It=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",St.fontSize,"20px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",St.fontWeight,"normal"),jt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",St.letterSpacing,"0.15px"),Et=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",St.lineHeight,"1.2"),Bt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",St.textTransform,"inherit"),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",kt),Ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",St.fontSize,"14px"),At=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",St.fontWeight,"normal"),Tt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",St.letterSpacing,"0.105px"),Mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",St.lineHeight,"1.7"),Ft=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",St.textTransform,"inherit"),Zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",zt),Lt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",St.fontSize,"16px"),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",St.fontWeight,"600"),Rt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",St.letterSpacing,"0.144px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",St.lineHeight,"1.5"),Pt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",St.textTransform,"inherit"),Wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",zt),Ht=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",St.fontSize,"14px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",St.fontWeight,"normal"),Vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",St.letterSpacing,"0.098px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",St.lineHeight,"1.7"),qt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",St.textTransform,"inherit"),Xt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",zt),Yt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",St.fontSize,"16px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",St.fontWeight,"normal"),Qt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",St.letterSpacing,"0.496px"),ti=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",St.lineHeight,"1.5"),ii=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",St.textTransform,"inherit"),ei={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",zt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",St.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",St.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",St.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",St.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",St.textTransform,"inherit")},oi=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",zt),ni=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",St.fontSize,"12px"),si=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",St.fontWeight,"normal"),ri=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",St.letterSpacing,"0.396px"),ai=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",St.lineHeight,"1.33"),li=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",St.textTransform,"inherit"),hi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",zt),pi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",St.fontSize,"10px"),ci=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",St.fontWeight,"normal"),fi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",St.letterSpacing,"0.33px"),di=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",St.lineHeight,"1.6"),ui=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",St.textTransform,"inherit"),gi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",zt),vi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",St.fontSize,"10px"),xi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",St.fontWeight,"normal"),bi=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",St.letterSpacing,"1.5px"),yi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",St.lineHeight,"1.6"),mi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",St.textTransform,"uppercase"),$i={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",zt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",St.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",St.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",St.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",St.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",St.textTransform,"uppercase")},wi=e.css`
|
|
124
124
|
.ft-typography--title {
|
|
125
|
-
font-family: ${
|
|
126
|
-
font-size: ${
|
|
127
|
-
font-weight: ${
|
|
128
|
-
letter-spacing: ${
|
|
129
|
-
line-height: ${
|
|
130
|
-
text-transform: ${
|
|
131
|
-
}
|
|
132
|
-
`,wi=e.css`
|
|
133
|
-
.ft-typography--title-dense {
|
|
134
|
-
font-family: ${Bt};
|
|
135
|
-
font-size: ${Nt};
|
|
136
|
-
font-weight: ${Ut};
|
|
137
|
-
letter-spacing: ${At};
|
|
138
|
-
line-height: ${Tt};
|
|
139
|
-
text-transform: ${Mt};
|
|
125
|
+
font-family: ${Ct};
|
|
126
|
+
font-size: ${It};
|
|
127
|
+
font-weight: ${Ot};
|
|
128
|
+
letter-spacing: ${jt};
|
|
129
|
+
line-height: ${Et};
|
|
130
|
+
text-transform: ${Bt};
|
|
140
131
|
}
|
|
141
132
|
`,ki=e.css`
|
|
142
|
-
.ft-typography--
|
|
143
|
-
font-family: ${
|
|
144
|
-
font-size: ${
|
|
145
|
-
font-weight: ${
|
|
146
|
-
letter-spacing: ${
|
|
147
|
-
line-height: ${
|
|
148
|
-
text-transform: ${
|
|
133
|
+
.ft-typography--title-dense {
|
|
134
|
+
font-family: ${Nt};
|
|
135
|
+
font-size: ${Ut};
|
|
136
|
+
font-weight: ${At};
|
|
137
|
+
letter-spacing: ${Tt};
|
|
138
|
+
line-height: ${Mt};
|
|
139
|
+
text-transform: ${Ft};
|
|
149
140
|
}
|
|
150
141
|
`,zi=e.css`
|
|
151
|
-
.ft-typography--
|
|
152
|
-
font-family: ${
|
|
153
|
-
font-size: ${
|
|
154
|
-
font-weight: ${
|
|
155
|
-
letter-spacing: ${
|
|
156
|
-
line-height: ${
|
|
157
|
-
text-transform: ${
|
|
142
|
+
.ft-typography--subtitle1 {
|
|
143
|
+
font-family: ${Zt};
|
|
144
|
+
font-size: ${Lt};
|
|
145
|
+
font-weight: ${_t};
|
|
146
|
+
letter-spacing: ${Rt};
|
|
147
|
+
line-height: ${Dt};
|
|
148
|
+
text-transform: ${Pt};
|
|
158
149
|
}
|
|
159
|
-
|
|
160
150
|
`,Si=e.css`
|
|
161
|
-
.ft-typography--
|
|
162
|
-
font-family: ${
|
|
163
|
-
font-size: ${
|
|
164
|
-
font-weight: ${
|
|
165
|
-
letter-spacing: ${
|
|
166
|
-
line-height: ${
|
|
167
|
-
text-transform: ${
|
|
151
|
+
.ft-typography--subtitle2 {
|
|
152
|
+
font-family: ${Wt};
|
|
153
|
+
font-size: ${Ht};
|
|
154
|
+
font-weight: ${Kt};
|
|
155
|
+
letter-spacing: ${Vt};
|
|
156
|
+
line-height: ${Gt};
|
|
157
|
+
text-transform: ${qt};
|
|
168
158
|
}
|
|
159
|
+
|
|
169
160
|
`,Ci=e.css`
|
|
170
|
-
.ft-typography--
|
|
171
|
-
font-family: ${
|
|
172
|
-
font-size: ${
|
|
173
|
-
font-weight: ${
|
|
174
|
-
letter-spacing: ${
|
|
175
|
-
line-height: ${
|
|
176
|
-
text-transform: ${ii
|
|
161
|
+
.ft-typography--body1 {
|
|
162
|
+
font-family: ${Xt};
|
|
163
|
+
font-size: ${Yt};
|
|
164
|
+
font-weight: ${Jt};
|
|
165
|
+
letter-spacing: ${Qt};
|
|
166
|
+
line-height: ${ti};
|
|
167
|
+
text-transform: ${ii};
|
|
177
168
|
}
|
|
178
169
|
`,Ii=e.css`
|
|
179
|
-
.ft-typography--
|
|
180
|
-
font-family: ${ei};
|
|
181
|
-
font-size: ${
|
|
182
|
-
font-weight: ${
|
|
183
|
-
letter-spacing: ${
|
|
184
|
-
line-height: ${
|
|
185
|
-
text-transform: ${
|
|
170
|
+
.ft-typography--body2 {
|
|
171
|
+
font-family: ${ei.fontFamily};
|
|
172
|
+
font-size: ${ei.fontSize};
|
|
173
|
+
font-weight: ${ei.fontWeight};
|
|
174
|
+
letter-spacing: ${ei.letterSpacing};
|
|
175
|
+
line-height: ${ei.lineHeight};
|
|
176
|
+
text-transform: ${ei.textTransform};
|
|
186
177
|
}
|
|
187
178
|
`,Oi=e.css`
|
|
188
|
-
.ft-typography--
|
|
189
|
-
font-family: ${
|
|
190
|
-
font-size: ${
|
|
191
|
-
font-weight: ${
|
|
192
|
-
letter-spacing: ${
|
|
193
|
-
line-height: ${
|
|
194
|
-
text-transform: ${
|
|
179
|
+
.ft-typography--caption {
|
|
180
|
+
font-family: ${oi};
|
|
181
|
+
font-size: ${ni};
|
|
182
|
+
font-weight: ${si};
|
|
183
|
+
letter-spacing: ${ri};
|
|
184
|
+
line-height: ${ai};
|
|
185
|
+
text-transform: ${li};
|
|
195
186
|
}
|
|
196
187
|
`,ji=e.css`
|
|
197
|
-
.ft-typography--
|
|
198
|
-
font-family: ${
|
|
199
|
-
font-size: ${
|
|
200
|
-
font-weight: ${
|
|
201
|
-
letter-spacing: ${
|
|
202
|
-
line-height: ${
|
|
203
|
-
text-transform: ${
|
|
188
|
+
.ft-typography--breadcrumb {
|
|
189
|
+
font-family: ${hi};
|
|
190
|
+
font-size: ${pi};
|
|
191
|
+
font-weight: ${ci};
|
|
192
|
+
letter-spacing: ${fi};
|
|
193
|
+
line-height: ${di};
|
|
194
|
+
text-transform: ${ui};
|
|
204
195
|
}
|
|
205
196
|
`,Ei=e.css`
|
|
206
|
-
.ft-typography--
|
|
207
|
-
font-family: ${
|
|
208
|
-
font-size: ${
|
|
209
|
-
font-weight: ${
|
|
210
|
-
letter-spacing: ${
|
|
211
|
-
line-height: ${
|
|
212
|
-
text-transform: ${mi
|
|
197
|
+
.ft-typography--overline {
|
|
198
|
+
font-family: ${gi};
|
|
199
|
+
font-size: ${vi};
|
|
200
|
+
font-weight: ${xi};
|
|
201
|
+
letter-spacing: ${bi};
|
|
202
|
+
line-height: ${yi};
|
|
203
|
+
text-transform: ${mi};
|
|
213
204
|
}
|
|
214
205
|
`,Bi=e.css`
|
|
206
|
+
.ft-typography--button {
|
|
207
|
+
font-family: ${$i.fontFamily};
|
|
208
|
+
font-size: ${$i.fontSize};
|
|
209
|
+
font-weight: ${$i.fontWeight};
|
|
210
|
+
letter-spacing: ${$i.letterSpacing};
|
|
211
|
+
line-height: ${$i.lineHeight};
|
|
212
|
+
text-transform: ${$i.textTransform};
|
|
213
|
+
}
|
|
214
|
+
`,Ni=e.css`
|
|
215
215
|
.ft-typography {
|
|
216
216
|
vertical-align: inherit;
|
|
217
217
|
}
|
|
218
|
-
`;var
|
|
219
|
-
<${
|
|
218
|
+
`;var Ui,Ai,Ti=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 Mi extends i.FtLitElement{constructor(){super(...arguments),this.variant=wt.body1}render(){return this.element?$t`
|
|
219
|
+
<${yt(this.element)}
|
|
220
220
|
class="ft-typography ft-typography--${this.variant}">
|
|
221
221
|
<slot></slot>
|
|
222
|
-
</${
|
|
223
|
-
|
|
222
|
+
</${yt(this.element)}>
|
|
223
|
+
`:$t`
|
|
224
224
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
225
|
-
`}}
|
|
225
|
+
`}}Mi.styles=[wi,ki,zi,Si,Ci,Ii,Oi,ji,Ei,Bi,Ni],Ti([n.property()],Mi.prototype,"element",void 0),Ti([n.property()],Mi.prototype,"variant",void 0),i.customElement("ft-typography")(Mi),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",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=""}(Ui||(Ui={})),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=""}(Ai||(Ai={})),new Map([...["abw"].map((t=>[t,Ai.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,Ai.AUDIO])),...["avi"].map((t=>[t,Ai.AVI])),...["chm","xhs"].map((t=>[t,Ai.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,Ai.CODE])),...["csv"].map((t=>[t,Ai.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ai.DITA])),...["epub"].map((t=>[t,Ai.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ai.EXCEL])),...["flac"].map((t=>[t,Ai.FLAC])),...["gif"].map((t=>[t,Ai.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ai.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ai.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,Ai.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ai.JPEG])),...["json"].map((t=>[t,Ai.JSON])),...["m4a","m4p"].map((t=>[t,Ai.M4A])),...["mov","qt"].map((t=>[t,Ai.MOV])),...["mp3"].map((t=>[t,Ai.MP3])),...["mp4","m4v"].map((t=>[t,Ai.MP4])),...["ogg","oga"].map((t=>[t,Ai.OGG])),...["pdf","ps"].map((t=>[t,Ai.PDF])),...["png"].map((t=>[t,Ai.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ai.POWERPOINT])),...["rar"].map((t=>[t,Ai.RAR])),...["stp"].map((t=>[t,Ai.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ai.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,Ai.VIDEO])),...["wav"].map((t=>[t,Ai.WAV])),...["wma"].map((t=>[t,Ai.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ai.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ai.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ai.YAML])),...["zip"].map((t=>[t,Ai.ZIP]))]);const Fi={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")},Zi=e.css`
|
|
226
226
|
:host, i.ft-icon {
|
|
227
227
|
display: inline-flex;
|
|
228
228
|
align-items: center;
|
|
@@ -231,14 +231,14 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
:host {
|
|
234
|
-
width: ${
|
|
235
|
-
height: ${
|
|
234
|
+
width: ${Fi.size};
|
|
235
|
+
height: ${Fi.size};
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
i.ft-icon {
|
|
239
239
|
width: 100%;
|
|
240
240
|
height: 100%;
|
|
241
|
-
font-size: ${
|
|
241
|
+
font-size: ${Fi.size};
|
|
242
242
|
line-height: 1;
|
|
243
243
|
font-weight: normal;
|
|
244
244
|
text-transform: none;
|
|
@@ -249,33 +249,33 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)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: ${Fi.verticalAlign};
|
|
253
253
|
}
|
|
254
254
|
|
|
255
255
|
i.ft-icon.ft-icon--fluid-topics {
|
|
256
|
-
font-family: ${
|
|
256
|
+
font-family: ${Fi.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 * ${Fi.size});
|
|
260
|
+
line-height: ${Fi.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: ${Fi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
.ft-icon--material {
|
|
271
|
-
font-family: ${
|
|
271
|
+
font-family: ${Fi.materialFontFamily}, "Material Icons", sans-serif;
|
|
272
272
|
}
|
|
273
|
-
`;var
|
|
273
|
+
`;var Li;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Li||(Li={}));var _i=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 Ri extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Li).includes(this.variant)?this.variant:Li.fluid_topics,i=t!==Li.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 Li.file_format:this.resolvedIcon=null!==(t=Ai[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Li.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Ui[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ri.elementDefinitions={},Ri.styles=Zi,_i([n.property()],Ri.prototype,"variant",void 0),_i([n.property()],Ri.prototype,"value",void 0),_i([n.state()],Ri.prototype,"resolvedIcon",void 0),_i([n.query("slot")],Ri.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ri);const Di=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Pi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Wi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Hi=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Ki=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Vi=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Gi=e.css`
|
|
279
279
|
.ft-tooltip--container {
|
|
280
280
|
display: block;
|
|
281
281
|
position: relative;
|
|
@@ -291,23 +291,23 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
291
291
|
box-sizing: border-box;
|
|
292
292
|
overflow: hidden;
|
|
293
293
|
width: max-content;
|
|
294
|
-
max-width: ${
|
|
294
|
+
max-width: ${Vi};
|
|
295
295
|
text-align: center;
|
|
296
|
-
padding: ${
|
|
297
|
-
z-index: ${
|
|
296
|
+
padding: ${Di};
|
|
297
|
+
z-index: ${Hi};
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
.ft-tooltip--content {
|
|
301
301
|
padding: 4px 8px;
|
|
302
|
-
border-radius: ${
|
|
303
|
-
background-color: ${
|
|
304
|
-
color: ${
|
|
302
|
+
border-radius: ${Ki};
|
|
303
|
+
background-color: ${Wi};
|
|
304
|
+
color: ${Pi};
|
|
305
305
|
top: -500px;
|
|
306
306
|
left: -500px;
|
|
307
307
|
position: relative;
|
|
308
308
|
word-break: break-word;
|
|
309
309
|
}
|
|
310
|
-
`;var
|
|
310
|
+
`;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 Xi 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`
|
|
311
311
|
<div part="container"
|
|
312
312
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
313
313
|
@mouseenter=${this.onHover}
|
|
@@ -325,7 +325,7 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
325
325
|
</div>
|
|
326
326
|
</div>
|
|
327
327
|
</div>
|
|
328
|
-
`}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=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=4-i.left);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${
|
|
328
|
+
`}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=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=4-i.left);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${Vi})`}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())}}Xi.elementDefinitions={"ft-typography":Mi},Xi.styles=Gi,qi([n.property()],Xi.prototype,"text",void 0),qi([n.property({type:Boolean})],Xi.prototype,"manual",void 0),qi([n.property({type:Boolean})],Xi.prototype,"inline",void 0),qi([n.property({type:Number})],Xi.prototype,"delay",void 0),qi([n.property()],Xi.prototype,"position",void 0),qi([n.queryAssignedNodes("",!0)],Xi.prototype,"slotNodes",void 0),qi([n.query(".ft-tooltip--container")],Xi.prototype,"container",void 0),qi([n.query("slot")],Xi.prototype,"target",void 0),qi([n.query(".ft-tooltip")],Xi.prototype,"tooltip",void 0),qi([n.query(".ft-tooltip--content")],Xi.prototype,"tooltipContent",void 0),qi([n.state()],Xi.prototype,"visible",void 0),i.customElement("ft-tooltip")(Xi);const Yi={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Ji=e.css`
|
|
329
329
|
:host {
|
|
330
330
|
line-height: 0;
|
|
331
331
|
}
|
|
@@ -334,8 +334,8 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
334
334
|
display: inline-block;
|
|
335
335
|
position: relative;
|
|
336
336
|
|
|
337
|
-
width: ${
|
|
338
|
-
height: ${
|
|
337
|
+
width: ${Yi.size};
|
|
338
|
+
height: ${Yi.size};
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
.ft-loader div {
|
|
@@ -344,7 +344,7 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
344
344
|
width: 25%;
|
|
345
345
|
height: 25%;
|
|
346
346
|
border-radius: 50%;
|
|
347
|
-
background: ${
|
|
347
|
+
background: ${Yi.color};
|
|
348
348
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
349
349
|
}
|
|
350
350
|
|
|
@@ -391,17 +391,17 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
391
391
|
transform: translate(0, 0);
|
|
392
392
|
}
|
|
393
393
|
100% {
|
|
394
|
-
transform: translate(calc(0.35 * ${
|
|
394
|
+
transform: translate(calc(0.35 * ${Yi.size}), 0);
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
`;class
|
|
397
|
+
`;class Qi extends i.FtLitElement{render(){return e.html`
|
|
398
398
|
<div class="ft-loader">
|
|
399
399
|
<div></div>
|
|
400
400
|
<div></div>
|
|
401
401
|
<div></div>
|
|
402
402
|
<div></div>
|
|
403
403
|
</div>
|
|
404
|
-
`}}
|
|
404
|
+
`}}Qi.styles=Ji,i.customElement("ft-loader")(Qi);const te=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),ie={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:te,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",$i.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",te),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")},ee=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),oe={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:ee,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",ee)},ne=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),se=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),re=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),ae=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),le=[e.css`
|
|
405
405
|
:host {
|
|
406
406
|
display: inline-block;
|
|
407
407
|
max-width: 100%;
|
|
@@ -412,7 +412,7 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
412
412
|
box-shadow: 0px 0px 0px transparent;
|
|
413
413
|
border: 0px solid transparent;
|
|
414
414
|
text-shadow: 0px 0px 0px transparent;
|
|
415
|
-
font-size: ${
|
|
415
|
+
font-size: ${ie.fontSize};
|
|
416
416
|
}
|
|
417
417
|
|
|
418
418
|
button:hover {
|
|
@@ -441,31 +441,31 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
441
441
|
border: none;
|
|
442
442
|
pointer-events: auto;
|
|
443
443
|
|
|
444
|
-
--ft-button-internal-line-height: max(calc(${
|
|
445
|
-
--ft-button-internal-color: ${
|
|
446
|
-
${i.setVariable(
|
|
447
|
-
${i.setVariable(
|
|
444
|
+
--ft-button-internal-line-height: max(calc(${ie.fontSize} + 2px), ${ie.iconSize});
|
|
445
|
+
--ft-button-internal-color: ${ie.color};
|
|
446
|
+
${i.setVariable(Fi.size,ie.iconSize)};
|
|
447
|
+
${i.setVariable(z.color,ie.rippleColor)};
|
|
448
448
|
|
|
449
|
-
border-radius: ${
|
|
450
|
-
padding: ${
|
|
451
|
-
background-color: ${
|
|
449
|
+
border-radius: ${ie.borderRadius};
|
|
450
|
+
padding: ${ie.verticalPadding} ${ie.horizontalPadding};
|
|
451
|
+
background-color: ${ie.backgroundColor};
|
|
452
452
|
color: var(--ft-button-internal-color);
|
|
453
453
|
-webkit-mask-image: radial-gradient(white, black);
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
.ft-button.ft-button--outlined {
|
|
457
457
|
border: 1px solid var(--ft-button-internal-color);
|
|
458
|
-
padding: calc(${
|
|
458
|
+
padding: calc(${ie.verticalPadding} - 1px) calc(${ie.horizontalPadding} - 1px);
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
.ft-button.ft-button--dense {
|
|
462
|
-
padding: ${
|
|
463
|
-
border-radius: ${
|
|
464
|
-
gap: ${
|
|
462
|
+
padding: ${se} ${re};
|
|
463
|
+
border-radius: ${ne};
|
|
464
|
+
gap: ${ae};
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
468
|
-
padding: calc(${
|
|
468
|
+
padding: calc(${se} - 1px) calc(${re} - 1px);
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
.ft-button:not([disabled]):hover {
|
|
@@ -473,22 +473,22 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
473
473
|
}
|
|
474
474
|
|
|
475
475
|
.ft-button--round {
|
|
476
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
476
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ie.verticalPadding});
|
|
477
477
|
}
|
|
478
478
|
|
|
479
479
|
.ft-button--round.ft-button--dense {
|
|
480
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
480
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${se});
|
|
481
481
|
}
|
|
482
482
|
|
|
483
483
|
.ft-button[disabled] {
|
|
484
484
|
filter: grayscale(1);
|
|
485
|
-
opacity: ${
|
|
485
|
+
opacity: ${ie.opacityDisabled};
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
.ft-button.ft-button--primary {
|
|
489
|
-
background-color: ${
|
|
490
|
-
--ft-button-internal-color: ${
|
|
491
|
-
${i.setVariable(
|
|
489
|
+
background-color: ${oe.backgroundColor};
|
|
490
|
+
--ft-button-internal-color: ${oe.color};
|
|
491
|
+
${i.setVariable(z.color,oe.rippleColor)};
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
.ft-button:focus {
|
|
@@ -501,13 +501,13 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
501
501
|
white-space: nowrap;
|
|
502
502
|
text-overflow: ellipsis;
|
|
503
503
|
display: block;
|
|
504
|
-
margin: 0 ${
|
|
505
|
-
${i.setVariable(
|
|
506
|
-
${i.setVariable(
|
|
504
|
+
margin: 0 ${ie.iconPadding};
|
|
505
|
+
${i.setVariable($i.fontSize,"1em")};
|
|
506
|
+
${i.setVariable($i.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
507
507
|
}
|
|
508
508
|
|
|
509
509
|
.ft-button--dense .ft-button--label {
|
|
510
|
-
margin: 0 ${
|
|
510
|
+
margin: 0 ${ae};
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
.ft-button--label[hidden] {
|
|
@@ -520,13 +520,13 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
.ft-button--label[hidden] + ft-icon {
|
|
523
|
-
margin: 0 calc(${
|
|
524
|
-
padding: 0 ${
|
|
523
|
+
margin: 0 calc(${ie.horizontalPadding} * -1);
|
|
524
|
+
padding: 0 ${ie.verticalPadding};
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
528
|
-
margin: 0 calc(${
|
|
529
|
-
padding: 0 ${
|
|
528
|
+
margin: 0 calc(${re} * -1);
|
|
529
|
+
padding: 0 ${se};
|
|
530
530
|
}
|
|
531
531
|
|
|
532
532
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -535,10 +535,10 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
535
535
|
}
|
|
536
536
|
|
|
537
537
|
ft-loader {
|
|
538
|
-
${i.setVariable(
|
|
539
|
-
${i.setVariable(
|
|
538
|
+
${i.setVariable(Yi.size,ie.iconSize)};
|
|
539
|
+
${i.setVariable(Yi.color,"var(--ft-button-internal-color)")};
|
|
540
540
|
}
|
|
541
|
-
`,i.noTextSelect];var
|
|
541
|
+
`,i.noTextSelect];var he=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 pe 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`
|
|
542
542
|
<button part="button"
|
|
543
543
|
class="${s.classMap(t)}"
|
|
544
544
|
aria-label="${this.getLabel()}"
|
|
@@ -561,7 +561,7 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
561
561
|
</ft-tooltip>
|
|
562
562
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
563
563
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
564
|
-
<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}}
|
|
564
|
+
<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}}pe.elementDefinitions={"ft-ripple":A,"ft-tooltip":Xi,"ft-typography":Mi,"ft-icon":Ri,"ft-loader":Qi},pe.styles=[i.safariEllipsisFix,le],he([n.property({type:String,reflect:!0})],pe.prototype,"role",void 0),he([n.property({type:Boolean})],pe.prototype,"primary",void 0),he([n.property({type:Boolean})],pe.prototype,"outlined",void 0),he([n.property({type:Boolean})],pe.prototype,"disabled",void 0),he([n.property({type:Boolean})],pe.prototype,"dense",void 0),he([n.property({type:Boolean})],pe.prototype,"round",void 0),he([n.property()],pe.prototype,"label",void 0),he([n.property()],pe.prototype,"icon",void 0),he([n.property()],pe.prototype,"iconVariant",void 0),he([n.property({type:Boolean})],pe.prototype,"trailingIcon",void 0),he([n.property({type:Boolean})],pe.prototype,"loading",void 0),he([n.property()],pe.prototype,"tooltipPosition",void 0),he([n.property({type:Boolean})],pe.prototype,"hideTooltip",void 0),he([n.property({type:Boolean})],pe.prototype,"forceTooltip",void 0),he([n.query(".ft-button")],pe.prototype,"button",void 0),he([n.query(".ft-button--label slot")],pe.prototype,"slottedContent",void 0),i.customElement("ft-button")(pe);const ce=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),fe={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:ce,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",ei.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",ce),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")},de=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),ue={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:de,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",de)},ge=i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),ve=i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),xe=[i.noTextSelect,e.css`
|
|
565
565
|
:host {
|
|
566
566
|
display: inline-block;
|
|
567
567
|
max-width: 100%;
|
|
@@ -577,20 +577,20 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
577
577
|
box-sizing: border-box;
|
|
578
578
|
pointer-events: auto;
|
|
579
579
|
|
|
580
|
-
--ft-chip-internal-font-size: ${
|
|
580
|
+
--ft-chip-internal-font-size: ${fe.fontSize};
|
|
581
581
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
582
|
-
${i.setVariable(
|
|
583
|
-
--ft-chip-internal-vertical-padding: ${
|
|
584
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
582
|
+
${i.setVariable(Fi.size,fe.iconSize)};
|
|
583
|
+
--ft-chip-internal-vertical-padding: ${fe.verticalPadding};
|
|
584
|
+
--ft-chip-internal-horizontal-padding: ${fe.horizontalPadding};
|
|
585
585
|
--ft-chip-internal-icon-padding: 3px;
|
|
586
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
586
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${fe.iconSize});
|
|
587
587
|
|
|
588
|
-
border: 1px solid ${
|
|
589
|
-
color: ${
|
|
590
|
-
${i.setVariable(
|
|
588
|
+
border: 1px solid ${fe.colorOutline};
|
|
589
|
+
color: ${fe.color};
|
|
590
|
+
${i.setVariable(z.color,fe.rippleColor)};
|
|
591
591
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
592
592
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
593
|
-
background-color: ${
|
|
593
|
+
background-color: ${fe.backgroundColor};
|
|
594
594
|
line-height: var(--ft-chip-internal-content-height);
|
|
595
595
|
}
|
|
596
596
|
|
|
@@ -600,8 +600,8 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
600
600
|
|
|
601
601
|
.ft-chip--dense {
|
|
602
602
|
--ft-chip-internal-icon-padding: 3px;
|
|
603
|
-
--ft-chip-internal-vertical-padding: ${
|
|
604
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
603
|
+
--ft-chip-internal-vertical-padding: ${ve};
|
|
604
|
+
--ft-chip-internal-horizontal-padding: ${ge};
|
|
605
605
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
606
606
|
}
|
|
607
607
|
|
|
@@ -613,15 +613,15 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
613
613
|
cursor: default;
|
|
614
614
|
pointer-events: none;
|
|
615
615
|
filter: grayscale(1);
|
|
616
|
-
opacity: ${
|
|
616
|
+
opacity: ${fe.opacityDisabled};
|
|
617
617
|
}
|
|
618
618
|
|
|
619
619
|
.ft-chip--highlighted {
|
|
620
620
|
border: none;
|
|
621
621
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
622
|
-
background-color: ${
|
|
623
|
-
${i.setVariable(
|
|
624
|
-
color: ${
|
|
622
|
+
background-color: ${ue.backgroundColor};
|
|
623
|
+
${i.setVariable(z.color,ue.rippleColor)};
|
|
624
|
+
color: ${ue.color};
|
|
625
625
|
}
|
|
626
626
|
|
|
627
627
|
.ft-chip--clickable {
|
|
@@ -651,9 +651,9 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
651
651
|
}
|
|
652
652
|
|
|
653
653
|
.ft-chip--icon-button {
|
|
654
|
-
${i.setVariable(
|
|
655
|
-
${i.setVariable(
|
|
656
|
-
${i.setVariable(
|
|
654
|
+
${i.setVariable(ie.iconSize,fe.iconSize)};
|
|
655
|
+
${i.setVariable(ie.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
656
|
+
${i.setVariable(ie.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
657
657
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
658
658
|
}
|
|
659
659
|
|
|
@@ -661,8 +661,8 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
661
661
|
vertical-align: bottom;
|
|
662
662
|
display: block;
|
|
663
663
|
margin: 0 var(--ft-chip-internal-horizontal-padding);
|
|
664
|
-
${i.setVariable(
|
|
665
|
-
${i.setVariable(
|
|
664
|
+
${i.setVariable(ei.fontSize,"var(--ft-chip-internal-font-size)")};
|
|
665
|
+
${i.setVariable(ei.lineHeight,"var(--ft-chip-internal-content-height)")};
|
|
666
666
|
}
|
|
667
667
|
|
|
668
668
|
.ft-chip--safari-fix .ft-chip--label {
|
|
@@ -698,7 +698,7 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
698
698
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
699
699
|
order: -1;
|
|
700
700
|
}
|
|
701
|
-
`];var
|
|
701
|
+
`];var be=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 ye extends CustomEvent{constructor(){super("icon-click")}}class me 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`
|
|
702
702
|
<div class="${s.classMap(t)}"
|
|
703
703
|
aria-label="${this.getLabel()}"
|
|
704
704
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -721,7 +721,7 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
721
721
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
722
722
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
723
723
|
</div>
|
|
724
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
724
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new ye))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new ye))}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)}}me.elementDefinitions={"ft-ripple":A,"ft-typography":Mi,"ft-icon":Ri,"ft-button":pe},me.styles=xe,be([n.property({type:Boolean})],me.prototype,"highlighted",void 0),be([n.property({type:Boolean})],me.prototype,"removable",void 0),be([n.property({type:Boolean})],me.prototype,"disabled",void 0),be([n.property({type:Boolean})],me.prototype,"clickable",void 0),be([n.property({type:Boolean})],me.prototype,"iconClickable",void 0),be([n.property({type:Boolean})],me.prototype,"dense",void 0),be([n.property({type:Boolean})],me.prototype,"multiLine",void 0),be([n.property()],me.prototype,"label",void 0),be([n.property()],me.prototype,"iconLabel",void 0),be([n.property()],me.prototype,"icon",void 0),be([n.property()],me.prototype,"iconVariant",void 0),be([n.property({type:Boolean})],me.prototype,"trailingIcon",void 0),be([n.query("ft-typography slot")],me.prototype,"slottedContent",void 0),i.customElement("ft-chip")(me);var $e=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 we extends w{constructor(){super(),this.editorMode=!1,this.addStore(p)}render(){return this.editorMode?this.renderDummyFacet():null==this.facets||0===this.facets.length?e.nothing:e.html`
|
|
725
725
|
|
|
726
726
|
<div class="ft-search-selected-facets--container">
|
|
727
727
|
${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)))}))}
|
|
@@ -743,4 +743,4 @@ const vt=Symbol.for(""),xt=t=>{if((null==t?void 0:t.r)===vt)return null==t?void
|
|
|
743
743
|
${this.getLabelFromValue(n)}
|
|
744
744
|
</ft-chip>
|
|
745
745
|
</ft-tooltip>
|
|
746
|
-
`}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}}
|
|
746
|
+
`}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}}we.elementDefinitions={"ft-chip":me,"ft-tooltip":Xi},we.styles=l,$e([i.redux({store:"search"})],we.prototype,"facets",void 0),$e([i.redux({store:p.name})],we.prototype,"editorMode",void 0),i.customElement("ft-search-selected-facets")(we),t.FtSearchSelectedFacets=we,t.FtSearchSelectedFacetsCssVariables=a,t.styles=l}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litRepeat,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|