@fluid-topics/ft-card 1.1.1 → 1.1.2

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.
Files changed (2) hide show
  1. package/build/ft-card.min.js +125 -121
  2. package/package.json +5 -5
@@ -12,7 +12,7 @@
12
12
  * subject to an additional IP rights grant found at
13
13
  * http://polymer.github.io/PATENTS.txt
14
14
  */
15
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,l),l.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!l(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(Vo){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
15
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,o=window.customElements.define,e=window.customElements.get,r=window.customElements,i=new WeakMap,a=new WeakMap,n=new WeakMap,s=new WeakMap;let c;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,i){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const s=i.prototype.attributeChangedCallback,c=new Set(i.observedAttributes||[]);h(i,c,s);const l={elementClass:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:s,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:c};this._definitionsByTag.set(t,l),this._definitionsByClass.set(i,l);let p=e.call(r,t);p||(p=f(t),o.call(r,t,p)),this===window.customElements&&(n.set(i,l),l.standInClass=p);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)a.delete(t),y(t,l,!0)}const g=this._whenDefinedPromises.get(t);return void 0!==g&&(g.resolve(i),this._whenDefinedPromises.delete(t)),i}upgrade(){u.push(this),r.upgrade.apply(r,arguments),u.pop()}get(t){const o=this._definitionsByTag.get(t);return o?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const o=this._getDefinition(t);if(void 0!==o)return Promise.resolve(o.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,o,e){let r=this._awaitingUpgrade.get(o);r||this._awaitingUpgrade.set(o,r=new Set),e?r.add(t):r.delete(t)}},window.HTMLElement=function(){let o=c;if(o)return c=void 0,o;const e=n.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return o=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(o,this.constructor.prototype),i.set(o,e),o},window.HTMLElement.prototype=t.prototype;const l=t=>t===document||t instanceof ShadowRoot,p=t=>{let o=t.getRootNode();if(!l(o)){const t=u[u.length-1];if(t instanceof CustomElementRegistry)return t;o=t.getRootNode(),l(o)||(o=s.get(o)?.getRootNode()||document)}return o.customElements},f=o=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const r=p(e)||window.customElements,i=r._getDefinition(o);return i?y(e,i):a.set(e,r),e}connectedCallback(){const t=i.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!0)}disconnectedCallback(){const t=i.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,o,!1)}adoptedCallback(){const t=i.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=i.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=i.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=i.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=i.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},h=(t,o,e)=>{if(0===o.size||void 0===e)return;const r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,i){const a=t.toLowerCase();if(o.has(a)){const t=this.getAttribute(a);r.call(this,a,i),e.call(this,a,t,i)}else r.call(this,a,i)});const i=t.prototype.removeAttribute;i&&(t.prototype.removeAttribute=function(t){const r=t.toLowerCase();if(o.has(r)){const t=this.getAttribute(r);i.call(this,r),e.call(this,r,t,null)}else i.call(this,r)});const a=t.prototype.toggleAttribute;a&&(t.prototype.toggleAttribute=function(t,r){const i=t.toLowerCase();if(o.has(i)){const t=this.getAttribute(i);a.call(this,i,r);const o=this.getAttribute(i);e.call(this,i,t,o)}else a.call(this,i,r)})},d=o=>{const e=Object.getPrototypeOf(o);if(e!==window.HTMLElement)return e===t?Object.setPrototypeOf(o,window.HTMLElement):d(e)},y=(t,o,e=!1)=>{Object.setPrototypeOf(t,o.elementClass.prototype),i.set(t,o),c=t;try{new o.elementClass}catch(t){d(o.elementClass),new o.elementClass}o.attributeChangedCallback&&o.observedAttributes.forEach((e=>{t.hasAttribute(e)&&o.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&o.connectedCallback&&t.isConnected&&o.connectedCallback.call(t)},g=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const o=g.apply(this,arguments);return t.customElements&&(o.customElements=t.customElements),o};let u=[document];const b=(t,o,e=void 0)=>{const r=(e?Object.getPrototypeOf(e):t.prototype)[o];t.prototype[o]=function(){u.push(this);const t=r.apply(e||this,arguments);return void 0!==t&&s.set(t,this),u.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(Element,"insertAdjacentHTML");const m=(t,o)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,o);Object.defineProperty(t.prototype,o,{...e,set(t){u.push(this),e.set.call(this,t),u.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,o=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const r=o.call(this,...e);return t.set(r,this),r},e.forEach((o=>{const e=window.ElementInternals.prototype,r=e[o];e[o]=function(...o){const e=t.get(this);if(!0===i.get(e).formAssociated)return r?.call(this,...o);throw new DOMException(`Failed to execute ${r} on 'ElementInternals': The target element is not a form-associated custom element.`)}}));class r extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class a{constructor(t){const o=new Map;t.forEach(((t,e)=>{const r=t.getAttribute("name"),i=o.get(r)||[];this[+e]=t,i.push(t),o.set(r,i)})),this.length=t.length,o.forEach(((t,o)=>{t&&(1===t.length?this[o]=t[0]:this[o]=new r(t))}))}namedItem(t){return this[t]}}const n=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=n.get.call(this,[]),o=[];for(const e of t){const t=i.get(e);t&&!0!==t.formAssociated||o.push(e)}return new a(o)}})}}try{window.customElements.define("custom-element",null)}catch(Xo){const t=window.customElements.define;window.customElements.define=(o,e,r)=>{if(null!==e)try{t.bind(window.customElements)(o,e,r)}catch(t){console.info(o,e,r,t)}}}class o{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,o){return this.callbacks=[t],this.debounce(o)}queue(t,o){return this.callbacks.push(t),this.debounce(o)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,o)=>{this.resolvePromise=t,this.rejectPromise=o}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,o;const e=[...this.callbacks];this.callbacks=[];const r=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,i=null!==(o=this.resolvePromise)&&void 0!==o?o:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void r(t)}i(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
16
16
  /**
17
17
  * @license
18
18
  * Copyright 2019 Google LLC
@@ -77,7 +77,11 @@ class uo extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
77
77
  * @license
78
78
  * Copyright 2019 Google LLC
79
79
  * SPDX-License-Identifier: BSD-3-Clause
80
- */class Uo extends uo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Ro?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=Co.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Eo,Io=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Wo=Symbol("constructorPrototype"),$o=Symbol("constructorName"),ko=Symbol("exportpartsDebouncer");class Lo extends Uo{constructor(){super(),this[Eo]=new o(5),this[$o]=this.constructor.name,this[Wo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$o]&&Object.setPrototypeOf(this,this[Wo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[ko].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const p=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}var Ko,Zo;Eo=ko,Io([C()],Lo.prototype,"exportpartsPrefix",void 0),Io([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!I(t,o),...null!=o?o:{}})}([])],Lo.prototype,"exportpartsPrefixes",void 0),Io([C()],Lo.prototype,"customStylesheet",void 0),bt`
80
+ */class Uo extends uo{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([o,e])=>t.registry.define(o,e))));const o={...t.shadowRootOptions,customElements:t.registry},e=this.renderOptions.creationScope=this.attachShadow(o);return((t,o)=>{Ro?t.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):o.forEach((o=>{const e=document.createElement("style"),r=Co.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=o.cssText,t.appendChild(e)}))})(e,t.elementStyles),e}}var Eo,Io=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};const Wo=Symbol("constructorPrototype"),$o=Symbol("constructorName"),ko=Symbol("exportpartsDebouncer");class Lo extends Uo{constructor(){super(),this[Eo]=new o(5),this[$o]=this.constructor.name,this[Wo]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[$o]&&Object.setPrototypeOf(this,this[Wo])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var o,e;if((null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[ko].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var o,e,r,i,a,n;const s=t=>null!=t&&t.trim().length>0,c=t.filter(s).map((t=>t.trim()));if(0===c.length)return void this.removeAttribute("exportparts");const l=new Set;for(let t of null!==(e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const o=null!==(i=null===(r=t.getAttribute("part"))||void 0===r?void 0:r.split(" "))&&void 0!==i?i:[],e=null!==(n=null===(a=t.getAttribute("exportparts"))||void 0===a?void 0:a.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...o,...e).filter(s).map((t=>t.trim())).forEach((t=>l.add(t)))}if(0===l.size)return void this.removeAttribute("exportparts");const p=[...l.values()].flatMap((t=>c.map((o=>`${t}:${o}--${t}`))));this.setAttribute("exportparts",[...this.part,...p].join(", "))}}Eo=ko,Io([C()],Lo.prototype,"exportpartsPrefix",void 0),Io([function(t,o){const e=()=>JSON.parse(JSON.stringify(t));return C({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,o)=>!I(t,o),...null!=o?o:{}})}([])],Lo.prototype,"exportpartsPrefixes",void 0),Io([C()],Lo.prototype,"customStylesheet",void 0);const Ko=Oo.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E");var Zo,Fo;bt`
81
+ .highlight-html-match {
82
+ background: ${Ko};
83
+ }
84
+ `,bt`
81
85
  .ft-no-text-select {
82
86
  -webkit-touch-callout: none;
83
87
  -webkit-user-select: none;
@@ -109,18 +113,18 @@ class uo extends Lt{constructor(){super(...arguments),this.renderOptions={host:t
109
113
  display: inline-block;
110
114
  width: 0;
111
115
  }
112
- `,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Zo=null===(Ko=window.safari)||void 0===Ko?void 0:Ko.pushNotification)||void 0===Zo||Zo.toString());
116
+ `,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Fo=null===(Zo=window.safari)||void 0===Zo?void 0:Zo.pushNotification)||void 0===Fo||Fo.toString());
113
117
  /**
114
118
  * @license
115
119
  * Copyright 2017 Google LLC
116
120
  * SPDX-License-Identifier: BSD-3-Clause
117
121
  */
118
- const Fo=1;let zo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};
122
+ const zo=1;let Do=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,o,e){this._$Ct=t,this._$AM=o,this._$Ci=e}_$AS(t,o){return this.update(t,o)}update(t,o){return this.render(...o)}};
119
123
  /**
120
124
  * @license
121
125
  * Copyright 2018 Google LLC
122
126
  * SPDX-License-Identifier: BSD-3-Clause
123
- */const Do=(t=>(...o)=>({_$litDirective$:t,values:o}))(class extends zo{constructor(t){if(super(t),t.type!==Fo||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const r=!!o[t];r===this.it.has(t)||this.st?.has(t)||(r?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return X}}),Ao=Oo.extend("--ft-ripple-color","",wo.colorContent),Mo={color:Ao,backgroundColor:Oo.extend("--ft-ripple-background-color","",Ao),opacityContentOnSurfacePressed:Oo.external(wo.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Oo.external(wo.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Oo.external(wo.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Oo.external(wo.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Oo.create("--ft-ripple-border-radius","","SIZE","0px")},Bo=Oo.extend("--ft-ripple-color","",wo.colorPrimary),Po=Bo,Ho=Oo.extend("--ft-ripple-background-color","",Bo),_o=Oo.extend("--ft-ripple-color","",wo.colorSecondary),jo=_o,Go=Oo.extend("--ft-ripple-background-color","",_o),To=bt`
127
+ */const Ao=(t=>(...o)=>({_$litDirective$:t,values:o}))(class extends Do{constructor(t){if(super(t),t.type!==zo||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((o=>t[o])).join(" ")+" "}update(t,[o]){if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in o)o[t]&&!this.st?.has(t)&&this.it.add(t);return this.render(o)}const e=t.element.classList;for(const t of this.it)t in o||(e.remove(t),this.it.delete(t));for(const t in o){const r=!!o[t];r===this.it.has(t)||this.st?.has(t)||(r?(e.add(t),this.it.add(t)):(e.remove(t),this.it.delete(t)))}return X}}),Mo=Oo.extend("--ft-ripple-color","",wo.colorContent),Bo={color:Mo,backgroundColor:Oo.extend("--ft-ripple-background-color","",Mo),opacityContentOnSurfacePressed:Oo.external(wo.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Oo.external(wo.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Oo.external(wo.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Oo.external(wo.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Oo.create("--ft-ripple-border-radius","","SIZE","0px")},Po=Oo.extend("--ft-ripple-color","",wo.colorPrimary),Ho=Po,_o=Oo.extend("--ft-ripple-background-color","",Po),jo=Oo.extend("--ft-ripple-color","",wo.colorSecondary),Go=jo,To=Oo.extend("--ft-ripple-background-color","",jo),Yo=bt`
124
128
  :host {
125
129
  display: contents;
126
130
  }
@@ -133,7 +137,7 @@ const Fo=1;let zo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,
133
137
 
134
138
  .ft-ripple:not(.ft-ripple--unbounded) {
135
139
  overflow: hidden;
136
- border-radius: ${Mo.borderRadius};
140
+ border-radius: ${Bo.borderRadius};
137
141
  }
138
142
 
139
143
  .ft-ripple .ft-ripple--background,
@@ -167,27 +171,27 @@ const Fo=1;let zo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,
167
171
  }
168
172
 
169
173
  .ft-ripple .ft-ripple--background {
170
- background-color: ${Mo.backgroundColor};
174
+ background-color: ${Bo.backgroundColor};
171
175
  }
172
176
 
173
177
  .ft-ripple .ft-ripple--effect {
174
- background-color: ${Mo.color};
178
+ background-color: ${Bo.color};
175
179
  }
176
180
 
177
181
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
178
- background-color: ${Go};
182
+ background-color: ${To};
179
183
  }
180
184
 
181
185
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
182
- background-color: ${jo};
186
+ background-color: ${Go};
183
187
  }
184
188
 
185
189
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
186
- background-color: ${Ho};
190
+ background-color: ${_o};
187
191
  }
188
192
 
189
193
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
190
- background-color: ${Po};
194
+ background-color: ${Ho};
191
195
  }
192
196
 
193
197
  .ft-ripple .ft-ripple--background {
@@ -217,134 +221,134 @@ const Fo=1;let zo=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,
217
221
  }
218
222
 
219
223
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
220
- opacity: ${Mo.opacityContentOnSurfaceHover};
224
+ opacity: ${Bo.opacityContentOnSurfaceHover};
221
225
  }
