@fluid-topics/ft-tabs 1.0.0-alpha.1 → 1.0.1

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.
@@ -5,7 +5,7 @@
5
5
  }
6
6
  </style>
7
7
  <slot></slot>
8
- `}updated(t){super.updated(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control",this.dispatchEvent(new Event("updated"))}}a.elementDefinitions={},l([o.property({type:String})],a.prototype,"label",void 0),l([o.property({type:String})],a.prototype,"icon",void 0),l([o.property()],a.prototype,"iconVariant",void 0),l([o.property({type:Boolean})],a.prototype,"active",void 0),l([o.property({type:Boolean})],a.prototype,"disabled",void 0),l([o.property({reflect:!0})],a.prototype,"id",void 0),l([o.property()],a.prototype,"color",void 0),l([o.property()],a.prototype,"rippleColor",void 0),l([o.property({reflect:!0,attribute:"aria-labelledby"})],a.prototype,"ariaLabelledBy",void 0);const p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),h=p,f=i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),c=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),d=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),u=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),x=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),y=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),g=y,b=i.FtCssVariableFactory.extend("--ft-ripple-background-color",y),v=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),m=v,$=i.FtCssVariableFactory.extend("--ft-ripple-background-color",v),w=e.css`
8
+ `}updated(t){super.updated(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control",this.dispatchEvent(new Event("updated"))}}a.elementDefinitions={},l([o.property({type:String})],a.prototype,"label",void 0),l([o.property({type:String})],a.prototype,"icon",void 0),l([o.property()],a.prototype,"iconVariant",void 0),l([o.property({type:Boolean})],a.prototype,"active",void 0),l([o.property({type:Boolean})],a.prototype,"disabled",void 0),l([o.property({reflect:!0})],a.prototype,"id",void 0),l([o.property()],a.prototype,"color",void 0),l([o.property()],a.prototype,"rippleColor",void 0),l([o.property({reflect:!0,attribute:"aria-labelledby"})],a.prototype,"ariaLabelledBy",void 0);const p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),h=p,f=i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),c=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),d=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),u=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),x=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),y=i.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px"),g=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),b=g,v=i.FtCssVariableFactory.extend("--ft-ripple-background-color",g),m=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),$=m,w=i.FtCssVariableFactory.extend("--ft-ripple-background-color",m),k=e.css`
9
9
  :host {
10
10
  display: contents;
11
11
  }
@@ -18,6 +18,7 @@
18
18
 
19
19
  .ft-ripple:not(.ft-ripple--unbounded) {
20
20
  overflow: hidden;
21
+ border-radius: ${y};
21
22
  }
22
23
 
23
24
  .ft-ripple .ft-ripple--background,
@@ -35,19 +36,19 @@
35
36
  }
36
37
 
37
38
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
38
- background-color: ${$};
39
+ background-color: ${w};
39
40
  }
40
41
 
41
42
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
42
- background-color: ${m};
43
+ background-color: ${$};
43
44
  }
44
45
 
45
46
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
46
- background-color: ${b};
47
+ background-color: ${v};
47
48
  }
48
49
 
49
50
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
50
- background-color: ${g};
51
+ background-color: ${b};
51
52
  }
52
53
 
53
54
  .ft-ripple .ft-ripple--background {
@@ -94,7 +95,7 @@
94
95
  opacity: ${c};
95
96
  transform: translate(-50%, -50%) scale(1);
96
97
  }
97
- `;var k,z=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};class j 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:s}=this.getCoordinates(t),n=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-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.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`
98
+ `;var z,j=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};class N 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:s}=this.getCoordinates(t),n=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-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.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`
98
99
  <style>
99
100
  .ft-ripple .ft-ripple--effect,
100
101
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -111,115 +112,115 @@
111
112
  <div class="ft-ripple--background"></div>
112
113
  <div class="ft-ripple--effect"></div>
113
114
  </div>
