@fluid-topics/ft-dialog 0.2.12 → 0.2.15

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,132 +1,132 @@
1
- !function(t,e,i,o,n){
1
+ !function(t,i,e,o,n,s){
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
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"),S=Symbol.for("lit-nothing"),k=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]?A:"?"===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 C(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 C{constructor(t,e,i,o){var n;this.type=2,this._$AH=S,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===S||null==t||""===t?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==z&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return d(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==S&&g(this._$AH)?this._$AA.nextSibling.data=t:this.k(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.k(e),this._$AH=t}}_$AC(t){let e=k.get(t.strings);return void 0===e&&k.set(t.strings,e=new E(t)),e}S(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 C(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=S,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=S}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===S?t=S:t!==S&&(t+=(null!=r?r:"")+n[a+1]),this._$AH[a]=r}s&&!o&&this.C(t)}C(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class A extends _{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===S?void 0:t}}const Z=a?a.emptyScript:"";class M extends _{constructor(){super(...arguments),this.type=4}C(t){t&&t!==S?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:S)===z)return;const o=this._$AH,n=t===S&&o!==S||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==S&&(o===S||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,C),(null!==(s=globalThis.litHtmlVersions)&&void 0!==s?s:globalThis.litHtmlVersions=[]).push("2.2.4");
7
+ var r;const a=globalThis.trustedTypes,l=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,p=`lit$${(Math.random()+"").slice(9)}$`,h="?"+p,f=`<${h}>`,d=document,c=(t="")=>d.createComment(t),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,g=Array.isArray,x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,y=/-->/g,b=/>/g,v=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,m=/'/g,$=/"/g,w=/^(?:script|style|textarea|title)$/i,k=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),z=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),C=new WeakMap,O=d.createTreeWalker(d,129,null,!1),j=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=x;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,d=0;for(;d<e.length&&(r.lastIndex=d,l=r.exec(e),null!==l);)d=r.lastIndex,r===x?"!--"===l[1]?r=y:void 0!==l[1]?r=b:void 0!==l[2]?(w.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=v):void 0!==l[3]&&(r=v):r===v?">"===l[0]?(r=null!=n?n:x,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?v:'"'===l[3]?$:m):r===$||r===m?r=v:r===y||r===b?r=x:(r=v,n=void 0);const c=r===v&&t[i+1].startsWith("/>")?" ":"";s+=r===x?e+f:h>=0?(o.push(a),e.slice(0,h)+"$lit$"+e.slice(h)+p+c):e+p+(-2===h?(o.push(void 0),i):c)}const a=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==l?l.createHTML(a):a,o]};class E{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[f,d]=j(t,i);if(this.el=E.createElement(f,e),O.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=O.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(p)){const e=d[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(p),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?A:"?"===i[1]?M:"@"===i[1]?_:T})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(w.test(o.tagName)){const t=o.textContent.split(p),i=t.length-1;if(i>0){o.textContent=a?a.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],c()),O.nextNode(),l.push({type:2,index:++n});o.append(t[i],c())}}}else if(8===o.nodeType)if(o.data===h)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(p,t+1));)l.push({type:7,index:n}),t+=p.length-1}n++}}static createElement(t,i){const e=d.createElement("template");return e.innerHTML=t,e}}function N(t,i,e=t,o){var n,s,r,a;if(i===z)return i;let l=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const p=u(i)?void 0:i._$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,e,o)),void 0!==o?(null!==(r=(a=e)._$Cl)&&void 0!==r?r:a._$Cl=[])[o]=l:e._$Cu=l),void 0!==l&&(i=N(t,l._$AS(t,i.values),l,o)),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:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:d).importNode(e,!0);O.currentNode=n;let s=O.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new B(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new Z(s,this,t)),this.v.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=O.nextNode(),r++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class B{constructor(t,i,e,o){var n;this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$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=N(this,t,i),u(t)?t===S||null==t||""===t?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==z&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return g(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==S&&u(this._$AH)?this._$AA.nextSibling.data=t:this.k(d.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$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===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new I(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=C.get(t.strings);return void 0===i&&C.set(t.strings,i=new E(t)),i}S(t){g(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new B(this.M(c()),this.M(c()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class T{constructor(t,i,e,o,n){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=S}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=N(this,t,i,0),s=!u(t)||t!==this._$AH&&t!==z,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=N(this,o[e+r],i,r),a===z&&(a=this._$AH[r]),s||(s=!u(a)||a!==this._$AH[r]),a===S?t=S:t!==S&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.C(t)}C(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class A extends T{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===S?void 0:t}}const F=a?a.emptyScript:"";class M extends T{constructor(){super(...arguments),this.type=4}C(t){t&&t!==S?this.element.setAttribute(this.name,F):this.element.removeAttribute(this.name)}}class _ extends T{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=N(this,t,i,0))&&void 0!==e?e:S)===z)return;const o=this._$AH,n=t===S&&o!==S||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==S&&(o===S||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){N(this,t)}}const D=window.litHtmlPolyfillSupport;null==D||D(E,B),(null!==(r=globalThis.litHtmlVersions)&&void 0!==r?r:globalThis.litHtmlVersions=[]).push("2.2.4");
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2020 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const B=Symbol.for(""),K=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===B)return null===(i=t)||void 0===i?void 0:i._$litStatic$},R=t=>({_$litStatic$:t,r:B}),D=new Map,G=(t=>(e,...i)=>{const o=i.length;let n,s;const a=[],r=[];let l,p=0,h=!1;for(;p<o;){for(l=e[p];p<o&&void 0!==(s=i[p],n=K(s));)l+=n+e[++p],h=!0;r.push(s),a.push(l),p++}if(p===o&&a.push(e[o]),h){const t=a.join("$$lit$$");void 0===(e=D.get(t))&&(a.raw=a,D.set(t,e=a)),i=r}return t(e,...i)})(w);var q,H=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"}(q||(q={}));const L=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),F=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),J={fontFamily:F,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")},P=e.FtCssVariable.extend("--ft-typography-title-font-family",L),Q=e.FtCssVariable.extend("--ft-typography-title-font-size",J.fontSize,"20px"),V=e.FtCssVariable.extend("--ft-typography-title-font-weight",J.fontWeight,"normal"),X=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",J.letterSpacing,"0.15px"),Y=e.FtCssVariable.extend("--ft-typography-title-line-height",J.lineHeight,"24px"),tt=e.FtCssVariable.extend("--ft-typography-title-text-transform",J.textTransform,"inherit"),et=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",L),it=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",J.fontSize,"14px"),ot=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",J.fontWeight,"normal"),nt=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",J.letterSpacing,"0.105px"),st=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",J.lineHeight,"24px"),at=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",J.textTransform,"inherit"),rt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",F),lt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",J.fontSize,"16px"),pt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",J.fontWeight,"600"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",J.letterSpacing,"0.144px"),ft=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",J.lineHeight,"24px"),xt=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",J.textTransform,"inherit"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",F),dt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",J.fontSize,"14px"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",J.fontWeight,"normal"),ct=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",J.letterSpacing,"0.098px"),mt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",J.lineHeight,"24px"),ut=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",J.textTransform,"inherit"),vt=e.FtCssVariable.extend("--ft-typography-body1-font-family",F),$t=e.FtCssVariable.extend("--ft-typography-body1-font-size",J.fontSize,"16px"),bt=e.FtCssVariable.extend("--ft-typography-body1-font-weight",J.fontWeight,"normal"),wt=e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",J.letterSpacing,"0.496px"),zt=e.FtCssVariable.extend("--ft-typography-body1-line-height",J.lineHeight,"24px"),St=e.FtCssVariable.extend("--ft-typography-body1-text-transform",J.textTransform,"inherit"),kt=e.FtCssVariable.extend("--ft-typography-body2-font-family",F),Nt=e.FtCssVariable.extend("--ft-typography-body2-font-size",J.fontSize,"14px"),jt=e.FtCssVariable.extend("--ft-typography-body2-font-weight",J.fontWeight,"normal"),Et=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",J.letterSpacing,"0.252px"),It=e.FtCssVariable.extend("--ft-typography-body2-line-height",J.lineHeight,"20px"),Ot=e.FtCssVariable.extend("--ft-typography-body2-text-transform",J.textTransform,"inherit"),Ct=e.FtCssVariable.extend("--ft-typography-caption-font-family",F),_t=e.FtCssVariable.extend("--ft-typography-caption-font-size",J.fontSize,"12px"),At=e.FtCssVariable.extend("--ft-typography-caption-font-weight",J.fontWeight,"normal"),Zt=e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",J.letterSpacing,"0.396px"),Mt=e.FtCssVariable.extend("--ft-typography-caption-line-height",J.lineHeight,"16px"),Tt=e.FtCssVariable.extend("--ft-typography-caption-text-transform",J.textTransform,"inherit"),Ut=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",F),Wt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",J.fontSize,"10px"),Bt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",J.fontWeight,"normal"),Kt=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",J.letterSpacing,"0.33px"),Rt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",J.lineHeight,"16px"),Dt=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",J.textTransform,"inherit"),Gt=e.FtCssVariable.extend("--ft-typography-overline-font-family",F),qt=e.FtCssVariable.extend("--ft-typography-overline-font-size",J.fontSize,"10px"),Ht=e.FtCssVariable.extend("--ft-typography-overline-font-weight",J.fontWeight,"normal"),Lt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",J.letterSpacing,"1.5px"),Ft=e.FtCssVariable.extend("--ft-typography-overline-line-height",J.lineHeight,"16px"),Jt=e.FtCssVariable.extend("--ft-typography-overline-text-transform",J.textTransform,"uppercase"),Pt=e.FtCssVariable.extend("--ft-typography-button-font-family",F),Qt=e.FtCssVariable.extend("--ft-typography-button-font-size",J.fontSize,"14px"),Vt=e.FtCssVariable.extend("--ft-typography-button-font-weight",J.fontWeight,"600"),Xt=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",J.letterSpacing,"1.246px"),Yt=e.FtCssVariable.extend("--ft-typography-button-line-height",J.lineHeight,"16px"),te=e.FtCssVariable.extend("--ft-typography-button-text-transform",J.textTransform,"uppercase"),ee=i.css`
13
+ const R=Symbol.for(""),U=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===R)return null===(e=t)||void 0===e?void 0:e._$litStatic$},W=t=>({_$litStatic$:t,r:R}),H=new Map,K=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=i[p];p<o&&void 0!==(s=e[p],n=U(s));)l+=n+i[++p],h=!0;a.push(s),r.push(l),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=H.get(t))&&(r.raw=r,H.set(t,i=r)),e=a}return t(i,...e)})(k);var L,G=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};!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"}(L||(L={}));const q=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),P=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),X={fontFamily:P,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},Y=i.FtCssVariable.extend("--ft-typography-title-font-family",q),J=i.FtCssVariable.extend("--ft-typography-title-font-size",X.fontSize,"20px"),Q=i.FtCssVariable.extend("--ft-typography-title-font-weight",X.fontWeight,"normal"),V=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",X.letterSpacing,"0.15px"),tt=i.FtCssVariable.extend("--ft-typography-title-line-height",X.lineHeight,"24px"),it=i.FtCssVariable.extend("--ft-typography-title-text-transform",X.textTransform,"inherit"),et=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",q),ot=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",X.fontSize,"14px"),nt=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",X.fontWeight,"normal"),st=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",X.letterSpacing,"0.105px"),rt=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",X.lineHeight,"24px"),at=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",X.textTransform,"inherit"),lt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",P),pt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",X.fontSize,"16px"),ht=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",X.fontWeight,"600"),ft=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",X.letterSpacing,"0.144px"),dt=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",X.lineHeight,"24px"),ct=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",X.textTransform,"inherit"),ut=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",P),gt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",X.fontSize,"14px"),xt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",X.fontWeight,"normal"),yt=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",X.letterSpacing,"0.098px"),bt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",X.lineHeight,"24px"),vt=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",X.textTransform,"inherit"),mt=i.FtCssVariable.extend("--ft-typography-body1-font-family",P),$t=i.FtCssVariable.extend("--ft-typography-body1-font-size",X.fontSize,"16px"),wt=i.FtCssVariable.extend("--ft-typography-body1-font-weight",X.fontWeight,"normal"),kt=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",X.letterSpacing,"0.496px"),zt=i.FtCssVariable.extend("--ft-typography-body1-line-height",X.lineHeight,"24px"),St=i.FtCssVariable.extend("--ft-typography-body1-text-transform",X.textTransform,"inherit"),Ct=i.FtCssVariable.extend("--ft-typography-body2-font-family",P),Ot=i.FtCssVariable.extend("--ft-typography-body2-font-size",X.fontSize,"14px"),jt=i.FtCssVariable.extend("--ft-typography-body2-font-weight",X.fontWeight,"normal"),Et=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",X.letterSpacing,"0.252px"),Nt=i.FtCssVariable.extend("--ft-typography-body2-line-height",X.lineHeight,"20px"),It=i.FtCssVariable.extend("--ft-typography-body2-text-transform",X.textTransform,"inherit"),Bt=i.FtCssVariable.extend("--ft-typography-caption-font-family",P),Tt=i.FtCssVariable.extend("--ft-typography-caption-font-size",X.fontSize,"12px"),At=i.FtCssVariable.extend("--ft-typography-caption-font-weight",X.fontWeight,"normal"),Ft=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",X.letterSpacing,"0.396px"),Mt=i.FtCssVariable.extend("--ft-typography-caption-line-height",X.lineHeight,"16px"),_t=i.FtCssVariable.extend("--ft-typography-caption-text-transform",X.textTransform,"inherit"),Zt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",P),Dt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",X.fontSize,"10px"),Rt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",X.fontWeight,"normal"),Ut=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",X.letterSpacing,"0.33px"),Wt=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",X.lineHeight,"16px"),Ht=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",X.textTransform,"inherit"),Kt=i.FtCssVariable.extend("--ft-typography-overline-font-family",P),Lt=i.FtCssVariable.extend("--ft-typography-overline-font-size",X.fontSize,"10px"),Gt=i.FtCssVariable.extend("--ft-typography-overline-font-weight",X.fontWeight,"normal"),qt=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",X.letterSpacing,"1.5px"),Pt=i.FtCssVariable.extend("--ft-typography-overline-line-height",X.lineHeight,"16px"),Xt=i.FtCssVariable.extend("--ft-typography-overline-text-transform",X.textTransform,"uppercase"),Yt={fontFamily:i.FtCssVariable.extend("--ft-typography-button-font-family",P),fontSize:i.FtCssVariable.extend("--ft-typography-button-font-size",X.fontSize,"14px"),fontWeight:i.FtCssVariable.extend("--ft-typography-button-font-weight",X.fontWeight,"600"),letterSpacing:i.FtCssVariable.extend("--ft-typography-button-letter-spacing",X.letterSpacing,"1.246px"),lineHeight:i.FtCssVariable.extend("--ft-typography-button-line-height",X.lineHeight,"16px"),textTransform:i.FtCssVariable.extend("--ft-typography-button-text-transform",X.textTransform,"uppercase")},Jt=e.css`
14
14
  .ft-typography--title {
15
- font-family: ${P};
16
- font-size: ${Q};
17
- font-weight: ${V};
18
- letter-spacing: ${X};
19
- line-height: ${Y};
20
- text-transform: ${tt};
15
+ font-family: ${Y};
16
+ font-size: ${J};
17
+ font-weight: ${Q};
18
+ letter-spacing: ${V};
19
+ line-height: ${tt};
20
+ text-transform: ${it};
21
21
  }
