@fluid-topics/ft-file-drop 0.2.2 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(t,i,e,o,n,r){var s=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const l={color:i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorContent),primaryColor:i.FtCssVariable.extend("--ft-ripple-primary-color",i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary)),secondaryColor:i.FtCssVariable.extend("--ft-ripple-secondary-color",i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")};class p 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.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var i,e;let{x:o,y:n}=this.getCoordinates(t),r=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-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.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`
1
+ !function(t,i,e,o,n,r){var s=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const l=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorContent),p={color:l,backgroundColor:i.FtCssVariable.extend("--ft-ripple-background-color",l),opacityContentOnSurfacePressed:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariable.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},a=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),h=a,f=i.FtCssVariable.extend("--ft-ripple-background-color",a),c=i.FtCssVariable.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),d=c,g=i.FtCssVariable.extend("--ft-ripple-background-color",c);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:n}=this.getCoordinates(t),r=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-r.x:r.width/2),this.originY=Math.round(null!=n?n-r.y:r.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.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`
2
2
  <style>
3
3
  .ft-ripple .ft-ripple--effect,
4
4
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -15,13 +15,13 @@
15
15
  <div class="ft-ripple--background"></div>
16
16
  <div class="ft-ripple--effect"></div>
17
17
  </div>
18
- `}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){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),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"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
18
+ `}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"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}
19
19
  /**
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
23
  */
24
- var a;p.elementDefinitions={},p.styles=e.css`
24
+ var u;y.elementDefinitions={},y.styles=e.css`
25
25
  :host {
26
26
  display: contents;
27
27
  }
@@ -40,17 +40,30 @@ var a;p.elementDefinitions={},p.styles=e.css`
40
40
  .ft-ripple .ft-ripple--effect {
41
41
  position: absolute;
42
42
  opacity: 0;
43
- background-color: ${l.color};
44
43
  }
45
44
 
46
- .ft-ripple.ft-ripple--secondary .ft-ripple--background,
45
+ .ft-ripple .ft-ripple--background {
46
+ background-color: ${p.backgroundColor};
47
+ }
48
+
49
+ .ft-ripple .ft-ripple--effect {
50
+ background-color: ${p.color};
51
+ }
52
+
53
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
54
+ background-color: ${g};
55
+ }
56
+
47
57
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
48
- background-color: ${l.secondaryColor};
58
+ background-color: ${d};
59
+ }
60
+
61
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
62
+ background-color: ${f};
49
63
  }
50
64
 
51
- .ft-ripple.ft-ripple--primary .ft-ripple--background,
52
65
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
53
- background-color: ${l.primaryColor};
66
+ background-color: ${h};
54
67
  }
55
68
 
56
69
  .ft-ripple .ft-ripple--background {
@@ -58,6 +71,7 @@ var a;p.elementDefinitions={},p.styles=e.css`
58
71
  left: 0;
59
72
  height: 100%;
60
73
  width: 100%;
74
+ transition: opacity 75ms linear;
61
75
  }
62
76
 
63
77
  .ft-ripple .ft-ripple--effect,
@@ -81,144 +95,144 @@ var a;p.elementDefinitions={},p.styles=e.css`
81
95
  }
82
96
 
83
97
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
84
- opacity: ${l.opacityContentOnSurfaceHover};
98
+ opacity: ${p.opacityContentOnSurfaceHover};
85
99
  }
86
100
 
87
101
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
88
- opacity: ${l.opacityContentOnSurfaceSelected};
102
+ opacity: ${p.opacityContentOnSurfaceSelected};
89
103
  }
90
104
 
91
105
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
92
- opacity: ${l.opacityContentOnSurfaceFocused};
106
+ opacity: ${p.opacityContentOnSurfaceFocused};
93
107
  }
94
108
 
95
109
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
96
- opacity: ${l.opacityContentOnSurfacePressed};
110
+ opacity: ${p.opacityContentOnSurfacePressed};
97
111
  transform: translate(-50%, -50%) scale(1);
98
112
  }
