@fluid-topics/ft-card 1.0.36 → 1.0.37

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.
@@ -59,7 +59,7 @@ export const styles = css `
59
59
  outline-width: ${FtCardCssVariables.selectedOutlineWidth};
60
60
  outline-color: ${FtCardCssVariables.selectedOutlineColor};
61
61
  border-radius: ${FtCardCssVariables.selectedBorderRadius};
62
- ${setVariable(FtRippleCssVariables.borderRadius, FtCardCssVariables.selectedBorderRadius)};
62
+ ${setVariable(FtRippleCssVariables.borderRadius, FtCardCssVariables.selectedBorderRadius)};
63
63
  box-shadow: ${FtCardCssVariables.elevation04};
64
64
  }
65
65
 
package/build/ft-card.js CHANGED
@@ -38,7 +38,9 @@ class FtCard extends FtLitElement {
38
38
  <slot name="action"></slot>
39
39
  </div>
40
40
  <div id="content" part="content">
41
- <ft-typography variant="body2"><slot></slot></ft-typography>
41
+ <ft-typography variant="body2">
42
+ <slot></slot>
43
+ </ft-typography>
42
44
  </div>
43
45
  </div>
44
46
  `;
@@ -88,7 +88,7 @@
88
88
  opacity: ${n.opacityContentOnSurfacePressed};
89
89
  transform: translate(-50%, -50%) scale(1);
90
90
  }