22
- `,ie=i.css`
22
+ `,Qt=e.css`
23
23
  .ft-typography--title-dense {
24
24
  font-family: ${et};
25
- font-size: ${it};
26
- font-weight: ${ot};
27
- letter-spacing: ${nt};
28
- line-height: ${st};
25
+ font-size: ${ot};
26
+ font-weight: ${nt};
27
+ letter-spacing: ${st};
28
+ line-height: ${rt};
29
29
  text-transform: ${at};
30
30
  }
31
- `,oe=i.css`
31
+ `,Vt=e.css`
32
32
  .ft-typography--subtitle1 {
33
- font-family: ${rt};
34
- font-size: ${lt};
35
- font-weight: ${pt};
36
- letter-spacing: ${ht};
37
- line-height: ${ft};
38
- text-transform: ${xt};
33
+ font-family: ${lt};
34
+ font-size: ${pt};
35
+ font-weight: ${ht};
36
+ letter-spacing: ${ft};
37
+ line-height: ${dt};
38
+ text-transform: ${ct};
39
39
  }
40
- `,ne=i.css`
40
+ `,ti=e.css`
41
41
  .ft-typography--subtitle2 {
42
- font-family: ${gt};
43
- font-size: ${dt};
44
- font-weight: ${yt};
45
- letter-spacing: ${ct};
46
- line-height: ${mt};
47
- text-transform: ${ut};
42
+ font-family: ${ut};
43
+ font-size: ${gt};
44
+ font-weight: ${xt};
45
+ letter-spacing: ${yt};
46
+ line-height: ${bt};
47
+ text-transform: ${vt};
48
48
  }