99
- `,s([o.property({type:Boolean})],p.prototype,"primary",void 0),s([o.property({type:Boolean})],p.prototype,"secondary",void 0),s([o.property({type:Boolean})],p.prototype,"unbounded",void 0),s([o.property({type:Boolean})],p.prototype,"activated",void 0),s([o.property({type:Boolean})],p.prototype,"selected",void 0),s([o.property({type:Boolean})],p.prototype,"disabled",void 0),s([o.state()],p.prototype,"hovered",void 0),s([o.state()],p.prototype,"focused",void 0),s([o.state()],p.prototype,"pressed",void 0),s([o.state()],p.prototype,"rippling",void 0),s([o.state()],p.prototype,"rippleSize",void 0),s([o.state()],p.prototype,"originX",void 0),s([o.state()],p.prototype,"originY",void 0),s([o.query(".ft-ripple")],p.prototype,"ripple",void 0),s([o.query(".ft-ripple--effect")],p.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(p);const h=globalThis.trustedTypes,f=h?h.createPolicy("lit-html",{createHTML:t=>t}):void 0,c=`lit$${(Math.random()+"").slice(9)}$`,d="?"+c,g=`<${d}>`,y=document,x=(t="")=>y.createComment(t),u=t=>null===t||"object"!=typeof t&&"function"!=typeof t,v=Array.isArray,m=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,b=/-->/g,$=/>/g,w=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,k=/'/g,z=/"/g,C=/^(?:script|style|textarea|title)$/i,S=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),O=Symbol.for("lit-noChange"),j=Symbol.for("lit-nothing"),E=new WeakMap,I=y.createTreeWalker(y,129,null,!1),N=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=m;for(let i=0;i<e;i++){const e=t[i];let l,p,a=-1,h=0;for(;h<e.length&&(s.lastIndex=h,p=s.exec(e),null!==p);)h=s.lastIndex,s===m?"!--"===p[1]?s=b:void 0!==p[1]?s=$:void 0!==p[2]?(C.test(p[2])&&(n=RegExp("</"+p[2],"g")),s=w):void 0!==p[3]&&(s=w):s===w?">"===p[0]?(s=null!=n?n:m,a=-1):void 0===p[1]?a=-2:(a=s.lastIndex-p[2].length,l=p[1],s=void 0===p[3]?w:'"'===p[3]?z:k):s===z||s===k?s=w:s===b||s===$?s=m:(s=w,n=void 0);const f=s===w&&t[i+1].startsWith("/>")?" ":"";r+=s===m?e+g:a>=0?(o.push(l),e.slice(0,a)+"$lit$"+e.slice(a)+c+f):e+c+(-2===a?(o.push(void 0),i):f)}const l=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==f?f.createHTML(l):l,o]};class B{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,l=this.parts,[p,a]=N(t,i);if(this.el=B.createElement(p,e),I.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=I.nextNode())&&l.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(c)){const e=a[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(c),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?U:"?"===i[1]?Z:"@"===i[1]?F:M})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(C.test(o.tagName)){const t=o.textContent.split(c),i=t.length-1;if(i>0){o.textContent=h?h.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],x()),I.nextNode(),l.push({type:2,index:++n});o.append(t[i],x())}}}else if(8===o.nodeType)if(o.data===d)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(c,t+1));)l.push({type:7,index:n}),t+=c.length-1}n++}}static createElement(t,i){const e=y.createElement("template");return e.innerHTML=t,e}}function A(t,i,e=t,o){var n,r,s,l;if(i===O)return i;let p=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const a=u(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==a&&(null===(r=null==p?void 0:p._$AO)||void 0===r||r.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,e,o)),void 0!==o?(null!==(s=(l=e)._$Cl)&&void 0!==s?s:l._$Cl=[])[o]=p:e._$Cu=p),void 0!==p&&(i=A(t,p._$AS(t,i.values),p,o)),i}class _{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:y).importNode(e,!0);I.currentNode=n;let r=I.nextNode(),s=0,l=0,p=o[0];for(;void 0!==p;){if(s===p.index){let i;2===p.type?i=new T(r,r.nextSibling,this,t):1===p.type?i=new p.ctor(r,p.name,p.strings,this,t):6===p.type&&(i=new R(r,this,t)),this.v.push(i),p=o[++l]}s!==(null==p?void 0:p.index)&&(r=I.nextNode(),s++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class T{constructor(t,i,e,o){var n;this.type=2,this._$AH=j,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=A(this,t,i),u(t)?t===j||null==t||""===t?(this._$AH!==j&&this._$AR(),this._$AH=j):t!==this._$AH&&t!==O&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return v(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==j&&u(this._$AH)?this._$AA.nextSibling.data=t:this.S(y.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=B.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new _(n,this),i=t.p(this.options);t.m(e),this.S(i),this._$AH=t}}_$AC(t){let i=E.get(t.strings);return void 0===i&&E.set(t.strings,i=new B(t)),i}A(t){v(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new T(this.M(x()),this.M(x()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class M{constructor(t,i,e,o,n){this.type=1,this._$AH=j,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=j}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=A(this,t,i,0),r=!u(t)||t!==this._$AH&&t!==O,r&&(this._$AH=t);else{const o=t;let s,l;for(t=n[0],s=0;s<n.length-1;s++)l=A(this,o[e+s],i,s),l===O&&(l=this._$AH[s]),r||(r=!u(l)||l!==this._$AH[s]),l===j?t=j:t!==j&&(t+=(null!=l?l:"")+n[s+1]),this._$AH[s]=l}r&&!o&&this.k(t)}k(t){t===j?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class U extends M{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===j?void 0:t}}const D=h?h.emptyScript:"";class Z extends M{constructor(){super(...arguments),this.type=4}k(t){t&&t!==j?this.element.setAttribute(this.name,D):this.element.removeAttribute(this.name)}}class F extends M{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=A(this,t,i,0))&&void 0!==e?e:j)===O)return;const o=this._$AH,n=t===j&&o!==j||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==j&&(o===j||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 R{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){A(this,t)}}const W=window.litHtmlPolyfillSupport;null==W||W(B,T),(null!==(a=globalThis.litHtmlVersions)&&void 0!==a?a:globalThis.litHtmlVersions=[]).push("2.1.3");
113
+ `,s([o.property({type:Boolean})],y.prototype,"primary",void 0),s([o.property({type:Boolean})],y.prototype,"secondary",void 0),s([o.property({type:Boolean})],y.prototype,"unbounded",void 0),s([o.property({type:Boolean})],y.prototype,"activated",void 0),s([o.property({type:Boolean})],y.prototype,"selected",void 0),s([o.property({type:Boolean})],y.prototype,"disabled",void 0),s([o.state()],y.prototype,"hovered",void 0),s([o.state()],y.prototype,"focused",void 0),s([o.state()],y.prototype,"pressed",void 0),s([o.state()],y.prototype,"rippling",void 0),s([o.state()],y.prototype,"rippleSize",void 0),s([o.state()],y.prototype,"originX",void 0),s([o.state()],y.prototype,"originY",void 0),s([o.query(".ft-ripple")],y.prototype,"ripple",void 0),s([o.query(".ft-ripple--effect")],y.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(y);const x=globalThis.trustedTypes,v=x?x.createPolicy("lit-html",{createHTML:t=>t}):void 0,b=`lit$${(Math.random()+"").slice(9)}$`,m="?"+b,$=`<${m}>`,w=document,k=(t="")=>w.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,j=/>/g,E=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,I=/'/g,N=/"/g,B=/^(?:script|style|textarea|title)$/i,A=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),_=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),M=new WeakMap,U=w.createTreeWalker(w,129,null,!1),D=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=S;for(let i=0;i<e;i++){const e=t[i];let l,p,a=-1,h=0;for(;h<e.length&&(s.lastIndex=h,p=s.exec(e),null!==p);)h=s.lastIndex,s===S?"!--"===p[1]?s=O:void 0!==p[1]?s=j:void 0!==p[2]?(B.test(p[2])&&(n=RegExp("</"+p[2],"g")),s=E):void 0!==p[3]&&(s=E):s===E?">"===p[0]?(s=null!=n?n:S,a=-1):void 0===p[1]?a=-2:(a=s.lastIndex-p[2].length,l=p[1],s=void 0===p[3]?E:'"'===p[3]?N:I):s===N||s===I?s=E:s===O||s===j?s=S:(s=E,n=void 0);const f=s===E&&t[i+1].startsWith("/>")?" ":"";r+=s===S?e+$:a>=0?(o.push(l),e.slice(0,a)+"$lit$"+e.slice(a)+b+f):e+b+(-2===a?(o.push(void 0),i):f)}const l=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==v?v.createHTML(l):l,o]};class Z{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,l=this.parts,[p,a]=D(t,i);if(this.el=Z.createElement(p,e),U.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=U.nextNode())&&l.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(b)){const e=a[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(b),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?G:"?"===i[1]?L:"@"===i[1]?P:K})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(B.test(o.tagName)){const t=o.textContent.split(b),i=t.length-1;if(i>0){o.textContent=x?x.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],k()),U.nextNode(),l.push({type:2,index:++n});o.append(t[i],k())}}}else if(8===o.nodeType)if(o.data===m)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(b,t+1));)l.push({type:7,index:n}),t+=b.length-1}n++}}static createElement(t,i){const e=w.createElement("template");return e.innerHTML=t,e}}function F(t,i,e=t,o){var n,r,s,l;if(i===_)return i;let p=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const a=z(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==a&&(null===(r=null==p?void 0:p._$AO)||void 0===r||r.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,e,o)),void 0!==o?(null!==(s=(l=e)._$Cl)&&void 0!==s?s:l._$Cl=[])[o]=p:e._$Cu=p),void 0!==p&&(i=F(t,p._$AS(t,i.values),p,o)),i}class R{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:w).importNode(e,!0);U.currentNode=n;let r=U.nextNode(),s=0,l=0,p=o[0];for(;void 0!==p;){if(s===p.index){let i;2===p.type?i=new W(r,r.nextSibling,this,t):1===p.type?i=new p.ctor(r,p.name,p.strings,this,t):6===p.type&&(i=new q(r,this,t)),this.v.push(i),p=o[++l]}s!==(null==p?void 0:p.index)&&(r=U.nextNode(),s++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class W{constructor(t,i,e,o){var n;this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=F(this,t,i),z(t)?t===T||null==t||""===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==_&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var i;return C(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==T&&z(this._$AH)?this._$AA.nextSibling.data=t:this.k(w.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,n="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)===n)this._$AH.m(e);else{const t=new R(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=M.get(t.strings);return void 0===i&&M.set(t.strings,i=new Z(t)),i}S(t){C(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new W(this.M(k()),this.M(k()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class K{constructor(t,i,e,o,n){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=T}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=F(this,t,i,0),r=!z(t)||t!==this._$AH&&t!==_,r&&(this._$AH=t);else{const o=t;let s,l;for(t=n[0],s=0;s<n.length-1;s++)l=F(this,o[e+s],i,s),l===_&&(l=this._$AH[s]),r||(r=!z(l)||l!==this._$AH[s]),l===T?t=T:t!==T&&(t+=(null!=l?l:"")+n[s+1]),this._$AH[s]=l}r&&!o&&this.C(t)}C(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends K{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===T?void 0:t}}const H=x?x.emptyScript:"";class L extends K{constructor(){super(...arguments),this.type=4}C(t){t&&t!==T?this.element.setAttribute(this.name,H):this.element.removeAttribute(this.name)}}class P extends K{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=F(this,t,i,0))&&void 0!==e?e:T)===_)return;const o=this._$AH,n=t===T&&o!==T||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==T&&(o===T||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 q{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){F(this,t)}}const X=window.litHtmlPolyfillSupport;null==X||X(Z,W),(null!==(u=globalThis.litHtmlVersions)&&void 0!==u?u:globalThis.litHtmlVersions=[]).push("2.2.4");
100
114
  /**
101
115
  * @license
102
116
  * Copyright 2020 Google LLC
103
117
  * SPDX-License-Identifier: BSD-3-Clause
104
118
  */
105
- const K=t=>({_$litStatic$:t}),G=new Map,H=(t=>(i,...e)=>{var o;const n=e.length;let r,s;const l=[],p=[];let a,h=0,f=!1;for(;h<n;){for(a=i[h];h<n&&void 0!==(s=e[h],r=null===(o=s)||void 0===o?void 0:o._$litStatic$);)a+=r+i[++h],f=!0;p.push(s),l.push(a),h++}if(h===n&&l.push(i[n]),f){const t=l.join("$$lit$$");void 0===(i=G.get(t))&&(l.raw=l,G.set(t,i=l)),e=p}return t(i,...e)})(S);var L,P=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!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"}(L||(L={}));const q=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),X=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),Y={fontFamily:X,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},J=i.FtCssVariable.extend("--ft-typography-title-font-family",q),Q=i.FtCssVariable.extend("--ft-typography-title-font-size",Y.fontSize,"20px"),V=i.FtCssVariable.extend("--ft-typography-title-font-weight",Y.fontWeight,"normal"),tt=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",Y.letterSpacing,"0.15px"),it=i.FtCssVariable.extend("--ft-typography-title-line-height",Y.lineHeight,"24px"),et=i.FtCssVariable.extend("--ft-typography-title-text-transform",Y.textTransform,"inherit"),ot=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",q),nt=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",Y.fontSize,"14px"),rt=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",Y.fontWeight,"normal"),st=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",Y.letterSpacing,"0.105px"),lt=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",Y.lineHeight,"24px"),pt=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",Y.textTransform,"inherit"),at=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",X),ht=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",Y.fontSize,"16px"),ft=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",Y.fontWeight,"600"),ct=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",Y.letterSpacing,"0.144px"),dt=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",Y.lineHeight,"24px"),gt=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",Y.textTransform,"inherit"),yt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",X),xt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",Y.fontSize,"14px"),ut=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",Y.fontWeight,"normal"),vt=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",Y.letterSpacing,"0.098px"),mt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",Y.lineHeight,"24px"),bt=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",Y.textTransform,"inherit"),$t=i.FtCssVariable.extend("--ft-typography-body1-font-family",X),wt=i.FtCssVariable.extend("--ft-typography-body1-font-size",Y.fontSize,"16px"),kt=i.FtCssVariable.extend("--ft-typography-body1-font-weight",Y.fontWeight,"normal"),zt=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",Y.letterSpacing,"0.496px"),Ct=i.FtCssVariable.extend("--ft-typography-body1-line-height",Y.lineHeight,"24px"),St=i.FtCssVariable.extend("--ft-typography-body1-text-transform",Y.textTransform,"inherit"),Ot={fontFamily:i.FtCssVariable.extend("--ft-typography-body2-font-family",X),fontSize:i.FtCssVariable.extend("--ft-typography-body2-font-size",Y.fontSize,"14px"),fontWeight:i.FtCssVariable.extend("--ft-typography-body2-font-weight",Y.fontWeight,"normal"),letterSpacing:i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",Y.letterSpacing,"0.252px"),lineHeight:i.FtCssVariable.extend("--ft-typography-body2-line-height",Y.lineHeight,"20px"),textTransform:i.FtCssVariable.extend("--ft-typography-body2-text-transform",Y.textTransform,"inherit")},jt=i.FtCssVariable.extend("--ft-typography-caption-font-family",X),Et=i.FtCssVariable.extend("--ft-typography-caption-font-size",Y.fontSize,"12px"),It=i.FtCssVariable.extend("--ft-typography-caption-font-weight",Y.fontWeight,"normal"),Nt=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",Y.letterSpacing,"0.396px"),Bt=i.FtCssVariable.extend("--ft-typography-caption-line-height",Y.lineHeight,"16px"),At=i.FtCssVariable.extend("--ft-typography-caption-text-transform",Y.textTransform,"inherit"),_t=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",X),Tt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",Y.fontSize,"10px"),Mt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",Y.fontWeight,"normal"),Ut=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",Y.letterSpacing,"0.33px"),Dt=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",Y.lineHeight,"16px"),Zt=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",Y.textTransform,"inherit"),Ft=i.FtCssVariable.extend("--ft-typography-overline-font-family",X),Rt=i.FtCssVariable.extend("--ft-typography-overline-font-size",Y.fontSize,"10px"),Wt=i.FtCssVariable.extend("--ft-typography-overline-font-weight",Y.fontWeight,"normal"),Kt=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",Y.letterSpacing,"1.5px"),Gt=i.FtCssVariable.extend("--ft-typography-overline-line-height",Y.lineHeight,"16px"),Ht=i.FtCssVariable.extend("--ft-typography-overline-text-transform",Y.textTransform,"uppercase"),Lt=i.FtCssVariable.extend("--ft-typography-button-font-family",X),Pt=i.FtCssVariable.extend("--ft-typography-button-font-size",Y.fontSize,"14px"),qt=i.FtCssVariable.extend("--ft-typography-button-font-weight",Y.fontWeight,"600"),Xt=i.FtCssVariable.extend("--ft-typography-button-letter-spacing",Y.letterSpacing,"1.246px"),Yt=i.FtCssVariable.extend("--ft-typography-button-line-height",Y.lineHeight,"16px"),Jt=i.FtCssVariable.extend("--ft-typography-button-text-transform",Y.textTransform,"uppercase"),Qt=e.css`
119
+ const Y=Symbol.for(""),J=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===Y)return null===(e=t)||void 0===e?void 0:e._$litStatic$},Q=t=>({_$litStatic$:t,r:Y}),V=new Map,tt=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],l=[];let p,a=0,h=!1;for(;a<o;){for(p=i[a];a<o&&void 0!==(r=e[a],n=J(r));)p+=n+i[++a],h=!0;l.push(r),s.push(p),a++}if(a===o&&s.push(i[o]),h){const t=s.join("$$lit$$");void 0===(i=V.get(t))&&(s.raw=s,V.set(t,i=s)),e=l}return t(i,...e)})(A);var it,et=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(it||(it={}));const ot=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),nt=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),rt={fontFamily:nt,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},st=i.FtCssVariable.extend("--ft-typography-title-font-family",ot),lt=i.FtCssVariable.extend("--ft-typography-title-font-size",rt.fontSize,"20px"),pt=i.FtCssVariable.extend("--ft-typography-title-font-weight",rt.fontWeight,"normal"),at=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",rt.letterSpacing,"0.15px"),ht=i.FtCssVariable.extend("--ft-typography-title-line-height",rt.lineHeight,"24px"),ft=i.FtCssVariable.extend("--ft-typography-title-text-transform",rt.textTransform,"inherit"),ct=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",ot),dt=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",rt.fontSize,"14px"),gt=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",rt.fontWeight,"normal"),yt=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",rt.letterSpacing,"0.105px"),ut=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",rt.lineHeight,"24px"),xt=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",rt.textTransform,"inherit"),vt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",nt),bt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",rt.fontSize,"16px"),mt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",rt.fontWeight,"600"),$t=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",rt.letterSpacing,"0.144px"),wt=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",rt.lineHeight,"24px"),kt=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",rt.textTransform,"inherit"),zt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",nt),Ct=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",rt.fontSize,"14px"),St=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",rt.fontWeight,"normal"),Ot=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",rt.letterSpacing,"0.098px"),jt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",rt.lineHeight,"24px"),Et=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",rt.textTransform,"inherit"),It=i.FtCssVariable.extend("--ft-typography-body1-font-family",nt),Nt=i.FtCssVariable.extend("--ft-typography-body1-font-size",rt.fontSize,"16px"),Bt=i.FtCssVariable.extend("--ft-typography-body1-font-weight",rt.fontWeight,"normal"),At=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",rt.letterSpacing,"0.496px"),_t=i.FtCssVariable.extend("--ft-typography-body1-line-height",rt.lineHeight,"24px"),Tt=i.FtCssVariable.extend("--ft-typography-body1-text-transform",rt.textTransform,"inherit"),Mt={fontFamily:i.FtCssVariable.extend("--ft-typography-body2-font-family",nt),fontSize:i.FtCssVariable.extend("--ft-typography-body2-font-size",rt.fontSize,"14px"),fontWeight:i.FtCssVariable.extend("--ft-typography-body2-font-weight",rt.fontWeight,"normal"),letterSpacing:i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",rt.letterSpacing,"0.252px"),lineHeight:i.FtCssVariable.extend("--ft-typography-body2-line-height",rt.lineHeight,"20px"),textTransform:i.FtCssVariable.extend("--ft-typography-body2-text-transform",rt.textTransform,"inherit")},Ut=i.FtCssVariable.extend("--ft-typography-caption-font-family",nt),Dt=i.FtCssVariable.extend("--ft-typography-caption-font-size",rt.fontSize,"12px"),Zt=i.FtCssVariable.extend("--ft-typography-caption-font-weight",rt.fontWeight,"normal"),Ft=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",rt.letterSpacing,"0.396px"),Rt=i.FtCssVariable.extend("--ft-typography-caption-line-height",rt.lineHeight,"16px"),Wt=i.FtCssVariable.extend("--ft-typography-caption-text-transform",rt.textTransform,"inherit"),Kt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",nt),Gt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",rt.fontSize,"10px"),Ht=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",rt.fontWeight,"normal"),Lt=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",rt.letterSpacing,"0.33px"),Pt=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",rt.lineHeight,"16px"),qt=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",rt.textTransform,"inherit"),Xt=i.FtCssVariable.extend("--ft-typography-overline-font-family",nt),Yt=i.FtCssVariable.extend("--ft-typography-overline-font-size",rt.fontSize,"10px"),Jt=i.FtCssVariable.extend("--ft-typography-overline-font-weight",rt.fontWeight,"normal"),Qt=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",rt.letterSpacing,"1.5px"),Vt=i.FtCssVariable.extend("--ft-typography-overline-line-height",rt.lineHeight,"16px"),ti=i.FtCssVariable.extend("--ft-typography-overline-text-transform",rt.textTransform,"uppercase"),ii=i.FtCssVariable.extend("--ft-typography-button-font-family",nt),ei=i.FtCssVariable.extend("--ft-typography-button-font-size",rt.fontSize,"14px"),oi=i.FtCssVariable.extend("--ft-typography-button-font-weight",rt.fontWeight,"600"),ni=i.FtCssVariable.extend("--ft-typography-button-letter-spacing",rt.letterSpacing,"1.246px"),ri=i.FtCssVariable.extend("--ft-typography-button-line-height",rt.lineHeight,"16px"),si=i.FtCssVariable.extend("--ft-typography-button-text-transform",rt.textTransform,"uppercase"),li=e.css`
106
120
  .ft-typography--title {
107
- font-family: ${J};
108
- font-size: ${Q};
109
- font-weight: ${V};
110
- letter-spacing: ${tt};
111
- line-height: ${it};
112
- text-transform: ${et};
121
+ font-family: ${st};
122
+ font-size: ${lt};
123
+ font-weight: ${pt};
124
+ letter-spacing: ${at};
125
+ line-height: ${ht};
126
+ text-transform: ${ft};
113
127
  }
