@fluid-topics/ft-snap-scroll 0.2.4 → 0.2.6

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.
@@ -110,115 +110,115 @@ var g;x.elementDefinitions={},x.styles=e.css`
110
110
  opacity: ${a.opacityContentOnSurfacePressed};
111
111
  transform: translate(-50%, -50%) scale(1);
112
112
  }
113
- `,r([o.property({type:Boolean})],x.prototype,"primary",void 0),r([o.property({type:Boolean})],x.prototype,"secondary",void 0),r([o.property({type:Boolean})],x.prototype,"unbounded",void 0),r([o.property({type:Boolean})],x.prototype,"activated",void 0),r([o.property({type:Boolean})],x.prototype,"selected",void 0),r([o.property({type:Boolean})],x.prototype,"disabled",void 0),r([o.state()],x.prototype,"hovered",void 0),r([o.state()],x.prototype,"focused",void 0),r([o.state()],x.prototype,"pressed",void 0),r([o.state()],x.prototype,"rippling",void 0),r([o.state()],x.prototype,"rippleSize",void 0),r([o.state()],x.prototype,"originX",void 0),r([o.state()],x.prototype,"originY",void 0),r([o.query(".ft-ripple")],x.prototype,"ripple",void 0),r([o.query(".ft-ripple--effect")],x.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(x);const b=globalThis.trustedTypes,y=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,v=`lit$${(Math.random()+"").slice(9)}$`,m="?"+v,$=`<${m}>`,w=document,k=(t="")=>w.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,S=Array.isArray,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,j=/>/g,T=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,E=/'/g,N=/"/g,I=/^(?:script|style|textarea|title)$/i,_=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),B=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),A=new WeakMap,M=w.createTreeWalker(w,129,null,!1),R=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=O;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===O?"!--"===a[1]?r=C:void 0!==a[1]?r=j:void 0!==a[2]?(I.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=T):void 0!==a[3]&&(r=T):r===T?">"===a[0]?(r=null!=s?s:O,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?T:'"'===a[3]?N:E):r===N||r===E?r=T:r===C||r===j?r=O:(r=T,s=void 0);const f=r===T&&t[i+1].startsWith("/>")?" ":"";n+=r===O?e+$:p>=0?(o.push(l),e.slice(0,p)+"$lit$"+e.slice(p)+v+f):e+v+(-2===p?(o.push(void 0),i):f)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(l):l,o]};class U{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=R(t,i);if(this.el=U.createElement(a,e),M.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=M.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(v)){const e=p[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(v),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?L:"?"===i[1]?K:"@"===i[1]?q:W})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(I.test(o.tagName)){const t=o.textContent.split(v),i=t.length-1;if(i>0){o.textContent=b?b.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],k()),M.nextNode(),l.push({type:2,index:++s});o.append(t[i],k())}}}else if(8===o.nodeType)if(o.data===m)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(v,t+1));)l.push({type:7,index:s}),t+=v.length-1}s++}}static createElement(t,i){const e=w.createElement("template");return e.innerHTML=t,e}}function Z(t,i,e=t,o){var s,n,r,l;if(i===B)return i;let a=void 0!==o?null===(s=e._$Cl)||void 0===s?void 0:s[o]:e._$Cu;const p=z(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.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)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:e._$Cu=a),void 0!==a&&(i=Z(t,a._$AS(t,i.values),a,o)),i}class D{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:w).importNode(e,!0);M.currentNode=s;let n=M.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new H(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new P(n,this,t)),this.v.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=M.nextNode(),r++)}return s}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class H{constructor(t,i,e,o){var s;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Z(this,t,i),z(t)?t===F||null==t||""===t?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==B&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return S(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==F&&z(this._$AH)?this._$AA.nextSibling.data=t:this.S(w.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=U.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.m(e);else{const t=new D(s,this),i=t.p(this.options);t.m(e),this.S(i),this._$AH=t}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new U(t)),i}A(t){S(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new H(this.M(k()),this.M(k()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class W{constructor(t,i,e,o,s){this.type=1,this._$AH=F,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=F}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=Z(this,t,i,0),n=!z(t)||t!==this._$AH&&t!==B,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=Z(this,o[e+r],i,r),l===B&&(l=this._$AH[r]),n||(n=!z(l)||l!==this._$AH[r]),l===F?t=F:t!==F&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.k(t)}k(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class L extends W{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===F?void 0:t}}const G=b?b.emptyScript:"";class K extends W{constructor(){super(...arguments),this.type=4}k(t){t&&t!==F?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class q extends W{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=Z(this,t,i,0))&&void 0!==e?e:F)===B)return;const o=this._$AH,s=t===F&&o!==F||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==F&&(o===F||s);s&&this.element.removeEventListener(this.name,this,o),n&&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 P{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){Z(this,t)}}const V=window.litHtmlPolyfillSupport;null==V||V(U,H),(null!==(g=globalThis.litHtmlVersions)&&void 0!==g?g:globalThis.litHtmlVersions=[]).push("2.1.3");
113
+ `,r([o.property({type:Boolean})],x.prototype,"primary",void 0),r([o.property({type:Boolean})],x.prototype,"secondary",void 0),r([o.property({type:Boolean})],x.prototype,"unbounded",void 0),r([o.property({type:Boolean})],x.prototype,"activated",void 0),r([o.property({type:Boolean})],x.prototype,"selected",void 0),r([o.property({type:Boolean})],x.prototype,"disabled",void 0),r([o.state()],x.prototype,"hovered",void 0),r([o.state()],x.prototype,"focused",void 0),r([o.state()],x.prototype,"pressed",void 0),r([o.state()],x.prototype,"rippling",void 0),r([o.state()],x.prototype,"rippleSize",void 0),r([o.state()],x.prototype,"originX",void 0),r([o.state()],x.prototype,"originY",void 0),r([o.query(".ft-ripple")],x.prototype,"ripple",void 0),r([o.query(".ft-ripple--effect")],x.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(x);const b=globalThis.trustedTypes,y=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,v=`lit$${(Math.random()+"").slice(9)}$`,m="?"+v,$=`<${m}>`,w=document,k=(t="")=>w.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,S=Array.isArray,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,j=/>/g,T=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,E=/'/g,N=/"/g,I=/^(?:script|style|textarea|title)$/i,_=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),B=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),M=new WeakMap,A=w.createTreeWalker(w,129,null,!1),R=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=C;for(let i=0;i<e;i++){const e=t[i];let l,a,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,a=r.exec(e),null!==a);)h=r.lastIndex,r===C?"!--"===a[1]?r=O:void 0!==a[1]?r=j:void 0!==a[2]?(I.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=T):void 0!==a[3]&&(r=T):r===T?">"===a[0]?(r=null!=s?s:C,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?T:'"'===a[3]?N:E):r===N||r===E?r=T:r===O||r===j?r=C:(r=T,s=void 0);const f=r===T&&t[i+1].startsWith("/>")?" ":"";n+=r===C?e+$:p>=0?(o.push(l),e.slice(0,p)+"$lit$"+e.slice(p)+v+f):e+v+(-2===p?(o.push(void 0),i):f)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==y?y.createHTML(l):l,o]};class U{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=R(t,i);if(this.el=U.createElement(a,e),A.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=A.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(v)){const e=p[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(v),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?L:"?"===i[1]?K:"@"===i[1]?q:W})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(I.test(o.tagName)){const t=o.textContent.split(v),i=t.length-1;if(i>0){o.textContent=b?b.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],k()),A.nextNode(),l.push({type:2,index:++s});o.append(t[i],k())}}}else if(8===o.nodeType)if(o.data===m)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(v,t+1));)l.push({type:7,index:s}),t+=v.length-1}s++}}static createElement(t,i){const e=w.createElement("template");return e.innerHTML=t,e}}function Z(t,i,e=t,o){var s,n,r,l;if(i===B)return i;let a=void 0!==o?null===(s=e._$Cl)||void 0===s?void 0:s[o]:e._$Cu;const p=z(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.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)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:e._$Cu=a),void 0!==a&&(i=Z(t,a._$AS(t,i.values),a,o)),i}class D{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:w).importNode(e,!0);A.currentNode=s;let n=A.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new H(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new P(n,this,t)),this.v.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=A.nextNode(),r++)}return s}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class H{constructor(t,i,e,o){var s;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Z(this,t,i),z(t)?t===F||null==t||""===t?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==B&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return S(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==F&&z(this._$AH)?this._$AA.nextSibling.data=t:this.k(w.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=U.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.m(e);else{const t=new D(s,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=M.get(t.strings);return void 0===i&&M.set(t.strings,i=new U(t)),i}S(t){S(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new H(this.M(k()),this.M(k()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class W{constructor(t,i,e,o,s){this.type=1,this._$AH=F,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=F}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=Z(this,t,i,0),n=!z(t)||t!==this._$AH&&t!==B,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=Z(this,o[e+r],i,r),l===B&&(l=this._$AH[r]),n||(n=!z(l)||l!==this._$AH[r]),l===F?t=F:t!==F&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.C(t)}C(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class L extends W{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===F?void 0:t}}const G=b?b.emptyScript:"";class K extends W{constructor(){super(...arguments),this.type=4}C(t){t&&t!==F?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class q extends W{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=Z(this,t,i,0))&&void 0!==e?e:F)===B)return;const o=this._$AH,s=t===F&&o!==F||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==F&&(o===F||s);s&&this.element.removeEventListener(this.name,this,o),n&&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 P{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){Z(this,t)}}const V=window.litHtmlPolyfillSupport;null==V||V(U,H),(null!==(g=globalThis.litHtmlVersions)&&void 0!==g?g:globalThis.litHtmlVersions=[]).push("2.2.4");
114
114
  /**
115
115
  * @license
116
116
  * Copyright 2020 Google LLC
117
117
  * SPDX-License-Identifier: BSD-3-Clause
118
118
  */
119
- const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;let n,r;const l=[],a=[];let p,h=0,f=!1;for(;h<s;){for(p=i[h];h<s&&void 0!==(r=e[h],n=null===(o=r)||void 0===o?void 0:o._$litStatic$);)p+=n+i[++h],f=!0;a.push(r),l.push(p),h++}if(h===s&&l.push(i[s]),f){const t=l.join("$$lit$$");void 0===(i=Y.get(t))&&(l.raw=l,Y.set(t,i=l)),e=a}return t(i,...e)})(_);var Q,tt=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Q||(Q={}));const it=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),et=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),ot={fontFamily:et,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},st=i.FtCssVariable.extend("--ft-typography-title-font-family",it),nt=i.FtCssVariable.extend("--ft-typography-title-font-size",ot.fontSize,"20px"),rt=i.FtCssVariable.extend("--ft-typography-title-font-weight",ot.fontWeight,"normal"),lt=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",ot.letterSpacing,"0.15px"),at=i.FtCssVariable.extend("--ft-typography-title-line-height",ot.lineHeight,"24px"),pt=i.FtCssVariable.extend("--ft-typography-title-text-transform",ot.textTransform,"inherit"),ht=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",it),ft=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",ot.fontSize,"14px"),ct=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",ot.fontWeight,"normal"),dt=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",ot.letterSpacing,"0.105px"),ut=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",ot.lineHeight,"24px"),xt=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",ot.textTransform,"inherit"),gt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",et),bt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",ot.fontSize,"16px"),yt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",ot.fontWeight,"600"),vt=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",ot.letterSpacing,"0.144px"),mt=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",ot.lineHeight,"24px"),$t=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",ot.textTransform,"inherit"),wt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",et),kt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",ot.fontSize,"14px"),zt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",ot.fontWeight,"normal"),St=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",ot.letterSpacing,"0.098px"),Ot=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",ot.lineHeight,"24px"),Ct=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",ot.textTransform,"inherit"),jt=i.FtCssVariable.extend("--ft-typography-body1-font-family",et),Tt=i.FtCssVariable.extend("--ft-typography-body1-font-size",ot.fontSize,"16px"),Et=i.FtCssVariable.extend("--ft-typography-body1-font-weight",ot.fontWeight,"normal"),Nt=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",ot.letterSpacing,"0.496px"),It=i.FtCssVariable.extend("--ft-typography-body1-line-height",ot.lineHeight,"24px"),_t=i.FtCssVariable.extend("--ft-typography-body1-text-transform",ot.textTransform,"inherit"),Bt=i.FtCssVariable.extend("--ft-typography-body2-font-family",et),Ft=i.FtCssVariable.extend("--ft-typography-body2-font-size",ot.fontSize,"14px"),At=i.FtCssVariable.extend("--ft-typography-body2-font-weight",ot.fontWeight,"normal"),Mt=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",ot.letterSpacing,"0.252px"),Rt=i.FtCssVariable.extend("--ft-typography-body2-line-height",ot.lineHeight,"20px"),Ut=i.FtCssVariable.extend("--ft-typography-body2-text-transform",ot.textTransform,"inherit"),Zt=i.FtCssVariable.extend("--ft-typography-caption-font-family",et),Dt=i.FtCssVariable.extend("--ft-typography-caption-font-size",ot.fontSize,"12px"),Ht=i.FtCssVariable.extend("--ft-typography-caption-font-weight",ot.fontWeight,"normal"),Wt=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",ot.letterSpacing,"0.396px"),Lt=i.FtCssVariable.extend("--ft-typography-caption-line-height",ot.lineHeight,"16px"),Gt=i.FtCssVariable.extend("--ft-typography-caption-text-transform",ot.textTransform,"inherit"),Kt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",et),qt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",ot.fontSize,"10px"),Pt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",ot.fontWeight,"normal"),Vt=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",ot.letterSpacing,"0.33px"),Xt=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",ot.lineHeight,"16px"),Yt=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",ot.textTransform,"inherit"),Jt=i.FtCssVariable.extend("--ft-typography-overline-font-family",et),Qt=i.FtCssVariable.extend("--ft-typography-overline-font-size",ot.fontSize,"10px"),ti=i.FtCssVariable.extend("--ft-typography-overline-font-weight",ot.fontWeight,"normal"),ii=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",ot.letterSpacing,"1.5px"),ei=i.FtCssVariable.extend("--ft-typography-overline-line-height",ot.lineHeight,"16px"),oi=i.FtCssVariable.extend("--ft-typography-overline-text-transform",ot.textTransform,"uppercase"),si={fontFamily:i.FtCssVariable.extend("--ft-typography-button-font-family",et),fontSize:i.FtCssVariable.extend("--ft-typography-button-font-size",ot.fontSize,"14px"),fontWeight:i.FtCssVariable.extend("--ft-typography-button-font-weight",ot.fontWeight,"600"),letterSpacing:i.FtCssVariable.extend("--ft-typography-button-letter-spacing",ot.letterSpacing,"1.246px"),lineHeight:i.FtCssVariable.extend("--ft-typography-button-line-height",ot.lineHeight,"16px"),textTransform:i.FtCssVariable.extend("--ft-typography-button-text-transform",ot.textTransform,"uppercase")},ni=e.css`
119
+ const X=Symbol.for(""),Y=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===X)return null===(e=t)||void 0===e?void 0:e._$litStatic$},J=t=>({_$litStatic$:t,r:X}),Q=new Map,tt=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(n=e[p],s=Y(n));)a+=s+i[++p],h=!0;l.push(n),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=Q.get(t))&&(r.raw=r,Q.set(t,i=r)),e=l}return t(i,...e)})(_);var it,et=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(it||(it={}));const ot=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),st=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),nt={fontFamily:st,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},rt=i.FtCssVariable.extend("--ft-typography-title-font-family",ot),lt=i.FtCssVariable.extend("--ft-typography-title-font-size",nt.fontSize,"20px"),at=i.FtCssVariable.extend("--ft-typography-title-font-weight",nt.fontWeight,"normal"),pt=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",nt.letterSpacing,"0.15px"),ht=i.FtCssVariable.extend("--ft-typography-title-line-height",nt.lineHeight,"24px"),ft=i.FtCssVariable.extend("--ft-typography-title-text-transform",nt.textTransform,"inherit"),ct=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",ot),dt=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",nt.fontSize,"14px"),ut=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",nt.fontWeight,"normal"),xt=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",nt.letterSpacing,"0.105px"),gt=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",nt.lineHeight,"24px"),bt=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",nt.textTransform,"inherit"),yt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",st),vt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",nt.fontSize,"16px"),mt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",nt.fontWeight,"600"),$t=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",nt.letterSpacing,"0.144px"),wt=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",nt.lineHeight,"24px"),kt=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",nt.textTransform,"inherit"),zt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",st),St=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",nt.fontSize,"14px"),Ct=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",nt.fontWeight,"normal"),Ot=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",nt.letterSpacing,"0.098px"),jt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",nt.lineHeight,"24px"),Tt=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",nt.textTransform,"inherit"),Et=i.FtCssVariable.extend("--ft-typography-body1-font-family",st),Nt=i.FtCssVariable.extend("--ft-typography-body1-font-size",nt.fontSize,"16px"),It=i.FtCssVariable.extend("--ft-typography-body1-font-weight",nt.fontWeight,"normal"),_t=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",nt.letterSpacing,"0.496px"),Bt=i.FtCssVariable.extend("--ft-typography-body1-line-height",nt.lineHeight,"24px"),Ft=i.FtCssVariable.extend("--ft-typography-body1-text-transform",nt.textTransform,"inherit"),Mt=i.FtCssVariable.extend("--ft-typography-body2-font-family",st),At=i.FtCssVariable.extend("--ft-typography-body2-font-size",nt.fontSize,"14px"),Rt=i.FtCssVariable.extend("--ft-typography-body2-font-weight",nt.fontWeight,"normal"),Ut=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",nt.letterSpacing,"0.252px"),Zt=i.FtCssVariable.extend("--ft-typography-body2-line-height",nt.lineHeight,"20px"),Dt=i.FtCssVariable.extend("--ft-typography-body2-text-transform",nt.textTransform,"inherit"),Ht=i.FtCssVariable.extend("--ft-typography-caption-font-family",st),Wt=i.FtCssVariable.extend("--ft-typography-caption-font-size",nt.fontSize,"12px"),Lt=i.FtCssVariable.extend("--ft-typography-caption-font-weight",nt.fontWeight,"normal"),Gt=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",nt.letterSpacing,"0.396px"),Kt=i.FtCssVariable.extend("--ft-typography-caption-line-height",nt.lineHeight,"16px"),qt=i.FtCssVariable.extend("--ft-typography-caption-text-transform",nt.textTransform,"inherit"),Pt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",st),Vt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",nt.fontSize,"10px"),Xt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",nt.fontWeight,"normal"),Yt=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",nt.letterSpacing,"0.33px"),Jt=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",nt.lineHeight,"16px"),Qt=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",nt.textTransform,"inherit"),ti=i.FtCssVariable.extend("--ft-typography-overline-font-family",st),ii=i.FtCssVariable.extend("--ft-typography-overline-font-size",nt.fontSize,"10px"),ei=i.FtCssVariable.extend("--ft-typography-overline-font-weight",nt.fontWeight,"normal"),oi=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",nt.letterSpacing,"1.5px"),si=i.FtCssVariable.extend("--ft-typography-overline-line-height",nt.lineHeight,"16px"),ni=i.FtCssVariable.extend("--ft-typography-overline-text-transform",nt.textTransform,"uppercase"),ri={fontFamily:i.FtCssVariable.extend("--ft-typography-button-font-family",st),fontSize:i.FtCssVariable.extend("--ft-typography-button-font-size",nt.fontSize,"14px"),fontWeight:i.FtCssVariable.extend("--ft-typography-button-font-weight",nt.fontWeight,"600"),letterSpacing:i.FtCssVariable.extend("--ft-typography-button-letter-spacing",nt.letterSpacing,"1.246px"),lineHeight:i.FtCssVariable.extend("--ft-typography-button-line-height",nt.lineHeight,"16px"),textTransform:i.FtCssVariable.extend("--ft-typography-button-text-transform",nt.textTransform,"uppercase")},li=e.css`
120
120
  .ft-typography--title {
121
- font-family: ${st};
122
- font-size: ${nt};
123
- font-weight: ${rt};
124
- letter-spacing: ${lt};
125
- line-height: ${at};
126
- text-transform: ${pt};
121
+ font-family: ${rt};
122
+ font-size: ${lt};
123
+ font-weight: ${at};
124
+ letter-spacing: ${pt};
125
+ line-height: ${ht};
126
+ text-transform: ${ft};
127
127
  }
