@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.
@@ -1,151 +1,163 @@
1
- !function(t,i,o,e){
1
+ !function(t,e,i,o,n){
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- var n;const s=globalThis.trustedTypes,r=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,l=`lit$${(Math.random()+"").slice(9)}$`,a="?"+l,h=`<${a}>`,p=document,f=(t="")=>p.createComment(t),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,y=Array.isArray,d=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,c=/-->/g,u=/>/g,v=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,m=/'/g,$=/"/g,x=/^(?:script|style|textarea|title)$/i,b=(t=>(i,...o)=>({_$litType$:t,strings:i,values:o}))(1),w=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),S=new WeakMap,E=p.createTreeWalker(p,129,null,!1),k=(t,i)=>{const o=t.length-1,e=[];let n,s=2===i?"<svg>":"",a=d;for(let i=0;i<o;i++){const o=t[i];let r,p,f=-1,g=0;for(;g<o.length&&(a.lastIndex=g,p=a.exec(o),null!==p);)g=a.lastIndex,a===d?"!--"===p[1]?a=c:void 0!==p[1]?a=u:void 0!==p[2]?(x.test(p[2])&&(n=RegExp("</"+p[2],"g")),a=v):void 0!==p[3]&&(a=v):a===v?">"===p[0]?(a=null!=n?n:d,f=-1):void 0===p[1]?f=-2:(f=a.lastIndex-p[2].length,r=p[1],a=void 0===p[3]?v:'"'===p[3]?$:m):a===$||a===m?a=v:a===c||a===u?a=d:(a=v,n=void 0);const y=a===v&&t[i+1].startsWith("/>")?" ":"";s+=a===d?o+h:f>=0?(e.push(r),o.slice(0,f)+"$lit$"+o.slice(f)+l+y):o+l+(-2===f?(e.push(void 0),i):y)}const p=s+(t[o]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==r?r.createHTML(p):p,e]};class A{constructor({strings:t,_$litType$:i},o){let e;this.parts=[];let n=0,r=0;const h=t.length-1,p=this.parts,[g,y]=k(t,i);if(this.el=A.createElement(g,o),E.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(e=E.nextNode())&&p.length<h;){if(1===e.nodeType){if(e.hasAttributes()){const t=[];for(const i of e.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(l)){const o=y[r++];if(t.push(i),void 0!==o){const t=e.getAttribute(o.toLowerCase()+"$lit$").split(l),i=/([.?@])?(.*)/.exec(o);p.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?N:"?"===i[1]?Z:"@"===i[1]?j:C})}else p.push({type:6,index:n})}for(const i of t)e.removeAttribute(i)}if(x.test(e.tagName)){const t=e.textContent.split(l),i=t.length-1;if(i>0){e.textContent=s?s.emptyScript:"";for(let o=0;o<i;o++)e.append(t[o],f()),E.nextNode(),p.push({type:2,index:++n});e.append(t[i],f())}}}else if(8===e.nodeType)if(e.data===a)p.push({type:2,index:n});else{let t=-1;for(;-1!==(t=e.data.indexOf(l,t+1));)p.push({type:7,index:n}),t+=l.length-1}n++}}static createElement(t,i){const o=p.createElement("template");return o.innerHTML=t,o}}function _(t,i,o=t,e){var n,s,r,l;if(i===w)return i;let a=void 0!==e?null===(n=o._$Cl)||void 0===n?void 0:n[e]:o._$Cu;const h=g(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,o,e)),void 0!==e?(null!==(r=(l=o)._$Cl)&&void 0!==r?r:l._$Cl=[])[e]=a:o._$Cu=a),void 0!==a&&(i=_(t,a._$AS(t,i.values),a,e)),i}class I{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:o},parts:e}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:p).importNode(o,!0);E.currentNode=n;let s=E.nextNode(),r=0,l=0,a=e[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new O(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new M(s,this,t)),this.v.push(i),a=e[++l]}r!==(null==a?void 0:a.index)&&(s=E.nextNode(),r++)}return n}m(t){let i=0;for(const o of this.v)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,i),i+=o.strings.length-2):o._$AI(t[i])),i++}}class O{constructor(t,i,o,e){var n;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=o,this.options=e,this._$Cg=null===(n=null==e?void 0:e.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=_(this,t,i),g(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==w&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return y(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==z&&g(this._$AH)?this._$AA.nextSibling.data=t:this.S(p.createTextNode(t)),this._$AH=t}T(t){var i;const{values:o,_$litType$:e}=t,n="number"==typeof e?this._$AC(t):(void 0===e.el&&(e.el=A.createElement(e.h,this.options)),e);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(o);else{const t=new I(n,this),i=t.p(this.options);t.m(o),this.S(i),this._$AH=t}}_$AC(t){let i=S.get(t.strings);return void 0===i&&S.set(t.strings,i=new A(t)),i}A(t){y(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let o,e=0;for(const n of t)e===i.length?i.push(o=new O(this.M(f()),this.M(f()),this,this.options)):o=i[e],o._$AI(n),e++;e<i.length&&(this._$AR(o&&o._$AB.nextSibling,e),i.length=e)}_$AR(t=this._$AA.nextSibling,i){var o;for(null===(o=this._$AP)||void 0===o||o.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class C{constructor(t,i,o,e,n){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=n,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,o,e){const n=this.strings;let s=!1;if(void 0===n)t=_(this,t,i,0),s=!g(t)||t!==this._$AH&&t!==w,s&&(this._$AH=t);else{const e=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=_(this,e[o+r],i,r),l===w&&(l=this._$AH[r]),s||(s=!g(l)||l!==this._$AH[r]),l===z?t=z:t!==z&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!e&&this.k(t)}k(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class N extends C{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===z?void 0:t}}const T=s?s.emptyScript:"";class Z extends C{constructor(){super(...arguments),this.type=4}k(t){t&&t!==z?this.element.setAttribute(this.name,T):this.element.removeAttribute(this.name)}}class j extends C{constructor(t,i,o,e,n){super(t,i,o,e,n),this.type=5}_$AI(t,i=this){var o;if((t=null!==(o=_(this,t,i,0))&&void 0!==o?o:z)===w)return;const e=this._$AH,n=t===z&&e!==z||t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive,s=t!==z&&(e===z||n);n&&this.element.removeEventListener(this.name,this,e),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,o;"function"==typeof this._$AH?this._$AH.call(null!==(o=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==o?o:this.element,t):this._$AH.handleEvent(t)}}class M{constructor(t,i,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){_(this,t)}}const U=window.litHtmlPolyfillSupport;null==U||U(A,O),(null!==(n=globalThis.litHtmlVersions)&&void 0!==n?n:globalThis.litHtmlVersions=[]).push("2.1.3");
7
+ var s;const a=globalThis.trustedTypes,r=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,l=`lit$${(Math.random()+"").slice(9)}$`,p="?"+l,h=`<${p}>`,f=document,x=(t="")=>f.createComment(t),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,d=Array.isArray,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,c=/-->/g,m=/>/g,u=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,v=/'/g,$=/"/g,b=/^(?:script|style|textarea|title)$/i,w=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),z=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),S=new WeakMap,N=f.createTreeWalker(f,129,null,!1),j=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",a=y;for(let e=0;e<i;e++){const i=t[e];let r,p,f=-1,x=0;for(;x<i.length&&(a.lastIndex=x,p=a.exec(i),null!==p);)x=a.lastIndex,a===y?"!--"===p[1]?a=c:void 0!==p[1]?a=m:void 0!==p[2]?(b.test(p[2])&&(n=RegExp("</"+p[2],"g")),a=u):void 0!==p[3]&&(a=u):a===u?">"===p[0]?(a=null!=n?n:y,f=-1):void 0===p[1]?f=-2:(f=a.lastIndex-p[2].length,r=p[1],a=void 0===p[3]?u:'"'===p[3]?$:v):a===$||a===v?a=u:a===c||a===m?a=y:(a=u,n=void 0);const g=a===u&&t[e+1].startsWith("/>")?" ":"";s+=a===y?i+h:f>=0?(o.push(r),i.slice(0,f)+"$lit$"+i.slice(f)+l+g):i+l+(-2===f?(o.push(void 0),e):g)}const p=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==r?r.createHTML(p):p,o]};class E{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,h=this.parts,[f,g]=j(t,e);if(this.el=E.createElement(f,i),N.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=N.nextNode())&&h.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(l)){const i=g[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(l),e=/([.?@])?(.*)/.exec(i);h.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?C:"?"===e[1]?M:"@"===e[1]?T:_})}else h.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(b.test(o.tagName)){const t=o.textContent.split(l),e=t.length-1;if(e>0){o.textContent=a?a.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],x()),N.nextNode(),h.push({type:2,index:++n});o.append(t[e],x())}}}else if(8===o.nodeType)if(o.data===p)h.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(l,t+1));)h.push({type:7,index:n}),t+=l.length-1}n++}}static createElement(t,e){const i=f.createElement("template");return i.innerHTML=t,i}}function I(t,e,i=t,o){var n,s,a,r;if(e===z)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const p=g(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,i,o)),void 0!==o?(null!==(a=(r=i)._$Cl)&&void 0!==a?a:r._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=I(t,l._$AS(t,e.values),l,o)),e}class O{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:f).importNode(i,!0);N.currentNode=n;let s=N.nextNode(),a=0,r=0,l=o[0];for(;void 0!==l;){if(a===l.index){let e;2===l.type?e=new A(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new U(s,this,t)),this.v.push(e),l=o[++r]}a!==(null==l?void 0:l.index)&&(s=N.nextNode(),a++)}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 A{constructor(t,e,i,o){var n;this.type=2,this._$AH=k,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=I(this,t,e),g(t)?t===k||null==t||""===t?(this._$AH!==k&&this._$AR(),this._$AH=k):t!==this._$AH&&t!==z&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return d(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!==k&&g(this._$AH)?this._$AA.nextSibling.data=t:this.S(f.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=E.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 O(n,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=S.get(t.strings);return void 0===e&&S.set(t.strings,e=new E(t)),e}A(t){d(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 A(this.M(x()),this.M(x()),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 _{constructor(t,e,i,o,n){this.type=1,this._$AH=k,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=k}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=I(this,t,e,0),s=!g(t)||t!==this._$AH&&t!==z,s&&(this._$AH=t);else{const o=t;let a,r;for(t=n[0],a=0;a<n.length-1;a++)r=I(this,o[i+a],e,a),r===z&&(r=this._$AH[a]),s||(s=!g(r)||r!==this._$AH[a]),r===k?t=k:t!==k&&(t+=(null!=r?r:"")+n[a+1]),this._$AH[a]=r}s&&!o&&this.k(t)}k(t){t===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class C extends _{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===k?void 0:t}}const Z=a?a.emptyScript:"";class M extends _{constructor(){super(...arguments),this.type=4}k(t){t&&t!==k?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class T extends _{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=I(this,t,e,0))&&void 0!==i?i:k)===z)return;const o=this._$AH,n=t===k&&o!==k||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==k&&(o===k||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 U{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){I(this,t)}}const W=window.litHtmlPolyfillSupport;null==W||W(E,A),(null!==(s=globalThis.litHtmlVersions)&&void 0!==s?s:globalThis.litHtmlVersions=[]).push("2.1.3");
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2020 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const B=t=>({_$litStatic$:t}),R=new Map,W=(t=>(i,...o)=>{var e;const n=o.length;let s,r;const l=[],a=[];let h,p=0,f=!1;for(;p<n;){for(h=i[p];p<n&&void 0!==(r=o[p],s=null===(e=r)||void 0===e?void 0:e._$litStatic$);)h+=s+i[++p],f=!0;a.push(r),l.push(h),p++}if(p===n&&l.push(i[n]),f){const t=l.join("$$lit$$");void 0===(i=R.get(t))&&(l.raw=l,R.set(t,i=l)),o=a}return t(i,...o)})(b);var D,G=function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,o,r):n(i,o))||r);return s>3&&r&&Object.defineProperty(i,o,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"}(D||(D={}));const K=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),L=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),H={fontFamily:L,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},F=e.FtCssVariable.extend("--ft-typography-title-font-family",K),q=e.FtCssVariable.extend("--ft-typography-title-font-size",H.fontSize,"20px"),J=e.FtCssVariable.extend("--ft-typography-title-font-weight",H.fontWeight,"normal"),P=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",H.letterSpacing,"0.15px"),Q=e.FtCssVariable.extend("--ft-typography-title-line-height",H.lineHeight,"24px"),V=e.FtCssVariable.extend("--ft-typography-title-text-transform",H.textTransform,"inherit"),X=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",K),Y=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",H.fontSize,"14px"),tt=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",H.fontWeight,"normal"),it=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",H.letterSpacing,"0.105px"),ot=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",H.lineHeight,"24px"),et=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",H.textTransform,"inherit"),nt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",L),st=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",H.fontSize,"16px"),rt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",H.fontWeight,"600"),lt=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",H.letterSpacing,"0.144px"),at=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",H.lineHeight,"24px"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",H.textTransform,"inherit"),pt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",L),ft=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",H.fontSize,"14px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",H.fontWeight,"normal"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",H.letterSpacing,"0.098px"),dt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",H.lineHeight,"24px"),ct=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",H.textTransform,"inherit"),ut=e.FtCssVariable.extend("--ft-typography-body1-font-family",L),vt=e.FtCssVariable.extend("--ft-typography-body1-font-size",H.fontSize,"16px"),mt=e.FtCssVariable.extend("--ft-typography-body1-font-weight",H.fontWeight,"normal"),$t=e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",H.letterSpacing,"0.496px"),xt=e.FtCssVariable.extend("--ft-typography-body1-line-height",H.lineHeight,"24px"),bt=e.FtCssVariable.extend("--ft-typography-body1-text-transform",H.textTransform,"inherit"),wt=e.FtCssVariable.extend("--ft-typography-body2-font-family",L),zt=e.FtCssVariable.extend("--ft-typography-body2-font-size",H.fontSize,"14px"),St=e.FtCssVariable.extend("--ft-typography-body2-font-weight",H.fontWeight,"normal"),Et=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",H.letterSpacing,"0.252px"),kt=e.FtCssVariable.extend("--ft-typography-body2-line-height",H.lineHeight,"20px"),At=e.FtCssVariable.extend("--ft-typography-body2-text-transform",H.textTransform,"inherit"),_t=e.FtCssVariable.extend("--ft-typography-caption-font-family",L),It=e.FtCssVariable.extend("--ft-typography-caption-font-size",H.fontSize,"12px"),Ot=e.FtCssVariable.extend("--ft-typography-caption-font-weight",H.fontWeight,"normal"),Ct=e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",H.letterSpacing,"0.396px"),Nt=e.FtCssVariable.extend("--ft-typography-caption-line-height",H.lineHeight,"16px"),Tt=e.FtCssVariable.extend("--ft-typography-caption-text-transform",H.textTransform,"inherit"),Zt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",L),jt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",H.fontSize,"10px"),Mt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",H.fontWeight,"normal"),Ut=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",H.letterSpacing,"0.33px"),Bt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",H.lineHeight,"16px"),Rt=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",H.textTransform,"inherit"),Wt=e.FtCssVariable.extend("--ft-typography-overline-font-family",L),Dt=e.FtCssVariable.extend("--ft-typography-overline-font-size",H.fontSize,"10px"),Gt=e.FtCssVariable.extend("--ft-typography-overline-font-weight",H.fontWeight,"normal"),Kt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",H.letterSpacing,"1.5px"),Lt=e.FtCssVariable.extend("--ft-typography-overline-line-height",H.lineHeight,"16px"),Ht=e.FtCssVariable.extend("--ft-typography-overline-text-transform",H.textTransform,"uppercase"),Ft=e.FtCssVariable.extend("--ft-typography-button-font-family",L),qt=e.FtCssVariable.extend("--ft-typography-button-font-size",H.fontSize,"14px"),Jt=e.FtCssVariable.extend("--ft-typography-button-font-weight",H.fontWeight,"600"),Pt=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",H.letterSpacing,"1.246px"),Qt=e.FtCssVariable.extend("--ft-typography-button-line-height",H.lineHeight,"16px"),Vt=e.FtCssVariable.extend("--ft-typography-button-text-transform",H.textTransform,"uppercase"),Xt=i.css`
13
+ const B=t=>({_$litStatic$:t}),K=new Map,R=(t=>(e,...i)=>{var o;const n=i.length;let s,a;const r=[],l=[];let p,h=0,f=!1;for(;h<n;){for(p=e[h];h<n&&void 0!==(a=i[h],s=null===(o=a)||void 0===o?void 0:o._$litStatic$);)p+=s+e[++h],f=!0;l.push(a),r.push(p),h++}if(h===n&&r.push(e[n]),f){const t=r.join("$$lit$$");void 0===(e=K.get(t))&&(r.raw=r,K.set(t,e=r)),i=l}return t(e,...i)})(w);var D,G=function(t,e,i,o){for(var n,s=arguments.length,a=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(a=(s<3?n(a):s>3?n(e,i,a):n(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};!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"}(D||(D={}));const q=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),H=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),L={fontFamily:H,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},F=e.FtCssVariable.extend("--ft-typography-title-font-family",q),J=e.FtCssVariable.extend("--ft-typography-title-font-size",L.fontSize,"20px"),P=e.FtCssVariable.extend("--ft-typography-title-font-weight",L.fontWeight,"normal"),Q=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",L.letterSpacing,"0.15px"),V=e.FtCssVariable.extend("--ft-typography-title-line-height",L.lineHeight,"24px"),X=e.FtCssVariable.extend("--ft-typography-title-text-transform",L.textTransform,"inherit"),Y=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",q),tt=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",L.fontSize,"14px"),et=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",L.fontWeight,"normal"),it=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",L.letterSpacing,"0.105px"),ot=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",L.lineHeight,"24px"),nt=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",L.textTransform,"inherit"),st=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",H),at=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",L.fontSize,"16px"),rt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",L.fontWeight,"600"),lt=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",L.letterSpacing,"0.144px"),pt=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",L.lineHeight,"24px"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",L.textTransform,"inherit"),ft=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",H),xt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",L.fontSize,"14px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",L.fontWeight,"normal"),dt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",L.letterSpacing,"0.098px"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",L.lineHeight,"24px"),ct=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",L.textTransform,"inherit"),mt=e.FtCssVariable.extend("--ft-typography-body1-font-family",H),ut=e.FtCssVariable.extend("--ft-typography-body1-font-size",L.fontSize,"16px"),vt=e.FtCssVariable.extend("--ft-typography-body1-font-weight",L.fontWeight,"normal"),$t=e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",L.letterSpacing,"0.496px"),bt=e.FtCssVariable.extend("--ft-typography-body1-line-height",L.lineHeight,"24px"),wt=e.FtCssVariable.extend("--ft-typography-body1-text-transform",L.textTransform,"inherit"),zt=e.FtCssVariable.extend("--ft-typography-body2-font-family",H),kt=e.FtCssVariable.extend("--ft-typography-body2-font-size",L.fontSize,"14px"),St=e.FtCssVariable.extend("--ft-typography-body2-font-weight",L.fontWeight,"normal"),Nt=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",L.letterSpacing,"0.252px"),jt=e.FtCssVariable.extend("--ft-typography-body2-line-height",L.lineHeight,"20px"),Et=e.FtCssVariable.extend("--ft-typography-body2-text-transform",L.textTransform,"inherit"),It=e.FtCssVariable.extend("--ft-typography-caption-font-family",H),Ot=e.FtCssVariable.extend("--ft-typography-caption-font-size",L.fontSize,"12px"),At=e.FtCssVariable.extend("--ft-typography-caption-font-weight",L.fontWeight,"normal"),_t=e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",L.letterSpacing,"0.396px"),Ct=e.FtCssVariable.extend("--ft-typography-caption-line-height",L.lineHeight,"16px"),Zt=e.FtCssVariable.extend("--ft-typography-caption-text-transform",L.textTransform,"inherit"),Mt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",H),Tt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",L.fontSize,"10px"),Ut=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",L.fontWeight,"normal"),Wt=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",L.letterSpacing,"0.33px"),Bt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",L.lineHeight,"16px"),Kt=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",L.textTransform,"inherit"),Rt=e.FtCssVariable.extend("--ft-typography-overline-font-family",H),Dt=e.FtCssVariable.extend("--ft-typography-overline-font-size",L.fontSize,"10px"),Gt=e.FtCssVariable.extend("--ft-typography-overline-font-weight",L.fontWeight,"normal"),qt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",L.letterSpacing,"1.5px"),Ht=e.FtCssVariable.extend("--ft-typography-overline-line-height",L.lineHeight,"16px"),Lt=e.FtCssVariable.extend("--ft-typography-overline-text-transform",L.textTransform,"uppercase"),Ft=e.FtCssVariable.extend("--ft-typography-button-font-family",H),Jt=e.FtCssVariable.extend("--ft-typography-button-font-size",L.fontSize,"14px"),Pt=e.FtCssVariable.extend("--ft-typography-button-font-weight",L.fontWeight,"600"),Qt=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",L.letterSpacing,"1.246px"),Vt=e.FtCssVariable.extend("--ft-typography-button-line-height",L.lineHeight,"16px"),Xt=e.FtCssVariable.extend("--ft-typography-button-text-transform",L.textTransform,"uppercase"),Yt=i.css`
14
14
  .ft-typography--title {
15
15
  font-family: ${F};
16
- font-size: ${q};
17
- font-weight: ${J};
18
- letter-spacing: ${P};
19
- line-height: ${Q};
20
- text-transform: ${V};
16
+ font-size: ${J};
17
+ font-weight: ${P};
18
+ letter-spacing: ${Q};
19
+ line-height: ${V};
20
+ text-transform: ${X};
21
21
  }