114
- `}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"),s=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",s),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",s),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,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}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()}}j.elementDefinitions={},j.styles=w,z([o.property({type:Boolean})],j.prototype,"primary",void 0),z([o.property({type:Boolean})],j.prototype,"secondary",void 0),z([o.property({type:Boolean})],j.prototype,"unbounded",void 0),z([o.property({type:Boolean})],j.prototype,"activated",void 0),z([o.property({type:Boolean})],j.prototype,"selected",void 0),z([o.property({type:Boolean})],j.prototype,"disabled",void 0),z([o.state()],j.prototype,"hovered",void 0),z([o.state()],j.prototype,"focused",void 0),z([o.state()],j.prototype,"pressed",void 0),z([o.state()],j.prototype,"rippling",void 0),z([o.state()],j.prototype,"rippleSize",void 0),z([o.state()],j.prototype,"originX",void 0),z([o.state()],j.prototype,"originY",void 0),z([o.query(".ft-ripple")],j.prototype,"ripple",void 0),z([o.query(".ft-ripple--effect")],j.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(j);const N=window,O=N.trustedTypes,S=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",I=`lit$${(Math.random()+"").slice(9)}$`,A="?"+I,T=`<${A}>`,E=document,_=()=>E.createComment(""),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,U="[ \t\n\f\r]",R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,F=/>/g,W=RegExp(`>|${U}(?:([^\\s"'>=/]+)(${U}*=${U}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Z=/'/g,G=/"/g,K=/^(?:script|style|textarea|title)$/i,L=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),H=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),P=new WeakMap,V=E.createTreeWalker(E,129,null,!1),X=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=R;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===R?"!--"===a[1]?r=D:void 0!==a[1]?r=F:void 0!==a[2]?(K.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=W):void 0!==a[3]&&(r=W):r===W?">"===a[0]?(r=null!=s?s:R,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]?G:Z):r===G||r===Z?r=W:r===D||r===F?r=R:(r=W,s=void 0);const f=r===W&&t[i+1].startsWith("/>")?" ":"";n+=r===R?e+T:p>=0?(o.push(l),e.slice(0,p)+C+e.slice(p)+I+f):e+I+(-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!==S?S.createHTML(l):l,o]};class Y{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]=X(t,i);if(this.el=Y.createElement(a,e),V.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=V.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(C)||i.startsWith(I)){const e=p[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+C).split(I),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?et:"?"===i[1]?st:"@"===i[1]?nt:it})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(K.test(o.tagName)){const t=o.textContent.split(I),i=t.length-1;if(i>0){o.textContent=O?O.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],_()),V.nextNode(),l.push({type:2,index:++s});o.append(t[i],_())}}}else if(8===o.nodeType)if(o.data===A)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(I,t+1));)l.push({type:7,index:s}),t+=I.length-1}s++}}static createElement(t,i){const e=E.createElement("template");return e.innerHTML=t,e}}function J(t,i,e=t,o){var s,n,r,l;if(i===H)return i;let a=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const p=B(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)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=J(t,a._$AS(t,i.values),a,o)),i}class Q{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,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:E).importNode(e,!0);V.currentNode=s;let n=V.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new tt(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new rt(n,this,t)),this._$AV.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=V.nextNode(),r++)}return s}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 tt{constructor(t,i,e,o){var s;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=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._$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=J(this,t,i),B(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==H&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>M(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!==q&&B(this._$AH)?this._$AA.nextSibling.data=t:this.$(E.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Y.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.v(e);else{const t=new Q(s,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=P.get(t.strings);return void 0===i&&P.set(t.strings,i=new Y(t)),i}T(t){M(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 tt(this.k(_()),this.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._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class it{constructor(t,i,e,o,s){this.type=1,this._$AH=q,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=q}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=J(this,t,i,0),n=!B(t)||t!==this._$AH&&t!==H,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=J(this,o[e+r],i,r),l===H&&(l=this._$AH[r]),n||(n=!B(l)||l!==this._$AH[r]),l===q?t=q:t!==q&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class et extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const ot=O?O.emptyScript:"";class st extends it{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,ot):this.element.removeAttribute(this.name)}}class nt extends it{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=J(this,t,i,0))&&void 0!==e?e:q)===H)return;const o=this._$AH,s=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==q&&(o===q||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 rt{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){J(this,t)}}const lt=N.litHtmlPolyfillSupport;null==lt||lt(Y,tt),(null!==(k=N.litHtmlVersions)&&void 0!==k?k:N.litHtmlVersions=[]).push("2.7.3");
115
+ `}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"),s=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",s),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",s),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,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}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()}}N.elementDefinitions={},N.styles=k,j([o.property({type:Boolean})],N.prototype,"primary",void 0),j([o.property({type:Boolean})],N.prototype,"secondary",void 0),j([o.property({type:Boolean})],N.prototype,"unbounded",void 0),j([o.property({type:Boolean})],N.prototype,"activated",void 0),j([o.property({type:Boolean})],N.prototype,"selected",void 0),j([o.property({type:Boolean})],N.prototype,"disabled",void 0),j([o.state()],N.prototype,"hovered",void 0),j([o.state()],N.prototype,"focused",void 0),j([o.state()],N.prototype,"pressed",void 0),j([o.state()],N.prototype,"rippling",void 0),j([o.state()],N.prototype,"rippleSize",void 0),j([o.state()],N.prototype,"originX",void 0),j([o.state()],N.prototype,"originY",void 0),j([o.query(".ft-ripple")],N.prototype,"ripple",void 0),j([o.query(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(N);const O=window,S=O.trustedTypes,I=S?S.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",A=`lit$${(Math.random()+"").slice(9)}$`,E="?"+A,T=`<${E}>`,_=document,B=()=>_.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,R="[ \t\n\f\r]",D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,W=/>/g,Z=RegExp(`>|${R}(?:([^\\s"'>=/]+)(${R}*=${R}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,K=/"/g,L=/^(?:script|style|textarea|title)$/i,H=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),q=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),V=new WeakMap,X=_.createTreeWalker(_,129,null,!1),Y=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=D;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===D?"!--"===a[1]?r=F:void 0!==a[1]?r=W:void 0!==a[2]?(L.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=Z):void 0!==a[3]&&(r=Z):r===Z?">"===a[0]?(r=null!=s?s:D,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?Z:'"'===a[3]?K:G):r===K||r===G?r=Z:r===F||r===W?r=D:(r=Z,s=void 0);const f=r===Z&&t[i+1].startsWith("/>")?" ":"";n+=r===D?e+T:p>=0?(o.push(l),e.slice(0,p)+C+e.slice(p)+A+f):e+A+(-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!==I?I.createHTML(l):l,o]};class J{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]=Y(t,i);if(this.el=J.createElement(a,e),X.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=X.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(C)||i.startsWith(A)){const e=p[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+C).split(A),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?ot:"?"===i[1]?nt:"@"===i[1]?rt:et})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(L.test(o.tagName)){const t=o.textContent.split(A),i=t.length-1;if(i>0){o.textContent=S?S.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],B()),X.nextNode(),l.push({type:2,index:++s});o.append(t[i],B())}}}else if(8===o.nodeType)if(o.data===E)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(A,t+1));)l.push({type:7,index:s}),t+=A.length-1}s++}}static createElement(t,i){const e=_.createElement("template");return e.innerHTML=t,e}}function Q(t,i,e=t,o){var s,n,r,l;if(i===q)return i;let a=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const p=M(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)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=Q(t,a._$AS(t,i.values),a,o)),i}class tt{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,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:_).importNode(e,!0);X.currentNode=s;let n=X.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new it(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new lt(n,this,t)),this._$AV.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=X.nextNode(),r++)}return s}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 it{constructor(t,i,e,o){var s;this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=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._$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=Q(this,t,i),M(t)?t===P||null==t||""===t?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==q&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>U(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!==P&&M(this._$AH)?this._$AA.nextSibling.data=t:this.$(_.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,s="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)===s)this._$AH.v(e);else{const t=new tt(s,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=V.get(t.strings);return void 0===i&&V.set(t.strings,i=new J(t)),i}T(t){U(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 it(this.k(B()),this.k(B()),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._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class et{constructor(t,i,e,o,s){this.type=1,this._$AH=P,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=P}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=Q(this,t,i,0),n=!M(t)||t!==this._$AH&&t!==q,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=Q(this,o[e+r],i,r),l===q&&(l=this._$AH[r]),n||(n=!M(l)||l!==this._$AH[r]),l===P?t=P:t!==P&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}}const st=S?S.emptyScript:"";class nt extends et{constructor(){super(...arguments),this.type=4}j(t){t&&t!==P?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class rt extends et{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=Q(this,t,i,0))&&void 0!==e?e:P)===q)return;const o=this._$AH,s=t===P&&o!==P||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==P&&(o===P||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 lt{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){Q(this,t)}}const at=O.litHtmlPolyfillSupport;null==at||at(J,it),(null!==(z=O.litHtmlVersions)&&void 0!==z?z:O.litHtmlVersions=[]).push("2.7.3");
115
116
  /**
116
117
  * @license
117
118
  * Copyright 2020 Google LLC
118
119
  * SPDX-License-Identifier: BSD-3-Clause
119
120
  */
120
- const at=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===at)return null==t?void 0:t._$litStatic$},ht=t=>({_$litStatic$:t,r:at}),ft=new Map,ct=(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=pt(n));)a+=s+i[++p],h=!0;p!==o&&l.push(n),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=ft.get(t))&&(r.raw=r,ft.set(t,i=r)),e=l}return t(i,...e)})(L);var dt;!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"}(dt||(dt={}));const ut=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),xt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),yt={fontFamily:xt,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")},gt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",ut),bt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",yt.fontSize,"20px"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",yt.fontWeight,"normal"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",yt.letterSpacing,"0.15px"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",yt.lineHeight,"1.2"),wt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",yt.textTransform,"inherit"),kt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",ut),zt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",yt.fontSize,"14px"),jt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",yt.fontWeight,"normal"),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",yt.letterSpacing,"0.105px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",yt.lineHeight,"1.7"),St=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",yt.textTransform,"inherit"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",xt),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",yt.fontSize,"16px"),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",yt.fontWeight,"600"),Tt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",yt.letterSpacing,"0.144px"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",yt.lineHeight,"1.5"),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",yt.textTransform,"inherit"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",xt),Mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",yt.fontSize,"14px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",yt.fontWeight,"normal"),Rt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",yt.letterSpacing,"0.098px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",yt.lineHeight,"1.7"),Ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",yt.textTransform,"inherit"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",xt),Zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",yt.fontSize,"16px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",yt.fontWeight,"normal"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",yt.letterSpacing,"0.496px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",yt.lineHeight,"1.5"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",yt.textTransform,"inherit"),qt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",xt),Pt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",yt.fontSize,"14px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",yt.fontWeight,"normal"),Xt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",yt.letterSpacing,"0.252px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",yt.lineHeight,"1.4"),Jt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",yt.textTransform,"inherit"),Qt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",xt),ti=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",yt.fontSize,"12px"),ii=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",yt.fontWeight,"normal"),ei=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",yt.letterSpacing,"0.396px"),oi=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",yt.lineHeight,"1.33"),si=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",yt.textTransform,"inherit"),ni=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",xt),ri=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",yt.fontSize,"10px"),li=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",yt.fontWeight,"normal"),ai=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",yt.letterSpacing,"0.33px"),pi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",yt.lineHeight,"1.6"),hi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",yt.textTransform,"inherit"),fi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",xt),ci=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",yt.fontSize,"10px"),di=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",yt.fontWeight,"normal"),ui=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",yt.letterSpacing,"1.5px"),xi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",yt.lineHeight,"1.6"),yi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",yt.textTransform,"uppercase"),gi=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",xt),bi=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",yt.fontSize,"14px"),vi=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",yt.fontWeight,"600"),mi=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",yt.letterSpacing,"1.246px"),$i=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",yt.lineHeight,"1.15"),wi=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",yt.textTransform,"uppercase"),ki=e.css`
121
+ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void 0:t._$litStatic$},ft=t=>({_$litStatic$:t,r:pt}),ct=new Map,dt=(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=ht(n));)a+=s+i[++p],h=!0;p!==o&&l.push(n),r.push(a),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=ct.get(t))&&(r.raw=r,ct.set(t,i=r)),e=l}return t(i,...e)})(H);var ut;!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"}(ut||(ut={}));const xt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),yt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),gt={fontFamily:yt,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")},bt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",xt),vt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",gt.fontSize,"20px"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",gt.fontWeight,"normal"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",gt.letterSpacing,"0.15px"),wt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",gt.lineHeight,"1.2"),kt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",gt.textTransform,"inherit"),zt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",xt),jt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",gt.fontSize,"14px"),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",gt.fontWeight,"normal"),Ot=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",gt.letterSpacing,"0.105px"),St=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",gt.lineHeight,"1.7"),It=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",gt.textTransform,"inherit"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",yt),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",gt.fontSize,"16px"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",gt.fontWeight,"600"),Tt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",gt.letterSpacing,"0.144px"),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",gt.lineHeight,"1.5"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",gt.textTransform,"inherit"),Mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",yt),Ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",gt.fontSize,"14px"),Rt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",gt.fontWeight,"normal"),Dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",gt.letterSpacing,"0.098px"),Ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",gt.lineHeight,"1.7"),Wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",gt.textTransform,"inherit"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",yt),Gt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",gt.fontSize,"16px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",gt.fontWeight,"normal"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",gt.letterSpacing,"0.496px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",gt.lineHeight,"1.5"),qt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",gt.textTransform,"inherit"),Pt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",yt),Vt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",gt.fontSize,"14px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",gt.fontWeight,"normal"),Yt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",gt.letterSpacing,"0.252px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",gt.lineHeight,"1.4"),Qt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",gt.textTransform,"inherit"),ti=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",yt),ii=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",gt.fontSize,"12px"),ei=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",gt.fontWeight,"normal"),oi=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",gt.letterSpacing,"0.396px"),si=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",gt.lineHeight,"1.33"),ni=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",gt.textTransform,"inherit"),ri=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",yt),li=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",gt.fontSize,"10px"),ai=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",gt.fontWeight,"normal"),pi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",gt.letterSpacing,"0.33px"),hi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",gt.lineHeight,"1.6"),fi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",gt.textTransform,"inherit"),ci=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",yt),di=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",gt.fontSize,"10px"),ui=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",gt.fontWeight,"normal"),xi=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",gt.letterSpacing,"1.5px"),yi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",gt.lineHeight,"1.6"),gi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",gt.textTransform,"uppercase"),bi=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",yt),vi=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",gt.fontSize,"14px"),mi=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",gt.fontWeight,"600"),$i=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",gt.letterSpacing,"1.246px"),wi=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",gt.lineHeight,"1.15"),ki=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",gt.textTransform,"uppercase"),zi=e.css`
121
122
  .ft-typography--title {
122
- font-family: ${gt};
123
- font-size: ${bt};
124
- font-weight: ${vt};
125
- letter-spacing: ${mt};
126
- line-height: ${$t};
127
- text-transform: ${wt};
128
- }
129
- `,zi=e.css`
130
- .ft-typography--title-dense {
131
- font-family: ${kt};
132
- font-size: ${zt};
133
- font-weight: ${jt};
134
- letter-spacing: ${Nt};
135
- line-height: ${Ot};
136
- text-transform: ${St};
123
+ font-family: ${bt};
124
+ font-size: ${vt};
125
+ font-weight: ${mt};
126
+ letter-spacing: ${$t};
127
+ line-height: ${wt};
128
+ text-transform: ${kt};
137
129
  }
138
130
  `,ji=e.css`
131
+ .ft-typography--title-dense {
132
+ font-family: ${zt};
133
+ font-size: ${jt};
134
+ font-weight: ${Nt};
135
+ letter-spacing: ${Ot};
136
+ line-height: ${St};
137
+ text-transform: ${It};
138
+ }
139
+ `,Ni=e.css`
139
140
  .ft-typography--subtitle1 {
140
141
  font-family: ${Ct};
141
- font-size: ${It};
142
- font-weight: ${At};
142
+ font-size: ${At};
143
+ font-weight: ${Et};
143
144
  letter-spacing: ${Tt};
144
- line-height: ${Et};
145
- text-transform: ${_t};
145
+ line-height: ${_t};
146
+ text-transform: ${Bt};
146
147
  }
147
- `,Ni=e.css`
148
+ `,Oi=e.css`
148
149
  .ft-typography--subtitle2 {
149
- font-family: ${Bt};
150
- font-size: ${Mt};
151
- font-weight: ${Ut};
152
- letter-spacing: ${Rt};
153
- line-height: ${Dt};
154
- text-transform: ${Ft};
150
+ font-family: ${Mt};
151
+ font-size: ${Ut};
152
+ font-weight: ${Rt};
153
+ letter-spacing: ${Dt};
154
+ line-height: ${Ft};
155
+ text-transform: ${Wt};
155
156
  }
156
157
 
157
- `,Oi=e.css`
158
+ `,Si=e.css`
158
159
  .ft-typography--body1 {
159
- font-family: ${Wt};
160
- font-size: ${Zt};
161
- font-weight: ${Gt};
162
- letter-spacing: ${Kt};
163
- line-height: ${Lt};
164
- text-transform: ${Ht};
160
+ font-family: ${Zt};
161
+ font-size: ${Gt};
162
+ font-weight: ${Kt};
163
+ letter-spacing: ${Lt};
164
+ line-height: ${Ht};
165
+ text-transform: ${qt};
165
166
  }
166
- `,Si=e.css`
167
+ `,Ii=e.css`
167
168
  .ft-typography--body2 {
168
- font-family: ${qt};
169
- font-size: ${Pt};
170
- font-weight: ${Vt};
171
- letter-spacing: ${Xt};
172
- line-height: ${Yt};
173
- text-transform: ${Jt};
169
+ font-family: ${Pt};
170
+ font-size: ${Vt};
171
+ font-weight: ${Xt};
172
+ letter-spacing: ${Yt};
173
+ line-height: ${Jt};
174
+ text-transform: ${Qt};
174
175
  }
175
176
  `,Ci=e.css`
176
177
  .ft-typography--caption {
177
- font-family: ${Qt};
178
- font-size: ${ti};
179
- font-weight: ${ii};
180
- letter-spacing: ${ei};
181
- line-height: ${oi};
182
- text-transform: ${si};
178
+ font-family: ${ti};
179
+ font-size: ${ii};
180
+ font-weight: ${ei};
181
+ letter-spacing: ${oi};
182
+ line-height: ${si};
183
+ text-transform: ${ni};
183
184
  }
184
- `,Ii=e.css`
185
+ `,Ai=e.css`
185
186
  .ft-typography--breadcrumb {
186
- font-family: ${ni};
187
- font-size: ${ri};
188
- font-weight: ${li};
189
- letter-spacing: ${ai};
190
- line-height: ${pi};
191
- text-transform: ${hi};
187
+ font-family: ${ri};
188
+ font-size: ${li};
189
+ font-weight: ${ai};
190
+ letter-spacing: ${pi};
191
+ line-height: ${hi};
192
+ text-transform: ${fi};
192
193
  }
193
- `,Ai=e.css`
194
+ `,Ei=e.css`
194
195
  .ft-typography--overline {
195
- font-family: ${fi};
196
- font-size: ${ci};
197
- font-weight: ${di};
198
- letter-spacing: ${ui};
199
- line-height: ${xi};
200
- text-transform: ${yi};
196
+ font-family: ${ci};
197
+ font-size: ${di};
198
+ font-weight: ${ui};
199
+ letter-spacing: ${xi};
200
+ line-height: ${yi};
201
+ text-transform: ${gi};
201
202
  }
202
203
  `,Ti=e.css`
203
204
  .ft-typography--button {
204
- font-family: ${gi};
205
- font-size: ${bi};
206
- font-weight: ${vi};
207
- letter-spacing: ${mi};
208
- line-height: ${$i};
209
- text-transform: ${wi};
210
- }
211
- `,Ei=e.css`
205
+ font-family: ${bi};
206
+ font-size: ${vi};
207
+ font-weight: ${mi};
208
+ letter-spacing: ${$i};
209
+ line-height: ${wi};
210
+ text-transform: ${ki};
211
+ }
212
+ `,_i=e.css`
212
213
  .ft-typography {
213
214
  vertical-align: inherit;
214
215
  }
215
- `;var _i,Bi,Mi=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};class Ui extends i.FtLitElement{constructor(){super(...arguments),this.variant=dt.body1}render(){return this.element?ct`
216
- <${ht(this.element)}
216
+ `;var Bi,Mi,Ui=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};class Ri extends i.FtLitElement{constructor(){super(...arguments),this.variant=ut.body1}render(){return this.element?dt`
217
+ <${ft(this.element)}
217
218
  class="ft-typography ft-typography--${this.variant}">
218
219
  <slot></slot>
219
- </${ht(this.element)}>
220
- `:ct`
220
+ </${ft(this.element)}>
221
+ `:dt`
221
222
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
222
- `}}Ui.styles=[ki,zi,ji,Ni,Oi,Si,Ci,Ii,Ai,Ti,Ei],Mi([o.property()],Ui.prototype,"element",void 0),Mi([o.property()],Ui.prototype,"variant",void 0),i.customElement("ft-typography")(Ui),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;"}(_i||(_i={})),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;"}(Bi||(Bi={})),new Map([...["abw"].map((t=>[t,Bi.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,Bi.AUDIO])),...["avi"].map((t=>[t,Bi.AVI])),...["chm","xhs"].map((t=>[t,Bi.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,Bi.CODE])),...["csv"].map((t=>[t,Bi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Bi.DITA])),...["epub"].map((t=>[t,Bi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Bi.EXCEL])),...["flac"].map((t=>[t,Bi.FLAC])),...["gif"].map((t=>[t,Bi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Bi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Bi.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,Bi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Bi.JPEG])),...["json"].map((t=>[t,Bi.JSON])),...["m4a","m4p"].map((t=>[t,Bi.M4A])),...["mov","qt"].map((t=>[t,Bi.MOV])),...["mp3"].map((t=>[t,Bi.MP3])),...["mp4","m4v"].map((t=>[t,Bi.MP4])),...["ogg","oga"].map((t=>[t,Bi.OGG])),...["pdf","ps"].map((t=>[t,Bi.PDF])),...["png"].map((t=>[t,Bi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Bi.POWERPOINT])),...["rar"].map((t=>[t,Bi.RAR])),...["stp"].map((t=>[t,Bi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Bi.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,Bi.VIDEO])),...["wav"].map((t=>[t,Bi.WAV])),...["wma"].map((t=>[t,Bi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Bi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Bi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Bi.YAML])),...["zip"].map((t=>[t,Bi.ZIP]))]);const Ri=i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),Di=i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Fi=i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Wi=i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Zi=i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),Gi=e.css`
223
+ `}}Ri.styles=[zi,ji,Ni,Oi,Si,Ii,Ci,Ai,Ei,Ti,_i],Ui([o.property()],Ri.prototype,"element",void 0),Ui([o.property()],Ri.prototype,"variant",void 0),i.customElement("ft-typography")(Ri),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;"}(Bi||(Bi={})),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;"}(Mi||(Mi={})),new Map([...["abw"].map((t=>[t,Mi.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,Mi.AUDIO])),...["avi"].map((t=>[t,Mi.AVI])),...["chm","xhs"].map((t=>[t,Mi.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,Mi.CODE])),...["csv"].map((t=>[t,Mi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Mi.DITA])),...["epub"].map((t=>[t,Mi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Mi.EXCEL])),...["flac"].map((t=>[t,Mi.FLAC])),...["gif"].map((t=>[t,Mi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Mi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Mi.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,Mi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Mi.JPEG])),...["json"].map((t=>[t,Mi.JSON])),...["m4a","m4p"].map((t=>[t,Mi.M4A])),...["mov","qt"].map((t=>[t,Mi.MOV])),...["mp3"].map((t=>[t,Mi.MP3])),...["mp4","m4v"].map((t=>[t,Mi.MP4])),...["ogg","oga"].map((t=>[t,Mi.OGG])),...["pdf","ps"].map((t=>[t,Mi.PDF])),...["png"].map((t=>[t,Mi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Mi.POWERPOINT])),...["rar"].map((t=>[t,Mi.RAR])),...["stp"].map((t=>[t,Mi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Mi.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,Mi.VIDEO])),...["wav"].map((t=>[t,Mi.WAV])),...["wma"].map((t=>[t,Mi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Mi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Mi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Mi.YAML])),...["zip"].map((t=>[t,Mi.ZIP]))]);const Di=i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),Fi=i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Wi=i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Zi=i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Gi=i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),Ki=e.css`
223
224
  :host, i.ft-icon {
224
225
  display: inline-flex;
225
226
  align-items: center;
@@ -228,14 +229,14 @@ const at=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===at)return null==t?void
228
229
  }
229
230
 
230
231
  :host {
231
- width: ${Ri};
232
- height: ${Ri};
232
+ width: ${Di};
233
+ height: ${Di};
233
234
  }
234
235
 
235
236
  i.ft-icon {
236
237
  width: 100%;
237
238
  height: 100%;
238
- font-size: ${Ri};
239
+ font-size: ${Di};
239
240
  line-height: 1;
240
241
  font-weight: normal;
241
242
  text-transform: none;
@@ -246,36 +247,37 @@ const at=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===at)return null==t?void
246
247
  text-rendering: auto;
247
248
  -webkit-font-smoothing: antialiased;
248
249
  -moz-osx-font-smoothing: grayscale;
249
- vertical-align: ${Zi};
250
+ vertical-align: ${Gi};
250
251
  }
251
252
 
252
253
  i.ft-icon.ft-icon--fluid-topics {
253
- font-family: ${Di}, ft-icons, fticons, sans-serif;
254
+ font-family: ${Fi}, ft-icons, fticons, sans-serif;
254
255
 
255
256
  /* Ugly fix because font is broken */
256
- font-size: calc(0.75 * ${Ri});
257
+ font-size: calc(0.75 * ${Di});
258
+ line-height: ${Di};
257
259
  position: relative;
258
260
  top: -4%;
259
261
  justify-content: center;
260
262
  }
261
263
 
262
264
  .ft-icon--file-format {
263
- font-family: ${Fi}, ft-mime, sans-serif;
265
+ font-family: ${Wi}, ft-mime, sans-serif;
264
266
  }
265
267
 
266
268
  .ft-icon--material {
267
- font-family: ${Wi}, "Material Icons", sans-serif;
269
+ font-family: ${Zi}, "Material Icons", sans-serif;
268
270
  }
269
- `;var Ki;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ki||(Ki={}));var Li,Hi=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};class qi extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Ki).includes(this.variant)?this.variant:Ki.fluid_topics,i=t!==Ki.material||!!this.value;return e.html`
270
- <i class="ft-icon ${"ft-icon--"+t}">
271
+ `;var Li;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Li||(Li={}));var Hi,qi=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};class Pi extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Li).includes(this.variant)?this.variant:Li.fluid_topics,i=t!==Li.material||!!this.value;return e.html`
272
+ <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
271
273
  ${r.unsafeHTML(this.resolvedIcon)}
272
274
  <slot ?hidden=${i}></slot>
273
275
  </i>
274
- `}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 Ki.file_format:this.resolvedIcon=null!==(t=Bi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ki.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=_i[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}qi.elementDefinitions={},qi.styles=Gi,Hi([o.property()],qi.prototype,"variant",void 0),Hi([o.property()],qi.prototype,"value",void 0),Hi([o.state()],qi.prototype,"resolvedIcon",void 0),Hi([o.query("slot")],qi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(qi),t.FtTabsAlignment=void 0,(Li=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",Li.right="right",Li.justify="justify";const Pi={colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Vi=e.css`
276
+ `}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 Li.file_format:this.resolvedIcon=null!==(t=Mi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Li.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Bi[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Pi.elementDefinitions={},Pi.styles=Ki,qi([o.property()],Pi.prototype,"variant",void 0),qi([o.property()],Pi.prototype,"value",void 0),qi([o.state()],Pi.prototype,"resolvedIcon",void 0),qi([o.query("slot")],Pi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Pi),t.FtTabsAlignment=void 0,(Hi=t.FtTabsAlignment||(t.FtTabsAlignment={})).left="left",Hi.right="right",Hi.justify="justify";const Vi={colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Xi=e.css`
275
277
  .ft-tabs {
276
278
  display: flex;
277
279
  flex-direction: column;
278
- background-color: ${Pi.colorSurface};
280
+ background-color: ${Vi.colorSurface};
279
281
  height: 100%;
280
282
  }
281
283
 
@@ -315,15 +317,15 @@ const at=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===at)return null==t?void
315
317
  outline: none;
316
318
  font-size: 16px;
317
319
  line-height: 1;
318
- color: ${Pi.colorOnSurfaceMedium};
320
+ color: ${Vi.colorOnSurfaceMedium};
319
321
  }
320
322
 
321
323
  [role='tab'][aria-selected='true'] {
322
- color: ${Pi.colorPrimary};
324
+ color: ${Vi.colorPrimary};
323
325
  }
324
326
 
325
327
  [role='tab'][disabled] {
326
- color: ${Pi.colorOnSurfaceDisabled};
328
+ color: ${Vi.colorOnSurfaceDisabled};
327
329
  }
328
330
 
329
331
  .ft-tabs--align-justify [role='tab'],
@@ -355,7 +357,7 @@ const at=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===at)return null==t?void
355
357
  position: absolute;
