@fluid-topics/ft-dialog 0.1.16 → 0.2.0

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,344 @@
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||[]);f(n,l,a);const c={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,c),this._definitionsByClass.set(n,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(r.set(n,c),c.standInClass=h);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)s.delete(t),u(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.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 c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(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=h(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)}},f=(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)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){d(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 x=[document];const g=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),x.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const m=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.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,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(Le){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}
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)}};function e(e){return(i,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(e,i,o):t(e,i)
23
+ /**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */}
28
+ /**
29
+ * @license
30
+ * Copyright 2021 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */
33
+ 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)}
34
+ /**
35
+ * @license
36
+ * Copyright 2019 Google LLC
37
+ * SPDX-License-Identifier: BSD-3-Clause
38
+ */,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),c=(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)},h=(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
39
+ /**
40
+ * @license
41
+ * Copyright 2017 Google LLC
42
+ * SPDX-License-Identifier: BSD-3-Clause
43
+ */;var f;const d=window.trustedTypes,u=d?d.emptyScript:"",y=window.reactiveElementPolyfillSupport,x={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}},g=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:g};class v 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=m){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)||m}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 h(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=m){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:x.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:x.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||g)(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){}}
44
+ /**
45
+ * @license
46
+ * Copyright 2017 Google LLC
47
+ * SPDX-License-Identifier: BSD-3-Clause
48
+ */
49
+ var b;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==y||y({ReactiveElement:v}),(null!==(f=globalThis.reactiveElementVersions)&&void 0!==f?f: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,N=`<${S}>`,E=document,C=(t="")=>E.createComment(t),R=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,F=/>/g,z=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,j=/'/g,L=/"/g,A=/^(?:script|style|textarea|title)$/i,T=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),_=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),D=new WeakMap,P=E.createTreeWalker(E,129,null,!1),W=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=k;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(r.lastIndex=h,l=r.exec(i),null!==l);)h=r.lastIndex,r===k?"!--"===l[1]?r=U:void 0!==l[1]?r=F:void 0!==l[2]?(A.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=z):void 0!==l[3]&&(r=z):r===z?">"===l[0]?(r=null!=n?n:k,c=-1):void 0===l[1]?c=-2:(c=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?z:'"'===l[3]?L:j):r===L||r===j?r=z:r===U||r===F?r=k:(r=z,n=void 0);const p=r===z&&t[e+1].startsWith("/>")?" ":"";s+=r===k?i+N:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+O+p):i+O+(-2===c?(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,c]=W(t,e);if(this.el=I.createElement(l,i),P.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=P.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=c[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]?q:"?"===e[1]?X:"@"===e[1]?G:V})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(A.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],C()),P.nextNode(),a.push({type:2,index:++n});o.append(t[e],C())}}}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=E.createElement("template");return i.innerHTML=t,i}}function K(t,e,i=t,o){var n,s,r,a;if(e===_)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const c=R(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===c?l=void 0:(l=new c(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=K(t,l._$AS(t,e.values),l,o)),e}class H{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:E).importNode(i,!0);P.currentNode=n;let s=P.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=P.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=B,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=K(this,t,e),R(t)?t===B||null==t||""===t?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==_&&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!==B&&R(this._$AH)?this._$AA.nextSibling.data=t:this.S(E.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 H(n,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=D.get(t.strings);return void 0===e&&D.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(C()),this.M(C()),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=B,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=B}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=K(this,t,e,0),s=!R(t)||t!==this._$AH&&t!==_,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=K(this,o[i+r],e,r),a===_&&(a=this._$AH[r]),s||(s=!R(a)||a!==this._$AH[r]),a===B?t=B:t!==B&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.k(t)}k(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class q extends V{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===B?void 0:t}}const J=w?w.emptyScript:"";class X extends V{constructor(){super(...arguments),this.type=4}k(t){t&&t!==B?this.element.setAttribute(this.name,J):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=K(this,t,e,0))&&void 0!==i?i:B)===_)return;const o=this._$AH,n=t===B&&o!==B||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==B&&(o===B||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){K(this,t)}}const Y=window.litHtmlPolyfillSupport;
50
+ /**
51
+ * @license
52
+ * Copyright 2017 Google LLC
53
+ * SPDX-License-Identifier: BSD-3-Clause
54
+ */
55
+ var tt,et;null==Y||Y(I,Z),(null!==(b=globalThis.litHtmlVersions)&&void 0!==b?b:globalThis.litHtmlVersions=[]).push("2.1.3");class it extends v{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(C(),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 _}}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 c`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")};
56
+ /**
57
+ * @license
58
+ * Copyright 2021 Google LLC
59
+ * SPDX-License-Identifier: BSD-3-Clause
60
+ */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 h(n,this.constructor.elementStyles),n}}}(it)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),T`
61
+ ${t.map((t=>T`
62
+ <style>${t}</style>
63
+ `))}
64
+ ${this.getTemplate()}
65
+ `}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var at,lt;c`
66
+ .ft-no-text-select {
67
+ -webkit-touch-callout: none;
68
+ -webkit-user-select: none;
69
+ -khtml-user-select: none;
70
+ -moz-user-select: none;
71
+ -ms-user-select: none;
72
+ user-select: none;
73
+ }
74
+ `,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());
75
+ /**
76
+ * @license
77
+ * Copyright 2020 Google LLC
78
+ * SPDX-License-Identifier: BSD-3-Clause
79
+ */
80
+ const ct=t=>({_$litStatic$:t}),ht=new Map,pt=(t=>(e,...i)=>{var o;const n=i.length;let s,r;const a=[],l=[];let c,h=0,p=!1;for(;h<n;){for(c=e[h];h<n&&void 0!==(r=i[h],s=null===(o=r)||void 0===o?void 0:o._$litStatic$);)c+=s+e[++h],p=!0;l.push(r),a.push(c),h++}if(h===n&&a.push(e[n]),p){const t=a.join("$$lit$$");void 0===(e=ht.get(t))&&(a.raw=a,ht.set(t,e=a)),i=l}return t(e,...i)})(T);var ft,dt=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"}(ft||(ft={}));const ut=nt.extend("--ft-typography-font-family",st.titleFont),yt=nt.extend("--ft-typography-font-family",st.contentFont),xt={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")},gt=nt.extend("--ft-typography-title-font-family",ut),mt=nt.extend("--ft-typography-title-font-size",xt.fontSize,"20px"),vt=nt.extend("--ft-typography-title-font-weight",xt.fontWeight,"normal"),bt=nt.extend("--ft-typography-title-letter-spacing",xt.letterSpacing,"0.15px"),wt=nt.extend("--ft-typography-title-line-height",xt.lineHeight,"24px"),$t=nt.extend("--ft-typography-title-text-transform",xt.textTransform,"inherit"),Ot=nt.extend("--ft-typography-title-dense-font-family",ut),St=nt.extend("--ft-typography-title-dense-font-size",xt.fontSize,"14px"),Nt=nt.extend("--ft-typography-title-dense-font-weight",xt.fontWeight,"normal"),Et=nt.extend("--ft-typography-title-dense-letter-spacing",xt.letterSpacing,"0.105px"),Ct=nt.extend("--ft-typography-title-dense-line-height",xt.lineHeight,"24px"),Rt=nt.extend("--ft-typography-title-dense-text-transform",xt.textTransform,"inherit"),Mt=nt.extend("--ft-typography-subtitle1-font-family",yt),kt=nt.extend("--ft-typography-subtitle1-font-size",xt.fontSize,"16px"),Ut=nt.extend("--ft-typography-subtitle1-font-weight",xt.fontWeight,"600"),Ft=nt.extend("--ft-typography-subtitle1-letter-spacing",xt.letterSpacing,"0.144px"),zt=nt.extend("--ft-typography-subtitle1-line-height",xt.lineHeight,"24px"),jt=nt.extend("--ft-typography-subtitle1-text-transform",xt.textTransform,"inherit"),Lt=nt.extend("--ft-typography-subtitle2-font-family",yt),At=nt.extend("--ft-typography-subtitle2-font-size",xt.fontSize,"14px"),Tt=nt.extend("--ft-typography-subtitle2-font-weight",xt.fontWeight,"normal"),_t=nt.extend("--ft-typography-subtitle2-letter-spacing",xt.letterSpacing,"0.098px"),Bt=nt.extend("--ft-typography-subtitle2-line-height",xt.lineHeight,"24px"),Dt=nt.extend("--ft-typography-subtitle2-text-transform",xt.textTransform,"inherit"),Pt=nt.extend("--ft-typography-body1-font-family",yt),Wt=nt.extend("--ft-typography-body1-font-size",xt.fontSize,"16px"),It=nt.extend("--ft-typography-body1-font-weight",xt.fontWeight,"normal"),Kt=nt.extend("--ft-typography-body1-letter-spacing",xt.letterSpacing,"0.496px"),Ht=nt.extend("--ft-typography-body1-line-height",xt.lineHeight,"24px"),Zt=nt.extend("--ft-typography-body1-text-transform",xt.textTransform,"inherit"),Vt=nt.extend("--ft-typography-body2-font-family",yt),qt=nt.extend("--ft-typography-body2-font-size",xt.fontSize,"14px"),Jt=nt.extend("--ft-typography-body2-font-weight",xt.fontWeight,"normal"),Xt=nt.extend("--ft-typography-body2-letter-spacing",xt.letterSpacing,"0.252px"),Gt=nt.extend("--ft-typography-body2-line-height",xt.lineHeight,"20px"),Qt=nt.extend("--ft-typography-body2-text-transform",xt.textTransform,"inherit"),Yt=nt.extend("--ft-typography-caption-font-family",yt),te=nt.extend("--ft-typography-caption-font-size",xt.fontSize,"12px"),ee=nt.extend("--ft-typography-caption-font-weight",xt.fontWeight,"normal"),ie=nt.extend("--ft-typography-caption-letter-spacing",xt.letterSpacing,"0.396px"),oe=nt.extend("--ft-typography-caption-line-height",xt.lineHeight,"16px"),ne=nt.extend("--ft-typography-caption-text-transform",xt.textTransform,"inherit"),se=nt.extend("--ft-typography-breadcrumb-font-family",yt),re=nt.extend("--ft-typography-breadcrumb-font-size",xt.fontSize,"10px"),ae=nt.extend("--ft-typography-breadcrumb-font-weight",xt.fontWeight,"normal"),le=nt.extend("--ft-typography-breadcrumb-letter-spacing",xt.letterSpacing,"0.33px"),ce=nt.extend("--ft-typography-breadcrumb-line-height",xt.lineHeight,"16px"),he=nt.extend("--ft-typography-breadcrumb-text-transform",xt.textTransform,"inherit"),pe=nt.extend("--ft-typography-overline-font-family",yt),fe=nt.extend("--ft-typography-overline-font-size",xt.fontSize,"10px"),de=nt.extend("--ft-typography-overline-font-weight",xt.fontWeight,"normal"),ue=nt.extend("--ft-typography-overline-letter-spacing",xt.letterSpacing,"1.5px"),ye=nt.extend("--ft-typography-overline-line-height",xt.lineHeight,"16px"),xe=nt.extend("--ft-typography-overline-text-transform",xt.textTransform,"uppercase"),ge=nt.extend("--ft-typography-button-font-family",yt),me=nt.extend("--ft-typography-button-font-size",xt.fontSize,"14px"),ve=nt.extend("--ft-typography-button-font-weight",xt.fontWeight,"600"),be=nt.extend("--ft-typography-button-letter-spacing",xt.letterSpacing,"1.246px"),we=nt.extend("--ft-typography-button-line-height",xt.lineHeight,"16px"),$e=nt.extend("--ft-typography-button-text-transform",xt.textTransform,"uppercase"),Oe=c`
81
+ .ft-typography--title {
82
+ font-family: ${gt};
83
+ font-size: ${mt};
84
+ font-weight: ${vt};
85
+ letter-spacing: ${bt};
86
+ line-height: ${wt};
87
+ text-transform: ${$t};
88
+ }
89
+ `,Se=c`
90
+ .ft-typography--title-dense {
91
+ font-family: ${Ot};
92
+ font-size: ${St};
93
+ font-weight: ${Nt};
94
+ letter-spacing: ${Et};
95
+ line-height: ${Ct};
96
+ text-transform: ${Rt};
97
+ }
98
+ `,Ne=c`
99
+ .ft-typography--subtitle1 {
100
+ font-family: ${Mt};
101
+ font-size: ${kt};
102
+ font-weight: ${Ut};
103
+ letter-spacing: ${Ft};
104
+ line-height: ${zt};
105
+ text-transform: ${jt};
106
+ }
107
+ `,Ee=c`
108
+ .ft-typography--subtitle2 {
109
+ font-family: ${Lt};
110
+ font-size: ${At};
111
+ font-weight: ${Tt};
112
+ letter-spacing: ${_t};
113
+ line-height: ${Bt};
114
+ text-transform: ${Dt};
115
+ }
116
+
117
+ `,Ce=c`
118
+ .ft-typography--body1 {
119
+ font-family: ${Pt};
120
+ font-size: ${Wt};
121
+ font-weight: ${It};
122
+ letter-spacing: ${Kt};
123
+ line-height: ${Ht};
124
+ text-transform: ${Zt};
125
+ }
126
+ `,Re=c`
127
+ .ft-typography--body2 {
128
+ font-family: ${Vt};
129
+ font-size: ${qt};
130
+ font-weight: ${Jt};
131
+ letter-spacing: ${Xt};
132
+ line-height: ${Gt};
133
+ text-transform: ${Qt};
134
+ }
135
+ `,Me=c`
136
+ .ft-typography--caption {
137
+ font-family: ${Yt};
138
+ font-size: ${te};
139
+ font-weight: ${ee};
140
+ letter-spacing: ${ie};
141
+ line-height: ${oe};
142
+ text-transform: ${ne};
143
+ }
144
+ `,ke=c`
145
+ .ft-typography--breadcrumb {
146
+ font-family: ${se};
147
+ font-size: ${re};
148
+ font-weight: ${ae};
149
+ letter-spacing: ${le};
150
+ line-height: ${ce};
151
+ text-transform: ${he};
152
+ }
153
+ `,Ue=c`
154
+ .ft-typography--overline {
155
+ font-family: ${pe};
156
+ font-size: ${fe};
157
+ font-weight: ${de};
158
+ letter-spacing: ${ue};
159
+ line-height: ${ye};
160
+ text-transform: ${xe};
161
+ }
162
+ `,Fe=c`
163
+ .ft-typography--button {
164
+ font-family: ${ge};
165
+ font-size: ${me};
166
+ font-weight: ${ve};
167
+ letter-spacing: ${be};
168
+ line-height: ${we};
169
+ text-transform: ${$e};
170
+ }
171
+ `;class ze extends rt{constructor(){super(...arguments),this.variant=ft.body1}render(){return this.element?pt`
172
+ <${ct(this.element)}
173
+ class="ft-typography ft-typography--${this.variant}">
174
+ <slot></slot>
175
+ </${ct(this.element)}>
176
+ `:pt`
177
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
178
+ `}}ze.styles=[Oe,Se,Ne,Ee,Ce,Re,Me,ke,Ue,Fe,c`
179
+ .ft-typography {
180
+ vertical-align: inherit;
181
+ }
182
+ `],dt([e()],ze.prototype,"element",void 0),dt([e()],ze.prototype,"variant",void 0),o("ft-typography")(ze);
183
+ /**
184
+ * @license
185
+ * Copyright 2017 Google LLC
186
+ * SPDX-License-Identifier: BSD-3-Clause
187
+ */
188
+ const je=2;
189
+ /**
190
+ * @license
191
+ * Copyright 2017 Google LLC
192
+ * SPDX-License-Identifier: BSD-3-Clause
193
+ */
194
+ class Le extends class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}{constructor(t){if(super(t),this.it=B,t.type!==je)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===B||null==t)return this.vt=void 0,this.it=t;if(t===_)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Le.directiveName="unsafeHTML",Le.resultType=1;const Ae=(t=>(...e)=>({_$litDirective$:t,values:e}))(Le);var Te,_e;!function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(Te||(Te={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(_e||(_e={})),new Map([...["abw"].map((t=>[t,_e.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,_e.AUDIO])),...["avi"].map((t=>[t,_e.AVI])),...["chm","xhs"].map((t=>[t,_e.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,_e.CODE])),...["csv"].map((t=>[t,_e.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,_e.DITA])),...["epub"].map((t=>[t,_e.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,_e.EXCEL])),...["flac"].map((t=>[t,_e.FLAC])),...["gif"].map((t=>[t,_e.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,_e.GZIP])),...["html","htm","xhtml"].map((t=>[t,_e.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,_e.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,_e.JPEG])),...["json"].map((t=>[t,_e.JSON])),...["m4a","m4p"].map((t=>[t,_e.M4A])),...["mov","qt"].map((t=>[t,_e.MOV])),...["mp3"].map((t=>[t,_e.MP3])),...["mp4","m4v"].map((t=>[t,_e.MP4])),...["ogg","oga"].map((t=>[t,_e.OGG])),...["pdf","ps"].map((t=>[t,_e.PDF])),...["png"].map((t=>[t,_e.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,_e.POWERPOINT])),...["rar"].map((t=>[t,_e.RAR])),...["stp"].map((t=>[t,_e.STP])),...["txt","rtf","md","mdown"].map((t=>[t,_e.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,_e.VIDEO])),...["wav"].map((t=>[t,_e.WAV])),...["wma"].map((t=>[t,_e.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,_e.WORD])),...["xml","xsl","rdf"].map((t=>[t,_e.XML])),...["yaml","yml","x-yaml"].map((t=>[t,_e.YAML])),...["zip"].map((t=>[t,_e.ZIP]))]);var Be,De=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.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Be||(Be={}));const Pe=nt.create("--ft-icon-font-size","SIZE","24px"),We=nt.extend("--ft-icon-fluid-topics-font-family",nt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Ie=nt.extend("--ft-icon-file-format-font-family",nt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ke=nt.extend("--ft-icon-material-font-family",nt.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class He extends rt{constructor(){super(...arguments),this.variant=Be.fluid_topics}render(){return T`
195
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
196
+ ${Ae(this.getIcon())}
197
+ <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
198
+ </i>
199
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let i=this.textContent;return this.variant===Be.file_format?null!==(t=_e[i.toUpperCase()])&&void 0!==t?t:i:this.variant===Be.fluid_topics?null!==(e=Te[i.toUpperCase()])&&void 0!==e?e:i:B}}He.elementDefinitions={},He.styles=c`
200
+ :host, i.ft-icon {
201
+ display: inline-block;
202
+ width: ${Pe};
203
+ height: ${Pe};
204
+ text-align: center;
205
+ }
206
+
207
+ i.ft-icon {
208
+ font-size: ${Pe};
209
+ line-height: 1;
210
+ font-weight: normal;
211
+ text-transform: none;
212
+ font-style: normal;
213
+ font-variant: normal;
214
+ speak: none;
215
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
216
+ text-rendering: auto;
217
+ -webkit-font-smoothing: antialiased;
218
+ -moz-osx-font-smoothing: grayscale;
219
+ }
220
+
221
+ .ft-icon--fluid-topics {
222
+ font-family: ${We}, ft-icons, fticons, sans-serif;
223
+ }
224
+
225
+ .ft-icon--file-format {
226
+ font-family: ${Ie}, ft-mime, sans-serif;
227
+ }
228
+
229
+ .ft-icon--material {
230
+ font-family: ${Ke}, "Material Icons", sans-serif;
231
+ }
232
+ `,De([e()],He.prototype,"variant",void 0),De([
233
+ /**
234
+ * @license
235
+ * Copyright 2017 Google LLC
236
+ * SPDX-License-Identifier: BSD-3-Clause
237
+ */
238
+ function(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,s=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(s.finisher=function(e){t(e,o)}),s}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}})({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}("slot")],He.prototype,"slottedContent",void 0),o("ft-icon")(He);var Ze=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 Ve=nt.create("--ft-dialog-z-index","NUMBER","2"),qe=nt.create("--ft-dialog-overlay-background-color","COLOR","rgba(0, 0, 0, 0.3)"),Je=nt.create("--ft-dialog-height","SIZE","unset"),Xe=nt.create("--ft-dialog-width","SIZE","unset"),Ge=nt.create("--ft-dialog-min-width","SIZE","unset"),Qe=nt.create("--ft-dialog-padding-top","SIZE","20px"),Ye=nt.create("--ft-dialog-padding-side","SIZE","16px"),ti=nt.create("--ft-dialog-padding-buttons","SIZE","20px"),ei=nt.external(st.colorSurface,"Design system"),ii=nt.external(st.colorOnSurfaceMedium,"Design system"),oi=nt.external(st.borderRadiusS,"Design system"),ni=nt.external(st.elevation24,"Design system");class si extends rt{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.heading="",this.icon=""}static get styles(){return c`
239
+ .ft-dialog {
240
+ position: fixed;
241
+ top: 0;
242
+ right: 0;
243
+ bottom: 0;
244
+ left: 0;
245
+ z-index: ${Ve};
246
+
247
+ display: flex;
248
+ flex-direction: column;
249
+ justify-content: center;
250
+ align-items: center;
251
+
252
+ margin: auto;
253
+ }
254
+
255
+ .ft-dialog-overlay {
256
+ position: fixed;
257
+ top: 0;
258
+ right: 0;
259
+ bottom: 0;
260
+ left: 0;
261
+
262
+ height: 100%;
263
+ width: 100%;
264
+
265
+ background-color: ${qe};
266
+
267
+ }
268
+
269
+ .ft-dialog-wrapper {
270
+ position: fixed;
271
+ display: flex;
272
+ flex-direction: column;
273
+
274
+ width: ${Xe};
275
+ height: ${Je};
276
+ max-width: 95vw;
277
+ max-height: 95vh;
278
+ min-width: ${Ge};
279
+
280
+ padding-top: ${Qe};
281
+ padding-right: ${Ye};
282
+ padding-left: ${Ye};
283
+
284
+ background-color: ${ei};
285
+
286
+ border-radius: ${oi};
287
+ box-shadow: ${ni};
288
+ }
289
+
290
+ .ft-dialog-content {
291
+ flex-grow: 2;
292
+ overflow: auto;
293
+ }
294
+
295
+ .ft-dialog-heading {
296
+ display: flex;
297
+ align-items: center;
298
+ margin-bottom: 20px;
299
+ gap: 8px;
300
+
301
+ color: ${ii};
302
+ }
303
+
304
+ .ft-dialog-buttons {
305
+ padding-top: ${ti};
306
+ }
307
+
308
+ slot[name=buttons] {
309
+ display: flex;
310
+ align-items: center;
311
+ justify-content: flex-end;
312
+ gap: 8px;
313
+ }
314
+
315
+ slot[name=buttons]::slotted(*) {
316
+ margin-top: 8px;
317
+ margin-bottom: 8px
318
+ }
319
+
320
+ `}render(){return this.opened?T`
321
+ <div class="ft-dialog">
322
+ <div class="ft-dialog-overlay" @click="${()=>this.watchClickOutside()}"></div>
323
+ <div class="ft-dialog-wrapper">
324
+ ${this.heading?T`
325
+ <div class="ft-dialog-heading">
326
+ ${this.icon?T`
327
+ <ft-icon variant="material">${this.icon}</ft-icon>`:void 0}
328
+ <ft-typography element="span" variant="title">${this.heading}</ft-typography>
329
+ </div>
330
+ `:null}
331
+ <div class="ft-dialog-content">
332
+ <slot></slot>
333
+ </div>
334
+ <div class="ft-dialog-buttons">
335
+ <slot name="buttons"></slot>
336
+ </div>
337
+ </div>
338
+ </div>
339
+ `: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()}}si.elementDefinitions={"ft-typography":ze,"ft-icon":He},Ze([e({type:Boolean,hasChanged:(t,e)=>!1===e&&!0===t||!0===e&&!1===t})],si.prototype,"opened",void 0),Ze([e({type:Boolean})],si.prototype,"closeOnEsc",void 0),Ze([e({type:Boolean})],si.prototype,"closeOnClickOutside",void 0),Ze([e({type:String})],si.prototype,"heading",void 0),Ze([e({type:String})],si.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]),T`
340
+ ${i.map((t=>T`
341
+ <style>${t}</style>
342
+ `))}
343
+ ${super.render()}
344
+ `}},i.styles=void 0,i.elementDefinitions=o,i}(si))}();
@@ -6,9 +6,9 @@ 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
- import { Icon } from "@material/mwc-icon";
11
+ import { FtIcon } from "@fluid-topics/ft-icon";
12
12
  export const FtDialogCssVariables = {
13
13
  zIndex: FtCssVariable.create("--ft-dialog-z-index", "NUMBER", "2"),
14
14
  overlayBackgroundColor: FtCssVariable.create("--ft-dialog-overlay-background-color", "COLOR", "rgba(0, 0, 0, 0.3)"),
@@ -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
  }
@@ -129,7 +129,7 @@ let FtDialog = class FtDialog extends FtLitElement {
129
129
  ${this.heading ? html `
130
130
  <div class="ft-dialog-heading">
131
131
  ${this.icon ? html `
132
- <mwc-icon>${this.icon}</mwc-icon>` : undefined}
132
+ <ft-icon variant="material">${this.icon}</ft-icon>` : undefined}
133
133
  <ft-typography element="span" variant="title">${this.heading}</ft-typography>
134
134
  </div>
135
135
  ` : null}
@@ -173,10 +173,10 @@ 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
- "mwc-icon": Icon,
179
+ "ft-icon": FtIcon,
180
180
  };
181
181
  __decorate([
182
182
  property({
@@ -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