128
- `,ri=e.css`
128
+ `,ai=e.css`
129
129
  .ft-typography--title-dense {
130
- font-family: ${ht};
131
- font-size: ${ft};
132
- font-weight: ${ct};
133
- letter-spacing: ${dt};
134
- line-height: ${ut};
135
- text-transform: ${xt};
130
+ font-family: ${ct};
131
+ font-size: ${dt};
132
+ font-weight: ${ut};
133
+ letter-spacing: ${xt};
134
+ line-height: ${gt};
135
+ text-transform: ${bt};
136
136
  }
137
- `,li=e.css`
137
+ `,pi=e.css`
138
138
  .ft-typography--subtitle1 {
139
- font-family: ${gt};
140
- font-size: ${bt};
141
- font-weight: ${yt};
142
- letter-spacing: ${vt};
143
- line-height: ${mt};
144
- text-transform: ${$t};
139
+ font-family: ${yt};
140
+ font-size: ${vt};
141
+ font-weight: ${mt};
142
+ letter-spacing: ${$t};
143
+ line-height: ${wt};
144
+ text-transform: ${kt};
145
145
  }
146
- `,ai=e.css`
146
+ `,hi=e.css`
147
147
  .ft-typography--subtitle2 {
148
- font-family: ${wt};
149
- font-size: ${kt};
150
- font-weight: ${zt};
151
- letter-spacing: ${St};
152
- line-height: ${Ot};
153
- text-transform: ${Ct};
148
+ font-family: ${zt};
149
+ font-size: ${St};
150
+ font-weight: ${Ct};
151
+ letter-spacing: ${Ot};
152
+ line-height: ${jt};
153
+ text-transform: ${Tt};
154
154
  }
