@fluid-topics/ft-switch 0.3.54 → 0.3.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.
@@ -8,7 +8,7 @@ export declare class SwitchOptionChange extends CustomEvent<void> {
8
8
  }
9
9
  export declare class FtSwitchOption extends FtLitElement implements FtSwitchOptionProperties {
10
10
  static elementDefinitions: ElementDefinitionsMap;
11
- static styles: import("lit").CSSResult;
11
+ static styles: import("lit").CSSResult[];
12
12
  value: any;
13
13
  icon?: string;
14
14
  iconVariant?: FtIconVariants;
@@ -6,7 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { html, nothing } from "lit";
8
8
  import { property, query } from "lit/decorators.js";
9
- import { FtLitElement } from "@fluid-topics/ft-wc-utils";
9
+ import { FtLitElement, isSafari, safariEllipsisFix } from "@fluid-topics/ft-wc-utils";
10
10
  import { FtRipple } from "@fluid-topics/ft-ripple";
11
11
  import { FtTypography } from "@fluid-topics/ft-typography";
12
12
  import { classMap } from "lit/directives/class-map.js";
@@ -15,7 +15,7 @@ import { FtIcon, FtIconVariants } from "@fluid-topics/ft-icon";
15
15
  import { optionStyles } from "./ft-switch-option.css";
16
16
  export class SwitchOptionChange extends CustomEvent {
17
17
  constructor() {
18
- super("option-change", { bubbles: true });
18
+ super("option-change", { bubbles: true, composed: true });
19
19
  }
20
20
  }
21
21
  export class FtSwitchOption extends FtLitElement {
@@ -41,18 +41,18 @@ export class FtSwitchOption extends FtLitElement {
41
41
  render() {
42
42
  const classes = {
43
43
  "ft-switch-option": true,
44
- "ft-switch-option--trailing-icon": this.trailingIcon,
44
+ "ft-switch-option--trailing-icon": this.trailingIcon
45
45
  };
46
46
  return this.addTooltip(html `
47
- <label part="label" for="input" class=${classMap(classes)}>
47
+ <label part="label" for="input" class=${classMap(classes)}
48
+ @click=${this.onChange}>
48
49
  <input id="input" type="radio" class="ft-switch-option--input"
49
- .checked=${this.selected}
50
- @click=${this.onChange}>
50
+ .checked=${this.selected}>
51
51
  <div class="ft-switch-option--content">
52
52
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
53
53
  <ft-typography part="text"
54
54
  variant="button"
55
- class="ft-switch-option--label"
55
+ class="ft-switch-option--label ${isSafari ? "ft-safari-ellipsis-fix" : ""}"
56
56
  ?hidden=${!this.hasTextContent()}>
57
57
  <slot @slotchange=${this.onSlotchange}></slot>
58
58
  </ft-typography>
@@ -78,7 +78,7 @@ export class FtSwitchOption extends FtLitElement {
78
78
  }
79
79
  resolveIcon() {
80
80
  return this.icon ? html `
81
- <ft-icon part="icon" .variant=${this.iconVariant}>${this.icon}</ft-icon>
81
+ <ft-icon part="icon" .variant=${this.iconVariant} value=${this.icon}></ft-icon>
82
82
  ` : nothing;
83
83
  }
84
84
  get textContent() {
@@ -98,7 +98,10 @@ FtSwitchOption.elementDefinitions = {
98
98
  "ft-tooltip": FtTooltip,
99
99
  "ft-icon": FtIcon
100
100
  };
101
- FtSwitchOption.styles = optionStyles;
101
+ FtSwitchOption.styles = [
102
+ safariEllipsisFix,
103
+ optionStyles
104
+ ];
102
105
  __decorate([
103
106
  property()
104
107
  ], FtSwitchOption.prototype, "value", void 0);
@@ -88,6 +88,7 @@ export class FtSwitch extends FtLitElement {
88
88
  this.options.push(option);
89
89
  }
90
90
  onOptionChange(e) {
91
+ e.stopPropagation();
91
92
  let option = e.target;
92
93
  if (option.selected) {
93
94
  this.selectedOption = option;
@@ -87,7 +87,7 @@
87
87
  opacity: ${l.opacityContentOnSurfacePressed};
88
88
  transform: translate(-50%, -50%) scale(1);
89
89
  }
90
- `;var x,g=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 y extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
90
+ `;var x,g=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 y extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
91
91
  <style>
92
92
  .ft-ripple .ft-ripple--effect,
93
93
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -104,7 +104,7 @@
104
104
  <div class="ft-ripple--background"></div>
105
105
  <div class="ft-ripple--effect"></div>
106
106
  </div>
107
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),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}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}y.elementDefinitions={},y.styles=u,g([o.property({type:Boolean})],y.prototype,"primary",void 0),g([o.property({type:Boolean})],y.prototype,"secondary",void 0),g([o.property({type:Boolean})],y.prototype,"unbounded",void 0),g([o.property({type:Boolean})],y.prototype,"activated",void 0),g([o.property({type:Boolean})],y.prototype,"selected",void 0),g([o.property({type:Boolean})],y.prototype,"disabled",void 0),g([o.state()],y.prototype,"hovered",void 0),g([o.state()],y.prototype,"focused",void 0),g([o.state()],y.prototype,"pressed",void 0),g([o.state()],y.prototype,"rippling",void 0),g([o.state()],y.prototype,"rippleSize",void 0),g([o.state()],y.prototype,"originX",void 0),g([o.state()],y.prototype,"originY",void 0),g([o.query(".ft-ripple")],y.prototype,"ripple",void 0),g([o.query(".ft-ripple--effect")],y.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(y);const v=window,b=v.trustedTypes,m=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,$=`lit$${(Math.random()+"").slice(9)}$`,w="?"+$,k=`<${w}>`,z=document,C=(t="")=>z.createComment(t),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,S=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,A=/>/g,E=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),I=/'/g,_=/"/g,F=/^(?:script|style|textarea|title)$/i,B=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),R=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),U=new WeakMap,M=z.createTreeWalker(z,129,null,!1),W=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=j;for(let i=0;i<e;i++){const e=t[i];let l,p,h=-1,a=0;for(;a<e.length&&(r.lastIndex=a,p=r.exec(e),null!==p);)a=r.lastIndex,r===j?"!--"===p[1]?r=N:void 0!==p[1]?r=A:void 0!==p[2]?(F.test(p[2])&&(s=RegExp("</"+p[2],"g")),r=E):void 0!==p[3]&&(r=E):r===E?">"===p[0]?(r=null!=s?s:j,h=-1):void 0===p[1]?h=-2:(h=r.lastIndex-p[2].length,l=p[1],r=void 0===p[3]?E:'"'===p[3]?_:I):r===_||r===I?r=E:r===N||r===A?r=j:(r=E,s=void 0);const f=r===E&&t[i+1].startsWith("/>")?" ":"";n+=r===j?e+k:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+$+f):e+$+(-2===h?(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!==m?m.createHTML(l):l,o]};class Z{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[p,h]=W(t,i);if(this.el=Z.createElement(p,e),M.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=M.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith($)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split($),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?H:"?"===i[1]?q:"@"===i[1]?V:G})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(F.test(o.tagName)){const t=o.textContent.split($),i=t.length-1;if(i>0){o.textContent=b?b.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],C()),M.nextNode(),l.push({type:2,index:++s});o.append(t[i],C())}}}else if(8===o.nodeType)if(o.data===w)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf($,t+1));)l.push({type:7,index:s}),t+=$.length-1}s++}}static createElement(t,i){const e=z.createElement("template");return e.innerHTML=t,e}}function D(t,i,e=t,o){var s,n,r,l;if(i===R)return i;let p=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const h=O(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==h&&(null===(n=null==p?void 0:p._$AO)||void 0===n||n.call(p,!1),void 0===h?p=void 0:(p=new h(t),p._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=p:e._$Cl=p),void 0!==p&&(i=D(t,p._$AS(t,i.values),p,o)),i}class K{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:z).importNode(e,!0);M.currentNode=s;let n=M.nextNode(),r=0,l=0,p=o[0];for(;void 0!==p;){if(r===p.index){let i;2===p.type?i=new L(n,n.nextSibling,this,t):1===p.type?i=new p.ctor(n,p.name,p.strings,this,t):6===p.type&&(i=new X(n,this,t)),this.u.push(i),p=o[++l]}r!==(null==p?void 0:p.index)&&(n=M.nextNode(),r++)}return s}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class L{constructor(t,i,e,o){var s;this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=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._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=D(this,t,i),O(t)?t===T||null==t||""===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==R&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>S(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==T&&O(this._$AH)?this._$AA.nextSibling.data=t:this.T(z.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.p(e);else{const t=new K(s,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=U.get(t.strings);return void 0===i&&U.set(t.strings,i=new Z(t)),i}k(t){S(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new L(this.O(C()),this.O(C()),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._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class G{constructor(t,i,e,o,s){this.type=1,this._$AH=T,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=T}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=D(this,t,i,0),n=!O(t)||t!==this._$AH&&t!==R,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=D(this,o[e+r],i,r),l===R&&(l=this._$AH[r]),n||(n=!O(l)||l!==this._$AH[r]),l===T?t=T:t!==T&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class H extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}}const P=b?b.emptyScript:"";class q extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==T?this.element.setAttribute(this.name,P):this.element.removeAttribute(this.name)}}class V extends G{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=D(this,t,i,0))&&void 0!==e?e:T)===R)return;const o=this._$AH,s=t===T&&o!==T||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==T&&(o===T||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 X{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){D(this,t)}}const Y=v.litHtmlPolyfillSupport;null==Y||Y(Z,L),(null!==(x=v.litHtmlVersions)&&void 0!==x?x:v.litHtmlVersions=[]).push("2.4.0");
107
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}y.elementDefinitions={},y.styles=u,g([o.property({type:Boolean})],y.prototype,"primary",void 0),g([o.property({type:Boolean})],y.prototype,"secondary",void 0),g([o.property({type:Boolean})],y.prototype,"unbounded",void 0),g([o.property({type:Boolean})],y.prototype,"activated",void 0),g([o.property({type:Boolean})],y.prototype,"selected",void 0),g([o.property({type:Boolean})],y.prototype,"disabled",void 0),g([o.state()],y.prototype,"hovered",void 0),g([o.state()],y.prototype,"focused",void 0),g([o.state()],y.prototype,"pressed",void 0),g([o.state()],y.prototype,"rippling",void 0),g([o.state()],y.prototype,"rippleSize",void 0),g([o.state()],y.prototype,"originX",void 0),g([o.state()],y.prototype,"originY",void 0),g([o.query(".ft-ripple")],y.prototype,"ripple",void 0),g([o.query(".ft-ripple--effect")],y.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(y);const v=window,b=v.trustedTypes,m=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,$=`lit$${(Math.random()+"").slice(9)}$`,w="?"+$,k=`<${w}>`,z=document,C=(t="")=>z.createComment(t),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,S=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,A=/>/g,E=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),I=/'/g,_=/"/g,F=/^(?:script|style|textarea|title)$/i,B=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),R=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),U=new WeakMap,M=z.createTreeWalker(z,129,null,!1),W=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=j;for(let i=0;i<e;i++){const e=t[i];let l,p,h=-1,a=0;for(;a<e.length&&(r.lastIndex=a,p=r.exec(e),null!==p);)a=r.lastIndex,r===j?"!--"===p[1]?r=N:void 0!==p[1]?r=A:void 0!==p[2]?(F.test(p[2])&&(s=RegExp("</"+p[2],"g")),r=E):void 0!==p[3]&&(r=E):r===E?">"===p[0]?(r=null!=s?s:j,h=-1):void 0===p[1]?h=-2:(h=r.lastIndex-p[2].length,l=p[1],r=void 0===p[3]?E:'"'===p[3]?_:I):r===_||r===I?r=E:r===N||r===A?r=j:(r=E,s=void 0);const f=r===E&&t[i+1].startsWith("/>")?" ":"";n+=r===j?e+k:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+$+f):e+$+(-2===h?(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!==m?m.createHTML(l):l,o]};class Z{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[p,h]=W(t,i);if(this.el=Z.createElement(p,e),M.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=M.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith($)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split($),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?H:"?"===i[1]?q:"@"===i[1]?V:G})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(F.test(o.tagName)){const t=o.textContent.split($),i=t.length-1;if(i>0){o.textContent=b?b.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],C()),M.nextNode(),l.push({type:2,index:++s});o.append(t[i],C())}}}else if(8===o.nodeType)if(o.data===w)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf($,t+1));)l.push({type:7,index:s}),t+=$.length-1}s++}}static createElement(t,i){const e=z.createElement("template");return e.innerHTML=t,e}}function D(t,i,e=t,o){var s,n,r,l;if(i===R)return i;let p=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const h=O(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==h&&(null===(n=null==p?void 0:p._$AO)||void 0===n||n.call(p,!1),void 0===h?p=void 0:(p=new h(t),p._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=p:e._$Cl=p),void 0!==p&&(i=D(t,p._$AS(t,i.values),p,o)),i}class K{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:z).importNode(e,!0);M.currentNode=s;let n=M.nextNode(),r=0,l=0,p=o[0];for(;void 0!==p;){if(r===p.index){let i;2===p.type?i=new L(n,n.nextSibling,this,t):1===p.type?i=new p.ctor(n,p.name,p.strings,this,t):6===p.type&&(i=new X(n,this,t)),this.u.push(i),p=o[++l]}r!==(null==p?void 0:p.index)&&(n=M.nextNode(),r++)}return s}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class L{constructor(t,i,e,o){var s;this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=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._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=D(this,t,i),O(t)?t===T||null==t||""===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==R&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>S(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==T&&O(this._$AH)?this._$AA.nextSibling.data=t:this.T(z.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.p(e);else{const t=new K(s,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=U.get(t.strings);return void 0===i&&U.set(t.strings,i=new Z(t)),i}k(t){S(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new L(this.O(C()),this.O(C()),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._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class G{constructor(t,i,e,o,s){this.type=1,this._$AH=T,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=T}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=D(this,t,i,0),n=!O(t)||t!==this._$AH&&t!==R,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=D(this,o[e+r],i,r),l===R&&(l=this._$AH[r]),n||(n=!O(l)||l!==this._$AH[r]),l===T?t=T:t!==T&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class H extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===T?void 0:t}}const P=b?b.emptyScript:"";class q extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==T?this.element.setAttribute(this.name,P):this.element.removeAttribute(this.name)}}class V extends G{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=D(this,t,i,0))&&void 0!==e?e:T)===R)return;const o=this._$AH,s=t===T&&o!==T||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==T&&(o===T||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 X{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){D(this,t)}}const Y=v.litHtmlPolyfillSupport;null==Y||Y(Z,L),(null!==(x=v.litHtmlVersions)&&void 0!==x?x:v.litHtmlVersions=[]).push("2.4.0");
108
108
  /**
109
109
  * @license
110
110
  * Copyright 2020 Google LLC
@@ -398,16 +398,16 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
398
398
  .ft-switch-option--input:checked + .ft-switch-option--content ft-icon {
399
399
  color: ${Ti.selectedTextColor};
400
400
  }
401
- `;var Wi=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 Zi extends CustomEvent{constructor(){super("option-change",{bubbles:!0})}}class Di extends i.FtLitElement{constructor(){super(...arguments),this.value="",this.iconVariant=Fi.material,this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Zi)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(e.html`
402
- <label part="label" for="input" class=${s.classMap(t)}>
401
+ `;var Wi=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 Zi extends CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class Di extends i.FtLitElement{constructor(){super(...arguments),this.value="",this.iconVariant=Fi.material,this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Zi)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(e.html`
402
+ <label part="label" for="input" class=${s.classMap(t)}
403
+ @click=${this.onChange}>
403
404
  <input id="input" type="radio" class="ft-switch-option--input"
404
- .checked=${this.selected}
405
- @click=${this.onChange}>
405
+ .checked=${this.selected}>
406
406
  <div class="ft-switch-option--content">
407
407
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
408
408
  <ft-typography part="text"
409
409
  variant="button"
410
- class="ft-switch-option--label"
410
+ class="ft-switch-option--label ${i.isSafari?"ft-safari-ellipsis-fix":""}"
411
411
  ?hidden=${!this.hasTextContent()}>
412
412
  <slot @slotchange=${this.onSlotchange}></slot>
413
413
  </ft-typography>
@@ -421,13 +421,13 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
421
421
  ${t}
422
422
  </ft-tooltip>
423
423
  `}onChange(){this.selected=!this.unselectable||!this.selected}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?e.html`
424
- <ft-icon part="icon" .variant=${this.iconVariant}>${this.icon}</ft-icon>
425
- `:e.nothing}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Di.elementDefinitions={"ft-ripple":y,"ft-typography":mi,"ft-tooltip":Ei,"ft-icon":Ri},Di.styles=Mi,Wi([o.property()],Di.prototype,"value",void 0),Wi([o.property()],Di.prototype,"icon",void 0),Wi([o.property()],Di.prototype,"iconVariant",void 0),Wi([o.property()],Di.prototype,"label",void 0),Wi([o.property()],Di.prototype,"tooltipPosition",void 0),Wi([o.property({type:Boolean,reflect:!0})],Di.prototype,"selected",void 0),Wi([o.property({type:Boolean})],Di.prototype,"trailingIcon",void 0),Wi([o.property({type:Boolean})],Di.prototype,"unselectable",void 0),Wi([o.query(".ft-switch-option--content slot")],Di.prototype,"slottedContent",void 0),Wi([o.query(".ft-switch-option--input")],Di.prototype,"input",void 0);var Ki=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 Li extends CustomEvent{constructor(t){super("change",{detail:t})}}class Gi extends i.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var i;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new Li(null===(i=this.selectedOption)||void 0===i?void 0:i.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return e.html`
424
+ <ft-icon part="icon" .variant=${this.iconVariant} value=${this.icon}></ft-icon>
425
+ `:e.nothing}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Di.elementDefinitions={"ft-ripple":y,"ft-typography":mi,"ft-tooltip":Ei,"ft-icon":Ri},Di.styles=[i.safariEllipsisFix,Mi],Wi([o.property()],Di.prototype,"value",void 0),Wi([o.property()],Di.prototype,"icon",void 0),Wi([o.property()],Di.prototype,"iconVariant",void 0),Wi([o.property()],Di.prototype,"label",void 0),Wi([o.property()],Di.prototype,"tooltipPosition",void 0),Wi([o.property({type:Boolean,reflect:!0})],Di.prototype,"selected",void 0),Wi([o.property({type:Boolean})],Di.prototype,"trailingIcon",void 0),Wi([o.property({type:Boolean})],Di.prototype,"unselectable",void 0),Wi([o.query(".ft-switch-option--content slot")],Di.prototype,"slottedContent",void 0),Wi([o.query(".ft-switch-option--input")],Di.prototype,"input",void 0);var Ki=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 Li extends CustomEvent{constructor(t){super("change",{detail:t})}}class Gi extends i.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var i;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new Li(null===(i=this.selectedOption)||void 0===i?void 0:i.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return e.html`
426
426
  <div @keydown=${this.onKeyDown} tabindex="0" class="${s.classMap(t)}">
427
427
  <slot @slotchange=${this.onSlotchange}
428
428
  @option-change=${this.onOptionChange}></slot>
429
429
  </div>
430
- `}onKeyDown(t){let i;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=i&&(t.preventDefault(),this.options[this.fixIndex(i)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Di&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChange(t){let i=t.target;i.selected?this.selectedOption=i:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}Gi.elementDefinitions={},Gi.styles=e.css`
430
+ `}onKeyDown(t){let i;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=i&&(t.preventDefault(),this.options[this.fixIndex(i)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Di&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChange(t){t.stopPropagation();let i=t.target;i.selected?this.selectedOption=i:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}Gi.elementDefinitions={},Gi.styles=e.css`
431
431
  :host {
432
432
  display: inline-block;
433
433
  }
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
16
  */
17
- if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(r.set(s,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=a;if(i)return a=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),s.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=l.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,s=o._getDefinition(i);return s?u(e,s):n.set(e,o),e}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(i.has(n)){const t=this.getAttribute(n);o.call(this,n,s),e.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);s.call(this,o),e.call(this,o,t,null)}else s.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),s.set(t,i),a=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let v=[document];const x=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){v.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&l.set(t,this),v.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const g=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){v.push(this),e.set.call(this,t),v.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==s.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),s=i.get(o)||[];this[+e]=t,s.push(t),i.set(o,s)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=s.get(e);t&&!0!==t.formAssociated||i.push(e)}return new n(i)}})}}try{window.customElements.define("custom-element",null)}catch(ue){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){return this.callbacks=[t],this.debounce(i)}queue(t,i){return this.callbacks.push(t),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,i)=>{this.resolvePromise=t,this.rejectPromise=i}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,i;const e=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(i=this.resolvePromise)&&void 0!==i?i:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,i=window.customElements.define,e=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);f(s,a,l);const h={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,h),this._definitionsByClass.set(s,h);let c=e.call(o,t);c||(c=p(t),i.call(o,t,c)),this===window.customElements&&(r.set(s,h),h.standInClass=c);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const i=this._getDefinition(t);if(void 0!==i)return Promise.resolve(i.elementClass);let e=this._whenDefinedPromises.get(t);return void 0===e&&(e={},e.promise=new Promise((t=>e.resolve=t)),this._whenDefinedPromises.set(t,e)),e.promise}_upgradeWhenDefined(t,i,e){let o=this._awaitingUpgrade.get(i);o||this._awaitingUpgrade.set(i,o=new Set),e?o.add(t):o.delete(t)}},window.HTMLElement=function(){let i=a;if(i)return a=void 0,i;const e=r.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return i=Reflect.construct(t,[],e.standInClass),Object.setPrototypeOf(i,this.constructor.prototype),s.set(i,e),i},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let i=t.getRootNode();if(!h(i)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;i=t.getRootNode(),h(i)||(i=l.get(i)?.getRootNode()||document)}return i.customElements},p=i=>class{static get formAssociated(){return!0}constructor(){const e=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);const o=c(e)||window.customElements,s=o._getDefinition(i);return s?u(e,s):n.set(e,o),e}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,i,!1)}adoptedCallback(){s.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,i,e)=>{if(0===i.size||void 0===e)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(i.has(n)){const t=this.getAttribute(n);o.call(this,n,s),e.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(i.has(o)){const t=this.getAttribute(o);s.call(this,o),e.call(this,o,t,null)}else s.call(this,o)})},d=i=>{const e=Object.getPrototypeOf(i);if(e!==window.HTMLElement)return e===t||"HTMLElement"===e?.prototype?.constructor?.name?Object.setPrototypeOf(i,window.HTMLElement):d(e)},u=(t,i,e=!1)=>{Object.setPrototypeOf(t,i.elementClass.prototype),s.set(t,i),a=t;try{new i.elementClass}catch(t){d(i.elementClass),new i.elementClass}i.observedAttributes.forEach((e=>{t.hasAttribute(e)&&i.attributeChangedCallback.call(t,e,null,t.getAttribute(e))})),e&&i.connectedCallback&&t.isConnected&&i.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const i=y.apply(this,arguments);return t.customElements&&(i.customElements=t.customElements),i};let v=[document];const x=(t,i,e)=>{const o=(e?Object.getPrototypeOf(e):t.prototype)[i];t.prototype[i]=function(){v.push(this);const t=o.apply(e||this,arguments);return void 0!==t&&l.set(t,this),v.pop(),t}};x(ShadowRoot,"createElement",document),x(ShadowRoot,"importNode",document),x(Element,"insertAdjacentHTML");const g=(t,i)=>{const e=Object.getOwnPropertyDescriptor(t.prototype,i);Object.defineProperty(t.prototype,i,{...e,set(t){v.push(this),e.set.call(this,t),v.pop()}})};if(g(Element,"innerHTML"),g(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,i=HTMLElement.prototype.attachInternals,e=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...e){const o=i.call(this,...e);return t.set(o,this),o},e.forEach((i=>{const e=window.ElementInternals.prototype,o=e[i];e[i]=function(...i){const e=t.get(this);if(!0!==s.get(e).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...i)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const i=new Map;t.forEach(((t,e)=>{const o=t.getAttribute("name"),s=i.get(o)||[];this[+e]=t,s.push(t),i.set(o,s)})),this.length=t.length,i.forEach(((t,i)=>{t&&(1===t.length?this[i]=t[0]:this[i]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),i=[];for(const e of t){const t=s.get(e);t&&!0!==t.formAssociated||i.push(e)}return new n(i)}})}}try{window.customElements.define("custom-element",null)}catch(xe){const t=window.customElements.define;window.customElements.define=(i,e,o)=>{try{t.bind(window.customElements)(i,e,o)}catch(t){console.info(i,e,o,t)}}}class i{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,i){return this.callbacks=[t],this.debounce(i)}queue(t,i){return this.callbacks.push(t),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,i)=>{this.resolvePromise=t,this.rejectPromise=i}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,i;const e=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(i=this.resolvePromise)&&void 0!==i?i:()=>null;this.clearPromise();for(let t of e)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
18
18
  /**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
@@ -67,12 +67,12 @@ var ht,ct;class pt extends N{constructor(){super(...arguments),this.renderOption
67
67
  * @license
68
68
  * Copyright 2021 Google LLC
69
69
  * SPDX-License-Identifier: BSD-3-Clause
70
- */var vt,xt,gt=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 bt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return x(s,this.constructor.elementStyles),s}}}(pt)){constructor(){super(),this.exportpartsDebouncer=new i(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),Z`
70
+ */var vt=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 xt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:i,elementDefinitions:e,shadowRootOptions:o}=t;e&&!i&&(t.registry=new CustomElementRegistry,Object.entries(e).forEach((([i,e])=>t.registry.define(i,e))));const s=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return x(s,this.constructor.elementStyles),s}}}(pt)){constructor(){super(),this.exportpartsDebouncer=new i(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),Z`
71
71
  ${t.map((t=>Z`
72
72
  <style>${t}</style>
73
73
  `))}
74
74
  ${this.getTemplate()}
75
- `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var i,e,o,s,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],e=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...i,...e).filter(l).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>a.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}gt([o()],bt.prototype,"exportpartsPrefix",void 0),gt([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],bt.prototype,"exportpartsPrefixes",void 0),gt([o()],bt.prototype,"customStylesheet",void 0),v`
75
+ `}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var i,e;if((null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==e?e:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this.exportpartsDebouncer.run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var i,e,o,s,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(e=null===(i=this.shadowRoot)||void 0===i?void 0:i.querySelectorAll("[part],[exportparts]"))&&void 0!==e?e:[]){const i=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],e=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...i,...e).filter(l).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>a.map((i=>`${t}:${i}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}vt([o()],xt.prototype,"exportpartsPrefix",void 0),vt([function(t,i){const e=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return e();try{return JSON.parse(t)}catch{return e()}},toAttribute:t=>JSON.stringify(t)},...null!=i?i:{}})}([])],xt.prototype,"exportpartsPrefixes",void 0),vt([o()],xt.prototype,"customStylesheet",void 0),v`
76
76
  .ft-no-text-select {
77
77
  -webkit-touch-callout: none;
78
78
  -webkit-user-select: none;
@@ -93,18 +93,28 @@ var ht,ct;class pt extends N{constructor(){super(...arguments),this.renderOption
93
93
  -webkit-hyphens: auto;
94
94
  hyphens: auto
95
95
  }
96
- `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(xt=null===(vt=window.safari)||void 0===vt?void 0:vt.pushNotification)||void 0===xt||xt.toString());
96
+ `;const gt=v`
97
+ .ft-safari-ellipsis-fix {
98
+ margin-right: 0;
99
+
100
+ }
101
+
102
+ .ft-safari-ellipsis-fix:after {
103
+ content: "\\0000a0";
104
+ display: inline-block;
105
+ width: 0;
106
+ }
107
+ `;var bt,mt,wt;const $t=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(wt=null===(mt=null===(bt=window.safari)||void 0===bt?void 0:bt.pushNotification)||void 0===mt?void 0:mt.toString())&&void 0!==wt?wt:""),Ot=1,St=2,kt=t=>(...i)=>({_$litDirective$:t,values:i});
97
108
  /**
98
109
  * @license
99
110
  * Copyright 2017 Google LLC
100
111
  * SPDX-License-Identifier: BSD-3-Clause
101
- */
102
- const mt=1,wt=2,$t=t=>(...i)=>({_$litDirective$:t,values:i});class Ot{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
112
+ */class Ct{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,i,e){this._$Ct=t,this._$AM=i,this._$Ci=e}_$AS(t,i){return this.update(t,i)}update(t,i){return this.render(...i)}}
103
113
  /**
104
114
  * @license
105
115
  * Copyright 2018 Google LLC
106
116
  * SPDX-License-Identifier: BSD-3-Clause
107
- */const St=$t(class extends Ot{constructor(t){var i;if(super(t),t.type!==mt||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const s=t.element.classList;this.nt.forEach((t=>{t in i||(s.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return V}}),kt=dt.extend("--ft-ripple-color",yt.colorContent),Ct={color:kt,backgroundColor:dt.extend("--ft-ripple-background-color",kt),opacityContentOnSurfacePressed:dt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:dt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:dt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:dt.external(yt.opacityContentOnSurfaceSelected,"Design system")},Nt=dt.extend("--ft-ripple-color",yt.colorPrimary),Et=Nt,Rt=dt.extend("--ft-ripple-background-color",Nt),Mt=dt.extend("--ft-ripple-color",yt.colorSecondary),Ut=Mt,Ft=dt.extend("--ft-ripple-background-color",Mt),zt=v`
117
+ */const Nt=kt(class extends Ct{constructor(t){var i;if(super(t),t.type!==Ot||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(t,[i]){var e,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!(null===(e=this.st)||void 0===e?void 0:e.has(t))&&this.nt.add(t);return this.render(i)}const s=t.element.classList;this.nt.forEach((t=>{t in i||(s.remove(t),this.nt.delete(t))}));for(const t in i){const e=!!i[t];e===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(e?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return V}}),Et=dt.extend("--ft-ripple-color",yt.colorContent),Rt={color:Et,backgroundColor:dt.extend("--ft-ripple-background-color",Et),opacityContentOnSurfacePressed:dt.external(yt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:dt.external(yt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:dt.external(yt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:dt.external(yt.opacityContentOnSurfaceSelected,"Design system")},Mt=dt.extend("--ft-ripple-color",yt.colorPrimary),Ut=Mt,Ft=dt.extend("--ft-ripple-background-color",Mt),zt=dt.extend("--ft-ripple-color",yt.colorSecondary),jt=zt,At=dt.extend("--ft-ripple-background-color",zt),Lt=v`
108
118
  :host {
109
119
  display: contents;
110
120
  }
@@ -126,27 +136,27 @@ const mt=1,wt=2,$t=t=>(...i)=>({_$litDirective$:t,values:i});class Ot{constructo
126
136
  }
127
137
 
128
138
  .ft-ripple .ft-ripple--background {
129
- background-color: ${Ct.backgroundColor};
139
+ background-color: ${Rt.backgroundColor};
130
140
  }
131
141
 
132
142
  .ft-ripple .ft-ripple--effect {
133
- background-color: ${Ct.color};
143
+ background-color: ${Rt.color};
134
144
  }
135
145
 
136
146
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
137
- background-color: ${Ft};
147
+ background-color: ${At};
138
148
  }
139
149
 
140
150
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
141
- background-color: ${Ut};
151
+ background-color: ${jt};
142
152
  }
143
153
 
144
154
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
145
- background-color: ${Rt};
155
+ background-color: ${Ft};
146
156
  }
147
157
 
148
158
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
149
- background-color: ${Et};
159
+ background-color: ${Ut};
150
160
  }
151
161
 
152
162
  .ft-ripple .ft-ripple--background {
@@ -178,22 +188,22 @@ const mt=1,wt=2,$t=t=>(...i)=>({_$litDirective$:t,values:i});class Ot{constructo
178
188
  }
179
189
 
180
190
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
181
- opacity: ${Ct.opacityContentOnSurfaceHover};
191
+ opacity: ${Rt.opacityContentOnSurfaceHover};
182
192
  }
183
193
 
184
194
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
185
- opacity: ${Ct.opacityContentOnSurfaceSelected};
195
+ opacity: ${Rt.opacityContentOnSurfaceSelected};
186
196
  }
187
197
 
188
198
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
189
- opacity: ${Ct.opacityContentOnSurfaceFocused};
199
+ opacity: ${Rt.opacityContentOnSurfaceFocused};
190
200
  }
191
201
 
192
202
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
193
- opacity: ${Ct.opacityContentOnSurfacePressed};
203
+ opacity: ${Rt.opacityContentOnSurfacePressed};
194
204
  transform: translate(-50%, -50%) scale(1);
195
205
  }
196
- `;var jt=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 At extends bt{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(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Z`
206
+ `;var Bt=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 Tt extends xt{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(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(10),this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Z`
197
207
  <style>
198
208
  .ft-ripple .ft-ripple--effect,
199
209
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -206,119 +216,119 @@ const mt=1,wt=2,$t=t=>(...i)=>({_$litDirective$:t,values:i});class Ot{constructo
206
216
  top: ${this.originY}px;
207
217
  }
208
218
  </style>
209
- <div class="${St(t)}">
219
+ <div class="${Nt(t)}">
210
220
  <div class="ft-ripple--background"></div>
211
221
  <div class="ft-ripple--effect"></div>
212
222
  </div>
213
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),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}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}At.elementDefinitions={},At.styles=zt,jt([o({type:Boolean})],At.prototype,"primary",void 0),jt([o({type:Boolean})],At.prototype,"secondary",void 0),jt([o({type:Boolean})],At.prototype,"unbounded",void 0),jt([o({type:Boolean})],At.prototype,"activated",void 0),jt([o({type:Boolean})],At.prototype,"selected",void 0),jt([o({type:Boolean})],At.prototype,"disabled",void 0),jt([s()],At.prototype,"hovered",void 0),jt([s()],At.prototype,"focused",void 0),jt([s()],At.prototype,"pressed",void 0),jt([s()],At.prototype,"rippling",void 0),jt([s()],At.prototype,"rippleSize",void 0),jt([s()],At.prototype,"originX",void 0),jt([s()],At.prototype,"originY",void 0),jt([r(".ft-ripple")],At.prototype,"ripple",void 0),jt([r(".ft-ripple--effect")],At.prototype,"rippleEffect",void 0),h("ft-ripple")(At);
223
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Tt.elementDefinitions={},Tt.styles=Lt,Bt([o({type:Boolean})],Tt.prototype,"primary",void 0),Bt([o({type:Boolean})],Tt.prototype,"secondary",void 0),Bt([o({type:Boolean})],Tt.prototype,"unbounded",void 0),Bt([o({type:Boolean})],Tt.prototype,"activated",void 0),Bt([o({type:Boolean})],Tt.prototype,"selected",void 0),Bt([o({type:Boolean})],Tt.prototype,"disabled",void 0),Bt([s()],Tt.prototype,"hovered",void 0),Bt([s()],Tt.prototype,"focused",void 0),Bt([s()],Tt.prototype,"pressed",void 0),Bt([s()],Tt.prototype,"rippling",void 0),Bt([s()],Tt.prototype,"rippleSize",void 0),Bt([s()],Tt.prototype,"originX",void 0),Bt([s()],Tt.prototype,"originY",void 0),Bt([r(".ft-ripple")],Tt.prototype,"ripple",void 0),Bt([r(".ft-ripple--effect")],Tt.prototype,"rippleEffect",void 0),h("ft-ripple")(Tt);
214
224
  /**
215
225
  * @license
216
226
  * Copyright 2020 Google LLC
217
227
  * SPDX-License-Identifier: BSD-3-Clause
218
228
  */
219
- const Lt=Symbol.for(""),Bt=t=>{if((null==t?void 0:t.r)===Lt)return null==t?void 0:t._$litStatic$},Tt=t=>({_$litStatic$:t,r:Lt}),Pt=new Map,_t=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,c=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=Bt(n));)a+=s+i[++h],c=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),c){const t=r.join("$$lit$$");void 0===(i=Pt.get(t))&&(r.raw=r,Pt.set(t,i=r)),e=l}return t(i,...e)})(Z);var Wt;!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"}(Wt||(Wt={}));const Dt=dt.extend("--ft-typography-font-family",yt.titleFont),It=dt.extend("--ft-typography-font-family",yt.contentFont),Ht={fontFamily:It,fontSize:dt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:dt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:dt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:dt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:dt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Kt=dt.extend("--ft-typography-title-font-family",Dt),Zt=dt.extend("--ft-typography-title-font-size",Ht.fontSize,"20px"),Vt=dt.extend("--ft-typography-title-font-weight",Ht.fontWeight,"normal"),Jt=dt.extend("--ft-typography-title-letter-spacing",Ht.letterSpacing,"0.15px"),qt=dt.extend("--ft-typography-title-line-height",Ht.lineHeight,"1.2"),Xt=dt.extend("--ft-typography-title-text-transform",Ht.textTransform,"inherit"),Yt=dt.extend("--ft-typography-title-dense-font-family",Dt),Gt=dt.extend("--ft-typography-title-dense-font-size",Ht.fontSize,"14px"),Qt=dt.extend("--ft-typography-title-dense-font-weight",Ht.fontWeight,"normal"),ti=dt.extend("--ft-typography-title-dense-letter-spacing",Ht.letterSpacing,"0.105px"),ii=dt.extend("--ft-typography-title-dense-line-height",Ht.lineHeight,"1.7"),ei=dt.extend("--ft-typography-title-dense-text-transform",Ht.textTransform,"inherit"),oi=dt.extend("--ft-typography-subtitle1-font-family",It),si=dt.extend("--ft-typography-subtitle1-font-size",Ht.fontSize,"16px"),ni=dt.extend("--ft-typography-subtitle1-font-weight",Ht.fontWeight,"600"),ri=dt.extend("--ft-typography-subtitle1-letter-spacing",Ht.letterSpacing,"0.144px"),li=dt.extend("--ft-typography-subtitle1-line-height",Ht.lineHeight,"1.5"),ai=dt.extend("--ft-typography-subtitle1-text-transform",Ht.textTransform,"inherit"),hi=dt.extend("--ft-typography-subtitle2-font-family",It),ci=dt.extend("--ft-typography-subtitle2-font-size",Ht.fontSize,"14px"),pi=dt.extend("--ft-typography-subtitle2-font-weight",Ht.fontWeight,"normal"),fi=dt.extend("--ft-typography-subtitle2-letter-spacing",Ht.letterSpacing,"0.098px"),di=dt.extend("--ft-typography-subtitle2-line-height",Ht.lineHeight,"1.7"),ui=dt.extend("--ft-typography-subtitle2-text-transform",Ht.textTransform,"inherit"),yi=dt.extend("--ft-typography-body1-font-family",It),vi=dt.extend("--ft-typography-body1-font-size",Ht.fontSize,"16px"),xi=dt.extend("--ft-typography-body1-font-weight",Ht.fontWeight,"normal"),gi=dt.extend("--ft-typography-body1-letter-spacing",Ht.letterSpacing,"0.496px"),bi=dt.extend("--ft-typography-body1-line-height",Ht.lineHeight,"1.5"),mi=dt.extend("--ft-typography-body1-text-transform",Ht.textTransform,"inherit"),wi=dt.extend("--ft-typography-body2-font-family",It),$i=dt.extend("--ft-typography-body2-font-size",Ht.fontSize,"14px"),Oi=dt.extend("--ft-typography-body2-font-weight",Ht.fontWeight,"normal"),Si=dt.extend("--ft-typography-body2-letter-spacing",Ht.letterSpacing,"0.252px"),ki=dt.extend("--ft-typography-body2-line-height",Ht.lineHeight,"1.4"),Ci=dt.extend("--ft-typography-body2-text-transform",Ht.textTransform,"inherit"),Ni=dt.extend("--ft-typography-caption-font-family",It),Ei=dt.extend("--ft-typography-caption-font-size",Ht.fontSize,"12px"),Ri=dt.extend("--ft-typography-caption-font-weight",Ht.fontWeight,"normal"),Mi=dt.extend("--ft-typography-caption-letter-spacing",Ht.letterSpacing,"0.396px"),Ui=dt.extend("--ft-typography-caption-line-height",Ht.lineHeight,"1.33"),Fi=dt.extend("--ft-typography-caption-text-transform",Ht.textTransform,"inherit"),zi=dt.extend("--ft-typography-breadcrumb-font-family",It),ji=dt.extend("--ft-typography-breadcrumb-font-size",Ht.fontSize,"10px"),Ai=dt.extend("--ft-typography-breadcrumb-font-weight",Ht.fontWeight,"normal"),Li=dt.extend("--ft-typography-breadcrumb-letter-spacing",Ht.letterSpacing,"0.33px"),Bi=dt.extend("--ft-typography-breadcrumb-line-height",Ht.lineHeight,"1.6"),Ti=dt.extend("--ft-typography-breadcrumb-text-transform",Ht.textTransform,"inherit"),Pi=dt.extend("--ft-typography-overline-font-family",It),_i=dt.extend("--ft-typography-overline-font-size",Ht.fontSize,"10px"),Wi=dt.extend("--ft-typography-overline-font-weight",Ht.fontWeight,"normal"),Di=dt.extend("--ft-typography-overline-letter-spacing",Ht.letterSpacing,"1.5px"),Ii=dt.extend("--ft-typography-overline-line-height",Ht.lineHeight,"1.6"),Hi=dt.extend("--ft-typography-overline-text-transform",Ht.textTransform,"uppercase"),Ki={fontFamily:dt.extend("--ft-typography-button-font-family",It),fontSize:dt.extend("--ft-typography-button-font-size",Ht.fontSize,"14px"),fontWeight:dt.extend("--ft-typography-button-font-weight",Ht.fontWeight,"600"),letterSpacing:dt.extend("--ft-typography-button-letter-spacing",Ht.letterSpacing,"1.246px"),lineHeight:dt.extend("--ft-typography-button-line-height",Ht.lineHeight,"1.15"),textTransform:dt.extend("--ft-typography-button-text-transform",Ht.textTransform,"uppercase")},Zi=v`
229
+ const Pt=Symbol.for(""),_t=t=>{if((null==t?void 0:t.r)===Pt)return null==t?void 0:t._$litStatic$},Wt=t=>({_$litStatic$:t,r:Pt}),Dt=new Map,It=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,c=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=_t(n));)a+=s+i[++h],c=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),c){const t=r.join("$$lit$$");void 0===(i=Dt.get(t))&&(r.raw=r,Dt.set(t,i=r)),e=l}return t(i,...e)})(Z);var Ht;!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"}(Ht||(Ht={}));const Kt=dt.extend("--ft-typography-font-family",yt.titleFont),Zt=dt.extend("--ft-typography-font-family",yt.contentFont),Vt={fontFamily:Zt,fontSize:dt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:dt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:dt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:dt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:dt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Jt=dt.extend("--ft-typography-title-font-family",Kt),qt=dt.extend("--ft-typography-title-font-size",Vt.fontSize,"20px"),Xt=dt.extend("--ft-typography-title-font-weight",Vt.fontWeight,"normal"),Yt=dt.extend("--ft-typography-title-letter-spacing",Vt.letterSpacing,"0.15px"),Gt=dt.extend("--ft-typography-title-line-height",Vt.lineHeight,"1.2"),Qt=dt.extend("--ft-typography-title-text-transform",Vt.textTransform,"inherit"),ti=dt.extend("--ft-typography-title-dense-font-family",Kt),ii=dt.extend("--ft-typography-title-dense-font-size",Vt.fontSize,"14px"),ei=dt.extend("--ft-typography-title-dense-font-weight",Vt.fontWeight,"normal"),oi=dt.extend("--ft-typography-title-dense-letter-spacing",Vt.letterSpacing,"0.105px"),si=dt.extend("--ft-typography-title-dense-line-height",Vt.lineHeight,"1.7"),ni=dt.extend("--ft-typography-title-dense-text-transform",Vt.textTransform,"inherit"),ri=dt.extend("--ft-typography-subtitle1-font-family",Zt),li=dt.extend("--ft-typography-subtitle1-font-size",Vt.fontSize,"16px"),ai=dt.extend("--ft-typography-subtitle1-font-weight",Vt.fontWeight,"600"),hi=dt.extend("--ft-typography-subtitle1-letter-spacing",Vt.letterSpacing,"0.144px"),ci=dt.extend("--ft-typography-subtitle1-line-height",Vt.lineHeight,"1.5"),pi=dt.extend("--ft-typography-subtitle1-text-transform",Vt.textTransform,"inherit"),fi=dt.extend("--ft-typography-subtitle2-font-family",Zt),di=dt.extend("--ft-typography-subtitle2-font-size",Vt.fontSize,"14px"),ui=dt.extend("--ft-typography-subtitle2-font-weight",Vt.fontWeight,"normal"),yi=dt.extend("--ft-typography-subtitle2-letter-spacing",Vt.letterSpacing,"0.098px"),vi=dt.extend("--ft-typography-subtitle2-line-height",Vt.lineHeight,"1.7"),xi=dt.extend("--ft-typography-subtitle2-text-transform",Vt.textTransform,"inherit"),gi=dt.extend("--ft-typography-body1-font-family",Zt),bi=dt.extend("--ft-typography-body1-font-size",Vt.fontSize,"16px"),mi=dt.extend("--ft-typography-body1-font-weight",Vt.fontWeight,"normal"),wi=dt.extend("--ft-typography-body1-letter-spacing",Vt.letterSpacing,"0.496px"),$i=dt.extend("--ft-typography-body1-line-height",Vt.lineHeight,"1.5"),Oi=dt.extend("--ft-typography-body1-text-transform",Vt.textTransform,"inherit"),Si=dt.extend("--ft-typography-body2-font-family",Zt),ki=dt.extend("--ft-typography-body2-font-size",Vt.fontSize,"14px"),Ci=dt.extend("--ft-typography-body2-font-weight",Vt.fontWeight,"normal"),Ni=dt.extend("--ft-typography-body2-letter-spacing",Vt.letterSpacing,"0.252px"),Ei=dt.extend("--ft-typography-body2-line-height",Vt.lineHeight,"1.4"),Ri=dt.extend("--ft-typography-body2-text-transform",Vt.textTransform,"inherit"),Mi=dt.extend("--ft-typography-caption-font-family",Zt),Ui=dt.extend("--ft-typography-caption-font-size",Vt.fontSize,"12px"),Fi=dt.extend("--ft-typography-caption-font-weight",Vt.fontWeight,"normal"),zi=dt.extend("--ft-typography-caption-letter-spacing",Vt.letterSpacing,"0.396px"),ji=dt.extend("--ft-typography-caption-line-height",Vt.lineHeight,"1.33"),Ai=dt.extend("--ft-typography-caption-text-transform",Vt.textTransform,"inherit"),Li=dt.extend("--ft-typography-breadcrumb-font-family",Zt),Bi=dt.extend("--ft-typography-breadcrumb-font-size",Vt.fontSize,"10px"),Ti=dt.extend("--ft-typography-breadcrumb-font-weight",Vt.fontWeight,"normal"),Pi=dt.extend("--ft-typography-breadcrumb-letter-spacing",Vt.letterSpacing,"0.33px"),_i=dt.extend("--ft-typography-breadcrumb-line-height",Vt.lineHeight,"1.6"),Wi=dt.extend("--ft-typography-breadcrumb-text-transform",Vt.textTransform,"inherit"),Di=dt.extend("--ft-typography-overline-font-family",Zt),Ii=dt.extend("--ft-typography-overline-font-size",Vt.fontSize,"10px"),Hi=dt.extend("--ft-typography-overline-font-weight",Vt.fontWeight,"normal"),Ki=dt.extend("--ft-typography-overline-letter-spacing",Vt.letterSpacing,"1.5px"),Zi=dt.extend("--ft-typography-overline-line-height",Vt.lineHeight,"1.6"),Vi=dt.extend("--ft-typography-overline-text-transform",Vt.textTransform,"uppercase"),Ji={fontFamily:dt.extend("--ft-typography-button-font-family",Zt),fontSize:dt.extend("--ft-typography-button-font-size",Vt.fontSize,"14px"),fontWeight:dt.extend("--ft-typography-button-font-weight",Vt.fontWeight,"600"),letterSpacing:dt.extend("--ft-typography-button-letter-spacing",Vt.letterSpacing,"1.246px"),lineHeight:dt.extend("--ft-typography-button-line-height",Vt.lineHeight,"1.15"),textTransform:dt.extend("--ft-typography-button-text-transform",Vt.textTransform,"uppercase")},qi=v`
220
230
  .ft-typography--title {
221
- font-family: ${Kt};
222
- font-size: ${Zt};
223
- font-weight: ${Vt};
224
- letter-spacing: ${Jt};
225
- line-height: ${qt};
226
- text-transform: ${Xt};
227
- }
228
- `,Vi=v`
229
- .ft-typography--title-dense {
230
- font-family: ${Yt};
231
- font-size: ${Gt};
232
- font-weight: ${Qt};
233
- letter-spacing: ${ti};
234
- line-height: ${ii};
235
- text-transform: ${ei};
236
- }
237
- `,Ji=v`
238
- .ft-typography--subtitle1 {
239
- font-family: ${oi};
240
- font-size: ${si};
241
- font-weight: ${ni};
242
- letter-spacing: ${ri};
243
- line-height: ${li};
244
- text-transform: ${ai};
245
- }
246
- `,qi=v`
247
- .ft-typography--subtitle2 {
248
- font-family: ${hi};
249
- font-size: ${ci};
250
- font-weight: ${pi};
251
- letter-spacing: ${fi};
252
- line-height: ${di};
253
- text-transform: ${ui};
231
+ font-family: ${Jt};
232
+ font-size: ${qt};
233
+ font-weight: ${Xt};
234
+ letter-spacing: ${Yt};
235
+ line-height: ${Gt};
236
+ text-transform: ${Qt};
254
237
  }
