@fluid-topics/ft-dialog 0.3.71 → 1.0.0-alpha.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.
@@ -4,115 +4,115 @@
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- var r;const l=window,a=l.trustedTypes,p=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,h=`lit$${(Math.random()+"").slice(9)}$`,f="?"+h,d=`<${f}>`,c=document,u=(t="")=>c.createComment(t),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,x=Array.isArray,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,b=/-->/g,v=/>/g,m=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),$=/'/g,w=/"/g,k=/^(?:script|style|textarea|title)$/i,z=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),S=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),C=new WeakMap,E=c.createTreeWalker(c,129,null,!1),I=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=y;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,f=0;for(;f<e.length&&(r.lastIndex=f,a=r.exec(e),null!==a);)f=r.lastIndex,r===y?"!--"===a[1]?r=b:void 0!==a[1]?r=v:void 0!==a[2]?(k.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=m):void 0!==a[3]&&(r=m):r===m?">"===a[0]?(r=null!=n?n:y,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?m:'"'===a[3]?w:$):r===w||r===$?r=m:r===b||r===v?r=y:(r=m,n=void 0);const c=r===m&&t[i+1].startsWith("/>")?" ":"";s+=r===y?e+d:p>=0?(o.push(l),e.slice(0,p)+"$lit$"+e.slice(p)+h+c):e+h+(-2===p?(o.push(void 0),i):c)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==p?p.createHTML(l):l,o]};class j{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[p,d]=I(t,i);if(this.el=j.createElement(p,e),E.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=E.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(h)){const e=d[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(h),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?A:"?"===i[1]?F:"@"===i[1]?M:Z})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(k.test(o.tagName)){const t=o.textContent.split(h),i=t.length-1;if(i>0){o.textContent=a?a.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],u()),E.nextNode(),l.push({type:2,index:++n});o.append(t[i],u())}}}else if(8===o.nodeType)if(o.data===f)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(h,t+1));)l.push({type:7,index:n}),t+=h.length-1}n++}}static createElement(t,i){const e=c.createElement("template");return e.innerHTML=t,e}}function N(t,i,e=t,o){var n,s,r,l;if(i===S)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=g(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=N(t,a._$AS(t,i.values),a,o)),i}class B{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:c).importNode(e,!0);E.currentNode=n;let s=E.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new T(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new U(s,this,t)),this.u.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=E.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class T{constructor(t,i,e,o){var n;this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=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._$Cm}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),g(t)?t===O||null==t||""===t?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==S&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>x(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==O&&g(this._$AH)?this._$AA.nextSibling.data=t:this.T(c.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=j.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new B(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=C.get(t.strings);return void 0===i&&C.set(t.strings,i=new j(t)),i}k(t){x(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 T(this.O(u()),this.O(u()),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._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class Z{constructor(t,i,e,o,n){this.type=1,this._$AH=O,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=O}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=!g(t)||t!==this._$AH&&t!==S,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=N(this,o[e+r],i,r),l===S&&(l=this._$AH[r]),s||(s=!g(l)||l!==this._$AH[r]),l===O?t=O:t!==O&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class A extends Z{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===O?void 0:t}}const _=a?a.emptyScript:"";class F extends Z{constructor(){super(...arguments),this.type=4}j(t){t&&t!==O?this.element.setAttribute(this.name,_):this.element.removeAttribute(this.name)}}class M extends Z{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:O)===S)return;const o=this._$AH,n=t===O&&o!==O||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==O&&(o===O||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 U{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 R=l.litHtmlPolyfillSupport;null==R||R(j,T),(null!==(r=l.litHtmlVersions)&&void 0!==r?r:l.litHtmlVersions=[]).push("2.4.0");
7
+ var r;const l=window,a=l.trustedTypes,p=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,h="$lit$",f=`lit$${(Math.random()+"").slice(9)}$`,d="?"+f,c=`<${d}>`,u=document,g=()=>u.createComment(""),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,y=Array.isArray,b="[ \t\n\f\r]",v=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,m=/-->/g,$=/>/g,w=RegExp(`>|${b}(?:([^\\s"'>=/]+)(${b}*=${b}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),k=/'/g,z=/"/g,S=/^(?:script|style|textarea|title)$/i,O=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),C=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),I=new WeakMap,j=u.createTreeWalker(u,129,null,!1),N=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=v;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,d=0;for(;d<e.length&&(r.lastIndex=d,a=r.exec(e),null!==a);)d=r.lastIndex,r===v?"!--"===a[1]?r=m:void 0!==a[1]?r=$:void 0!==a[2]?(S.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=w):void 0!==a[3]&&(r=w):r===w?">"===a[0]?(r=null!=n?n:v,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?w:'"'===a[3]?z:k):r===z||r===k?r=w:r===m||r===$?r=v:(r=w,n=void 0);const u=r===w&&t[i+1].startsWith("/>")?" ":"";s+=r===v?e+c:p>=0?(o.push(l),e.slice(0,p)+h+e.slice(p)+f+u):e+f+(-2===p?(o.push(void 0),i):u)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==p?p.createHTML(l):l,o]};class B{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[p,c]=N(t,i);if(this.el=B.createElement(p,e),j.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=j.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(h)||i.startsWith(f)){const e=c[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+h).split(f),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?_:"?"===i[1]?M:"@"===i[1]?R:F})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(S.test(o.tagName)){const t=o.textContent.split(f),i=t.length-1;if(i>0){o.textContent=a?a.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],g()),j.nextNode(),l.push({type:2,index:++n});o.append(t[i],g())}}}else if(8===o.nodeType)if(o.data===d)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(f,t+1));)l.push({type:7,index:n}),t+=f.length-1}n++}}static createElement(t,i){const e=u.createElement("template");return e.innerHTML=t,e}}function T(t,i,e=t,o){var n,s,r,l;if(i===C)return i;let a=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=x(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=T(t,a._$AS(t,i.values),a,o)),i}class Z{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:u).importNode(e,!0);j.currentNode=n;let s=j.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new A(s,s.nextSibling,this,t):1===a.type?i=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(i=new D(s,this,t)),this._$AV.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=j.nextNode(),r++)}return n}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class A{constructor(t,i,e,o){var n;this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=T(this,t,i),x(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==C&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>y(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==E&&x(this._$AH)?this._$AA.nextSibling.data=t:this.$(u.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=B.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new Z(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=I.get(t.strings);return void 0===i&&I.set(t.strings,i=new B(t)),i}T(t){y(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 A(this.k(g()),this.k(g()),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._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class F{constructor(t,i,e,o,n){this.type=1,this._$AH=E,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=E}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=T(this,t,i,0),s=!x(t)||t!==this._$AH&&t!==C,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=T(this,o[e+r],i,r),l===C&&(l=this._$AH[r]),s||(s=!x(l)||l!==this._$AH[r]),l===E?t=E:t!==E&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class _ extends F{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}}const U=a?a.emptyScript:"";class M extends F{constructor(){super(...arguments),this.type=4}j(t){t&&t!==E?this.element.setAttribute(this.name,U):this.element.removeAttribute(this.name)}}class R extends F{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=T(this,t,i,0))&&void 0!==e?e:E)===C)return;const o=this._$AH,n=t===E&&o!==E||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==E&&(o===E||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 D{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){T(this,t)}}const W=l.litHtmlPolyfillSupport;null==W||W(B,A),(null!==(r=l.litHtmlVersions)&&void 0!==r?r:l.litHtmlVersions=[]).push("2.7.3");
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2020 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t._$litStatic$},H=t=>({_$litStatic$:t,r:D}),K=new Map,L=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(s=e[p],n=W(s));)a+=n+i[++p],h=!0;l.push(s),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=K.get(t))&&(r.raw=r,K.set(t,i=r)),e=l}return t(i,...e)})(z);var P;!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"}(P||(P={}));const G=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),q=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),V={fontFamily:q,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},X=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",G),Y=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",V.fontSize,"20px"),J=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",V.fontWeight,"normal"),Q=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",V.letterSpacing,"0.15px"),tt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",V.lineHeight,"1.2"),it=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",V.textTransform,"inherit"),et=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",G),ot=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",V.fontSize,"14px"),nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",V.fontWeight,"normal"),st=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",V.letterSpacing,"0.105px"),rt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",V.lineHeight,"1.7"),lt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",V.textTransform,"inherit"),at=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",q),pt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",V.fontSize,"16px"),ht=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",V.fontWeight,"600"),ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",V.letterSpacing,"0.144px"),dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",V.lineHeight,"1.5"),ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",V.textTransform,"inherit"),ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",q),gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",V.fontSize,"14px"),xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",V.fontWeight,"normal"),yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",V.letterSpacing,"0.098px"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",V.lineHeight,"1.7"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",V.textTransform,"inherit"),mt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",q),$t=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",V.fontSize,"16px"),wt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",V.fontWeight,"normal"),kt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",V.letterSpacing,"0.496px"),zt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",V.lineHeight,"1.5"),St=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",V.textTransform,"inherit"),Ot=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",q),Ct=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",V.fontSize,"14px"),Et=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",V.fontWeight,"normal"),It=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",V.letterSpacing,"0.252px"),jt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",V.lineHeight,"1.4"),Nt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",V.textTransform,"inherit"),Bt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",q),Tt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",V.fontSize,"12px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",V.fontWeight,"normal"),At=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",V.letterSpacing,"0.396px"),_t=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",V.lineHeight,"1.33"),Ft=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",V.textTransform,"inherit"),Mt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",q),Ut=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",V.fontSize,"10px"),Rt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",V.fontWeight,"normal"),Dt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",V.letterSpacing,"0.33px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",V.lineHeight,"1.6"),Ht=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",V.textTransform,"inherit"),Kt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",q),Lt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",V.fontSize,"10px"),Pt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",V.fontWeight,"normal"),Gt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",V.letterSpacing,"1.5px"),qt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",V.lineHeight,"1.6"),Vt=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",V.textTransform,"uppercase"),Xt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",q),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",V.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",V.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",V.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",V.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",V.textTransform,"uppercase")},Yt=e.css`
13
+ const H=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===H)return null==t?void 0:t._$litStatic$},L=t=>({_$litStatic$:t,r:H}),P=new Map,G=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(s=e[p],n=K(s));)a+=n+i[++p],h=!0;p!==o&&l.push(s),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=P.get(t))&&(r.raw=r,P.set(t,i=r)),e=l}return t(i,...e)})(O);var q;!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 V=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),X=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),Y={fontFamily:X,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},J=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",V),Q=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",Y.fontSize,"20px"),tt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",Y.fontWeight,"normal"),it=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",Y.letterSpacing,"0.15px"),et=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",Y.lineHeight,"1.2"),ot=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",Y.textTransform,"inherit"),nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",V),st=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",Y.fontSize,"14px"),rt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",Y.fontWeight,"normal"),lt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",Y.letterSpacing,"0.105px"),at=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",Y.lineHeight,"1.7"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",Y.textTransform,"inherit"),ht=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",X),ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",Y.fontSize,"16px"),dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",Y.fontWeight,"600"),ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",Y.letterSpacing,"0.144px"),ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",Y.lineHeight,"1.5"),gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",Y.textTransform,"inherit"),xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",X),yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",Y.fontSize,"14px"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",Y.fontWeight,"normal"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",Y.letterSpacing,"0.098px"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",Y.lineHeight,"1.7"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",Y.textTransform,"inherit"),wt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",X),kt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",Y.fontSize,"16px"),zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",Y.fontWeight,"normal"),St=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",Y.letterSpacing,"0.496px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",Y.lineHeight,"1.5"),Ct=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",Y.textTransform,"inherit"),Et=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",X),It=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",Y.fontSize,"14px"),jt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",Y.fontWeight,"normal"),Nt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",Y.letterSpacing,"0.252px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",Y.lineHeight,"1.4"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",Y.textTransform,"inherit"),Zt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",X),At=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",Y.fontSize,"12px"),Ft=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",Y.fontWeight,"normal"),_t=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",Y.letterSpacing,"0.396px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",Y.lineHeight,"1.33"),Mt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",Y.textTransform,"inherit"),Rt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",X),Dt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",Y.fontSize,"10px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",Y.fontWeight,"normal"),Ht=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",Y.letterSpacing,"0.33px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",Y.lineHeight,"1.6"),Lt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",Y.textTransform,"inherit"),Pt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",X),Gt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",Y.fontSize,"10px"),qt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",Y.fontWeight,"normal"),Vt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",Y.letterSpacing,"1.5px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",Y.lineHeight,"1.6"),Yt=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",Y.textTransform,"uppercase"),Jt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",X),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",Y.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",Y.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",Y.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",Y.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",Y.textTransform,"uppercase")},Qt=e.css`
14
14
  .ft-typography--title {
15
- font-family: ${X};
16
- font-size: ${Y};
17
- font-weight: ${J};
18
- letter-spacing: ${Q};
19
- line-height: ${tt};
20
- text-transform: ${it};
21
- }
22
- `,Jt=e.css`
23
- .ft-typography--title-dense {
24
- font-family: ${et};
25
- font-size: ${ot};
26
- font-weight: ${nt};
27
- letter-spacing: ${st};
28
- line-height: ${rt};
29
- text-transform: ${lt};
30
- }
31
- `,Qt=e.css`
32
- .ft-typography--subtitle1 {
33
- font-family: ${at};
34
- font-size: ${pt};
35
- font-weight: ${ht};
36
- letter-spacing: ${ft};
37
- line-height: ${dt};
38
- text-transform: ${ct};
15
+ font-family: ${J};
16
+ font-size: ${Q};
17
+ font-weight: ${tt};
18
+ letter-spacing: ${it};
19
+ line-height: ${et};
20
+ text-transform: ${ot};
39
21
  }
40
22
  `,ti=e.css`
41
- .ft-typography--subtitle2 {
42
- font-family: ${ut};
43
- font-size: ${gt};
44
- font-weight: ${xt};
45
- letter-spacing: ${yt};
46
- line-height: ${bt};
47
- text-transform: ${vt};
23
+ .ft-typography--title-dense {
24
+ font-family: ${nt};
25
+ font-size: ${st};
26
+ font-weight: ${rt};
27
+ letter-spacing: ${lt};
28
+ line-height: ${at};
29
+ text-transform: ${pt};
48
30
  }
49
-
50
31
  `,ii=e.css`
51
- .ft-typography--body1 {
52
- font-family: ${mt};
53
- font-size: ${$t};
54
- font-weight: ${wt};
55
- letter-spacing: ${kt};
56
- line-height: ${zt};
57
- text-transform: ${St};
32
+ .ft-typography--subtitle1 {
33
+ font-family: ${ht};
34
+ font-size: ${ft};
35
+ font-weight: ${dt};
36
+ letter-spacing: ${ct};
37
+ line-height: ${ut};
38
+ text-transform: ${gt};
58
39
  }
59
40
  `,ei=e.css`
60
- .ft-typography--body2 {
61
- font-family: ${Ot};
62
- font-size: ${Ct};
63
- font-weight: ${Et};
64
- letter-spacing: ${It};
65
- line-height: ${jt};
66
- text-transform: ${Nt};
41
+ .ft-typography--subtitle2 {
42
+ font-family: ${xt};
43
+ font-size: ${yt};
44
+ font-weight: ${bt};
45
+ letter-spacing: ${vt};
46
+ line-height: ${mt};
47
+ text-transform: ${$t};
67
48
  }
49
+
68
50
  `,oi=e.css`
69
- .ft-typography--caption {
70
- font-family: ${Bt};
71
- font-size: ${Tt};
72
- font-weight: ${Zt};
73
- letter-spacing: ${At};
74
- line-height: ${_t};
75
- text-transform: ${Ft};
51
+ .ft-typography--body1 {
52
+ font-family: ${wt};
53
+ font-size: ${kt};
54
+ font-weight: ${zt};
55
+ letter-spacing: ${St};
56
+ line-height: ${Ot};
57
+ text-transform: ${Ct};
76
58
  }
77
59
  `,ni=e.css`
78
- .ft-typography--breadcrumb {
79
- font-family: ${Mt};
80
- font-size: ${Ut};
81
- font-weight: ${Rt};
82
- letter-spacing: ${Dt};
83
- line-height: ${Wt};
84
- text-transform: ${Ht};
60
+ .ft-typography--body2 {
61
+ font-family: ${Et};
62
+ font-size: ${It};
63
+ font-weight: ${jt};
64
+ letter-spacing: ${Nt};
65
+ line-height: ${Bt};
66
+ text-transform: ${Tt};
85
67
  }
86
68
  `,si=e.css`
87
- .ft-typography--overline {
88
- font-family: ${Kt};
89
- font-size: ${Lt};
90
- font-weight: ${Pt};
91
- letter-spacing: ${Gt};
92
- line-height: ${qt};
93
- text-transform: ${Vt};
69
+ .ft-typography--caption {
70
+ font-family: ${Zt};
71
+ font-size: ${At};
72
+ font-weight: ${Ft};
73
+ letter-spacing: ${_t};
74
+ line-height: ${Ut};
75
+ text-transform: ${Mt};
94
76
  }
95
77
  `,ri=e.css`
96
- .ft-typography--button {
97
- font-family: ${Xt.fontFamily};
98
- font-size: ${Xt.fontSize};
99
- font-weight: ${Xt.fontWeight};
100
- letter-spacing: ${Xt.letterSpacing};
101
- line-height: ${Xt.lineHeight};
102
- text-transform: ${Xt.textTransform};
78
+ .ft-typography--breadcrumb {
79
+ font-family: ${Rt};
80
+ font-size: ${Dt};
81
+ font-weight: ${Wt};
82
+ letter-spacing: ${Ht};
83
+ line-height: ${Kt};
84
+ text-transform: ${Lt};
103
85
  }
104
86
  `,li=e.css`
87
+ .ft-typography--overline {
88
+ font-family: ${Pt};
89
+ font-size: ${Gt};
90
+ font-weight: ${qt};
91
+ letter-spacing: ${Vt};
92
+ line-height: ${Xt};
93
+ text-transform: ${Yt};
94
+ }
95
+ `,ai=e.css`
96
+ .ft-typography--button {
97
+ font-family: ${Jt.fontFamily};
98
+ font-size: ${Jt.fontSize};
99
+ font-weight: ${Jt.fontWeight};
100
+ letter-spacing: ${Jt.letterSpacing};
101
+ line-height: ${Jt.lineHeight};
102
+ text-transform: ${Jt.textTransform};
103
+ }
104
+ `,pi=e.css`
105
105
  .ft-typography {
106
106
  vertical-align: inherit;
107
107
  }
108
- `;var ai,pi,hi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class fi extends i.FtLitElement{constructor(){super(...arguments),this.variant=P.body1}render(){return this.element?L`
109
- <${H(this.element)}
108
+ `;var hi,fi,di=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class ci extends i.FtLitElement{constructor(){super(...arguments),this.variant=q.body1}render(){return this.element?G`
109
+ <${L(this.element)}
110
110
  class="ft-typography ft-typography--${this.variant}">
111
111
  <slot></slot>
112
- </${H(this.element)}>
113
- `:L`
112
+ </${L(this.element)}>
113
+ `:G`
114
114
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
115
- `}}fi.styles=[Yt,Jt,Qt,ti,ii,ei,oi,ni,si,ri,li],hi([o.property()],fi.prototype,"element",void 0),hi([o.property()],fi.prototype,"variant",void 0),i.customElement("ft-typography")(fi),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",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.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="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",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="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(ai||(ai={})),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]))]);const di={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},ci=e.css`
115
+ `}}ci.styles=[Qt,ti,ii,ei,oi,ni,si,ri,li,ai,pi],di([o.property()],ci.prototype,"element",void 0),di([o.property()],ci.prototype,"variant",void 0),i.customElement("ft-typography")(ci),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",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.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="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",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="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(hi||(hi={})),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;"}(fi||(fi={})),new Map([...["abw"].map((t=>[t,fi.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,fi.AUDIO])),...["avi"].map((t=>[t,fi.AVI])),...["chm","xhs"].map((t=>[t,fi.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,fi.CODE])),...["csv"].map((t=>[t,fi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,fi.DITA])),...["epub"].map((t=>[t,fi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,fi.EXCEL])),...["flac"].map((t=>[t,fi.FLAC])),...["gif"].map((t=>[t,fi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,fi.GZIP])),...["html","htm","xhtml"].map((t=>[t,fi.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,fi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,fi.JPEG])),...["json"].map((t=>[t,fi.JSON])),...["m4a","m4p"].map((t=>[t,fi.M4A])),...["mov","qt"].map((t=>[t,fi.MOV])),...["mp3"].map((t=>[t,fi.MP3])),...["mp4","m4v"].map((t=>[t,fi.MP4])),...["ogg","oga"].map((t=>[t,fi.OGG])),...["pdf","ps"].map((t=>[t,fi.PDF])),...["png"].map((t=>[t,fi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,fi.POWERPOINT])),...["rar"].map((t=>[t,fi.RAR])),...["stp"].map((t=>[t,fi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,fi.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,fi.VIDEO])),...["wav"].map((t=>[t,fi.WAV])),...["wma"].map((t=>[t,fi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,fi.WORD])),...["xml","xsl","rdf"].map((t=>[t,fi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,fi.YAML])),...["zip"].map((t=>[t,fi.ZIP]))]);const ui={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},gi=e.css`
116
116
  :host, i.ft-icon {
117
117
  display: inline-flex;
118
118
  align-items: center;
@@ -121,14 +121,14 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
121
121
  }