155
155
 
156
- `,pi=e.css`
156
+ `,fi=e.css`
157
157
  .ft-typography--body1 {
158
- font-family: ${jt};
159
- font-size: ${Tt};
160
- font-weight: ${Et};
161
- letter-spacing: ${Nt};
162
- line-height: ${It};
163
- text-transform: ${_t};
158
+ font-family: ${Et};
159
+ font-size: ${Nt};
160
+ font-weight: ${It};
161
+ letter-spacing: ${_t};
162
+ line-height: ${Bt};
163
+ text-transform: ${Ft};
164
164
  }
165
- `,hi=e.css`
165
+ `,ci=e.css`
166
166
  .ft-typography--body2 {
167
- font-family: ${Bt};
168
- font-size: ${Ft};
169
- font-weight: ${At};
170
- letter-spacing: ${Mt};
171
- line-height: ${Rt};
172
- text-transform: ${Ut};
167
+ font-family: ${Mt};
168
+ font-size: ${At};
169
+ font-weight: ${Rt};
170
+ letter-spacing: ${Ut};
171
+ line-height: ${Zt};
172
+ text-transform: ${Dt};
173
173
  }
174
- `,fi=e.css`
174
+ `,di=e.css`
175
175
  .ft-typography--caption {
176
- font-family: ${Zt};
177
- font-size: ${Dt};
178
- font-weight: ${Ht};
179
- letter-spacing: ${Wt};
180
- line-height: ${Lt};
181
- text-transform: ${Gt};
176
+ font-family: ${Ht};
177
+ font-size: ${Wt};
178
+ font-weight: ${Lt};
179
+ letter-spacing: ${Gt};
180
+ line-height: ${Kt};
181
+ text-transform: ${qt};
182
182
  }
