@fluid-topics/ft-dialog 0.1.15 → 0.1.18

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.
@@ -21,15 +21,15 @@ export declare const FtDialogCssVariables: {
21
21
  borderRadiusS: FtCssVariable;
22
22
  elevation24: FtCssVariable;
23
23
  };
24
- export default class FtDialog extends FtLitElement implements FtDialogProperties {
24
+ export declare class FtDialog extends FtLitElement implements FtDialogProperties {
25
25
  static elementDefinitions: ElementDefinitionsMap;
26
26
  opened: boolean;
27
27
  closeOnEsc: boolean;
28
28
  closeOnClickOutside: boolean;
29
29
  heading: string;
30
30
  icon: string;
31
- getStyles(): import("lit").CSSResult;
32
- protected getTemplate(): import("lit-html").TemplateResult<1> | null;
31
+ static get styles(): import("lit").CSSResult;
32
+ protected render(): import("lit-html").TemplateResult<1> | null;
33
33
  updated(properties: PropertyValues<FtDialog>): void;
34
34
  connectedCallback(): void;
35
35
  disconnectedCallback(): void;
@@ -0,0 +1,313 @@
1
+ !function(){
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
+ * This code may only be used under the BSD style license found at
6
+ * http://polymer.github.io/LICENSE.txt
7
+ * The complete set of authors may be found at
8
+ * http://polymer.github.io/AUTHORS.txt
9
+ * The complete set of contributors may be found at
10
+ * http://polymer.github.io/CONTRIBUTORS.txt
11
+ * Code distributed by Google as part of the polymer project is also
12
+ * subject to an additional IP rights grant found at
13
+ * http://polymer.github.io/PATENTS.txt
14
+ *
15
+ * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
+ */
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);d(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,h),h.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,n=o._getDefinition(e);return n?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},d=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){f(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const m=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};m(ShadowRoot,"createElement",document),m(ShadowRoot,"importNode",document),m(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class s{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(t){const e=window.customElements.define;window.customElements.define=(t,i,o)=>{try{e.bind(window.customElements)(t,i,o)}catch(e){console.warn(t,i,o,e)}}}
18
+ /**
19
+ * @license
20
+ * Copyright 2017 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */const t=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};
23
+ /**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */function e(e){return(i,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(e,i,o):t(e,i)
28
+ /**
29
+ * @license
30
+ * Copyright 2021 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */}var i;null===(i=window.HTMLSlotElement)||void 0===i||i.prototype.assignedElements;const o=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}
33
+ /**
34
+ * @license
35
+ * Copyright 2019 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ */,n=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),r=new Map;class a{constructor(t,e){if(this._$cssResult$=!0,e!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=r.get(this.cssText);return n&&void 0===t&&(r.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const l=t=>new a("string"==typeof t?t:t+"",s),h=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new a(i,s)},c=(t,e)=>{n?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},p=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return l(e)})(t):t
38
+ /**
39
+ * @license
40
+ * Copyright 2017 Google LLC
41
+ * SPDX-License-Identifier: BSD-3-Clause
42
+ */;var d;const f=window.trustedTypes,u=f?f.emptyScript:"",y=window.reactiveElementPolyfillSupport,g={toAttribute(t,e){switch(e){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},m=(t,e)=>e!==t&&(e==e||t==t),v={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:m};class b extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=v){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||v}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(p(t))}else void 0!==t&&e.push(p(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return c(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=v){var o,n;const s=this.constructor._$Eh(t,i);if(void 0!==s&&!0===i.reflect){const r=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:g.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Ei=null}}_$AK(t,e){var i,o,n;const s=this.constructor,r=s._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=s.getPropertyOptions(r),a=t.converter,l=null!==(n=null!==(o=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==n?n:g.fromAttribute;this._$Ei=r,this[r]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||m)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
43
+ /**
44
+ * @license
45
+ * Copyright 2017 Google LLC
46
+ * SPDX-License-Identifier: BSD-3-Clause
47
+ */
48
+ var x;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==y||y({ReactiveElement:b}),(null!==(d=globalThis.reactiveElementVersions)&&void 0!==d?d:globalThis.reactiveElementVersions=[]).push("1.2.2");const w=globalThis.trustedTypes,$=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,O=`lit$${(Math.random()+"").slice(9)}$`,S="?"+O,E=`<${S}>`,C=document,N=(t="")=>C.createComment(t),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,F=/>/g,L=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,z=/'/g,A=/"/g,T=/^(?:script|style|textarea|title)$/i,B=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),P=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),j=new WeakMap,_=C.createTreeWalker(C,129,null,!1),W=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=U;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(r.lastIndex=c,l=r.exec(i),null!==l);)c=r.lastIndex,r===U?"!--"===l[1]?r=k:void 0!==l[1]?r=F:void 0!==l[2]?(T.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=L):void 0!==l[3]&&(r=L):r===L?">"===l[0]?(r=null!=n?n:U,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?L:'"'===l[3]?A:z):r===A||r===z?r=L:r===k||r===F?r=U:(r=L,n=void 0);const p=r===L&&t[e+1].startsWith("/>")?" ":"";s+=r===U?i+E:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+O+p):i+O+(-2===h?(o.push(void 0),e):p)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(a):a,o]};class I{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=W(t,e);if(this.el=I.createElement(l,i),_.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=_.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(O)){const i=h[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(O),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?J:"?"===e[1]?q:"@"===e[1]?G:V})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(T.test(o.tagName)){const t=o.textContent.split(O),e=t.length-1;if(e>0){o.textContent=w?w.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],N()),_.nextNode(),a.push({type:2,index:++n});o.append(t[e],N())}}}else if(8===o.nodeType)if(o.data===S)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(O,t+1));)a.push({type:7,index:n}),t+=O.length-1}n++}}static createElement(t,e){const i=C.createElement("template");return i.innerHTML=t,i}}function H(t,e,i=t,o){var n,s,r,a;if(e===P)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const h=R(e)?void 0:e._$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,i,o)),void 0!==o?(null!==(r=(a=i)._$Cl)&&void 0!==r?r:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=H(t,l._$AS(t,e.values),l,o)),e}class K{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:C).importNode(i,!0);_.currentNode=n;let s=_.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new Z(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new Q(s,this,t)),this.v.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=_.nextNode(),r++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Z{constructor(t,e,i,o){var n;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=H(this,t,e),R(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==P&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return M(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==D&&R(this._$AH)?this._$AA.nextSibling.data=t:this.S(C.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=I.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new K(n,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=j.get(t.strings);return void 0===e&&j.set(t.strings,e=new I(t)),e}A(t){M(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new Z(this.M(N()),this.M(N()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class V{constructor(t,e,i,o,n){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=H(this,t,e,0),s=!R(t)||t!==this._$AH&&t!==P,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=H(this,o[i+r],e,r),a===P&&(a=this._$AH[r]),s||(s=!R(a)||a!==this._$AH[r]),a===D?t=D:t!==D&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.k(t)}k(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class J extends V{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===D?void 0:t}}const X=w?w.emptyScript:"";class q extends V{constructor(){super(...arguments),this.type=4}k(t){t&&t!==D?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class G extends V{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=H(this,t,e,0))&&void 0!==i?i:D)===P)return;const o=this._$AH,n=t===D&&o!==D||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==D&&(o===D||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){H(this,t)}}const Y=window.litHtmlPolyfillSupport;
49
+ /**
50
+ * @license
51
+ * Copyright 2017 Google LLC
52
+ * SPDX-License-Identifier: BSD-3-Clause
53
+ */
54
+ var tt,et;null==Y||Y(I,Z),(null!==(x=globalThis.litHtmlVersions)&&void 0!==x?x:globalThis.litHtmlVersions=[]).push("2.1.3");class it extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,n;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new Z(e.insertBefore(N(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return P}}it.finalized=!0,it._$litElement$=!0,null===(tt=globalThis.litElementHydrateSupport)||void 0===tt||tt.call(globalThis,{LitElement:it});const ot=globalThis.litElementPolyfillSupport;null==ot||ot({LitElement:it}),(null!==(et=globalThis.litElementVersions)&&void 0!==et?et:globalThis.litElementVersions=[]).push("3.1.2");class nt{constructor(t,e,i,o,n){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=n,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new nt(t,e,void 0,i)}static extend(t,e,i){return new nt(t,e.category,e,i)}static external(t,e){return new nt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return h`var(${l(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):l(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const st={colorPrimary:nt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:nt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:nt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:nt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:nt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:nt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:nt.create("--ft-color-error","COLOR","#B00020"),colorOutline:nt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:nt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:nt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:nt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:nt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:nt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:nt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:nt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:nt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:nt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:nt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:nt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:nt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:nt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:nt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:nt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:nt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:nt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:nt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:nt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:nt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:nt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:nt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:nt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:nt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:nt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:nt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:nt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:nt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:nt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:nt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:nt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:nt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:nt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:nt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:nt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:nt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:nt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:nt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:nt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:nt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:nt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:nt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:nt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:nt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:nt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:nt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:nt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:nt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:nt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:nt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:nt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:nt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:nt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:nt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
55
+ /**
56
+ * @license
57
+ * Copyright 2021 Google LLC
58
+ * SPDX-License-Identifier: BSD-3-Clause
59
+ */class rt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return c(n,this.constructor.elementStyles),n}}}(it)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),B`
60
+ ${t.map((t=>B`
61
+ <style>${t}</style>
62
+ `))}
63
+ ${this.getTemplate()}
64
+ `}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var at,lt;h`
65
+ .ft-no-text-select {
66
+ -webkit-touch-callout: none;
67
+ -webkit-user-select: none;
68
+ -khtml-user-select: none;
69
+ -moz-user-select: none;
70
+ -ms-user-select: none;
71
+ user-select: none;
72
+ }
73
+ `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(lt=null===(at=window.safari)||void 0===at?void 0:at.pushNotification)||void 0===lt||lt.toString());
74
+ /**
75
+ * @license
76
+ * Copyright 2020 Google LLC
77
+ * SPDX-License-Identifier: BSD-3-Clause
78
+ */
79
+ const ht=t=>({_$litStatic$:t}),ct=new Map,pt=(t=>(e,...i)=>{var o;const n=i.length;let s,r;const a=[],l=[];let h,c=0,p=!1;for(;c<n;){for(h=e[c];c<n&&void 0!==(r=i[c],s=null===(o=r)||void 0===o?void 0:o._$litStatic$);)h+=s+e[++c],p=!0;l.push(r),a.push(h),c++}if(c===n&&a.push(e[n]),p){const t=a.join("$$lit$$");void 0===(e=ct.get(t))&&(a.raw=a,ct.set(t,e=a)),i=l}return t(e,...i)})(B);var dt,ft=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!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"}(dt||(dt={}));const ut=nt.extend("--ft-typography-font-family",st.titleFont),yt=nt.extend("--ft-typography-font-family",st.contentFont),gt={fontFamily:yt,fontSize:nt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:nt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:nt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:nt.create("--ft-typography-line-height","SIZE","24px"),textTransform:nt.create("--ft-typography-text-transform","UNKNOWN","inherit")},mt=nt.extend("--ft-typography-title-font-family",ut),vt=nt.extend("--ft-typography-title-font-size",gt.fontSize,"20px"),bt=nt.extend("--ft-typography-title-font-weight",gt.fontWeight,"normal"),xt=nt.extend("--ft-typography-title-letter-spacing",gt.letterSpacing,"0.15px"),wt=nt.extend("--ft-typography-title-line-height",gt.lineHeight,"24px"),$t=nt.extend("--ft-typography-title-text-transform",gt.textTransform,"inherit"),Ot=nt.extend("--ft-typography-title-dense-font-family",ut),St=nt.extend("--ft-typography-title-dense-font-size",gt.fontSize,"14px"),Et=nt.extend("--ft-typography-title-dense-font-weight",gt.fontWeight,"normal"),Ct=nt.extend("--ft-typography-title-dense-letter-spacing",gt.letterSpacing,"0.105px"),Nt=nt.extend("--ft-typography-title-dense-line-height",gt.lineHeight,"24px"),Rt=nt.extend("--ft-typography-title-dense-text-transform",gt.textTransform,"inherit"),Mt=nt.extend("--ft-typography-subtitle1-font-family",yt),Ut=nt.extend("--ft-typography-subtitle1-font-size",gt.fontSize,"16px"),kt=nt.extend("--ft-typography-subtitle1-font-weight",gt.fontWeight,"600"),Ft=nt.extend("--ft-typography-subtitle1-letter-spacing",gt.letterSpacing,"0.144px"),Lt=nt.extend("--ft-typography-subtitle1-line-height",gt.lineHeight,"24px"),zt=nt.extend("--ft-typography-subtitle1-text-transform",gt.textTransform,"inherit"),At=nt.extend("--ft-typography-subtitle2-font-family",yt),Tt=nt.extend("--ft-typography-subtitle2-font-size",gt.fontSize,"14px"),Bt=nt.extend("--ft-typography-subtitle2-font-weight",gt.fontWeight,"normal"),Pt=nt.extend("--ft-typography-subtitle2-letter-spacing",gt.letterSpacing,"0.098px"),Dt=nt.extend("--ft-typography-subtitle2-line-height",gt.lineHeight,"24px"),jt=nt.extend("--ft-typography-subtitle2-text-transform",gt.textTransform,"inherit"),_t=nt.extend("--ft-typography-body1-font-family",yt),Wt=nt.extend("--ft-typography-body1-font-size",gt.fontSize,"16px"),It=nt.extend("--ft-typography-body1-font-weight",gt.fontWeight,"normal"),Ht=nt.extend("--ft-typography-body1-letter-spacing",gt.letterSpacing,"0.496px"),Kt=nt.extend("--ft-typography-body1-line-height",gt.lineHeight,"24px"),Zt=nt.extend("--ft-typography-body1-text-transform",gt.textTransform,"inherit"),Vt=nt.extend("--ft-typography-body2-font-family",yt),Jt=nt.extend("--ft-typography-body2-font-size",gt.fontSize,"14px"),Xt=nt.extend("--ft-typography-body2-font-weight",gt.fontWeight,"normal"),qt=nt.extend("--ft-typography-body2-letter-spacing",gt.letterSpacing,"0.252px"),Gt=nt.extend("--ft-typography-body2-line-height",gt.lineHeight,"20px"),Qt=nt.extend("--ft-typography-body2-text-transform",gt.textTransform,"inherit"),Yt=nt.extend("--ft-typography-caption-font-family",yt),te=nt.extend("--ft-typography-caption-font-size",gt.fontSize,"12px"),ee=nt.extend("--ft-typography-caption-font-weight",gt.fontWeight,"normal"),ie=nt.extend("--ft-typography-caption-letter-spacing",gt.letterSpacing,"0.396px"),oe=nt.extend("--ft-typography-caption-line-height",gt.lineHeight,"16px"),ne=nt.extend("--ft-typography-caption-text-transform",gt.textTransform,"inherit"),se=nt.extend("--ft-typography-breadcrumb-font-family",yt),re=nt.extend("--ft-typography-breadcrumb-font-size",gt.fontSize,"10px"),ae=nt.extend("--ft-typography-breadcrumb-font-weight",gt.fontWeight,"normal"),le=nt.extend("--ft-typography-breadcrumb-letter-spacing",gt.letterSpacing,"0.33px"),he=nt.extend("--ft-typography-breadcrumb-line-height",gt.lineHeight,"16px"),ce=nt.extend("--ft-typography-breadcrumb-text-transform",gt.textTransform,"inherit"),pe=nt.extend("--ft-typography-overline-font-family",yt),de=nt.extend("--ft-typography-overline-font-size",gt.fontSize,"10px"),fe=nt.extend("--ft-typography-overline-font-weight",gt.fontWeight,"normal"),ue=nt.extend("--ft-typography-overline-letter-spacing",gt.letterSpacing,"1.5px"),ye=nt.extend("--ft-typography-overline-line-height",gt.lineHeight,"16px"),ge=nt.extend("--ft-typography-overline-text-transform",gt.textTransform,"uppercase"),me=nt.extend("--ft-typography-button-font-family",yt),ve=nt.extend("--ft-typography-button-font-size",gt.fontSize,"14px"),be=nt.extend("--ft-typography-button-font-weight",gt.fontWeight,"600"),xe=nt.extend("--ft-typography-button-letter-spacing",gt.letterSpacing,"1.246px"),we=nt.extend("--ft-typography-button-line-height",gt.lineHeight,"16px"),$e=nt.extend("--ft-typography-button-text-transform",gt.textTransform,"uppercase"),Oe=h`
80
+ .ft-typography--title {
81
+ font-family: ${mt};
82
+ font-size: ${vt};
83
+ font-weight: ${bt};
84
+ letter-spacing: ${xt};
85
+ line-height: ${wt};
86
+ text-transform: ${$t};
87
+ }
88
+ `,Se=h`
89
+ .ft-typography--title-dense {
90
+ font-family: ${Ot};
91
+ font-size: ${St};
92
+ font-weight: ${Et};
93
+ letter-spacing: ${Ct};
94
+ line-height: ${Nt};
95
+ text-transform: ${Rt};
96
+ }
97
+ `,Ee=h`
98
+ .ft-typography--subtitle1 {
99
+ font-family: ${Mt};
100
+ font-size: ${Ut};
101
+ font-weight: ${kt};
102
+ letter-spacing: ${Ft};
103
+ line-height: ${Lt};
104
+ text-transform: ${zt};
105
+ }
106
+ `,Ce=h`
107
+ .ft-typography--subtitle2 {
108
+ font-family: ${At};
109
+ font-size: ${Tt};
110
+ font-weight: ${Bt};
111
+ letter-spacing: ${Pt};
112
+ line-height: ${Dt};
113
+ text-transform: ${jt};
114
+ }
115
+
116
+ `,Ne=h`
117
+ .ft-typography--body1 {
118
+ font-family: ${_t};
119
+ font-size: ${Wt};
120
+ font-weight: ${It};
121
+ letter-spacing: ${Ht};
122
+ line-height: ${Kt};
123
+ text-transform: ${Zt};
124
+ }
125
+ `,Re=h`
126
+ .ft-typography--body2 {
127
+ font-family: ${Vt};
128
+ font-size: ${Jt};
129
+ font-weight: ${Xt};
130
+ letter-spacing: ${qt};
131
+ line-height: ${Gt};
132
+ text-transform: ${Qt};
133
+ }
134
+ `,Me=h`
135
+ .ft-typography--caption {
136
+ font-family: ${Yt};
137
+ font-size: ${te};
138
+ font-weight: ${ee};
139
+ letter-spacing: ${ie};
140
+ line-height: ${oe};
141
+ text-transform: ${ne};
142
+ }
143
+ `,Ue=h`
144
+ .ft-typography--breadcrumb {
145
+ font-family: ${se};
146
+ font-size: ${re};
147
+ font-weight: ${ae};
148
+ letter-spacing: ${le};
149
+ line-height: ${he};
150
+ text-transform: ${ce};
151
+ }
152
+ `,ke=h`
153
+ .ft-typography--overline {
154
+ font-family: ${pe};
155
+ font-size: ${de};
156
+ font-weight: ${fe};
157
+ letter-spacing: ${ue};
158
+ line-height: ${ye};
159
+ text-transform: ${ge};
160
+ }
161
+ `,Fe=h`
162
+ .ft-typography--button {
163
+ font-family: ${me};
164
+ font-size: ${ve};
165
+ font-weight: ${be};
166
+ letter-spacing: ${xe};
167
+ line-height: ${we};
168
+ text-transform: ${$e};
169
+ }
170
+ `;class Le extends rt{constructor(){super(...arguments),this.variant=dt.body1}render(){return this.element?pt`
171
+ <${ht(this.element)}
172
+ class="ft-typography ft-typography--${this.variant}">
173
+ <slot></slot>
174
+ </${ht(this.element)}>
175
+ `:pt`
176
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
177
+ `}}Le.styles=[Oe,Se,Ee,Ce,Ne,Re,Me,Ue,ke,Fe,h`
178
+ .ft-typography {
179
+ vertical-align: inherit;
180
+ }
181
+ `],ft([e()],Le.prototype,"element",void 0),ft([e()],Le.prototype,"variant",void 0),o("ft-typography")(Le);
182
+ /**
183
+ * @license
184
+ * Copyright 2021 Google LLC
185
+ * SPDX-LIcense-Identifier: Apache-2.0
186
+ */
187
+ const ze=h`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`
188
+ /**
189
+ * @license
190
+ * Copyright 2018 Google LLC
191
+ * SPDX-License-Identifier: Apache-2.0
192
+ */;let Ae=class extends it{render(){return B`<span><slot></slot></span>`}};Ae.styles=[ze],Ae=
193
+ /*! *****************************************************************************
194
+ Copyright (c) Microsoft Corporation.
195
+
196
+ Permission to use, copy, modify, and/or distribute this software for any
197
+ purpose with or without fee is hereby granted.
198
+
199
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
200
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
201
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
202
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
203
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
204
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
205
+ PERFORMANCE OF THIS SOFTWARE.
206
+ ***************************************************************************** */
207
+ function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r}([(t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:o}=e;return{kind:i,elements:o,finisher(e){window.customElements.define(t,e)}}})(t,e))("mwc-icon")],Ae);var Te=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Be=nt.create("--ft-dialog-z-index","NUMBER","2"),Pe=nt.create("--ft-dialog-overlay-background-color","COLOR","rgba(0, 0, 0, 0.3)"),De=nt.create("--ft-dialog-height","SIZE","unset"),je=nt.create("--ft-dialog-width","SIZE","unset"),_e=nt.create("--ft-dialog-min-width","SIZE","unset"),We=nt.create("--ft-dialog-padding-top","SIZE","20px"),Ie=nt.create("--ft-dialog-padding-side","SIZE","16px"),He=nt.create("--ft-dialog-padding-buttons","SIZE","20px"),Ke=nt.external(st.colorSurface,"Design system"),Ze=nt.external(st.colorOnSurfaceMedium,"Design system"),Ve=nt.external(st.borderRadiusS,"Design system"),Je=nt.external(st.elevation24,"Design system");class Xe extends rt{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.heading="",this.icon=""}static get styles(){return h`
208
+ .ft-dialog {
209
+ position: fixed;
210
+ top: 0;
211
+ right: 0;
212
+ bottom: 0;
213
+ left: 0;
214
+ z-index: ${Be};
215
+
216
+ display: flex;
217
+ flex-direction: column;
218
+ justify-content: center;
219
+ align-items: center;
220
+
221
+ margin: auto;
222
+ }
223
+
224
+ .ft-dialog-overlay {
225
+ position: fixed;
226
+ top: 0;
227
+ right: 0;
228
+ bottom: 0;
229
+ left: 0;
230
+
231
+ height: 100%;
232
+ width: 100%;
233
+
234
+ background-color: ${Pe};
235
+
236
+ }
237
+
238
+ .ft-dialog-wrapper {
239
+ position: fixed;
240
+ display: flex;
241
+ flex-direction: column;
242
+
243
+ width: ${je};
244
+ height: ${De};
245
+ max-width: 95vw;
246
+ max-height: 95vh;
247
+ min-width: ${_e};
248
+
249
+ padding-top: ${We};
250
+ padding-right: ${Ie};
251
+ padding-left: ${Ie};
252
+
253
+ background-color: ${Ke};
254
+
255
+ border-radius: ${Ve};
256
+ box-shadow: ${Je};
257
+ }
258
+
259
+ .ft-dialog-content {
260
+ flex-grow: 2;
261
+ overflow: auto;
262
+ }
263
+
264
+ .ft-dialog-heading {
265
+ display: flex;
266
+ align-items: center;
267
+ margin-bottom: 20px;
268
+ gap: 8px;
269
+
270
+ color: ${Ze};
271
+ }
272
+
273
+ .ft-dialog-buttons {
274
+ padding-top: ${He};
275
+ }
276
+
277
+ slot[name=buttons] {
278
+ display: flex;
279
+ align-items: center;
280
+ justify-content: flex-end;
281
+ gap: 8px;
282
+ }
283
+
284
+ slot[name=buttons]::slotted(*) {
285
+ margin-top: 8px;
286
+ margin-bottom: 8px
287
+ }
288
+
289
+ `}render(){return this.opened?B`
290
+ <div class="ft-dialog">
291
+ <div class="ft-dialog-overlay" @click="${()=>this.watchClickOutside()}"></div>
292
+ <div class="ft-dialog-wrapper">
293
+ ${this.heading?B`
294
+ <div class="ft-dialog-heading">
295
+ ${this.icon?B`
296
+ <mwc-icon>${this.icon}</mwc-icon>`:void 0}
297
+ <ft-typography element="span" variant="title">${this.heading}</ft-typography>
298
+ </div>
299
+ `:null}
300
+ <div class="ft-dialog-content">
301
+ <slot></slot>
302
+ </div>
303
+ <div class="ft-dialog-buttons">
304
+ <slot name="buttons"></slot>
305
+ </div>
306
+ </div>
307
+ </div>
308
+ `:null}updated(t){if(t.has("opened")){const t=new CustomEvent("opened-changed",{detail:{opened:this.opened}});this.dispatchEvent(t)}}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this.watchEscapeKey.bind(this))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this.watchEscapeKey.bind(this))}close(){this.opened=!1}open(){this.opened=!0}watchEscapeKey(t){"Escape"===t.key&&this.closeOnEsc&&this.close()}watchClickOutside(){this.closeOnClickOutside&&this.close()}}Xe.elementDefinitions={"ft-typography":Le,"mwc-icon":Ae},Te([e({type:Boolean,hasChanged:(t,e)=>!1===e&&!0===t||!0===e&&!1===t})],Xe.prototype,"opened",void 0),Te([e({type:Boolean})],Xe.prototype,"closeOnEsc",void 0),Te([e({type:Boolean})],Xe.prototype,"closeOnClickOutside",void 0),Te([e({type:String})],Xe.prototype,"heading",void 0),Te([e({type:String})],Xe.prototype,"icon",void 0),o("ft-dialog")(function t(e){var i;let o;if("elementDefinitions"in e){o={};const i=e.elementDefinitions;for(let e in i)o[e]=t(i[e])}return i=class extends e{constructor(...t){super(t),this._constructor=this.constructor}render(){var t;let i=null!==(t=e.styles)&&void 0!==t?t:[];return Array.isArray(i)||(i=[i]),B`
309
+ ${i.map((t=>B`
310
+ <style>${t}</style>
311
+ `))}
312
+ ${super.render()}
313
+ `}},i.styles=void 0,i.elementDefinitions=o,i}(Xe))}();
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { css, html } from "lit";
8
8
  import { property, } from "lit/decorators.js";
9
- import { customElement, designSystemVariables, FtCssVariable, FtLitElement } from "@fluid-topics/ft-wc-utils";
9
+ import { designSystemVariables, FtCssVariable, FtLitElement } from "@fluid-topics/ft-wc-utils";
10
10
  import { FtTypography } from "@fluid-topics/ft-typography";
11
11
  import { Icon } from "@material/mwc-icon";
12
12
  export const FtDialogCssVariables = {
@@ -23,7 +23,7 @@ export const FtDialogCssVariables = {
23
23
  borderRadiusS: FtCssVariable.external(designSystemVariables.borderRadiusS, "Design system"),
24
24
  elevation24: FtCssVariable.external(designSystemVariables.elevation24, "Design system"),
25
25
  };
26
- let FtDialog = class FtDialog extends FtLitElement {
26
+ export class FtDialog extends FtLitElement {
27
27
  constructor() {
28
28
  super(...arguments);
29
29
  this.opened = false;
@@ -32,7 +32,7 @@ let FtDialog = class FtDialog extends FtLitElement {
32
32
  this.heading = "";
33
33
  this.icon = "";
34
34
  }
35
- getStyles() {
35
+ static get styles() {
36
36
  //language=css
37
37
  return css `
38
38
  .ft-dialog {
@@ -118,7 +118,7 @@ let FtDialog = class FtDialog extends FtLitElement {
118
118
 
119
119
  `;
120
120
  }
121
- getTemplate() {
121
+ render() {
122
122
  if (!this.opened) {
123
123
  return null;
124
124
  }
@@ -173,7 +173,7 @@ let FtDialog = class FtDialog extends FtLitElement {
173
173
  this.close();
174
174
  }
175
175
  }
176
- };
176
+ }
177
177
  FtDialog.elementDefinitions = {
178
178
  "ft-typography": FtTypography,
179
179
  "mwc-icon": Icon,
@@ -199,8 +199,4 @@ __decorate([
199
199
  __decorate([
200
200
  property({ type: String })
201
201
  ], FtDialog.prototype, "icon", void 0);
202
- FtDialog = __decorate([
203
- customElement("ft-dialog")
204
- ], FtDialog);
205
- export default FtDialog;
206
202
  //# sourceMappingURL=ft-dialog.js.map