122
122
 
123
123
  :host {
124
- width: ${di.size};
125
- height: ${di.size};
124
+ width: ${ui.size};
125
+ height: ${ui.size};
126
126
  }
127
127
 
128
128
  i.ft-icon {
129
129
  width: 100%;
130
130
  height: 100%;
131
- font-size: ${di.size};
131
+ font-size: ${ui.size};
132
132
  line-height: 1;
133
133
  font-weight: normal;
134
134
  text-transform: none;
@@ -139,32 +139,32 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
139
139
  text-rendering: auto;
140
140
  -webkit-font-smoothing: antialiased;
141
141
  -moz-osx-font-smoothing: grayscale;
142
- vertical-align: ${di.verticalAlign};
142
+ vertical-align: ${ui.verticalAlign};
143
143
  }
144
144
 
145
145
  i.ft-icon.ft-icon--fluid-topics {
146
- font-family: ${di.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
146
+ font-family: ${ui.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
147
147
 
148
148
  /* Ugly fix because font is broken */
149
- font-size: calc(0.9 * ${di.size});
149
+ font-size: calc(0.75 * ${ui.size});
150
150
  position: relative;
151
- top: -5%;
151
+ top: -4%;
152
152
  justify-content: center;
153
153
  }
154
154
 
155
155
  .ft-icon--file-format {
156
- font-family: ${di.fileFormatFontFamily}, ft-mime, sans-serif;
156
+ font-family: ${ui.fileFormatFontFamily}, ft-mime, sans-serif;
157
157
  }
158
158
 
159
159
  .ft-icon--material {
160
- font-family: ${di.materialFontFamily}, "Material Icons", sans-serif;
160
+ font-family: ${ui.materialFontFamily}, "Material Icons", sans-serif;
161
161
  }
162
- `;var ui;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ui||(ui={}));var gi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class xi extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){var t;const i=null!==(t=this.variant)&&void 0!==t?t:ui.fluid_topics,o="material"!==i||this.value;return e.html`
163
- <i class="ft-icon ${"ft-icon--"+i}">
162
+ `;var xi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(xi||(xi={}));var yi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class bi extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(xi).includes(this.variant)?this.variant:xi.fluid_topics,i=t!==xi.material||!!this.value;return e.html`
163
+ <i class="ft-icon ${"ft-icon--"+t}">
164
164
  ${n.unsafeHTML(this.resolvedIcon)}
165
- <slot ?hidden=${o}></slot>
165
+ <slot ?hidden=${i}></slot>
166
166
  </i>
167
- `}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:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case ui.file_format:this.resolvedIcon=null!==(t=pi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case ui.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=ai[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}xi.elementDefinitions={},xi.styles=ci,gi([o.property()],xi.prototype,"variant",void 0),gi([o.property()],xi.prototype,"value",void 0),gi([o.state()],xi.prototype,"resolvedIcon",void 0),gi([o.query("slot")],xi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(xi);const yi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),bi={color:yi,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",yi),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},vi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),mi=vi,$i=i.FtCssVariableFactory.extend("--ft-ripple-background-color",vi),wi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),ki=wi,zi=i.FtCssVariableFactory.extend("--ft-ripple-background-color",wi),Si=e.css`
167
+ `}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:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case xi.file_format:this.resolvedIcon=null!==(t=fi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case xi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=hi[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}bi.elementDefinitions={},bi.styles=gi,yi([o.property()],bi.prototype,"variant",void 0),yi([o.property()],bi.prototype,"value",void 0),yi([o.state()],bi.prototype,"resolvedIcon",void 0),yi([o.query("slot")],bi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(bi);const vi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),mi={color:vi,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",vi),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},$i=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),wi=$i,ki=i.FtCssVariableFactory.extend("--ft-ripple-background-color",$i),zi=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),Si=zi,Oi=i.FtCssVariableFactory.extend("--ft-ripple-background-color",zi),Ci=e.css`
168
168
  :host {
169
169
  display: contents;
170
170
  }
@@ -186,27 +186,27 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
186
186
  }
187
187
 
188
188
  .ft-ripple .ft-ripple--background {
189
- background-color: ${bi.backgroundColor};
189
+ background-color: ${mi.backgroundColor};
190
190
  }
191
191
 
192
192
  .ft-ripple .ft-ripple--effect {
193
- background-color: ${bi.color};
193
+ background-color: ${mi.color};
194
194
  }
195
195
 
196
196
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
197
- background-color: ${zi};
197
+ background-color: ${Oi};
198
198
  }