222
226
 
223
227
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
224
- opacity: ${Mo.opacityContentOnSurfaceSelected};
228
+ opacity: ${Bo.opacityContentOnSurfaceSelected};
225
229
  }
226
230
 
227
231
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
228
- opacity: ${Mo.opacityContentOnSurfaceFocused};
232
+ opacity: ${Bo.opacityContentOnSurfaceFocused};
229
233
  }
230
234
 
231
235
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
232
- opacity: ${Mo.opacityContentOnSurfacePressed};
236
+ opacity: ${Bo.opacityContentOnSurfacePressed};
233
237
  transform: translate(-50%, -50%) scale(1);
234
238
  }
235
- `;var Yo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Jo extends Lo{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var o,e;let{x:r,y:i}=this.getCoordinates(t),a=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-a.x:a.width/2),this.originY=Math.round(null!=i?i-a.y:a.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Qt`
239
+ `;var Jo=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Vo extends Lo{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new o(10),this.moveRipple=t=>{var o,e;let{x:r,y:i}=this.getCoordinates(t),a=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-a.x:a.width/2),this.originY=Math.round(null!=i?i-a.y:a.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Qt`
236
240
  <style>
237
241
  .ft-ripple .ft-ripple--effect {
238
242
  left: ${this.originX}px;
239
243
  top: ${this.originY}px;
240
244
  }
