@fluid-topics/ft-search-result-metadata 1.0.43 → 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.
@@ -2,125 +2,125 @@
2
2
  `,a=e.css`
3
3
  `,l=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 h{static build(t){const{baseUrl:i,apiIntegrationIdentifier:e}=l.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?h.build(t):null!==(i=h.API)&&void 0!==i?i:h.API=h.build()}static await(t){return new Promise((i=>{let e=h.get(t);if(e)i(e);else{const o=l.subscribe((()=>{e=h.get(t),e&&(o(),i(e))}))}}))}}var p;const c=Symbol("clearAfterUnitTest");class f{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={},this.currentUiLocale="",this[p]=()=>{this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={}},this.currentUiLocale=l.getState().uiLocale,l.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=l.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)))))}}p=c,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new f((async(t,i)=>(await h.await()).getFluidTopicsMessageContext(t,i)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new f((async(t,i)=>(await h.await()).getCustomMessageContext(t,i))));const d=window.FluidTopicsI18nService,u=window.FluidTopicsCustomI18nService;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 g 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=()=>h.get(),this.cache=new i.CacheRegistry,this.cleanSessionDebouncer=new i.Debouncer}render(){return e.html`
4
4
  <slot></slot>
5
- `}updated(t){super.updated(t),t.has("baseUrl")&&l.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&l.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&l.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&l.actions.setNoCustom(this.noCustom),t.has("editorMode")&&l.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&l.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&l.actions.setSession(this.session),t.has("availableUiLocales")&&l.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>d.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()))))}}g.elementDefinitions={},g.styles=a,v([o.property()],g.prototype,"baseUrl",void 0),v([o.property()],g.prototype,"apiIntegrationIdentifier",void 0),v([o.property()],g.prototype,"uiLocale",void 0),v([i.jsonProperty([])],g.prototype,"availableUiLocales",void 0),v([o.property({type:Boolean})],g.prototype,"editorMode",void 0),v([o.property({type:Boolean})],g.prototype,"noCustom",void 0),v([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],g.prototype,"noCustomComponent",void 0),v([o.property({type:Boolean})],g.prototype,"withManualResources",void 0),v([i.jsonProperty([])],g.prototype,"messageContexts",void 0),v([i.jsonProperty(void 0)],g.prototype,"session",void 0),v([o.property({type:Object})],g.prototype,"apiProvider",void 0),i.customElement("ft-app-context")(g);var x=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 b extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const y=Symbol("registerInterval");class m 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[y]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[y]):this.dispatchEvent(new b)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=y,x([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}var $=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 w extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}}const k=Symbol("registerInterval");class z extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}connectedCallback(){super.connectedCallback(),this[k]=window.setInterval((()=>this.tryToRegisterToResultContext()),50)}tryToRegisterToResultContext(){null!=this.result?window.clearInterval(this[k]):this.dispatchEvent(new w)}disconnectedCallback(){super.disconnectedCallback(),this.result=void 0}}return i=k,$([o.property({attribute:!1})],e.prototype,"result",void 0),e}(m)){}const C=e.css`
6
- `;var S=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};const I=Symbol("i18nProperties"),O=Symbol("i18nUnsubs");function j(t){var i;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[i]=new Map}get i18nService(){return this.useCustomMessageContexts?u:d}i18n(t,i,...e){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,i,...e);const n=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var i;null===(i=this[I])||void 0===i||i.forEach(((i,e)=>{i.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(i))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var i;super.updated(t),null===(i=this[I])||void 0===i||i.forEach(((t,i)=>{null!=t.argsProvider&&(this[i]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[I]&&new Set([...this[I].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,i){t=t.toLowerCase(),this[O].has(t)||this[O].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=i?i:{})}addI18nContext(t,i){this.addI18nMessages(t.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[O].forEach((t=>t())),this[O].clear()}}return i=O,S([o.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class E extends(j(i.FtLitElement)){}class B extends(j(i.FtLitElementRedux)){}var N=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 U extends B{constructor(){super(),this.editorMode=!1,this.addStore(l)}render(){return this.key&&this.context?e.html`
5
+ `}updated(t){super.updated(t),t.has("baseUrl")&&l.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&l.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&l.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&l.actions.setNoCustom(this.noCustom),t.has("editorMode")&&l.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&l.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&l.actions.setSession(this.session),t.has("availableUiLocales")&&l.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>d.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()))))}}g.elementDefinitions={},g.styles=a,v([o.property()],g.prototype,"baseUrl",void 0),v([o.property()],g.prototype,"apiIntegrationIdentifier",void 0),v([o.property()],g.prototype,"uiLocale",void 0),v([i.jsonProperty([])],g.prototype,"availableUiLocales",void 0),v([o.property({type:Boolean})],g.prototype,"editorMode",void 0),v([o.property({type:Boolean})],g.prototype,"noCustom",void 0),v([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],g.prototype,"noCustomComponent",void 0),v([o.property({type:Boolean})],g.prototype,"withManualResources",void 0),v([i.jsonProperty([])],g.prototype,"messageContexts",void 0),v([i.jsonProperty(void 0)],g.prototype,"session",void 0),v([o.property({type:Object})],g.prototype,"apiProvider",void 0),i.customElement("ft-app-context")(g);class x extends Event{constructor(){super(x.eventName)}}x.eventName="search-context-clear-all-filters";var b=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 y extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const m=Symbol("registerInterval");class $ 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[m]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[m]):this.dispatchEvent(new y)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=m,b([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}var w=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 k extends Event{constructor(){super("register-ft-search-result-component",{bubbles:!0,composed:!0})}}const z=Symbol("registerInterval");class C extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}connectedCallback(){super.connectedCallback(),this[z]=window.setInterval((()=>this.tryToRegisterToResultContext()),50)}tryToRegisterToResultContext(){null!=this.result?window.clearInterval(this[z]):this.dispatchEvent(new k)}disconnectedCallback(){super.disconnectedCallback(),this.result=void 0}}return i=z,w([o.property({attribute:!1})],e.prototype,"result",void 0),e}($)){}const S=e.css`
6
+ `;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};const O=Symbol("i18nProperties"),j=Symbol("i18nUnsubs");function E(t){var i;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[i]=new Map}get i18nService(){return this.useCustomMessageContexts?u:d}i18n(t,i,...e){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,i,...e);const n=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var i;null===(i=this[O])||void 0===i||i.forEach(((i,e)=>{i.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(i))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var i;super.updated(t),null===(i=this[O])||void 0===i||i.forEach(((t,i)=>{null!=t.argsProvider&&(this[i]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[O]&&new Set([...this[O].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,i){t=t.toLowerCase(),this[j].has(t)||this[j].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=i?i:{})}addI18nContext(t,i){this.addI18nMessages(t.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[j].forEach((t=>t())),this[j].clear()}}return i=j,I([o.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class B extends(E(i.FtLitElement)){}class N extends(E(i.FtLitElementRedux)){}var 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 T extends N{constructor(){super(),this.editorMode=!1,this.addStore(l)}render(){return this.key&&this.context?e.html`
7
7
  <span class="ft-i18n">
8
8
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
9
9
  </span>
