@fluid-topics/ft-chip 0.3.12 → 0.3.13

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,122 +1,116 @@
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.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),p={color:l,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",l),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},a=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),h=a,f=i.FtCssVariableFactory.extend("--ft-ripple-background-color",a),c=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),d=c,g=i.FtCssVariableFactory.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
- <style>
3
- .ft-ripple .ft-ripple--effect,
4
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
5
- width: ${this.rippleSize}px;
6
- height: ${this.rippleSize}px;
7
- }
1
+ !function(t,i,e,o,n,r){const s=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),l={color:s,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",s),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),a=p,h=i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),f=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),c=f,d=i.FtCssVariableFactory.extend("--ft-ripple-background-color",f),g=e.css`
2
+ :host {
3
+ display: contents;
4
+ }
8
5
 
9
- .ft-ripple .ft-ripple--effect {
10
- left: ${this.originX}px;
11
- top: ${this.originY}px;
12
- }
13
- </style>
14
- <div class="${n.classMap(t)}">
15
- <div class="ft-ripple--background"></div>
16
- <div class="ft-ripple--effect"></div>
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){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
- /**
20
- * @license
21
- * Copyright 2017 Google LLC
22
- * SPDX-License-Identifier: BSD-3-Clause
23
- */
24
- var x;y.elementDefinitions={},y.styles=e.css`
25
- :host {
26
- display: contents;
27
- }
6
+ .ft-ripple {
7
+ position: absolute;
8
+ inset: 0;
9
+ pointer-events: none;
10
+ }
28
11
 
29
- .ft-ripple {
30
- position: absolute;
31
- inset: 0;
32
- pointer-events: none;
33
- }
12
+ .ft-ripple:not(.ft-ripple--unbounded) {
13
+ overflow: hidden;
14
+ }
34
15
 
35
- .ft-ripple:not(.ft-ripple--unbounded) {
36
- overflow: hidden;
37
- }
16
+ .ft-ripple .ft-ripple--background,
17
+ .ft-ripple .ft-ripple--effect {
18
+ position: absolute;
19
+ opacity: 0;
20
+ }
38
21
 
39
- .ft-ripple .ft-ripple--background,
40
- .ft-ripple .ft-ripple--effect {
41
- position: absolute;
42
- opacity: 0;
43
- }
22
+ .ft-ripple .ft-ripple--background {
23
+ background-color: ${l.backgroundColor};
24
+ }
44
25
 
45
- .ft-ripple .ft-ripple--background {
46
- background-color: ${p.backgroundColor};
47
- }
26
+ .ft-ripple .ft-ripple--effect {
27
+ background-color: ${l.color};
28
+ }
48
29
 
49
- .ft-ripple .ft-ripple--effect {
50
- background-color: ${p.color};
51
- }
30
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
31
+ background-color: ${d};
32
+ }
52
33
 
53
- .ft-ripple.ft-ripple--secondary .ft-ripple--background {
54
- background-color: ${g};
55
- }
34
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
35
+ background-color: ${c};
36
+ }
56
37
 
57
- .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
58
- background-color: ${d};
59
- }
38
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
39
+ background-color: ${h};
40
+ }
60
41
 
61
- .ft-ripple.ft-ripple--primary .ft-ripple--background {
62
- background-color: ${f};
63
- }
42
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
43
+ background-color: ${a};
44
+ }
64
45
 
65
- .ft-ripple.ft-ripple--primary .ft-ripple--effect {
66
- background-color: ${h};
67
- }
46
+ .ft-ripple .ft-ripple--background {
47
+ top: 0;
48
+ left: 0;
49
+ height: 100%;
50
+ width: 100%;
51
+ transition: opacity 75ms linear;
52
+ }
68
53
 
69
- .ft-ripple .ft-ripple--background {
70
- top: 0;
71
- left: 0;
72
- height: 100%;
73
- width: 100%;
74
- transition: opacity 75ms linear;
75
- }
54
+ .ft-ripple .ft-ripple--effect,
55
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
56
+ border-radius: 50%;
57
+ }
76
58
 
77
- .ft-ripple .ft-ripple--effect,
78
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
79
- border-radius: 50%;
80
- }
59
+ .ft-ripple .ft-ripple--effect {
60
+ transform: translate(-50%, -50%) scale(0.15);
61
+ transition: transform 300ms ease, opacity 75ms linear;
62
+ }
81
63
 
82
- .ft-ripple .ft-ripple--effect {
83
- transform: translate(-50%, -50%) scale(0.15);
84
- transition: transform 300ms ease, opacity 75ms linear;
85
- }
64
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
65
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
66
+ left: 50%;
67
+ top: 50%;
68
+ }
86
69
 
87
- .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
88
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
89
- left: 50%;
90
- top: 50%;
91
- }
70
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
71
+ transform: translate(-50%, -50%);
72
+ }
92
73
 
93
- .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
94
- transform: translate(-50%, -50%);
95
- }
74
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
75
+ opacity: ${l.opacityContentOnSurfaceHover};
76
+ }
96
77
 
97
- .ft-ripple.ft-ripple--hovered .ft-ripple--background {
98
- opacity: ${p.opacityContentOnSurfaceHover};
99
- }
78
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
79
+ opacity: ${l.opacityContentOnSurfaceSelected};
80
+ }
100
81
 
101
- .ft-ripple.ft-ripple--selected .ft-ripple--background {
102
- opacity: ${p.opacityContentOnSurfaceSelected};
103
- }
82
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
83
+ opacity: ${l.opacityContentOnSurfaceFocused};
84
+ }
104
85
 
105
- .ft-ripple.ft-ripple--focused .ft-ripple--background {
106
- opacity: ${p.opacityContentOnSurfaceFocused};
107
- }
86
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
87
+ opacity: ${l.opacityContentOnSurfacePressed};
88
+ transform: translate(-50%, -50%) scale(1);
89
+ }
90
+ `;var y,x=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};class u 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`
91
+ <style>
92
+ .ft-ripple .ft-ripple--effect,
93
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
94
+ width: ${this.rippleSize}px;
95
+ height: ${this.rippleSize}px;
96
+ }
108
97
 
109
- .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
110
- opacity: ${p.opacityContentOnSurfacePressed};
111
- transform: translate(-50%, -50%) scale(1);
112
- }
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 u=globalThis.trustedTypes,v=u?u.createPolicy("lit-html",{createHTML:t=>t}):void 0,m=`lit$${(Math.random()+"").slice(9)}$`,b="?"+m,$=`<${b}>`,w=document,k=(t="")=>w.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,S=Array.isArray,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,j=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),O=/'/g,E=/"/g,A=/^(?:script|style|textarea|title)$/i,_=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),B=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),T=new WeakMap,M=w.createTreeWalker(w,129,null,!1),F=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=C;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===C?"!--"===p[1]?s=N:void 0!==p[1]?s=j:void 0!==p[2]?(A.test(p[2])&&(n=RegExp("</"+p[2],"g")),s=I):void 0!==p[3]&&(s=I):s===I?">"===p[0]?(s=null!=n?n:C,a=-1):void 0===p[1]?a=-2:(a=s.lastIndex-p[2].length,l=p[1],s=void 0===p[3]?I:'"'===p[3]?E:O):s===E||s===O?s=I:s===N||s===j?s=C:(s=I,n=void 0);const f=s===I&&t[i+1].startsWith("/>")?" ":"";r+=s===C?e+$:a>=0?(o.push(l),e.slice(0,a)+"$lit$"+e.slice(a)+m+f):e+m+(-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]=F(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<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(m)){const e=a[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(m),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?R:"?"===i[1]?H:"@"===i[1]?L:D})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(A.test(o.tagName)){const t=o.textContent.split(m),i=t.length-1;if(i>0){o.textContent=u?u.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],k()),M.nextNode(),l.push({type:2,index:++n});o.append(t[i],k())}}}else if(8===o.nodeType)if(o.data===b)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(m,t+1));)l.push({type:7,index:n}),t+=m.length-1}n++}}static createElement(t,i){const e=w.createElement("template");return e.innerHTML=t,e}}function W(t,i,e=t,o){var n,r,s,l;if(i===B)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=W(t,p._$AS(t,i.values),p,o)),i}class K{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);M.currentNode=n;let r=M.nextNode(),s=0,l=0,p=o[0];for(;void 0!==p;){if(s===p.index){let i;2===p.type?i=new P(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=M.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 P{constructor(t,i,e,o){var n;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$C_=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._$C_}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=W(this,t,i),z(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==B&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>S(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==U&&z(this._$AH)?this._$AA.nextSibling.data=t:this.k(w.createTextNode(t)),this._$AH=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 K(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=T.get(t.strings);return void 0===i&&T.set(t.strings,i=new Z(t)),i}S(t){S(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 P(this.j(k()),this.j(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._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class D{constructor(t,i,e,o,n){this.type=1,this._$AH=U,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=U}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=W(this,t,i,0),r=!z(t)||t!==this._$AH&&t!==B,r&&(this._$AH=t);else{const o=t;let s,l;for(t=n[0],s=0;s<n.length-1;s++)l=W(this,o[e+s],i,s),l===B&&(l=this._$AH[s]),r||(r=!z(l)||l!==this._$AH[s]),l===U?t=U:t!==U&&(t+=(null!=l?l:"")+n[s+1]),this._$AH[s]=l}r&&!o&&this.P(t)}P(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class R extends D{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===U?void 0:t}}const G=u?u.emptyScript:"";class H extends D{constructor(){super(...arguments),this.type=4}P(t){t&&t!==U?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class L extends D{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=W(this,t,i,0))&&void 0!==e?e:U)===B)return;const o=this._$AH,n=t===U&&o!==U||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==U&&(o===U||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){W(this,t)}}const X=window.litHtmlPolyfillSupport;null==X||X(Z,P),(null!==(x=globalThis.litHtmlVersions)&&void 0!==x?x:globalThis.litHtmlVersions=[]).push("2.2.7");
98
+ .ft-ripple .ft-ripple--effect {
99
+ left: ${this.originX}px;
100
+ top: ${this.originY}px;
101
+ }
102
+ </style>
103
+ <div class="${n.classMap(t)}">
104
+ <div class="ft-ripple--background"></div>
105
+ <div class="ft-ripple--effect"></div>
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"),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()}}u.elementDefinitions={},u.styles=g,x([o.property({type:Boolean})],u.prototype,"primary",void 0),x([o.property({type:Boolean})],u.prototype,"secondary",void 0),x([o.property({type:Boolean})],u.prototype,"unbounded",void 0),x([o.property({type:Boolean})],u.prototype,"activated",void 0),x([o.property({type:Boolean})],u.prototype,"selected",void 0),x([o.property({type:Boolean})],u.prototype,"disabled",void 0),x([o.state()],u.prototype,"hovered",void 0),x([o.state()],u.prototype,"focused",void 0),x([o.state()],u.prototype,"pressed",void 0),x([o.state()],u.prototype,"rippling",void 0),x([o.state()],u.prototype,"rippleSize",void 0),x([o.state()],u.prototype,"originX",void 0),x([o.state()],u.prototype,"originY",void 0),x([o.query(".ft-ripple")],u.prototype,"ripple",void 0),x([o.query(".ft-ripple--effect")],u.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(u);const v=globalThis.trustedTypes,m=v?v.createPolicy("lit-html",{createHTML:t=>t}):void 0,b=`lit$${(Math.random()+"").slice(9)}$`,$="?"+b,w=`<${$}>`,k=document,z=(t="")=>k.createComment(t),S=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,N=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,I=/>/g,O=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),E=/'/g,A=/"/g,_=/^(?:script|style|textarea|title)$/i,B=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),U=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),M=new WeakMap,F=k.createTreeWalker(k,129,null,!1),Z=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=N;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===N?"!--"===p[1]?s=j:void 0!==p[1]?s=I:void 0!==p[2]?(_.test(p[2])&&(n=RegExp("</"+p[2],"g")),s=O):void 0!==p[3]&&(s=O):s===O?">"===p[0]?(s=null!=n?n:N,a=-1):void 0===p[1]?a=-2:(a=s.lastIndex-p[2].length,l=p[1],s=void 0===p[3]?O:'"'===p[3]?A:E):s===A||s===E?s=O:s===j||s===I?s=N:(s=O,n=void 0);const f=s===O&&t[i+1].startsWith("/>")?" ":"";r+=s===N?e+w: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!==m?m.createHTML(l):l,o]};class W{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]=Z(t,i);if(this.el=W.createElement(p,e),F.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=F.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]?q:R})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(_.test(o.tagName)){const t=o.textContent.split(b),i=t.length-1;if(i>0){o.textContent=v?v.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],z()),F.nextNode(),l.push({type:2,index:++n});o.append(t[i],z())}}}else if(8===o.nodeType)if(o.data===$)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=k.createElement("template");return e.innerHTML=t,e}}function K(t,i,e=t,o){var n,r,s,l;if(i===U)return i;let p=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const a=S(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=K(t,p._$AS(t,i.values),p,o)),i}class P{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:k).importNode(e,!0);F.currentNode=n;let r=F.nextNode(),s=0,l=0,p=o[0];for(;void 0!==p;){if(s===p.index){let i;2===p.type?i=new D(r,r.nextSibling,this,t):1===p.type?i=new p.ctor(r,p.name,p.strings,this,t):6===p.type&&(i=new X(r,this,t)),this.v.push(i),p=o[++l]}s!==(null==p?void 0:p.index)&&(r=F.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 D{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._$C_=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._$C_}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=K(this,t,i),S(t)?t===T||null==t||""===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==U&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>C(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==T&&S(this._$AH)?this._$AA.nextSibling.data=t:this.k(k.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=W.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 P(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 W(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 D(this.j(z()),this.j(z()),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._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class R{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=K(this,t,i,0),r=!S(t)||t!==this._$AH&&t!==U,r&&(this._$AH=t);else{const o=t;let s,l;for(t=n[0],s=0;s<n.length-1;s++)l=K(this,o[e+s],i,s),l===U&&(l=this._$AH[s]),r||(r=!S(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.P(t)}P(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends R{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===T?void 0:t}}const H=v?v.emptyScript:"";class L extends R{constructor(){super(...arguments),this.type=4}P(t){t&&t!==T?this.element.setAttribute(this.name,H):this.element.removeAttribute(this.name)}}class q extends R{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=K(this,t,i,0))&&void 0!==e?e:T)===U)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 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){K(this,t)}}const Y=window.litHtmlPolyfillSupport;null==Y||Y(W,D),(null!==(y=globalThis.litHtmlVersions)&&void 0!==y?y:globalThis.litHtmlVersions=[]).push("2.2.7");
114
108
  /**
115
109
  * @license
116
110
  * Copyright 2020 Google LLC
117
111
  * SPDX-License-Identifier: BSD-3-Clause
118
112
  */
119
- const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t._$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)})(_);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.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),nt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),rt={fontFamily:nt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},st=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",ot),lt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",rt.fontSize,"20px"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",rt.fontWeight,"normal"),at=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",rt.letterSpacing,"0.15px"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",rt.lineHeight,"1.2"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",rt.textTransform,"inherit"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",ot),dt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",rt.fontSize,"14px"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",rt.fontWeight,"normal"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",rt.letterSpacing,"0.105px"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",rt.lineHeight,"1.7"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",rt.textTransform,"inherit"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",nt),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",rt.fontSize,"16px"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",rt.fontWeight,"600"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",rt.letterSpacing,"0.144px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",rt.lineHeight,"1.5"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",rt.textTransform,"inherit"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",nt),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",rt.fontSize,"14px"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",rt.fontWeight,"normal"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",rt.letterSpacing,"0.098px"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",rt.lineHeight,"1.7"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",rt.textTransform,"inherit"),Ot=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",nt),Et=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",rt.fontSize,"16px"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",rt.fontWeight,"normal"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",rt.letterSpacing,"0.496px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",rt.lineHeight,"1.5"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",rt.textTransform,"inherit"),Tt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",nt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",rt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",rt.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",rt.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",rt.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",rt.textTransform,"inherit")},Mt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",nt),Ft=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",rt.fontSize,"12px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",rt.fontWeight,"normal"),Wt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",rt.letterSpacing,"0.396px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",rt.lineHeight,"1.33"),Pt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",rt.textTransform,"inherit"),Dt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",nt),Rt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",rt.fontSize,"10px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",rt.fontWeight,"normal"),Ht=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",rt.letterSpacing,"0.33px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",rt.lineHeight,"1.6"),qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",rt.textTransform,"inherit"),Xt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",nt),Yt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",rt.fontSize,"10px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",rt.fontWeight,"normal"),Qt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",rt.letterSpacing,"1.5px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",rt.lineHeight,"1.6"),ti=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",rt.textTransform,"uppercase"),ii=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",nt),ei=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",rt.fontSize,"14px"),oi=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",rt.fontWeight,"600"),ni=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",rt.letterSpacing,"1.246px"),ri=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",rt.lineHeight,"1.15"),si=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",rt.textTransform,"uppercase"),li=e.css`
113
+ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t._$litStatic$},V=t=>({_$litStatic$:t,r:J}),tt=new Map,it=(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=Q(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=tt.get(t))&&(s.raw=s,tt.set(t,i=s)),e=l}return t(i,...e)})(B);var et;!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"}(et||(et={}));const ot=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),nt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),rt={fontFamily:nt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},st=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",ot),lt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",rt.fontSize,"20px"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",rt.fontWeight,"normal"),at=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",rt.letterSpacing,"0.15px"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",rt.lineHeight,"1.2"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",rt.textTransform,"inherit"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",ot),dt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",rt.fontSize,"14px"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",rt.fontWeight,"normal"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",rt.letterSpacing,"0.105px"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",rt.lineHeight,"1.7"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",rt.textTransform,"inherit"),vt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",nt),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",rt.fontSize,"16px"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",rt.fontWeight,"600"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",rt.letterSpacing,"0.144px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",rt.lineHeight,"1.5"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",rt.textTransform,"inherit"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",nt),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",rt.fontSize,"14px"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",rt.fontWeight,"normal"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",rt.letterSpacing,"0.098px"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",rt.lineHeight,"1.7"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",rt.textTransform,"inherit"),Ot=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",nt),Et=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",rt.fontSize,"16px"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",rt.fontWeight,"normal"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",rt.letterSpacing,"0.496px"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",rt.lineHeight,"1.5"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",rt.textTransform,"inherit"),Tt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",nt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",rt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",rt.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",rt.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",rt.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",rt.textTransform,"inherit")},Mt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",nt),Ft=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",rt.fontSize,"12px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",rt.fontWeight,"normal"),Wt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",rt.letterSpacing,"0.396px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",rt.lineHeight,"1.33"),Pt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",rt.textTransform,"inherit"),Dt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",nt),Rt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",rt.fontSize,"10px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",rt.fontWeight,"normal"),Ht=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",rt.letterSpacing,"0.33px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",rt.lineHeight,"1.6"),qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",rt.textTransform,"inherit"),Xt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",nt),Yt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",rt.fontSize,"10px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",rt.fontWeight,"normal"),Qt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",rt.letterSpacing,"1.5px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",rt.lineHeight,"1.6"),ti=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",rt.textTransform,"uppercase"),ii=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",nt),ei=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",rt.fontSize,"14px"),oi=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",rt.fontWeight,"600"),ni=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",rt.letterSpacing,"1.246px"),ri=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",rt.lineHeight,"1.15"),si=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",rt.textTransform,"uppercase"),li=e.css`
120
114
  .ft-typography--title {
121
115
  font-family: ${st};
122
116
  font-size: ${lt};
@@ -207,190 +201,190 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
207
201
  line-height: ${ri};
208
202
  text-transform: ${si};
209
203
  }
210
- `;class ui extends i.FtLitElement{constructor(){super(...arguments),this.variant=it.body1}render(){return this.element?tt`
211
- <${Q(this.element)}
204
+ `,ui=e.css`
205
+ .ft-typography {
206
+ vertical-align: inherit;
207
+ }
208
+ `;var vi,mi,bi=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};class $i extends i.FtLitElement{constructor(){super(...arguments),this.variant=et.body1}render(){return this.element?it`
209
+ <${V(this.element)}
212
210
  class="ft-typography ft-typography--${this.variant}">
213
211
  <slot></slot>
214
- </${Q(this.element)}>
215
- `:tt`
212
+ </${V(this.element)}>
213
+ `:it`
216
214
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
217
- `}}var vi,mi;ui.styles=[li,pi,ai,hi,fi,ci,di,gi,yi,xi,e.css`
218
- .ft-typography {
219
- vertical-align: inherit;
220
- }
221
- `],et([o.property()],ui.prototype,"element",void 0),et([o.property()],ui.prototype,"variant",void 0),i.customElement("ft-typography")(ui),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;"}(mi||(mi={})),new Map([...["abw"].map((t=>[t,mi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,mi.AUDIO])),...["avi"].map((t=>[t,mi.AVI])),...["chm","xhs"].map((t=>[t,mi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,mi.CODE])),...["csv"].map((t=>[t,mi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,mi.DITA])),...["epub"].map((t=>[t,mi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,mi.EXCEL])),...["flac"].map((t=>[t,mi.FLAC])),...["gif"].map((t=>[t,mi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,mi.GZIP])),...["html","htm","xhtml"].map((t=>[t,mi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,mi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,mi.JPEG])),...["json"].map((t=>[t,mi.JSON])),...["m4a","m4p"].map((t=>[t,mi.M4A])),...["mov","qt"].map((t=>[t,mi.MOV])),...["mp3"].map((t=>[t,mi.MP3])),...["mp4","m4v"].map((t=>[t,mi.MP4])),...["ogg","oga"].map((t=>[t,mi.OGG])),...["pdf","ps"].map((t=>[t,mi.PDF])),...["png"].map((t=>[t,mi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,mi.POWERPOINT])),...["rar"].map((t=>[t,mi.RAR])),...["stp"].map((t=>[t,mi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,mi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,mi.VIDEO])),...["wav"].map((t=>[t,mi.WAV])),...["wma"].map((t=>[t,mi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,mi.WORD])),...["xml","xsl","rdf"].map((t=>[t,mi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,mi.YAML])),...["zip"].map((t=>[t,mi.ZIP]))]);var bi,$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"}(bi||(bi={}));const wi={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")};class ki extends i.FtLitElement{constructor(){super(...arguments),this.variant=bi.fluid_topics,this.resolvedIcon=e.nothing}render(){const t="material"!==this.variant||this.value;return e.html`
215
+ `}}$i.styles=[li,pi,ai,hi,fi,ci,di,gi,yi,xi,ui],bi([o.property()],$i.prototype,"element",void 0),bi([o.property()],$i.prototype,"variant",void 0),i.customElement("ft-typography")($i),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;"}(mi||(mi={})),new Map([...["abw"].map((t=>[t,mi.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,mi.AUDIO])),...["avi"].map((t=>[t,mi.AVI])),...["chm","xhs"].map((t=>[t,mi.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,mi.CODE])),...["csv"].map((t=>[t,mi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,mi.DITA])),...["epub"].map((t=>[t,mi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,mi.EXCEL])),...["flac"].map((t=>[t,mi.FLAC])),...["gif"].map((t=>[t,mi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,mi.GZIP])),...["html","htm","xhtml"].map((t=>[t,mi.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,mi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,mi.JPEG])),...["json"].map((t=>[t,mi.JSON])),...["m4a","m4p"].map((t=>[t,mi.M4A])),...["mov","qt"].map((t=>[t,mi.MOV])),...["mp3"].map((t=>[t,mi.MP3])),...["mp4","m4v"].map((t=>[t,mi.MP4])),...["ogg","oga"].map((t=>[t,mi.OGG])),...["pdf","ps"].map((t=>[t,mi.PDF])),...["png"].map((t=>[t,mi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,mi.POWERPOINT])),...["rar"].map((t=>[t,mi.RAR])),...["stp"].map((t=>[t,mi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,mi.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,mi.VIDEO])),...["wav"].map((t=>[t,mi.WAV])),...["wma"].map((t=>[t,mi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,mi.WORD])),...["xml","xsl","rdf"].map((t=>[t,mi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,mi.YAML])),...["zip"].map((t=>[t,mi.ZIP]))]);const wi={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},ki=e.css`
216
+ :host {
217
+ display: inline-block;
218
+ }
219
+
220
+ :host, i.ft-icon {
221
+ width: ${wi.size};
222
+ height: ${wi.size};
223
+ text-align: center;
224
+ }
225
+
226
+ i.ft-icon {
227
+ font-size: ${wi.size};
228
+ line-height: 1;
229
+ font-weight: normal;
230
+ text-transform: none;
231
+ font-style: normal;
232
+ font-variant: normal;
233
+ speak: none;
234
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
235
+ text-rendering: auto;
236
+ -webkit-font-smoothing: antialiased;
237
+ -moz-osx-font-smoothing: grayscale;
238
+ vertical-align: ${wi.verticalAlign};
239
+ }
240
+
241
+ .ft-icon--fluid-topics {
242
+ font-family: ${wi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
243
+ }
244
+
245
+ .ft-icon--file-format {
246
+ font-family: ${wi.fileFormatFontFamily}, ft-mime, sans-serif;
247
+ }
248
+
249
+ .ft-icon--material {
250
+ font-family: ${wi.materialFontFamily}, "Material Icons", sans-serif;
251
+ }
252
+ `;var zi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(zi||(zi={}));var Si=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};class Ci extends i.FtLitElement{constructor(){super(...arguments),this.variant=zi.fluid_topics,this.resolvedIcon=e.nothing}render(){const t="material"!==this.variant||this.value;return e.html`
222
253
  <i class="ft-icon ${"ft-icon--"+this.variant}">
223
254
  ${r.unsafeHTML(this.resolvedIcon)}
224
255
  <slot ?hidden=${t}></slot>
225
256
  </i>
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:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case bi.file_format:this.resolvedIcon=null!==(t=mi[o.toUpperCase()])&&void 0!==t?t:o;break;case bi.fluid_topics:this.resolvedIcon=null!==(i=vi[o.toUpperCase()])&&void 0!==i?i:o;break;default:this.resolvedIcon=this.value||e.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}ki.elementDefinitions={},ki.styles=e.css`
257
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case zi.file_format:this.resolvedIcon=null!==(t=mi[o.toUpperCase()])&&void 0!==t?t:o;break;case zi.fluid_topics:this.resolvedIcon=null!==(i=vi[o.toUpperCase()])&&void 0!==i?i:o;break;default:this.resolvedIcon=this.value||e.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>{this.resolveIcon()}))}}Ci.elementDefinitions={},Ci.styles=ki,Si([o.property()],Ci.prototype,"variant",void 0),Si([o.property()],Ci.prototype,"value",void 0),Si([o.state()],Ci.prototype,"resolvedIcon",void 0),Si([o.query("slot")],Ci.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ci);const Ni=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),ji={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:Ni,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",Tt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",Ni),horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Ii=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),Oi={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:Ii,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Ii)},Ei={horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px")},Ai=[i.noTextSelect,e.css`
227
258
  :host {
228
259
  display: inline-block;
260
+ max-width: 100%;
261
+ pointer-events: none;
229
262
  }
230
263
 
231
- :host, i.ft-icon {
232
- width: ${wi.size};
233
- height: ${wi.size};
234
- text-align: center;
264
+ .ft-chip {
265
+ position: relative;
266
+ display: flex;
267
+ justify-content: center;
268
+ align-items: center;
269
+ width: 100%;
270
+ overflow: hidden;
271
+ box-sizing: border-box;
272
+ pointer-events: auto;
273
+
274
+ --ft-chip-internal-font-size: ${ji.fontSize};
275
+ --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
276
+ ${i.setVariable(wi.size,ji.iconSize)};
277
+ --ft-chip-internal-vertical-padding: ${ji.verticalPadding};
278
+ --ft-chip-internal-horizontal-padding: ${ji.horizontalPadding};
279
+ --ft-chip-internal-icon-padding: 3px;
280
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${ji.iconSize});
281
+
282
+ border: 1px solid ${ji.colorOutline};
283
+ color: ${ji.color};
284
+ ${i.setVariable(l.color,ji.rippleColor)};
285
+ border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
286
+ padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
287
+ background-color: ${ji.backgroundColor};
288
+ line-height: var(--ft-chip-internal-content-height);
235
289
  }
236
290
 
237
- i.ft-icon {
238
- font-size: ${wi.size};
239
- line-height: 1;
240
- font-weight: normal;
241
- text-transform: none;
242
- font-style: normal;
243
- font-variant: normal;
244
- speak: none;
245
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
246
- text-rendering: auto;
247
- -webkit-font-smoothing: antialiased;
248
- -moz-osx-font-smoothing: grayscale;
249
- vertical-align: ${wi.verticalAlign};
291
+ .ft-chip > *:not(ft-ripple) {
292
+ position: relative;
250
293
  }
251
294
 
252
- .ft-icon--fluid-topics {
253
- font-family: ${wi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
295
+ .ft-chip--dense {
296
+ --ft-chip-internal-icon-padding: 3px;
297
+ --ft-chip-internal-vertical-padding: ${Ei.verticalPadding};
298
+ --ft-chip-internal-horizontal-padding: ${Ei.horizontalPadding};
299
+ --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
254
300
  }
255
301
 
256
- .ft-icon--file-format {
257
- font-family: ${wi.fileFormatFontFamily}, ft-mime, sans-serif;
302
+ .ft-chip--no-content {
303
+ --ft-chip-internal-horizontal-padding: var(--ft-chip-horizontal-padding, var(--ft-chip-internal-vertical-padding));
258
304
  }
259
305
 
260
- .ft-icon--material {
261
- font-family: ${wi.materialFontFamily}, "Material Icons", sans-serif;
306
+ .ft-chip--disabled {
307
+ cursor: default;
308
+ pointer-events: none;
309
+ filter: grayscale(1);
310
+ opacity: ${ji.opacityDisabled};
262
311
  }
263
- `,$i([o.property()],ki.prototype,"variant",void 0),$i([o.property()],ki.prototype,"value",void 0),$i([o.state()],ki.prototype,"resolvedIcon",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 Si=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),Ci={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:Si,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",Tt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",Si),horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Ni=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),ji={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:Ni,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Ni)},Ii={horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px")};class Oi extends CustomEvent{constructor(){super("icon-click")}}class Ei 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`
264
- :host {
265
- display: inline-block;
266
- max-width: 100%;
267
- pointer-events: none;
268
- }
269
-
270
- .ft-chip {
271
- position: relative;
272
- display: flex;
273
- justify-content: center;
274
- align-items: center;
275
- width: 100%;
276
- overflow: hidden;
277
- box-sizing: border-box;
278
- pointer-events: auto;
279
-
280
- --ft-chip-internal-font-size: ${Ci.fontSize};
281
- --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
282
- ${i.setVariable(wi.size,Ci.iconSize)};
283
- --ft-chip-internal-vertical-padding: ${Ci.verticalPadding};
284
- --ft-chip-internal-horizontal-padding: ${Ci.horizontalPadding};
285
- --ft-chip-internal-icon-padding: 3px;
286
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Ci.iconSize});
287
-
288
- border: 1px solid ${Ci.colorOutline};
289
- color: ${Ci.color};
290
- ${i.setVariable(p.color,Ci.rippleColor)};
291
- border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
292
- padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
293
- background-color: ${Ci.backgroundColor};
294
- line-height: var(--ft-chip-internal-content-height);
295
- }
296
-
297
- .ft-chip > *:not(ft-ripple) {
298
- position: relative;
299
- }
300
-
301
- .ft-chip--dense {
302
- --ft-chip-internal-icon-padding: 3px;
303
- --ft-chip-internal-vertical-padding: ${Ii.verticalPadding};
304
- --ft-chip-internal-horizontal-padding: ${Ii.horizontalPadding};
305
- --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
306
- }
307
312
 
308
- .ft-chip--no-content {
309
- --ft-chip-internal-horizontal-padding: var(--ft-chip-horizontal-padding, var(--ft-chip-internal-vertical-padding));
310
- }
311
-
312
- .ft-chip--disabled {
313
- cursor: default;
314
- pointer-events: none;
315
- filter: grayscale(1);
316
- opacity: ${Ci.opacityDisabled};
317
- }
313
+ .ft-chip--highlighted {
314
+ border: none;
315
+ padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
316
+ background-color: ${Oi.backgroundColor};
317
+ ${i.setVariable(l.color,Oi.rippleColor)};
318
+ color: ${Oi.color};
319
+ }
318
320
 
319
- .ft-chip--highlighted {
320
- border: none;
321
- padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
322
- background-color: ${ji.backgroundColor};
323
- ${i.setVariable(p.color,ji.rippleColor)};
324
- color: ${ji.color};
325
- }
321
+ .ft-chip--clickable {
322
+ cursor: pointer;
323
+ -webkit-mask-image: radial-gradient(white, black);
324
+ }
326
325
 
327
- .ft-chip--clickable {
328
- cursor: pointer;
329
- -webkit-mask-image: radial-gradient(white, black);
330
- }
326
+ .ft-chip:focus {
327
+ outline: none;
328
+ }
331
329
 
332
- .ft-chip:focus {
333
- outline: none;
334
- }
330
+ .ft-chip--icon-container {
331
+ display: inline-flex;
332
+ position: relative;
333
+ overflow: hidden;
334
+ border-radius: 100%;
335
+ justify-content: center;
336
+ align-items: center;
337
+ flex-shrink: 0;
335
338
 
336
- .ft-chip--icon-container {
337
- display: inline-flex;
338
- position: relative;
339
- overflow: hidden;
340
- border-radius: 100%;
341
- justify-content: center;
342
- align-items: center;
343
- flex-shrink: 0;
344
-
345
- padding: var(--ft-chip-internal-icon-padding);
346
- margin: calc((-1) * var(--ft-chip-internal-icon-padding));
347
- }
339
+ padding: var(--ft-chip-internal-icon-padding);
340
+ margin: calc((-1) * var(--ft-chip-internal-icon-padding));
341
+ }
348
342
 
349
- .ft-chip--icon-container > *:not(ft-ripple) {
350
- position: relative;
351
- }
343
+ .ft-chip--icon-container > *:not(ft-ripple) {
344
+ position: relative;
345
+ }
352
346
 
353
- .ft-chip--label {
354
- vertical-align: bottom;
355
- display: block;
356
- margin: 0 var(--ft-chip-internal-horizontal-padding);
357
- ${i.setVariable(Tt.fontSize,"var(--ft-chip-internal-font-size)")};
358
- ${i.setVariable(Tt.lineHeight,"var(--ft-chip-internal-content-height)")};
359
- }
347
+ .ft-chip--label {
348
+ vertical-align: bottom;
349
+ display: block;
350
+ margin: 0 var(--ft-chip-internal-horizontal-padding);
351
+ ${i.setVariable(Tt.fontSize,"var(--ft-chip-internal-font-size)")};
352
+ ${i.setVariable(Tt.lineHeight,"var(--ft-chip-internal-content-height)")};
353
+ }
360
354
 
361
- .ft-chip--safari-fix .ft-chip--label {
362
- margin-right: 0;
363
- }
355
+ .ft-chip--safari-fix .ft-chip--label {
356
+ margin-right: 0;
357
+ }
364
358
 
365
- .ft-chip:not(.ft-chip--multi-line) .ft-chip--label {
366
- overflow: hidden;
367
- white-space: nowrap;
368
- text-overflow: ellipsis;
369
- }
359
+ .ft-chip:not(.ft-chip--multi-line) .ft-chip--label {
360
+ overflow: hidden;
361
+ white-space: nowrap;
362
+ text-overflow: ellipsis;
363
+ }
370
364
 
371
- .ft-chip--safari-fix:not(.ft-chip--multi-line) .ft-chip--label:after {
372
- content: "\\0000a0";
373
- display: inline-block;
374
- width: 0;
375
- }
365
+ .ft-chip--safari-fix:not(.ft-chip--multi-line) .ft-chip--label:after {
366
+ content: "\\0000a0";
367
+ display: inline-block;
368
+ width: 0;
369
+ }
376
370
 
377
- .ft-chip--no-content .ft-chip--label {
378
- display: none;
379
- }
371
+ .ft-chip--no-content .ft-chip--label {
372
+ display: none;
373
+ }
380
374
 
381
- .ft-chip--no-content .ft-chip--label + .ft-chip--icon-container {
382
- width: var(--ft-chip-internal-content-height);
383
- height: var(--ft-chip-internal-content-height);
384
- }
375
+ .ft-chip--no-content .ft-chip--label + .ft-chip--icon-container {
376
+ width: var(--ft-chip-internal-content-height);
377
+ height: var(--ft-chip-internal-content-height);
378
+ }
385
379
 
386
- .ft-chip--icon-container:focus {
387
- outline: none;
388
- }
380
+ .ft-chip--icon-container:focus {
381
+ outline: none;
382
+ }
389
383
 
390
- .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
391
- order: -1;
392
- }
393
- `]}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":i.isSafari};return e.html`
384
+ .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
385
+ order: -1;
386
+ }
387
+ `];var _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};class Bi extends CustomEvent{constructor(){super("icon-click")}}class Ui 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}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":i.isSafari};return e.html`
394
388
  <div class="${n.classMap(t)}"
395
389
  aria-label="${this.getLabel()}"
396
390
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -409,4 +403,4 @@ const Y=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===Y)return null==t?void 0:t
409
403
  <ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
410
404
  <ft-icon variant="material">${this.internalIcon}</ft-icon>
411
405
  </div>
412
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Oi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Oi))}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)}}Ei.elementDefinitions={"ft-ripple":y,"ft-typography":ui,"ft-icon":ki},zi([o.property({type:Boolean})],Ei.prototype,"highlighted",void 0),zi([o.property({type:Boolean})],Ei.prototype,"removable",void 0),zi([o.property({type:Boolean})],Ei.prototype,"disabled",void 0),zi([o.property({type:Boolean})],Ei.prototype,"clickable",void 0),zi([o.property({type:Boolean})],Ei.prototype,"iconClickable",void 0),zi([o.property({type:Boolean})],Ei.prototype,"dense",void 0),zi([o.property({type:Boolean})],Ei.prototype,"multiLine",void 0),zi([o.property({type:String})],Ei.prototype,"label",void 0),zi([o.property({type:String})],Ei.prototype,"icon",void 0),zi([o.property({type:Boolean})],Ei.prototype,"trailingIcon",void 0),zi([o.query("ft-typography slot")],Ei.prototype,"slottedContent",void 0),i.customElement("ft-chip")(Ei),t.FtChip=Ei,t.FtChipCssVariables=Ci,t.FtChipDenseCssVariables=Ii,t.FtChipHighlightedCssVariables=ji,t.IconClickEvent=Oi,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
406
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Bi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Bi))}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)}}Ui.elementDefinitions={"ft-ripple":u,"ft-typography":$i,"ft-icon":Ci},Ui.styles=Ai,_i([o.property({type:Boolean})],Ui.prototype,"highlighted",void 0),_i([o.property({type:Boolean})],Ui.prototype,"removable",void 0),_i([o.property({type:Boolean})],Ui.prototype,"disabled",void 0),_i([o.property({type:Boolean})],Ui.prototype,"clickable",void 0),_i([o.property({type:Boolean})],Ui.prototype,"iconClickable",void 0),_i([o.property({type:Boolean})],Ui.prototype,"dense",void 0),_i([o.property({type:Boolean})],Ui.prototype,"multiLine",void 0),_i([o.property({type:String})],Ui.prototype,"label",void 0),_i([o.property({type:String})],Ui.prototype,"icon",void 0),_i([o.property({type:Boolean})],Ui.prototype,"trailingIcon",void 0),_i([o.query("ft-typography slot")],Ui.prototype,"slottedContent",void 0),i.customElement("ft-chip")(Ui),t.FtChip=Ui,t.FtChipCssVariables=ji,t.FtChipDenseCssVariables=Ei,t.FtChipHighlightedCssVariables=Oi,t.IconClickEvent=Bi,t.styles=Ai,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);