49
49
 
50
- `,se=i.css`
50
+ `,ii=e.css`
51
51
  .ft-typography--body1 {
52
- font-family: ${vt};
52
+ font-family: ${mt};
53
53
  font-size: ${$t};
54
- font-weight: ${bt};
55
- letter-spacing: ${wt};
54
+ font-weight: ${wt};
55
+ letter-spacing: ${kt};
56
56
  line-height: ${zt};
57
57
  text-transform: ${St};
58
58
  }
59
- `,ae=i.css`
59
+ `,ei=e.css`
60
60
  .ft-typography--body2 {
61
- font-family: ${kt};
62
- font-size: ${Nt};
61
+ font-family: ${Ct};
62
+ font-size: ${Ot};
63
63
  font-weight: ${jt};
64
64
  letter-spacing: ${Et};
65
- line-height: ${It};
66
- text-transform: ${Ot};
65
+ line-height: ${Nt};
66
+ text-transform: ${It};
67
67
  }
68
- `,re=i.css`
68
+ `,oi=e.css`
69
69
  .ft-typography--caption {
70
- font-family: ${Ct};
71
- font-size: ${_t};
70
+ font-family: ${Bt};
71
+ font-size: ${Tt};
72
72
  font-weight: ${At};
73
- letter-spacing: ${Zt};
73
+ letter-spacing: ${Ft};
74
74
  line-height: ${Mt};
75
- text-transform: ${Tt};
75
+ text-transform: ${_t};
76
76
  }
77
- `,le=i.css`
77
+ `,ni=e.css`
78
78
  .ft-typography--breadcrumb {
79
- font-family: ${Ut};
80
- font-size: ${Wt};
81
- font-weight: ${Bt};
82
- letter-spacing: ${Kt};
83
- line-height: ${Rt};
84
- text-transform: ${Dt};
79
+ font-family: ${Zt};
80
+ font-size: ${Dt};
81
+ font-weight: ${Rt};
82
+ letter-spacing: ${Ut};
83
+ line-height: ${Wt};
84
+ text-transform: ${Ht};
85
85
  }