91
- `;var y,u=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};class g extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:r}=this.getCoordinates(t),s=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-s.x:s.width/2),this.originY=Math.round(null!=r?r-s.y:s.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
+ `;var y,u=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};class g extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:r}=this.getCoordinates(t),s=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-s.x:s.width/2),this.originY=Math.round(null!=r?r-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
92
92
  <style>
93
93
  .ft-ripple .ft-ripple--effect,
94
94
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -105,13 +105,13 @@
105
105
  <div class="ft-ripple--background"></div>
106
106
  <div class="ft-ripple--effect"></div>
107
107
  </div>
108
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),r=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",r),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",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,r;return null!=i.x?({x:o,y:r}=i):null!=e.touches&&(o=e.touches[0].clientX,r=e.touches[0].clientY),{x:o,y:r}}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()}}g.elementDefinitions={},g.styles=c,u([o.property({type:Boolean})],g.prototype,"primary",void 0),u([o.property({type:Boolean})],g.prototype,"secondary",void 0),u([o.property({type:Boolean})],g.prototype,"unbounded",void 0),u([o.property({type:Boolean})],g.prototype,"activated",void 0),u([o.property({type:Boolean})],g.prototype,"selected",void 0),u([o.property({type:Boolean})],g.prototype,"disabled",void 0),u([o.state()],g.prototype,"hovered",void 0),u([o.state()],g.prototype,"focused",void 0),u([o.state()],g.prototype,"pressed",void 0),u([o.state()],g.prototype,"rippling",void 0),u([o.state()],g.prototype,"rippleSize",void 0),u([o.state()],g.prototype,"originX",void 0),u([o.state()],g.prototype,"originY",void 0),u([o.query(".ft-ripple")],g.prototype,"ripple",void 0),u([o.query(".ft-ripple--effect")],g.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(g);const v=window,b=v.trustedTypes,$=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,m="$lit$",x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,k=`<${w}>`,z=document,S=()=>z.createComment(""),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,N=Array.isArray,A="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,E=/>/g,B=RegExp(`>|${A}(?:([^\\s"'>=/]+)(${A}*=${A}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),I=/'/g,j=/"/g,R=/^(?:script|style|textarea|title)$/i,D=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),M=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),W=new WeakMap,Z=z.createTreeWalker(z,129,null,!1),T=(t,i)=>{const e=t.length-1,o=[];let r,s=2===i?"<svg>":"",n=_;for(let i=0;i<e;i++){const e=t[i];let l,p,h=-1,a=0;for(;a<e.length&&(n.lastIndex=a,p=n.exec(e),null!==p);)a=n.lastIndex,n===_?"!--"===p[1]?n=C:void 0!==p[1]?n=E:void 0!==p[2]?(R.test(p[2])&&(r=RegExp("</"+p[2],"g")),n=B):void 0!==p[3]&&(n=B):n===B?">"===p[0]?(n=null!=r?r:_,h=-1):void 0===p[1]?h=-2:(h=n.lastIndex-p[2].length,l=p[1],n=void 0===p[3]?B:'"'===p[3]?j:I):n===j||n===I?n=B:n===C||n===E?n=_:(n=B,r=void 0);const f=n===B&&t[i+1].startsWith("/>")?" ":"";s+=n===_?e+k:h>=0?(o.push(l),e.slice(0,h)+m+e.slice(h)+x+f):e+x+(-2===h?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(l):l,o]};class H{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let r=0,s=0;const n=t.length-1,l=this.parts,[p,h]=T(t,i);if(this.el=H.createElement(p,e),Z.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Z.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(m)||i.startsWith(x)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+m).split(x),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?P:"?"===i[1]?Y:"@"===i[1]?q:L})}else l.push({type:6,index:r})}for(const i of t)o.removeAttribute(i)}if(R.test(o.tagName)){const t=o.textContent.split(x),i=t.length-1;if(i>0){o.textContent=b?b.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],S()),Z.nextNode(),l.push({type:2,index:++r});o.append(t[i],S())}}}else if(8===o.nodeType)if(o.data===w)l.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(x,t+1));)l.push({type:7,index:r}),t+=x.length-1}r++}}static createElement(t,i){const e=z.createElement("template");return e.innerHTML=t,e}}function G(t,i,e=t,o){var r,s,n,l;if(i===M)return i;let p=void 0!==o?null===(r=e._$Co)||void 0===r?void 0:r[o]:e._$Cl;const h=O(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==h&&(null===(s=null==p?void 0:p._$AO)||void 0===s||s.call(p,!1),void 0===h?p=void 0:(p=new h(t),p._$AT(t,e,o)),void 0!==o?(null!==(n=(l=e)._$Co)&&void 0!==n?n:l._$Co=[])[o]=p:e._$Cl=p),void 0!==p&&(i=G(t,p._$AS(t,i.values),p,o)),i}class K{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,r=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:z).importNode(e,!0);Z.currentNode=r;let s=Z.nextNode(),n=0,l=0,p=o[0];for(;void 0!==p;){if(n===p.index){let i;2===p.type?i=new F(s,s.nextSibling,this,t):1===p.type?i=new p.ctor(s,p.name,p.strings,this,t):6===p.type&&(i=new J(s,this,t)),this._$AV.push(i),p=o[++l]}n!==(null==p?void 0:p.index)&&(s=Z.nextNode(),n++)}return r}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class F{constructor(t,i,e,o){var r;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=G(this,t,i),O(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==M&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>N(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==U&&O(this._$AH)?this._$AA.nextSibling.data=t:this.$(z.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=H.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===r)this._$AH.v(e);else{const t=new K(r,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=W.get(t.strings);return void 0===i&&W.set(t.strings,i=new H(t)),i}T(t){N(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const r of t)o===i.length?i.push(e=new F(this.k(S()),this.k(S()),this,this.options)):e=i[o],e._$AI(r),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class L{constructor(t,i,e,o,r){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=r,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 r=this.strings;let s=!1;if(void 0===r)t=G(this,t,i,0),s=!O(t)||t!==this._$AH&&t!==M,s&&(this._$AH=t);else{const o=t;let n,l;for(t=r[0],n=0;n<r.length-1;n++)l=G(this,o[e+n],i,n),l===M&&(l=this._$AH[n]),s||(s=!O(l)||l!==this._$AH[n]),l===U?t=U:t!==U&&(t+=(null!=l?l:"")+r[n+1]),this._$AH[n]=l}s&&!o&&this.j(t)}j(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class P extends L{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===U?void 0:t}}const X=b?b.emptyScript:"";class Y extends L{constructor(){super(...arguments),this.type=4}j(t){t&&t!==U?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class q extends L{constructor(t,i,e,o,r){super(t,i,e,o,r),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=G(this,t,i,0))&&void 0!==e?e:U)===M)return;const o=this._$AH,r=t===U&&o!==U||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==U&&(o===U||r);r&&this.element.removeEventListener(this.name,this,o),s&&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 J{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){G(this,t)}}const Q=v.litHtmlPolyfillSupport;null==Q||Q(H,F),(null!==(y=v.litHtmlVersions)&&void 0!==y?y:v.litHtmlVersions=[]).push("2.7.3");
108
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),r=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",r),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",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,r;return null!=i.x?({x:o,y:r}=i):null!=e.touches&&(o=e.touches[0].clientX,r=e.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}g.elementDefinitions={},g.styles=c,u([o.property({type:Boolean})],g.prototype,"primary",void 0),u([o.property({type:Boolean})],g.prototype,"secondary",void 0),u([o.property({type:Boolean})],g.prototype,"unbounded",void 0),u([o.property({type:Boolean})],g.prototype,"activated",void 0),u([o.property({type:Boolean})],g.prototype,"selected",void 0),u([o.property({type:Boolean})],g.prototype,"disabled",void 0),u([o.state()],g.prototype,"hovered",void 0),u([o.state()],g.prototype,"focused",void 0),u([o.state()],g.prototype,"pressed",void 0),u([o.state()],g.prototype,"rippling",void 0),u([o.state()],g.prototype,"rippleSize",void 0),u([o.state()],g.prototype,"originX",void 0),u([o.state()],g.prototype,"originY",void 0),u([o.query(".ft-ripple")],g.prototype,"ripple",void 0),u([o.query(".ft-ripple--effect")],g.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(g);const v=window,b=v.trustedTypes,$=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,m="$lit$",x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,k=`<${w}>`,z=document,S=()=>z.createComment(""),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,N=Array.isArray,A="[ \t\n\f\r]",E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,C=/>/g,B=RegExp(`>|${A}(?:([^\\s"'>=/]+)(${A}*=${A}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),I=/'/g,j=/"/g,M=/^(?:script|style|textarea|title)$/i,R=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),D=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),W=new WeakMap,Z=z.createTreeWalker(z,129,null,!1),T=(t,i)=>{const e=t.length-1,o=[];let r,s=2===i?"<svg>":"",n=E;for(let i=0;i<e;i++){const e=t[i];let l,p,h=-1,a=0;for(;a<e.length&&(n.lastIndex=a,p=n.exec(e),null!==p);)a=n.lastIndex,n===E?"!--"===p[1]?n=_:void 0!==p[1]?n=C:void 0!==p[2]?(M.test(p[2])&&(r=RegExp("</"+p[2],"g")),n=B):void 0!==p[3]&&(n=B):n===B?">"===p[0]?(n=null!=r?r:E,h=-1):void 0===p[1]?h=-2:(h=n.lastIndex-p[2].length,l=p[1],n=void 0===p[3]?B:'"'===p[3]?j:I):n===j||n===I?n=B:n===_||n===C?n=E:(n=B,r=void 0);const f=n===B&&t[i+1].startsWith("/>")?" ":"";s+=n===E?e+k:h>=0?(o.push(l),e.slice(0,h)+m+e.slice(h)+x+f):e+x+(-2===h?(o.push(void 0),i):f)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(l):l,o]};class H{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let r=0,s=0;const n=t.length-1,l=this.parts,[p,h]=T(t,i);if(this.el=H.createElement(p,e),Z.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Z.nextNode())&&l.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(m)||i.startsWith(x)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+m).split(x),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:r,name:i[2],strings:t,ctor:"."===i[1]?P:"?"===i[1]?X:"@"===i[1]?Y:L})}else l.push({type:6,index:r})}for(const i of t)o.removeAttribute(i)}if(M.test(o.tagName)){const t=o.textContent.split(x),i=t.length-1;if(i>0){o.textContent=b?b.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],S()),Z.nextNode(),l.push({type:2,index:++r});o.append(t[i],S())}}}else if(8===o.nodeType)if(o.data===w)l.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(x,t+1));)l.push({type:7,index:r}),t+=x.length-1}r++}}static createElement(t,i){const e=z.createElement("template");return e.innerHTML=t,e}}function F(t,i,e=t,o){var r,s,n,l;if(i===D)return i;let p=void 0!==o?null===(r=e._$Co)||void 0===r?void 0:r[o]:e._$Cl;const h=O(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==h&&(null===(s=null==p?void 0:p._$AO)||void 0===s||s.call(p,!1),void 0===h?p=void 0:(p=new h(t),p._$AT(t,e,o)),void 0!==o?(null!==(n=(l=e)._$Co)&&void 0!==n?n:l._$Co=[])[o]=p:e._$Cl=p),void 0!==p&&(i=F(t,p._$AS(t,i.values),p,o)),i}class G{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,r=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:z).importNode(e,!0);Z.currentNode=r;let s=Z.nextNode(),n=0,l=0,p=o[0];for(;void 0!==p;){if(n===p.index){let i;2===p.type?i=new K(s,s.nextSibling,this,t):1===p.type?i=new p.ctor(s,p.name,p.strings,this,t):6===p.type&&(i=new q(s,this,t)),this._$AV.push(i),p=o[++l]}n!==(null==p?void 0:p.index)&&(s=Z.nextNode(),n++)}return r}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class K{constructor(t,i,e,o){var r;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=F(this,t,i),O(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==D&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>N(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==U&&O(this._$AH)?this._$AA.nextSibling.data=t:this.$(z.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=H.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===r)this._$AH.v(e);else{const t=new G(r,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=W.get(t.strings);return void 0===i&&W.set(t.strings,i=new H(t)),i}T(t){N(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const r of t)o===i.length?i.push(e=new K(this.k(S()),this.k(S()),this,this.options)):e=i[o],e._$AI(r),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class L{constructor(t,i,e,o,r){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=r,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 r=this.strings;let s=!1;if(void 0===r)t=F(this,t,i,0),s=!O(t)||t!==this._$AH&&t!==D,s&&(this._$AH=t);else{const o=t;let n,l;for(t=r[0],n=0;n<r.length-1;n++)l=F(this,o[e+n],i,n),l===D&&(l=this._$AH[n]),s||(s=!O(l)||l!==this._$AH[n]),l===U?t=U:t!==U&&(t+=(null!=l?l:"")+r[n+1]),this._$AH[n]=l}s&&!o&&this.j(t)}j(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class P extends L{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===U?void 0:t}}const V=b?b.emptyScript:"";class X extends L{constructor(){super(...arguments),this.type=4}j(t){t&&t!==U?this.element.setAttribute(this.name,V):this.element.removeAttribute(this.name)}}class Y extends L{constructor(t,i,e,o,r){super(t,i,e,o,r),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=F(this,t,i,0))&&void 0!==e?e:U)===D)return;const o=this._$AH,r=t===U&&o!==U||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==U&&(o===U||r);r&&this.element.removeEventListener(this.name,this,o),s&&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 J=v.litHtmlPolyfillSupport;null==J||J(H,K),(null!==(y=v.litHtmlVersions)&&void 0!==y?y:v.litHtmlVersions=[]).push("2.7.3");
109
109
  /**
110
110
  * @license
111
111
  * Copyright 2020 Google LLC
112
112
  * SPDX-License-Identifier: BSD-3-Clause
113
113
  */
114
- const V=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t._$litStatic$},it=t=>({_$litStatic$:t,r:V}),et=new Map,ot=(t=>(i,...e)=>{const o=e.length;let r,s;const n=[],l=[];let p,h=0,a=!1;for(;h<o;){for(p=i[h];h<o&&void 0!==(s=e[h],r=tt(s));)p+=r+i[++h],a=!0;h!==o&&l.push(s),n.push(p),h++}if(h===o&&n.push(i[o]),a){const t=n.join("$$lit$$");void 0===(i=et.get(t))&&(n.raw=n,et.set(t,i=n)),e=l}return t(i,...e)})(D);var rt;!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"}(rt||(rt={}));const st=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),nt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),lt={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")},pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",st),ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",lt.fontSize,"20px"),at=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",lt.fontWeight,"normal"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",lt.letterSpacing,"0.15px"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",lt.lineHeight,"1.2"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",lt.textTransform,"inherit"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",st),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",lt.fontSize,"14px"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",lt.fontWeight,"normal"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",lt.letterSpacing,"0.105px"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",lt.lineHeight,"1.7"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",lt.textTransform,"inherit"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",nt),xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",lt.fontSize,"16px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",lt.fontWeight,"600"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",lt.letterSpacing,"0.144px"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",lt.lineHeight,"1.5"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",lt.textTransform,"inherit"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",nt),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",lt.fontSize,"14px"),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",lt.fontWeight,"normal"),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",lt.letterSpacing,"0.098px"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",lt.lineHeight,"1.7"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",lt.textTransform,"inherit"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",nt),It=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",lt.fontSize,"16px"),jt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",lt.fontWeight,"normal"),Rt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",lt.letterSpacing,"0.496px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",lt.lineHeight,"1.5"),Mt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",lt.textTransform,"inherit"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",nt),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",lt.fontSize,"14px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",lt.fontWeight,"normal"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",lt.letterSpacing,"0.252px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",lt.lineHeight,"1.4"),Gt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",lt.textTransform,"inherit"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",nt),Ft=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",lt.fontSize,"12px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",lt.fontWeight,"normal"),Pt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",lt.letterSpacing,"0.396px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",lt.lineHeight,"1.33"),Yt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",lt.textTransform,"inherit"),qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",nt),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",lt.fontSize,"10px"),Qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",lt.fontWeight,"normal"),Vt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",lt.letterSpacing,"0.33px"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",lt.lineHeight,"1.6"),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",lt.textTransform,"inherit"),ei=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",nt),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",lt.fontSize,"10px"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",lt.fontWeight,"normal"),si=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",lt.letterSpacing,"1.5px"),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",lt.lineHeight,"1.6"),li=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",lt.textTransform,"uppercase"),pi=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",nt),hi=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",lt.fontSize,"14px"),ai=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",lt.fontWeight,"600"),fi=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",lt.letterSpacing,"1.246px"),di=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",lt.lineHeight,"1.15"),ci=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",lt.textTransform,"uppercase"),yi=e.css`
114
+ const Q=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===Q)return null==t?void 0:t._$litStatic$},it=t=>({_$litStatic$:t,r:Q}),et=new Map,ot=(t=>(i,...e)=>{const o=e.length;let r,s;const n=[],l=[];let p,h=0,a=!1;for(;h<o;){for(p=i[h];h<o&&void 0!==(s=e[h],r=tt(s));)p+=r+i[++h],a=!0;h!==o&&l.push(s),n.push(p),h++}if(h===o&&n.push(i[o]),a){const t=n.join("$$lit$$");void 0===(i=et.get(t))&&(n.raw=n,et.set(t,i=n)),e=l}return t(i,...e)})(R);var rt;!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"}(rt||(rt={}));const st=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),nt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),lt={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")},pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",st),ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",lt.fontSize,"20px"),at=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",lt.fontWeight,"normal"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",lt.letterSpacing,"0.15px"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",lt.lineHeight,"1.2"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",lt.textTransform,"inherit"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",st),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",lt.fontSize,"14px"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",lt.fontWeight,"normal"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",lt.letterSpacing,"0.105px"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",lt.lineHeight,"1.7"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",lt.textTransform,"inherit"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",nt),xt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",lt.fontSize,"16px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",lt.fontWeight,"600"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",lt.letterSpacing,"0.144px"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",lt.lineHeight,"1.5"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",lt.textTransform,"inherit"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",nt),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",lt.fontSize,"14px"),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",lt.fontWeight,"normal"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",lt.letterSpacing,"0.098px"),_t=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",lt.lineHeight,"1.7"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",lt.textTransform,"inherit"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",nt),It=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",lt.fontSize,"16px"),jt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",lt.fontWeight,"normal"),Mt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",lt.letterSpacing,"0.496px"),Rt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",lt.lineHeight,"1.5"),Dt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",lt.textTransform,"inherit"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",nt),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",lt.fontSize,"14px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",lt.fontWeight,"normal"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",lt.letterSpacing,"0.252px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",lt.lineHeight,"1.4"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",lt.textTransform,"inherit"),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",nt),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",lt.fontSize,"12px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",lt.fontWeight,"normal"),Pt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",lt.letterSpacing,"0.396px"),Vt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",lt.lineHeight,"1.33"),Xt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",lt.textTransform,"inherit"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",nt),qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",lt.fontSize,"10px"),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",lt.fontWeight,"normal"),Qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",lt.letterSpacing,"0.33px"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",lt.lineHeight,"1.6"),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",lt.textTransform,"inherit"),ei=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",nt),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",lt.fontSize,"10px"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",lt.fontWeight,"normal"),si=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",lt.letterSpacing,"1.5px"),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",lt.lineHeight,"1.6"),li=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",lt.textTransform,"uppercase"),pi=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",nt),hi=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",lt.fontSize,"14px"),ai=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",lt.fontWeight,"600"),fi=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",lt.letterSpacing,"1.246px"),di=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",lt.lineHeight,"1.15"),ci=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",lt.textTransform,"uppercase"),yi=e.css`
115
115
  .ft-typography--title {
116
116
  font-family: ${pt};
117
117
  font-size: ${ht};
@@ -143,9 +143,9 @@ const V=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:
143
143
  font-family: ${Ot};
144
144
  font-size: ${Nt};
145
145
  font-weight: ${At};
146
- letter-spacing: ${_t};
147
- line-height: ${Ct};
148
- text-transform: ${Et};
146
+ letter-spacing: ${Et};
147
+ line-height: ${_t};
148
+ text-transform: ${Ct};
149
149
  }
150
150
 
151
151
  `,bi=e.css`
@@ -153,9 +153,9 @@ const V=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:
153
153
  font-family: ${Bt};
154
154
  font-size: ${It};
155
155
  font-weight: ${jt};
156
- letter-spacing: ${Rt};
157
- line-height: ${Dt};
158
- text-transform: ${Mt};
156
+ letter-spacing: ${Mt};
157
+ line-height: ${Rt};
158
+ text-transform: ${Dt};
159
159
  }
160
160
  `,$i=e.css`
161
161
  .ft-typography--body2 {
@@ -164,23 +164,23 @@ const V=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:
164
164
  font-weight: ${Zt};
165
165
  letter-spacing: ${Tt};
166
166
  line-height: ${Ht};
167
- text-transform: ${Gt};
167
+ text-transform: ${Ft};
168
168
  }
169
169
  `,mi=e.css`
170
170
  .ft-typography--caption {
171
- font-family: ${Kt};
172
- font-size: ${Ft};
171
+ font-family: ${Gt};
172
+ font-size: ${Kt};
173
173
  font-weight: ${Lt};
174
174
  letter-spacing: ${Pt};
175
- line-height: ${Xt};
176
- text-transform: ${Yt};
175
+ line-height: ${Vt};
176
+ text-transform: ${Xt};
177
177
  }
178
178
  `,xi=e.css`
179
179
  .ft-typography--breadcrumb {
180
- font-family: ${qt};
181
- font-size: ${Jt};
182
- font-weight: ${Qt};
183
- letter-spacing: ${Vt};
180
+ font-family: ${Yt};
181
+ font-size: ${qt};
182
+ font-weight: ${Jt};
183
+ letter-spacing: ${Qt};
184
184
  line-height: ${ti};
185
185
  text-transform: ${ii};
186
186
  }
@@ -254,7 +254,7 @@ const V=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:
254
254
  outline-width: ${Ni.selectedOutlineWidth};
255
255
  outline-color: ${Ni.selectedOutlineColor};
256
256
  border-radius: ${Ni.selectedBorderRadius};
257
- ${i.setVariable(n.borderRadius,Ni.selectedBorderRadius)};
257
+ ${i.setVariable(n.borderRadius,Ni.selectedBorderRadius)};
258
258
  box-shadow: ${Ni.elevation04};
259
259
  }
260
260
 
@@ -287,7 +287,7 @@ const V=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:
287
287
  #action {
288
288
  grid-area: actions;
289
289
  }
290
- `;var _i=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};class Ci extends i.FtLitElement{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1}render(){const t={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader};return e.html`
290
+ `;var Ei=function(t,i,e,o){for(var r,s=arguments.length,n=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(r=t[l])&&(n=(s<3?r(n):s>3?r(i,e,n):r(i,e))||n);return s>3&&n&&Object.defineProperty(i,e,n),n};class _i extends i.FtLitElement{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1}render(){const t={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader};return e.html`
291
291
  <div id="container" part="container" class=${r.classMap(t)}>
292
292
  ${this.clickable?e.html`
293
293
  <ft-ripple primary ?selected=${this.selected}></ft-ripple>
@@ -300,7 +300,9 @@ const V=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:
300
300
  <slot name="action"></slot>
301
301
  </div>
302
302
  <div id="content" part="content">
303
- <ft-typography variant="body2"><slot></slot></ft-typography>
303
+ <ft-typography variant="body2">
304
+ <slot></slot>
305
+ </ft-typography>
304
306
  </div>
305
307
  </div>
306
- `}}Ci.elementDefinitions={"ft-ripple":g,"ft-typography":Oi},Ci.styles=Ai,_i([o.property()],Ci.prototype,"title",void 0),_i([o.property({type:Boolean})],Ci.prototype,"clickable",void 0),_i([o.property({type:Boolean})],Ci.prototype,"selected",void 0),_i([o.property({type:Boolean})],Ci.prototype,"noHeader",void 0),i.customElement("ft-card")(Ci),t.FtCard=Ci,t.FtCardCssVariables=Ni,t.styles=Ai}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap);
308
+ `}}_i.elementDefinitions={"ft-ripple":g,"ft-typography":Oi},_i.styles=Ai,Ei([o.property()],_i.prototype,"title",void 0),Ei([o.property({type:Boolean})],_i.prototype,"clickable",void 0),Ei([o.property({type:Boolean})],_i.prototype,"selected",void 0),Ei([o.property({type:Boolean})],_i.prototype,"noHeader",void 0),i.customElement("ft-card")(_i),t.FtCard=_i,t.FtCardCssVariables=Ni,t.styles=Ai}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap);
@@ -64,30 +64,30 @@ var C;N.finalized=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRoot
64
64
  * SPDX-License-Identifier: BSD-3-Clause