22
- `,Yt=i.css`
22
+ `,te=i.css`
23
23
  .ft-typography--title-dense {
24
- font-family: ${X};
25
- font-size: ${Y};
26
- font-weight: ${tt};
24
+ font-family: ${Y};
25
+ font-size: ${tt};
26
+ font-weight: ${et};
27
27
  letter-spacing: ${it};
28
28
  line-height: ${ot};
29
- text-transform: ${et};
29
+ text-transform: ${nt};
30
30
  }
31
- `,ti=i.css`
31
+ `,ee=i.css`
32
32
  .ft-typography--subtitle1 {
33
- font-family: ${nt};
34
- font-size: ${st};
33
+ font-family: ${st};
34
+ font-size: ${at};
35
35
  font-weight: ${rt};
36
36
  letter-spacing: ${lt};
37
- line-height: ${at};
37
+ line-height: ${pt};
38
38
  text-transform: ${ht};
39
39
  }
40
- `,ii=i.css`
40
+ `,ie=i.css`
41
41
  .ft-typography--subtitle2 {
42
- font-family: ${pt};
43
- font-size: ${ft};
42
+ font-family: ${ft};
43
+ font-size: ${xt};
44
44
  font-weight: ${gt};
45
- letter-spacing: ${yt};
46
- line-height: ${dt};
45
+ letter-spacing: ${dt};
46
+ line-height: ${yt};
47
47
  text-transform: ${ct};
48
48
  }