10
- `:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}U.elementDefinitions={},U.styles=C,N([i.redux()],U.prototype,"editorMode",void 0),N([o.property()],U.prototype,"context",void 0),N([o.property()],U.prototype,"key",void 0),N([i.jsonProperty([])],U.prototype,"args",void 0),N([o.property()],U.prototype,"defaultMessage",void 0);class T{static build(t){return new T(t)}static fromGwt(t){return new T(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,i)=>{const e=i;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,i)=>(...t)=>d.resolveMessage(this.name,i,...t)})}}i.customElement("ft-i18n")(U);const M=T.build("designedSearchResultMetadata");
10
+ `:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}T.elementDefinitions={},T.styles=S,U([i.redux()],T.prototype,"editorMode",void 0),U([o.property()],T.prototype,"context",void 0),U([o.property()],T.prototype,"key",void 0),U([i.jsonProperty([])],T.prototype,"args",void 0),U([o.property()],T.prototype,"defaultMessage",void 0);class M{static build(t){return new M(t)}static fromGwt(t){return new M(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,i)=>{const e=i;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,i)=>(...t)=>d.resolveMessage(this.name,i,...t)})}}i.customElement("ft-i18n")(T);const A=M.build("designedSearchResultMetadata");
11
11
  /**
12
12
  * @license
13
13
  * Copyright 2017 Google LLC
14
14
  * SPDX-License-Identifier: BSD-3-Clause
15
- */var A;const L=window,Z=L.trustedTypes,F=Z?Z.createPolicy("lit-html",{createHTML:t=>t}):void 0,R="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,P="?"+_,D=`<${P}>`,W=document,H=()=>W.createComment(""),K=t=>null===t||"object"!=typeof t&&"function"!=typeof t,G=Array.isArray,V="[ \t\n\f\r]",q=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,X=/-->/g,Y=/>/g,J=RegExp(`>|${V}(?:([^\\s"'>=/]+)(${V}*=${V}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Q=/'/g,tt=/"/g,it=/^(?:script|style|textarea|title)$/i,et=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),ot=Symbol.for("lit-noChange"),nt=Symbol.for("lit-nothing"),st=new WeakMap,rt=W.createTreeWalker(W,129,null,!1),at=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=q;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===q?"!--"===l[1]?r=X:void 0!==l[1]?r=Y:void 0!==l[2]?(it.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=J):void 0!==l[3]&&(r=J):r===J?">"===l[0]?(r=null!=n?n:q,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?J:'"'===l[3]?tt:Q):r===tt||r===Q?r=J:r===X||r===Y?r=q:(r=J,n=void 0);const c=r===J&&t[i+1].startsWith("/>")?" ":"";s+=r===q?e+D:h>=0?(o.push(a),e.slice(0,h)+R+e.slice(h)+_+c):e+_+(-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 lt{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]=at(t,i);if(this.el=lt.createElement(l,e),rt.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=rt.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(R)||i.startsWith(_)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+R).split(_),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?dt:"?"===i[1]?vt:"@"===i[1]?gt:ft})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(it.test(o.tagName)){const t=o.textContent.split(_),i=t.length-1;if(i>0){o.textContent=Z?Z.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],H()),rt.nextNode(),a.push({type:2,index:++n});o.append(t[i],H())}}}else if(8===o.nodeType)if(o.data===P)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(_,t+1));)a.push({type:7,index:n}),t+=_.length-1}n++}}static createElement(t,i){const e=W.createElement("template");return e.innerHTML=t,e}}function ht(t,i,e=t,o){var n,s,r,a;if(i===ot)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=K(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=ht(t,l._$AS(t,i.values),l,o)),i}class pt{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:W).importNode(e,!0);rt.currentNode=n;let s=rt.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new ct(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new xt(s,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=rt.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 ct{constructor(t,i,e,o){var n;this.type=2,this._$AH=nt,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=ht(this,t,i),K(t)?t===nt||null==t||""===t?(this._$AH!==nt&&this._$AR(),this._$AH=nt):t!==this._$AH&&t!==ot&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>G(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==nt&&K(this._$AH)?this._$AA.nextSibling.data=t:this.$(W.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=lt.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 pt(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=st.get(t.strings);return void 0===i&&st.set(t.strings,i=new lt(t)),i}T(t){G(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 ct(this.k(H()),this.k(H()),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 ft{constructor(t,i,e,o,n){this.type=1,this._$AH=nt,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=nt}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=ht(this,t,i,0),s=!K(t)||t!==this._$AH&&t!==ot,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=ht(this,o[e+r],i,r),a===ot&&(a=this._$AH[r]),s||(s=!K(a)||a!==this._$AH[r]),a===nt?t=nt:t!==nt&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===nt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class dt extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===nt?void 0:t}}const ut=Z?Z.emptyScript:"";class vt extends ft{constructor(){super(...arguments),this.type=4}j(t){t&&t!==nt?this.element.setAttribute(this.name,ut):this.element.removeAttribute(this.name)}}class gt extends ft{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=ht(this,t,i,0))&&void 0!==e?e:nt)===ot)return;const o=this._$AH,n=t===nt&&o!==nt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==nt&&(o===nt||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 xt{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){ht(this,t)}}const bt=L.litHtmlPolyfillSupport;null==bt||bt(lt,ct),(null!==(A=L.litHtmlVersions)&&void 0!==A?A:L.litHtmlVersions=[]).push("2.7.3");
15
+ */var L;const Z=window,F=Z.trustedTypes,R=F?F.createPolicy("lit-html",{createHTML:t=>t}):void 0,_="$lit$",P=`lit$${(Math.random()+"").slice(9)}$`,D="?"+P,W=`<${D}>`,H=document,K=()=>H.createComment(""),G=t=>null===t||"object"!=typeof t&&"function"!=typeof t,V=Array.isArray,q="[ \t\n\f\r]",X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Y=/-->/g,J=/>/g,Q=RegExp(`>|${q}(?:([^\\s"'>=/]+)(${q}*=${q}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),tt=/'/g,it=/"/g,et=/^(?:script|style|textarea|title)$/i,ot=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),nt=Symbol.for("lit-noChange"),st=Symbol.for("lit-nothing"),rt=new WeakMap,at=H.createTreeWalker(H,129,null,!1),lt=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=X;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===X?"!--"===l[1]?r=Y:void 0!==l[1]?r=J:void 0!==l[2]?(et.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=Q):void 0!==l[3]&&(r=Q):r===Q?">"===l[0]?(r=null!=n?n:X,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]?it:tt):r===it||r===tt?r=Q:r===Y||r===J?r=X:(r=Q,n=void 0);const c=r===Q&&t[i+1].startsWith("/>")?" ":"";s+=r===X?e+W:h>=0?(o.push(a),e.slice(0,h)+_+e.slice(h)+P+c):e+P+(-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 ht{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]=lt(t,i);if(this.el=ht.createElement(l,e),at.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=at.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(_)||i.startsWith(P)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+_).split(P),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?ut:"?"===i[1]?gt:"@"===i[1]?xt:dt})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(et.test(o.tagName)){const t=o.textContent.split(P),i=t.length-1;if(i>0){o.textContent=F?F.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],K()),at.nextNode(),a.push({type:2,index:++n});o.append(t[i],K())}}}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(P,t+1));)a.push({type:7,index:n}),t+=P.length-1}n++}}static createElement(t,i){const e=H.createElement("template");return e.innerHTML=t,e}}function pt(t,i,e=t,o){var n,s,r,a;if(i===nt)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=pt(t,l._$AS(t,i.values),l,o)),i}class ct{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:H).importNode(e,!0);at.currentNode=n;let s=at.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new ft(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new bt(s,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=at.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 ft{constructor(t,i,e,o){var n;this.type=2,this._$AH=st,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=pt(this,t,i),G(t)?t===st||null==t||""===t?(this._$AH!==st&&this._$AR(),this._$AH=st):t!==this._$AH&&t!==nt&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>V(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==st&&G(this._$AH)?this._$AA.nextSibling.data=t:this.$(H.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=ht.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 ct(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=rt.get(t.strings);return void 0===i&&rt.set(t.strings,i=new ht(t)),i}T(t){V(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 ft(this.k(K()),this.k(K()),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 dt{constructor(t,i,e,o,n){this.type=1,this._$AH=st,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=st}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=pt(this,t,i,0),s=!G(t)||t!==this._$AH&&t!==nt,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=pt(this,o[e+r],i,r),a===nt&&(a=this._$AH[r]),s||(s=!G(a)||a!==this._$AH[r]),a===st?t=st:t!==st&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===st?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ut extends dt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===st?void 0:t}}const vt=F?F.emptyScript:"";class gt extends dt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==st?this.element.setAttribute(this.name,vt):this.element.removeAttribute(this.name)}}class xt extends dt{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=pt(this,t,i,0))&&void 0!==e?e:st)===nt)return;const o=this._$AH,n=t===st&&o!==st||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==st&&(o===st||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 bt{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){pt(this,t)}}const yt=Z.litHtmlPolyfillSupport;null==yt||yt(ht,ft),(null!==(L=Z.litHtmlVersions)&&void 0!==L?L:Z.litHtmlVersions=[]).push("2.7.3");
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2020 Google LLC
19
19
  * SPDX-License-Identifier: BSD-3-Clause
20
20
  */
21
- const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void 0:t._$litStatic$},$t=t=>({_$litStatic$:t,r:yt}),wt=new Map,kt=(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=mt(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=wt.get(t))&&(r.raw=r,wt.set(t,i=r)),e=a}return t(i,...e)})(et);var zt;!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"}(zt||(zt={}));const Ct=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),St=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),It={fontFamily:St,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")},Ot=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",Ct),jt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",It.fontSize,"20px"),Et=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",It.fontWeight,"normal"),Bt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",It.letterSpacing,"0.15px"),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",It.lineHeight,"1.2"),Ut=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",It.textTransform,"inherit"),Tt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",Ct),Mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",It.fontSize,"14px"),At=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",It.fontWeight,"normal"),Lt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",It.letterSpacing,"0.105px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",It.lineHeight,"1.7"),Ft=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",It.textTransform,"inherit"),Rt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",St),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",It.fontSize,"16px"),Pt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",It.fontWeight,"600"),Dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",It.letterSpacing,"0.144px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",It.lineHeight,"1.5"),Ht=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",It.textTransform,"inherit"),Kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",St),Gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",It.fontSize,"14px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",It.fontWeight,"normal"),qt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",It.letterSpacing,"0.098px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",It.lineHeight,"1.7"),Yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",It.textTransform,"inherit"),Jt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",St),Qt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",It.fontSize,"16px"),ti=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",It.fontWeight,"normal"),ii=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",It.letterSpacing,"0.496px"),ei=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",It.lineHeight,"1.5"),oi=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",It.textTransform,"inherit"),ni={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",St),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",It.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",It.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",It.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",It.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",It.textTransform,"inherit")},si=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",St),ri=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",It.fontSize,"12px"),ai=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",It.fontWeight,"normal"),li=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",It.letterSpacing,"0.396px"),hi=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",It.lineHeight,"1.33"),pi=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",It.textTransform,"inherit"),ci=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",St),fi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",It.fontSize,"10px"),di=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",It.fontWeight,"normal"),ui=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",It.letterSpacing,"0.33px"),vi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",It.lineHeight,"1.6"),gi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",It.textTransform,"inherit"),xi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",St),bi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",It.fontSize,"10px"),yi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",It.fontWeight,"normal"),mi=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",It.letterSpacing,"1.5px"),$i=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",It.lineHeight,"1.6"),wi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",It.textTransform,"uppercase"),ki={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",St),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",It.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",It.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",It.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",It.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",It.textTransform,"uppercase")},zi=e.css`
21
+ const mt=Symbol.for(""),$t=t=>{if((null==t?void 0:t.r)===mt)return null==t?void 0:t._$litStatic$},wt=t=>({_$litStatic$:t,r:mt}),kt=new Map,zt=(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=$t(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=kt.get(t))&&(r.raw=r,kt.set(t,i=r)),e=a}return t(i,...e)})(ot);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 St=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),It=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),Ot={fontFamily:It,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")},jt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",St),Et=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",Ot.fontSize,"20px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",Ot.fontWeight,"normal"),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",Ot.letterSpacing,"0.15px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",Ot.lineHeight,"1.2"),Tt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",Ot.textTransform,"inherit"),Mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",St),At=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",Ot.fontSize,"14px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",Ot.fontWeight,"normal"),Zt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",Ot.letterSpacing,"0.105px"),Ft=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",Ot.lineHeight,"1.7"),Rt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",Ot.textTransform,"inherit"),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",It),Pt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",Ot.fontSize,"16px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",Ot.fontWeight,"600"),Wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",Ot.letterSpacing,"0.144px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",Ot.lineHeight,"1.5"),Kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",Ot.textTransform,"inherit"),Gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",It),Vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",Ot.fontSize,"14px"),qt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",Ot.fontWeight,"normal"),Xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",Ot.letterSpacing,"0.098px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",Ot.lineHeight,"1.7"),Jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",Ot.textTransform,"inherit"),Qt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",It),ti=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",Ot.fontSize,"16px"),ii=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",Ot.fontWeight,"normal"),ei=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",Ot.letterSpacing,"0.496px"),oi=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",Ot.lineHeight,"1.5"),ni=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",Ot.textTransform,"inherit"),si={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",It),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",Ot.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",Ot.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",Ot.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",Ot.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",Ot.textTransform,"inherit")},ri=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",It),ai=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",Ot.fontSize,"12px"),li=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",Ot.fontWeight,"normal"),hi=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",Ot.letterSpacing,"0.396px"),pi=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",Ot.lineHeight,"1.33"),ci=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",Ot.textTransform,"inherit"),fi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",It),di=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",Ot.fontSize,"10px"),ui=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",Ot.fontWeight,"normal"),vi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",Ot.letterSpacing,"0.33px"),gi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",Ot.lineHeight,"1.6"),xi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",Ot.textTransform,"inherit"),bi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",It),yi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",Ot.fontSize,"10px"),mi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",Ot.fontWeight,"normal"),$i=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",Ot.letterSpacing,"1.5px"),wi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",Ot.lineHeight,"1.6"),ki=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",Ot.textTransform,"uppercase"),zi={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",It),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",Ot.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",Ot.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",Ot.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",Ot.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",Ot.textTransform,"uppercase")},Ci=e.css`
22
22
  .ft-typography--title {
23
- font-family: ${Ot};
24
- font-size: ${jt};
25
- font-weight: ${Et};
26
- letter-spacing: ${Bt};
27
- line-height: ${Nt};
28
- text-transform: ${Ut};
29
- }
30
- `,Ci=e.css`
31
- .ft-typography--title-dense {
32
- font-family: ${Tt};
33
- font-size: ${Mt};
34
- font-weight: ${At};
35
- letter-spacing: ${Lt};
36
- line-height: ${Zt};
37
- text-transform: ${Ft};
23
+ font-family: ${jt};
24
+ font-size: ${Et};
25
+ font-weight: ${Bt};
26
+ letter-spacing: ${Nt};
27
+ line-height: ${Ut};
28
+ text-transform: ${Tt};
38
29
  }