86
- `,pe=i.css`
86
+ `,si=e.css`
87
87
  .ft-typography--overline {
88
- font-family: ${Gt};
89
- font-size: ${qt};
90
- font-weight: ${Ht};
91
- letter-spacing: ${Lt};
92
- line-height: ${Ft};
93
- text-transform: ${Jt};
88
+ font-family: ${Kt};
89
+ font-size: ${Lt};
90
+ font-weight: ${Gt};
91
+ letter-spacing: ${qt};
92
+ line-height: ${Pt};
93
+ text-transform: ${Xt};
94
94
  }
95
- `,he=i.css`
95
+ `,ri=e.css`
96
96
  .ft-typography--button {
97
- font-family: ${Pt};
98
- font-size: ${Qt};
99
- font-weight: ${Vt};
100
- letter-spacing: ${Xt};
101
- line-height: ${Yt};
102
- text-transform: ${te};
97
+ font-family: ${Yt.fontFamily};
98
+ font-size: ${Yt.fontSize};
99
+ font-weight: ${Yt.fontWeight};
100
+ letter-spacing: ${Yt.letterSpacing};
101
+ line-height: ${Yt.lineHeight};
102
+ text-transform: ${Yt.textTransform};
103
103
  }
104
- `;class fe extends e.FtLitElement{constructor(){super(...arguments),this.variant=q.body1}render(){return this.element?G`
105
- <${R(this.element)}
104
+ `;class ai extends i.FtLitElement{constructor(){super(...arguments),this.variant=L.body1}render(){return this.element?K`
105
+ <${W(this.element)}
106
106
  class="ft-typography ft-typography--${this.variant}">
107
107
  <slot></slot>
108
- </${R(this.element)}>
109
- `:G`
108
+ </${W(this.element)}>
109
+ `:K`
110
110
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
111
- `}}var xe,ge;fe.styles=[ee,ie,oe,ne,se,ae,re,le,pe,he,i.css`
111
+ `}}var li,pi;ai.styles=[Jt,Qt,Vt,ti,ii,ei,oi,ni,si,ri,e.css`
112
112
  .ft-typography {
113
113
  vertical-align: inherit;
114
114
  }
115
- `],H([o.property()],fe.prototype,"element",void 0),H([o.property()],fe.prototype,"variant",void 0),e.customElement("ft-typography")(fe),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;"}(xe||(xe={})),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;"}(ge||(ge={})),new Map([...["abw"].map((t=>[t,ge.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,ge.AUDIO])),...["avi"].map((t=>[t,ge.AVI])),...["chm","xhs"].map((t=>[t,ge.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,ge.CODE])),...["csv"].map((t=>[t,ge.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ge.DITA])),...["epub"].map((t=>[t,ge.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ge.EXCEL])),...["flac"].map((t=>[t,ge.FLAC])),...["gif"].map((t=>[t,ge.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ge.GZIP])),...["html","htm","xhtml"].map((t=>[t,ge.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,ge.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ge.JPEG])),...["json"].map((t=>[t,ge.JSON])),...["m4a","m4p"].map((t=>[t,ge.M4A])),...["mov","qt"].map((t=>[t,ge.MOV])),...["mp3"].map((t=>[t,ge.MP3])),...["mp4","m4v"].map((t=>[t,ge.MP4])),...["ogg","oga"].map((t=>[t,ge.OGG])),...["pdf","ps"].map((t=>[t,ge.PDF])),...["png"].map((t=>[t,ge.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ge.POWERPOINT])),...["rar"].map((t=>[t,ge.RAR])),...["stp"].map((t=>[t,ge.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ge.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,ge.VIDEO])),...["wav"].map((t=>[t,ge.WAV])),...["wma"].map((t=>[t,ge.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ge.WORD])),...["xml","xsl","rdf"].map((t=>[t,ge.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ge.YAML])),...["zip"].map((t=>[t,ge.ZIP]))]);var de,ye=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"}(de||(de={}));const ce=e.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),me=e.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),ue=e.FtCssVariable.extend("--ft-icon-file-format-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),ve=e.FtCssVariable.extend("--ft-icon-material-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class $e extends e.FtLitElement{constructor(){super(...arguments),this.variant=de.fluid_topics}render(){return i.html`
115
+ `],G([o.property()],ai.prototype,"element",void 0),G([o.property()],ai.prototype,"variant",void 0),i.customElement("ft-typography")(ai),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;"}(li||(li={})),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;"}(pi||(pi={})),new Map([...["abw"].map((t=>[t,pi.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,pi.AUDIO])),...["avi"].map((t=>[t,pi.AVI])),...["chm","xhs"].map((t=>[t,pi.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,pi.CODE])),...["csv"].map((t=>[t,pi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,pi.DITA])),...["epub"].map((t=>[t,pi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,pi.EXCEL])),...["flac"].map((t=>[t,pi.FLAC])),...["gif"].map((t=>[t,pi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,pi.GZIP])),...["html","htm","xhtml"].map((t=>[t,pi.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,pi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,pi.JPEG])),...["json"].map((t=>[t,pi.JSON])),...["m4a","m4p"].map((t=>[t,pi.M4A])),...["mov","qt"].map((t=>[t,pi.MOV])),...["mp3"].map((t=>[t,pi.MP3])),...["mp4","m4v"].map((t=>[t,pi.MP4])),...["ogg","oga"].map((t=>[t,pi.OGG])),...["pdf","ps"].map((t=>[t,pi.PDF])),...["png"].map((t=>[t,pi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,pi.POWERPOINT])),...["rar"].map((t=>[t,pi.RAR])),...["stp"].map((t=>[t,pi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,pi.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,pi.VIDEO])),...["wav"].map((t=>[t,pi.WAV])),...["wma"].map((t=>[t,pi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,pi.WORD])),...["xml","xsl","rdf"].map((t=>[t,pi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,pi.YAML])),...["zip"].map((t=>[t,pi.ZIP]))]);var hi,fi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(hi||(hi={}));const di={size:i.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariable.extend("--ft-icon-file-format-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariable.extend("--ft-icon-material-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class ci extends i.FtLitElement{constructor(){super(...arguments),this.variant=hi.fluid_topics}render(){return e.html`
116
116
  <i class="ft-icon ${"ft-icon--"+this.variant}">