49
49
 
50
- `,oi=i.css`
50
+ `,oe=i.css`
51
51
  .ft-typography--body1 {
52
- font-family: ${ut};
53
- font-size: ${vt};
54
- font-weight: ${mt};
52
+ font-family: ${mt};
53
+ font-size: ${ut};
54
+ font-weight: ${vt};
55
55
  letter-spacing: ${$t};
56
- line-height: ${xt};
57
- text-transform: ${bt};
56
+ line-height: ${bt};
57
+ text-transform: ${wt};
58
58
  }
59
- `,ei=i.css`
59
+ `,ne=i.css`
60
60
  .ft-typography--body2 {
61
- font-family: ${wt};
62
- font-size: ${zt};
61
+ font-family: ${zt};
62
+ font-size: ${kt};
63
63
  font-weight: ${St};
64
- letter-spacing: ${Et};
65
- line-height: ${kt};
66
- text-transform: ${At};
64
+ letter-spacing: ${Nt};
65
+ line-height: ${jt};
66
+ text-transform: ${Et};
67
67
  }
68
- `,ni=i.css`
68
+ `,se=i.css`
69
69
  .ft-typography--caption {
70
- font-family: ${_t};
71
- font-size: ${It};
72
- font-weight: ${Ot};
73
- letter-spacing: ${Ct};
74
- line-height: ${Nt};
75
- text-transform: ${Tt};
70
+ font-family: ${It};
71
+ font-size: ${Ot};
72
+ font-weight: ${At};
73
+ letter-spacing: ${_t};
74
+ line-height: ${Ct};
75
+ text-transform: ${Zt};
76
76
  }