39
30
  `,Si=e.css`
40
- .ft-typography--subtitle1 {
41
- font-family: ${Rt};
42
- font-size: ${_t};
43
- font-weight: ${Pt};
44
- letter-spacing: ${Dt};
45
- line-height: ${Wt};
46
- text-transform: ${Ht};
31
+ .ft-typography--title-dense {
32
+ font-family: ${Mt};
33
+ font-size: ${At};
34
+ font-weight: ${Lt};
35
+ letter-spacing: ${Zt};
36
+ line-height: ${Ft};
37
+ text-transform: ${Rt};
47
38
  }
48
39
  `,Ii=e.css`
49
- .ft-typography--subtitle2 {
50
- font-family: ${Kt};
51
- font-size: ${Gt};
52
- font-weight: ${Vt};
53
- letter-spacing: ${qt};
54
- line-height: ${Xt};
55
- text-transform: ${Yt};
40
+ .ft-typography--subtitle1 {
41
+ font-family: ${_t};
42
+ font-size: ${Pt};
43
+ font-weight: ${Dt};
44
+ letter-spacing: ${Wt};
45
+ line-height: ${Ht};
46
+ text-transform: ${Kt};
56
47
  }
57
-
58
48
  `,Oi=e.css`
59
- .ft-typography--body1 {
60
- font-family: ${Jt};
61
- font-size: ${Qt};
62
- font-weight: ${ti};
63
- letter-spacing: ${ii};
64
- line-height: ${ei};
65
- text-transform: ${oi};
49
+ .ft-typography--subtitle2 {
50
+ font-family: ${Gt};
51
+ font-size: ${Vt};
52
+ font-weight: ${qt};
53
+ letter-spacing: ${Xt};
54
+ line-height: ${Yt};
55
+ text-transform: ${Jt};
66
56
  }
57
+
67
58
  `,ji=e.css`
68
- .ft-typography--body2 {
69
- font-family: ${ni.fontFamily};
70
- font-size: ${ni.fontSize};
71
- font-weight: ${ni.fontWeight};
72
- letter-spacing: ${ni.letterSpacing};
73
- line-height: ${ni.lineHeight};
74
- text-transform: ${ni.textTransform};
59
+ .ft-typography--body1 {
60
+ font-family: ${Qt};
61
+ font-size: ${ti};
62
+ font-weight: ${ii};
63
+ letter-spacing: ${ei};
64
+ line-height: ${oi};
65
+ text-transform: ${ni};
75
66
  }
76
67
  `,Ei=e.css`
77
- .ft-typography--caption {
78
- font-family: ${si};
79
- font-size: ${ri};
80
- font-weight: ${ai};
81
- letter-spacing: ${li};
82
- line-height: ${hi};
83
- text-transform: ${pi};
68
+ .ft-typography--body2 {
69
+ font-family: ${si.fontFamily};
70
+ font-size: ${si.fontSize};
71
+ font-weight: ${si.fontWeight};
72
+ letter-spacing: ${si.letterSpacing};
73
+ line-height: ${si.lineHeight};
74
+ text-transform: ${si.textTransform};
84
75
  }
85
76
  `,Bi=e.css`
86
- .ft-typography--breadcrumb {
87
- font-family: ${ci};
88
- font-size: ${fi};
89
- font-weight: ${di};
90
- letter-spacing: ${ui};
91
- line-height: ${vi};
92
- text-transform: ${gi};
77
+ .ft-typography--caption {
78
+ font-family: ${ri};
79
+ font-size: ${ai};
80
+ font-weight: ${li};
81
+ letter-spacing: ${hi};
82
+ line-height: ${pi};
83
+ text-transform: ${ci};
93
84
  }
94
85
  `,Ni=e.css`
95
- .ft-typography--overline {
96
- font-family: ${xi};
97
- font-size: ${bi};
98
- font-weight: ${yi};
99
- letter-spacing: ${mi};
100
- line-height: ${$i};
101
- text-transform: ${wi};
86
+ .ft-typography--breadcrumb {
87
+ font-family: ${fi};
88
+ font-size: ${di};
89
+ font-weight: ${ui};
90
+ letter-spacing: ${vi};
91
+ line-height: ${gi};
92
+ text-transform: ${xi};
102
93
  }
103
94
  `,Ui=e.css`
104
- .ft-typography--button {
105
- font-family: ${ki.fontFamily};
106
- font-size: ${ki.fontSize};
107
- font-weight: ${ki.fontWeight};
108
- letter-spacing: ${ki.letterSpacing};
109
- line-height: ${ki.lineHeight};
110
- text-transform: ${ki.textTransform};
95
+ .ft-typography--overline {
96
+ font-family: ${bi};
97
+ font-size: ${yi};
98
+ font-weight: ${mi};
99
+ letter-spacing: ${$i};
100
+ line-height: ${wi};
101
+ text-transform: ${ki};
111
102
  }
112
103
  `,Ti=e.css`
104
+ .ft-typography--button {
105
+ font-family: ${zi.fontFamily};
106
+ font-size: ${zi.fontSize};
107
+ font-weight: ${zi.fontWeight};
108
+ letter-spacing: ${zi.letterSpacing};
109
+ line-height: ${zi.lineHeight};
110
+ text-transform: ${zi.textTransform};
111
+ }
112
+ `,Mi=e.css`
113
113
  .ft-typography {
114
114
  vertical-align: inherit;
115
115
  }
116
- `;var Mi=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 Ai extends i.FtLitElement{constructor(){super(...arguments),this.variant=zt.body1}render(){return this.element?kt`
117
- <${$t(this.element)}
116
+ `;var Ai=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 Li extends i.FtLitElement{constructor(){super(...arguments),this.variant=Ct.body1}render(){return this.element?zt`
117
+ <${wt(this.element)}
118
118
  class="ft-typography ft-typography--${this.variant}">
119
119
  <slot></slot>
120
- </${$t(this.element)}>
121
- `:kt`
120
+ </${wt(this.element)}>
121
+ `:zt`
122
122
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
123
- `}}Ai.styles=[zi,Ci,Si,Ii,Oi,ji,Ei,Bi,Ni,Ui,Ti],Mi([o.property()],Ai.prototype,"element",void 0),Mi([o.property()],Ai.prototype,"variant",void 0),i.customElement("ft-typography")(Ai);const Li=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Zi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Fi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Ri=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),_i=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Pi=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Di=e.css`
123
+ `}}Li.styles=[Ci,Si,Ii,Oi,ji,Ei,Bi,Ni,Ui,Ti,Mi],Ai([o.property()],Li.prototype,"element",void 0),Ai([o.property()],Li.prototype,"variant",void 0),i.customElement("ft-typography")(Li);const Zi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Fi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ri=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),_i=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Pi=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Di=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Wi=e.css`
124
124
  .ft-tooltip--container {
125
125
  display: block;
126
126
  position: relative;
@@ -136,23 +136,23 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
136
136
  box-sizing: border-box;
137
137
  overflow: hidden;
138
138
  width: max-content;
139
- max-width: ${Pi};
139
+ max-width: ${Di};
140
140
  text-align: center;
141
- padding: ${Li};
142
- z-index: ${Ri};
141
+ padding: ${Zi};
142
+ z-index: ${_i};
143
143
  }
144
144
 
145
145
  .ft-tooltip--content {
146
146
  padding: 4px 8px;
147
- border-radius: ${_i};
148
- background-color: ${Fi};
149
- color: ${Zi};
147
+ border-radius: ${Pi};
148
+ background-color: ${Ri};
149
+ color: ${Fi};
150
150
  top: -500px;
151
151
  left: -500px;
152
152
  position: relative;
153
153
  word-break: break-word;
154
154
  }
155
- `;var Wi=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.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`
155
+ `;var Hi=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 Ki 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`
156
156
  <div part="container"
157
157
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
158
158
  @mouseenter=${this.onHover}
@@ -170,7 +170,7 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
170
170
  </div>
171
171
  </div>
172
172
  </div>
173
- `}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, ${Pi})`}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())}}Hi.elementDefinitions={"ft-typography":Ai},Hi.styles=Di,Wi([o.property()],Hi.prototype,"text",void 0),Wi([o.property({type:Boolean})],Hi.prototype,"manual",void 0),Wi([o.property({type:Boolean})],Hi.prototype,"inline",void 0),Wi([o.property({type:Number})],Hi.prototype,"delay",void 0),Wi([o.property()],Hi.prototype,"position",void 0),Wi([o.queryAssignedNodes("",!0)],Hi.prototype,"slotNodes",void 0),Wi([o.query(".ft-tooltip--container")],Hi.prototype,"container",void 0),Wi([o.query("slot")],Hi.prototype,"target",void 0),Wi([o.query(".ft-tooltip")],Hi.prototype,"tooltip",void 0),Wi([o.query(".ft-tooltip--content")],Hi.prototype,"tooltipContent",void 0),Wi([o.state()],Hi.prototype,"visible",void 0),i.customElement("ft-tooltip")(Hi);const Ki=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),Gi={color:Ki,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",Ki),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")},Vi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),qi=Vi,Xi=i.FtCssVariableFactory.extend("--ft-ripple-background-color",Vi),Yi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),Ji=Yi,Qi=i.FtCssVariableFactory.extend("--ft-ripple-background-color",Yi),te=e.css`
173
+ `}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, ${Di})`}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())}}Ki.elementDefinitions={"ft-typography":Li},Ki.styles=Wi,Hi([o.property()],Ki.prototype,"text",void 0),Hi([o.property({type:Boolean})],Ki.prototype,"manual",void 0),Hi([o.property({type:Boolean})],Ki.prototype,"inline",void 0),Hi([o.property({type:Number})],Ki.prototype,"delay",void 0),Hi([o.property()],Ki.prototype,"position",void 0),Hi([o.queryAssignedNodes("",!0)],Ki.prototype,"slotNodes",void 0),Hi([o.query(".ft-tooltip--container")],Ki.prototype,"container",void 0),Hi([o.query("slot")],Ki.prototype,"target",void 0),Hi([o.query(".ft-tooltip")],Ki.prototype,"tooltip",void 0),Hi([o.query(".ft-tooltip--content")],Ki.prototype,"tooltipContent",void 0),Hi([o.state()],Ki.prototype,"visible",void 0),i.customElement("ft-tooltip")(Ki);const Gi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),Vi={color:Gi,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",Gi),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")},qi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),Xi=qi,Yi=i.FtCssVariableFactory.extend("--ft-ripple-background-color",qi),Ji=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),Qi=Ji,te=i.FtCssVariableFactory.extend("--ft-ripple-background-color",Ji),ie=e.css`
174
174
  :host {
175
175
  display: contents;
176
176
  }