356
358
  height: 3px;
357
359
  border-radius: 2px;
358
- background-color: ${Pi.colorPrimary};
360
+ background-color: ${Vi.colorPrimary};
359
361
  transition: width 200ms ease, left 200ms ease, top 200ms ease;
360
362
  }
361
363
 
@@ -364,7 +366,7 @@ const at=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===at)return null==t?void
364
366
  flex-grow: 1;
365
367
  overflow: auto;
366
368
  }
367
- `,Xi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Yi=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ji=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),Qi=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),te=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),ie=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),ee=e.css`
369
+ `,Yi=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),Ji=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),Qi=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),te=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),ie=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),ee=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),oe=e.css`
368
370
  .ft-tooltip--container {
369
371
  display: block;
370
372
  position: relative;
@@ -380,23 +382,23 @@ const at=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===at)return null==t?void
380
382
  box-sizing: border-box;
381
383
  overflow: hidden;
382
384
  width: max-content;
383
- max-width: ${ie};
385
+ max-width: ${ee};
384
386
  text-align: center;
385
- padding: ${Xi};
386
- z-index: ${Qi};
387
+ padding: ${Yi};
388
+ z-index: ${te};
387
389
  }
388
390
 
389
391
  .ft-tooltip--content {
390
392
  padding: 4px 8px;
391
- border-radius: ${te};
392
- background-color: ${Ji};
393
- color: ${Yi};
393
+ border-radius: ${ie};
394
+ background-color: ${Qi};
395
+ color: ${Ji};
394
396
  top: -500px;
395
397
  left: -500px;
396
398
  position: relative;
397
399
  word-break: break-word;
398
400
  }