117
117
  ${n.unsafeHTML(this.getIcon())}
118
118
  <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
119
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===de.file_format?null!==(t=ge[o.toUpperCase()])&&void 0!==t?t:o:this.variant===de.fluid_topics?null!==(e=xe[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}$e.elementDefinitions={},$e.styles=i.css`
120
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let o=this.textContent;return this.variant===hi.file_format?null!==(t=pi[o.toUpperCase()])&&void 0!==t?t:o:this.variant===hi.fluid_topics?null!==(i=li[o.toUpperCase()])&&void 0!==i?i:o:e.nothing}}ci.elementDefinitions={},ci.styles=e.css`
121
121
  :host, i.ft-icon {
122
122
  display: inline-block;
123
- width: ${ce};
124
- height: ${ce};
123
+ width: ${di.size};
124
+ height: ${di.size};
125
125
  text-align: center;
126
126
  }
127
127
 
128
128
  i.ft-icon {
129
- font-size: ${ce};
129
+ font-size: ${di.size};
130
130
  line-height: 1;
131
131
  font-weight: normal;
132
132
  text-transform: none;
@@ -140,24 +140,409 @@ const B=Symbol.for(""),K=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
140
140
  }
141
141
 
142
142
  .ft-icon--fluid-topics {
143
- font-family: ${me}, ft-icons, fticons, sans-serif;
143
+ font-family: ${di.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
144
144
  }
145
145
 
146
146
  .ft-icon--file-format {
147
- font-family: ${ue}, ft-mime, sans-serif;
147
+ font-family: ${di.fileFormatFontFamily}, ft-mime, sans-serif;
148
148
  }
149
149
 
150
150
  .ft-icon--material {
151
- font-family: ${ve}, "Material Icons", sans-serif;
151
+ font-family: ${di.materialFontFamily}, "Material Icons", sans-serif;
152
+ }
153
+ `,fi([o.property()],ci.prototype,"variant",void 0),fi([o.query("slot")],ci.prototype,"slottedContent",void 0),i.customElement("ft-icon")(ci);var ui=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const gi=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorContent),xi={color:gi,backgroundColor:i.FtCssVariable.extend("--ft-ripple-background-color",gi),opacityContentOnSurfacePressed:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},yi=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),bi=yi,vi=i.FtCssVariable.extend("--ft-ripple-background-color",yi),mi=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),$i=mi,wi=i.FtCssVariable.extend("--ft-ripple-background-color",mi);class ki extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
154
+ <style>
155
+ .ft-ripple .ft-ripple--effect,
156
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
157
+ width: ${this.rippleSize}px;
158
+ height: ${this.rippleSize}px;
159
+ }
160
+
161
+ .ft-ripple .ft-ripple--effect {
162
+ left: ${this.originX}px;
163
+ top: ${this.originY}px;
164
+ }
165
+ </style>
166
+ <div class="${s.classMap(t)}">
167
+ <div class="ft-ripple--background"></div>
168
+ <div class="ft-ripple--effect"></div>
169
+ </div>
170
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}ki.elementDefinitions={},ki.styles=e.css`
171
+ :host {
172
+ display: contents;
173
+ }
174
+
175
+ .ft-ripple {
176
+ position: absolute;
177
+ inset: 0;
178
+ pointer-events: none;
179
+ }
180
+
181
+ .ft-ripple:not(.ft-ripple--unbounded) {
182
+ overflow: hidden;
183
+ }
184
+
185
+ .ft-ripple .ft-ripple--background,
186
+ .ft-ripple .ft-ripple--effect {
187
+ position: absolute;
188
+ opacity: 0;
189
+ }
190
+
191
+ .ft-ripple .ft-ripple--background {
192
+ background-color: ${xi.backgroundColor};
193
+ }
194
+
195
+ .ft-ripple .ft-ripple--effect {
196
+ background-color: ${xi.color};
197
+ }
198
+
199
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
200
+ background-color: ${wi};
201
+ }
202
+
203
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
204
+ background-color: ${$i};
205
+ }
206
+
207
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
208
+ background-color: ${vi};
209
+ }
210
+
211
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
212
+ background-color: ${bi};
213
+ }
214
+
215
+ .ft-ripple .ft-ripple--background {
216
+ top: 0;
217
+ left: 0;
218
+ height: 100%;
219
+ width: 100%;
220
+ transition: opacity 75ms linear;
221
+ }
222
+
223
+ .ft-ripple .ft-ripple--effect,
224
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
225
+ border-radius: 50%;
226
+ }
227
+
228
+ .ft-ripple .ft-ripple--effect {
229
+ transform: translate(-50%, -50%) scale(0.15);
230
+ transition: transform 300ms ease, opacity 75ms linear;
231
+ }
232
+
233
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
234
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
235
+ left: 50%;
236
+ top: 50%;
237
+ }
238
+
239
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
240
+ transform: translate(-50%, -50%);
241
+ }
242
+
243
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
244
+ opacity: ${xi.opacityContentOnSurfaceHover};
245
+ }
246
+
247
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
248
+ opacity: ${xi.opacityContentOnSurfaceSelected};
249
+ }
250
+
251
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
252
+ opacity: ${xi.opacityContentOnSurfaceFocused};
253
+ }
254
+
255
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
256
+ opacity: ${xi.opacityContentOnSurfacePressed};
257
+ transform: translate(-50%, -50%) scale(1);
258
+ }
259
+ `,ui([o.property({type:Boolean})],ki.prototype,"primary",void 0),ui([o.property({type:Boolean})],ki.prototype,"secondary",void 0),ui([o.property({type:Boolean})],ki.prototype,"unbounded",void 0),ui([o.property({type:Boolean})],ki.prototype,"activated",void 0),ui([o.property({type:Boolean})],ki.prototype,"selected",void 0),ui([o.property({type:Boolean})],ki.prototype,"disabled",void 0),ui([o.state()],ki.prototype,"hovered",void 0),ui([o.state()],ki.prototype,"focused",void 0),ui([o.state()],ki.prototype,"pressed",void 0),ui([o.state()],ki.prototype,"rippling",void 0),ui([o.state()],ki.prototype,"rippleSize",void 0),ui([o.state()],ki.prototype,"originX",void 0),ui([o.state()],ki.prototype,"originY",void 0),ui([o.query(".ft-ripple")],ki.prototype,"ripple",void 0),ui([o.query(".ft-ripple--effect")],ki.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(ki);var zi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const Si=i.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),Ci=i.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),Oi=i.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),ji=i.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),Ei=i.FtCssVariable.external(i.designSystemVariables.borderRadiusS,"Design system");class Ni extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}render(){return e.html`
260
+ <div part="container"
261
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
262
+ @mouseenter=${this.onHover}
263
+ @mouseleave=${this.onOut}
264
+ @focusin=${this.onHover}
265
+ @focusout=${this.onOut}
266
+ @touchstart=${this.onTouch}>
267
+ <div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
268
+ <div part="tooltip-content" class="ft-tooltip--content">
269
+ <ft-typography variant="caption">${this.text}</ft-typography>
270
+ </div>
271
+ </div>
272
+ <slot></slot>
273
+ </div>
274
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2,n=this.tooltip.style;switch(this.position){case"top":n.top=-this.tooltip.clientHeight+"px",n.left=o+"px";break;case"bottom":n.top=i.height+"px",n.left=o+"px";break;case"left":n.top=e+"px",n.left=-this.tooltip.clientWidth+"px";break;case"right":n.top=e+"px",n.left=i.width+"px"}n.maxWidth=Math.max(i.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}Ni.elementDefinitions={"ft-typography":ai},Ni.styles=e.css`
275
+ .ft-tooltip--container {
276
+ display: block;
277
+ position: relative;
278
+ }
279
+
280
+ .ft-tooltip--inline {
281
+ display: inline-block;
282
+ max-width: 100%;
283
+ }
284
+
285
+ .ft-tooltip {
286
+ position: absolute;
287
+ box-sizing: border-box;
288
+ overflow: hidden;
289
+ width: max-content;
290
+ max-width: 150px;
291
+ text-align: center;
292
+ padding: ${Si};
293
+ z-index: ${ji};
294
+ }
295
+
296
+ .ft-tooltip--content {
297
+ padding: 4px 8px;
298
+ border-radius: ${Ei};
299
+ background-color: ${Oi};
300
+ color: ${Ci};
301
+ top: -500px;
302
+ left: -500px;
303
+ position: relative;
304
+ word-break: break-word;
152
305
  }
153
- `,ye([o.property()],$e.prototype,"variant",void 0),ye([o.query("slot")],$e.prototype,"slottedContent",void 0),e.customElement("ft-icon")($e);var be=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 we={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 ze 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`
306
+ `,zi([o.property()],Ni.prototype,"text",void 0),zi([o.property({type:Boolean})],Ni.prototype,"manual",void 0),zi([o.property({type:Boolean})],Ni.prototype,"inline",void 0),zi([o.property({type:Number})],Ni.prototype,"delay",void 0),zi([o.property()],Ni.prototype,"position",void 0),zi([o.queryAssignedNodes("",!0)],Ni.prototype,"slotNodes",void 0),zi([o.query(".ft-tooltip--container")],Ni.prototype,"container",void 0),zi([o.query("slot")],Ni.prototype,"target",void 0),zi([o.query(".ft-tooltip")],Ni.prototype,"tooltip",void 0),zi([o.query(".ft-tooltip--content")],Ni.prototype,"tooltipContent",void 0),zi([o.state()],Ni.prototype,"visible",void 0),i.customElement("ft-tooltip")(Ni);const Ii={color:i.FtCssVariable.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariable.create("--ft-loader-size","SIZE","80px")};class Bi extends i.FtLitElement{static get styles(){return e.css`
307
+ :host {
308
+ line-height: 0;
309
+ }
310
+
311
+ .ft-loader {
312
+ display: inline-block;
313
+ position: relative;
314
+
315
+ width: ${Ii.size};
316
+ height: ${Ii.size};
317
+ }
318
+
319
+ .ft-loader div {
320
+ position: absolute;
321
+ top: 37.5%;
322
+ width: 25%;
323
+ height: 25%;
324
+ border-radius: 50%;
325
+ background: ${Ii.color};
326
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
327
+ }
328
+
329
+ .ft-loader div:nth-child(1) {
330
+ left: 2.5%;
331
+ animation: appear 0.6s infinite;
332
+ }
333
+
334
+ .ft-loader div:nth-child(2) {
335
+ left: 2.5%;
336
+ animation: move 0.6s infinite;
337
+ }
338
+
339
+ .ft-loader div:nth-child(3) {
340
+ left: 37.5%;
341
+ animation: move 0.6s infinite;
342
+ }
343
+
344
+ .ft-loader div:nth-child(4) {
345
+ left: 72.5%;
346
+ animation: disappear 0.6s infinite;
347
+ }
348
+
349
+ @keyframes appear {
350
+ 0% {
351
+ transform: scale(0);
352
+ }
353
+ 100% {
354
+ transform: scale(1);
355
+ }
356
+ }
357
+
358
+ @keyframes disappear {
359
+ 0% {
360
+ transform: scale(1);
361
+ }
362
+ 100% {
363
+ transform: scale(0);
364
+ }
365
+ }
366
+
367
+ @keyframes move {
368
+ 0% {
369
+ transform: translate(0, 0);
370
+ }
371
+ 100% {
372
+ transform: translate(calc(0.35 * ${Ii.size}), 0);
373
+ }
374
+ }
375
+ `}render(){return e.html`
376
+ <div class="ft-loader">
377
+ <div></div>
378
+ <div></div>
379
+ <div></div>
380
+ <div></div>
381
+ </div>
382
+ `}}i.customElement("ft-loader")(Bi);var Ti=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const Ai=i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Fi={backgroundColor:i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Ai,fontSize:i.FtCssVariable.extend("--ft-button-font-size",Yt.fontSize),iconSize:i.FtCssVariable.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariable.extend("--ft-button-ripple-color",Ai),opacityDisabled:i.FtCssVariable.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Mi=i.FtCssVariable.extend("--ft-button-primary-color",i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),_i={backgroundColor:i.FtCssVariable.extend("--ft-button-primary-background-color",i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Mi,rippleColor:i.FtCssVariable.extend("--ft-button-primary-ripple-color",Mi)},Zi=i.FtCssVariable.extend("--ft-button-dense-border-radius",i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM));class Di extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[i.noTextSelect,e.css`
383
+ :host {
384
+ display: inline-block;
385
+ max-width: 100%;
386
+ pointer-events: none;
387
+ }
388
+
389
+ button {
390
+ box-shadow: 0px 0px 0px transparent;
391
+ border: 0px solid transparent;
392
+ text-shadow: 0px 0px 0px transparent;
393
+ font-size: inherit;
394
+ }
395
+
396
+ button:hover {
397
+ box-shadow: 0px 0px 0px transparent;
398
+ border: 0px solid transparent;
399
+ text-shadow: 0px 0px 0px transparent;
400
+ }
401
+
402
+ button:active {
403
+ outline: none;
404
+ border: none;
405
+ }
406
+
407
+ button:focus {
408
+ outline: 0;
409
+ }
410
+
411
+ .ft-button {
412
+ position: relative;
413
+ display: flex;
414
+ justify-content: center;
415
+ align-items: center;
416
+ width: 100%;
417
+ overflow: hidden;
418
+ box-sizing: border-box;
419
+ border: none;
420
+ pointer-events: auto;
421
+
422
+ --ft-button-internal-font-size: ${Fi.fontSize};
423
+ --ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
424
+ --ft-button-internal-color: ${Fi.color};
425
+ ${i.setVariable(di.size,Fi.iconSize)};
426
+ --ft-button-internal-vertical-padding: 6px;
427
+ --ft-button-internal-horizontal-padding: 8px;
428
+ ${i.setVariable(xi.color,Fi.rippleColor)};
429
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Fi.iconSize});
430
+
431
+ border-radius: ${Fi.borderRadius};
432
+ padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
433
+ background-color: ${Fi.backgroundColor};
434
+ color: var(--ft-button-internal-color);
435
+ -webkit-mask-image: radial-gradient(white, black);
436
+ }
437
+
438
+ .ft-button:not([disabled]):hover {
439
+ cursor: pointer;
440
+ }
441
+
442
+ .ft-button--dense {
443
+ --ft-button-internal-vertical-padding: 2px;
444
+ --ft-button-internal-horizontal-padding: 4px;
445
+ border-radius: ${Zi};
446
+ }
447
+
448
+ .ft-button--round {
449
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
450
+ }
451
+
452
+ .ft-button[disabled] {
453
+ filter: grayscale(1);
454
+ opacity: ${Fi.opacityDisabled};
455
+ }
456
+
457
+ .ft-button.ft-button--primary {
458
+ background-color: ${_i.backgroundColor};
459
+ --ft-button-internal-color: ${_i.color};
460
+ ${i.setVariable(xi.color,_i.rippleColor)};
461
+ }
462
+
463
+ .ft-button.ft-button--outlined {
464
+ border: 1px solid var(--ft-button-internal-color);
465
+ padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
466
+ }
467
+
468
+ .ft-button:focus {
469
+ outline: none;
470
+ }
471
+
472
+ .ft-button--label {
473
+ position: relative;
474
+ overflow: hidden;
475
+ white-space: nowrap;
476
+ text-overflow: ellipsis;
477
+ display: block;
478
+ margin: 0 var(--ft-button-internal-horizontal-padding);
479
+ ${i.setVariable(Yt.fontSize,"var(--ft-button-internal-font-size)")};
480
+ ${i.setVariable(Yt.lineHeight,"var(--ft-button-internal-content-height)")};
481
+ }
482
+
483
+ .ft-button--safari-fix .ft-button--label {
484
+ margin-right: 0;
485
+ }
486
+
487
+ .ft-button--safari-fix .ft-button--label:after {
488
+ content: "\\0000a0";
489
+ display: inline-block;
490
+ width: 0;
491
+ }
492
+
493
+ .ft-button--label[hidden] {
494
+ display: none;
495
+ }
496
+
497
+ ft-icon {
498
+ flex-shrink: 0;
499
+ position: relative;
500
+ }
501
+
502
+ .ft-button--label[hidden] + ft-icon {
503
+ margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
504
+ padding: 0 var(--ft-button-internal-vertical-padding);
505
+ }
506
+
507
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
508
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
509
+ order: -1;
510
+ }
511
+
512
+ ft-loader {
513
+ ${i.setVariable(Ii.size,Fi.iconSize)};
514
+ ${i.setVariable(Ii.color,"var(--ft-button-internal-color)")};
515
+ }
516
+ `]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":i.isSafari,"ft-no-text-select":!0};return this.addTooltip(e.html`
517
+ <button part="button"
518
+ class="${s.classMap(t)}"
519
+ aria-label="${this.getLabel()}"
520
+ ?disabled=${this.isDisabled()}>
521
+ <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
522
+ <ft-typography part="label"
523
+ variant="button"
524
+ class="ft-button--label"
525
+ ?hidden=${!this.hasTextContent()}>
526
+ <slot @slotchange=${this.onSlotchange}></slot>
527
+ </ft-typography>
528
+ ${this.resolveIcon()}
529
+ </button>
530
+ `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:e.html`
531
+ <ft-tooltip part="tooltip"
532
+ text="${this.getLabel()}"
533
+ position="${this.tooltipPosition}">
534
+ ${t}
535
+ </ft-tooltip>
536
+ `}resolveIcon(){return this.loading?e.html`
537
+ <ft-loader></ft-loader> `:this.icon?e.html`
538
+ <ft-icon variant="material">${this.icon}</ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Di.elementDefinitions={"ft-ripple":ki,"ft-tooltip":Ni,"ft-typography":ai,"ft-icon":ci,"ft-loader":Bi},Ti([o.property({type:Boolean})],Di.prototype,"primary",void 0),Ti([o.property({type:Boolean})],Di.prototype,"outlined",void 0),Ti([o.property({type:Boolean})],Di.prototype,"disabled",void 0),Ti([o.property({type:Boolean})],Di.prototype,"dense",void 0),Ti([o.property({type:Boolean})],Di.prototype,"round",void 0),Ti([o.property({type:String})],Di.prototype,"label",void 0),Ti([o.property({type:String})],Di.prototype,"icon",void 0),Ti([o.property({type:Boolean})],Di.prototype,"trailingIcon",void 0),Ti([o.property({type:Boolean})],Di.prototype,"loading",void 0),Ti([o.property({type:String})],Di.prototype,"tooltipPosition",void 0),Ti([o.query(".ft-button")],Di.prototype,"button",void 0),Ti([o.query(".ft-button--label slot")],Di.prototype,"slottedContent",void 0),i.customElement("ft-button")(Di);var Ri=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const Ui={zIndex:i.FtCssVariable.create("--ft-dialog-z-index","NUMBER","2"),overlayBackgroundColor:i.FtCssVariable.create("--ft-dialog-overlay-background-color","COLOR","rgba(0, 0, 0, 0.3)"),height:i.FtCssVariable.create("--ft-dialog-height","SIZE","unset"),width:i.FtCssVariable.create("--ft-dialog-width","SIZE","unset"),minWidth:i.FtCssVariable.create("--ft-dialog-min-width","SIZE","unset"),paddingTop:i.FtCssVariable.create("--ft-dialog-padding-top","SIZE","20px"),paddingSide:i.FtCssVariable.create("--ft-dialog-padding-side","SIZE","16px"),paddingButtons:i.FtCssVariable.create("--ft-dialog-padding-buttons","SIZE","20px"),colorSurface:i.FtCssVariable.external(i.designSystemVariables.colorSurface,"Design system"),headingColor:i.FtCssVariable.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),borderRadiusS:i.FtCssVariable.external(i.designSystemVariables.borderRadiusS,"Design system"),elevation24:i.FtCssVariable.external(i.designSystemVariables.elevation24,"Design system")};class Wi extends i.FtLitElement{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.closable=!1,this.heading="",this.icon=""}static get styles(){return e.css`
154
539
  .ft-dialog {
155
540
  position: fixed;
156
541
  top: 0;
157
542
  right: 0;
158
543
  bottom: 0;
159
544
  left: 0;
160
- z-index: ${we.zIndex};
545
+ z-index: ${Ui.zIndex};
161
546
 
162
547
  display: flex;
163
548
  flex-direction: column;
@@ -177,7 +562,7 @@ const B=Symbol.for(""),K=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
177
562
  height: 100%;
178
563
  width: 100%;
179
564
 
180
- background-color: ${we.overlayBackgroundColor};
565
+ background-color: ${Ui.overlayBackgroundColor};
181
566
 
182
567
  }
183
568
 
@@ -186,20 +571,20 @@ const B=Symbol.for(""),K=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
186
571
  display: flex;
187
572
  flex-direction: column;
188
573
 
189
- width: ${we.width};
190
- height: ${we.height};
574
+ width: ${Ui.width};
575
+ height: ${Ui.height};
191
576
  max-width: 95vw;
192
577
  max-height: 95vh;
193
- min-width: ${we.minWidth};
578
+ min-width: ${Ui.minWidth};
194
579
 
195
- padding-top: ${we.paddingTop};
196
- padding-right: ${we.paddingSide};
197
- padding-left: ${we.paddingSide};
580
+ padding-top: ${Ui.paddingTop};
581
+ padding-right: ${Ui.paddingSide};
582
+ padding-left: ${Ui.paddingSide};
198
583
 
199
- background-color: ${we.colorSurface};
584
+ background-color: ${Ui.colorSurface};
200
585
 
201
- border-radius: ${we.borderRadiusS};
202
- box-shadow: ${we.elevation24};
586
+ border-radius: ${Ui.borderRadiusS};
587
+ box-shadow: ${Ui.elevation24};
203
588
  }
204
589
 
205
590
  .ft-dialog-content {
@@ -213,11 +598,11 @@ const B=Symbol.for(""),K=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
213
598
  margin-bottom: 20px;
214
599
  gap: 8px;
215
600
 
216
- color: ${we.headingColor};
601
+ color: ${Ui.headingColor};
217
602
  }
218
603
 
219
604
  .ft-dialog-buttons {
220
- padding-top: ${we.paddingButtons};
605
+ padding-top: ${Ui.paddingButtons};
221
606
  }
222
607
 
223
608
  slot[name=buttons] {
@@ -232,15 +617,22 @@ const B=Symbol.for(""),K=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
232
617
  margin-bottom: 8px
233
618
  }
234
619
 
235
- `}render(){return this.opened?i.html`
620
+ .ft-dialog-heading ft-button {
621
+ margin-left: auto;
622
+ ${i.setVariable(Fi.color,Ui.headingColor)};
623
+ }
624
+
625
+ `}render(){return this.opened?e.html`
236
626
  <div class="ft-dialog">
237
627
  <div class="ft-dialog-overlay" @click="${()=>this.watchClickOutside()}"></div>
238
628
  <div class="ft-dialog-wrapper">
239
- ${this.heading?i.html`
629
+ ${this.heading?e.html`
240
630
  <div class="ft-dialog-heading">
241
- ${this.icon?i.html`
631
+ ${this.icon?e.html`
242
632
  <ft-icon variant="material">${this.icon}</ft-icon>`:void 0}
243
633
  <ft-typography element="span" variant="title">${this.heading}</ft-typography>
634
+ ${this.closable?e.html`
635
+ <ft-button icon="close" @click=${this.close}></ft-button>`:void 0}
244
636
  </div>
245
637
  `:null}
246
638
  <div class="ft-dialog-content">
@@ -251,4 +643,4 @@ const B=Symbol.for(""),K=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===
251
643
  </div>
252
644
  </div>
253
645
  </div>
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()}}ze.elementDefinitions={"ft-typography":fe,"ft-icon":$e},be([o.property({type:Boolean,hasChanged:(t,e)=>!1===e&&!0===t||!0===e&&!1===t})],ze.prototype,"opened",void 0),be([o.property({type:Boolean})],ze.prototype,"closeOnEsc",void 0),be([o.property({type:Boolean})],ze.prototype,"closeOnClickOutside",void 0),be([o.property({type:String})],ze.prototype,"heading",void 0),be([o.property({type:String})],ze.prototype,"icon",void 0),e.customElement("ft-dialog")(ze),t.FtDialog=ze,t.FtDialogCssVariables=we,t.default=ze,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
646
+ `: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()}}Wi.elementDefinitions={"ft-typography":ai,"ft-icon":ci,"ft-button":Di},Ri([o.property({type:Boolean,hasChanged:(t,i)=>!1===i&&!0===t||!0===i&&!1===t})],Wi.prototype,"opened",void 0),Ri([o.property({type:Boolean})],Wi.prototype,"closeOnEsc",void 0),Ri([o.property({type:Boolean})],Wi.prototype,"closeOnClickOutside",void 0),Ri([o.property({type:Boolean})],Wi.prototype,"closable",void 0),Ri([o.property({type:String})],Wi.prototype,"heading",void 0),Ri([o.property({type:String})],Wi.prototype,"icon",void 0),i.customElement("ft-dialog")(Wi),t.FtDialog=Wi,t.FtDialogCssVariables=Ui,t.default=Wi,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);