@@ -183,7 +183,7 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
183
183
 
184
184
  .ft-ripple:not(.ft-ripple--unbounded) {
185
185
  overflow: hidden;
186
- border-radius: ${Gi.borderRadius};
186
+ border-radius: ${Vi.borderRadius};
187
187
  }
188
188
 
189
189
  .ft-ripple .ft-ripple--background,
@@ -193,27 +193,27 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
193
193
  }
194
194
 
195
195
  .ft-ripple .ft-ripple--background {
196
- background-color: ${Gi.backgroundColor};
196
+ background-color: ${Vi.backgroundColor};
197
197
  }
198
198
 
199
199
  .ft-ripple .ft-ripple--effect {
200
- background-color: ${Gi.color};
200
+ background-color: ${Vi.color};
201
201
  }
202
202
 
203
203
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
204
- background-color: ${Qi};
204
+ background-color: ${te};
205
205
  }
206
206
 
207
207
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
208
- background-color: ${Ji};
208
+ background-color: ${Qi};
209
209
  }
210
210
 
211
211
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
212
- background-color: ${Xi};
212
+ background-color: ${Yi};
213
213
  }
214
214
 
215
215
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
216
- background-color: ${qi};
216
+ background-color: ${Xi};
217
217
  }
218
218
 
219
219
  .ft-ripple .ft-ripple--background {
@@ -245,22 +245,22 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
245
245
  }