255
-
256
238
  `,Xi=v`
257
- .ft-typography--body1 {
258
- font-family: ${yi};
259
- font-size: ${vi};
260
- font-weight: ${xi};
261
- letter-spacing: ${gi};
262
- line-height: ${bi};
263
- text-transform: ${mi};
239
+ .ft-typography--title-dense {
240
+ font-family: ${ti};
241
+ font-size: ${ii};
242
+ font-weight: ${ei};
243
+ letter-spacing: ${oi};
244
+ line-height: ${si};
245
+ text-transform: ${ni};
264
246
  }
265
247
  `,Yi=v`
266
- .ft-typography--body2 {
267
- font-family: ${wi};
268
- font-size: ${$i};
269
- font-weight: ${Oi};
270
- letter-spacing: ${Si};
271
- line-height: ${ki};
272
- text-transform: ${Ci};
248
+ .ft-typography--subtitle1 {
249
+ font-family: ${ri};
250
+ font-size: ${li};
251
+ font-weight: ${ai};
252
+ letter-spacing: ${hi};
253
+ line-height: ${ci};
254
+ text-transform: ${pi};
273
255
  }
274
256
  `,Gi=v`
275
- .ft-typography--caption {
276
- font-family: ${Ni};
277
- font-size: ${Ei};
278
- font-weight: ${Ri};
279
- letter-spacing: ${Mi};
280
- line-height: ${Ui};
281
- text-transform: ${Fi};
257
+ .ft-typography--subtitle2 {
258
+ font-family: ${fi};
259
+ font-size: ${di};
260
+ font-weight: ${ui};
261
+ letter-spacing: ${yi};
262
+ line-height: ${vi};
263
+ text-transform: ${xi};
282
264
  }
265
+
283
266
  `,Qi=v`
284
- .ft-typography--breadcrumb {
285
- font-family: ${zi};
286
- font-size: ${ji};
287
- font-weight: ${Ai};
288
- letter-spacing: ${Li};
289
- line-height: ${Bi};
290
- text-transform: ${Ti};
267
+ .ft-typography--body1 {
268
+ font-family: ${gi};
269
+ font-size: ${bi};
270
+ font-weight: ${mi};
271
+ letter-spacing: ${wi};
272
+ line-height: ${$i};
273
+ text-transform: ${Oi};
291
274
  }
292
275
  `,te=v`
293
- .ft-typography--overline {
294
- font-family: ${Pi};
295
- font-size: ${_i};
296
- font-weight: ${Wi};
297
- letter-spacing: ${Di};
298
- line-height: ${Ii};
299
- text-transform: ${Hi};
276
+ .ft-typography--body2 {
277
+ font-family: ${Si};
278
+ font-size: ${ki};
279
+ font-weight: ${Ci};
280
+ letter-spacing: ${Ni};
281
+ line-height: ${Ei};
282
+ text-transform: ${Ri};
300
283
  }
301
284
  `,ie=v`
302
- .ft-typography--button {
303
- font-family: ${Ki.fontFamily};
304
- font-size: ${Ki.fontSize};
305
- font-weight: ${Ki.fontWeight};
306
- letter-spacing: ${Ki.letterSpacing};
307
- line-height: ${Ki.lineHeight};
308
- text-transform: ${Ki.textTransform};
285
+ .ft-typography--caption {
286
+ font-family: ${Mi};
287
+ font-size: ${Ui};
288
+ font-weight: ${Fi};
289
+ letter-spacing: ${zi};
290
+ line-height: ${ji};
291
+ text-transform: ${Ai};
309
292
  }
310
293
  `,ee=v`
294
+ .ft-typography--breadcrumb {
295
+ font-family: ${Li};
296
+ font-size: ${Bi};
297
+ font-weight: ${Ti};
298
+ letter-spacing: ${Pi};
299
+ line-height: ${_i};
300
+ text-transform: ${Wi};
301
+ }
302
+ `,oe=v`
303
+ .ft-typography--overline {
304
+ font-family: ${Di};
305
+ font-size: ${Ii};
306
+ font-weight: ${Hi};
307
+ letter-spacing: ${Ki};
308
+ line-height: ${Zi};
309
+ text-transform: ${Vi};
310
+ }
311
+ `,se=v`
312
+ .ft-typography--button {
313
+ font-family: ${Ji.fontFamily};
314
+ font-size: ${Ji.fontSize};
315
+ font-weight: ${Ji.fontWeight};
316
+ letter-spacing: ${Ji.letterSpacing};
317
+ line-height: ${Ji.lineHeight};
318
+ text-transform: ${Ji.textTransform};
319
+ }
320
+ `,ne=v`
311
321
  .ft-typography {
312
322
  vertical-align: inherit;
313
323
  }
314
- `;var oe=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class se extends bt{constructor(){super(...arguments),this.variant=Wt.body1}render(){return this.element?_t`
315
- <${Tt(this.element)}
324
+ `;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 xt{constructor(){super(...arguments),this.variant=Ht.body1}render(){return this.element?It`
325
+ <${Wt(this.element)}
316
326
  class="ft-typography ft-typography--${this.variant}">
317
327
  <slot></slot>
318
- </${Tt(this.element)}>
319
- `:_t`
328
+ </${Wt(this.element)}>
329
+ `:It`
320
330
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
321
- `}}se.styles=[Zi,Vi,Ji,qi,Xi,Yi,Gi,Qi,te,ie,ee],oe([o()],se.prototype,"element",void 0),oe([o()],se.prototype,"variant",void 0),h("ft-typography")(se);const ne=dt.create("--ft-tooltip-distance","SIZE","4px"),re=dt.create("--ft-tooltip-color","COLOR","#FFFFFF"),le=dt.create("--ft-tooltip-background-color","COLOR","#666666"),ae=dt.create("--ft-tooltip-z-index","NUMBER","1"),he=dt.external(yt.borderRadiusS,"Design system"),ce=dt.create("--ft-tooltip-max-width","SIZE","150px"),pe=v`
331
+ `}}le.styles=[qi,Xi,Yi,Gi,Qi,te,ie,ee,oe,se,ne],re([o()],le.prototype,"element",void 0),re([o()],le.prototype,"variant",void 0),h("ft-typography")(le);const ae=dt.create("--ft-tooltip-distance","SIZE","4px"),he=dt.create("--ft-tooltip-color","COLOR","#FFFFFF"),ce=dt.create("--ft-tooltip-background-color","COLOR","#666666"),pe=dt.create("--ft-tooltip-z-index","NUMBER","1"),fe=dt.external(yt.borderRadiusS,"Design system"),de=dt.create("--ft-tooltip-max-width","SIZE","150px"),ue=v`
322
332
  .ft-tooltip--container {
323
333
  display: block;
324
334
  position: relative;
@@ -334,23 +344,23 @@ const Lt=Symbol.for(""),Bt=t=>{if((null==t?void 0:t.r)===Lt)return null==t?void
334
344
  box-sizing: border-box;
335
345
  overflow: hidden;
336
346
  width: max-content;
337
- max-width: ${ce};
347
+ max-width: ${de};
338
348
  text-align: center;
339
- padding: ${ne};
340
- z-index: ${ae};
349
+ padding: ${ae};
350
+ z-index: ${pe};
341
351
  }
342
352
 
343
353
  .ft-tooltip--content {
344
354
  padding: 4px 8px;
345
- border-radius: ${he};
346
- background-color: ${le};
347
- color: ${re};
355
+ border-radius: ${fe};
356
+ background-color: ${ce};
357
+ color: ${he};
348
358
  top: -500px;
349
359
  left: -500px;
350
360
  position: relative;
351
361
  word-break: break-word;
352
362
  }
353
- `;var fe=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 de extends bt{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,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Z`
363
+ `;var ye=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 ve extends xt{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,this.revealDebouncer=new i}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Z`
354
364
  <div part="container"
355
365
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
356
366
  @mouseenter=${this.onHover}
@@ -368,19 +378,19 @@ const Lt=Symbol.for(""),Bt=t=>{if((null==t?void 0:t.r)===Lt)return null==t?void
368
378
  </div>
369
379
  </div>
370
380
  </div>
371
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${ce})`}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())}}de.elementDefinitions={"ft-typography":se},de.styles=pe,fe([o()],de.prototype,"text",void 0),fe([o({type:Boolean})],de.prototype,"manual",void 0),fe([o({type:Boolean})],de.prototype,"inline",void 0),fe([o({type:Number})],de.prototype,"delay",void 0),fe([o()],de.prototype,"position",void 0),fe([
381
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){["visible","text"].some((i=>t.has(i)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let s=0,n=0;switch(this.validPosition){case"top":n=-this.tooltip.clientHeight,s=o;break;case"bottom":n=i.height,s=o;break;case"left":n=e,s=-this.tooltip.clientWidth;break;case"right":n=e,s=i.width}i.left+s+this.tooltip.clientWidth>window.innerWidth&&(s=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+s<0&&(s=0);const r=this.tooltip.style;r.left=s+"px",r.top=n+"px",r.maxWidth=`max(${i.width}px, ${de})`}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())}}ve.elementDefinitions={"ft-typography":le},ve.styles=ue,ye([o()],ve.prototype,"text",void 0),ye([o({type:Boolean})],ve.prototype,"manual",void 0),ye([o({type:Boolean})],ve.prototype,"inline",void 0),ye([o({type:Number})],ve.prototype,"delay",void 0),ye([o()],ve.prototype,"position",void 0),ye([
372
382
  /**
373
383
  * @license
374
384
  * Copyright 2017 Google LLC
375
385
  * SPDX-License-Identifier: BSD-3-Clause
376
386
  */
377
- function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const s="slot"+(i?`[name=${i}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?a(n,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:s,flatten:i,selector:e}):n({descriptor:t=>({get(){var t,i;const e="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==n?void 0:n.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],de.prototype,"slotNodes",void 0),fe([r(".ft-tooltip--container")],de.prototype,"container",void 0),fe([r("slot")],de.prototype,"target",void 0),fe([r(".ft-tooltip")],de.prototype,"tooltip",void 0),fe([r(".ft-tooltip--content")],de.prototype,"tooltipContent",void 0),fe([s()],de.prototype,"visible",void 0),h("ft-tooltip")(de);
387
+ function(t,i,e){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:i},e?function(t){const{slot:i,selector:e}=null!=t?t:{};return n({descriptor:o=>({get(){var o;const s="slot"+(i?`[name=${i}]`:":not([name])"),n=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(s),r=null!=n?a(n,t):[];return e?r.filter((t=>t.matches(e))):r},enumerable:!0,configurable:!0})})}({slot:s,flatten:i,selector:e}):n({descriptor:t=>({get(){var t,i;const e="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(e);return null!==(i=null==n?void 0:n.assignedNodes(o))&&void 0!==i?i:[]},enumerable:!0,configurable:!0})})}("",!0)],ve.prototype,"slotNodes",void 0),ye([r(".ft-tooltip--container")],ve.prototype,"container",void 0),ye([r("slot")],ve.prototype,"target",void 0),ye([r(".ft-tooltip")],ve.prototype,"tooltip",void 0),ye([r(".ft-tooltip--content")],ve.prototype,"tooltipContent",void 0),ye([s()],ve.prototype,"visible",void 0),h("ft-tooltip")(ve);
378
388
  /**
379
389
  * @license
380
390
  * Copyright 2017 Google LLC
381
391
  * SPDX-License-Identifier: BSD-3-Clause
382
392
  */
383
- class ue extends Ot{constructor(t){if(super(t),this.it=J,t.type!==wt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this._t=void 0,this.it=t;if(t===V)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}ue.directiveName="unsafeHTML",ue.resultType=1;const ye=$t(ue);var ve,xe;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(ve||(ve={})),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;"}(xe||(xe={})),new Map([...["abw"].map((t=>[t,xe.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,xe.AUDIO])),...["avi"].map((t=>[t,xe.AVI])),...["chm","xhs"].map((t=>[t,xe.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,xe.CODE])),...["csv"].map((t=>[t,xe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,xe.DITA])),...["epub"].map((t=>[t,xe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,xe.EXCEL])),...["flac"].map((t=>[t,xe.FLAC])),...["gif"].map((t=>[t,xe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,xe.GZIP])),...["html","htm","xhtml"].map((t=>[t,xe.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,xe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,xe.JPEG])),...["json"].map((t=>[t,xe.JSON])),...["m4a","m4p"].map((t=>[t,xe.M4A])),...["mov","qt"].map((t=>[t,xe.MOV])),...["mp3"].map((t=>[t,xe.MP3])),...["mp4","m4v"].map((t=>[t,xe.MP4])),...["ogg","oga"].map((t=>[t,xe.OGG])),...["pdf","ps"].map((t=>[t,xe.PDF])),...["png"].map((t=>[t,xe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,xe.POWERPOINT])),...["rar"].map((t=>[t,xe.RAR])),...["stp"].map((t=>[t,xe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,xe.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,xe.VIDEO])),...["wav"].map((t=>[t,xe.WAV])),...["wma"].map((t=>[t,xe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,xe.WORD])),...["xml","xsl","rdf"].map((t=>[t,xe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,xe.YAML])),...["zip"].map((t=>[t,xe.ZIP]))]);const ge={size:dt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:dt.extend("--ft-icon-fluid-topics-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:dt.extend("--ft-icon-file-format-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:dt.extend("--ft-icon-material-font-family",dt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:dt.create("--ft-icon-vertical-align","UNKNOWN","unset")},be=v`
393
+ class xe extends Ct{constructor(t){if(super(t),this.it=J,t.type!==St)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this._t=void 0,this.it=t;if(t===V)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const i=[t];return i.raw=i,this._t={_$litType$:this.constructor.resultType,strings:i,values:[]}}}xe.directiveName="unsafeHTML",xe.resultType=1;const ge=kt(xe);var be,me;!function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(be||(be={})),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;"}(me||(me={})),new Map([...["abw"].map((t=>[t,me.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,me.AUDIO])),...["avi"].map((t=>[t,me.AVI])),...["chm","xhs"].map((t=>[t,me.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,me.CODE])),...["csv"].map((t=>[t,me.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,me.DITA])),...["epub"].map((t=>[t,me.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,me.EXCEL])),...["flac"].map((t=>[t,me.FLAC])),...["gif"].map((t=>[t,me.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,me.GZIP])),...["html","htm","xhtml"].map((t=>[t,me.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,me.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,me.JPEG])),...["json"].map((t=>[t,me.JSON])),...["m4a","m4p"].map((t=>[t,me.M4A])),...["mov","qt"].map((t=>[t,me.MOV])),...["mp3"].map((t=>[t,me.MP3])),...["mp4","m4v"].map((t=>[t,me.MP4])),...["ogg","oga"].map((t=>[t,me.OGG])),...["pdf","ps"].map((t=>[t,me.PDF])),...["png"].map((t=>[t,me.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,me.POWERPOINT])),...["rar"].map((t=>[t,me.RAR])),...["stp"].map((t=>[t,me.STP])),...["txt","rtf","md","mdown"].map((t=>[t,me.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,me.VIDEO])),...["wav"].map((t=>[t,me.WAV])),...["wma"].map((t=>[t,me.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,me.WORD])),...["xml","xsl","rdf"].map((t=>[t,me.XML])),...["yaml","yml","x-yaml"].map((t=>[t,me.YAML])),...["zip"].map((t=>[t,me.ZIP]))]);const we={size:dt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:dt.extend("--ft-icon-fluid-topics-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:dt.extend("--ft-icon-file-format-font-family",dt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:dt.extend("--ft-icon-material-font-family",dt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:dt.create("--ft-icon-vertical-align","UNKNOWN","unset")},$e=v`
384
394
  :host, i.ft-icon {
385
395
  display: inline-flex;
386
396
  align-items: center;
@@ -389,14 +399,14 @@ class ue extends Ot{constructor(t){if(super(t),this.it=J,t.type!==wt)throw Error
389
399
  }
390
400
 
391
401
  :host {
392
- width: ${ge.size};
393
- height: ${ge.size};
402
+ width: ${we.size};
403
+ height: ${we.size};
394
404
  }
395
405
 
396
406
  i.ft-icon {
397
407
  width: 100%;
398
408
  height: 100%;
399
- font-size: ${ge.size};
409
+ font-size: ${we.size};
400
410
  line-height: 1;
401
411
  font-weight: normal;
402
412
  text-transform: none;
@@ -407,32 +417,32 @@ class ue extends Ot{constructor(t){if(super(t),this.it=J,t.type!==wt)throw Error
407
417
  text-rendering: auto;
408
418
  -webkit-font-smoothing: antialiased;
409
419
  -moz-osx-font-smoothing: grayscale;
410
- vertical-align: ${ge.verticalAlign};
420
+ vertical-align: ${we.verticalAlign};
411
421
  }
412
422
 
413
423
  i.ft-icon.ft-icon--fluid-topics {
414
- font-family: ${ge.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
424
+ font-family: ${we.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
415
425
 
416
426
  /* Ugly fix because font is broken */
417
- font-size: calc(0.9 * ${ge.size});
427
+ font-size: calc(0.9 * ${we.size});
418
428
  position: relative;
419
429
  top: -5%;
420
430
  justify-content: center;
421
431
  }
422
432
 
423
433
  .ft-icon--file-format {
424
- font-family: ${ge.fileFormatFontFamily}, ft-mime, sans-serif;
434
+ font-family: ${we.fileFormatFontFamily}, ft-mime, sans-serif;
425
435
  }
426
436
 
427
437
  .ft-icon--material {
428
- font-family: ${ge.materialFontFamily}, "Material Icons", sans-serif;
438
+ font-family: ${we.materialFontFamily}, "Material Icons", sans-serif;
429
439
  }
430
- `;var me;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(me||(me={}));var we=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 $e extends bt{constructor(){super(...arguments),this.variant=me.fluid_topics,this.resolvedIcon=J}render(){const t="material"!==this.variant||this.value;return Z`
440
+ `;var Oe;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Oe||(Oe={}));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 ke extends xt{constructor(){super(...arguments),this.variant=Oe.fluid_topics,this.resolvedIcon=J}render(){const t="material"!==this.variant||this.value;return Z`
431
441
  <i class="ft-icon ${"ft-icon--"+this.variant}">
432
- ${ye(this.resolvedIcon)}
442
+ ${ge(this.resolvedIcon)}
433
443
  <slot ?hidden=${t}></slot>
434
444
  </i>
435
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case me.file_format:this.resolvedIcon=null!==(t=xe[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case me.fluid_topics:this.resolvedIcon=null!==(i=ve[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}$e.elementDefinitions={},$e.styles=be,we([o()],$e.prototype,"variant",void 0),we([o()],$e.prototype,"value",void 0),we([s()],$e.prototype,"resolvedIcon",void 0),we([r("slot")],$e.prototype,"slottedContent",void 0),h("ft-icon")($e);const Oe={textColor:dt.extend("--ft-switch-text-color",yt.colorOnSurfaceHigh),backgroundColor:dt.extend("--ft-switch-background-color",yt.colorSurface),selectedTextColor:dt.extend("--ft-switch-selected-text-color",yt.colorPrimary),selectedBackgroundColor:dt.extend("--ft-switch-selected-background-color",yt.colorPrimary),borderColor:dt.extend("--ft-switch-border-color",yt.colorOutline),borderRadius:dt.extend("--ft-switch-border-radius",yt.borderRadiusL),fontSize:dt.extend("--ft-switch-font-size",Ki.fontSize),iconSize:dt.create("--ft-switch-icon-size","SIZE","24px"),iconColor:dt.extend("--ft-switch-text-color",yt.colorOnSurfaceMedium),rippleColor:dt.extend("--ft-switch-ripple-color",yt.colorPrimary),outlineColor:dt.extend("--ft-switch-outline-color",yt.colorPrimary)},Se={borderRadiusLeft:dt.extend("--ft-switch-option-border-radius-left",yt.borderRadiusL),borderRadiusRight:dt.extend("--ft-switch-option-border-radius-right",yt.borderRadiusL),borderWidthLeft:dt.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:dt.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:dt.create("--ft-switch-option-border-width-vertical","SIZE","1px")},ke=v`
445
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case Oe.file_format:this.resolvedIcon=null!==(t=me[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Oe.fluid_topics:this.resolvedIcon=null!==(i=be[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ke.elementDefinitions={},ke.styles=$e,Se([o()],ke.prototype,"variant",void 0),Se([o()],ke.prototype,"value",void 0),Se([s()],ke.prototype,"resolvedIcon",void 0),Se([r("slot")],ke.prototype,"slottedContent",void 0),h("ft-icon")(ke);const Ce={textColor:dt.extend("--ft-switch-text-color",yt.colorOnSurfaceHigh),backgroundColor:dt.extend("--ft-switch-background-color",yt.colorSurface),selectedTextColor:dt.extend("--ft-switch-selected-text-color",yt.colorPrimary),selectedBackgroundColor:dt.extend("--ft-switch-selected-background-color",yt.colorPrimary),borderColor:dt.extend("--ft-switch-border-color",yt.colorOutline),borderRadius:dt.extend("--ft-switch-border-radius",yt.borderRadiusL),fontSize:dt.extend("--ft-switch-font-size",Ji.fontSize),iconSize:dt.create("--ft-switch-icon-size","SIZE","24px"),iconColor:dt.extend("--ft-switch-text-color",yt.colorOnSurfaceMedium),rippleColor:dt.extend("--ft-switch-ripple-color",yt.colorPrimary),outlineColor:dt.extend("--ft-switch-outline-color",yt.colorPrimary)},Ne={borderRadiusLeft:dt.extend("--ft-switch-option-border-radius-left",yt.borderRadiusL),borderRadiusRight:dt.extend("--ft-switch-option-border-radius-right",yt.borderRadiusL),borderWidthLeft:dt.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:dt.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:dt.create("--ft-switch-option-border-width-vertical","SIZE","1px")},Ee=v`
436
446
  .ft-switch-option {
437
447
  position: relative;
438
448
  display: inline-block;
@@ -446,20 +456,20 @@ class ue extends Ot{constructor(t){if(super(t),this.it=J,t.type!==wt)throw Error
446
456
  }
447
457
 
448
458
  .ft-switch-option--content {
449
- --ft-switch-option-internal-line-height: calc(${Oe.fontSize} + 2px);
450
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Oe.iconSize});
459
+ --ft-switch-option-internal-line-height: calc(${Ce.fontSize} + 2px);
460
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Ce.iconSize});
451
461
 
452
462
  border-style: solid;
453
- border-color: ${Oe.borderColor};
454
- border-width: ${Se.borderWidthVertical} ${Se.borderWidthRight} ${Se.borderWidthVertical} ${Se.borderWidthLeft};
455
- border-radius: ${Se.borderRadiusLeft} ${Se.borderRadiusRight} ${Se.borderRadiusRight} ${Se.borderRadiusLeft};
463
+ border-color: ${Ce.borderColor};
464
+ border-width: ${Ne.borderWidthVertical} ${Ne.borderWidthRight} ${Ne.borderWidthVertical} ${Ne.borderWidthLeft};
465
+ border-radius: ${Ne.borderRadiusLeft} ${Ne.borderRadiusRight} ${Ne.borderRadiusRight} ${Ne.borderRadiusLeft};
456
466
  display: flex;
457
467
  align-items: center;
458
468
  justify-content: center;
459
469
  overflow: hidden;
460
- ${ut(ge.size,Oe.iconSize)};
470
+ ${ut(we.size,Ce.iconSize)};
461
471
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
462
- background-color: ${Oe.backgroundColor};
472
+ background-color: ${Ce.backgroundColor};
463
473
  -webkit-mask-image: radial-gradient(white, black);
464
474
  }
465
475
 
@@ -468,8 +478,8 @@ class ue extends Ot{constructor(t){if(super(t),this.it=J,t.type!==wt)throw Error
468
478
  }
469
479
 
470
480
  .ft-switch-option--input:checked + .ft-switch-option--content:before {
471
- background-color: ${Oe.selectedBackgroundColor};
472
- border-radius: ${Se.borderRadiusLeft} ${Se.borderRadiusRight} ${Se.borderRadiusRight} ${Se.borderRadiusLeft};
481
+ background-color: ${Ce.selectedBackgroundColor};
482
+ border-radius: ${Ne.borderRadiusLeft} ${Ne.borderRadiusRight} ${Ne.borderRadiusRight} ${Ne.borderRadiusLeft};
473
483
  position: absolute;
474
484
  inset: 0;
475
485
  content: "";
@@ -478,18 +488,18 @@ class ue extends Ot{constructor(t){if(super(t),this.it=J,t.type!==wt)throw Error
478
488
  }
479
489
 
480
490
  .ft-switch-option--label {
481
- color: ${Oe.textColor};
491
+ color: ${Ce.textColor};
482
492
  overflow: hidden;
483
493
  white-space: nowrap;
484
494
  text-overflow: ellipsis;
485
495
  display: block;
486
496
  margin: 0 8px;
487
- ${ut(Ki.fontSize,Oe.fontSize)};
488
- ${ut(Ki.lineHeight,"var(--ft-switch-option-internal-content-height)")}
497
+ ${ut(Ji.fontSize,Ce.fontSize)};
498
+ ${ut(Ji.lineHeight,"var(--ft-switch-option-internal-content-height)")}
489
499
  }
490
500
 
491
501
  .ft-switch-option--input:checked + .ft-switch-option--content .ft-switch-option--label {
492
- color: ${Oe.selectedTextColor};
502
+ color: ${Ce.selectedTextColor};
493
503
  }
494
504
 
495
505
  .ft-switch-option--label[hidden] {
@@ -497,7 +507,7 @@ class ue extends Ot{constructor(t){if(super(t),this.it=J,t.type!==wt)throw Error
497
507
  }
498
508
 
499
509
  .ft-switch-option--ripple {
500
- ${ut(Ct.color,Oe.rippleColor)};
510
+ ${ut(Rt.color,Ce.rippleColor)};
501
511
  }
502
512
 
503
513
  ft-icon, ft-ripple, ft-typography {
@@ -510,22 +520,22 @@ class ue extends Ot{constructor(t){if(super(t),this.it=J,t.type!==wt)throw Error
510
520
 
511
521
  ft-icon {
512
522
  flex-shrink: 0;
513
- color: ${Oe.iconColor};
523
+ color: ${Ce.iconColor};
514
524
  }
515
525
 
516
526
  .ft-switch-option--input:checked + .ft-switch-option--content ft-icon {
517
- color: ${Oe.selectedTextColor};
527
+ color: ${Ce.selectedTextColor};
518
528
  }
519
- `;var Ce=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 CustomEvent{constructor(){super("option-change",{bubbles:!0})}}class Ee extends bt{constructor(){super(...arguments),this.value="",this.iconVariant=me.material,this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Ne)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(Z`
520
- <label part="label" for="input" class=${St(t)}>
529
+ `;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 Me extends CustomEvent{constructor(){super("option-change",{bubbles:!0,composed:!0})}}class Ue extends xt{constructor(){super(...arguments),this.value="",this.iconVariant=Oe.material,this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}updated(t){super.updated(t),t.has("selected")&&this.dispatchEvent(new Me)}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(Z`
530
+ <label part="label" for="input" class=${Nt(t)}
531
+ @click=${this.onChange}>
521
532
  <input id="input" type="radio" class="ft-switch-option--input"
522
- .checked=${this.selected}
523
- @click=${this.onChange}>
533
+ .checked=${this.selected}>
524
534
  <div class="ft-switch-option--content">
525
535
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
526
536
  <ft-typography part="text"
527
537
  variant="button"
528
- class="ft-switch-option--label"
538
+ class="ft-switch-option--label ${$t?"ft-safari-ellipsis-fix":""}"
529
539
  ?hidden=${!this.hasTextContent()}>
530
540
  <slot @slotchange=${this.onSlotchange}></slot>
531
541
  </ft-typography>
@@ -539,20 +549,20 @@ class ue extends Ot{constructor(t){if(super(t),this.it=J,t.type!==wt)throw Error
539
549
  ${t}
540
550
  </ft-tooltip>
541
551
  `}onChange(){this.selected=!this.unselectable||!this.selected}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?Z`
542
- <ft-icon part="icon" .variant=${this.iconVariant}>${this.icon}</ft-icon>
543
- `:J}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Ee.elementDefinitions={"ft-ripple":At,"ft-typography":se,"ft-tooltip":de,"ft-icon":$e},Ee.styles=ke,Ce([o()],Ee.prototype,"value",void 0),Ce([o()],Ee.prototype,"icon",void 0),Ce([o()],Ee.prototype,"iconVariant",void 0),Ce([o()],Ee.prototype,"label",void 0),Ce([o()],Ee.prototype,"tooltipPosition",void 0),Ce([o({type:Boolean,reflect:!0})],Ee.prototype,"selected",void 0),Ce([o({type:Boolean})],Ee.prototype,"trailingIcon",void 0),Ce([o({type:Boolean})],Ee.prototype,"unselectable",void 0),Ce([r(".ft-switch-option--content slot")],Ee.prototype,"slottedContent",void 0),Ce([r(".ft-switch-option--input")],Ee.prototype,"input",void 0);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 Me extends CustomEvent{constructor(t){super("change",{detail:t})}}class Ue extends bt{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var i;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new Me(null===(i=this.selectedOption)||void 0===i?void 0:i.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return Z`
544
- <div @keydown=${this.onKeyDown} tabindex="0" class="${St(t)}">
552
+ <ft-icon part="icon" .variant=${this.iconVariant} value=${this.icon}></ft-icon>
553
+ `:J}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Ue.elementDefinitions={"ft-ripple":Tt,"ft-typography":le,"ft-tooltip":ve,"ft-icon":ke},Ue.styles=[gt,Ee],Re([o()],Ue.prototype,"value",void 0),Re([o()],Ue.prototype,"icon",void 0),Re([o()],Ue.prototype,"iconVariant",void 0),Re([o()],Ue.prototype,"label",void 0),Re([o()],Ue.prototype,"tooltipPosition",void 0),Re([o({type:Boolean,reflect:!0})],Ue.prototype,"selected",void 0),Re([o({type:Boolean})],Ue.prototype,"trailingIcon",void 0),Re([o({type:Boolean})],Ue.prototype,"unselectable",void 0),Re([r(".ft-switch-option--content slot")],Ue.prototype,"slottedContent",void 0),Re([r(".ft-switch-option--input")],Ue.prototype,"input",void 0);var Fe=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 ze extends CustomEvent{constructor(t){super("change",{detail:t})}}class je extends xt{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}updated(t){var i;super.updated(t),t.has("selectedOption")&&(this.updateOptions(),this.dispatchEvent(new ze(null===(i=this.selectedOption)||void 0===i?void 0:i.value))),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return Z`
554
+ <div @keydown=${this.onKeyDown} tabindex="0" class="${Nt(t)}">
545
555
  <slot @slotchange=${this.onSlotchange}
546
556
  @option-change=${this.onOptionChange}></slot>
547
557
  </div>
548
- `}onKeyDown(t){let i;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=i&&(t.preventDefault(),this.options[this.fixIndex(i)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Ee&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChange(t){let i=t.target;i.selected?this.selectedOption=i:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}Ue.elementDefinitions={},Ue.styles=v`
558
+ `}onKeyDown(t){let i;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(i=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=i&&(t.preventDefault(),this.options[this.fixIndex(i)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Ue&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChange(t){t.stopPropagation();let i=t.target;i.selected?this.selectedOption=i:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}}je.elementDefinitions={},je.styles=v`
549
559
  :host {
550
560
  display: inline-block;
551
561
  }
552
562
 
553
563
  .ft-switch {
554
- border-radius: ${Oe.borderRadius};
555
- outline-color: ${Oe.outlineColor};
564
+ border-radius: ${Ce.borderRadius};
565
+ outline-color: ${Ce.outlineColor};
556
566
  }
557
567
 
558
568
  .ft-switch slot {
@@ -561,22 +571,22 @@ class ue extends Ot{constructor(t){if(super(t),this.it=J,t.type!==wt)throw Error
561
571
  }
562
572
 
563
573
  .ft-switch slot::slotted(ft-switch-option) {
564
- ${ut(Se.borderRadiusLeft,"0")};
565
- ${ut(Se.borderRadiusRight,"0")};
566
- ${ut(Se.borderWidthLeft,"0")};
574
+ ${ut(Ne.borderRadiusLeft,"0")};
575
+ ${ut(Ne.borderRadiusRight,"0")};
576
+ ${ut(Ne.borderWidthLeft,"0")};
567
577
  }
568
578
 
569
579
  .ft-switch slot::slotted(ft-switch-option:first-child) {
570
- ${ut(Se.borderRadiusLeft,Oe.borderRadius)};
571
- ${ut(Se.borderWidthLeft,"1px")};
580
+ ${ut(Ne.borderRadiusLeft,Ce.borderRadius)};
581
+ ${ut(Ne.borderWidthLeft,"1px")};
572
582
  }
573
583
 
574
584
  .ft-switch slot::slotted(ft-switch-option:last-child) {
575
- ${ut(Se.borderRadiusRight,Oe.borderRadius)};
585
+ ${ut(Ne.borderRadiusRight,Ce.borderRadius)};
576
586
  }
577
587
 
578
588
  .ft-switch--dense slot::slotted(ft-switch-option) {
579
589
  --ft-switch-internal-vertical-padding: 2px;
580
590
  --ft-switch-internal-horizontal-padding: 4px;
581
591
  }
582
- `,Re([o({type:Boolean})],Ue.prototype,"dense",void 0),Re([o({type:Boolean})],Ue.prototype,"unselectable",void 0),Re([r(".ft-switch slot")],Ue.prototype,"slottedContent",void 0),Re([s()],Ue.prototype,"selectedOption",void 0),Re([r(".ft-switch")],Ue.prototype,"ftSwitchDiv",void 0),h("ft-switch")(Ue),h("ft-switch-option")(Ee),t.FtSwitch=Ue,t.FtSwitchChange=Me,t.FtSwitchCssVariables=Oe,t.FtSwitchOption=Ee,t.FtSwitchOptionCssVariables=Se,t.SwitchOptionChange=Ne,t.optionStyles=ke,Object.defineProperty(t,"i",{value:!0})}({});
592
+ `,Fe([o({type:Boolean})],je.prototype,"dense",void 0),Fe([o({type:Boolean})],je.prototype,"unselectable",void 0),Fe([r(".ft-switch slot")],je.prototype,"slottedContent",void 0),Fe([s()],je.prototype,"selectedOption",void 0),Fe([r(".ft-switch")],je.prototype,"ftSwitchDiv",void 0),h("ft-switch")(je),h("ft-switch-option")(Ue),t.FtSwitch=je,t.FtSwitchChange=ze,t.FtSwitchCssVariables=Ce,t.FtSwitchOption=Ue,t.FtSwitchOptionCssVariables=Ne,t.SwitchOptionChange=Me,t.optionStyles=Ee,Object.defineProperty(t,"i",{value:!0})}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-switch",
3
- "version": "0.3.54",
3
+ "version": "0.3.56",
4
4
  "description": "two-state",
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": "0.3.54",
23
- "@fluid-topics/ft-ripple": "0.3.54",
24
- "@fluid-topics/ft-tooltip": "0.3.54",
25
- "@fluid-topics/ft-typography": "0.3.54",
26
- "@fluid-topics/ft-wc-utils": "0.3.54",
22
+ "@fluid-topics/ft-icon": "0.3.56",
23
+ "@fluid-topics/ft-ripple": "0.3.56",
24
+ "@fluid-topics/ft-tooltip": "0.3.56",
25
+ "@fluid-topics/ft-typography": "0.3.56",
26
+ "@fluid-topics/ft-wc-utils": "0.3.56",
27
27
  "lit": "2.2.8"
28
28
  },
29
- "gitHead": "a44cb80b87fa9a6a35c255f4e37a75af484b443a"
29
+ "gitHead": "e86edee2b2660d806320bacca5c5156bb94ca2d6"
30
30
  }