183
- `,ci=e.css`
183
+ `,ui=e.css`
184
184
  .ft-typography--breadcrumb {
185
- font-family: ${Kt};
186
- font-size: ${qt};
187
- font-weight: ${Pt};
188
- letter-spacing: ${Vt};
189
- line-height: ${Xt};
190
- text-transform: ${Yt};
185
+ font-family: ${Pt};
186
+ font-size: ${Vt};
187
+ font-weight: ${Xt};
188
+ letter-spacing: ${Yt};
189
+ line-height: ${Jt};
190
+ text-transform: ${Qt};
191
191
  }
192
- `,di=e.css`
192
+ `,xi=e.css`
193
193
  .ft-typography--overline {
194
- font-family: ${Jt};
195
- font-size: ${Qt};
196
- font-weight: ${ti};
197
- letter-spacing: ${ii};
198
- line-height: ${ei};
199
- text-transform: ${oi};
194
+ font-family: ${ti};
195
+ font-size: ${ii};
196
+ font-weight: ${ei};
197
+ letter-spacing: ${oi};
198
+ line-height: ${si};
199
+ text-transform: ${ni};
200
200
  }
201
- `,ui=e.css`
201
+ `,gi=e.css`
202
202
  .ft-typography--button {
203
- font-family: ${si.fontFamily};
204
- font-size: ${si.fontSize};
205
- font-weight: ${si.fontWeight};
206
- letter-spacing: ${si.letterSpacing};
207
- line-height: ${si.lineHeight};
208
- text-transform: ${si.textTransform};
203
+ font-family: ${ri.fontFamily};
204
+ font-size: ${ri.fontSize};
205
+ font-weight: ${ri.fontWeight};
206
+ letter-spacing: ${ri.letterSpacing};
207
+ line-height: ${ri.lineHeight};
208
+ text-transform: ${ri.textTransform};
209
209
  }
210
- `;class xi extends i.FtLitElement{constructor(){super(...arguments),this.variant=Q.body1}render(){return this.element?J`
211
- <${X(this.element)}
210
+ `;class bi extends i.FtLitElement{constructor(){super(...arguments),this.variant=it.body1}render(){return this.element?tt`
211
+ <${J(this.element)}
212
212
  class="ft-typography ft-typography--${this.variant}">
213
213
  <slot></slot>
214
- </${X(this.element)}>
215
- `:J`
214
+ </${J(this.element)}>
215
+ `:tt`
216
216
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
217
- `}}xi.styles=[ni,ri,li,ai,pi,hi,fi,ci,di,ui,e.css`
217
+ `}}bi.styles=[li,ai,pi,hi,fi,ci,di,ui,xi,gi,e.css`
218
218
  .ft-typography {
219
219
  vertical-align: inherit;
220
220
  }