246
246
 
247
247
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
248
- opacity: ${Gi.opacityContentOnSurfaceHover};
248
+ opacity: ${Vi.opacityContentOnSurfaceHover};
249
249
  }
250
250
 
251
251
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
252
- opacity: ${Gi.opacityContentOnSurfaceSelected};
252
+ opacity: ${Vi.opacityContentOnSurfaceSelected};
253
253
  }
254
254
 
255
255
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
256
- opacity: ${Gi.opacityContentOnSurfaceFocused};
256
+ opacity: ${Vi.opacityContentOnSurfaceFocused};
257
257
  }
258
258
 
259
259
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
260
- opacity: ${Gi.opacityContentOnSurfacePressed};
260
+ opacity: ${Vi.opacityContentOnSurfacePressed};
261
261
  transform: translate(-50%, -50%) scale(1);
262
262
  }
263
- `;var ie,ee,oe=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 ne 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`
263
+ `;var ee,oe,ne=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 se 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`
264
264
  <style>
265
265
  .ft-ripple .ft-ripple--effect,
266
266
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -277,7 +277,7 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
277
277
  <div class="ft-ripple--background"></div>
278
278
  <div class="ft-ripple--effect"></div>
279
279
  </div>
280
- `}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()}}ne.elementDefinitions={},ne.styles=te,oe([o.property({type:Boolean})],ne.prototype,"primary",void 0),oe([o.property({type:Boolean})],ne.prototype,"secondary",void 0),oe([o.property({type:Boolean})],ne.prototype,"unbounded",void 0),oe([o.property({type:Boolean})],ne.prototype,"activated",void 0),oe([o.property({type:Boolean})],ne.prototype,"selected",void 0),oe([o.property({type:Boolean})],ne.prototype,"disabled",void 0),oe([o.state()],ne.prototype,"hovered",void 0),oe([o.state()],ne.prototype,"focused",void 0),oe([o.state()],ne.prototype,"pressed",void 0),oe([o.state()],ne.prototype,"rippling",void 0),oe([o.state()],ne.prototype,"rippleSize",void 0),oe([o.state()],ne.prototype,"originX",void 0),oe([o.state()],ne.prototype,"originY",void 0),oe([o.query(".ft-ripple")],ne.prototype,"ripple",void 0),oe([o.query(".ft-ripple--effect")],ne.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(ne),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(ie||(ie={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(ee||(ee={})),new Map([...["abw"].map((t=>[t,ee.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,ee.AUDIO])),...["avi"].map((t=>[t,ee.AVI])),...["chm","xhs"].map((t=>[t,ee.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,ee.CODE])),...["csv"].map((t=>[t,ee.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ee.DITA])),...["epub"].map((t=>[t,ee.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ee.EXCEL])),...["flac"].map((t=>[t,ee.FLAC])),...["gif"].map((t=>[t,ee.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ee.GZIP])),...["html","htm","xhtml"].map((t=>[t,ee.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,ee.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ee.JPEG])),...["json"].map((t=>[t,ee.JSON])),...["m4a","m4p"].map((t=>[t,ee.M4A])),...["mov","qt"].map((t=>[t,ee.MOV])),...["mp3"].map((t=>[t,ee.MP3])),...["mp4","m4v"].map((t=>[t,ee.MP4])),...["ogg","oga"].map((t=>[t,ee.OGG])),...["pdf","ps"].map((t=>[t,ee.PDF])),...["png"].map((t=>[t,ee.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ee.POWERPOINT])),...["rar"].map((t=>[t,ee.RAR])),...["stp"].map((t=>[t,ee.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ee.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,ee.VIDEO])),...["wav"].map((t=>[t,ee.WAV])),...["wma"].map((t=>[t,ee.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ee.WORD])),...["xml","xsl","rdf"].map((t=>[t,ee.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ee.YAML])),...["zip"].map((t=>[t,ee.ZIP]))]);const se={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")},re=e.css`
280
+ `}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()}}se.elementDefinitions={},se.styles=ie,ne([o.property({type:Boolean})],se.prototype,"primary",void 0),ne([o.property({type:Boolean})],se.prototype,"secondary",void 0),ne([o.property({type:Boolean})],se.prototype,"unbounded",void 0),ne([o.property({type:Boolean})],se.prototype,"activated",void 0),ne([o.property({type:Boolean})],se.prototype,"selected",void 0),ne([o.property({type:Boolean})],se.prototype,"disabled",void 0),ne([o.state()],se.prototype,"hovered",void 0),ne([o.state()],se.prototype,"focused",void 0),ne([o.state()],se.prototype,"pressed",void 0),ne([o.state()],se.prototype,"rippling",void 0),ne([o.state()],se.prototype,"rippleSize",void 0),ne([o.state()],se.prototype,"originX",void 0),ne([o.state()],se.prototype,"originY",void 0),ne([o.query(".ft-ripple")],se.prototype,"ripple",void 0),ne([o.query(".ft-ripple--effect")],se.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(se),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(ee||(ee={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(oe||(oe={})),new Map([...["abw"].map((t=>[t,oe.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,oe.AUDIO])),...["avi"].map((t=>[t,oe.AVI])),...["chm","xhs"].map((t=>[t,oe.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,oe.CODE])),...["csv"].map((t=>[t,oe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,oe.DITA])),...["epub"].map((t=>[t,oe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,oe.EXCEL])),...["flac"].map((t=>[t,oe.FLAC])),...["gif"].map((t=>[t,oe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,oe.GZIP])),...["html","htm","xhtml"].map((t=>[t,oe.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,oe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,oe.JPEG])),...["json"].map((t=>[t,oe.JSON])),...["m4a","m4p"].map((t=>[t,oe.M4A])),...["mov","qt"].map((t=>[t,oe.MOV])),...["mp3"].map((t=>[t,oe.MP3])),...["mp4","m4v"].map((t=>[t,oe.MP4])),...["ogg","oga"].map((t=>[t,oe.OGG])),...["pdf","ps"].map((t=>[t,oe.PDF])),...["png"].map((t=>[t,oe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,oe.POWERPOINT])),...["rar"].map((t=>[t,oe.RAR])),...["stp"].map((t=>[t,oe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,oe.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,oe.VIDEO])),...["wav"].map((t=>[t,oe.WAV])),...["wma"].map((t=>[t,oe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,oe.WORD])),...["xml","xsl","rdf"].map((t=>[t,oe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,oe.YAML])),...["zip"].map((t=>[t,oe.ZIP]))]);const re={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")},ae=e.css`
281
281
  :host, i.ft-icon {
282
282
  display: inline-flex;
283
283
  align-items: center;
@@ -286,14 +286,14 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
286
286
  }
287
287
 
288
288
  :host {
289
- width: ${se.size};
290
- height: ${se.size};
289
+ width: ${re.size};
290
+ height: ${re.size};
291
291
  }
292
292
 
293
293
  i.ft-icon {
294
294
  width: 100%;
295
295
  height: 100%;
296
- font-size: ${se.size};
296
+ font-size: ${re.size};
297
297
  line-height: 1;
298
298
  font-weight: normal;
299
299
  text-transform: none;
@@ -304,33 +304,33 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
304
304
  text-rendering: auto;
305
305
  -webkit-font-smoothing: antialiased;
306
306
  -moz-osx-font-smoothing: grayscale;
307
- vertical-align: ${se.verticalAlign};
307
+ vertical-align: ${re.verticalAlign};
308
308
  }