241
245
  </style>
242
- <div class="${Do(t)}">
246
+ <div class="${Ao(t)}">
243
247
  <div class="ft-ripple--background"></div>
244
248
  <div class="ft-ripple--effect"></div>
245
249
  </div>
246
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),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",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Jo.elementDefinitions={},Jo.styles=To,Yo([C({type:Boolean})],Jo.prototype,"primary",void 0),Yo([C({type:Boolean})],Jo.prototype,"secondary",void 0),Yo([C({type:Boolean})],Jo.prototype,"unbounded",void 0),Yo([C({type:Boolean})],Jo.prototype,"activated",void 0),Yo([C({type:Boolean})],Jo.prototype,"selected",void 0),Yo([C({type:Boolean})],Jo.prototype,"disabled",void 0),Yo([R()],Jo.prototype,"hovered",void 0),Yo([R()],Jo.prototype,"focused",void 0),Yo([R()],Jo.prototype,"pressed",void 0),Yo([R()],Jo.prototype,"rippling",void 0),Yo([R()],Jo.prototype,"originX",void 0),Yo([R()],Jo.prototype,"originY",void 0),Yo([E(".ft-ripple")],Jo.prototype,"ripple",void 0),Yo([E(".ft-ripple--effect")],Jo.prototype,"rippleEffect",void 0),W("ft-ripple")(Jo);
250
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",r),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",i),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",r),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",i),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Vo.elementDefinitions={},Vo.styles=Yo,Jo([C({type:Boolean})],Vo.prototype,"primary",void 0),Jo([C({type:Boolean})],Vo.prototype,"secondary",void 0),Jo([C({type:Boolean})],Vo.prototype,"unbounded",void 0),Jo([C({type:Boolean})],Vo.prototype,"activated",void 0),Jo([C({type:Boolean})],Vo.prototype,"selected",void 0),Jo([C({type:Boolean})],Vo.prototype,"disabled",void 0),Jo([R()],Vo.prototype,"hovered",void 0),Jo([R()],Vo.prototype,"focused",void 0),Jo([R()],Vo.prototype,"pressed",void 0),Jo([R()],Vo.prototype,"rippling",void 0),Jo([R()],Vo.prototype,"originX",void 0),Jo([R()],Vo.prototype,"originY",void 0),Jo([E(".ft-ripple")],Vo.prototype,"ripple",void 0),Jo([E(".ft-ripple--effect")],Vo.prototype,"rippleEffect",void 0),W("ft-ripple")(Vo);
247
251
  /**
248
252
  * @license
249
253
  * Copyright 2020 Google LLC
250
254
  * SPDX-License-Identifier: BSD-3-Clause
251
255
  */