114
- `,Vt=e.css`
128
+ `,pi=e.css`
115
129
  .ft-typography--title-dense {
116
- font-family: ${ot};
117
- font-size: ${nt};
118
- font-weight: ${rt};
119
- letter-spacing: ${st};
120
- line-height: ${lt};
121
- text-transform: ${pt};
130
+ font-family: ${ct};
131
+ font-size: ${dt};
132
+ font-weight: ${gt};
133
+ letter-spacing: ${yt};
134
+ line-height: ${ut};
135
+ text-transform: ${xt};
122
136
  }
123
- `,ti=e.css`
137
+ `,ai=e.css`
124
138
  .ft-typography--subtitle1 {
125
- font-family: ${at};
126
- font-size: ${ht};
127
- font-weight: ${ft};
128
- letter-spacing: ${ct};
129
- line-height: ${dt};
130
- text-transform: ${gt};
139
+ font-family: ${vt};
140
+ font-size: ${bt};
141
+ font-weight: ${mt};
142
+ letter-spacing: ${$t};
143
+ line-height: ${wt};
144
+ text-transform: ${kt};
131
145
  }
132
- `,ii=e.css`
146
+ `,hi=e.css`
133
147
  .ft-typography--subtitle2 {
134
- font-family: ${yt};
135
- font-size: ${xt};
136
- font-weight: ${ut};
137
- letter-spacing: ${vt};
138
- line-height: ${mt};
139
- text-transform: ${bt};
148
+ font-family: ${zt};
149
+ font-size: ${Ct};
150
+ font-weight: ${St};
151
+ letter-spacing: ${Ot};
152
+ line-height: ${jt};
153
+ text-transform: ${Et};
140
154
  }