309
309
 
310
310
  i.ft-icon.ft-icon--fluid-topics {
311
- font-family: ${se.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
311
+ font-family: ${re.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
312
312
 
313
313
  /* Ugly fix because font is broken */
314
- font-size: calc(0.75 * ${se.size});
315
- line-height: ${se.size};
314
+ font-size: calc(0.75 * ${re.size});
315
+ line-height: ${re.size};
316
316
  position: relative;
317
317
  top: -4%;
318
318
  justify-content: center;
319
319
  }
320
320
 
321
321
  .ft-icon--file-format {
322
- font-family: ${se.fileFormatFontFamily}, ft-mime, sans-serif;
322
+ font-family: ${re.fileFormatFontFamily}, ft-mime, sans-serif;
323
323
  }
324
324
 
325
325
  .ft-icon--material {
326
- font-family: ${se.materialFontFamily}, "Material Icons", sans-serif;
326
+ font-family: ${re.materialFontFamily}, "Material Icons", sans-serif;
327
327
  }
328
- `;var ae;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ae||(ae={}));var le=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 he extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(ae).includes(this.variant)?this.variant:ae.fluid_topics,i=t!==ae.material||!!this.value;return e.html`
328
+ `;var le;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(le||(le={}));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.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(le).includes(this.variant)?this.variant:le.fluid_topics,i=t!==le.material||!!this.value;return e.html`
329
329
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
330
330
  ${s.unsafeHTML(this.resolvedIcon)}
331
331
  <slot ?hidden=${i}></slot>
332
332
  </i>
333
- `}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 ae.file_format:this.resolvedIcon=null!==(t=ee[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ae.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=ie[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}he.elementDefinitions={},he.styles=re,le([o.property()],he.prototype,"variant",void 0),le([o.property()],he.prototype,"value",void 0),le([o.state()],he.prototype,"resolvedIcon",void 0),le([o.query("slot")],he.prototype,"slottedContent",void 0),i.customElement("ft-icon")(he);const pe={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},ce=e.css`
333
+ `}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 le.file_format:this.resolvedIcon=null!==(t=oe[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case le.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=ee[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}pe.elementDefinitions={},pe.styles=ae,he([o.property()],pe.prototype,"variant",void 0),he([o.property()],pe.prototype,"value",void 0),he([o.state()],pe.prototype,"resolvedIcon",void 0),he([o.query("slot")],pe.prototype,"slottedContent",void 0),i.customElement("ft-icon")(pe);const ce={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},fe=e.css`
334
334
  :host {
335
335
  line-height: 0;
336
336
  }
@@ -339,8 +339,8 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
339
339
  display: inline-block;
340
340
  position: relative;
341
341
 
342
- width: ${pe.size};
343
- height: ${pe.size};
342
+ width: ${ce.size};
343
+ height: ${ce.size};
344
344
  }
345
345
 
346
346
  .ft-loader div {
@@ -349,7 +349,7 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
349
349
  width: 25%;
350
350
  height: 25%;
351
351
  border-radius: 50%;
352
- background: ${pe.color};
352
+ background: ${ce.color};
353
353
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
354
354
  }
355
355
 
@@ -396,17 +396,17 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
396
396
  transform: translate(0, 0);
397
397
  }
398
398
  100% {
399
- transform: translate(calc(0.35 * ${pe.size}), 0);
399
+ transform: translate(calc(0.35 * ${ce.size}), 0);
400
400
  }
401
401
  }
402
- `;class fe extends i.FtLitElement{render(){return e.html`
402
+ `;class de extends i.FtLitElement{render(){return e.html`
403
403
  <div class="ft-loader">
404
404
  <div></div>
405
405
  <div></div>
406
406
  <div></div>
407
407
  <div></div>
408
408
  </div>
409
- `}}fe.styles=ce,i.customElement("ft-loader")(fe);const de=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),ue={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:de,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",ki.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",de),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")},ve=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),ge={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:ve,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",ve)},xe=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),be=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),ye=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),me=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),$e=[e.css`
409
+ `}}de.styles=fe,i.customElement("ft-loader")(de);const ue=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),ve={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:ue,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",zi.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",ue),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")},ge=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),xe={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:ge,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",ge)},be=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),ye=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),me=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),$e=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),we=[e.css`
410
410
  :host {
411
411
  display: inline-block;
412
412
  max-width: 100%;
@@ -417,7 +417,7 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
417
417
  box-shadow: 0px 0px 0px transparent;
418
418
  border: 0px solid transparent;
419
419
  text-shadow: 0px 0px 0px transparent;
420
- font-size: ${ue.fontSize};
420
+ font-size: ${ve.fontSize};
421
421
  }
422
422
 
423
423
  button:hover {
@@ -446,31 +446,31 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
446
446
  border: none;
447
447
  pointer-events: auto;
448
448
 
449
- --ft-button-internal-line-height: max(calc(${ue.fontSize} + 2px), ${ue.iconSize});
450
- --ft-button-internal-color: ${ue.color};
451
- ${i.setVariable(se.size,ue.iconSize)};
452
- ${i.setVariable(Gi.color,ue.rippleColor)};
449
+ --ft-button-internal-line-height: max(calc(${ve.fontSize} + 2px), ${ve.iconSize});
450
+ --ft-button-internal-color: ${ve.color};
451
+ ${i.setVariable(re.size,ve.iconSize)};
452
+ ${i.setVariable(Vi.color,ve.rippleColor)};
453
453
 
454
- border-radius: ${ue.borderRadius};
455
- padding: ${ue.verticalPadding} ${ue.horizontalPadding};
456
- background-color: ${ue.backgroundColor};
454
+ border-radius: ${ve.borderRadius};
455
+ padding: ${ve.verticalPadding} ${ve.horizontalPadding};
456
+ background-color: ${ve.backgroundColor};
457
457
  color: var(--ft-button-internal-color);
458
458
  -webkit-mask-image: radial-gradient(white, black);
459
459
  }
460
460
 
461
461
  .ft-button.ft-button--outlined {
462
462
  border: 1px solid var(--ft-button-internal-color);
463
- padding: calc(${ue.verticalPadding} - 1px) calc(${ue.horizontalPadding} - 1px);
463
+ padding: calc(${ve.verticalPadding} - 1px) calc(${ve.horizontalPadding} - 1px);
464
464
  }
465
465
 
466
466
  .ft-button.ft-button--dense {
467
- padding: ${be} ${ye};
468
- border-radius: ${xe};
469
- gap: ${me};
467
+ padding: ${ye} ${me};
468
+ border-radius: ${be};
469
+ gap: ${$e};
470
470
  }
471
471
 
472
472
  .ft-button.ft-button--dense.ft-button--outlined {
473
- padding: calc(${be} - 1px) calc(${ye} - 1px);
473
+ padding: calc(${ye} - 1px) calc(${me} - 1px);
474
474
  }
475
475
 
476
476
  .ft-button:not([disabled]):hover {
@@ -478,22 +478,22 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
478
478
  }
479
479
 
480
480
  .ft-button--round {
481
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ue.verticalPadding});
481
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ve.verticalPadding});
482
482
  }
483
483
 
484
484
  .ft-button--round.ft-button--dense {
485
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${be});
485
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ye});
486
486
  }
487
487
 
488
488
  .ft-button[disabled] {
489
489
  filter: grayscale(1);
490
- opacity: ${ue.opacityDisabled};
490
+ opacity: ${ve.opacityDisabled};
491
491
  }
492
492
 
493
493
  .ft-button.ft-button--primary {
494
- background-color: ${ge.backgroundColor};
495
- --ft-button-internal-color: ${ge.color};
496
- ${i.setVariable(Gi.color,ge.rippleColor)};
494
+ background-color: ${xe.backgroundColor};
495
+ --ft-button-internal-color: ${xe.color};
496
+ ${i.setVariable(Vi.color,xe.rippleColor)};
497
497
  }
498
498
 