65
65
  */
66
66
  var ct,pt;let dt=class extends N{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,r;const s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let n=s._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;s._$litPart$=n=new it(e.insertBefore(L(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}};dt.finalized=!0,dt._$litElement$=!0,null===(ct=globalThis.litElementHydrateSupport)||void 0===ct||ct.call(globalThis,{LitElement:dt});const ft=globalThis.litElementPolyfillSupport;null==ft||ft({LitElement:dt}),(null!==(pt=globalThis.litElementVersions)&&void 0!==pt?pt:globalThis.litElementVersions=[]).push("3.3.2");class ut{static create(t,e,i){let o=t=>u(null!=t?t:i),r=y`var(${u(t)}, ${o(i)})`;return r.name=t,r.category=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>y`var(${u(t)}, ${o(e)})`,r.breadcrumb=()=>[],r.lastResortDefaultValue=()=>i,r}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),r=y`var(${u(t)}, ${o(i)})`;return r.name=t,r.category=e.category,r.fallbackVariable=e,r.defaultValue=i,r.defaultCssValue=o,r.get=e=>y`var(${u(t)}, ${o(e)})`,r.breadcrumb=()=>[e.name,...e.breadcrumb()],r.lastResortDefaultValue=()=>i,r}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):u(null!=e?e:t.defaultValue),o=y`var(${u(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>y`var(${u(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function yt(t,e){return u(`${t.name}: ${e}`)}const vt={colorPrimary:ut.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ut.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ut.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ut.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ut.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ut.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ut.create("--ft-color-error","COLOR","#B00020"),colorOutline:ut.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ut.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ut.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ut.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ut.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ut.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ut.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ut.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ut.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ut.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ut.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ut.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ut.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ut.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ut.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ut.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ut.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ut.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ut.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ut.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ut.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ut.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ut.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ut.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ut.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ut.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ut.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ut.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ut.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ut.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ut.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ut.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ut.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ut.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ut.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ut.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ut.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ut.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:ut.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:ut.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:ut.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:ut.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:ut.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:ut.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:ut.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:ut.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:ut.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:ut.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ut.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ut.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ut.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ut.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ut.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ut.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ut.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class gt extends dt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return v(i,t.elementStyles),i}}var bt,mt=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const xt=Symbol("constructorPrototype"),wt=Symbol("constructorName"),$t=Symbol("exportpartsDebouncer");class Ot extends gt{constructor(){super(),this[bt]=new e(5),this[wt]=this.constructor.name,this[xt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[wt]&&Object.setPrototypeOf(this,this[xt])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[$t].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,r,s,n;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const h=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(r=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==r?r:[],i=null!==(n=null===(s=t.getAttribute("exportparts"))||void 0===s?void 0:s.split(",").map((t=>t.split(":")[1])))&&void 0!==n?n:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>h.add(t)))}if(0===h.size)return void this.removeAttribute("exportparts");const c=[...h.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...c].join(", "))}}var St,kt;bt=$t,mt([o()],Ot.prototype,"exportpartsPrefix",void 0),mt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!a(t,e),...null!=e?e:{}})}([])],Ot.prototype,"exportpartsPrefixes",void 0),mt([o()],Ot.prototype,"customStylesheet",void 0),y`
67
- .ft-no-text-select {
68
- -webkit-touch-callout: none;
69
- -webkit-user-select: none;
70
- -khtml-user-select: none;
71
- -moz-user-select: none;
72
- -ms-user-select: none;
73
- user-select: none;
74
- }
67
+ .ft-no-text-select {
68
+ -webkit-touch-callout: none;
69
+ -webkit-user-select: none;
70
+ -khtml-user-select: none;
71
+ -moz-user-select: none;
72
+ -ms-user-select: none;
73
+ user-select: none;
74
+ }
75
75
  `,y`
76
- .ft-word-wrap {
77
- white-space: normal;
78
- word-wrap: break-word;
79
- -ms-word-break: break-all;
80
- word-break: break-all;
81
- word-break: break-word;
82
- -ms-hyphens: auto;
83
- -moz-hyphens: auto;
84
- -webkit-hyphens: auto;
85
- hyphens: auto
86
- }
76
+ .ft-word-wrap {
77
+ white-space: normal;
78
+ word-wrap: break-word;
79
+ -ms-word-break: break-all;
80
+ word-break: break-all;
81
+ word-break: break-word;
82
+ -ms-hyphens: auto;
83
+ -moz-hyphens: auto;
84
+ -webkit-hyphens: auto;
85
+ hyphens: auto
86
+ }
87
87
  `,y`
88
88
  .ft-safari-ellipsis-fix {
89
89
  margin-right: 0;
90
-
90
+
91
91
  }
92
92
 
93
93
  .ft-safari-ellipsis-fix:after {
@@ -196,7 +196,7 @@ const Nt=1;class Ct{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
196
196
  opacity: ${Mt.opacityContentOnSurfacePressed};
197
197
  transform: translate(-50%, -50%) scale(1);
198
198
  }
199
- `;var zt=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class Dt extends Ot{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=r?r-s.y:s.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 V`
199
+ `;var zt=function(t,e,i,o){for(var r,s=arguments.length,n=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,i,n):r(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};class Dt extends Ot{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:r}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=r?r-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return V`
200
200
  <style>
201
201
  .ft-ripple .ft-ripple--effect,
202
202
  .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
@@ -213,7 +213,7 @@ const Nt=1;class Ct{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
213
213
  <div class="ft-ripple--background"></div>
214
214
  <div class="ft-ripple--effect"></div>
215
215
  </div>
216
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Dt.elementDefinitions={},Dt.styles=Pt,zt([o({type:Boolean})],Dt.prototype,"primary",void 0),zt([o({type:Boolean})],Dt.prototype,"secondary",void 0),zt([o({type:Boolean})],Dt.prototype,"unbounded",void 0),zt([o({type:Boolean})],Dt.prototype,"activated",void 0),zt([o({type:Boolean})],Dt.prototype,"selected",void 0),zt([o({type:Boolean})],Dt.prototype,"disabled",void 0),zt([r()],Dt.prototype,"hovered",void 0),zt([r()],Dt.prototype,"focused",void 0),zt([r()],Dt.prototype,"pressed",void 0),zt([r()],Dt.prototype,"rippling",void 0),zt([r()],Dt.prototype,"rippleSize",void 0),zt([r()],Dt.prototype,"originX",void 0),zt([r()],Dt.prototype,"originY",void 0),zt([s(".ft-ripple")],Dt.prototype,"ripple",void 0),zt([s(".ft-ripple--effect")],Dt.prototype,"rippleEffect",void 0),l("ft-ripple")(Dt);
216
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",r),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",r),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,i=t;let o,r;return null!=e.x?({x:o,y:r}=e):null!=i.touches&&(o=i.touches[0].clientX,r=i.touches[0].clientY),{x:o,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Dt.elementDefinitions={},Dt.styles=Pt,zt([o({type:Boolean})],Dt.prototype,"primary",void 0),zt([o({type:Boolean})],Dt.prototype,"secondary",void 0),zt([o({type:Boolean})],Dt.prototype,"unbounded",void 0),zt([o({type:Boolean})],Dt.prototype,"activated",void 0),zt([o({type:Boolean})],Dt.prototype,"selected",void 0),zt([o({type:Boolean})],Dt.prototype,"disabled",void 0),zt([r()],Dt.prototype,"hovered",void 0),zt([r()],Dt.prototype,"focused",void 0),zt([r()],Dt.prototype,"pressed",void 0),zt([r()],Dt.prototype,"rippling",void 0),zt([r()],Dt.prototype,"rippleSize",void 0),zt([r()],Dt.prototype,"originX",void 0),zt([r()],Dt.prototype,"originY",void 0),zt([s(".ft-ripple")],Dt.prototype,"ripple",void 0),zt([s(".ft-ripple--effect")],Dt.prototype,"rippleEffect",void 0),l("ft-ripple")(Dt);
217
217
  /**
218
218
  * @license
219
219
  * Copyright 2020 Google LLC
@@ -362,7 +362,7 @@ const _t=Symbol.for(""),Wt=t=>{if((null==t?void 0:t.r)===_t)return null==t?void
362
362
  outline-width: ${ui.selectedOutlineWidth};
363
363
  outline-color: ${ui.selectedOutlineColor};
364
364
  border-radius: ${ui.selectedBorderRadius};
365
- ${yt(Mt.borderRadius,ui.selectedBorderRadius)};
365
+ ${yt(Mt.borderRadius,ui.selectedBorderRadius)};
366
366
  box-shadow: ${ui.elevation04};
367
367
  }
368
368
 
@@ -408,7 +408,9 @@ const _t=Symbol.for(""),Wt=t=>{if((null==t?void 0:t.r)===_t)return null==t?void
408
408
  <slot name="action"></slot>
409
409
  </div>
410
410
  <div id="content" part="content">
411
- <ft-typography variant="body2"><slot></slot></ft-typography>
411
+ <ft-typography variant="body2">
412
+ <slot></slot>
413
+ </ft-typography>
412
414
  </div>
413
415
  </div>
414
416
  `}}gi.elementDefinitions={"ft-ripple":Dt,"ft-typography":fi},gi.styles=yi,vi([o()],gi.prototype,"title",void 0),vi([o({type:Boolean})],gi.prototype,"clickable",void 0),vi([o({type:Boolean})],gi.prototype,"selected",void 0),vi([o({type:Boolean})],gi.prototype,"noHeader",void 0),l("ft-card")(gi),t.FtCard=gi,t.FtCardCssVariables=ui,t.styles=yi}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-card",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "A file uploader with drag and drop",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,10 +19,10 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-ripple": "1.0.36",
23
- "@fluid-topics/ft-typography": "1.0.36",
24
- "@fluid-topics/ft-wc-utils": "1.0.36",
22
+ "@fluid-topics/ft-ripple": "1.0.37",
23
+ "@fluid-topics/ft-typography": "1.0.37",
24
+ "@fluid-topics/ft-wc-utils": "1.0.37",
25
25
  "lit": "2.7.2"
26
26
  },
27
- "gitHead": "7ace912b9fec53f21ded2d3b32ba7d723118d334"
27
+ "gitHead": "abb2109b58b81de01332c9f036f5ff1df0861f8f"
28
28
  }