221
- `],tt([o.property()],xi.prototype,"element",void 0),tt([o.property()],xi.prototype,"variant",void 0),i.customElement("ft-typography")(xi);var gi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const bi=i.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),yi=i.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),vi=i.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),mi=i.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),$i=i.FtCssVariable.external(i.designSystemVariables.borderRadiusS,"Design system");class wi extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}render(){return e.html`
221
+ `],et([o.property()],bi.prototype,"element",void 0),et([o.property()],bi.prototype,"variant",void 0),i.customElement("ft-typography")(bi);var yi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const vi=i.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),mi=i.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),$i=i.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),wi=i.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),ki=i.FtCssVariable.external(i.designSystemVariables.borderRadiusS,"Design system");class zi extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new i.Debouncer,this.revealDebouncer=new i.Debouncer}render(){return e.html`
222
222
  <div part="container"
223
223
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
224
224
  @mouseenter=${this.onHover}
@@ -233,7 +233,7 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
233
233
  </div>
234
234
  <slot></slot>
235
235
  </div>
236
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2,s=this.tooltip.style;switch(this.position){case"top":s.top=-this.tooltip.clientHeight+"px",s.left=o+"px";break;case"bottom":s.top=i.height+"px",s.left=o+"px";break;case"left":s.top=e+"px",s.left=-this.tooltip.clientWidth+"px";break;case"right":s.top=e+"px",s.left=i.width+"px"}s.maxWidth=Math.max(i.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}wi.elementDefinitions={"ft-typography":xi},wi.styles=e.css`
236
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2,s=this.tooltip.style;switch(this.position){case"top":s.top=-this.tooltip.clientHeight+"px",s.left=o+"px";break;case"bottom":s.top=i.height+"px",s.left=o+"px";break;case"left":s.top=e+"px",s.left=-this.tooltip.clientWidth+"px";break;case"right":s.top=e+"px",s.left=i.width+"px"}s.maxWidth=Math.max(i.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}zi.elementDefinitions={"ft-typography":bi},zi.styles=e.css`
237
237
  .ft-tooltip--container {
238
238
  display: block;
239
239
  position: relative;
@@ -251,21 +251,21 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
251
251
  width: max-content;
252
252
  max-width: 150px;
253
253
  text-align: center;
254
- padding: ${bi};
255
- z-index: ${mi};
254
+ padding: ${vi};
255
+ z-index: ${wi};
256
256
  }
257
257
 
258
258
  .ft-tooltip--content {
259
259
  padding: 4px 8px;
260
- border-radius: ${$i};
261
- background-color: ${vi};
262
- color: ${yi};
260
+ border-radius: ${ki};
261
+ background-color: ${$i};
262
+ color: ${mi};
263
263
  top: -500px;
264
264
  left: -500px;
265
265
  position: relative;
266
266
  word-break: break-word;
267
267
  }
268
- `,gi([o.property()],wi.prototype,"text",void 0),gi([o.property({type:Boolean})],wi.prototype,"manual",void 0),gi([o.property({type:Boolean})],wi.prototype,"inline",void 0),gi([o.property({type:Number})],wi.prototype,"delay",void 0),gi([o.property()],wi.prototype,"position",void 0),gi([o.queryAssignedNodes("",!0)],wi.prototype,"slotNodes",void 0),gi([o.query(".ft-tooltip--container")],wi.prototype,"container",void 0),gi([o.query("slot")],wi.prototype,"target",void 0),gi([o.query(".ft-tooltip")],wi.prototype,"tooltip",void 0),gi([o.query(".ft-tooltip--content")],wi.prototype,"tooltipContent",void 0),gi([o.state()],wi.prototype,"visible",void 0),i.customElement("ft-tooltip")(wi);const ki={color:i.FtCssVariable.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariable.create("--ft-loader-size","SIZE","80px")};class zi extends i.FtLitElement{static get styles(){return e.css`
268
+ `,yi([o.property()],zi.prototype,"text",void 0),yi([o.property({type:Boolean})],zi.prototype,"manual",void 0),yi([o.property({type:Boolean})],zi.prototype,"inline",void 0),yi([o.property({type:Number})],zi.prototype,"delay",void 0),yi([o.property()],zi.prototype,"position",void 0),yi([o.queryAssignedNodes("",!0)],zi.prototype,"slotNodes",void 0),yi([o.query(".ft-tooltip--container")],zi.prototype,"container",void 0),yi([o.query("slot")],zi.prototype,"target",void 0),yi([o.query(".ft-tooltip")],zi.prototype,"tooltip",void 0),yi([o.query(".ft-tooltip--content")],zi.prototype,"tooltipContent",void 0),yi([o.state()],zi.prototype,"visible",void 0),i.customElement("ft-tooltip")(zi);const Si={color:i.FtCssVariable.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariable.create("--ft-loader-size","SIZE","80px")};class Ci extends i.FtLitElement{static get styles(){return e.css`
269
269
  :host {
270
270
  line-height: 0;
271
271
  }
@@ -274,8 +274,8 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
274
274
  display: inline-block;
275
275
  position: relative;
276
276
 
277
- width: ${ki.size};
278
- height: ${ki.size};
277
+ width: ${Si.size};
278
+ height: ${Si.size};
279
279
  }
280
280
 
281
281
  .ft-loader div {
@@ -284,7 +284,7 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
284
284
  width: 25%;
285
285
  height: 25%;
286
286
  border-radius: 50%;
287
- background: ${ki.color};
287
+ background: ${Si.color};
288
288
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
289
289
  }
290
290
 
@@ -331,7 +331,7 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
331
331
  transform: translate(0, 0);
332
332
  }
333
333
  100% {
334
- transform: translate(calc(0.35 * ${ki.size}), 0);
334
+ transform: translate(calc(0.35 * ${Si.size}), 0);
335
335
  }
336
336
  }
337
337
  `}render(){return e.html`
@@ -341,21 +341,21 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
341
341
  <div></div>
342
342
  <div></div>
343
343
  </div>