199
199
 
200
200
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
201
- background-color: ${ki};
201
+ background-color: ${Si};
202
202
  }
203
203
 
204
204
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
205
- background-color: ${$i};
205
+ background-color: ${ki};
206
206
  }
207
207
 
208
208
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
209
- background-color: ${mi};
209
+ background-color: ${wi};
210
210
  }
211
211
 
212
212
  .ft-ripple .ft-ripple--background {
@@ -238,22 +238,22 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
238
238
  }
239
239
 
240
240
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
241
- opacity: ${bi.opacityContentOnSurfaceHover};
241
+ opacity: ${mi.opacityContentOnSurfaceHover};
242
242
  }
243
243
 
244
244
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
245
- opacity: ${bi.opacityContentOnSurfaceSelected};
245
+ opacity: ${mi.opacityContentOnSurfaceSelected};
246
246
  }
247
247
 
248
248
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
249
- opacity: ${bi.opacityContentOnSurfaceFocused};
249
+ opacity: ${mi.opacityContentOnSurfaceFocused};
250
250
  }
251
251
 
252
252
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
253
- opacity: ${bi.opacityContentOnSurfacePressed};
253
+ opacity: ${mi.opacityContentOnSurfacePressed};
254
254
  transform: translate(-50%, -50%) scale(1);