499
499
  .ft-button:focus {
@@ -506,13 +506,13 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
506
506
  white-space: nowrap;
507
507
  text-overflow: ellipsis;
508
508
  display: block;
509
- margin: 0 ${ue.iconPadding};
510
- ${i.setVariable(ki.fontSize,"1em")};
511
- ${i.setVariable(ki.lineHeight,"var(--ft-button-internal-line-height)")};
509
+ margin: 0 ${ve.iconPadding};
510
+ ${i.setVariable(zi.fontSize,"1em")};
511
+ ${i.setVariable(zi.lineHeight,"var(--ft-button-internal-line-height)")};
512
512
  }
513
513
 
514
514
  .ft-button--dense .ft-button--label {
515
- margin: 0 ${me};
515
+ margin: 0 ${$e};
516
516
  }
517
517
 
518
518
  .ft-button--label[hidden] {
@@ -525,13 +525,13 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
525
525
  }
526
526
 
527
527
  .ft-button--label[hidden] + ft-icon {
528
- margin: 0 calc(${ue.horizontalPadding} * -1);
529
- padding: 0 ${ue.verticalPadding};
528
+ margin: 0 calc(${ve.horizontalPadding} * -1);
529
+ padding: 0 ${ve.verticalPadding};
530
530
  }
531
531
 
532
532
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
533
- margin: 0 calc(${ye} * -1);
534
- padding: 0 ${be};
533
+ margin: 0 calc(${me} * -1);
534
+ padding: 0 ${ye};
535
535
  }
536
536
 
537
537
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -540,10 +540,10 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
540
540
  }
541
541
 
542
542
  ft-loader {
543
- ${i.setVariable(pe.size,ue.iconSize)};
544
- ${i.setVariable(pe.color,"var(--ft-button-internal-color)")};
543
+ ${i.setVariable(ce.size,ve.iconSize)};
544
+ ${i.setVariable(ce.color,"var(--ft-button-internal-color)")};
545
545
  }
546
- `,i.noTextSelect];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 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`
546
+ `,i.noTextSelect];var ke=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 ze 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`
547
547
  <button part="button"
548
548
  class="${n.classMap(t)}"
549
549
  aria-label="${this.getLabel()}"
@@ -566,7 +566,7 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
566
566
  </ft-tooltip>
567
567
  `:t}resolveIcon(){return this.loading?e.html`
