@fluid-topics/ft-tabs 1.0.55 → 1.0.56

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.
package/build/ft-tab.d.ts CHANGED
@@ -15,5 +15,6 @@ export declare class FtTab extends FtLitElement implements FtTabProperties {
15
15
  rippleColor?: string;
16
16
  ariaLabelledBy?: string;
17
17
  protected render(): unknown;
18
+ protected update(props: PropertyValues): void;
18
19
  protected updated(props: PropertyValues): void;
19
20
  }
package/build/ft-tab.js CHANGED
@@ -26,12 +26,15 @@ class FtTab extends FtLitElement {
26
26
  <slot></slot>
27
27
  `;
28
28
  }
29
- updated(props) {
30
- super.updated(props);
29
+ update(props) {
30
+ super.update(props);
31
31
  if (!this.id) {
32
32
  this.id = "tab-" + this.uniqueId;
33
33
  }
34
34
  this.ariaLabelledBy = this.id + "-control";
35
+ }
36
+ updated(props) {
37
+ super.updated(props);
35
38
  this.dispatchEvent(new Event("updated"));
36
39
  }
37
40
  }
@@ -20,7 +20,6 @@ export declare class FtTabs extends FtLitElement implements FtTabsProperties {
20
20
  private onTabUpdated;
21
21
  private onContentChange;
22
22
  protected update(props: PropertyValues): void;
23
- protected updated(props: PropertyValues): void;
24
23
  private resizeObserver;
25
24
  protected contentAvailableCallback(props: PropertyValues): void;
26
25
  private placeIndicator;
package/build/ft-tabs.js CHANGED
@@ -105,9 +105,6 @@ class FtTabs extends FtLitElement {
105
105
  if (props.has("activeIndex")) {
106
106
  this.dispatchEvent(new PreResizeEvent());
107
107
  }
108
- }
109
- updated(props) {
110
- super.updated(props);
111
108
  if (props.has("ftTabs") || props.has("activeIndex")) {
112
109
  this.updateTabs();
113
110
  }
@@ -1,11 +1,11 @@
1
- !function(t,i,e,o,s,n,r){var l=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 a extends i.FtLitElement{constructor(){super(...arguments),this.label="",this.icon="",this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return e.html`
1
+ !function(t,i,e,o,s,n,r){var a=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(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 l extends i.FtLitElement{constructor(){super(...arguments),this.label="",this.icon="",this.active=!1,this.disabled=!1,this.uniqueId=(""+Math.floor(1e5*Math.random())).padStart(5,"0")}render(){return e.html`
2
2
  <style>
3
3
  :host {
4
4
  display: ${e.unsafeCSS(this.active?"block":"none")};
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,reflect:!0})],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"),x=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),u=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),y=i.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px"),b=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),g=b,v=i.FtCssVariableFactory.extend("--ft-ripple-background-color",b),m=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),$=m,w=i.FtCssVariableFactory.extend("--ft-ripple-background-color",m),k=e.css`
8
+ `}update(t){super.update(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control"}updated(t){super.updated(t),this.dispatchEvent(new Event("updated"))}}l.elementDefinitions={},a([o.property({type:String})],l.prototype,"label",void 0),a([o.property({type:String})],l.prototype,"icon",void 0),a([o.property()],l.prototype,"iconVariant",void 0),a([o.property({type:Boolean,reflect:!0})],l.prototype,"active",void 0),a([o.property({type:Boolean})],l.prototype,"disabled",void 0),a([o.property({reflect:!0})],l.prototype,"id",void 0),a([o.property()],l.prototype,"color",void 0),a([o.property()],l.prototype,"rippleColor",void 0),a([o.property({reflect:!0,attribute:"aria-labelledby"})],l.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"),x=i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),u=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
  }
@@ -27,6 +27,30 @@
27
27
  opacity: 0;
28
28
  }
29
29
 
30
+ .ft-ripple .ft-ripple--effect {
31
+ aspect-ratio: 1;
32
+ width: auto;
33
+ height: auto;
34
+ min-width: 170%;
35
+ min-height: 170%;
36
+ }
37
+
38
+ .ft-ripple .ft-ripple--background{
39
+ width: 100%;
40
+ height: 100%;
41
+ }
42
+
43
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
44
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
45
+ aspect-ratio: 1;
46
+ width: auto;
47
+ height: auto;
48
+ max-width: unset;
49
+ max-height: unset;
50
+ min-width: 100%;
51
+ min-height: 100%;
52
+ }
53
+
30
54
  .ft-ripple .ft-ripple--background {
31
55
  background-color: ${f};
32
56
  }
@@ -48,14 +72,12 @@
48
72
  }
49
73
 
50
74
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
51
- background-color: ${g};
75
+ background-color: ${b};
52
76
  }
53
77
 
54
78
  .ft-ripple .ft-ripple--background {
55
79
  top: 0;
56
80
  left: 0;
57
- height: 100%;
58
- width: 100%;
59
81
  transition: opacity 75ms linear;
60
82
  }
61
83
 
@@ -95,14 +117,8 @@
95
117
  opacity: ${c};
96
118
  transform: translate(-50%, -50%) scale(1);
97
119
  }
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.isFocusVisible(null==t?void 0:t.target)&&!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`
120
+ `;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,a=t.length-1;a>=0;a--)(s=t[a])&&(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.originX=0,this.originY=0,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.isFocusVisible(null==t?void 0:t.target)&&!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`
99
121
  <style>
100
- .ft-ripple .ft-ripple--effect,
101
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
102
- width: ${this.rippleSize}px;
103
- height: ${this.rippleSize}px;
104
- }
105
-
106
122
  .ft-ripple .ft-ripple--effect {
107
123
  left: ${this.originX}px;
108
124
  top: ${this.originY}px;
@@ -112,15 +128,15 @@
112
128
  <div class="ft-ripple--background"></div>
113
129
  <div class="ft-ripple--effect"></div>
114
130
  </div>
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((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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$",M=`lit$${(Math.random()+"").slice(9)}$`,A="?"+M,E=`<${A}>`,T=document,_=()=>T.createComment(""),B=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),P=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),V=new WeakMap,X=T.createTreeWalker(T,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+E:p>=0?(o.push(l),e.slice(0,p)+C+e.slice(p)+M+f):e+M+(-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(M)){const e=p[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+C).split(M),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(M),i=t.length-1;if(i>0){o.textContent=S?S.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],_()),X.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(M,t+1));)l.push({type:7,index:s}),t+=M.length-1}s++}}static createElement(t,i){const e=T.createElement("template");return e.innerHTML=t,e}}function Q(t,i,e=t,o){var s,n,r,l;if(i===P)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=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:T).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=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=Q(this,t,i),B(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==P&&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!==q&&B(this._$AH)?this._$AA.nextSibling.data=t:this.$(T.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(_()),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 et{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=Q(this,t,i,0),n=!B(t)||t!==this._$AH&&t!==P,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===P&&(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 ot extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const st=S?S.emptyScript:"";class nt extends et{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?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:q)===P)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 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");
131
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var i,e;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e)}setupFor(t){if(this.setupDebouncer.cancel(),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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.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,"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,I=O.trustedTypes,S=I?I.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",A=`lit$${(Math.random()+"").slice(9)}$`,E="?"+A,M=`<${E}>`,T=document,_=()=>T.createComment(""),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,D="[ \t\n\f\r]",F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,W=/>/g,Z=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \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),P=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),V=new WeakMap,X=T.createTreeWalker(T,129,null,!1),Y=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=F;for(let i=0;i<e;i++){const e=t[i];let a,l,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,l=r.exec(e),null!==l);)h=r.lastIndex,r===F?"!--"===l[1]?r=R:void 0!==l[1]?r=W:void 0!==l[2]?(L.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=Z):void 0!==l[3]&&(r=Z):r===Z?">"===l[0]?(r=null!=s?s:F,p=-1):void 0===l[1]?p=-2:(p=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?Z:'"'===l[3]?K:G):r===K||r===G?r=Z:r===R||r===W?r=F:(r=Z,s=void 0);const f=r===Z&&t[i+1].startsWith("/>")?" ":"";n+=r===F?e+M:p>=0?(o.push(a),e.slice(0,p)+C+e.slice(p)+A+f):e+A+(-2===p?(o.push(void 0),i):f)}const a=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(a):a,o]};class J{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,p]=Y(t,i);if(this.el=J.createElement(l,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())&&a.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);a.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?ot:"?"===i[1]?nt:"@"===i[1]?rt:et})}else a.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=I?I.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],_()),X.nextNode(),a.push({type:2,index:++s});o.append(t[i],_())}}}else if(8===o.nodeType)if(o.data===E)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(A,t+1));)a.push({type:7,index:s}),t+=A.length-1}s++}}static createElement(t,i){const e=T.createElement("template");return e.innerHTML=t,e}}function Q(t,i,e=t,o){var s,n,r,a;if(i===P)return i;let l=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==l?void 0:l.constructor)!==p&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=Q(t,l._$AS(t,i.values),l,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:T).importNode(e,!0);X.currentNode=s;let n=X.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new it(n,n.nextSibling,this,t):1===l.type?i=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(i=new at(n,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.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=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=Q(this,t,i),B(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==P&&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!==q&&B(this._$AH)?this._$AA.nextSibling.data=t:this.$(T.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(_()),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 et{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=Q(this,t,i,0),n=!B(t)||t!==this._$AH&&t!==P,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=Q(this,o[e+r],i,r),a===P&&(a=this._$AH[r]),n||(n=!B(a)||a!==this._$AH[r]),a===q?t=q:t!==q&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===q?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===q?void 0:t}}const st=I?I.emptyScript:"";class nt extends et{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?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:q)===P)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 at{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 lt=O.litHtmlPolyfillSupport;null==lt||lt(J,it),(null!==(z=O.litHtmlVersions)&&void 0!==z?z:O.litHtmlVersions=[]).push("2.7.3");
116
132
  /**
117
133
  * @license
118
134
  * Copyright 2020 Google LLC
119
135
  * SPDX-License-Identifier: BSD-3-Clause
120
136
  */
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 xt;!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"}(xt||(xt={}));const ut=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),yt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),bt={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")},gt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",ut),vt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",bt.fontSize,"20px"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",bt.fontWeight,"normal"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",bt.letterSpacing,"0.15px"),wt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",bt.lineHeight,"1.2"),kt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",bt.textTransform,"inherit"),zt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",ut),jt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",bt.fontSize,"14px"),Nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",bt.fontWeight,"normal"),Ot=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",bt.letterSpacing,"0.105px"),St=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",bt.lineHeight,"1.7"),It=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",bt.textTransform,"inherit"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",yt),Mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",bt.fontSize,"16px"),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",bt.fontWeight,"600"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",bt.letterSpacing,"0.144px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",bt.lineHeight,"1.5"),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",bt.textTransform,"inherit"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",yt),Ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",bt.fontSize,"14px"),Rt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",bt.fontWeight,"normal"),Dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",bt.letterSpacing,"0.098px"),Ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",bt.lineHeight,"1.7"),Wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",bt.textTransform,"inherit"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",yt),Gt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",bt.fontSize,"16px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",bt.fontWeight,"normal"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",bt.letterSpacing,"0.496px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",bt.lineHeight,"1.5"),Pt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",bt.textTransform,"inherit"),qt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",yt),Vt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",bt.fontSize,"14px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",bt.fontWeight,"normal"),Yt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",bt.letterSpacing,"0.252px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",bt.lineHeight,"1.4"),Qt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",bt.textTransform,"inherit"),ti=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",yt),ii=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",bt.fontSize,"12px"),ei=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",bt.fontWeight,"normal"),oi=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",bt.letterSpacing,"0.396px"),si=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",bt.lineHeight,"1.33"),ni=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",bt.textTransform,"inherit"),ri=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",yt),li=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",bt.fontSize,"10px"),ai=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",bt.fontWeight,"normal"),pi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",bt.letterSpacing,"0.33px"),hi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",bt.lineHeight,"1.6"),fi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",bt.textTransform,"inherit"),ci=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",yt),di=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",bt.fontSize,"10px"),xi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",bt.fontWeight,"normal"),ui=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",bt.letterSpacing,"1.5px"),yi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",bt.lineHeight,"1.6"),bi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",bt.textTransform,"uppercase"),gi=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",yt),vi=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",bt.fontSize,"14px"),mi=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",bt.fontWeight,"600"),$i=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",bt.letterSpacing,"1.246px"),wi=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",bt.lineHeight,"1.15"),ki=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",bt.textTransform,"uppercase"),zi=e.css`
137
+ 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=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=i[p];p<o&&void 0!==(n=e[p],s=ht(n));)l+=s+i[++p],h=!0;p!==o&&a.push(n),r.push(l),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=a}return t(i,...e)})(H);var xt;!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"}(xt||(xt={}));const ut=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",ut),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",ut),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"),It=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",gt.lineHeight,"1.7"),St=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"),Mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",gt.letterSpacing,"0.144px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",gt.lineHeight,"1.5"),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",gt.textTransform,"inherit"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",yt),Ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",gt.fontSize,"14px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",gt.fontWeight,"normal"),Ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",gt.letterSpacing,"0.098px"),Rt=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"),Pt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",gt.textTransform,"inherit"),qt=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),ai=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",gt.fontSize,"10px"),li=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"),xi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",gt.fontWeight,"normal"),ui=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`
122
138
  .ft-typography--title {
123
- font-family: ${gt};
139
+ font-family: ${bt};
124
140
  font-size: ${vt};
125
141
  font-weight: ${mt};
126
142
  letter-spacing: ${$t};
@@ -133,15 +149,15 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
133
149
  font-size: ${jt};
134
150
  font-weight: ${Nt};
135
151
  letter-spacing: ${Ot};
136
- line-height: ${St};
137
- text-transform: ${It};
152
+ line-height: ${It};
153
+ text-transform: ${St};
138
154
  }
139
155
  `,Ni=e.css`
140
156
  .ft-typography--subtitle1 {
141
157
  font-family: ${Ct};
142
- font-size: ${Mt};
143
- font-weight: ${At};
144
- letter-spacing: ${Et};
158
+ font-size: ${At};
159
+ font-weight: ${Et};
160
+ letter-spacing: ${Mt};
145
161
  line-height: ${Tt};
146
162
  text-transform: ${_t};
147
163
  }
@@ -149,13 +165,13 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
149
165
  .ft-typography--subtitle2 {
150
166
  font-family: ${Bt};
151
167
  font-size: ${Ut};
152
- font-weight: ${Rt};
153
- letter-spacing: ${Dt};
154
- line-height: ${Ft};
168
+ font-weight: ${Dt};
169
+ letter-spacing: ${Ft};
170
+ line-height: ${Rt};
155
171
  text-transform: ${Wt};
156
172
  }
157
173
 
158
- `,Si=e.css`
174
+ `,Ii=e.css`
159
175
  .ft-typography--body1 {
160
176
  font-family: ${Zt};
161
177
  font-size: ${Gt};
@@ -164,7 +180,7 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
164
180
  line-height: ${Ht};
165
181
  text-transform: ${Pt};
166
182
  }
167
- `,Ii=e.css`
183
+ `,Si=e.css`
168
184
  .ft-typography--body2 {
169
185
  font-family: ${qt};
170
186
  font-size: ${Vt};
@@ -182,27 +198,27 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
182
198
  line-height: ${si};
183
199
  text-transform: ${ni};
184
200
  }
185
- `,Mi=e.css`
201
+ `,Ai=e.css`
186
202
  .ft-typography--breadcrumb {
187
203
  font-family: ${ri};
188
- font-size: ${li};
189
- font-weight: ${ai};
204
+ font-size: ${ai};
205
+ font-weight: ${li};
190
206
  letter-spacing: ${pi};
191
207
  line-height: ${hi};
192
208
  text-transform: ${fi};
193
209
  }
194
- `,Ai=e.css`
210
+ `,Ei=e.css`
195
211
  .ft-typography--overline {
196
212
  font-family: ${ci};
197
213
  font-size: ${di};
198
214
  font-weight: ${xi};
199
215
  letter-spacing: ${ui};
200
216
  line-height: ${yi};
201
- text-transform: ${bi};
217
+ text-transform: ${gi};
202
218
  }
203
- `,Ei=e.css`
219
+ `,Mi=e.css`
204
220
  .ft-typography--button {
205
- font-family: ${gi};
221
+ font-family: ${bi};
206
222
  font-size: ${vi};
207
223
  font-weight: ${mi};
208
224
  letter-spacing: ${$i};
@@ -213,14 +229,14 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
213
229
  .ft-typography {
214
230
  vertical-align: inherit;
215
231
  }
216
- `;var _i,Bi,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=xt.body1}render(){return this.element?dt`
232
+ `;var _i,Bi,Ui=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(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 Di extends i.FtLitElement{constructor(){super(...arguments),this.variant=xt.body1}render(){return this.element?dt`
217
233
  <${ft(this.element)}
218
234
  class="ft-typography ft-typography--${this.variant}">
219
235
  <slot></slot>
220
236
  </${ft(this.element)}>
221
237
  `:dt`
222
238
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
223
- `}}Ri.styles=[zi,ji,Ni,Oi,Si,Ii,Ci,Mi,Ai,Ei,Ti],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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(_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 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`
239
+ `}}Di.styles=[zi,ji,Ni,Oi,Ii,Si,Ci,Ai,Ei,Mi,Ti],Ui([o.property()],Di.prototype,"element",void 0),Ui([o.property()],Di.prototype,"variant",void 0),i.customElement("ft-typography")(Di),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.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",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.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",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.EYE_SLASH="&#xe970;",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;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(_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 Fi=i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),Ri=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`
224
240
  :host, i.ft-icon {
225
241
  display: inline-flex;
226
242
  align-items: center;
@@ -229,14 +245,14 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
229
245
  }
230
246
 
231
247
  :host {
232
- width: ${Di};
233
- height: ${Di};
248
+ width: ${Fi};
249
+ height: ${Fi};
234
250
  }
235
251
 
236
252
  i.ft-icon {
237
253
  width: 100%;
238
254
  height: 100%;
239
- font-size: ${Di};
255
+ font-size: ${Fi};
240
256
  line-height: 1;
241
257
  font-weight: normal;
242
258
  text-transform: none;
@@ -251,11 +267,11 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
251
267
  }
252
268
 
253
269
  i.ft-icon.ft-icon--fluid-topics {
254
- font-family: ${Fi}, ft-icons, fticons, sans-serif;
270
+ font-family: ${Ri}, ft-icons, fticons, sans-serif;
255
271
 
256
272
  /* Ugly fix because font is broken */
257
- font-size: calc(0.75 * ${Di});
258
- line-height: ${Di};
273
+ font-size: calc(0.75 * ${Fi});
274
+ line-height: ${Fi};
259
275
  position: relative;
260
276
  top: -4%;
261
277
  justify-content: center;
@@ -268,7 +284,7 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
268
284
  .ft-icon--material {
269
285
  font-family: ${Zi}, "Material Icons", sans-serif;
270
286
  }
271
- `;var Li;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Li||(Li={}));var Hi,Pi=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(Li).includes(this.variant)?this.variant:Li.fluid_topics,i=t!==Li.material||!!this.value;return e.html`
287
+ `;var Li;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Li||(Li={}));var Hi,Pi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(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(Li).includes(this.variant)?this.variant:Li.fluid_topics,i=t!==Li.material||!!this.value;return e.html`
272
288
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
273
289
  ${r.unsafeHTML(this.resolvedIcon)}
274
290
  <slot ?hidden=${i}></slot>
@@ -395,7 +411,7 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
395
411
  position: relative;
396
412
  word-break: break-word;
397
413
  }
398
- `;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`
414
+ `;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,a=t.length-1;a>=0;a--)(s=t[a])&&(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`
399
415
  <div part="container"
400
416
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
401
417
  @mouseenter=${this.onHover}
@@ -413,7 +429,7 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
413
429
  </div>
414
430
  </div>
415
431
  </div>
416
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.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=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,s=(t.offsetWidth-i)/2;let n=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const l=this.tooltip.style;l.left=n+"px",l.top=r+"px";const a=this.tooltip.getBoundingClientRect();let p=-a.x,h=a.x+a.width-window.innerWidth;l.left=n+Math.round(this.correctOutOfWindowPixels(p,h))+"px";let f=-a.y,c=a.y+a.height-window.innerHeight;l.top=r+Math.round(this.correctOutOfWindowPixels(f,c))+"px",l.maxWidth=`max(${t.offsetWidth}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())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}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(".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(2),this.onTabUpdated=()=>this.updateDebouncer.run((()=>{this.requestUpdate(),this.dispatchEvent(new i.PostResizeEvent)})),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`
432
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.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=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,s=(t.offsetWidth-i)/2;let n=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=n+"px",a.top=r+"px";const l=this.tooltip.getBoundingClientRect();let p=-l.x,h=l.x+l.width-window.innerWidth;a.left=n+Math.round(this.correctOutOfWindowPixels(p,h))+"px";let f=-l.y,c=l.y+l.height-window.innerHeight;a.top=r+Math.round(this.correctOutOfWindowPixels(f,c))+"px",a.maxWidth=`max(${t.offsetWidth}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())}correctOutOfWindowPixels(t,i){return Math.max(t,Math.min(0,-i))}}ne.elementDefinitions={"ft-typography":Di},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(".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,a=t.length-1;a>=0;a--)(s=t[a])&&(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 ae 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(2),this.onTabUpdated=()=>this.updateDebouncer.run((()=>{this.requestUpdate(),this.dispatchEvent(new i.PostResizeEvent)})),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`
417
433
  <div class="${n.classMap(i)}" part="container">
418
434
  <div class="ft-tabs--align-${this.alignTabs}" role="tablist" part="tablist">
419
435
  ${s.repeat(this.ftTabs,((t,i)=>this.addTooltipIfNecessary(t,e.html`
@@ -453,11 +469,11 @@ const pt=Symbol.for(""),ht=t=>{if((null==t?void 0:t.r)===pt)return null==t?void
453
469
  <slot @slotchange=${this.onContentChange}></slot>
454
470
  </div>
455
471
  </div>
456
- `}onContentChange(t){const i=t.composedPath()[0];this.ftTabs=i.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.onTabUpdated),t.addEventListener("updated",this.onTabUpdated)})),this.updateTabs()}update(t){super.update(t),t.has("activeIndex")&&this.dispatchEvent(new i.PreResizeEvent)}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`
472
+ `}onContentChange(t){const i=t.composedPath()[0];this.ftTabs=i.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.onTabUpdated),t.addEventListener("updated",this.onTabUpdated)})),this.updateTabs()}update(t){super.update(t),t.has("activeIndex")&&this.dispatchEvent(new i.PreResizeEvent),(t.has("ftTabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new ae(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 a=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==a?void 0:a.clientWidth)&&void 0!==e?e:0)+"px",this.activeTabIndicator.style.left=(null!==(o=null==a?void 0:a.offsetLeft)&&void 0!==o?o:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(s=null==a?void 0:a.offsetTop)&&void 0!==s?s:0)+"px":this.activeTabIndicator.style.top=(null!==(n=null==a?void 0:a.offsetTop)&&void 0!==n?n:0)+(null!==(r=null==a?void 0:a.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`
457
473
  <ft-tooltip class="ft-tabs--tab-tooltip"
458
474
  part="tab-tooltip"
459
475
  text="${t.label}"
460
476
  position="${this.contentBefore?"top":"bottom"}">
461
477
  ${i}
462
478
  </ft-tooltip>
463
- `:i}}ae.elementDefinitions={"ft-tab":a,"ft-ripple":N,"ft-tooltip":ne,"ft-typography":Ri,"ft-icon":qi},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);
479
+ `:i}}le.elementDefinitions={"ft-tab":l,"ft-ripple":N,"ft-tooltip":ne,"ft-typography":Di,"ft-icon":qi},le.styles=Xi,re([o.property({type:Boolean})],le.prototype,"dense",void 0),re([o.property({type:Boolean})],le.prototype,"contentBefore",void 0),re([o.property()],le.prototype,"alignTabs",void 0),re([o.state()],le.prototype,"ftTabs",void 0),re([o.query("[role='tablist']")],le.prototype,"tabsContainer",void 0),re([o.query("[aria-selected='true']")],le.prototype,"activeTab",void 0),re([o.query(".ft-tabs--active-tab-indicator")],le.prototype,"activeTabIndicator",void 0),re([o.property({type:Number,reflect:!0})],le.prototype,"activeIndex",void 0);i.customElement("ft-tab")(l),i.customElement("ft-tabs")(le),t.FtTab=l,t.FtTabCssVariables={},t.FtTabs=le,t.FtTabsCssVariables=Vi,t.IndexChangeEvent=ae,t.styles=Xi}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
@@ -101,7 +101,7 @@ var ut,vt;let xt=class extends E{constructor(){super(...arguments),this.renderOp
101
101
  }
102
102
  </style>
103
103
  <slot></slot>
104
- `}updated(t){super.updated(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control",this.dispatchEvent(new Event("updated"))}}Ut.elementDefinitions={},jt([o({type:String})],Ut.prototype,"label",void 0),jt([o({type:String})],Ut.prototype,"icon",void 0),jt([o()],Ut.prototype,"iconVariant",void 0),jt([o({type:Boolean,reflect:!0})],Ut.prototype,"active",void 0),jt([o({type:Boolean})],Ut.prototype,"disabled",void 0),jt([o({reflect:!0})],Ut.prototype,"id",void 0),jt([o()],Ut.prototype,"color",void 0),jt([o()],Ut.prototype,"rippleColor",void 0),jt([o({reflect:!0,attribute:"aria-labelledby"})],Ut.prototype,"ariaLabelledBy",void 0);
104
+ `}update(t){super.update(t),this.id||(this.id="tab-"+this.uniqueId),this.ariaLabelledBy=this.id+"-control"}updated(t){super.updated(t),this.dispatchEvent(new Event("updated"))}}Ut.elementDefinitions={},jt([o({type:String})],Ut.prototype,"label",void 0),jt([o({type:String})],Ut.prototype,"icon",void 0),jt([o()],Ut.prototype,"iconVariant",void 0),jt([o({type:Boolean,reflect:!0})],Ut.prototype,"active",void 0),jt([o({type:Boolean})],Ut.prototype,"disabled",void 0),jt([o({reflect:!0})],Ut.prototype,"id",void 0),jt([o()],Ut.prototype,"color",void 0),jt([o()],Ut.prototype,"rippleColor",void 0),jt([o({reflect:!0,attribute:"aria-labelledby"})],Ut.prototype,"ariaLabelledBy",void 0);
105
105
  /**
106
106
  * @license
107
107
  * Copyright 2017 Google LLC
@@ -134,6 +134,30 @@ const Ft=1,zt=2,At=t=>(...e)=>({_$litDirective$:t,values:e});class Bt{constructo
134
134
  opacity: 0;
135
135
  }
136
136
 
137
+ .ft-ripple .ft-ripple--effect {
138
+ aspect-ratio: 1;
139
+ width: auto;
140
+ height: auto;
141
+ min-width: 170%;
142
+ min-height: 170%;
143
+ }
144
+
145
+ .ft-ripple .ft-ripple--background{
146
+ width: 100%;
147
+ height: 100%;
148
+ }
149
+
150
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
151
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
152
+ aspect-ratio: 1;
153
+ width: auto;
154
+ height: auto;
155
+ max-width: unset;
156
+ max-height: unset;
157
+ min-width: 100%;
158
+ min-height: 100%;
159
+ }
160
+
137
161
  .ft-ripple .ft-ripple--background {
138
162
  background-color: ${Jt};
139
163
  }
@@ -161,8 +185,6 @@ const Ft=1,zt=2,At=t=>(...e)=>({_$litDirective$:t,values:e});class Bt{constructo
161
185
  .ft-ripple .ft-ripple--background {
162
186
  top: 0;
163
187
  left: 0;
164
- height: 100%;
165
- width: 100%;
166
188
  transition: opacity 75ms linear;
167
189
  }
168
190
 
@@ -207,14 +229,8 @@ const Ft=1,zt=2,At=t=>(...e)=>({_$litDirective$:t,values:e});class Bt{constructo
207
229
  * @license
208
230
  * Copyright 2017 Google LLC
209
231
  * SPDX-License-Identifier: BSD-3-Clause
210
- */var ae=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class le extends Et{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 e(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 e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.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.isFocusVisible(null==t?void 0:t.target)&&!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 X`
232
+ */var ae=function(t,e,i,o){for(var s,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(e,i,n):s(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class le extends Et{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.originX=0,this.originY=0,this.debouncer=new e(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 e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),r=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-r.x:r.width/2),this.originY=Math.round(null!=s?s-r.y:r.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.isFocusVisible(null==t?void 0:t.target)&&!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 X`
211
233
  <style>
212
- .ft-ripple .ft-ripple--effect,
213
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
214
- width: ${this.rippleSize}px;
215
- height: ${this.rippleSize}px;
216
- }
217
-
218
234
  .ft-ripple .ft-ripple--effect {
219
235
  left: ${this.originX}px;
220
236
  top: ${this.originY}px;
@@ -224,7 +240,7 @@ const Ft=1,zt=2,At=t=>(...e)=>({_$litDirective$:t,values:e});class Bt{constructo
224
240
  <div class="ft-ripple--background"></div>
225
241
  <div class="ft-ripple--effect"></div>
226
242
  </div>
227
- `}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 e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.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((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),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",i),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 e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}le.elementDefinitions={},le.styles=ne,ae([o({type:Boolean})],le.prototype,"primary",void 0),ae([o({type:Boolean})],le.prototype,"secondary",void 0),ae([o({type:Boolean})],le.prototype,"unbounded",void 0),ae([o({type:Boolean})],le.prototype,"activated",void 0),ae([o({type:Boolean})],le.prototype,"selected",void 0),ae([o({type:Boolean})],le.prototype,"disabled",void 0),ae([s()],le.prototype,"hovered",void 0),ae([s()],le.prototype,"focused",void 0),ae([s()],le.prototype,"pressed",void 0),ae([s()],le.prototype,"rippling",void 0),ae([s()],le.prototype,"rippleSize",void 0),ae([s()],le.prototype,"originX",void 0),ae([s()],le.prototype,"originY",void 0),ae([n(".ft-ripple")],le.prototype,"ripple",void 0),ae([n(".ft-ripple--effect")],le.prototype,"rippleEffect",void 0),c("ft-ripple")(le);
243
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),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",i),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 e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}le.elementDefinitions={},le.styles=ne,ae([o({type:Boolean})],le.prototype,"primary",void 0),ae([o({type:Boolean})],le.prototype,"secondary",void 0),ae([o({type:Boolean})],le.prototype,"unbounded",void 0),ae([o({type:Boolean})],le.prototype,"activated",void 0),ae([o({type:Boolean})],le.prototype,"selected",void 0),ae([o({type:Boolean})],le.prototype,"disabled",void 0),ae([s()],le.prototype,"hovered",void 0),ae([s()],le.prototype,"focused",void 0),ae([s()],le.prototype,"pressed",void 0),ae([s()],le.prototype,"rippling",void 0),ae([s()],le.prototype,"originX",void 0),ae([s()],le.prototype,"originY",void 0),ae([n(".ft-ripple")],le.prototype,"ripple",void 0),ae([n(".ft-ripple--effect")],le.prototype,"rippleEffect",void 0),c("ft-ripple")(le);
228
244
  /**
229
245
  * @license
230
246
  * Copyright 2020 Google LLC
@@ -577,7 +593,7 @@ function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},
577
593
  <slot @slotchange=${this.onContentChange}></slot>
578
594
  </div>
579
595
  </div>
580
- `}onContentChange(t){const e=t.composedPath()[0];this.ftTabs=e.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.onTabUpdated),t.addEventListener("updated",this.onTabUpdated)})),this.updateTabs()}update(t){super.update(t),t.has("activeIndex")&&this.dispatchEvent(new mt)}updated(t){super.updated(t),(t.has("ftTabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new ho(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,e,i,o,s,r,n;if(this.activeTabIndicator){const a=null!==(e=null===(t=this.activeTab)||void 0===t?void 0:t.closest(".ft-tabs--tab-tooltip"))&&void 0!==e?e:this.activeTab;this.activeTabIndicator.style.width=(null!==(i=null==a?void 0:a.clientWidth)&&void 0!==i?i:0)+"px",this.activeTabIndicator.style.left=(null!==(o=null==a?void 0:a.offsetLeft)&&void 0!==o?o:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(s=null==a?void 0:a.offsetTop)&&void 0!==s?s:0)+"px":this.activeTabIndicator.style.top=(null!==(r=null==a?void 0:a.offsetTop)&&void 0!==r?r:0)+(null!==(n=null==a?void 0:a.clientHeight)&&void 0!==n?n:0)-this.activeTabIndicator.clientHeight+"px"}}updateTabs(){this.ftTabs.forEach(((t,e)=>{t.active=e==this.activeIndex}))}addTooltipIfNecessary(t,e){return this.dense&&t.label&&t.icon?X`
596
+ `}onContentChange(t){const e=t.composedPath()[0];this.ftTabs=e.assignedElements().map((t=>t)),this.ftTabs.forEach((t=>{t.removeEventListener("updated",this.onTabUpdated),t.addEventListener("updated",this.onTabUpdated)})),this.updateTabs()}update(t){super.update(t),t.has("activeIndex")&&this.dispatchEvent(new mt),(t.has("ftTabs")||t.has("activeIndex"))&&this.updateTabs(),t.has("activeIndex")&&this.dispatchEvent(new ho(this.activeIndex))}contentAvailableCallback(t){super.contentAvailableCallback(t),this.tabsContainer&&this.resizeObserver.observe(this.tabsContainer),this.placeIndicator()}placeIndicator(){var t,e,i,o,s,r,n;if(this.activeTabIndicator){const a=null!==(e=null===(t=this.activeTab)||void 0===t?void 0:t.closest(".ft-tabs--tab-tooltip"))&&void 0!==e?e:this.activeTab;this.activeTabIndicator.style.width=(null!==(i=null==a?void 0:a.clientWidth)&&void 0!==i?i:0)+"px",this.activeTabIndicator.style.left=(null!==(o=null==a?void 0:a.offsetLeft)&&void 0!==o?o:0)+"px",this.contentBefore?this.activeTabIndicator.style.top=(null!==(s=null==a?void 0:a.offsetTop)&&void 0!==s?s:0)+"px":this.activeTabIndicator.style.top=(null!==(r=null==a?void 0:a.offsetTop)&&void 0!==r?r:0)+(null!==(n=null==a?void 0:a.clientHeight)&&void 0!==n?n:0)-this.activeTabIndicator.clientHeight+"px"}}updateTabs(){this.ftTabs.forEach(((t,e)=>{t.active=e==this.activeIndex}))}addTooltipIfNecessary(t,e){return this.dense&&t.label&&t.icon?X`
581
597
  <ft-tooltip class="ft-tabs--tab-tooltip"
582
598
  part="tab-tooltip"
583
599
  text="${t.label}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-tabs",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "description": "Generic tabs component",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,12 +19,12 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-icon": "1.0.55",
23
- "@fluid-topics/ft-ripple": "1.0.55",
24
- "@fluid-topics/ft-tooltip": "1.0.55",
25
- "@fluid-topics/ft-typography": "1.0.55",
26
- "@fluid-topics/ft-wc-utils": "1.0.55",
22
+ "@fluid-topics/ft-icon": "1.0.56",
23
+ "@fluid-topics/ft-ripple": "1.0.56",
24
+ "@fluid-topics/ft-tooltip": "1.0.56",
25
+ "@fluid-topics/ft-typography": "1.0.56",
26
+ "@fluid-topics/ft-wc-utils": "1.0.56",
27
27
  "lit": "2.7.2"
28
28
  },
29
- "gitHead": "4eca32ed1fec3fd25b6d76b26895a6318cfa8ca2"
29
+ "gitHead": "da00d6ea6bfc74fef8c6687f383355e35a26289b"
30
30
  }