141
155
 
142
- `,ei=e.css`
156
+ `,fi=e.css`
143
157
  .ft-typography--body1 {
144
- font-family: ${$t};
145
- font-size: ${wt};
146
- font-weight: ${kt};
147
- letter-spacing: ${zt};
148
- line-height: ${Ct};
149
- text-transform: ${St};
158
+ font-family: ${It};
159
+ font-size: ${Nt};
160
+ font-weight: ${Bt};
161
+ letter-spacing: ${At};
162
+ line-height: ${_t};
163
+ text-transform: ${Tt};
150
164
  }
151
- `,oi=e.css`
165
+ `,ci=e.css`
152
166
  .ft-typography--body2 {
153
- font-family: ${Ot.fontFamily};
154
- font-size: ${Ot.fontSize};
155
- font-weight: ${Ot.fontWeight};
156
- letter-spacing: ${Ot.letterSpacing};
157
- line-height: ${Ot.lineHeight};
158
- text-transform: ${Ot.textTransform};
167
+ font-family: ${Mt.fontFamily};
168
+ font-size: ${Mt.fontSize};
169
+ font-weight: ${Mt.fontWeight};
170
+ letter-spacing: ${Mt.letterSpacing};
171
+ line-height: ${Mt.lineHeight};
172
+ text-transform: ${Mt.textTransform};
159
173
  }