255
255
  }
256
- `;var Oi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class Ci 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.setupDebouncer=new i.Debouncer(10),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`
256
+ `;var Ei=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class Ii 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.setupDebouncer=new i.Debouncer(10),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`
257
257
  <style>
258
258
  .ft-ripple .ft-ripple--effect,
259
259
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -270,7 +270,7 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
270
270
  <div class="ft-ripple--background"></div>
271
271
  <div class="ft-ripple--effect"></div>
272
272
  </div>
273
- `}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(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;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,this.target=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()}}Ci.elementDefinitions={},Ci.styles=Si,Oi([o.property({type:Boolean})],Ci.prototype,"primary",void 0),Oi([o.property({type:Boolean})],Ci.prototype,"secondary",void 0),Oi([o.property({type:Boolean})],Ci.prototype,"unbounded",void 0),Oi([o.property({type:Boolean})],Ci.prototype,"activated",void 0),Oi([o.property({type:Boolean})],Ci.prototype,"selected",void 0),Oi([o.property({type:Boolean})],Ci.prototype,"disabled",void 0),Oi([o.state()],Ci.prototype,"hovered",void 0),Oi([o.state()],Ci.prototype,"focused",void 0),Oi([o.state()],Ci.prototype,"pressed",void 0),Oi([o.state()],Ci.prototype,"rippling",void 0),Oi([o.state()],Ci.prototype,"rippleSize",void 0),Oi([o.state()],Ci.prototype,"originX",void 0),Oi([o.state()],Ci.prototype,"originY",void 0),Oi([o.query(".ft-ripple")],Ci.prototype,"ripple",void 0),Oi([o.query(".ft-ripple--effect")],Ci.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(Ci);const Ei=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Ii=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),ji=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Ni=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Bi=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Ti=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Zi=e.css`
273
+ `}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(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;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,this.target=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()}}Ii.elementDefinitions={},Ii.styles=Ci,Ei([o.property({type:Boolean})],Ii.prototype,"primary",void 0),Ei([o.property({type:Boolean})],Ii.prototype,"secondary",void 0),Ei([o.property({type:Boolean})],Ii.prototype,"unbounded",void 0),Ei([o.property({type:Boolean})],Ii.prototype,"activated",void 0),Ei([o.property({type:Boolean})],Ii.prototype,"selected",void 0),Ei([o.property({type:Boolean})],Ii.prototype,"disabled",void 0),Ei([o.state()],Ii.prototype,"hovered",void 0),Ei([o.state()],Ii.prototype,"focused",void 0),Ei([o.state()],Ii.prototype,"pressed",void 0),Ei([o.state()],Ii.prototype,"rippling",void 0),Ei([o.state()],Ii.prototype,"rippleSize",void 0),Ei([o.state()],Ii.prototype,"originX",void 0),Ei([o.state()],Ii.prototype,"originY",void 0),Ei([o.query(".ft-ripple")],Ii.prototype,"ripple",void 0),Ei([o.query(".ft-ripple--effect")],Ii.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(Ii);const ji=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Ni=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Bi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Ti=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),Zi=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),Ai=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),Fi=e.css`
274
274
  .ft-tooltip--container {
275
275
  display: block;
276
276
  position: relative;
@@ -286,23 +286,23 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
286
286
  box-sizing: border-box;
287
287
  overflow: hidden;
288
288
  width: max-content;
289
- max-width: ${Ti};
289
+ max-width: ${Ai};
290
290
  text-align: center;
291
- padding: ${Ei};
292
- z-index: ${Ni};
291
+ padding: ${ji};
292
+ z-index: ${Ti};
293
293
  }