568
568
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
569
- <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}}ke.elementDefinitions={"ft-ripple":ne,"ft-tooltip":Hi,"ft-typography":Ai,"ft-icon":he,"ft-loader":fe},ke.styles=[i.safariEllipsisFix,$e],we([o.property({type:String,reflect:!0})],ke.prototype,"role",void 0),we([o.property({type:Boolean})],ke.prototype,"primary",void 0),we([o.property({type:Boolean})],ke.prototype,"outlined",void 0),we([o.property({type:Boolean})],ke.prototype,"disabled",void 0),we([o.property({type:Boolean})],ke.prototype,"dense",void 0),we([o.property({type:Boolean})],ke.prototype,"round",void 0),we([o.property()],ke.prototype,"label",void 0),we([o.property()],ke.prototype,"icon",void 0),we([o.property()],ke.prototype,"iconVariant",void 0),we([o.property({type:Boolean})],ke.prototype,"trailingIcon",void 0),we([o.property({type:Boolean})],ke.prototype,"loading",void 0),we([o.property()],ke.prototype,"tooltipPosition",void 0),we([o.property({type:Boolean})],ke.prototype,"hideTooltip",void 0),we([o.property({type:Boolean})],ke.prototype,"forceTooltip",void 0),we([o.query(".ft-button")],ke.prototype,"button",void 0),we([o.query(".ft-button--label slot")],ke.prototype,"slottedContent",void 0),i.customElement("ft-button")(ke);const ze=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),Ce={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:ze,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",ni.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",ze),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")},Se=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),Ie={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:Se,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Se)},Oe=i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),je=i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Ee=[i.noTextSelect,e.css`
569
+ <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}}ze.elementDefinitions={"ft-ripple":se,"ft-tooltip":Ki,"ft-typography":Li,"ft-icon":pe,"ft-loader":de},ze.styles=[i.safariEllipsisFix,we],ke([o.property({type:String,reflect:!0})],ze.prototype,"role",void 0),ke([o.property({type:Boolean})],ze.prototype,"primary",void 0),ke([o.property({type:Boolean})],ze.prototype,"outlined",void 0),ke([o.property({type:Boolean})],ze.prototype,"disabled",void 0),ke([o.property({type:Boolean})],ze.prototype,"dense",void 0),ke([o.property({type:Boolean})],ze.prototype,"round",void 0),ke([o.property()],ze.prototype,"label",void 0),ke([o.property()],ze.prototype,"icon",void 0),ke([o.property()],ze.prototype,"iconVariant",void 0),ke([o.property({type:Boolean})],ze.prototype,"trailingIcon",void 0),ke([o.property({type:Boolean})],ze.prototype,"loading",void 0),ke([o.property()],ze.prototype,"tooltipPosition",void 0),ke([o.property({type:Boolean})],ze.prototype,"hideTooltip",void 0),ke([o.property({type:Boolean})],ze.prototype,"forceTooltip",void 0),ke([o.query(".ft-button")],ze.prototype,"button",void 0),ke([o.query(".ft-button--label slot")],ze.prototype,"slottedContent",void 0),i.customElement("ft-button")(ze);const Ce=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),Se={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:Ce,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",si.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")},Ie=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),Oe={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:Ie,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Ie)},je=i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Ee=i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Be=[i.noTextSelect,e.css`
570
570
  :host {
571
571
  display: inline-block;
572
572
  max-width: 100%;
@@ -582,20 +582,20 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
582
582
  box-sizing: border-box;
583
583
  pointer-events: auto;
584
584
 
585
- --ft-chip-internal-font-size: ${Ce.fontSize};
585
+ --ft-chip-internal-font-size: ${Se.fontSize};
586
586
  --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
587
- ${i.setVariable(se.size,Ce.iconSize)};
588
- --ft-chip-internal-vertical-padding: ${Ce.verticalPadding};
589
- --ft-chip-internal-horizontal-padding: ${Ce.horizontalPadding};
587
+ ${i.setVariable(re.size,Se.iconSize)};
588
+ --ft-chip-internal-vertical-padding: ${Se.verticalPadding};
589
+ --ft-chip-internal-horizontal-padding: ${Se.horizontalPadding};
590
590
  --ft-chip-internal-icon-padding: 3px;
591
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Ce.iconSize});
591
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Se.iconSize});
592
592
 
593
- border: 1px solid ${Ce.colorOutline};
594
- color: ${Ce.color};
595
- ${i.setVariable(Gi.color,Ce.rippleColor)};
593
+ border: 1px solid ${Se.colorOutline};
594
+ color: ${Se.color};
595
+ ${i.setVariable(Vi.color,Se.rippleColor)};
596
596
  border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
597
597
  padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
598
- background-color: ${Ce.backgroundColor};
598
+ background-color: ${Se.backgroundColor};
599
599
  line-height: var(--ft-chip-internal-content-height);
600
600
  }
601
601
 
@@ -605,8 +605,8 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
605
605
 
606
606
  .ft-chip--dense {
607
607
  --ft-chip-internal-icon-padding: 3px;
608
- --ft-chip-internal-vertical-padding: ${je};
609
- --ft-chip-internal-horizontal-padding: ${Oe};
608
+ --ft-chip-internal-vertical-padding: ${Ee};
609
+ --ft-chip-internal-horizontal-padding: ${je};
610
610
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
611
611
  }
612
612
 
@@ -618,15 +618,15 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
618
618
  cursor: default;
619
619
  pointer-events: none;
620
620
  filter: grayscale(1);
621
- opacity: ${Ce.opacityDisabled};
621
+ opacity: ${Se.opacityDisabled};
622
622
  }
623
623
 
624
624
  .ft-chip--highlighted {
625
625
  border: none;
626
626
  padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
627
- background-color: ${Ie.backgroundColor};
628
- ${i.setVariable(Gi.color,Ie.rippleColor)};
629
- color: ${Ie.color};
627
+ background-color: ${Oe.backgroundColor};
628
+ ${i.setVariable(Vi.color,Oe.rippleColor)};
629
+ color: ${Oe.color};
630
630
  }
631
631
 
632
632
  .ft-chip--clickable {
@@ -656,9 +656,9 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
656
656
  }
657
657
 
658
658
  .ft-chip--icon-button {
659
- ${i.setVariable(ue.iconSize,Ce.iconSize)};
660
- ${i.setVariable(ue.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
661
- ${i.setVariable(ue.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
659
+ ${i.setVariable(ve.iconSize,Se.iconSize)};
660
+ ${i.setVariable(ve.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
661
+ ${i.setVariable(ve.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
662
662
  margin: calc((-1) * var(--ft-chip-internal-icon-padding));
663
663
  }
664
664
 
@@ -666,8 +666,8 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
666
666
  vertical-align: bottom;
667
667
  display: block;
668
668
  margin: 0 var(--ft-chip-internal-horizontal-padding);
669
- ${i.setVariable(ni.fontSize,"var(--ft-chip-internal-font-size)")};
670
- ${i.setVariable(ni.lineHeight,"var(--ft-chip-internal-content-height)")};
669
+ ${i.setVariable(si.fontSize,"var(--ft-chip-internal-font-size)")};
670
+ ${i.setVariable(si.lineHeight,"var(--ft-chip-internal-content-height)")};
671
671
  }
672
672
 
673
673
  .ft-chip--safari-fix .ft-chip--label {
@@ -703,7 +703,7 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
703
703
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
704
704
  order: -1;
705
705
  }
706
- `];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 Ne extends CustomEvent{constructor(){super("icon-click")}}class Ue 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`
706
+ `];var Ne=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 CustomEvent{constructor(){super("icon-click")}}class Te 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`
707
707
  <div class="${n.classMap(t)}"
708
708
  aria-label="${this.getLabel()}"
709
709
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -726,14 +726,14 @@ const yt=Symbol.for(""),mt=t=>{if((null==t?void 0:t.r)===yt)return null==t?void
726
726
  <div class="ft-chip--icon-container ft-no-text-select">
727
727
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
728
728
  </div>
729
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Ne))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Ne))}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)}}Ue.elementDefinitions={"ft-ripple":ne,"ft-typography":Ai,"ft-icon":he,"ft-button":ke},Ue.styles=Ee,Be([o.property({type:Boolean})],Ue.prototype,"highlighted",void 0),Be([o.property({type:Boolean})],Ue.prototype,"removable",void 0),Be([o.property({type:Boolean})],Ue.prototype,"disabled",void 0),Be([o.property({type:Boolean})],Ue.prototype,"clickable",void 0),Be([o.property({type:Boolean})],Ue.prototype,"iconClickable",void 0),Be([o.property({type:Boolean})],Ue.prototype,"dense",void 0),Be([o.property({type:Boolean})],Ue.prototype,"multiLine",void 0),Be([o.property()],Ue.prototype,"label",void 0),Be([o.property()],Ue.prototype,"iconLabel",void 0),Be([o.property()],Ue.prototype,"icon",void 0),Be([o.property()],Ue.prototype,"iconVariant",void 0),Be([o.property({type:Boolean})],Ue.prototype,"trailingIcon",void 0),Be([o.query("ft-typography slot")],Ue.prototype,"slottedContent",void 0),i.customElement("ft-chip")(Ue);var Te=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 Me extends(j(z)){constructor(){super(),this.useChip=!1,this.editorMode=!1,this.addStore(l),this.addI18nContext(M)}render(){return this.useChip?e.html`
729
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Ue))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Ue))}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)}}Te.elementDefinitions={"ft-ripple":se,"ft-typography":Li,"ft-icon":pe,"ft-button":ze},Te.styles=Be,Ne([o.property({type:Boolean})],Te.prototype,"highlighted",void 0),Ne([o.property({type:Boolean})],Te.prototype,"removable",void 0),Ne([o.property({type:Boolean})],Te.prototype,"disabled",void 0),Ne([o.property({type:Boolean})],Te.prototype,"clickable",void 0),Ne([o.property({type:Boolean})],Te.prototype,"iconClickable",void 0),Ne([o.property({type:Boolean})],Te.prototype,"dense",void 0),Ne([o.property({type:Boolean})],Te.prototype,"multiLine",void 0),Ne([o.property()],Te.prototype,"label",void 0),Ne([o.property()],Te.prototype,"iconLabel",void 0),Ne([o.property()],Te.prototype,"icon",void 0),Ne([o.property()],Te.prototype,"iconVariant",void 0),Ne([o.property({type:Boolean})],Te.prototype,"trailingIcon",void 0),Ne([o.query("ft-typography slot")],Te.prototype,"slottedContent",void 0),i.customElement("ft-chip")(Te);var Me=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 Ae extends(E(C)){constructor(){super(),this.useChip=!1,this.editorMode=!1,this.addStore(l),this.addI18nContext(A)}render(){return this.useChip?e.html`
730
730
  <ft-tooltip text="${this.tooltipText}">
731
731
  <ft-chip>${this.renderContent()}</ft-chip>
732
732
  </ft-tooltip>
733
- `:e.html`${this.renderContent()}`}renderContent(){return this.metadata?e.html`${this.getEllipsis(this.valueText)}`:this.editorMode?this.key?e.html`${M.messages.noValuePresent(this.key)}`:e.html`${M.messages.noKeySelected()}`:e.html`
733
+ `:e.html`${this.renderContent()}`}renderContent(){return this.metadata?e.html`${this.getEllipsis(this.valueText)}`:this.editorMode?this.key?e.html`${A.messages.noValuePresent(this.key)}`:e.html`${A.messages.noKeySelected()}`:e.html`
734
734
  <style>
735
735
  :host {
736
736
  display: none !important;
737
737
  }
738
738
  </style>
739
- `}getEllipsis(t){let i=this.maxLength?t.substring(0,this.maxLength):t;return i+(i.length<t.length?"…":"")}update(t){var i;super.update(t),(t.has("result")||t.has("key"))&&this.result&&(this.metadata=null===(i=this.resultData)||void 0===i?void 0:i.metadata.find((t=>t.key==this.key)))}get resultData(){var t,i,e,o,n;return null!==(o=null!==(i=null===(t=this.result)||void 0===t?void 0:t.map)&&void 0!==i?i:null===(e=this.result)||void 0===e?void 0:e.topic)&&void 0!==o?o:null===(n=this.result)||void 0===n?void 0:n.document}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}}Me.elementDefinitions={"ft-tooltip":Hi,"ft-chip":Ue},Me.styles=r,Te([o.property()],Me.prototype,"key",void 0),Te([o.property({type:Boolean})],Me.prototype,"useChip",void 0),Te([o.property({type:Number,attribute:"max-length"})],Me.prototype,"maxLength",void 0),Te([i.redux({store:l.name})],Me.prototype,"editorMode",void 0),Te([o.state()],Me.prototype,"metadata",void 0),i.customElement("ft-search-result-metadata")(Me),t.FtSearchResultMetadata=Me,t.FtSearchResultMetadataCssVariables={},t.styles=r}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
739
+ `}getEllipsis(t){let i=this.maxLength?t.substring(0,this.maxLength):t;return i+(i.length<t.length?"…":"")}update(t){var i;super.update(t),(t.has("result")||t.has("key"))&&this.result&&(this.metadata=null===(i=this.resultData)||void 0===i?void 0:i.metadata.find((t=>t.key==this.key)))}get resultData(){var t,i,e,o,n;return null!==(o=null!==(i=null===(t=this.result)||void 0===t?void 0:t.map)&&void 0!==i?i:null===(e=this.result)||void 0===e?void 0:e.topic)&&void 0!==o?o:null===(n=this.result)||void 0===n?void 0:n.document}get valueText(){var t,i;return null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==i?i:""}get tooltipText(){var t,i;return this.metadata?`${null!==(i=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==i?i:this.metadata.key}: ${this.valueText}`:""}}Ae.elementDefinitions={"ft-tooltip":Ki,"ft-chip":Te},Ae.styles=r,Me([o.property()],Ae.prototype,"key",void 0),Me([o.property({type:Boolean})],Ae.prototype,"useChip",void 0),Me([o.property({type:Number,attribute:"max-length"})],Ae.prototype,"maxLength",void 0),Me([i.redux({store:l.name})],Ae.prototype,"editorMode",void 0),Me([o.state()],Ae.prototype,"metadata",void 0),i.customElement("ft-search-result-metadata")(Ae),t.FtSearchResultMetadata=Ae,t.FtSearchResultMetadataCssVariables={},t.styles=r}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);