77
- `,si=i.css`
77
+ `,ae=i.css`
78
78
  .ft-typography--breadcrumb {
79
- font-family: ${Zt};
80
- font-size: ${jt};
81
- font-weight: ${Mt};
82
- letter-spacing: ${Ut};
79
+ font-family: ${Mt};
80
+ font-size: ${Tt};
81
+ font-weight: ${Ut};
82
+ letter-spacing: ${Wt};
83
83
  line-height: ${Bt};
84
- text-transform: ${Rt};
84
+ text-transform: ${Kt};
85
85
  }
86
- `,ri=i.css`
86
+ `,re=i.css`
87
87
  .ft-typography--overline {
88
- font-family: ${Wt};
88
+ font-family: ${Rt};
89
89
  font-size: ${Dt};
90
90
  font-weight: ${Gt};
91
- letter-spacing: ${Kt};
92
- line-height: ${Lt};
93
- text-transform: ${Ht};
91
+ letter-spacing: ${qt};
92
+ line-height: ${Ht};
93
+ text-transform: ${Lt};
94
94
  }
95
- `,li=i.css`
95
+ `,le=i.css`
96
96
  .ft-typography--button {
97
97
  font-family: ${Ft};
98
- font-size: ${qt};
99
- font-weight: ${Jt};
100
- letter-spacing: ${Pt};
101
- line-height: ${Qt};
102
- text-transform: ${Vt};
98
+ font-size: ${Jt};
99
+ font-weight: ${Pt};
100
+ letter-spacing: ${Qt};
101
+ line-height: ${Vt};
102
+ text-transform: ${Xt};
103
103
  }