294
294
 
295
295
  .ft-tooltip--content {
296
296
  padding: 4px 8px;
297
- border-radius: ${Bi};
298
- background-color: ${ji};
299
- color: ${Ii};
297
+ border-radius: ${Zi};
298
+ background-color: ${Bi};
299
+ color: ${Ni};
300
300
  top: -500px;
301
301
  left: -500px;
302
302
  position: relative;
303
303
  word-break: break-word;
304
304
  }
305
- `;var Ai=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class _i extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
305
+ `;var _i=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class Ui extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
306
306
  <div part="container"
307
307
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
308
308
  @mouseenter=${this.onHover}
@@ -320,7 +320,7 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
320
320
  </div>
321
321
  </div>
322
322
  </div>
323
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&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.validPosition){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;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${Ti})`}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())}}_i.elementDefinitions={"ft-typography":fi},_i.styles=Zi,Ai([o.property()],_i.prototype,"text",void 0),Ai([o.property({type:Boolean})],_i.prototype,"manual",void 0),Ai([o.property({type:Boolean})],_i.prototype,"inline",void 0),Ai([o.property({type:Number})],_i.prototype,"delay",void 0),Ai([o.property()],_i.prototype,"position",void 0),Ai([o.queryAssignedNodes("",!0)],_i.prototype,"slotNodes",void 0),Ai([o.query(".ft-tooltip--container")],_i.prototype,"container",void 0),Ai([o.query("slot")],_i.prototype,"target",void 0),Ai([o.query(".ft-tooltip")],_i.prototype,"tooltip",void 0),Ai([o.query(".ft-tooltip--content")],_i.prototype,"tooltipContent",void 0),Ai([o.state()],_i.prototype,"visible",void 0),i.customElement("ft-tooltip")(_i);const Fi={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Mi=e.css`
323
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&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.validPosition){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;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${Ai})`}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())}}Ui.elementDefinitions={"ft-typography":ci},Ui.styles=Fi,_i([o.property()],Ui.prototype,"text",void 0),_i([o.property({type:Boolean})],Ui.prototype,"manual",void 0),_i([o.property({type:Boolean})],Ui.prototype,"inline",void 0),_i([o.property({type:Number})],Ui.prototype,"delay",void 0),_i([o.property()],Ui.prototype,"position",void 0),_i([o.queryAssignedNodes("",!0)],Ui.prototype,"slotNodes",void 0),_i([o.query(".ft-tooltip--container")],Ui.prototype,"container",void 0),_i([o.query("slot")],Ui.prototype,"target",void 0),_i([o.query(".ft-tooltip")],Ui.prototype,"tooltip",void 0),_i([o.query(".ft-tooltip--content")],Ui.prototype,"tooltipContent",void 0),_i([o.state()],Ui.prototype,"visible",void 0),i.customElement("ft-tooltip")(Ui);const Mi={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Ri=e.css`
324
324
  :host {
325
325
  line-height: 0;
326
326
  }
@@ -329,8 +329,8 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
329
329
  display: inline-block;
330
330
  position: relative;
331
331
 
332
- width: ${Fi.size};
333
- height: ${Fi.size};
332
+ width: ${Mi.size};
333
+ height: ${Mi.size};
334
334
  }
335
335
 
336
336
  .ft-loader div {
@@ -339,7 +339,7 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
339
339
  width: 25%;
340
340
  height: 25%;
341
341
  border-radius: 50%;
342
- background: ${Fi.color};
342
+ background: ${Mi.color};
343
343
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
344
344
  }