252
- const Vo=Symbol.for(""),Xo=t=>{if(t?.r===Vo)return t?._$litStatic$},qo=t=>({_$litStatic$:t,r:Vo}),Qo=new Map,te=(t=>(o,...e)=>{const r=e.length;let i,a;const n=[],s=[];let c,l=0,p=!1;for(;l<r;){for(c=o[l];l<r&&void 0!==(a=e[l],i=Xo(a));)c+=i+o[++l],p=!0;l!==r&&s.push(a),n.push(c),l++}if(l===r&&n.push(o[r]),p){const t=n.join("$$lit$$");void 0===(o=Qo.get(t))&&(n.raw=n,Qo.set(t,o=n)),e=s}return t(o,...e)})(V);var oe;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(oe||(oe={}));const ee=Oo.extend("--ft-typography-font-family","",wo.titleFont),re=Oo.extend("--ft-typography-font-family","",wo.contentFont),ie={fontFamily:re,fontSize:Oo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Oo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Oo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Oo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Oo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ae=Oo.extend("--ft-typography-title-font-family","",ee),ne=Oo.extend("--ft-typography-title-font-size","",ie.fontSize,"20px"),se=Oo.extend("--ft-typography-title-font-weight","",ie.fontWeight,"normal"),ce=Oo.extend("--ft-typography-title-letter-spacing","",ie.letterSpacing,"0.15px"),le=Oo.extend("--ft-typography-title-line-height","",ie.lineHeight,"1.2"),pe=Oo.extend("--ft-typography-title-text-transform","",ie.textTransform,"inherit"),fe=Oo.extend("--ft-typography-title-dense-font-family","",ee),he=Oo.extend("--ft-typography-title-dense-font-size","",ie.fontSize,"14px"),de=Oo.extend("--ft-typography-title-dense-font-weight","",ie.fontWeight,"normal"),ye=Oo.extend("--ft-typography-title-dense-letter-spacing","",ie.letterSpacing,"0.105px"),ge=Oo.extend("--ft-typography-title-dense-line-height","",ie.lineHeight,"1.7"),ue=Oo.extend("--ft-typography-title-dense-text-transform","",ie.textTransform,"inherit"),be=Oo.extend("--ft-typography-subtitle1-font-family","",re),me=Oo.extend("--ft-typography-subtitle1-font-size","",ie.fontSize,"16px"),Oe=Oo.extend("--ft-typography-subtitle1-font-weight","",ie.fontWeight,"600"),Ne=Oo.extend("--ft-typography-subtitle1-letter-spacing","",ie.letterSpacing,"0.144px"),Se=Oo.extend("--ft-typography-subtitle1-line-height","",ie.lineHeight,"1.5"),ve=Oo.extend("--ft-typography-subtitle1-text-transform","",ie.textTransform,"inherit"),xe=Oo.extend("--ft-typography-subtitle2-font-family","",re),we=Oo.extend("--ft-typography-subtitle2-font-size","",ie.fontSize,"14px"),Ce=Oo.extend("--ft-typography-subtitle2-font-weight","",ie.fontWeight,"normal"),Re=Oo.extend("--ft-typography-subtitle2-letter-spacing","",ie.letterSpacing,"0.098px"),Ue=Oo.extend("--ft-typography-subtitle2-line-height","",ie.lineHeight,"1.7"),Ee=Oo.extend("--ft-typography-subtitle2-text-transform","",ie.textTransform,"inherit"),Ie=Oo.extend("--ft-typography-body1-font-family","",re),We=Oo.extend("--ft-typography-body1-font-size","",ie.fontSize,"16px"),$e=Oo.extend("--ft-typography-body1-font-weight","",ie.fontWeight,"normal"),ke=Oo.extend("--ft-typography-body1-letter-spacing","",ie.letterSpacing,"0.496px"),Le=Oo.extend("--ft-typography-body1-line-height","",ie.lineHeight,"1.5"),Ke=Oo.extend("--ft-typography-body1-text-transform","",ie.textTransform,"inherit"),Ze=Oo.extend("--ft-typography-body2-font-family","",re),Fe=Oo.extend("--ft-typography-body2-font-size","",ie.fontSize,"14px"),ze=Oo.extend("--ft-typography-body2-font-weight","",ie.fontWeight,"normal"),De=Oo.extend("--ft-typography-body2-letter-spacing","",ie.letterSpacing,"0.252px"),Ae=Oo.extend("--ft-typography-body2-line-height","",ie.lineHeight,"1.4"),Me=Oo.extend("--ft-typography-body2-text-transform","",ie.textTransform,"inherit"),Be=Oo.extend("--ft-typography-caption-font-family","",re),Pe=Oo.extend("--ft-typography-caption-font-size","",ie.fontSize,"12px"),He=Oo.extend("--ft-typography-caption-font-weight","",ie.fontWeight,"normal"),_e=Oo.extend("--ft-typography-caption-letter-spacing","",ie.letterSpacing,"0.396px"),je=Oo.extend("--ft-typography-caption-line-height","",ie.lineHeight,"1.33"),Ge=Oo.extend("--ft-typography-caption-text-transform","",ie.textTransform,"inherit"),Te=Oo.extend("--ft-typography-breadcrumb-font-family","",re),Ye=Oo.extend("--ft-typography-breadcrumb-font-size","",ie.fontSize,"10px"),Je=Oo.extend("--ft-typography-breadcrumb-font-weight","",ie.fontWeight,"normal"),Ve=Oo.extend("--ft-typography-breadcrumb-letter-spacing","",ie.letterSpacing,"0.33px"),Xe=Oo.extend("--ft-typography-breadcrumb-line-height","",ie.lineHeight,"1.6"),qe=Oo.extend("--ft-typography-breadcrumb-text-transform","",ie.textTransform,"inherit"),Qe=Oo.extend("--ft-typography-overline-font-family","",re),tr=Oo.extend("--ft-typography-overline-font-size","",ie.fontSize,"10px"),or=Oo.extend("--ft-typography-overline-font-weight","",ie.fontWeight,"normal"),er=Oo.extend("--ft-typography-overline-letter-spacing","",ie.letterSpacing,"1.5px"),rr=Oo.extend("--ft-typography-overline-line-height","",ie.lineHeight,"1.6"),ir=Oo.extend("--ft-typography-overline-text-transform","",ie.textTransform,"uppercase"),ar=Oo.extend("--ft-typography-button-font-family","",re),nr=Oo.extend("--ft-typography-button-font-size","",ie.fontSize,"14px"),sr=Oo.extend("--ft-typography-button-font-weight","",ie.fontWeight,"600"),cr=Oo.extend("--ft-typography-button-letter-spacing","",ie.letterSpacing,"1.246px"),lr=Oo.extend("--ft-typography-button-line-height","",ie.lineHeight,"1.15"),pr=Oo.extend("--ft-typography-button-text-transform","",ie.textTransform,"uppercase"),fr=bt`
256
+ const Xo=Symbol.for(""),qo=t=>{if(t?.r===Xo)return t?._$litStatic$},Qo=t=>({_$litStatic$:t,r:Xo}),te=new Map,oe=(t=>(o,...e)=>{const r=e.length;let i,a;const n=[],s=[];let c,l=0,p=!1;for(;l<r;){for(c=o[l];l<r&&void 0!==(a=e[l],i=qo(a));)c+=i+o[++l],p=!0;l!==r&&s.push(a),n.push(c),l++}if(l===r&&n.push(o[r]),p){const t=n.join("$$lit$$");void 0===(o=te.get(t))&&(n.raw=n,te.set(t,o=n)),e=s}return t(o,...e)})(V);var ee;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(ee||(ee={}));const re=Oo.extend("--ft-typography-font-family","",wo.titleFont),ie=Oo.extend("--ft-typography-font-family","",wo.contentFont),ae={fontFamily:ie,fontSize:Oo.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:Oo.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:Oo.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:Oo.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:Oo.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ne=Oo.extend("--ft-typography-title-font-family","",re),se=Oo.extend("--ft-typography-title-font-size","",ae.fontSize,"20px"),ce=Oo.extend("--ft-typography-title-font-weight","",ae.fontWeight,"normal"),le=Oo.extend("--ft-typography-title-letter-spacing","",ae.letterSpacing,"0.15px"),pe=Oo.extend("--ft-typography-title-line-height","",ae.lineHeight,"1.2"),fe=Oo.extend("--ft-typography-title-text-transform","",ae.textTransform,"inherit"),he=Oo.extend("--ft-typography-title-dense-font-family","",re),de=Oo.extend("--ft-typography-title-dense-font-size","",ae.fontSize,"14px"),ye=Oo.extend("--ft-typography-title-dense-font-weight","",ae.fontWeight,"normal"),ge=Oo.extend("--ft-typography-title-dense-letter-spacing","",ae.letterSpacing,"0.105px"),ue=Oo.extend("--ft-typography-title-dense-line-height","",ae.lineHeight,"1.7"),be=Oo.extend("--ft-typography-title-dense-text-transform","",ae.textTransform,"inherit"),me=Oo.extend("--ft-typography-subtitle1-font-family","",ie),Oe=Oo.extend("--ft-typography-subtitle1-font-size","",ae.fontSize,"16px"),Ne=Oo.extend("--ft-typography-subtitle1-font-weight","",ae.fontWeight,"600"),Se=Oo.extend("--ft-typography-subtitle1-letter-spacing","",ae.letterSpacing,"0.144px"),ve=Oo.extend("--ft-typography-subtitle1-line-height","",ae.lineHeight,"1.5"),xe=Oo.extend("--ft-typography-subtitle1-text-transform","",ae.textTransform,"inherit"),we=Oo.extend("--ft-typography-subtitle2-font-family","",ie),Ce=Oo.extend("--ft-typography-subtitle2-font-size","",ae.fontSize,"14px"),Re=Oo.extend("--ft-typography-subtitle2-font-weight","",ae.fontWeight,"normal"),Ue=Oo.extend("--ft-typography-subtitle2-letter-spacing","",ae.letterSpacing,"0.098px"),Ee=Oo.extend("--ft-typography-subtitle2-line-height","",ae.lineHeight,"1.7"),Ie=Oo.extend("--ft-typography-subtitle2-text-transform","",ae.textTransform,"inherit"),We=Oo.extend("--ft-typography-body1-font-family","",ie),$e=Oo.extend("--ft-typography-body1-font-size","",ae.fontSize,"16px"),ke=Oo.extend("--ft-typography-body1-font-weight","",ae.fontWeight,"normal"),Le=Oo.extend("--ft-typography-body1-letter-spacing","",ae.letterSpacing,"0.496px"),Ke=Oo.extend("--ft-typography-body1-line-height","",ae.lineHeight,"1.5"),Ze=Oo.extend("--ft-typography-body1-text-transform","",ae.textTransform,"inherit"),Fe=Oo.extend("--ft-typography-body2-font-family","",ie),ze=Oo.extend("--ft-typography-body2-font-size","",ae.fontSize,"14px"),De=Oo.extend("--ft-typography-body2-font-weight","",ae.fontWeight,"normal"),Ae=Oo.extend("--ft-typography-body2-letter-spacing","",ae.letterSpacing,"0.252px"),Me=Oo.extend("--ft-typography-body2-line-height","",ae.lineHeight,"1.4"),Be=Oo.extend("--ft-typography-body2-text-transform","",ae.textTransform,"inherit"),Pe=Oo.extend("--ft-typography-caption-font-family","",ie),He=Oo.extend("--ft-typography-caption-font-size","",ae.fontSize,"12px"),_e=Oo.extend("--ft-typography-caption-font-weight","",ae.fontWeight,"normal"),je=Oo.extend("--ft-typography-caption-letter-spacing","",ae.letterSpacing,"0.396px"),Ge=Oo.extend("--ft-typography-caption-line-height","",ae.lineHeight,"1.33"),Te=Oo.extend("--ft-typography-caption-text-transform","",ae.textTransform,"inherit"),Ye=Oo.extend("--ft-typography-breadcrumb-font-family","",ie),Je=Oo.extend("--ft-typography-breadcrumb-font-size","",ae.fontSize,"10px"),Ve=Oo.extend("--ft-typography-breadcrumb-font-weight","",ae.fontWeight,"normal"),Xe=Oo.extend("--ft-typography-breadcrumb-letter-spacing","",ae.letterSpacing,"0.33px"),qe=Oo.extend("--ft-typography-breadcrumb-line-height","",ae.lineHeight,"1.6"),Qe=Oo.extend("--ft-typography-breadcrumb-text-transform","",ae.textTransform,"inherit"),tr=Oo.extend("--ft-typography-overline-font-family","",ie),or=Oo.extend("--ft-typography-overline-font-size","",ae.fontSize,"10px"),er=Oo.extend("--ft-typography-overline-font-weight","",ae.fontWeight,"normal"),rr=Oo.extend("--ft-typography-overline-letter-spacing","",ae.letterSpacing,"1.5px"),ir=Oo.extend("--ft-typography-overline-line-height","",ae.lineHeight,"1.6"),ar=Oo.extend("--ft-typography-overline-text-transform","",ae.textTransform,"uppercase"),nr=Oo.extend("--ft-typography-button-font-family","",ie),sr=Oo.extend("--ft-typography-button-font-size","",ae.fontSize,"14px"),cr=Oo.extend("--ft-typography-button-font-weight","",ae.fontWeight,"600"),lr=Oo.extend("--ft-typography-button-letter-spacing","",ae.letterSpacing,"1.246px"),pr=Oo.extend("--ft-typography-button-line-height","",ae.lineHeight,"1.15"),fr=Oo.extend("--ft-typography-button-text-transform","",ae.textTransform,"uppercase"),hr=bt`
253
257
  .ft-typography--title {
254
- font-family: ${ae};
255
- font-size: ${ne};
256
- font-weight: ${se};
257
- letter-spacing: ${ce};
258
- line-height: ${le};
259
- text-transform: ${pe};
260
- }
261
- `,hr=bt`
262
- .ft-typography--title-dense {
263
- font-family: ${fe};
264
- font-size: ${he};
265
- font-weight: ${de};
266
- letter-spacing: ${ye};
267
- line-height: ${ge};
268
- text-transform: ${ue};
258
+ font-family: ${ne};
259
+ font-size: ${se};
260
+ font-weight: ${ce};
261
+ letter-spacing: ${le};
262
+ line-height: ${pe};
263
+ text-transform: ${fe};
269
264
  }
270
265
  `,dr=bt`
271
- .ft-typography--subtitle1 {
272
- font-family: ${be};
273
- font-size: ${me};
274
- font-weight: ${Oe};
275
- letter-spacing: ${Ne};
276
- line-height: ${Se};
277
- text-transform: ${ve};
266
+ .ft-typography--title-dense {
267
+ font-family: ${he};
268
+ font-size: ${de};
269
+ font-weight: ${ye};
270
+ letter-spacing: ${ge};
271
+ line-height: ${ue};
272
+ text-transform: ${be};
278
273
  }
279
274
  `,yr=bt`
280
- .ft-typography--subtitle2 {
281
- font-family: ${xe};
282
- font-size: ${we};
283
- font-weight: ${Ce};
284
- letter-spacing: ${Re};
285
- line-height: ${Ue};
286
- text-transform: ${Ee};
275
+ .ft-typography--subtitle1 {
276
+ font-family: ${me};
277
+ font-size: ${Oe};
278
+ font-weight: ${Ne};
279
+ letter-spacing: ${Se};
280
+ line-height: ${ve};
281
+ text-transform: ${xe};
287
282
  }
288
-
289
283
  `,gr=bt`
290
- .ft-typography--body1 {
291
- font-family: ${Ie};
292
- font-size: ${We};
293
- font-weight: ${$e};
294
- letter-spacing: ${ke};
295
- line-height: ${Le};
296
- text-transform: ${Ke};
284
+ .ft-typography--subtitle2 {
285
+ font-family: ${we};
286
+ font-size: ${Ce};
287
+ font-weight: ${Re};
288
+ letter-spacing: ${Ue};
289
+ line-height: ${Ee};
290
+ text-transform: ${Ie};
297
291
  }
292
+
298
293
  `,ur=bt`
299
- .ft-typography--body2 {
300
- font-family: ${Ze};
301
- font-size: ${Fe};
302
- font-weight: ${ze};
303
- letter-spacing: ${De};
304
- line-height: ${Ae};
305
- text-transform: ${Me};
294
+ .ft-typography--body1 {
295
+ font-family: ${We};
296
+ font-size: ${$e};
297
+ font-weight: ${ke};
298
+ letter-spacing: ${Le};
299
+ line-height: ${Ke};
300
+ text-transform: ${Ze};
306
301
  }
307
302
  `,br=bt`
308
- .ft-typography--caption {
309
- font-family: ${Be};
310
- font-size: ${Pe};
311
- font-weight: ${He};
312
- letter-spacing: ${_e};
313
- line-height: ${je};
314
- text-transform: ${Ge};
303
+ .ft-typography--body2 {
304
+ font-family: ${Fe};
305
+ font-size: ${ze};
306
+ font-weight: ${De};
307
+ letter-spacing: ${Ae};
308
+ line-height: ${Me};
309
+ text-transform: ${Be};
315
310
  }
316
311
  `,mr=bt`
317
- .ft-typography--breadcrumb {
318
- font-family: ${Te};
319
- font-size: ${Ye};
320
- font-weight: ${Je};
321
- letter-spacing: ${Ve};
322
- line-height: ${Xe};
323
- text-transform: ${qe};
312
+ .ft-typography--caption {
313
+ font-family: ${Pe};
314
+ font-size: ${He};
315
+ font-weight: ${_e};
316
+ letter-spacing: ${je};
317
+ line-height: ${Ge};
318
+ text-transform: ${Te};
324
319
  }
325
320
  `,Or=bt`
326
- .ft-typography--overline {
327
- font-family: ${Qe};
328
- font-size: ${tr};
329
- font-weight: ${or};
330
- letter-spacing: ${er};
331
- line-height: ${rr};
332
- text-transform: ${ir};
321
+ .ft-typography--breadcrumb {
322
+ font-family: ${Ye};
323
+ font-size: ${Je};
324
+ font-weight: ${Ve};
325
+ letter-spacing: ${Xe};
326
+ line-height: ${qe};
327
+ text-transform: ${Qe};
333
328
  }
334
329
  `,Nr=bt`
335
- .ft-typography--button {
336
- font-family: ${ar};
337
- font-size: ${nr};
338
- font-weight: ${sr};
339
- letter-spacing: ${cr};
340
- line-height: ${lr};
341
- text-transform: ${pr};
330
+ .ft-typography--overline {
331
+ font-family: ${tr};
332
+ font-size: ${or};
333
+ font-weight: ${er};
334
+ letter-spacing: ${rr};
335
+ line-height: ${ir};
336
+ text-transform: ${ar};
342
337
  }
343
338
  `,Sr=bt`
339
+ .ft-typography--button {
340
+ font-family: ${nr};
341
+ font-size: ${sr};
342
+ font-weight: ${cr};
343
+ letter-spacing: ${lr};
344
+ line-height: ${pr};
345
+ text-transform: ${fr};
346
+ }
347
+ `,vr=bt`
344
348
  .ft-typography {
345
349
  vertical-align: inherit;
346
350
  }
347
- `,vr=[Object.keys(vo).map((t=>function(t){const o=vo[t];return bt`
351
+ `,xr=[Object.keys(vo).map((t=>function(t){const o=vo[t];return bt`
348
352
  .ft-typography--${ut(t)} {
349
353
  font-family: ${o.fontFamily};
350
354
  font-size: ${o.fontSize};
@@ -353,29 +357,29 @@ const Vo=Symbol.for(""),Xo=t=>{if(t?.r===Vo)return t?._$litStatic$},qo=t=>({_$li
353
357
  line-height: ${o.lineHeight};
354
358
  text-transform: ${o.textCase};
355
359
  }
356
- `}(t)))];var xr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class wr extends Lo{constructor(){super(...arguments),this.variant=oe.body1}render(){return this.element?te`
357
- <${qo(this.element)}
360
+ `}(t)))];var wr=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Cr extends Lo{constructor(){super(...arguments),this.variant=ee.body1}render(){return this.element?oe`
361
+ <${Qo(this.element)}
358
362
  class="ft-typography ft-typography--${this.variant}">
359
363
  <slot></slot>
360
- </${qo(this.element)}>
361
- `:te`
364
+ </${Qo(this.element)}>
365
+ `:oe`
362
366
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
363
- `}}wr.styles=[fr,hr,dr,yr,gr,ur,br,mr,Or,Nr,Sr,...vr],xr([C()],wr.prototype,"element",void 0),xr([C()],wr.prototype,"variant",void 0),W("ft-typography")(wr);const Cr={padding:Oo.create("--ft-card-padding","","SIZE","12px"),borderRadius:Oo.extend("--ft-card-border-radius","",wo.borderRadiusM),borderStyle:Oo.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:Oo.extend("--ft-card-border-color","",wo.colorOutline),hoverBorderColor:Oo.extend("--ft-card-hover-border-color","",wo.colorPrimary),outlineStyle:Oo.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:Oo.create("--ft-card-outline-width","","SIZE","0"),outlineColor:Oo.extend("--ft-card-outline-color","",wo.colorPrimary),selectedOutlineStyle:Oo.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:Oo.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:Oo.extend("--ft-card-selected-outline-color","",wo.colorPrimary),selectedBorderRadius:Oo.extend("--ft-card-selected-border-radius","",wo.borderRadiusM),colorSurface:Oo.external(wo.colorSurface,"Design system"),colorOnSurfaceMedium:Oo.external(wo.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:Oo.external(wo.colorOnSurfaceHigh,"Design system"),elevation02:Oo.external(wo.elevation02,"Design system"),elevation04:Oo.external(wo.elevation04,"Design system")},Rr=bt`
367
+ `}}Cr.styles=[hr,dr,yr,gr,ur,br,mr,Or,Nr,Sr,vr,...xr],wr([C()],Cr.prototype,"element",void 0),wr([C()],Cr.prototype,"variant",void 0),W("ft-typography")(Cr);const Rr={padding:Oo.create("--ft-card-padding","","SIZE","12px"),borderRadius:Oo.extend("--ft-card-border-radius","",wo.borderRadiusM),borderStyle:Oo.create("--ft-card-border-style","","UNKNOWN","none"),borderColor:Oo.extend("--ft-card-border-color","",wo.colorOutline),hoverBorderColor:Oo.extend("--ft-card-hover-border-color","",wo.colorPrimary),outlineStyle:Oo.create("--ft-card-outline-style","","UNKNOWN","solid"),outlineWidth:Oo.create("--ft-card-outline-width","","SIZE","0"),outlineColor:Oo.extend("--ft-card-outline-color","",wo.colorPrimary),selectedOutlineStyle:Oo.create("--ft-card-selected-outline-style","","UNKNOWN","solid"),selectedOutlineWidth:Oo.create("--ft-card-selected-outline-width","","SIZE","2px"),selectedOutlineColor:Oo.extend("--ft-card-selected-outline-color","",wo.colorPrimary),selectedBorderRadius:Oo.extend("--ft-card-selected-border-radius","",wo.borderRadiusM),colorSurface:Oo.external(wo.colorSurface,"Design system"),colorOnSurfaceMedium:Oo.external(wo.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:Oo.external(wo.colorOnSurfaceHigh,"Design system"),elevation02:Oo.external(wo.elevation02,"Design system"),elevation04:Oo.external(wo.elevation04,"Design system")},Ur=bt`
364
368
  :host {
365
369
  display: block;
366
370
  }
367
371
 
368
372
  #container {
369
- padding: ${Cr.padding};
370
- outline-style: ${Cr.outlineStyle};
371
- outline-width: ${Cr.outlineWidth};
372
- outline-color: ${Cr.outlineColor};
373
- border-color: ${Cr.borderColor};
374
- border-style: ${Cr.borderStyle};
373
+ padding: ${Rr.padding};
374
+ outline-style: ${Rr.outlineStyle};
375
+ outline-width: ${Rr.outlineWidth};
376
+ outline-color: ${Rr.outlineColor};
377
+ border-color: ${Rr.borderColor};
378
+ border-style: ${Rr.borderStyle};
375
379
  border-width: 1px;
376
- border-radius: ${Cr.borderRadius};
377
- ${No(Mo.borderRadius,Cr.borderRadius)};
378
- box-shadow: ${Cr.elevation02};
380
+ border-radius: ${Rr.borderRadius};
381
+ ${No(Bo.borderRadius,Rr.borderRadius)};
382
+ box-shadow: ${Rr.elevation02};
379
383
  position: relative;
380
384
  width: 100%;
381
385
  height: 100%;
@@ -387,7 +391,7 @@ const Vo=Symbol.for(""),Xo=t=>{if(t?.r===Vo)return t?._$litStatic$},qo=t=>({_$li
387
391
  grid-template-rows: max-content minmax(0, 1fr);
388
392
  grid-gap: 8px;
389
393
  box-sizing: border-box;
390
- background-color: ${Cr.colorSurface};
394
+ background-color: ${Rr.colorSurface};
391
395
  transition: box-shadow 0.2s linear, color 0.2s linear;
392
396
  }
393
397
 
@@ -400,12 +404,12 @@ const Vo=Symbol.for(""),Xo=t=>{if(t?.r===Vo)return t?._$litStatic$},qo=t=>({_$li
400
404
  }
401
405
 
402
406
  #container.selected {
403
- outline-style: ${Cr.selectedOutlineStyle};
404
- outline-width: ${Cr.selectedOutlineWidth};
405
- outline-color: ${Cr.selectedOutlineColor};
406
- border-radius: ${Cr.selectedBorderRadius};
407
- ${No(Mo.borderRadius,Cr.selectedBorderRadius)};
408
- box-shadow: ${Cr.elevation04};
407
+ outline-style: ${Rr.selectedOutlineStyle};
408
+ outline-width: ${Rr.selectedOutlineWidth};
409
+ outline-color: ${Rr.selectedOutlineColor};
410
+ border-radius: ${Rr.selectedBorderRadius};
411
+ ${No(Bo.borderRadius,Rr.selectedBorderRadius)};
412
+ box-shadow: ${Rr.elevation04};
409
413
  }
410
414
 
411
415
  #container.clickable {
@@ -413,8 +417,8 @@ const Vo=Symbol.for(""),Xo=t=>{if(t?.r===Vo)return t?._$litStatic$},qo=t=>({_$li
413
417
  }
414
418
 
415
419
  #container.clickable:hover {
416
- box-shadow: ${Cr.elevation04};
417
- border-color: ${Cr.hoverBorderColor};
420
+ box-shadow: ${Rr.elevation04};
421
+ border-color: ${Rr.hoverBorderColor};
418
422
  }
419
423
 
420
424
  #header {
@@ -425,21 +429,21 @@ const Vo=Symbol.for(""),Xo=t=>{if(t?.r===Vo)return t?._$litStatic$},qo=t=>({_$li
425
429
  text-overflow: ellipsis;
426
430
  overflow: hidden;
427
431
  word-break: break-word;
428
- color: ${Cr.colorOnSurfaceHigh};
432
+ color: ${Rr.colorOnSurfaceHigh};
429
433
  }
430
434
 
431
435
  #content {
432
436
  word-break: break-word;
433
437
  min-width: 0; /* like with flexbox, some items have a hard time shrinking when necessary */
434
438
  grid-area: content;
435
- color: ${Cr.colorOnSurfaceMedium};
439
+ color: ${Rr.colorOnSurfaceMedium};
436
440
  }
437
441
 
438
442
  #action {
439
443
  grid-area: actions;
440
444
  }
441
- `;var Ur=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Er extends Lo{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1}render(){const t={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader};return Qt`
442
- <div id="container" part="container" class=${Do(t)}>
445
+ `;var Er=function(t,o,e,r){for(var i,a=arguments.length,n=a<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,s=t.length-1;s>=0;s--)(i=t[s])&&(n=(a<3?i(n):a>3?i(o,e,n):i(o,e))||n);return a>3&&n&&Object.defineProperty(o,e,n),n};class Ir extends Lo{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1}render(){const t={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader};return Qt`
446
+ <div id="container" part="container" class=${Ao(t)}>
443
447
  ${this.clickable?Qt`
444
448
  <ft-ripple primary ?selected=${this.selected}></ft-ripple>
445
449
  `:oo}
@@ -456,4 +460,4 @@ const Vo=Symbol.for(""),Xo=t=>{if(t?.r===Vo)return t?._$litStatic$},qo=t=>({_$li
456
460
  </ft-typography>
457
461
  </div>
458
462
  </div>
459
- `}}Er.elementDefinitions={"ft-ripple":Jo,"ft-typography":wr},Er.styles=Rr,Ur([C()],Er.prototype,"title",void 0),Ur([C({type:Boolean})],Er.prototype,"clickable",void 0),Ur([C({type:Boolean})],Er.prototype,"selected",void 0),Ur([C({type:Boolean})],Er.prototype,"noHeader",void 0),W("ft-card")(Er),t.FtCard=Er,t.FtCardCssVariables=Cr,t.styles=Rr}({});
463
+ `}}Ir.elementDefinitions={"ft-ripple":Vo,"ft-typography":Cr},Ir.styles=Ur,Er([C()],Ir.prototype,"title",void 0),Er([C({type:Boolean})],Ir.prototype,"clickable",void 0),Er([C({type:Boolean})],Ir.prototype,"selected",void 0),Er([C({type:Boolean})],Ir.prototype,"noHeader",void 0),W("ft-card")(Ir),t.FtCard=Ir,t.FtCardCssVariables=Rr,t.styles=Ur}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-card",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A file uploader with drag and drop",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,10 +19,10 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-ripple": "1.1.1",
23
- "@fluid-topics/ft-typography": "1.1.1",
24
- "@fluid-topics/ft-wc-utils": "1.1.1",
22
+ "@fluid-topics/ft-ripple": "1.1.2",
23
+ "@fluid-topics/ft-typography": "1.1.2",
24
+ "@fluid-topics/ft-wc-utils": "1.1.2",
25
25
  "lit": "3.1.0"
26
26
  },
27
- "gitHead": "ceae4aed142c27cbf6034f45bb6e3f562163cc15"
27
+ "gitHead": "53ce99f657872582bca43cbb7ad691b239b22823"
28
28
  }