104
- `;let ai=class extends e.FtLitElement{constructor(){super(...arguments),this.variant=D.body1}getStyles(){return[Xt,Yt,ti,ii,oi,ei,ni,si,ri,li,i.css`
105
- .ft-typography {
106
- vertical-align: inherit;
107
- }
108
- `]}getTemplate(){return this.element?W`
104
+ `;class pe extends e.FtLitElement{constructor(){super(...arguments),this.variant=D.body1}render(){return this.element?R`
109
105
  <${B(this.element)}
110
106
  class="ft-typography ft-typography--${this.variant}">
111
107
  <slot></slot>
112
108
  </${B(this.element)}>
113
- `:W`
109
+ `:R`
114
110
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
115
- `}};G([o.property()],ai.prototype,"element",void 0),G([o.property()],ai.prototype,"variant",void 0),ai=G([e.customElement("ft-typography")],ai);
116
- /**
117
- * @license
118
- * Copyright 2021 Google LLC
119
- * SPDX-LIcense-Identifier: Apache-2.0
120
- */
121
- const hi=i.css`: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"}`
122
- /**
123
- * @license
124
- * Copyright 2018 Google LLC
125
- * SPDX-License-Identifier: Apache-2.0
126
- */;let pi=class extends i.LitElement{render(){return i.html`<span><slot></slot></span>`}};pi.styles=[hi],pi=
127
- /*! *****************************************************************************
128
- Copyright (c) Microsoft Corporation.
129
-
130
- Permission to use, copy, modify, and/or distribute this software for any
131
- purpose with or without fee is hereby granted.
132
-
133
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
134
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
135
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
136
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
137
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
138
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
139
- PERFORMANCE OF THIS SOFTWARE.
140
- ***************************************************************************** */
141
- function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,o,r):n(i,o))||r);return s>3&&r&&Object.defineProperty(i,o,r),r}([o.customElement("mwc-icon")],pi);var fi=function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,o,r):n(i,o))||r);return s>3&&r&&Object.defineProperty(i,o,r),r};const gi={zIndex:e.FtCssVariable.create("--ft-dialog-z-index","NUMBER","2"),overlayBackgroundColor:e.FtCssVariable.create("--ft-dialog-overlay-background-color","COLOR","rgba(0, 0, 0, 0.3)"),height:e.FtCssVariable.create("--ft-dialog-height","SIZE","unset"),width:e.FtCssVariable.create("--ft-dialog-width","SIZE","unset"),minWidth:e.FtCssVariable.create("--ft-dialog-min-width","SIZE","unset"),paddingTop:e.FtCssVariable.create("--ft-dialog-padding-top","SIZE","20px"),paddingSide:e.FtCssVariable.create("--ft-dialog-padding-side","SIZE","16px"),paddingButtons:e.FtCssVariable.create("--ft-dialog-padding-buttons","SIZE","20px"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),headingColor:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation24:e.FtCssVariable.external(e.designSystemVariables.elevation24,"Design system")};let yi=class extends e.FtLitElement{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.heading="",this.icon=""}getStyles(){return i.css`
111
+ `}}var he,fe;pe.styles=[Yt,te,ee,ie,oe,ne,se,ae,re,le,i.css`
112
+ .ft-typography {
113
+ vertical-align: inherit;
114
+ }
115
+ `],G([o.property()],pe.prototype,"element",void 0),G([o.property()],pe.prototype,"variant",void 0),e.customElement("ft-typography")(pe),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;"}(he||(he={})),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;"}(fe||(fe={})),new Map([...["abw"].map((t=>[t,fe.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,fe.AUDIO])),...["avi"].map((t=>[t,fe.AVI])),...["chm","xhs"].map((t=>[t,fe.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,fe.CODE])),...["csv"].map((t=>[t,fe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,fe.DITA])),...["epub"].map((t=>[t,fe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,fe.EXCEL])),...["flac"].map((t=>[t,fe.FLAC])),...["gif"].map((t=>[t,fe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,fe.GZIP])),...["html","htm","xhtml"].map((t=>[t,fe.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,fe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,fe.JPEG])),...["json"].map((t=>[t,fe.JSON])),...["m4a","m4p"].map((t=>[t,fe.M4A])),...["mov","qt"].map((t=>[t,fe.MOV])),...["mp3"].map((t=>[t,fe.MP3])),...["mp4","m4v"].map((t=>[t,fe.MP4])),...["ogg","oga"].map((t=>[t,fe.OGG])),...["pdf","ps"].map((t=>[t,fe.PDF])),...["png"].map((t=>[t,fe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,fe.POWERPOINT])),...["rar"].map((t=>[t,fe.RAR])),...["stp"].map((t=>[t,fe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,fe.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,fe.VIDEO])),...["wav"].map((t=>[t,fe.WAV])),...["wma"].map((t=>[t,fe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,fe.WORD])),...["xml","xsl","rdf"].map((t=>[t,fe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,fe.YAML])),...["zip"].map((t=>[t,fe.ZIP]))]);var xe,ge=function(t,e,i,o){for(var n,s=arguments.length,a=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(a=(s<3?n(a):s>3?n(e,i,a):n(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(xe||(xe={}));const de=e.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),ye=e.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),ce=e.FtCssVariable.extend("--ft-icon-file-format-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),me=e.FtCssVariable.extend("--ft-icon-material-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class ue extends e.FtLitElement{constructor(){super(...arguments),this.variant=xe.fluid_topics}render(){return i.html`
116
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
117
+ ${n.unsafeHTML(this.getIcon())}
118
+ <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
119
+ </i>
120
+ `}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 o=this.textContent;return this.variant===xe.file_format?null!==(t=fe[o.toUpperCase()])&&void 0!==t?t:o:this.variant===xe.fluid_topics?null!==(e=he[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}ue.elementDefinitions={},ue.styles=i.css`
121
+ :host, i.ft-icon {
122
+ display: inline-block;
123
+ width: ${de};
124
+ height: ${de};
125
+ text-align: center;
126
+ }
127
+
128
+ i.ft-icon {
129
+ font-size: ${de};
130
+ line-height: 1;
131
+ font-weight: normal;
132
+ text-transform: none;
133
+ font-style: normal;
134
+ font-variant: normal;
135
+ speak: none;
136
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
137
+ text-rendering: auto;
138
+ -webkit-font-smoothing: antialiased;
139
+ -moz-osx-font-smoothing: grayscale;
140
+ }
141
+
142
+ .ft-icon--fluid-topics {
143
+ font-family: ${ye}, ft-icons, fticons, sans-serif;
144
+ }
145
+
146
+ .ft-icon--file-format {
147
+ font-family: ${ce}, ft-mime, sans-serif;
148
+ }
149
+
150
+ .ft-icon--material {
151
+ font-family: ${me}, "Material Icons", sans-serif;
152
+ }
153
+ `,ge([o.property()],ue.prototype,"variant",void 0),ge([o.query("slot")],ue.prototype,"slottedContent",void 0),e.customElement("ft-icon")(ue);var ve=function(t,e,i,o){for(var n,s=arguments.length,a=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(n=t[r])&&(a=(s<3?n(a):s>3?n(e,i,a):n(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};const $e={zIndex:e.FtCssVariable.create("--ft-dialog-z-index","NUMBER","2"),overlayBackgroundColor:e.FtCssVariable.create("--ft-dialog-overlay-background-color","COLOR","rgba(0, 0, 0, 0.3)"),height:e.FtCssVariable.create("--ft-dialog-height","SIZE","unset"),width:e.FtCssVariable.create("--ft-dialog-width","SIZE","unset"),minWidth:e.FtCssVariable.create("--ft-dialog-min-width","SIZE","unset"),paddingTop:e.FtCssVariable.create("--ft-dialog-padding-top","SIZE","20px"),paddingSide:e.FtCssVariable.create("--ft-dialog-padding-side","SIZE","16px"),paddingButtons:e.FtCssVariable.create("--ft-dialog-padding-buttons","SIZE","20px"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),headingColor:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation24:e.FtCssVariable.external(e.designSystemVariables.elevation24,"Design system")};class be extends e.FtLitElement{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.heading="",this.icon=""}static get styles(){return i.css`
142
154
  .ft-dialog {
143
155
  position: fixed;
144
156
  top: 0;
145
157
  right: 0;
146
158
  bottom: 0;
147
159
  left: 0;
148
- z-index: ${gi.zIndex};
160
+ z-index: ${$e.zIndex};
149
161
 
150
162
  display: flex;
151
163
  flex-direction: column;
@@ -165,7 +177,7 @@ function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnP
165
177
  height: 100%;
166
178
  width: 100%;
167
179
 
168
- background-color: ${gi.overlayBackgroundColor};
180
+ background-color: ${$e.overlayBackgroundColor};
169
181
 
170
182
  }
171
183
 
@@ -174,20 +186,20 @@ function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnP
174
186
  display: flex;
175
187
  flex-direction: column;
176
188
 
177
- width: ${gi.width};
178
- height: ${gi.height};
189
+ width: ${$e.width};
190
+ height: ${$e.height};
179
191
  max-width: 95vw;
180
192
  max-height: 95vh;
181
- min-width: ${gi.minWidth};
193
+ min-width: ${$e.minWidth};
182
194
 
183
- padding-top: ${gi.paddingTop};
184
- padding-right: ${gi.paddingSide};
185
- padding-left: ${gi.paddingSide};
195
+ padding-top: ${$e.paddingTop};
196
+ padding-right: ${$e.paddingSide};
197
+ padding-left: ${$e.paddingSide};
186
198
 
187
- background-color: ${gi.colorSurface};
199
+ background-color: ${$e.colorSurface};
188
200
 
189
- border-radius: ${gi.borderRadiusS};
190
- box-shadow: ${gi.elevation24};
201
+ border-radius: ${$e.borderRadiusS};
202
+ box-shadow: ${$e.elevation24};
191
203
  }
192
204
 
193
205
  .ft-dialog-content {
@@ -201,11 +213,11 @@ function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnP
201
213
  margin-bottom: 20px;
202
214
  gap: 8px;
203
215
 
204
- color: ${gi.headingColor};
216
+ color: ${$e.headingColor};
205
217
  }
206
218
 
207
219
  .ft-dialog-buttons {
208
- padding-top: ${gi.paddingButtons};
220
+ padding-top: ${$e.paddingButtons};
209
221
  }
210
222
 
211
223
  slot[name=buttons] {
@@ -220,14 +232,14 @@ function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnP
220
232
  margin-bottom: 8px
221
233
  }
222
234
 
223
- `}getTemplate(){return this.opened?i.html`
235
+ `}render(){return this.opened?i.html`
224
236
  <div class="ft-dialog">
225
237
  <div class="ft-dialog-overlay" @click="${()=>this.watchClickOutside()}"></div>
226
238
  <div class="ft-dialog-wrapper">
227
239
  ${this.heading?i.html`
228
240
  <div class="ft-dialog-heading">
229
241
  ${this.icon?i.html`
230
- <mwc-icon>${this.icon}</mwc-icon>`:void 0}
242
+ <ft-icon variant="material">${this.icon}</ft-icon>`:void 0}
231
243
  <ft-typography element="span" variant="title">${this.heading}</ft-typography>
232
244
  </div>
233
245
  `:null}
@@ -239,4 +251,4 @@ function(t,i,o,e){for(var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnP
239
251
  </div>
240
252
  </div>
241
253
  </div>
242
- `: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()}};yi.elementDefinitions={"ft-typography":ai,"mwc-icon":pi},fi([o.property({type:Boolean,hasChanged:(t,i)=>!1===i&&!0===t||!0===i&&!1===t})],yi.prototype,"opened",void 0),fi([o.property({type:Boolean})],yi.prototype,"closeOnEsc",void 0),fi([o.property({type:Boolean})],yi.prototype,"closeOnClickOutside",void 0),fi([o.property({type:String})],yi.prototype,"heading",void 0),fi([o.property({type:String})],yi.prototype,"icon",void 0),yi=fi([e.customElement("ft-dialog")],yi);var di=yi;t.FtDialogCssVariables=gi,t.default=di,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.wcUtils);
254
+ `: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()}}be.elementDefinitions={"ft-typography":pe,"ft-icon":ue},ve([o.property({type:Boolean,hasChanged:(t,e)=>!1===e&&!0===t||!0===e&&!1===t})],be.prototype,"opened",void 0),ve([o.property({type:Boolean})],be.prototype,"closeOnEsc",void 0),ve([o.property({type:Boolean})],be.prototype,"closeOnClickOutside",void 0),ve([o.property({type:String})],be.prototype,"heading",void 0),ve([o.property({type:String})],be.prototype,"icon",void 0),e.customElement("ft-dialog")(be),t.FtDialog=be,t.FtDialogCssVariables=$e,t.default=be,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);