399
- `;var oe=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};class se 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`
401
+ `;var se=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};class ne 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`
400
402
  <div part="container"
401
403
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
402
404
  @mouseenter=${this.onHover}
@@ -414,7 +416,7 @@ const at=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===at)return null==t?void
414
416
  </div>
415
417
  </div>
416
418
  </div>
417
- `}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 s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${ie})`}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())}}se.elementDefinitions={"ft-typography":Ui},se.styles=ee,oe([o.property()],se.prototype,"text",void 0),oe([o.property({type:Boolean})],se.prototype,"manual",void 0),oe([o.property({type:Boolean})],se.prototype,"inline",void 0),oe([o.property({type:Number})],se.prototype,"delay",void 0),oe([o.property()],se.prototype,"position",void 0),oe([o.queryAssignedNodes("",!0)],se.prototype,"slotNodes",void 0),oe([o.query(".ft-tooltip--container")],se.prototype,"container",void 0),oe([o.query("slot")],se.prototype,"target",void 0),oe([o.query(".ft-tooltip")],se.prototype,"tooltip",void 0),oe([o.query(".ft-tooltip--content")],se.prototype,"tooltipContent",void 0),oe([o.state()],se.prototype,"visible",void 0),i.customElement("ft-tooltip")(se);var ne=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};class re extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class le extends i.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new i.Debouncer(20),this.scheduleRequestUpdate=()=>this.updateDebouncer.run((()=>{this.requestUpdate()})),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){var t;const i={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense},o=null===(t=this.ftTabs[this.activeIndex])||void 0===t?void 0:t.color;return e.html`
419
+ `}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 s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${ee})`}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())}}ne.elementDefinitions={"ft-typography":Ri},ne.styles=oe,se([o.property()],ne.prototype,"text",void 0),se([o.property({type:Boolean})],ne.prototype,"manual",void 0),se([o.property({type:Boolean})],ne.prototype,"inline",void 0),se([o.property({type:Number})],ne.prototype,"delay",void 0),se([o.property()],ne.prototype,"position",void 0),se([o.queryAssignedNodes("",!0)],ne.prototype,"slotNodes",void 0),se([o.query(".ft-tooltip--container")],ne.prototype,"container",void 0),se([o.query("slot")],ne.prototype,"target",void 0),se([o.query(".ft-tooltip")],ne.prototype,"tooltip",void 0),se([o.query(".ft-tooltip--content")],ne.prototype,"tooltipContent",void 0),se([o.state()],ne.prototype,"visible",void 0),i.customElement("ft-tooltip")(ne);var re=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};class le extends CustomEvent{constructor(t){super("index-change",{detail:t})}}class ae extends i.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.contentBefore=!1,this.alignTabs=t.FtTabsAlignment.justify,this.ftTabs=[],this.activeIndex=0,this.updateDebouncer=new i.Debouncer(20),this.scheduleRequestUpdate=()=>this.updateDebouncer.run((()=>{this.requestUpdate()})),this.resizeObserver=new ResizeObserver((()=>this.placeIndicator()))}render(){var t;const i={"ft-tabs":!0,"ft-tabs--reverse":this.contentBefore,"ft-tabs--dense":this.dense},o=null===(t=this.ftTabs[this.activeIndex])||void 0===t?void 0:t.color;return e.html`
418
420
  <div class="${n.classMap(i)}" part="container">