344
- `}}var Si,Oi;i.customElement("ft-loader")(zi),function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(Si||(Si={})),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;"}(Oi||(Oi={})),new Map([...["abw"].map((t=>[t,Oi.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,Oi.AUDIO])),...["avi"].map((t=>[t,Oi.AVI])),...["chm","xhs"].map((t=>[t,Oi.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,Oi.CODE])),...["csv"].map((t=>[t,Oi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Oi.DITA])),...["epub"].map((t=>[t,Oi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Oi.EXCEL])),...["flac"].map((t=>[t,Oi.FLAC])),...["gif"].map((t=>[t,Oi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Oi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Oi.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,Oi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Oi.JPEG])),...["json"].map((t=>[t,Oi.JSON])),...["m4a","m4p"].map((t=>[t,Oi.M4A])),...["mov","qt"].map((t=>[t,Oi.MOV])),...["mp3"].map((t=>[t,Oi.MP3])),...["mp4","m4v"].map((t=>[t,Oi.MP4])),...["ogg","oga"].map((t=>[t,Oi.OGG])),...["pdf","ps"].map((t=>[t,Oi.PDF])),...["png"].map((t=>[t,Oi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Oi.POWERPOINT])),...["rar"].map((t=>[t,Oi.RAR])),...["stp"].map((t=>[t,Oi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Oi.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,Oi.VIDEO])),...["wav"].map((t=>[t,Oi.WAV])),...["wma"].map((t=>[t,Oi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Oi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Oi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Oi.YAML])),...["zip"].map((t=>[t,Oi.ZIP]))]);var Ci,ji=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ci||(Ci={}));const Ti={size:i.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariable.extend("--ft-icon-file-format-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariable.extend("--ft-icon-material-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class Ei extends i.FtLitElement{constructor(){super(...arguments),this.variant=Ci.fluid_topics}render(){return e.html`
344
+ `}}var Oi,ji;i.customElement("ft-loader")(Ci),function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(Oi||(Oi={})),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;"}(ji||(ji={})),new Map([...["abw"].map((t=>[t,ji.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,ji.AUDIO])),...["avi"].map((t=>[t,ji.AVI])),...["chm","xhs"].map((t=>[t,ji.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,ji.CODE])),...["csv"].map((t=>[t,ji.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ji.DITA])),...["epub"].map((t=>[t,ji.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ji.EXCEL])),...["flac"].map((t=>[t,ji.FLAC])),...["gif"].map((t=>[t,ji.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ji.GZIP])),...["html","htm","xhtml"].map((t=>[t,ji.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,ji.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ji.JPEG])),...["json"].map((t=>[t,ji.JSON])),...["m4a","m4p"].map((t=>[t,ji.M4A])),...["mov","qt"].map((t=>[t,ji.MOV])),...["mp3"].map((t=>[t,ji.MP3])),...["mp4","m4v"].map((t=>[t,ji.MP4])),...["ogg","oga"].map((t=>[t,ji.OGG])),...["pdf","ps"].map((t=>[t,ji.PDF])),...["png"].map((t=>[t,ji.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ji.POWERPOINT])),...["rar"].map((t=>[t,ji.RAR])),...["stp"].map((t=>[t,ji.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ji.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,ji.VIDEO])),...["wav"].map((t=>[t,ji.WAV])),...["wma"].map((t=>[t,ji.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ji.WORD])),...["xml","xsl","rdf"].map((t=>[t,ji.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ji.YAML])),...["zip"].map((t=>[t,ji.ZIP]))]);var Ti,Ei=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ti||(Ti={}));const Ni={size:i.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariable.extend("--ft-icon-file-format-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariable.extend("--ft-icon-material-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class Ii extends i.FtLitElement{constructor(){super(...arguments),this.variant=Ti.fluid_topics}render(){return e.html`
345
345
  <i class="ft-icon ${"ft-icon--"+this.variant}">
346
346
  ${n.unsafeHTML(this.getIcon())}
347
347
  <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
348
348
  </i>
349
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let o=this.textContent;return this.variant===Ci.file_format?null!==(t=Oi[o.toUpperCase()])&&void 0!==t?t:o:this.variant===Ci.fluid_topics?null!==(i=Si[o.toUpperCase()])&&void 0!==i?i:o:e.nothing}}Ei.elementDefinitions={},Ei.styles=e.css`
349
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let o=this.textContent;return this.variant===Ti.file_format?null!==(t=ji[o.toUpperCase()])&&void 0!==t?t:o:this.variant===Ti.fluid_topics?null!==(i=Oi[o.toUpperCase()])&&void 0!==i?i:o:e.nothing}}Ii.elementDefinitions={},Ii.styles=e.css`
350
350
  :host, i.ft-icon {
351
351
  display: inline-block;
352
- width: ${Ti.size};
353
- height: ${Ti.size};
352
+ width: ${Ni.size};
353
+ height: ${Ni.size};
354
354
  text-align: center;
355
355
  }
356
356
 
357
357
  i.ft-icon {
358
- font-size: ${Ti.size};
358
+ font-size: ${Ni.size};
359
359
  line-height: 1;
360
360
  font-weight: normal;
361
361
  text-transform: none;
@@ -369,17 +369,17 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
369
369
  }
370
370
 
371
371
  .ft-icon--fluid-topics {
372
- font-family: ${Ti.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
372
+ font-family: ${Ni.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
373
373
  }
374
374
 
375
375
  .ft-icon--file-format {
376
- font-family: ${Ti.fileFormatFontFamily}, ft-mime, sans-serif;
376
+ font-family: ${Ni.fileFormatFontFamily}, ft-mime, sans-serif;
377
377
  }
378
378
 
379
379
  .ft-icon--material {
380
- font-family: ${Ti.materialFontFamily}, "Material Icons", sans-serif;
380
+ font-family: ${Ni.materialFontFamily}, "Material Icons", sans-serif;
381
381
  }
382
- `,ji([o.property()],Ei.prototype,"variant",void 0),ji([o.query("slot")],Ei.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ei);var Ni=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const Ii=i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorPrimary),_i={backgroundColor:i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Ii,fontSize:i.FtCssVariable.extend("--ft-button-font-size",si.fontSize),iconSize:i.FtCssVariable.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariable.extend("--ft-button-ripple-color",Ii),opacityDisabled:i.FtCssVariable.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Bi=i.FtCssVariable.extend("--ft-button-primary-color",i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Fi={backgroundColor:i.FtCssVariable.extend("--ft-button-primary-background-color",i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Bi,rippleColor:i.FtCssVariable.extend("--ft-button-primary-ripple-color",Bi)},Ai=i.FtCssVariable.extend("--ft-button-dense-border-radius",i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM));class Mi extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[i.noTextSelect,e.css`
382
+ `,Ei([o.property()],Ii.prototype,"variant",void 0),Ei([o.query("slot")],Ii.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ii);var _i=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const Bi=i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Fi={backgroundColor:i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Bi,fontSize:i.FtCssVariable.extend("--ft-button-font-size",ri.fontSize),iconSize:i.FtCssVariable.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariable.extend("--ft-button-ripple-color",Bi),opacityDisabled:i.FtCssVariable.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Mi=i.FtCssVariable.extend("--ft-button-primary-color",i.FtCssVariable.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Ai={backgroundColor:i.FtCssVariable.extend("--ft-button-primary-background-color",i.FtCssVariable.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Mi,rippleColor:i.FtCssVariable.extend("--ft-button-primary-ripple-color",Mi)},Ri=i.FtCssVariable.extend("--ft-button-dense-border-radius",i.FtCssVariable.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM));class Ui extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[i.noTextSelect,e.css`
383
383
  :host {
384
384
  display: inline-block;
385
385
  max-width: 100%;
@@ -418,18 +418,18 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
418
418
  border: none;
419
419
  pointer-events: auto;
420
420
 
421
- --ft-button-internal-font-size: ${_i.fontSize};
421
+ --ft-button-internal-font-size: ${Fi.fontSize};
422
422
  --ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
423
- --ft-button-internal-color: ${_i.color};
424
- ${i.setVariable(Ti.size,_i.iconSize)};
423
+ --ft-button-internal-color: ${Fi.color};
424
+ ${i.setVariable(Ni.size,Fi.iconSize)};
425
425
  --ft-button-internal-vertical-padding: 6px;
426
426
  --ft-button-internal-horizontal-padding: 8px;
427
- ${i.setVariable(a.color,_i.rippleColor)};
428
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${_i.iconSize});
427
+ ${i.setVariable(a.color,Fi.rippleColor)};
428
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Fi.iconSize});
429
429
 