160
- `,ni=e.css`
174
+ `,di=e.css`
161
175
  .ft-typography--caption {
162
- font-family: ${jt};
163
- font-size: ${Et};
164
- font-weight: ${It};
165
- letter-spacing: ${Nt};
166
- line-height: ${Bt};
167
- text-transform: ${At};
176
+ font-family: ${Ut};
177
+ font-size: ${Dt};
178
+ font-weight: ${Zt};
179
+ letter-spacing: ${Ft};
180
+ line-height: ${Rt};
181
+ text-transform: ${Wt};
168
182
  }
169
- `,ri=e.css`
183
+ `,gi=e.css`
170
184
  .ft-typography--breadcrumb {
171
- font-family: ${_t};
172
- font-size: ${Tt};
173
- font-weight: ${Mt};
174
- letter-spacing: ${Ut};
175
- line-height: ${Dt};
176
- text-transform: ${Zt};
185
+ font-family: ${Kt};
186
+ font-size: ${Gt};
187
+ font-weight: ${Ht};
188
+ letter-spacing: ${Lt};
189
+ line-height: ${Pt};
190
+ text-transform: ${qt};
177
191
  }
178
- `,si=e.css`
192
+ `,yi=e.css`
179
193
  .ft-typography--overline {
180
- font-family: ${Ft};
181
- font-size: ${Rt};
182
- font-weight: ${Wt};
183
- letter-spacing: ${Kt};
184
- line-height: ${Gt};
185
- text-transform: ${Ht};
194
+ font-family: ${Xt};
195
+ font-size: ${Yt};
196
+ font-weight: ${Jt};
197
+ letter-spacing: ${Qt};
198
+ line-height: ${Vt};
199
+ text-transform: ${ti};
186
200
  }
187
- `,li=e.css`
201
+ `,ui=e.css`
188
202
  .ft-typography--button {
189
- font-family: ${Lt};
190
- font-size: ${Pt};
191
- font-weight: ${qt};
192
- letter-spacing: ${Xt};
193
- line-height: ${Yt};
194
- text-transform: ${Jt};
203
+ font-family: ${ii};
204
+ font-size: ${ei};
205
+ font-weight: ${oi};
206
+ letter-spacing: ${ni};
207
+ line-height: ${ri};
208
+ text-transform: ${si};
195
209
  }
196
- `;class pi extends i.FtLitElement{constructor(){super(...arguments),this.variant=L.body1}render(){return this.element?H`
197
- <${K(this.element)}
210
+ `;class xi extends i.FtLitElement{constructor(){super(...arguments),this.variant=it.body1}render(){return this.element?tt`
211
+ <${Q(this.element)}
198
212
  class="ft-typography ft-typography--${this.variant}">
199
213
  <slot></slot>
200
- </${K(this.element)}>
201
- `:H`
214
+ </${Q(this.element)}>
215
+ `:tt`
202
216
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
203
- `}}var ai,hi;pi.styles=[Qt,Vt,ti,ii,ei,oi,ni,ri,si,li,e.css`
217
+ `}}var vi,bi;xi.styles=[li,pi,ai,hi,fi,ci,di,gi,yi,ui,e.css`
204
218
  .ft-typography {
205
219
  vertical-align: inherit;
206
220
  }
207
- `],P([o.property()],pi.prototype,"element",void 0),P([o.property()],pi.prototype,"variant",void 0),i.customElement("ft-typography")(pi),function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(ai||(ai={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(hi||(hi={})),new Map([...["abw"].map((t=>[t,hi.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,hi.AUDIO])),...["avi"].map((t=>[t,hi.AVI])),...["chm","xhs"].map((t=>[t,hi.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,hi.CODE])),...["csv"].map((t=>[t,hi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,hi.DITA])),...["epub"].map((t=>[t,hi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,hi.EXCEL])),...["flac"].map((t=>[t,hi.FLAC])),...["gif"].map((t=>[t,hi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,hi.GZIP])),...["html","htm","xhtml"].map((t=>[t,hi.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,hi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,hi.JPEG])),...["json"].map((t=>[t,hi.JSON])),...["m4a","m4p"].map((t=>[t,hi.M4A])),...["mov","qt"].map((t=>[t,hi.MOV])),...["mp3"].map((t=>[t,hi.MP3])),...["mp4","m4v"].map((t=>[t,hi.MP4])),...["ogg","oga"].map((t=>[t,hi.OGG])),...["pdf","ps"].map((t=>[t,hi.PDF])),...["png"].map((t=>[t,hi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,hi.POWERPOINT])),...["rar"].map((t=>[t,hi.RAR])),...["stp"].map((t=>[t,hi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,hi.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,hi.VIDEO])),...["wav"].map((t=>[t,hi.WAV])),...["wma"].map((t=>[t,hi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,hi.WORD])),...["xml","xsl","rdf"].map((t=>[t,hi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,hi.YAML])),...["zip"].map((t=>[t,hi.ZIP]))]);var fi,ci=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(fi||(fi={}));const di={size:i.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariable.extend("--ft-icon-file-format-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariable.extend("--ft-icon-material-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class gi extends i.FtLitElement{constructor(){super(...arguments),this.variant=fi.fluid_topics}render(){return e.html`
221
+ `],et([o.property()],xi.prototype,"element",void 0),et([o.property()],xi.prototype,"variant",void 0),i.customElement("ft-typography")(xi),function(t){t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(vi||(vi={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(bi||(bi={})),new Map([...["abw"].map((t=>[t,bi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,bi.AUDIO])),...["avi"].map((t=>[t,bi.AVI])),...["chm","xhs"].map((t=>[t,bi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,bi.CODE])),...["csv"].map((t=>[t,bi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,bi.DITA])),...["epub"].map((t=>[t,bi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,bi.EXCEL])),...["flac"].map((t=>[t,bi.FLAC])),...["gif"].map((t=>[t,bi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,bi.GZIP])),...["html","htm","xhtml"].map((t=>[t,bi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,bi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,bi.JPEG])),...["json"].map((t=>[t,bi.JSON])),...["m4a","m4p"].map((t=>[t,bi.M4A])),...["mov","qt"].map((t=>[t,bi.MOV])),...["mp3"].map((t=>[t,bi.MP3])),...["mp4","m4v"].map((t=>[t,bi.MP4])),...["ogg","oga"].map((t=>[t,bi.OGG])),...["pdf","ps"].map((t=>[t,bi.PDF])),...["png"].map((t=>[t,bi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,bi.POWERPOINT])),...["rar"].map((t=>[t,bi.RAR])),...["stp"].map((t=>[t,bi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,bi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,bi.VIDEO])),...["wav"].map((t=>[t,bi.WAV])),...["wma"].map((t=>[t,bi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,bi.WORD])),...["xml","xsl","rdf"].map((t=>[t,bi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,bi.YAML])),...["zip"].map((t=>[t,bi.ZIP]))]);var mi,$i=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(mi||(mi={}));const wi={size:i.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariable.extend("--ft-icon-file-format-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariable.extend("--ft-icon-material-font-family",i.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class ki extends i.FtLitElement{constructor(){super(...arguments),this.variant=mi.fluid_topics}render(){return e.html`
208
222
  <i class="ft-icon ${"ft-icon--"+this.variant}">