419
421
  <div class="ft-tabs--align-${this.alignTabs}" role="tablist" part="tablist">
420
422
  ${s.repeat(this.ftTabs,((t,i)=>this.addTooltipIfNecessary(t,e.html`
@@ -440,7 +442,7 @@ const at=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===at)return null==t?void
440
442
  </ft-icon>
441
443
  <ft-typography class="ft-tabs--tab-label"
442
444
  part="tab-label${t.active?" active-tab-label":""}"
443
- variant="${dt.body2}">
445
+ variant="${ut.body2}">
444
446
  ${t.label}
445
447
  </ft-typography>
446
448
  </button>
@@ -454,11 +456,11 @@ const at=Symbol.for(""),pt=t=>{if((null==t?void 0:t.r)===at)return null==t?void
454
456
  <slot @slotchange=${this.onContentChange}></slot>
455
457
  </div>
456
458
  </div>
457
- `}onContentChange(t){const i=t.composedPath()[0];this.ftTabs=i.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.scheduleRequestUpdate),t.addEventListener("updated",this.scheduleRequestUpdate)})),this.updateTabs()}updated(t){super.updated(t),(t.has("ftTabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new re(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,i,e,o,s,n,r;if(this.activeTabIndicator){const l=null!==(i=null===(t=this.activeTab)||void 0===t?void 0:t.closest(".ft-tabs--tab-tooltip"))&&void 0!==i?i:this.activeTab;this.activeTabIndicator.style.width=(null!==(e=null==l?void 0:l.clientWidth)&&void 0!==e?e:0)+"px",this.activeTabIndicator.style.left=(null!==(o=null==l?void 0:l.offsetLeft)&&void 0!==o?o:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(s=null==l?void 0:l.offsetTop)&&void 0!==s?s:0)+"px":this.activeTabIndicator.style.top=(null!==(n=null==l?void 0:l.offsetTop)&&void 0!==n?n:0)+(null!==(r=null==l?void 0:l.clientHeight)&&void 0!==r?r:0)-this.activeTabIndicator.clientHeight+"px"}}updateTabs(){this.ftTabs.forEach(((t,i)=>{t.active=i==this.activeIndex}))}addTooltipIfNecessary(t,i){return this.dense&&t.label&&t.icon?e.html`
459
+ `}onContentChange(t){const i=t.composedPath()[0];this.ftTabs=i.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.scheduleRequestUpdate),t.addEventListener("updated",this.scheduleRequestUpdate)})),this.updateTabs()}updated(t){super.updated(t),(t.has("ftTabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new le(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,i,e,o,s,n,r;if(this.activeTabIndicator){const l=null!==(i=null===(t=this.activeTab)||void 0===t?void 0:t.closest(".ft-tabs--tab-tooltip"))&&void 0!==i?i:this.activeTab;this.activeTabIndicator.style.width=(null!==(e=null==l?void 0:l.clientWidth)&&void 0!==e?e:0)+"px",this.activeTabIndicator.style.left=(null!==(o=null==l?void 0:l.offsetLeft)&&void 0!==o?o:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(s=null==l?void 0:l.offsetTop)&&void 0!==s?s:0)+"px":this.activeTabIndicator.style.top=(null!==(n=null==l?void 0:l.offsetTop)&&void 0!==n?n:0)+(null!==(r=null==l?void 0:l.clientHeight)&&void 0!==r?r:0)-this.activeTabIndicator.clientHeight+"px"}}updateTabs(){this.ftTabs.forEach(((t,i)=>{t.active=i==this.activeIndex}))}addTooltipIfNecessary(t,i){return this.dense&&t.label&&t.icon?e.html`
458
460
  <ft-tooltip class="ft-tabs--tab-tooltip"
459
461
  part="tab-tooltip"
460
462
  text="${t.label}"
461
463
  position="${this.contentBefore?"top":"bottom"}">
462
464
  ${i}
463
465
  </ft-tooltip>
464
- `:i}}le.elementDefinitions={"ft-tab":a,"ft-ripple":j,"ft-tooltip":se,"ft-typography":Ui,"ft-icon":qi},le.styles=Vi,ne([o.property({type:Boolean})],le.prototype,"dense",void 0),ne([o.property({type:Boolean})],le.prototype,"contentBefore",void 0),ne([o.property()],le.prototype,"alignTabs",void 0),ne([o.state()],le.prototype,"ftTabs",void 0),ne([o.query("[role='tablist']")],le.prototype,"tabsContainer",void 0),ne([o.query("[aria-selected='true']")],le.prototype,"activeTab",void 0),ne([o.query(".ft-tabs--active-tab-indicator")],le.prototype,"activeTabIndicator",void 0),ne([o.property({type:Number,reflect:!0})],le.prototype,"activeIndex",void 0);i.customElement("ft-tab")(a),i.customElement("ft-tabs")(le),t.FtTab=a,t.FtTabCssVariables={},t.FtTabs=le,t.FtTabsCssVariables=Pi,t.IndexChangeEvent=re,t.styles=Vi}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
466
+ `:i}}ae.elementDefinitions={"ft-tab":a,"ft-ripple":N,"ft-tooltip":ne,"ft-typography":Ri,"ft-icon":Pi},ae.styles=Xi,re([o.property({type:Boolean})],ae.prototype,"dense",void 0),re([o.property({type:Boolean})],ae.prototype,"contentBefore",void 0),re([o.property()],ae.prototype,"alignTabs",void 0),re([o.state()],ae.prototype,"ftTabs",void 0),re([o.query("[role='tablist']")],ae.prototype,"tabsContainer",void 0),re([o.query("[aria-selected='true']")],ae.prototype,"activeTab",void 0),re([o.query(".ft-tabs--active-tab-indicator")],ae.prototype,"activeTabIndicator",void 0),re([o.property({type:Number,reflect:!0})],ae.prototype,"activeIndex",void 0);i.customElement("ft-tab")(a),i.customElement("ft-tabs")(ae),t.FtTab=a,t.FtTabCssVariables={},t.FtTabs=ae,t.FtTabsCssVariables=Vi,t.IndexChangeEvent=le,t.styles=Xi}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);