345
345
 
@@ -386,17 +386,17 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
386
386
  transform: translate(0, 0);
387
387
  }
388
388
  100% {
389
- transform: translate(calc(0.35 * ${Fi.size}), 0);
389
+ transform: translate(calc(0.35 * ${Mi.size}), 0);
390
390
  }
391
391
  }
392
- `;class Ui extends i.FtLitElement{render(){return e.html`
392
+ `;class Di extends i.FtLitElement{render(){return e.html`
393
393
  <div class="ft-loader">
394
394
  <div></div>
395
395
  <div></div>
396
396
  <div></div>
397
397
  <div></div>
398
398
  </div>
399
- `}}Ui.styles=Mi,i.customElement("ft-loader")(Ui);const Ri=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Di={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Ri,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",Xt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Ri),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Wi=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Hi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Wi,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Wi)},Ki=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Li=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Pi=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Gi=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),qi=[i.noTextSelect,e.css`
399
+ `}}Di.styles=Ri,i.customElement("ft-loader")(Di);const Wi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Hi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Wi,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",Jt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Wi),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Ki=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Li={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Ki,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Ki)},Pi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Gi=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),qi=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Vi=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),Xi=[i.noTextSelect,e.css`
400
400
  :host {
401
401
  display: inline-block;
402
402
  max-width: 100%;
@@ -407,7 +407,7 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
407
407
  box-shadow: 0px 0px 0px transparent;
408
408
  border: 0px solid transparent;
409
409
  text-shadow: 0px 0px 0px transparent;
410
- font-size: ${Di.fontSize};
410
+ font-size: ${Hi.fontSize};
411
411
  }
412
412
 
413
413
  button:hover {
@@ -436,32 +436,32 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
436
436
  border: none;
437
437
  pointer-events: auto;
438
438
 
439
- --ft-button-internal-line-height: calc(${Di.fontSize} + 2px);
440
- --ft-button-internal-color: ${Di.color};
441
- ${i.setVariable(di.size,Di.iconSize)};
442
- ${i.setVariable(bi.color,Di.rippleColor)};
443
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Di.iconSize});
439
+ --ft-button-internal-line-height: calc(${Hi.fontSize} + 2px);
440
+ --ft-button-internal-color: ${Hi.color};
441
+ ${i.setVariable(ui.size,Hi.iconSize)};
442
+ ${i.setVariable(mi.color,Hi.rippleColor)};
443
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Hi.iconSize});
444
444
 
445
- border-radius: ${Di.borderRadius};
446
- padding: ${Di.verticalPadding} ${Di.horizontalPadding};
447
- background-color: ${Di.backgroundColor};
445
+ border-radius: ${Hi.borderRadius};
446
+ padding: ${Hi.verticalPadding} ${Hi.horizontalPadding};
447
+ background-color: ${Hi.backgroundColor};
448
448
  color: var(--ft-button-internal-color);
449
449
  -webkit-mask-image: radial-gradient(white, black);
450
450
  }
451
451
 
452
452
  .ft-button.ft-button--outlined {
453
453
  border: 1px solid var(--ft-button-internal-color);
454
- padding: calc(${Di.verticalPadding} - 1px) calc(${Di.horizontalPadding} - 1px);
454
+ padding: calc(${Hi.verticalPadding} - 1px) calc(${Hi.horizontalPadding} - 1px);
455
455
  }
456
456
 
457
457
  .ft-button.ft-button--dense {
458
- padding: ${Li} ${Pi};
459
- border-radius: ${Ki};
460
- gap: ${Gi};
458
+ padding: ${Gi} ${qi};
459
+ border-radius: ${Pi};
460
+ gap: ${Vi};
461
461
  }
462
462
 
463
463
  .ft-button.ft-button--dense.ft-button--outlined {
464
- padding: calc(${Li} - 1px) calc(${Pi} - 1px);
464
+ padding: calc(${Gi} - 1px) calc(${qi} - 1px);
465
465
  }
466
466
 
467
467
  .ft-button:not([disabled]):hover {
@@ -469,22 +469,22 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
469
469
  }
470
470
 
471
471
  .ft-button--round {
472
- border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Di.verticalPadding});
472
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Hi.verticalPadding});
473
473
  }
474
474
 
475
475
  .ft-button--round.ft-button--dense {
476
- border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Li});
476
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + ${Gi});
477
477
  }
478
478
 
479
479
  .ft-button[disabled] {
480
480
  filter: grayscale(1);
481
- opacity: ${Di.opacityDisabled};
481
+ opacity: ${Hi.opacityDisabled};
482
482
  }
483
483
 
484
484
  .ft-button.ft-button--primary {
485
- background-color: ${Hi.backgroundColor};
486
- --ft-button-internal-color: ${Hi.color};
487
- ${i.setVariable(bi.color,Hi.rippleColor)};
485
+ background-color: ${Li.backgroundColor};
486
+ --ft-button-internal-color: ${Li.color};
487
+ ${i.setVariable(mi.color,Li.rippleColor)};
488
488
  }
489
489
 
490
490
  .ft-button:focus {
@@ -497,13 +497,13 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
497
497
  white-space: nowrap;
498
498
  text-overflow: ellipsis;
499
499
  display: block;
500
- margin: 0 ${Di.iconPadding};
501
- ${i.setVariable(Xt.fontSize,"1em")};
502
- ${i.setVariable(Xt.lineHeight,"var(--ft-button-internal-content-height)")};
500
+ margin: 0 ${Hi.iconPadding};
501
+ ${i.setVariable(Jt.fontSize,"1em")};
502
+ ${i.setVariable(Jt.lineHeight,"var(--ft-button-internal-content-height)")};
503
503
  }
504
504
 
505
505
  .ft-button--dense .ft-button--label {
506
- margin: 0 ${Gi};
506
+ margin: 0 ${Vi};
507
507
  }
508
508
 
509
509
  .ft-button--label[hidden] {
@@ -516,13 +516,13 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
516
516
  }
517
517
 
518
518
  .ft-button--label[hidden] + ft-icon {
519
- margin: 0 calc(${Di.horizontalPadding} * -1);
520
- padding: 0 ${Di.verticalPadding};
519
+ margin: 0 calc(${Hi.horizontalPadding} * -1);
520
+ padding: 0 ${Hi.verticalPadding};
521
521
  }
522
522
 
523
523
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
524
- margin: 0 calc(${Pi} * -1);
525
- padding: 0 ${Li};
524
+ margin: 0 calc(${qi} * -1);
525
+ padding: 0 ${Gi};
526
526
  }
527
527
 
528
528
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -531,10 +531,10 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
531
531
  }
532
532
 
533
533
  ft-loader {
534
- ${i.setVariable(Fi.size,Di.iconSize)};
535
- ${i.setVariable(Fi.color,"var(--ft-button-internal-color)")};
534
+ ${i.setVariable(Mi.size,Hi.iconSize)};
535
+ ${i.setVariable(Mi.color,"var(--ft-button-internal-color)")};
536
536
  }