430
- border-radius: ${_i.borderRadius};
430
+ border-radius: ${Fi.borderRadius};
431
431
  padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
432
- background-color: ${_i.backgroundColor};
432
+ background-color: ${Fi.backgroundColor};
433
433
  color: var(--ft-button-internal-color);
434
434
  -webkit-mask-image: radial-gradient(white, black);
435
435
  }
@@ -441,7 +441,7 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
441
441
  .ft-button--dense {
442
442
  --ft-button-internal-vertical-padding: 2px;
443
443
  --ft-button-internal-horizontal-padding: 4px;
444
- border-radius: ${Ai};
444
+ border-radius: ${Ri};
445
445
  }
446
446
 
447
447
  .ft-button--round {
@@ -450,13 +450,13 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
450
450
 
451
451
  .ft-button[disabled] {
452
452
  filter: grayscale(1);
453
- opacity: ${_i.opacityDisabled};
453
+ opacity: ${Fi.opacityDisabled};
454
454
  }
455
455
 
456
456
  .ft-button.ft-button--primary {
457
- background-color: ${Fi.backgroundColor};
458
- --ft-button-internal-color: ${Fi.color};
459
- ${i.setVariable(a.color,Fi.rippleColor)};
457
+ background-color: ${Ai.backgroundColor};
458
+ --ft-button-internal-color: ${Ai.color};
459
+ ${i.setVariable(a.color,Ai.rippleColor)};
460
460
  }
461
461
 
462
462
  .ft-button.ft-button--outlined {
@@ -475,8 +475,8 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
475
475
  text-overflow: ellipsis;
476
476
  display: block;
477
477
  margin: 0 var(--ft-button-internal-horizontal-padding);
478
- ${i.setVariable(si.fontSize,"var(--ft-button-internal-font-size)")};
479
- ${i.setVariable(si.lineHeight,"var(--ft-button-internal-content-height)")};
478
+ ${i.setVariable(ri.fontSize,"var(--ft-button-internal-font-size)")};
479
+ ${i.setVariable(ri.lineHeight,"var(--ft-button-internal-content-height)")};
480
480
  }
481
481
 
482
482
  .ft-button--safari-fix .ft-button--label {
@@ -509,8 +509,8 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
509
509
  }
510
510
 
511
511
  ft-loader {
512
- ${i.setVariable(ki.size,_i.iconSize)};
513
- ${i.setVariable(ki.color,"var(--ft-button-internal-color)")};
512
+ ${i.setVariable(Si.size,Fi.iconSize)};
513
+ ${i.setVariable(Si.color,"var(--ft-button-internal-color)")};
514
514
  }
515
515
  `]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":i.isSafari,"ft-no-text-select":!0};return this.addTooltip(e.html`
516
516
  <button part="button"
@@ -534,7 +534,7 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
534
534
  </ft-tooltip>
535
535
  `}resolveIcon(){return this.loading?e.html`
536
536
  <ft-loader></ft-loader> `:this.icon?e.html`
537
- <ft-icon variant="material">${this.icon}</ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Mi.elementDefinitions={"ft-ripple":x,"ft-tooltip":wi,"ft-typography":xi,"ft-icon":Ei,"ft-loader":zi},Ni([o.property({type:Boolean})],Mi.prototype,"primary",void 0),Ni([o.property({type:Boolean})],Mi.prototype,"outlined",void 0),Ni([o.property({type:Boolean})],Mi.prototype,"disabled",void 0),Ni([o.property({type:Boolean})],Mi.prototype,"dense",void 0),Ni([o.property({type:Boolean})],Mi.prototype,"round",void 0),Ni([o.property({type:String})],Mi.prototype,"label",void 0),Ni([o.property({type:String})],Mi.prototype,"icon",void 0),Ni([o.property({type:Boolean})],Mi.prototype,"trailingIcon",void 0),Ni([o.property({type:Boolean})],Mi.prototype,"loading",void 0),Ni([o.property({type:String})],Mi.prototype,"tooltipPosition",void 0),Ni([o.query(".ft-button")],Mi.prototype,"button",void 0),Ni([o.query(".ft-button--label slot")],Mi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Mi);var Ri=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const Ui={buttonsColor:i.FtCssVariable.extend("--ft-snap-scroll-buttons-color",i.designSystemVariables.colorPrimary),buttonsZIndex:i.FtCssVariable.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:i.FtCssVariable.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:i.FtCssVariable.external(i.designSystemVariables.colorSurface,"Design system")};class Zi extends CustomEvent{constructor(t,i){super("current-element-change",{detail:{index:t,element:i}})}}class Di extends i.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new i.Debouncer(200),this.updateScrollDebouncer=new i.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let i=this.elements[t];if(i){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,e=this.contentSlot[this.scrollAttribute]+this.prevSize;(i[this.offsetAttribute]<e||i[this.offsetAttribute]+i[this.sizeAttribute]>t)&&this.scrollToElement(i)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=s.classMap({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":i.isSafari}),o=this.controls&&this.withScroll;return e.html`
537
+ <ft-icon variant="material">${this.icon}</ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}Ui.elementDefinitions={"ft-ripple":x,"ft-tooltip":zi,"ft-typography":bi,"ft-icon":Ii,"ft-loader":Ci},_i([o.property({type:Boolean})],Ui.prototype,"primary",void 0),_i([o.property({type:Boolean})],Ui.prototype,"outlined",void 0),_i([o.property({type:Boolean})],Ui.prototype,"disabled",void 0),_i([o.property({type:Boolean})],Ui.prototype,"dense",void 0),_i([o.property({type:Boolean})],Ui.prototype,"round",void 0),_i([o.property({type:String})],Ui.prototype,"label",void 0),_i([o.property({type:String})],Ui.prototype,"icon",void 0),_i([o.property({type:Boolean})],Ui.prototype,"trailingIcon",void 0),_i([o.property({type:Boolean})],Ui.prototype,"loading",void 0),_i([o.property({type:String})],Ui.prototype,"tooltipPosition",void 0),_i([o.query(".ft-button")],Ui.prototype,"button",void 0),_i([o.query(".ft-button--label slot")],Ui.prototype,"slottedContent",void 0),i.customElement("ft-button")(Ui);var Zi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const Di={buttonsColor:i.FtCssVariable.extend("--ft-snap-scroll-buttons-color",i.designSystemVariables.colorPrimary),buttonsZIndex:i.FtCssVariable.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:i.FtCssVariable.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:i.FtCssVariable.external(i.designSystemVariables.colorSurface,"Design system")};class Hi extends CustomEvent{constructor(t,i){super("current-element-change",{detail:{index:t,element:i}})}}class Wi extends i.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new i.Debouncer(200),this.updateScrollDebouncer=new i.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let i=this.elements[t];if(i){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,e=this.contentSlot[this.scrollAttribute]+this.prevSize;(i[this.offsetAttribute]<e||i[this.offsetAttribute]+i[this.sizeAttribute]>t)&&this.scrollToElement(i)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=s.classMap({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":i.isSafari}),o=this.controls&&this.withScroll;return e.html`
538
538
  <div part="container" class="${t}">
539
539
  <ft-button
540
540
  class="ft-snap-scroll--previous"
@@ -558,7 +558,7 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
558
558
  @click=${this.next}
559
559
  ></ft-button>
560
560
  </div>
561
- `}updated(t){var i;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(i=this.listenedContainer)||void 0===i||i.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Zi(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const i=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<i&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var i,e;t&&(this.horizontal?null===(i=this.contentSlot)||void 0===i||i.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(e=this.contentSlot)||void 0===e||e.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,i;this.elements=null!==(i=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==i?i:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let i=0;i<this.elements.length;i++)(t<0||this.getDistanceFromStart(this.elements[i])<this.getDistanceFromStart(this.elements[t]))&&(t=i);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const i=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-i)}}Di.elementDefinitions={"ft-button":Mi},Di.styles=e.css`
561
+ `}updated(t){var i;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(i=this.listenedContainer)||void 0===i||i.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Hi(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const i=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<i&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var i,e;t&&(this.horizontal?null===(i=this.contentSlot)||void 0===i||i.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(e=this.contentSlot)||void 0===e||e.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,i;this.elements=null!==(i=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==i?i:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let i=0;i<this.elements.length;i++)(t<0||this.getDistanceFromStart(this.elements[i])<this.getDistanceFromStart(this.elements[t]))&&(t=i);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const i=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-i)}}Wi.elementDefinitions={"ft-button":Ui},Wi.styles=e.css`
562
562
  .ft-snap-scroll {
563
563
  box-sizing: border-box;
564
564
  position: relative;
@@ -593,7 +593,7 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
593
593
  flex-wrap: nowrap;
594
594
  align-items: flex-start;
595
595
  justify-content: flex-start;
596
- gap: ${Ui.gap};
596
+ gap: ${Di.gap};
597
597
  }
598
598
 
599
599
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -636,11 +636,11 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
636
636
  .ft-snap-scroll--next {
637
637
  position: absolute;
638
638
  display: flex;
639
- z-index: ${Ui.buttonsZIndex};
639
+ z-index: ${Di.buttonsZIndex};
640
640
  opacity: 1;
641
641
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
642
- ${i.setVariable(_i.backgroundColor,"transparent")};
643
- ${i.setVariable(_i.color,Ui.buttonsColor)};
642
+ ${i.setVariable(Fi.backgroundColor,"transparent")};
643
+ ${i.setVariable(Fi.color,Di.buttonsColor)};
644
644
  }
645
645
 
646
646
  .ft-snap-scroll--previous[hidden],
@@ -653,34 +653,34 @@ const X=t=>({_$litStatic$:t}),Y=new Map,J=(t=>(i,...e)=>{var o;const s=e.length;
653
653
  top: 0;
654
654
  left: -1px;
655
655
  bottom: 0;
656
- background: linear-gradient(to right, ${Ui.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
656
+ background: linear-gradient(to right, ${Di.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
657
657
  }
658
658
 
659
659
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
660
660
  top: -1px;
661
661
  left: 0;
662
662
  right: 0;
663
- background: linear-gradient(to bottom, ${Ui.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
663
+ background: linear-gradient(to bottom, ${Di.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
664
664
  }
665
665
 
666
666
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
667
667
  top: 0;
668
668
  right: -1px;
669
669
  bottom: 0;
670
- background: linear-gradient(to left, ${Ui.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
670
+ background: linear-gradient(to left, ${Di.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
671
671
  }
672
672
 
673
673
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
674
674
  left: 0;
675
675
  right: 0;
676
676
  bottom: -1px;
677
- background: linear-gradient(to top, ${Ui.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
677
+ background: linear-gradient(to top, ${Di.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
678
678
  }
679
679
 
680
680
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
681
681
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
682
682
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
683
683
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
684
- background-color: ${Ui.colorSurface};
684
+ background-color: ${Di.colorSurface};
685
685
  }
686
- `,Ri([o.property({type:Boolean})],Di.prototype,"horizontal",void 0),Ri([o.property({type:Boolean})],Di.prototype,"hideScrollbar",void 0),Ri([o.property({type:Boolean})],Di.prototype,"controls",void 0),Ri([o.property({type:Boolean})],Di.prototype,"limitSize",void 0),Ri([o.state()],Di.prototype,"elements",void 0),Ri([o.state()],Di.prototype,"currentElement",void 0),Ri([o.state()],Di.prototype,"withScroll",void 0),Ri([o.state()],Di.prototype,"startReached",void 0),Ri([o.state()],Di.prototype,"endReached",void 0),Ri([o.query(".ft-snap-scroll--content")],Di.prototype,"contentSlot",void 0),i.customElement("ft-snap-scroll")(Di),t.CurrentElementChange=Zi,t.FtSnapScroll=Di,t.FtSnapScrollCssVariables=Ui,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
686
+ `,Zi([o.property({type:Boolean})],Wi.prototype,"horizontal",void 0),Zi([o.property({type:Boolean})],Wi.prototype,"hideScrollbar",void 0),Zi([o.property({type:Boolean})],Wi.prototype,"controls",void 0),Zi([o.property({type:Boolean})],Wi.prototype,"limitSize",void 0),Zi([o.state()],Wi.prototype,"elements",void 0),Zi([o.state()],Wi.prototype,"currentElement",void 0),Zi([o.state()],Wi.prototype,"withScroll",void 0),Zi([o.state()],Wi.prototype,"startReached",void 0),Zi([o.state()],Wi.prototype,"endReached",void 0),Zi([o.query(".ft-snap-scroll--content")],Wi.prototype,"contentSlot",void 0),i.customElement("ft-snap-scroll")(Wi),t.CurrentElementChange=Hi,t.FtSnapScroll=Wi,t.FtSnapScrollCssVariables=Di,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);