209
223
  ${r.unsafeHTML(this.getIcon())}
210
224
  <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
211
225
  </i>
212
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let o=this.textContent;return this.variant===fi.file_format?null!==(t=hi[o.toUpperCase()])&&void 0!==t?t:o:this.variant===fi.fluid_topics?null!==(i=ai[o.toUpperCase()])&&void 0!==i?i:o:e.nothing}}gi.elementDefinitions={},gi.styles=e.css`
226
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}getIcon(){var t,i;let o=this.textContent;return this.variant===mi.file_format?null!==(t=bi[o.toUpperCase()])&&void 0!==t?t:o:this.variant===mi.fluid_topics?null!==(i=vi[o.toUpperCase()])&&void 0!==i?i:o:e.nothing}}ki.elementDefinitions={},ki.styles=e.css`
213
227
  :host, i.ft-icon {
214
228
  display: inline-block;
215
- width: ${di.size};
216
- height: ${di.size};
229
+ width: ${wi.size};
230
+ height: ${wi.size};
217
231
  text-align: center;
218
232
  }
219
233
 
220
234
  i.ft-icon {
221
- font-size: ${di.size};
235
+ font-size: ${wi.size};
222
236
  line-height: 1;
223
237
  font-weight: normal;
224
238
  text-transform: none;
@@ -232,17 +246,17 @@ const K=t=>({_$litStatic$:t}),G=new Map,H=(t=>(i,...e)=>{var o;const n=e.length;
232
246
  }
233
247
 
234
248
  .ft-icon--fluid-topics {
235
- font-family: ${di.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
249
+ font-family: ${wi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
236
250
  }
237
251
 
238
252
  .ft-icon--file-format {
239
- font-family: ${di.fileFormatFontFamily}, ft-mime, sans-serif;
253
+ font-family: ${wi.fileFormatFontFamily}, ft-mime, sans-serif;
240
254
  }
241
255
 
242
256
  .ft-icon--material {
243
- font-family: ${di.materialFontFamily}, "Material Icons", sans-serif;
257
+ font-family: ${wi.materialFontFamily}, "Material Icons", sans-serif;
244
258
  }
245
- `,ci([o.property()],gi.prototype,"variant",void 0),ci([o.query("slot")],gi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(gi);var yi=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const xi=i.FtCssVariable.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),ui={backgroundColor:i.FtCssVariable.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:xi,fontSize:i.FtCssVariable.extend("--ft-chip-font-size",Ot.fontSize),iconSize:i.FtCssVariable.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariable.extend("--ft-chip-ripple-color",xi),horizontalPadding:i.FtCssVariable.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariable.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariable.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariable.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},vi=i.FtCssVariable.extend("--ft-chip-highlighted-color",i.FtCssVariable.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),mi={backgroundColor:i.FtCssVariable.extend("--ft-chip-highlighted-background-color",i.FtCssVariable.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:vi,rippleColor:i.FtCssVariable.extend("--ft-chip-highlighted-ripple-color",vi)},bi=i.FtCssVariable.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),$i=i.FtCssVariable.create("--ft-chip-dense-vertical-padding","SIZE","4px");class wi extends CustomEvent{constructor(){super("icon-click")}}class ki extends i.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}static get styles(){return[i.noTextSelect,e.css`
259
+ `,$i([o.property()],ki.prototype,"variant",void 0),$i([o.query("slot")],ki.prototype,"slottedContent",void 0),i.customElement("ft-icon")(ki);var zi=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const Ci=i.FtCssVariable.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),Si={backgroundColor:i.FtCssVariable.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:Ci,fontSize:i.FtCssVariable.extend("--ft-chip-font-size",Mt.fontSize),iconSize:i.FtCssVariable.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariable.extend("--ft-chip-ripple-color",Ci),horizontalPadding:i.FtCssVariable.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariable.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariable.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariable.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Oi=i.FtCssVariable.extend("--ft-chip-highlighted-color",i.FtCssVariable.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),ji={backgroundColor:i.FtCssVariable.extend("--ft-chip-highlighted-background-color",i.FtCssVariable.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:Oi,rippleColor:i.FtCssVariable.extend("--ft-chip-highlighted-ripple-color",Oi)},Ei=i.FtCssVariable.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Ii=i.FtCssVariable.create("--ft-chip-dense-vertical-padding","SIZE","4px");class Ni extends CustomEvent{constructor(){super("icon-click")}}class Bi extends i.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.icon=void 0,this.trailingIcon=!1}static get styles(){return[i.noTextSelect,e.css`
246
260
  :host {
247
261
  display: inline-block;
248
262
  max-width: 100%;
@@ -259,27 +273,31 @@ const K=t=>({_$litStatic$:t}),G=new Map,H=(t=>(i,...e)=>{var o;const n=e.length;
259
273
  box-sizing: border-box;
260
274
  pointer-events: auto;
261
275
 
262
- --ft-chip-internal-font-size: ${ui.fontSize};
276
+ --ft-chip-internal-font-size: ${Si.fontSize};
263
277
  --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
264
- ${i.setVariable(di.size,ui.iconSize)};
265
- --ft-chip-internal-vertical-padding: ${ui.verticalPadding};
266
- --ft-chip-internal-horizontal-padding: ${ui.horizontalPadding};
278
+ ${i.setVariable(wi.size,Si.iconSize)};
279
+ --ft-chip-internal-vertical-padding: ${Si.verticalPadding};
280
+ --ft-chip-internal-horizontal-padding: ${Si.horizontalPadding};
267
281
  --ft-chip-internal-icon-padding: 3px;
268
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${ui.iconSize});
282
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Si.iconSize});
269
283
 
270
- border: 1px solid ${ui.colorOutline};
271
- color: ${ui.color};
272
- ${i.setVariable(l.color,ui.rippleColor)};
284
+ border: 1px solid ${Si.colorOutline};
285
+ color: ${Si.color};
286
+ ${i.setVariable(p.color,Si.rippleColor)};
273
287
  border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
274
288
  padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
275
- background-color: ${ui.backgroundColor};
289
+ background-color: ${Si.backgroundColor};
276
290
  line-height: var(--ft-chip-internal-content-height);
277
291
  }
278
292
 
293
+ .ft-chip > *:not(ft-ripple) {
294
+ position: relative;
295
+ }
296
+
279
297
  .ft-chip--dense {
280
298
  --ft-chip-internal-icon-padding: 3px;
281
- --ft-chip-internal-vertical-padding: ${$i};
282
- --ft-chip-internal-horizontal-padding: ${bi};
299
+ --ft-chip-internal-vertical-padding: ${Ii};
300
+ --ft-chip-internal-horizontal-padding: ${Ei};
283
301
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
284
302
  }
285
303
 
@@ -291,15 +309,15 @@ const K=t=>({_$litStatic$:t}),G=new Map,H=(t=>(i,...e)=>{var o;const n=e.length;
291
309
  cursor: default;
292
310
  pointer-events: none;
293
311
  filter: grayscale(1);
294
- opacity: ${ui.opacityDisabled};
312
+ opacity: ${Si.opacityDisabled};
295
313
  }
296
314
 
297
315
  .ft-chip--highlighted {
298
316
  border: none;
299
317
  padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
300
- background-color: ${mi.backgroundColor};
301
- ${i.setVariable(l.color,mi.rippleColor)};
302
- color: ${mi.color};
318
+ background-color: ${ji.backgroundColor};
319
+ ${i.setVariable(p.color,ji.rippleColor)};
320
+ color: ${ji.color};
303
321
  }
304
322
 
305
323
  .ft-chip--clickable {
@@ -324,12 +342,16 @@ const K=t=>({_$litStatic$:t}),G=new Map,H=(t=>(i,...e)=>{var o;const n=e.length;
324
342
  margin: calc((-1) * var(--ft-chip-internal-icon-padding));
325
343
  }
326
344
 
345
+ .ft-chip--icon-container > *:not(ft-ripple) {
346
+ position: relative;
347
+ }
348
+
327
349
  .ft-chip--label {
328
350
  vertical-align: bottom;
329
351
  display: block;
330
352
  margin: 0 var(--ft-chip-internal-horizontal-padding);
331
- ${i.setVariable(Ot.fontSize,"var(--ft-chip-internal-font-size)")};
332
- ${i.setVariable(Ot.lineHeight,"var(--ft-chip-internal-content-height)")};
353
+ ${i.setVariable(Mt.fontSize,"var(--ft-chip-internal-font-size)")};
354
+ ${i.setVariable(Mt.lineHeight,"var(--ft-chip-internal-content-height)")};
333
355
  }
334
356
 
335
357
  .ft-chip--safari-fix .ft-chip--label {
@@ -383,7 +405,7 @@ const K=t=>({_$litStatic$:t}),G=new Map,H=(t=>(i,...e)=>{var o;const n=e.length;
383
405
  <ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
384
406
  <ft-icon variant="material">${this.internalIcon}</ft-icon>
385
407
  </div>
386
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new wi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new wi))}getLabel(){return this.label||this.textContent}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()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}ki.elementDefinitions={"ft-ripple":p,"ft-typography":pi,"ft-icon":gi},yi([o.property({type:Boolean})],ki.prototype,"highlighted",void 0),yi([o.property({type:Boolean})],ki.prototype,"removable",void 0),yi([o.property({type:Boolean})],ki.prototype,"disabled",void 0),yi([o.property({type:Boolean})],ki.prototype,"clickable",void 0),yi([o.property({type:Boolean})],ki.prototype,"iconClickable",void 0),yi([o.property({type:Boolean})],ki.prototype,"dense",void 0),yi([o.property({type:Boolean})],ki.prototype,"multiLine",void 0),yi([o.property({type:String})],ki.prototype,"label",void 0),yi([o.property({type:String})],ki.prototype,"icon",void 0),yi([o.property({type:Boolean})],ki.prototype,"trailingIcon",void 0),yi([o.query("ft-typography slot")],ki.prototype,"slottedContent",void 0),i.customElement("ft-chip")(ki);var zi=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const Ci={zIndex:i.FtCssVariable.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:i.FtCssVariable.extend("--ft-file-drop-hint-background-color",i.designSystemVariables.colorSurface),hintColor:i.FtCssVariable.extend("--ft-file-drop-hint-color",i.designSystemVariables.colorPrimary),errorColor:i.FtCssVariable.extend("--ft-file-drop-error-color",i.designSystemVariables.colorError),borderRadius:i.FtCssVariable.extend("--ft-file-drop-border-radius",i.designSystemVariables.borderRadiusL),borderWidth:i.FtCssVariable.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:i.FtCssVariable.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:i.FtCssVariable.extend("--ft-file-drop-visible-border-color",i.designSystemVariables.colorOutline),activeBorderColor:i.FtCssVariable.extend("--ft-file-drop-active-border-color",i.designSystemVariables.colorPrimary)};class Si extends CustomEvent{constructor(t){super("file-drop",{detail:{file:t}})}}class Oi extends i.FtLitElement{constructor(){super(...arguments),this.dropHint="Drop your file here",this.accept="",this.fileTypeError="Unsupported file type",this.visible=!1,this.dragging=!1,this.fileError=!1}render(){let t={dragging:this.dragging,visible:this.visible};return e.html`
408
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Ni))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Ni))}getLabel(){return this.label||this.textContent}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()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Bi.elementDefinitions={"ft-ripple":y,"ft-typography":xi,"ft-icon":ki},zi([o.property({type:Boolean})],Bi.prototype,"highlighted",void 0),zi([o.property({type:Boolean})],Bi.prototype,"removable",void 0),zi([o.property({type:Boolean})],Bi.prototype,"disabled",void 0),zi([o.property({type:Boolean})],Bi.prototype,"clickable",void 0),zi([o.property({type:Boolean})],Bi.prototype,"iconClickable",void 0),zi([o.property({type:Boolean})],Bi.prototype,"dense",void 0),zi([o.property({type:Boolean})],Bi.prototype,"multiLine",void 0),zi([o.property({type:String})],Bi.prototype,"label",void 0),zi([o.property({type:String})],Bi.prototype,"icon",void 0),zi([o.property({type:Boolean})],Bi.prototype,"trailingIcon",void 0),zi([o.query("ft-typography slot")],Bi.prototype,"slottedContent",void 0),i.customElement("ft-chip")(Bi);var Ai=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(n=t[l])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const _i={zIndex:i.FtCssVariable.create("--ft-file-drop-z-index","NUMBER","10"),hintBackgroundColor:i.FtCssVariable.extend("--ft-file-drop-hint-background-color",i.designSystemVariables.colorSurface),hintColor:i.FtCssVariable.extend("--ft-file-drop-hint-color",i.designSystemVariables.colorPrimary),errorColor:i.FtCssVariable.extend("--ft-file-drop-error-color",i.designSystemVariables.colorError),borderRadius:i.FtCssVariable.extend("--ft-file-drop-border-radius",i.designSystemVariables.borderRadiusL),borderWidth:i.FtCssVariable.create("--ft-file-drop-border-width","SIZE","4px"),borderColor:i.FtCssVariable.create("--ft-file-drop-border-color","COLOR","transparent"),visibleBorderColor:i.FtCssVariable.extend("--ft-file-drop-visible-border-color",i.designSystemVariables.colorOutline),activeBorderColor:i.FtCssVariable.extend("--ft-file-drop-active-border-color",i.designSystemVariables.colorPrimary)};class Ti extends CustomEvent{constructor(t){super("file-drop",{detail:{file:t}})}}class Mi extends i.FtLitElement{constructor(){super(...arguments),this.dropHint="Drop your file here",this.accept="",this.fileTypeError="Unsupported file type",this.visible=!1,this.dragging=!1,this.fileError=!1}render(){let t={dragging:this.dragging,visible:this.visible};return e.html`
387
409
  <div id="container"
388
410
  class="${n.classMap(t)}"
389
411
  @dragenter=${this.onDragEnter}
@@ -401,7 +423,7 @@ const K=t=>({_$litStatic$:t}),G=new Map,H=(t=>(i,...e)=>{var o;const n=e.length;
401
423
  </div>
402
424
  <slot></slot>
403
425
  </div>
404
- `}onDragEnter(t){this.dragging=!0,t.preventDefault()}onDragOver(t){t.preventDefault()}onDragLeave(t){this.dragging=!1,t.preventDefault()}async onDrop(t){if(t.preventDefault(),t.dataTransfer&&t.dataTransfer.files){let i=t.dataTransfer.files[0];!function(t,i,e){if(0==t.length)return!0;let o=t.replace(/\*/g,".*").replace(/,/g,"|").replace(/\./g,"\\."),n=new RegExp(o),r=i.includes(".")?"."+i.split(".").pop():void 0;return!(!r||!n.test(r))||n.test(e)}(this.accept,i.name,i.type)?(this.fileError=!0,setTimeout((()=>{this.dragging=!1,this.fileError=!1}),2e3)):(this.dragging=!1,this.dispatchEvent(new Si(i)))}}}Oi.elementDefinitions={"ft-chip":ki},Oi.styles=e.css`
426
+ `}onDragEnter(t){this.dragging=!0,t.preventDefault()}onDragOver(t){t.preventDefault()}onDragLeave(t){this.dragging=!1,t.preventDefault()}async onDrop(t){if(t.preventDefault(),t.dataTransfer&&t.dataTransfer.files){let i=t.dataTransfer.files[0];!function(t,i,e){if(0==t.length)return!0;let o=t.replace(/\*/g,".*").replace(/,/g,"|").replace(/\./g,"\\."),n=new RegExp(o),r=i.includes(".")?"."+i.split(".").pop():void 0;return!(!r||!n.test(r))||n.test(e)}(this.accept,i.name,i.type)?(this.fileError=!0,setTimeout((()=>{this.dragging=!1,this.fileError=!1}),2e3)):(this.dragging=!1,this.dispatchEvent(new Ti(i)))}}}Mi.elementDefinitions={"ft-chip":Bi},Mi.styles=e.css`
405
427
  :host {
406
428
  display: block;
407
429
  position: relative;
@@ -410,16 +432,16 @@ const K=t=>({_$litStatic$:t}),G=new Map,H=(t=>(i,...e)=>{var o;const n=e.length;
410
432
  #container {
411
433
  position: absolute;
412
434
  inset: 0;
413
- border: dashed ${Ci.borderWidth} ${Ci.borderColor};
414
- border-radius: ${Ci.borderRadius};
435
+ border: dashed ${_i.borderWidth} ${_i.borderColor};
436
+ border-radius: ${_i.borderRadius};
415
437
  }
416
438
 
417
439
  #container.visible {
418
- border-color: ${Ci.visibleBorderColor}
440
+ border-color: ${_i.visibleBorderColor}
419
441
  }
420
442
 
421
443
  #container.dragging {
422
- border-color: ${Ci.activeBorderColor}
444
+ border-color: ${_i.activeBorderColor}
423
445
  }
424
446
 
425
447
  slot {
@@ -433,7 +455,7 @@ const K=t=>({_$litStatic$:t}),G=new Map,H=(t=>(i,...e)=>{var o;const n=e.length;
433
455
  display: none;
434
456
  position: absolute;
435
457
  inset: 0;
436
- z-index: ${Ci.zIndex};
458
+ z-index: ${_i.zIndex};
437
459
  }
438
460
 
439
461
  #container.dragging #overlay {
@@ -444,9 +466,9 @@ const K=t=>({_$litStatic$:t}),G=new Map,H=(t=>(i,...e)=>{var o;const n=e.length;
444
466
  z-index: 1;
445
467
  position: absolute;
446
468
  inset: 0;
447
- background-color: ${Ci.activeBorderColor};
469
+ background-color: ${_i.activeBorderColor};
448
470
  opacity: 0.20;
449
- border-radius: ${Ci.borderRadius};
471
+ border-radius: ${_i.borderRadius};
450
472
  }
451
473
 
452
474
  #overlay-drop {
@@ -466,17 +488,17 @@ const K=t=>({_$litStatic$:t}),G=new Map,H=(t=>(i,...e)=>{var o;const n=e.length;
466
488
 
467
489
  #overlay-content ft-chip {
468
490
  margin-bottom: 10%;
469
- ${i.setVariable(ui.color,Ci.hintColor)};
470
- ${i.setVariable(ui.iconSize,"32px")};
471
- ${i.setVariable(ui.colorOutline,"transparent")};
491
+ ${i.setVariable(Si.color,_i.hintColor)};
492
+ ${i.setVariable(Si.iconSize,"32px")};
493
+ ${i.setVariable(Si.colorOutline,"transparent")};
472
494
  }
473
495
 
474
496
  #overlay-content xft-chip[icon=error] {
475
- ${i.setVariable(ui.color,Ci.errorColor)};
476
- ${i.setVariable(ui.backgroundColor,Ci.hintBackgroundColor)};
497
+ ${i.setVariable(Si.color,_i.errorColor)};
498
+ ${i.setVariable(Si.backgroundColor,_i.hintBackgroundColor)};
477
499
  }
478
500
 
479
501
  [hidden] {
480
502
  display: none;
481
503
  }
482
- `,zi([o.property()],Oi.prototype,"dropHint",void 0),zi([o.property()],Oi.prototype,"accept",void 0),zi([o.property()],Oi.prototype,"fileTypeError",void 0),zi([o.property({type:Boolean})],Oi.prototype,"visible",void 0),zi([o.state()],Oi.prototype,"dragging",void 0),zi([o.state()],Oi.prototype,"fileError",void 0),i.customElement("ft-file-drop")(Oi),t.FileDropEvent=Si,t.FtFileDrop=Oi,t.FtFileDropCssVariables=Ci,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
504
+ `,Ai([o.property()],Mi.prototype,"dropHint",void 0),Ai([o.property()],Mi.prototype,"accept",void 0),Ai([o.property()],Mi.prototype,"fileTypeError",void 0),Ai([o.property({type:Boolean})],Mi.prototype,"visible",void 0),Ai([o.state()],Mi.prototype,"dragging",void 0),Ai([o.state()],Mi.prototype,"fileError",void 0),i.customElement("ft-file-drop")(Mi),t.FileDropEvent=Ti,t.FtFileDrop=Mi,t.FtFileDropCssVariables=_i,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);