537
- `];var Vi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class Xi extends i.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=ui.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}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-no-text-select":!0};return this.addTooltipIfNeeded(e.html`
537
+ `];var Yi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class Ji extends i.FtLitElement{constructor(){super(...arguments),this.role="button",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.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}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-no-text-select":!0};return this.addTooltipIfNeeded(e.html`
538
538
  <button part="button"
539
539
  class="${s.classMap(t)}"
540
540
  aria-label="${this.getLabel()}"
@@ -557,14 +557,14 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
557
557
  </ft-tooltip>
558
558
  `:t}resolveIcon(){return this.loading?e.html`
559
559
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
560
- <ft-icon part="icon" variant="${this.iconVariant}" value="${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}}Xi.elementDefinitions={"ft-ripple":Ci,"ft-tooltip":_i,"ft-typography":fi,"ft-icon":xi,"ft-loader":Ui},Xi.styles=[i.safariEllipsisFix,qi],Vi([o.property({type:String,reflect:!0})],Xi.prototype,"role",void 0),Vi([o.property({type:Boolean})],Xi.prototype,"primary",void 0),Vi([o.property({type:Boolean})],Xi.prototype,"outlined",void 0),Vi([o.property({type:Boolean})],Xi.prototype,"disabled",void 0),Vi([o.property({type:Boolean})],Xi.prototype,"dense",void 0),Vi([o.property({type:Boolean})],Xi.prototype,"round",void 0),Vi([o.property({type:String})],Xi.prototype,"label",void 0),Vi([o.property({type:String})],Xi.prototype,"icon",void 0),Vi([o.property({type:String})],Xi.prototype,"iconVariant",void 0),Vi([o.property({type:Boolean})],Xi.prototype,"trailingIcon",void 0),Vi([o.property({type:Boolean})],Xi.prototype,"loading",void 0),Vi([o.property({type:String})],Xi.prototype,"tooltipPosition",void 0),Vi([o.property({type:Boolean})],Xi.prototype,"hideTooltip",void 0),Vi([o.property({type:Boolean})],Xi.prototype,"forceTooltip",void 0),Vi([o.query(".ft-button")],Xi.prototype,"button",void 0),Vi([o.query(".ft-button--label slot")],Xi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Xi);const Yi={zIndex:i.FtCssVariableFactory.create("--ft-dialog-z-index","NUMBER","2"),overlayBackgroundColor:i.FtCssVariableFactory.create("--ft-dialog-overlay-background-color","COLOR","rgba(0, 0, 0, 0.3)"),height:i.FtCssVariableFactory.create("--ft-dialog-height","SIZE","unset"),width:i.FtCssVariableFactory.create("--ft-dialog-width","SIZE","unset"),minWidth:i.FtCssVariableFactory.create("--ft-dialog-min-width","SIZE","unset"),paddingTop:i.FtCssVariableFactory.create("--ft-dialog-padding-top","SIZE","20px"),paddingSide:i.FtCssVariableFactory.create("--ft-dialog-padding-side","SIZE","16px"),paddingButtons:i.FtCssVariableFactory.create("--ft-dialog-padding-buttons","SIZE","20px"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),headingColor:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),borderRadiusS:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),elevation24:i.FtCssVariableFactory.external(i.designSystemVariables.elevation24,"Design system")},Ji=e.css`
560
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${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}}Ji.elementDefinitions={"ft-ripple":Ii,"ft-tooltip":Ui,"ft-typography":ci,"ft-icon":bi,"ft-loader":Di},Ji.styles=[i.safariEllipsisFix,Xi],Yi([o.property({type:String,reflect:!0})],Ji.prototype,"role",void 0),Yi([o.property({type:Boolean})],Ji.prototype,"primary",void 0),Yi([o.property({type:Boolean})],Ji.prototype,"outlined",void 0),Yi([o.property({type:Boolean})],Ji.prototype,"disabled",void 0),Yi([o.property({type:Boolean})],Ji.prototype,"dense",void 0),Yi([o.property({type:Boolean})],Ji.prototype,"round",void 0),Yi([o.property()],Ji.prototype,"label",void 0),Yi([o.property()],Ji.prototype,"icon",void 0),Yi([o.property()],Ji.prototype,"iconVariant",void 0),Yi([o.property({type:Boolean})],Ji.prototype,"trailingIcon",void 0),Yi([o.property({type:Boolean})],Ji.prototype,"loading",void 0),Yi([o.property()],Ji.prototype,"tooltipPosition",void 0),Yi([o.property({type:Boolean})],Ji.prototype,"hideTooltip",void 0),Yi([o.property({type:Boolean})],Ji.prototype,"forceTooltip",void 0),Yi([o.query(".ft-button")],Ji.prototype,"button",void 0),Yi([o.query(".ft-button--label slot")],Ji.prototype,"slottedContent",void 0),i.customElement("ft-button")(Ji);const Qi={zIndex:i.FtCssVariableFactory.create("--ft-dialog-z-index","NUMBER","2"),overlayBackgroundColor:i.FtCssVariableFactory.create("--ft-dialog-overlay-background-color","COLOR","rgba(0, 0, 0, 0.3)"),height:i.FtCssVariableFactory.create("--ft-dialog-height","SIZE","unset"),width:i.FtCssVariableFactory.create("--ft-dialog-width","SIZE","unset"),minWidth:i.FtCssVariableFactory.create("--ft-dialog-min-width","SIZE","unset"),paddingTop:i.FtCssVariableFactory.create("--ft-dialog-padding-top","SIZE","20px"),paddingSide:i.FtCssVariableFactory.create("--ft-dialog-padding-side","SIZE","16px"),paddingButtons:i.FtCssVariableFactory.create("--ft-dialog-padding-buttons","SIZE","20px"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),headingColor:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),borderRadiusS:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),elevation24:i.FtCssVariableFactory.external(i.designSystemVariables.elevation24,"Design system")},te=e.css`
561
561
  .ft-dialog {
562
562
  position: fixed;
563
563
  top: 0;
564
564
  right: 0;
565
565
  bottom: 0;
566
566
  left: 0;
567
- z-index: ${Yi.zIndex};
567
+ z-index: ${Qi.zIndex};
568
568
 
569
569
  display: flex;
570
570
  flex-direction: column;
@@ -584,7 +584,7 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
584
584
  height: 100%;
585
585
  width: 100%;
586
586
 
587
- background-color: ${Yi.overlayBackgroundColor};
587
+ background-color: ${Qi.overlayBackgroundColor};
588
588
 
589
589
  }
590
590
 
@@ -592,26 +592,26 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
592
592
  position: fixed;
593
593
  display: flex;
594
594
  flex-direction: column;
595
- gap: ${Yi.paddingButtons};
595
+ gap: ${Qi.paddingButtons};
596
596
 
597
- width: ${Yi.width};
598
- height: ${Yi.height};
597
+ width: ${Qi.width};
598
+ height: ${Qi.height};
599
599
  max-width: 95vw;
600
600
  max-height: 95vh;
601
- min-width: ${Yi.minWidth};
601
+ min-width: ${Qi.minWidth};
602
602
 
603
- padding-top: ${Yi.paddingTop};
604
- padding-bottom: ${Yi.paddingTop};
603
+ padding-top: ${Qi.paddingTop};
604
+ padding-bottom: ${Qi.paddingTop};
605
605
 
606
- background-color: ${Yi.colorSurface};
606
+ background-color: ${Qi.colorSurface};
607
607
 
608
- border-radius: ${Yi.borderRadiusS};
609
- box-shadow: ${Yi.elevation24};
608
+ border-radius: ${Qi.borderRadiusS};
609
+ box-shadow: ${Qi.elevation24};
610
610
  }
611
611
 
612
612
  .ft-dialog-wrapper > * {
613
- padding-right: ${Yi.paddingSide};
614
- padding-left: ${Yi.paddingSide};
613
+ padding-right: ${Qi.paddingSide};
614
+ padding-left: ${Qi.paddingSide};
615
615
  }
616
616
 
617
617
  .ft-dialog-content {
@@ -626,7 +626,7 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
626
626
  align-items: center;
627
627
  gap: 8px;
628
628
 
629
- color: ${Yi.headingColor};
629
+ color: ${Qi.headingColor};
630
630
  }
631
631
 
632
632
  .ft-dialog-heading * {
@@ -642,7 +642,7 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
642
642
  }
643
643
 
644
644
  .ft-dialog-heading ft-button {
645
- ${i.setVariable(Di.color,Yi.headingColor)};
645
+ ${i.setVariable(Hi.color,Qi.headingColor)};
646
646
  }
647
647
 
648
648
  .ft-dialog-buttons.ft-dialog-no-buttons {
@@ -656,14 +656,14 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
656
656
  gap: 8px;
657
657
  }
658
658
 
659
- `;var Qi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class te extends i.FtLitElement{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.closable=!1,this.beforeClose=()=>!0,this.heading="",this.icon="",this.watchEscapeKey=t=>{"Escape"===t.key&&this.closeOnEsc&&this.close()}}render(){return this.opened?e.html`
659
+ `;var ie=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(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};class ee extends i.FtLitElement{constructor(){super(...arguments),this.opened=!1,this.closeOnEsc=!1,this.closeOnClickOutside=!1,this.closable=!1,this.beforeClose=()=>!0,this.heading="",this.icon="",this.watchEscapeKey=t=>{"Escape"===t.key&&this.closeOnEsc&&this.close()}}render(){return this.opened?e.html`
660
660
  <div class="ft-dialog">
661
661
  <div class="ft-dialog-overlay" @click="${()=>this.onClickOutside()}"></div>
662
662
  <div class="ft-dialog-wrapper">
663
663
  ${this.heading?e.html`
664
664
  <div class="ft-dialog-heading">
665
665
  ${this.icon?e.html`
666
- <ft-icon variant="material">${this.icon}</ft-icon>
666
+ <ft-icon .variant=${this.iconVariant} value="${this.icon}"></ft-icon>
667
667
  `:void 0}
668
668
  <ft-typography element="span" variant="title">${this.heading}</ft-typography>
669
669
  ${this.closable?e.html`
@@ -672,7 +672,9 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
672
672
  </div>
673
673
  `:null}
674
674
  <div class="ft-dialog-content">
675
- <slot></slot>
675
+ <ft-typography variant="body1">
676
+ <slot></slot>
677
+ </ft-typography>
676
678
  </div>
677
679
  <slot name="buttons"
678
680
  class="ft-dialog-buttons ${this.buttons.length>0?"":"ft-dialog-no-buttons"}"
@@ -680,4 +682,4 @@ const D=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===D)return null==t?void 0:t
680
682
  ></slot>
681
683
  </div>
682
684
  </div>
683
- `:null}updated(t){t.has("opened")&&(this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:this.opened}})),this.opened?setTimeout((()=>{document.addEventListener("keydown",this.watchEscapeKey)}),0):document.removeEventListener("keydown",this.watchEscapeKey))}close(){this.beforeClose()&&(this.opened=!1)}open(){this.opened=!0}onClickOutside(){this.closeOnClickOutside&&this.close()}}te.elementDefinitions={"ft-typography":fi,"ft-icon":xi,"ft-button":Xi},te.styles=Ji,Qi([o.property({type:Boolean,hasChanged:(t,i)=>!1===i&&!0===t||!0===i&&!1===t})],te.prototype,"opened",void 0),Qi([o.property({type:Boolean})],te.prototype,"closeOnEsc",void 0),Qi([o.property({type:Boolean})],te.prototype,"closeOnClickOutside",void 0),Qi([o.property({type:Boolean})],te.prototype,"closable",void 0),Qi([o.property({type:()=>Boolean})],te.prototype,"beforeClose",void 0),Qi([o.property({type:String})],te.prototype,"heading",void 0),Qi([o.property({type:String})],te.prototype,"icon",void 0),Qi([o.queryAssignedElements({slot:"buttons"})],te.prototype,"buttons",void 0),i.customElement("ft-dialog")(te),t.FtDialog=te,t.FtDialogCssVariables=Yi,t.styles=Ji,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);
685
+ `:null}updated(t){t.has("opened")&&(this.dispatchEvent(new CustomEvent("opened-changed",{detail:{opened:this.opened}})),this.opened?setTimeout((()=>{document.addEventListener("keydown",this.watchEscapeKey)}),0):document.removeEventListener("keydown",this.watchEscapeKey))}close(){this.beforeClose()&&(this.opened=!1)}open(){this.opened=!0}onClickOutside(){this.closeOnClickOutside&&this.close()}}ee.elementDefinitions={"ft-typography":ci,"ft-icon":bi,"ft-button":Ji},ee.styles=te,ie([o.property({type:Boolean,hasChanged:(t,i)=>!1===i&&!0===t||!0===i&&!1===t})],ee.prototype,"opened",void 0),ie([o.property({type:Boolean})],ee.prototype,"closeOnEsc",void 0),ie([o.property({type:Boolean})],ee.prototype,"closeOnClickOutside",void 0),ie([o.property({type:Boolean})],ee.prototype,"closable",void 0),ie([o.property({type:()=>Boolean})],ee.prototype,"beforeClose",void 0),ie([o.property()],ee.prototype,"heading",void 0),ie([o.property()],ee.prototype,"icon",void 0),ie([o.property()],ee.prototype,"iconVariant",void 0),ie([o.queryAssignedElements({slot:"buttons"})],ee.prototype,"buttons",void 0),i.customElement("ft-dialog")(ee),t.FtDialog=ee,t.FtDialogCssVariables=Qi,t.styles=te}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML,ftGlobals.litClassMap);