@fluid-topics/ft-reader-metadata 1.1.8 → 1.1.10

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.
@@ -135,7 +135,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
135
135
  }
136
136
 
137
137
  .ft-tooltip {
138
- position: absolute;
138
+ position: fixed;
139
139
  box-sizing: border-box;
140
140
  overflow: hidden;
141
141
  width: max-content;
@@ -153,7 +153,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
153
153
  position: relative;
154
154
  word-break: break-word;
155
155
  }
156
- `,Io=["start","end"],Ro=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+Io[0],o+"-"+Io[1])),[]),ko=Math.min,Uo=Math.max,Eo=Math.round,Wo=t=>({x:t,y:t}),Lo={left:"right",right:"left",bottom:"top",top:"bottom"},zo={start:"end",end:"start"};function Ko(t,o,e){return Uo(t,ko(o,e))}function Zo(t,o){return"function"==typeof t?t(o):t}function Bo(t){return t.split("-")[0]}function Fo(t){return t.split("-")[1]}function Do(t){return"x"===t?"y":"x"}function Ao(t){return"y"===t?"height":"width"}function Ho(t){return["top","bottom"].includes(Bo(t))?"y":"x"}function Go(t){return Do(Ho(t))}function Po(t){return t.replace(/left|right|bottom|top/g,(t=>Lo[t]))}function jo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function To(t,o,e){let{reference:r,floating:i}=t;const n=Ho(o),a=Go(o),l=Ao(a),c=Bo(o),p="y"===n,s=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let h;switch(c){case"top":h={x:s,y:r.y-i.height};break;case"bottom":h={x:s,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Fo(o)){case"start":h[a]-=d*(e&&p?-1:1);break;case"end":h[a]+=d*(e&&p?-1:1)}return h}async function Mo(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:l,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Zo(o,t),g=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),y=l[d?"floating"===f?"reference":"floating":f],u=jo(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(y)))||e?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(l.floating)),boundary:p,rootBoundary:s,strategy:c})),b="floating"===f?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(l.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=jo(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(u.top-O.top+g.top)/x.y,bottom:(O.bottom-u.bottom+g.bottom)/x.y,left:(u.left-O.left+g.left)/x.x,right:(O.right-u.right+g.right)/x.x}}function _o(t,o,e){return(t?[...e.filter((o=>Fo(o)===t)),...e.filter((o=>Fo(o)!==t))]:e.filter((t=>Bo(t)===t))).filter((e=>!t||(Fo(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>zo[t]))}(e)!==e)))}const Yo=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:l,platform:c,elements:p}=o,{crossAxis:s=!1,alignment:f,allowedPlacements:d=Ro,autoAlignment:h=!0,...g}=Zo(t,o),y=void 0!==f||d===Ro?_o(f||null,h,d):d,u=await Mo(o,g),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=y[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=Fo(t),i=Go(t),n=Ao(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=Po(a)),[a,Po(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(p.floating)));if(l!==m)return{reset:{placement:y[0]}};const O=[u[Bo(m)],u[x[0]],u[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],N=y[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=Fo(t.placement);return[t.placement,o&&s?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),$=S.filter((t=>t[2].slice(0,Fo(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=$[0])?void 0:i[0])||S[0][0];return C!==l?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}};function Vo(t){return Jo(t)?(t.nodeName||"").toLowerCase():"#document"}function Xo(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function qo(t){var o;return null==(o=(Jo(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Jo(t){return t instanceof Node||t instanceof Xo(t).Node}function Qo(t){return t instanceof Element||t instanceof Xo(t).Element}function te(t){return t instanceof HTMLElement||t instanceof Xo(t).HTMLElement}function oe(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Xo(t).ShadowRoot)}function ee(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=le(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function re(t){return["table","td","th"].includes(Vo(t))}function ie(t){const o=ne(),e=le(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function ne(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ae(t){return["html","body","#document"].includes(Vo(t))}function le(t){return Xo(t).getComputedStyle(t)}function ce(t){return Qo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pe(t){if("html"===Vo(t))return t;const o=t.assignedSlot||t.parentNode||oe(t)&&t.host||qo(t);return oe(o)?o.host:o}function se(t){const o=pe(t);return ae(o)?t.ownerDocument?t.ownerDocument.body:t.body:te(o)&&ee(o)?o:se(o)}function fe(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=se(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Xo(i);return n?o.concat(a,a.visualViewport||[],ee(i)?i:[],a.frameElement&&e?fe(a.frameElement):[]):o.concat(i,fe(i,[],e))}function de(t){const o=le(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=te(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,l=Eo(e)!==n||Eo(r)!==a;return l&&(e=n,r=a),{width:e,height:r,$:l}}function he(t){return Qo(t)?t:t.contextElement}function ge(t){const o=he(t);if(!te(o))return Wo(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=de(o);let a=(n?Eo(e.width):e.width)/r,l=(n?Eo(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const ye=Wo(0);function ue(t){const o=Xo(t);return ne()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:ye}function be(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=he(t);let a=Wo(1);o&&(r?Qo(r)&&(a=ge(r)):a=ge(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Xo(t))&&o}(n,e,r)?ue(n):Wo(0);let c=(i.left+l.x)/a.x,p=(i.top+l.y)/a.y,s=i.width/a.x,f=i.height/a.y;if(n){const t=Xo(n),o=r&&Qo(r)?Xo(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=ge(e),o=e.getBoundingClientRect(),r=le(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,p*=t.y,s*=t.x,f*=t.y,c+=i,p+=n,e=Xo(e).frameElement}}return jo({width:s,height:f,x:c,y:p})}function me(t){return be(qo(t)).left+ce(t).scrollLeft}function xe(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=Xo(t),r=qo(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){n=i.width,a=i.height;const t=ne();(!t||t&&"fixed"===o)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:l,y:c}}(t,e);else if("document"===o)r=function(t){const o=qo(t),e=ce(t),r=t.ownerDocument.body,i=Uo(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=Uo(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+me(t);const l=-e.scrollTop;return"rtl"===le(r).direction&&(a+=Uo(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:l}}(qo(t));else if(Qo(o))r=function(t,o){const e=be(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=te(t)?ge(t):Wo(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=ue(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return jo(r)}function Oe(t,o){const e=pe(t);return!(e===o||!Qo(e)||ae(e))&&("fixed"===le(e).position||Oe(e,o))}function ve(t,o,e){const r=te(o),i=qo(o),n="fixed"===e,a=be(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const c=Wo(0);if(r||!r&&!n)if(("body"!==Vo(o)||ee(i))&&(l=ce(o)),r){const t=be(o,!0,n,o);c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}else i&&(c.x=me(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Ne(t,o){return te(t)&&"fixed"!==le(t).position?o?o(t):t.offsetParent:null}function Se(t,o){const e=Xo(t);if(!te(t))return e;let r=Ne(t,o);for(;r&&re(r)&&"static"===le(r).position;)r=Ne(r,o);return r&&("html"===Vo(r)||"body"===Vo(r)&&"static"===le(r).position&&!ie(r))?e:r||function(t){let o=pe(t);for(;te(o)&&!ae(o);){if(ie(o))return o;o=pe(o)}return null}(t)||e}const $e={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=te(e),n=qo(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=Wo(1);const c=Wo(0);if((i||!i&&"fixed"!==r)&&(("body"!==Vo(e)||ee(n))&&(a=ce(e)),te(e))){const t=be(e);l=ge(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+c.x,y:o.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:qo,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=fe(t,[],!1).filter((t=>Qo(t)&&"body"!==Vo(t))),i=null;const n="fixed"===le(t).position;let a=n?pe(t):t;for(;Qo(a)&&!ae(a);){const o=le(a),e=ie(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||ee(a)&&!e&&Oe(t,a))?r=r.filter((t=>t!==a)):i=o,a=pe(a)}return o.set(t,r),r}(o,this._c):[].concat(e),r],a=n[0],l=n.reduce(((t,e)=>{const r=xe(o,e,i);return t.top=Uo(r.top,t.top),t.right=ko(r.right,t.right),t.bottom=ko(r.bottom,t.bottom),t.left=Uo(r.left,t.left),t}),xe(o,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Se,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||Se,n=this.getDimensions;return{reference:ve(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return de(t)},getScale:ge,isElement:Qo,isRTL:function(t){return"rtl"===le(t).direction}},Ce=(t,o,e)=>{const r=new Map,i={platform:$e,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(o));let p=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:s,y:f}=To(p,r,c),d=r,h={},g=0;for(let e=0;e<l.length;e++){const{name:n,fn:y}=l[e],{x:u,y:b,data:m,reset:x}=await y({x:s,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:p,platform:a,elements:{reference:t,floating:o}});s=null!=u?u:s,f=null!=b?b:f,h={...h,[n]:{...h[n],...m}},x&&g<=50&&(g++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(p=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:s,y:f}=To(p,d,c))),e=-1)}return{x:s,y:f,placement:d,strategy:i,middlewareData:h}})(t,o,{...i,platform:n})};var we=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ie extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
156
+ `,Io=["start","end"],Ro=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+Io[0],o+"-"+Io[1])),[]),ko=Math.min,Uo=Math.max,Eo=Math.round,Wo=t=>({x:t,y:t}),Lo={left:"right",right:"left",bottom:"top",top:"bottom"},zo={start:"end",end:"start"};function Ko(t,o,e){return Uo(t,ko(o,e))}function Zo(t,o){return"function"==typeof t?t(o):t}function Bo(t){return t.split("-")[0]}function Fo(t){return t.split("-")[1]}function Do(t){return"x"===t?"y":"x"}function Ao(t){return"y"===t?"height":"width"}function Ho(t){return["top","bottom"].includes(Bo(t))?"y":"x"}function Go(t){return Do(Ho(t))}function Po(t){return t.replace(/left|right|bottom|top/g,(t=>Lo[t]))}function jo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function To(t,o,e){let{reference:r,floating:i}=t;const n=Ho(o),a=Go(o),l=Ao(a),c=Bo(o),p="y"===n,s=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[l]/2-i[l]/2;let h;switch(c){case"top":h={x:s,y:r.y-i.height};break;case"bottom":h={x:s,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(Fo(o)){case"start":h[a]-=d*(e&&p?-1:1);break;case"end":h[a]+=d*(e&&p?-1:1)}return h}async function Mo(t,o){var e;void 0===o&&(o={});const{x:r,y:i,platform:n,rects:a,elements:l,strategy:c}=t,{boundary:p="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=Zo(o,t),g=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),y=l[d?"floating"===f?"reference":"floating":f],u=jo(await n.getClippingRect({element:null==(e=await(null==n.isElement?void 0:n.isElement(y)))||e?y:y.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(l.floating)),boundary:p,rootBoundary:s,strategy:c})),b="floating"===f?{...a.floating,x:r,y:i}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(l.floating)),x=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},O=jo(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:c}):b);return{top:(u.top-O.top+g.top)/x.y,bottom:(O.bottom-u.bottom+g.bottom)/x.y,left:(u.left-O.left+g.left)/x.x,right:(O.right-u.right+g.right)/x.x}}function _o(t,o,e){return(t?[...e.filter((o=>Fo(o)===t)),...e.filter((o=>Fo(o)!==t))]:e.filter((t=>Bo(t)===t))).filter((e=>!t||(Fo(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>zo[t]))}(e)!==e)))}const Yo=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,r,i;const{rects:n,middlewareData:a,placement:l,platform:c,elements:p}=o,{crossAxis:s=!1,alignment:f,allowedPlacements:d=Ro,autoAlignment:h=!0,...g}=Zo(t,o),y=void 0!==f||d===Ro?_o(f||null,h,d):d,u=await Mo(o,g),b=(null==(e=a.autoPlacement)?void 0:e.index)||0,m=y[b];if(null==m)return{};const x=function(t,o,e){void 0===e&&(e=!1);const r=Fo(t),i=Go(t),n=Ao(i);let a="x"===i?r===(e?"end":"start")?"right":"left":"start"===r?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=Po(a)),[a,Po(a)]}(m,n,await(null==c.isRTL?void 0:c.isRTL(p.floating)));if(l!==m)return{reset:{placement:y[0]}};const O=[u[Bo(m)],u[x[0]],u[x[1]]],v=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:m,overflows:O}],N=y[b+1];if(N)return{data:{index:b+1,overflows:v},reset:{placement:N}};const S=v.map((t=>{const o=Fo(t.placement);return[t.placement,o&&s?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),$=S.filter((t=>t[2].slice(0,Fo(t[0])?2:3).every((t=>t<=0)))),C=(null==(i=$[0])?void 0:i[0])||S[0][0];return C!==l?{data:{index:b+1,overflows:v},reset:{placement:C}}:{}}}};function Vo(t){return Jo(t)?(t.nodeName||"").toLowerCase():"#document"}function Xo(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function qo(t){var o;return null==(o=(Jo(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Jo(t){return t instanceof Node||t instanceof Xo(t).Node}function Qo(t){return t instanceof Element||t instanceof Xo(t).Element}function te(t){return t instanceof HTMLElement||t instanceof Xo(t).HTMLElement}function oe(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof Xo(t).ShadowRoot)}function ee(t){const{overflow:o,overflowX:e,overflowY:r,display:i}=le(t);return/auto|scroll|overlay|hidden|clip/.test(o+r+e)&&!["inline","contents"].includes(i)}function re(t){return["table","td","th"].includes(Vo(t))}function ie(t){const o=ne(),e=le(t);return"none"!==e.transform||"none"!==e.perspective||!!e.containerType&&"normal"!==e.containerType||!o&&!!e.backdropFilter&&"none"!==e.backdropFilter||!o&&!!e.filter&&"none"!==e.filter||["transform","perspective","filter"].some((t=>(e.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(e.contain||"").includes(t)))}function ne(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ae(t){return["html","body","#document"].includes(Vo(t))}function le(t){return Xo(t).getComputedStyle(t)}function ce(t){return Qo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pe(t){if("html"===Vo(t))return t;const o=t.assignedSlot||t.parentNode||oe(t)&&t.host||qo(t);return oe(o)?o.host:o}function se(t){const o=pe(t);return ae(o)?t.ownerDocument?t.ownerDocument.body:t.body:te(o)&&ee(o)?o:se(o)}function fe(t,o,e){var r;void 0===o&&(o=[]),void 0===e&&(e=!0);const i=se(t),n=i===(null==(r=t.ownerDocument)?void 0:r.body),a=Xo(i);return n?o.concat(a,a.visualViewport||[],ee(i)?i:[],a.frameElement&&e?fe(a.frameElement):[]):o.concat(i,fe(i,[],e))}function de(t){const o=le(t);let e=parseFloat(o.width)||0,r=parseFloat(o.height)||0;const i=te(t),n=i?t.offsetWidth:e,a=i?t.offsetHeight:r,l=Eo(e)!==n||Eo(r)!==a;return l&&(e=n,r=a),{width:e,height:r,$:l}}function he(t){return Qo(t)?t:t.contextElement}function ge(t){const o=he(t);if(!te(o))return Wo(1);const e=o.getBoundingClientRect(),{width:r,height:i,$:n}=de(o);let a=(n?Eo(e.width):e.width)/r,l=(n?Eo(e.height):e.height)/i;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const ye=Wo(0);function ue(t){const o=Xo(t);return ne()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:ye}function be(t,o,e,r){void 0===o&&(o=!1),void 0===e&&(e=!1);const i=t.getBoundingClientRect(),n=he(t);let a=Wo(1);o&&(r?Qo(r)&&(a=ge(r)):a=ge(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==Xo(t))&&o}(n,e,r)?ue(n):Wo(0);let c=(i.left+l.x)/a.x,p=(i.top+l.y)/a.y,s=i.width/a.x,f=i.height/a.y;if(n){const t=Xo(n),o=r&&Qo(r)?Xo(r):r;let e=t.frameElement;for(;e&&r&&o!==t;){const t=ge(e),o=e.getBoundingClientRect(),r=le(e),i=o.left+(e.clientLeft+parseFloat(r.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(r.paddingTop))*t.y;c*=t.x,p*=t.y,s*=t.x,f*=t.y,c+=i,p+=n,e=Xo(e).frameElement}}return jo({width:s,height:f,x:c,y:p})}function me(t){return be(qo(t)).left+ce(t).scrollLeft}function xe(t,o,e){let r;if("viewport"===o)r=function(t,o){const e=Xo(t),r=qo(t),i=e.visualViewport;let n=r.clientWidth,a=r.clientHeight,l=0,c=0;if(i){n=i.width,a=i.height;const t=ne();(!t||t&&"fixed"===o)&&(l=i.offsetLeft,c=i.offsetTop)}return{width:n,height:a,x:l,y:c}}(t,e);else if("document"===o)r=function(t){const o=qo(t),e=ce(t),r=t.ownerDocument.body,i=Uo(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),n=Uo(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-e.scrollLeft+me(t);const l=-e.scrollTop;return"rtl"===le(r).direction&&(a+=Uo(o.clientWidth,r.clientWidth)-i),{width:i,height:n,x:a,y:l}}(qo(t));else if(Qo(o))r=function(t,o){const e=be(t,!0,"fixed"===o),r=e.top+t.clientTop,i=e.left+t.clientLeft,n=te(t)?ge(t):Wo(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:i*n.x,y:r*n.y}}(o,e);else{const e=ue(t);r={...o,x:o.x-e.x,y:o.y-e.y}}return jo(r)}function Oe(t,o){const e=pe(t);return!(e===o||!Qo(e)||ae(e))&&("fixed"===le(e).position||Oe(e,o))}function ve(t,o,e){const r=te(o),i=qo(o),n="fixed"===e,a=be(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const c=Wo(0);if(r||!r&&!n)if(("body"!==Vo(o)||ee(i))&&(l=ce(o)),r){const t=be(o,!0,n,o);c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}else i&&(c.x=me(i));return{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Ne(t,o){return te(t)&&"fixed"!==le(t).position?o?o(t):t.offsetParent:null}function Se(t,o){const e=Xo(t);if(!te(t))return e;let r=Ne(t,o);for(;r&&re(r)&&"static"===le(r).position;)r=Ne(r,o);return r&&("html"===Vo(r)||"body"===Vo(r)&&"static"===le(r).position&&!ie(r))?e:r||function(t){let o=pe(t);for(;te(o)&&!ae(o);){if(ie(o))return o;o=pe(o)}return null}(t)||e}const $e={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:r}=t;const i=te(e),n=qo(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=Wo(1);const c=Wo(0);if((i||!i&&"fixed"!==r)&&(("body"!==Vo(e)||ee(n))&&(a=ce(e)),te(e))){const t=be(e);l=ge(e),c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-a.scrollLeft*l.x+c.x,y:o.y*l.y-a.scrollTop*l.y+c.y}},getDocumentElement:qo,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:r,strategy:i}=t;const n=[..."clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let r=fe(t,[],!1).filter((t=>Qo(t)&&"body"!==Vo(t))),i=null;const n="fixed"===le(t).position;let a=n?pe(t):t;for(;Qo(a)&&!ae(a);){const o=le(a),e=ie(a);e||"fixed"!==o.position||(i=null),(n?!e&&!i:!e&&"static"===o.position&&i&&["absolute","fixed"].includes(i.position)||ee(a)&&!e&&Oe(t,a))?r=r.filter((t=>t!==a)):i=o,a=pe(a)}return o.set(t,r),r}(o,this._c):[].concat(e),r],a=n[0],l=n.reduce(((t,e)=>{const r=xe(o,e,i);return t.top=Uo(r.top,t.top),t.right=ko(r.right,t.right),t.bottom=ko(r.bottom,t.bottom),t.left=Uo(r.left,t.left),t}),xe(o,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Se,getElementRects:async function(t){let{reference:o,floating:e,strategy:r}=t;const i=this.getOffsetParent||Se,n=this.getDimensions;return{reference:ve(o,await i(e),r),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return de(t)},getScale:ge,isElement:Qo,isRTL:function(t){return"rtl"===le(t).direction}},Ce=(t,o,e)=>{const r=new Map,i={platform:$e,...e},n={...i.platform,_c:r};return(async(t,o,e)=>{const{placement:r="bottom",strategy:i="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(o));let p=await a.getElementRects({reference:t,floating:o,strategy:i}),{x:s,y:f}=To(p,r,c),d=r,h={},g=0;for(let e=0;e<l.length;e++){const{name:n,fn:y}=l[e],{x:u,y:b,data:m,reset:x}=await y({x:s,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:p,platform:a,elements:{reference:t,floating:o}});s=null!=u?u:s,f=null!=b?b:f,h={...h,[n]:{...h[n],...m}},x&&g<=50&&(g++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(p=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:i}):x.rects),({x:s,y:f}=To(p,d,c))),e=-1)}return{x:s,y:f,placement:d,strategy:i,middlewareData:h}})(t,o,{...i,platform:n})};function we(t){return function(t){for(let o=t;o;o=Ie(o))if(o instanceof Element&&"none"===getComputedStyle(o).display)return null;for(let o=Ie(t);o;o=Ie(o)){if(!(o instanceof Element))continue;const t=getComputedStyle(o);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return o;if("BODY"===o.tagName)return o}}return null}(t)}function Ie(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Re=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ke extends o.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new o.Debouncer,this.revealDebouncer=new o.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
157
157
  <div part="container"
158
158
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
159
159
  @mouseenter=${this.onHover}
@@ -161,7 +161,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
161
161
  @focusin=${this.onHover}
162
162
  @focusout=${this.onOut}
163
163
  @touchstart=${this.onTouch}>
164
- <slot></slot>
164
+ <slot part="slot"></slot>
165
165
  <div part="tooltip" role="tooltip" inert
166
166
  class="ft-tooltip ft-tooltip--${this.validPosition}"
167
167
  ?hidden=${!this.visible}>
@@ -171,7 +171,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
171
171
  </div>
172
172
  </div>
173
173
  </div>
174
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ce(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=Zo(t,o),p={x:e,y:r},s=await Mo(o,c),f=Ho(Bo(i)),d=Do(f);let h=p[d],g=p[f];if(n){const t="y"===d?"bottom":"right";h=Ko(h+s["y"===d?"top":"left"],h,h-s[t])}if(a){const t="y"===f?"bottom":"right";g=Ko(g+s["y"===f?"top":"left"],g,g-s[t])}const y=l.fn({...o,[d]:h,[f]:g});return{...y,data:{x:y.x-e,y:y.y-r}}}}),Yo({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}Ie.elementDefinitions={"ft-typography":xo},Ie.styles=wo,we([r.property()],Ie.prototype,"text",void 0),we([r.property({type:Boolean})],Ie.prototype,"manual",void 0),we([r.property({type:Boolean})],Ie.prototype,"inline",void 0),we([r.property({type:Number})],Ie.prototype,"delay",void 0),we([r.property()],Ie.prototype,"position",void 0),we([r.queryAssignedNodes()],Ie.prototype,"slotNodes",void 0),we([r.query(".ft-tooltip--container")],Ie.prototype,"container",void 0),we([r.query(".ft-tooltip")],Ie.prototype,"tooltip",void 0),we([r.query(".ft-tooltip--content")],Ie.prototype,"tooltipContent",void 0),we([r.state()],Ie.prototype,"visible",void 0),we([r.eventOptions({passive:!0})],Ie.prototype,"onTouch",null),we([r.eventOptions({passive:!0})],Ie.prototype,"onHover",null),we([r.eventOptions({passive:!0})],Ie.prototype,"onOut",null),o.customElement("ft-tooltip")(Ie);const Re=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorContent),ke={color:Re,backgroundColor:o.FtCssVariableFactory.extend("--ft-ripple-background-color","",Re),opacityContentOnSurfacePressed:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Ue=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorPrimary),Ee=Ue,We=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ue),Le=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorSecondary),ze=Le,Ke=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",Le),Ze=e.css`
174
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((o=>t.has(o)))&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){var t;this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Ce(this.slottedElement,this.tooltip,{platform:{...$e,getOffsetParent:t=>$e.getOffsetParent(t,we)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:r,placement:i}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...c}=Zo(t,o),p={x:e,y:r},s=await Mo(o,c),f=Ho(Bo(i)),d=Do(f);let h=p[d],g=p[f];if(n){const t="y"===d?"bottom":"right";h=Ko(h+s["y"===d?"top":"left"],h,h-s[t])}if(a){const t="y"===f?"bottom":"right";g=Ko(g+s["y"===f?"top":"left"],g,g-s[t])}const y=l.fn({...o,[d]:h,[f]:g});return{...y,data:{x:y.x-e,y:y.y-r}}}}),Yo({allowedPlacements:[this.position]})]}).then((({x:t,y:o})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${o}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,o){return Math.max(t,Math.min(0,-o))}}ke.elementDefinitions={"ft-typography":xo},ke.styles=wo,Re([r.property()],ke.prototype,"text",void 0),Re([r.property({type:Boolean})],ke.prototype,"manual",void 0),Re([r.property({type:Boolean})],ke.prototype,"inline",void 0),Re([r.property({type:Number})],ke.prototype,"delay",void 0),Re([r.property()],ke.prototype,"position",void 0),Re([r.queryAssignedNodes()],ke.prototype,"slotNodes",void 0),Re([r.query(".ft-tooltip--container")],ke.prototype,"container",void 0),Re([r.query(".ft-tooltip")],ke.prototype,"tooltip",void 0),Re([r.query(".ft-tooltip--content")],ke.prototype,"tooltipContent",void 0),Re([r.state()],ke.prototype,"visible",void 0),Re([r.eventOptions({passive:!0})],ke.prototype,"onTouch",null),Re([r.eventOptions({passive:!0})],ke.prototype,"onHover",null),Re([r.eventOptions({passive:!0})],ke.prototype,"onOut",null),o.customElement("ft-tooltip")(ke);const Ue=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorContent),Ee={color:Ue,backgroundColor:o.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ue),opacityContentOnSurfacePressed:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.FtCssVariableFactory.external(o.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},We=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorPrimary),Le=We,ze=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",We),Ke=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorSecondary),Ze=Ke,Be=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ke),Fe=e.css`
175
175
  :host {
176
176
  display: contents;
177
177
  }
@@ -184,7 +184,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
184
184
 
185
185
  .ft-ripple:not(.ft-ripple--unbounded) {
186
186
  overflow: hidden;
187
- border-radius: ${ke.borderRadius};
187
+ border-radius: ${Ee.borderRadius};
188
188
  }
189
189
 
190
190
  .ft-ripple .ft-ripple--background,
@@ -218,27 +218,27 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
218
218
  }
219
219
 
220
220
  .ft-ripple .ft-ripple--background {
221
- background-color: ${ke.backgroundColor};
221
+ background-color: ${Ee.backgroundColor};
222
222
  }
223
223
 
224
224
  .ft-ripple .ft-ripple--effect {
225
- background-color: ${ke.color};
225
+ background-color: ${Ee.color};
226
226
  }
227
227
 
228
228
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
229
- background-color: ${Ke};
229
+ background-color: ${Be};
230
230
  }
231
231
 
232
232
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
233
- background-color: ${ze};
233
+ background-color: ${Ze};
234
234
  }
235
235
 
236
236
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
237
- background-color: ${We};
237
+ background-color: ${ze};
238
238
  }
239
239
 
240
240
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
241
- background-color: ${Ee};
241
+ background-color: ${Le};
242
242
  }
243
243
 
244
244
  .ft-ripple .ft-ripple--background {
@@ -268,22 +268,22 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
268
268
  }
269
269
 
270
270
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
271
- opacity: ${ke.opacityContentOnSurfaceHover};
271
+ opacity: ${Ee.opacityContentOnSurfaceHover};
272
272
  }
273
273
 
274
274
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
275
- opacity: ${ke.opacityContentOnSurfaceSelected};
275
+ opacity: ${Ee.opacityContentOnSurfaceSelected};
276
276
  }
277
277
 
278
278
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
279
- opacity: ${ke.opacityContentOnSurfaceFocused};
279
+ opacity: ${Ee.opacityContentOnSurfaceFocused};
280
280
  }
281
281
 
282
282
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
283
- opacity: ${ke.opacityContentOnSurfacePressed};
283
+ opacity: ${Ee.opacityContentOnSurfacePressed};
284
284
  transform: translate(-50%, -50%) scale(1);
285
285
  }
286
- `;var Be,Fe,De=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ae extends o.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o.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 o.Debouncer(10),this.moveRipple=t=>{var o,e;let{x:r,y:i}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
286
+ `;var De,Ae,He=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ge extends o.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new o.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 o.Debouncer(10),this.moveRipple=t=>{var o,e;let{x:r,y:i}=this.getCoordinates(t),n=null!==(e=null===(o=this.ripple)||void 0===o?void 0:o.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=r?r-n.x:n.width/2),this.originY=Math.round(null!=i?i-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
287
287
  <style>
288
288
  .ft-ripple .ft-ripple--effect {
289
289
  left: ${this.originX}px;
@@ -294,7 +294,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
294
294
  <div class="ft-ripple--background"></div>
295
295
  <div class="ft-ripple--effect"></div>
296
296
  </div>
297
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",e,n),t.addEventListener("touchstart",r,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",i,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",e,n),t.removeEventListener("touchstart",r,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",i,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ae.elementDefinitions={},Ae.styles=Ze,De([r.property({type:Boolean})],Ae.prototype,"primary",void 0),De([r.property({type:Boolean})],Ae.prototype,"secondary",void 0),De([r.property({type:Boolean})],Ae.prototype,"unbounded",void 0),De([r.property({type:Boolean})],Ae.prototype,"activated",void 0),De([r.property({type:Boolean})],Ae.prototype,"selected",void 0),De([r.property({type:Boolean})],Ae.prototype,"disabled",void 0),De([r.state()],Ae.prototype,"hovered",void 0),De([r.state()],Ae.prototype,"focused",void 0),De([r.state()],Ae.prototype,"pressed",void 0),De([r.state()],Ae.prototype,"rippling",void 0),De([r.state()],Ae.prototype,"originX",void 0),De([r.state()],Ae.prototype,"originY",void 0),De([r.query(".ft-ripple")],Ae.prototype,"ripple",void 0),De([r.query(".ft-ripple--effect")],Ae.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(Ae),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(Be||(Be={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Fe||(Fe={})),new Map([...["abw"].map((t=>[t,Fe.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,Fe.AUDIO])),...["avi"].map((t=>[t,Fe.AVI])),...["chm","xhs"].map((t=>[t,Fe.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,Fe.CODE])),...["csv"].map((t=>[t,Fe.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Fe.DITA])),...["epub"].map((t=>[t,Fe.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Fe.EXCEL])),...["flac"].map((t=>[t,Fe.FLAC])),...["gif"].map((t=>[t,Fe.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Fe.GZIP])),...["html","htm","xhtml"].map((t=>[t,Fe.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,Fe.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Fe.JPEG])),...["json"].map((t=>[t,Fe.JSON])),...["m4a","m4p"].map((t=>[t,Fe.M4A])),...["mov","qt"].map((t=>[t,Fe.MOV])),...["mp3"].map((t=>[t,Fe.MP3])),...["mp4","m4v"].map((t=>[t,Fe.MP4])),...["ogg","oga"].map((t=>[t,Fe.OGG])),...["pdf","ps"].map((t=>[t,Fe.PDF])),...["png"].map((t=>[t,Fe.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Fe.POWERPOINT])),...["rar"].map((t=>[t,Fe.RAR])),...["stp"].map((t=>[t,Fe.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Fe.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,Fe.VIDEO])),...["wav"].map((t=>[t,Fe.WAV])),...["wma"].map((t=>[t,Fe.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Fe.WORD])),...["xml","xsl","rdf"].map((t=>[t,Fe.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Fe.YAML])),...["zip"].map((t=>[t,Fe.ZIP]))]);const He={size:o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Ge=e.css`
297
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var o,e;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(o=this.target)||void 0===o||o.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,o;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(o=this.target)&&void 0!==o?o:e)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const o=(...t)=>o=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(o)},e=o("mouseup","contextmenu"),r=o("touchend","touchcancel"),i=t=>{["Enter"," "].includes(t.key)&&o("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",e,n),t.addEventListener("touchstart",r,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",i,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",e,n),t.removeEventListener("touchstart",r,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",i,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const o=t,e=t;let r,i;return null!=o.x?({x:r,y:i}=o):null!=e.touches&&(r=e.touches[0].clientX,i=e.touches[0].clientY),{x:r,y:i}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let o of t.composedPath()){if(o===this.target)break;if("hasAttribute"in o&&o.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Ge.elementDefinitions={},Ge.styles=Fe,He([r.property({type:Boolean})],Ge.prototype,"primary",void 0),He([r.property({type:Boolean})],Ge.prototype,"secondary",void 0),He([r.property({type:Boolean})],Ge.prototype,"unbounded",void 0),He([r.property({type:Boolean})],Ge.prototype,"activated",void 0),He([r.property({type:Boolean})],Ge.prototype,"selected",void 0),He([r.property({type:Boolean})],Ge.prototype,"disabled",void 0),He([r.state()],Ge.prototype,"hovered",void 0),He([r.state()],Ge.prototype,"focused",void 0),He([r.state()],Ge.prototype,"pressed",void 0),He([r.state()],Ge.prototype,"rippling",void 0),He([r.state()],Ge.prototype,"originX",void 0),He([r.state()],Ge.prototype,"originY",void 0),He([r.query(".ft-ripple")],Ge.prototype,"ripple",void 0),He([r.query(".ft-ripple--effect")],Ge.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(Ge),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;"}(De||(De={})),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;"}(Ae||(Ae={})),new Map([...["abw"].map((t=>[t,Ae.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,Ae.AUDIO])),...["avi"].map((t=>[t,Ae.AVI])),...["chm","xhs"].map((t=>[t,Ae.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,Ae.CODE])),...["csv"].map((t=>[t,Ae.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ae.DITA])),...["epub"].map((t=>[t,Ae.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ae.EXCEL])),...["flac"].map((t=>[t,Ae.FLAC])),...["gif"].map((t=>[t,Ae.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ae.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ae.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,Ae.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ae.JPEG])),...["json"].map((t=>[t,Ae.JSON])),...["m4a","m4p"].map((t=>[t,Ae.M4A])),...["mov","qt"].map((t=>[t,Ae.MOV])),...["mp3"].map((t=>[t,Ae.MP3])),...["mp4","m4v"].map((t=>[t,Ae.MP4])),...["ogg","oga"].map((t=>[t,Ae.OGG])),...["pdf","ps"].map((t=>[t,Ae.PDF])),...["png"].map((t=>[t,Ae.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ae.POWERPOINT])),...["rar"].map((t=>[t,Ae.RAR])),...["stp"].map((t=>[t,Ae.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ae.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,Ae.VIDEO])),...["wav"].map((t=>[t,Ae.WAV])),...["wma"].map((t=>[t,Ae.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ae.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ae.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ae.YAML])),...["zip"].map((t=>[t,Ae.ZIP]))]);const Pe={size:o.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.FtCssVariableFactory.extend("--ft-icon-material-font-family","",o.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},je=e.css`
298
298
  :host, i.ft-icon {
299
299
  display: inline-flex;
300
300
  align-items: center;
@@ -303,14 +303,14 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
303
303
  }
304
304
 
305
305
  :host {
306
- width: ${He.size};
307
- height: ${He.size};
306
+ width: ${Pe.size};
307
+ height: ${Pe.size};
308
308
  }
309
309
 
310
310
  i.ft-icon {
311
311
  width: 100%;
312
312
  height: 100%;
313
- font-size: ${He.size};
313
+ font-size: ${Pe.size};
314
314
  line-height: 1;
315
315
  font-weight: normal;
316
316
  text-transform: none;
@@ -321,33 +321,33 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
321
321
  text-rendering: auto;
322
322
  -webkit-font-smoothing: antialiased;
323
323
  -moz-osx-font-smoothing: grayscale;
324
- vertical-align: ${He.verticalAlign};
324
+ vertical-align: ${Pe.verticalAlign};
325
325
  }
326
326
 
327
327
  i.ft-icon.ft-icon--fluid-topics {
328
- font-family: ${He.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
328
+ font-family: ${Pe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
329
329
 
330
330
  /* Ugly fix because font is broken */
331
- font-size: calc(0.75 * ${He.size});
332
- line-height: ${He.size};
331
+ font-size: calc(0.75 * ${Pe.size});
332
+ line-height: ${Pe.size};
333
333
  position: relative;
334
334
  top: -4%;
335
335
  justify-content: center;
336
336
  }
337
337
 
338
338
  .ft-icon--file-format {
339
- font-family: ${He.fileFormatFontFamily}, ft-mime, sans-serif;
339
+ font-family: ${Pe.fileFormatFontFamily}, ft-mime, sans-serif;
340
340
  }
341
341
 
342
342
  .ft-icon--material {
343
- font-family: ${He.materialFontFamily}, "Material Icons", sans-serif;
343
+ font-family: ${Pe.materialFontFamily}, "Material Icons", sans-serif;
344
344
  }
345
- `;var Pe;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Pe||(Pe={}));var je=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Te extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Pe).includes(this.variant)?this.variant:Pe.fluid_topics,o=t!==Pe.material||!!this.value;return e.html`
345
+ `;var Te;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Te||(Te={}));var Me=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class _e extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Te).includes(this.variant)?this.variant:Te.fluid_topics,o=t!==Te.material||!!this.value;return e.html`
346
346
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
347
347
  ${n.unsafeHTML(this.resolvedIcon)}
348
348
  <slot ?hidden=${o}></slot>
349
349
  </i>
350
- `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let r=this.value||this.textContent;switch(this.variant){case Pe.file_format:this.resolvedIcon=null!==(t=Fe[r.replace("-","_").toUpperCase()])&&void 0!==t?t:r;break;case Pe.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=Be[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Te.elementDefinitions={},Te.styles=Ge,je([r.property()],Te.prototype,"variant",void 0),je([r.property()],Te.prototype,"value",void 0),je([r.state()],Te.prototype,"resolvedIcon",void 0),je([r.query("slot")],Te.prototype,"slottedContent",void 0),o.customElement("ft-icon")(Te);const Me={color:o.FtCssVariableFactory.extend("--ft-loader-color","",o.designSystemVariables.colorPrimary),size:o.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},_e=e.css`
350
+ `}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}update(t){super.update(t),["value","variant"].some((o=>t.has(o)))&&this.resolveIcon()}resolveIcon(){var t,o;let r=this.value||this.textContent;switch(this.variant){case Te.file_format:this.resolvedIcon=null!==(t=Ae[r.replace("-","_").toUpperCase()])&&void 0!==t?t:r;break;case Te.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=De[r.replace("-","_").toUpperCase()])&&void 0!==o?o:r}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}_e.elementDefinitions={},_e.styles=je,Me([r.property()],_e.prototype,"variant",void 0),Me([r.property()],_e.prototype,"value",void 0),Me([r.state()],_e.prototype,"resolvedIcon",void 0),Me([r.query("slot")],_e.prototype,"slottedContent",void 0),o.customElement("ft-icon")(_e);const Ye={color:o.FtCssVariableFactory.extend("--ft-loader-color","",o.designSystemVariables.colorPrimary),size:o.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Ve=e.css`
351
351
  :host {
352
352
  line-height: 0;
353
353
  }
@@ -356,8 +356,8 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
356
356
  display: inline-block;
357
357
  position: relative;
358
358
 
359
- width: ${Me.size};
360
- height: ${Me.size};
359
+ width: ${Ye.size};
360
+ height: ${Ye.size};
361
361
  }
362
362
 
363
363
  .ft-loader div {
@@ -366,7 +366,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
366
366
  width: 25%;
367
367
  height: 25%;
368
368
  border-radius: 50%;
369
- background: ${Me.color};
369
+ background: ${Ye.color};
370
370
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
371
371
  }
372
372
 
@@ -413,10 +413,10 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
413
413
  transform: translate(0, 0);
414
414
  }
415
415
  100% {
416
- transform: translate(calc(0.35 * ${Me.size}), 0);
416
+ transform: translate(calc(0.35 * ${Ye.size}), 0);
417
417
  }
418
418
  }
419
- `,Ye=o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorPrimary),Ve={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorSurface),borderRadius:o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusL),color:Ye,fontSize:o.FtCssVariableFactory.extend("--ft-button-font-size","",io.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ye),verticalPadding:o.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},Xe=o.FtCssVariableFactory.extend("--ft-button-primary-color","",o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorOnPrimary)),qe={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-primary-background-color","",o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorPrimary)),color:Xe,rippleColor:o.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Xe)},Je=o.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusM)),Qe=o.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),tr=o.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),or=o.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),er=[e.css`
419
+ `,Xe=o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorPrimary),qe={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorSurface),borderRadius:o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusL),color:Xe,fontSize:o.FtCssVariableFactory.extend("--ft-button-font-size","",io.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.FtCssVariableFactory.extend("--ft-button-ripple-color","",Xe),verticalPadding:o.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},Je=o.FtCssVariableFactory.extend("--ft-button-primary-color","",o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorOnPrimary)),Qe={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-primary-background-color","",o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorPrimary)),color:Je,rippleColor:o.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Je)},tr=o.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusM)),or=o.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),er=o.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),rr=o.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),ir=[e.css`
420
420
  :host {
421
421
  display: inline-block;
422
422
  max-width: 100%;
@@ -427,7 +427,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
427
427
  box-shadow: 0px 0px 0px transparent;
428
428
  border: 0px solid transparent;
429
429
  text-shadow: 0px 0px 0px transparent;
430
- font-size: ${Ve.fontSize};
430
+ font-size: ${qe.fontSize};
431
431
  }
432
432
 
433
433
  button:hover {
@@ -456,31 +456,31 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
456
456
  border: none;
457
457
  pointer-events: auto;
458
458
 
459
- --ft-button-internal-line-height: max(calc(${Ve.fontSize} + 2px), ${Ve.iconSize});
460
- --ft-button-internal-color: ${Ve.color};
461
- ${o.setVariable(He.size,Ve.iconSize)};
462
- ${o.setVariable(ke.color,Ve.rippleColor)};
459
+ --ft-button-internal-line-height: max(calc(${qe.fontSize} + 2px), ${qe.iconSize});
460
+ --ft-button-internal-color: ${qe.color};
461
+ ${o.setVariable(Pe.size,qe.iconSize)};
462
+ ${o.setVariable(Ee.color,qe.rippleColor)};
463
463
 
464
- border-radius: ${Ve.borderRadius};
465
- padding: ${Ve.verticalPadding} ${Ve.horizontalPadding};
466
- background-color: ${Ve.backgroundColor};
464
+ border-radius: ${qe.borderRadius};
465
+ padding: ${qe.verticalPadding} ${qe.horizontalPadding};
466
+ background-color: ${qe.backgroundColor};
467
467
  color: var(--ft-button-internal-color);
468
468
  -webkit-mask-image: radial-gradient(white, black);
469
469
  }
470
470
 
471
471
  .ft-button.ft-button--outlined {
472
472
  border: 1px solid var(--ft-button-internal-color);
473
- padding: calc(${Ve.verticalPadding} - 1px) calc(${Ve.horizontalPadding} - 1px);
473
+ padding: calc(${qe.verticalPadding} - 1px) calc(${qe.horizontalPadding} - 1px);
474
474
  }
475
475
 
476
476
  .ft-button.ft-button--dense {
477
- padding: ${Qe} ${tr};
478
- border-radius: ${Je};
479
- gap: ${or};
477
+ padding: ${or} ${er};
478
+ border-radius: ${tr};
479
+ gap: ${rr};
480
480
  }
481
481
 
482
482
  .ft-button.ft-button--dense.ft-button--outlined {
483
- padding: calc(${Qe} - 1px) calc(${tr} - 1px);
483
+ padding: calc(${or} - 1px) calc(${er} - 1px);
484
484
  }
485
485
 
486
486
  .ft-button:not([disabled]):hover {
@@ -488,22 +488,22 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
488
488
  }
489
489
 
490
490
  .ft-button--round {
491
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ve.verticalPadding});
491
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${qe.verticalPadding});
492
492
  }
493
493
 
494
494
  .ft-button--round.ft-button--dense {
495
- border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Qe});
495
+ border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${or});
496
496
  }
497
497
 
498
498
  .ft-button[disabled] {
499
499
  filter: grayscale(1);
500
- opacity: ${Ve.opacityDisabled};
500
+ opacity: ${qe.opacityDisabled};
501
501
  }
502
502
 
503
503
  .ft-button.ft-button--primary {
504
- background-color: ${qe.backgroundColor};
505
- --ft-button-internal-color: ${qe.color};
506
- ${o.setVariable(ke.color,qe.rippleColor)};
504
+ background-color: ${Qe.backgroundColor};
505
+ --ft-button-internal-color: ${Qe.color};
506
+ ${o.setVariable(Ee.color,Qe.rippleColor)};
507
507
  }
508
508
 
509
509
  .ft-button:focus {
@@ -516,13 +516,13 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
516
516
  white-space: nowrap;
517
517
  text-overflow: ellipsis;
518
518
  display: block;
519
- margin: 0 ${Ve.iconPadding};
519
+ margin: 0 ${qe.iconPadding};
520
520
  ${o.setVariable(io.fontSize,"1em")};
521
521
  ${o.setVariable(io.lineHeight,"var(--ft-button-internal-line-height)")};
522
522
  }
523
523
 
524
524
  .ft-button--dense .ft-button--label {
525
- margin: 0 ${or};
525
+ margin: 0 ${rr};
526
526
  }
527
527
 
528
528
  .ft-button--label[hidden] {
@@ -535,13 +535,13 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
535
535
  }
536
536
 
537
537
  .ft-button--label[hidden] + ft-icon {
538
- margin: 0 calc(${Ve.horizontalPadding} * -1);
539
- padding: 0 ${Ve.verticalPadding};
538
+ margin: 0 calc(${qe.horizontalPadding} * -1);
539
+ padding: 0 ${qe.verticalPadding};
540
540
  }
541
541
 
542
542
  .ft-button--dense .ft-button--label[hidden] + ft-icon {
543
- margin: 0 calc(${tr} * -1);
544
- padding: 0 ${Qe};
543
+ margin: 0 calc(${er} * -1);
544
+ padding: 0 ${or};
545
545
  }
546
546
 
547
547
  .ft-button:not(.ft-button--trailing-icon) ft-icon,
@@ -550,17 +550,17 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
550
550
  }
551
551
 
552
552
  ft-loader {
553
- ${o.setVariable(Me.size,Ve.iconSize)};
554
- ${o.setVariable(Me.color,"var(--ft-button-internal-color)")};
553
+ ${o.setVariable(Ye.size,qe.iconSize)};
554
+ ${o.setVariable(Ye.color,"var(--ft-button-internal-color)")};
555
555
  }
556
- `,o.noTextSelect];class rr extends o.FtLitElement{render(){return e.html`
556
+ `,o.noTextSelect];class nr extends o.FtLitElement{render(){return e.html`
557
557
  <div class="ft-loader">
558
558
  <div></div>
559
559
  <div></div>
560
560
  <div></div>
561
561
  <div></div>
562
562
  </div>
563
- `}}rr.styles=_e,o.customElement("ft-loader")(rr);var ir=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class nr extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
563
+ `}}nr.styles=Ve,o.customElement("ft-loader")(nr);var ar=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class lr extends(o.toFtFormComponent(o.FtLitElement,"button")){constructor(){super(...arguments),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{var o;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(o=this.form)||void 0===o||o.requestSubmit())}}render(){return this.addTooltipIfNeeded(e.html`
564
564
  <button part="button"
565
565
  class="${i.classMap(this.buttonClasses)}"
566
566
  aria-label="${this.getLabel()}"
@@ -583,7 +583,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
583
583
  </ft-tooltip>
584
584
  `:t}resolveIcon(){return this.loading?e.html`
585
585
  <ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
586
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}nr.elementDefinitions={"ft-ripple":Ae,"ft-tooltip":Ie,"ft-typography":xo,"ft-icon":Te,"ft-loader":rr},ir([r.property({type:String,reflect:!0})],nr.prototype,"role",void 0),ir([r.property()],nr.prototype,"type",void 0),ir([r.property({type:Boolean})],nr.prototype,"disabled",void 0),ir([r.property()],nr.prototype,"label",void 0),ir([r.property()],nr.prototype,"icon",void 0),ir([r.property()],nr.prototype,"iconVariant",void 0),ir([r.property({type:Boolean})],nr.prototype,"trailingIcon",void 0),ir([r.property({type:Boolean})],nr.prototype,"loading",void 0),ir([r.property()],nr.prototype,"tooltipPosition",void 0),ir([r.property({type:Boolean})],nr.prototype,"hideTooltip",void 0),ir([r.property({type:Boolean})],nr.prototype,"forceTooltip",void 0),ir([r.query(".ft-button")],nr.prototype,"button",void 0),ir([r.query(".ft-button--label slot")],nr.prototype,"slottedContent",void 0);var ar=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class lr extends nr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}lr.styles=[o.safariEllipsisFix,er],ar([r.property({type:Boolean})],lr.prototype,"primary",void 0),ar([r.property({type:Boolean})],lr.prototype,"outlined",void 0),ar([r.property({type:Boolean})],lr.prototype,"dense",void 0),ar([r.property({type:Boolean})],lr.prototype,"round",void 0);const cr=[e.css`
586
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:e.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}lr.elementDefinitions={"ft-ripple":Ge,"ft-tooltip":ke,"ft-typography":xo,"ft-icon":_e,"ft-loader":nr},ar([r.property({type:String,reflect:!0})],lr.prototype,"role",void 0),ar([r.property()],lr.prototype,"type",void 0),ar([r.property({type:Boolean})],lr.prototype,"disabled",void 0),ar([r.property()],lr.prototype,"label",void 0),ar([r.property()],lr.prototype,"icon",void 0),ar([r.property()],lr.prototype,"iconVariant",void 0),ar([r.property({type:Boolean})],lr.prototype,"trailingIcon",void 0),ar([r.property({type:Boolean})],lr.prototype,"loading",void 0),ar([r.property()],lr.prototype,"tooltipPosition",void 0),ar([r.property({type:Boolean})],lr.prototype,"hideTooltip",void 0),ar([r.property({type:Boolean})],lr.prototype,"forceTooltip",void 0),ar([r.query(".ft-button")],lr.prototype,"button",void 0),ar([r.query(".ft-button--label slot")],lr.prototype,"slottedContent",void 0);var cr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class pr extends lr{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}}pr.styles=[o.safariEllipsisFix,ir],cr([r.property({type:Boolean})],pr.prototype,"primary",void 0),cr([r.property({type:Boolean})],pr.prototype,"outlined",void 0),cr([r.property({type:Boolean})],pr.prototype,"dense",void 0),cr([r.property({type:Boolean})],pr.prototype,"round",void 0);const sr=[e.css`
587
587
  :host {
588
588
  display: inline-block;
589
589
  max-width: 100%;
@@ -662,13 +662,13 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
662
662
  /** Primary styles **/
663
663
 
664
664
  .ft-button--primary {
665
- ${o.setVariable(Me.color,nt.primaryIconColor)};
665
+ ${o.setVariable(Ye.color,nt.primaryIconColor)};
666
666
 
667
- ${o.setVariable(ke.color,nt.primaryStateLayerColor)};
668
- ${o.setVariable(ke.opacityContentOnSurfaceHover,nt.primaryStateLayerOpacityHover)};
669
- ${o.setVariable(ke.opacityContentOnSurfaceFocused,nt.primaryStateLayerOpacityFocus)};
670
- ${o.setVariable(ke.opacityContentOnSurfaceSelected,nt.primaryStateLayerOpacityActive)};
671
- ${o.setVariable(ke.opacityContentOnSurfacePressed,nt.primaryStateLayerOpacityActive)};
667
+ ${o.setVariable(Ee.color,nt.primaryStateLayerColor)};
668
+ ${o.setVariable(Ee.opacityContentOnSurfaceHover,nt.primaryStateLayerOpacityHover)};
669
+ ${o.setVariable(Ee.opacityContentOnSurfaceFocused,nt.primaryStateLayerOpacityFocus)};
670
+ ${o.setVariable(Ee.opacityContentOnSurfaceSelected,nt.primaryStateLayerOpacityActive)};
671
+ ${o.setVariable(Ee.opacityContentOnSurfacePressed,nt.primaryStateLayerOpacityActive)};
672
672
 
673
673
  background-color: ${nt.primaryBackgroundColor};
674
674
  color: ${nt.primaryColor};
@@ -686,13 +686,13 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
686
686
  /** Secondary styles **/
687
687
 
688
688
  .ft-button--secondary {
689
- ${o.setVariable(Me.color,nt.secondaryIconColor)};
689
+ ${o.setVariable(Ye.color,nt.secondaryIconColor)};
690
690
 
691
- ${o.setVariable(ke.color,nt.secondaryStateLayerColor)};
692
- ${o.setVariable(ke.opacityContentOnSurfaceHover,nt.secondaryStateLayerOpacityHover)};
693
- ${o.setVariable(ke.opacityContentOnSurfaceFocused,nt.secondaryStateLayerOpacityFocus)};
694
- ${o.setVariable(ke.opacityContentOnSurfaceSelected,nt.secondaryStateLayerOpacityActive)};
695
- ${o.setVariable(ke.opacityContentOnSurfacePressed,nt.secondaryStateLayerOpacityActive)};
691
+ ${o.setVariable(Ee.color,nt.secondaryStateLayerColor)};
692
+ ${o.setVariable(Ee.opacityContentOnSurfaceHover,nt.secondaryStateLayerOpacityHover)};
693
+ ${o.setVariable(Ee.opacityContentOnSurfaceFocused,nt.secondaryStateLayerOpacityFocus)};
694
+ ${o.setVariable(Ee.opacityContentOnSurfaceSelected,nt.secondaryStateLayerOpacityActive)};
695
+ ${o.setVariable(Ee.opacityContentOnSurfacePressed,nt.secondaryStateLayerOpacityActive)};
696
696
 
697
697
  background-color: ${nt.secondaryBackgroundColor};
698
698
  color: ${nt.secondaryColor};
@@ -711,13 +711,13 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
711
711
  /** Tertiary styles **/
712
712
 
713
713
  .ft-button--tertiary {
714
- ${o.setVariable(Me.color,nt.tertiaryIconColor)};
714
+ ${o.setVariable(Ye.color,nt.tertiaryIconColor)};
715
715
 
716
- ${o.setVariable(ke.color,nt.tertiaryStateLayerColor)};
717
- ${o.setVariable(ke.opacityContentOnSurfaceHover,nt.tertiaryStateLayerOpacityHover)};
718
- ${o.setVariable(ke.opacityContentOnSurfaceFocused,nt.tertiaryStateLayerOpacityFocus)};
719
- ${o.setVariable(ke.opacityContentOnSurfaceSelected,nt.tertiaryStateLayerOpacityActive)};
720
- ${o.setVariable(ke.opacityContentOnSurfacePressed,nt.tertiaryStateLayerOpacityActive)};
716
+ ${o.setVariable(Ee.color,nt.tertiaryStateLayerColor)};
717
+ ${o.setVariable(Ee.opacityContentOnSurfaceHover,nt.tertiaryStateLayerOpacityHover)};
718
+ ${o.setVariable(Ee.opacityContentOnSurfaceFocused,nt.tertiaryStateLayerOpacityFocus)};
719
+ ${o.setVariable(Ee.opacityContentOnSurfaceSelected,nt.tertiaryStateLayerOpacityActive)};
720
+ ${o.setVariable(Ee.opacityContentOnSurfacePressed,nt.tertiaryStateLayerOpacityActive)};
721
721
 
722
722
  background-color: ${nt.tertiaryBackgroundColor};
723
723
  color: ${nt.tertiaryColor};
@@ -735,13 +735,13 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
735
735
  /** Neutral styles **/
736
736
 
737
737
  .ft-button--neutral {
738
- ${o.setVariable(Me.color,nt.neutralIconColor)};
738
+ ${o.setVariable(Ye.color,nt.neutralIconColor)};
739
739
 
740
- ${o.setVariable(ke.backgroundColor,nt.neutralStateLayerColor)};
741
- ${o.setVariable(ke.opacityContentOnSurfaceHover,nt.neutralStateLayerOpacityHover)};
742
- ${o.setVariable(ke.opacityContentOnSurfaceFocused,nt.neutralStateLayerOpacityFocus)};
743
- ${o.setVariable(ke.opacityContentOnSurfaceSelected,nt.neutralStateLayerOpacityActive)};
744
- ${o.setVariable(ke.opacityContentOnSurfacePressed,nt.neutralStateLayerOpacityActive)};
740
+ ${o.setVariable(Ee.backgroundColor,nt.neutralStateLayerColor)};
741
+ ${o.setVariable(Ee.opacityContentOnSurfaceHover,nt.neutralStateLayerOpacityHover)};
742
+ ${o.setVariable(Ee.opacityContentOnSurfaceFocused,nt.neutralStateLayerOpacityFocus)};
743
+ ${o.setVariable(Ee.opacityContentOnSurfaceSelected,nt.neutralStateLayerOpacityActive)};
744
+ ${o.setVariable(Ee.opacityContentOnSurfacePressed,nt.neutralStateLayerOpacityActive)};
745
745
 
746
746
  background-color: ${nt.neutralBackgroundColor};
747
747
  color: ${nt.neutralColor};
@@ -759,8 +759,8 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
759
759
  /** Large styles **/
760
760
 
761
761
  .ft-button--large {
762
- ${o.setVariable(He.size,nt.largeIconSize)};
763
- ${o.setVariable(Me.size,nt.largeIconSize)};
762
+ ${o.setVariable(Pe.size,nt.largeIconSize)};
763
+ ${o.setVariable(Ye.size,nt.largeIconSize)};
764
764
 
765
765
  height: ${nt.largeHeight};
766
766
  padding: 0 ${nt.largeHorizontalPadding};
@@ -782,8 +782,8 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
782
782
  /** Small styles **/
783
783
 
784
784
  .ft-button--small {
785
- ${o.setVariable(He.size,nt.smallIconSize)};
786
- ${o.setVariable(Me.size,nt.smallIconSize)};
785
+ ${o.setVariable(Pe.size,nt.smallIconSize)};
786
+ ${o.setVariable(Ye.size,nt.smallIconSize)};
787
787
 
788
788
  height: ${nt.smallHeight};
789
789
  padding: 0 ${nt.smallHorizontalPadding};
@@ -801,7 +801,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
801
801
  width: ${nt.smallIconOnlyWidth};
802
802
  padding: unset;
803
803
  }
804
- `,o.noTextSelect];var pr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class sr extends nr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Q.caption1medium:Q.body2medium}}sr.styles=[o.safariEllipsisFix,cr],pr([r.property({type:Boolean})],sr.prototype,"primary",void 0),pr([r.property({type:Boolean})],sr.prototype,"secondary",void 0),pr([r.property({type:Boolean})],sr.prototype,"tertiary",void 0),pr([r.property({type:Boolean})],sr.prototype,"neutral",void 0),pr([r.property({type:Boolean})],sr.prototype,"small",void 0),o.customElement("ft-button")(lr),o.customElement("ftds-button")(sr);const fr=o.FtCssVariableFactory.extend("--ft-chip-color","",o.designSystemVariables.colorOnSurface),dr={backgroundColor:o.FtCssVariableFactory.extend("--ft-chip-background-color","",o.designSystemVariables.colorSurface),color:fr,fontSize:o.FtCssVariableFactory.extend("--ft-chip-font-size","",Dt.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:o.FtCssVariableFactory.extend("--ft-chip-ripple-color","",fr),horizontalPadding:o.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:o.FtCssVariableFactory.external(o.designSystemVariables.colorOutline,"Design system"),opacityDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},hr=o.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",o.FtCssVariableFactory.extend("--ft-chip-color","",o.designSystemVariables.colorOnPrimary)),gr={backgroundColor:o.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",o.FtCssVariableFactory.extend("--ft-chip-background-color","",o.designSystemVariables.colorPrimary)),color:hr,rippleColor:o.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",hr)},yr=o.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),ur=o.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),br=[o.noTextSelect,e.css`
804
+ `,o.noTextSelect];var fr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class dr extends lr{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Q.caption1medium:Q.body2medium}}dr.styles=[o.safariEllipsisFix,sr],fr([r.property({type:Boolean})],dr.prototype,"primary",void 0),fr([r.property({type:Boolean})],dr.prototype,"secondary",void 0),fr([r.property({type:Boolean})],dr.prototype,"tertiary",void 0),fr([r.property({type:Boolean})],dr.prototype,"neutral",void 0),fr([r.property({type:Boolean})],dr.prototype,"small",void 0),o.customElement("ft-button")(pr),o.customElement("ftds-button")(dr);const hr=o.FtCssVariableFactory.extend("--ft-chip-color","",o.designSystemVariables.colorOnSurface),gr={backgroundColor:o.FtCssVariableFactory.extend("--ft-chip-background-color","",o.designSystemVariables.colorSurface),color:hr,fontSize:o.FtCssVariableFactory.extend("--ft-chip-font-size","",Dt.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:o.FtCssVariableFactory.extend("--ft-chip-ripple-color","",hr),horizontalPadding:o.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:o.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),colorOutline:o.FtCssVariableFactory.external(o.designSystemVariables.colorOutline,"Design system"),opacityDisabled:o.FtCssVariableFactory.external(o.designSystemVariables.colorOpacityDisabled,"Design system")},yr=o.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",o.FtCssVariableFactory.extend("--ft-chip-color","",o.designSystemVariables.colorOnPrimary)),ur={backgroundColor:o.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",o.FtCssVariableFactory.extend("--ft-chip-background-color","",o.designSystemVariables.colorPrimary)),color:yr,rippleColor:o.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",yr)},br=o.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),mr=o.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),xr=[o.noTextSelect,e.css`
805
805
  :host {
806
806
  display: inline-block;
807
807
  max-width: 100%;
@@ -817,20 +817,20 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
817
817
  box-sizing: border-box;
818
818
  pointer-events: auto;
819
819
 
820
- --ft-chip-internal-font-size: ${dr.fontSize};
820
+ --ft-chip-internal-font-size: ${gr.fontSize};
821
821
  --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
822
- ${o.setVariable(He.size,dr.iconSize)};
823
- --ft-chip-internal-vertical-padding: ${dr.verticalPadding};
824
- --ft-chip-internal-horizontal-padding: ${dr.horizontalPadding};
822
+ ${o.setVariable(Pe.size,gr.iconSize)};
823
+ --ft-chip-internal-vertical-padding: ${gr.verticalPadding};
824
+ --ft-chip-internal-horizontal-padding: ${gr.horizontalPadding};
825
825
  --ft-chip-internal-icon-padding: 3px;
826
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${dr.iconSize});
826
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${gr.iconSize});
827
827
 
828
- border: 1px solid ${dr.colorOutline};
829
- color: ${dr.color};
830
- ${o.setVariable(ke.color,dr.rippleColor)};
828
+ border: 1px solid ${gr.colorOutline};
829
+ color: ${gr.color};
830
+ ${o.setVariable(Ee.color,gr.rippleColor)};
831
831
  border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
832
832
  padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
833
- background-color: ${dr.backgroundColor};
833
+ background-color: ${gr.backgroundColor};
834
834
  line-height: var(--ft-chip-internal-content-height);
835
835
  }
836
836
 
@@ -840,8 +840,8 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
840
840
 
841
841
  .ft-chip--dense {
842
842
  --ft-chip-internal-icon-padding: 3px;
843
- --ft-chip-internal-vertical-padding: ${ur};
844
- --ft-chip-internal-horizontal-padding: ${yr};
843
+ --ft-chip-internal-vertical-padding: ${mr};
844
+ --ft-chip-internal-horizontal-padding: ${br};
845
845
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
846
846
  }
847
847
 
@@ -853,15 +853,15 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
853
853
  cursor: default;
854
854
  pointer-events: none;
855
855
  filter: grayscale(1);
856
- opacity: ${dr.opacityDisabled};
856
+ opacity: ${gr.opacityDisabled};
857
857
  }
858
858
 
859
859
  .ft-chip--highlighted {
860
860
  border: none;
861
861
  padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
862
- background-color: ${gr.backgroundColor};
863
- ${o.setVariable(ke.color,gr.rippleColor)};
864
- color: ${gr.color};
862
+ background-color: ${ur.backgroundColor};
863
+ ${o.setVariable(Ee.color,ur.rippleColor)};
864
+ color: ${ur.color};
865
865
  }
866
866
 
867
867
  .ft-chip--clickable {
@@ -891,9 +891,9 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
891
891
  }
892
892
 
893
893
  .ft-chip--icon-button {
894
- ${o.setVariable(Ve.iconSize,dr.iconSize)};
895
- ${o.setVariable(Ve.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
896
- ${o.setVariable(Ve.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
894
+ ${o.setVariable(qe.iconSize,gr.iconSize)};
895
+ ${o.setVariable(qe.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
896
+ ${o.setVariable(qe.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
897
897
  margin: calc((-1) * var(--ft-chip-internal-icon-padding));
898
898
  }
899
899
 
@@ -938,7 +938,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
938
938
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
939
939
  order: -1;
940
940
  }
941
- `];var mr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class xr extends CustomEvent{constructor(){super("icon-click")}}class Or extends o.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.iconLabel="",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":o.isSafari};return e.html`
941
+ `];var Or=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class vr extends CustomEvent{constructor(){super("icon-click")}}class Nr extends o.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.iconLabel="",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":o.isSafari};return e.html`
942
942
  <div class="${i.classMap(t)}"
943
943
  aria-label="${this.getLabel()}"
944
944
  tabindex="${this.interactionsOnChip?0:-1}"
@@ -961,7 +961,7 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
961
961
  <div class="ft-chip--icon-container ft-no-text-select">
962
962
  <ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
963
963
  </div>
964
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new xr))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new xr))}getLabel(){return this.label||this.textContent}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}Or.elementDefinitions={"ft-ripple":Ae,"ft-typography":xo,"ft-icon":Te,"ft-button":lr},Or.styles=br,mr([r.property({type:Boolean})],Or.prototype,"highlighted",void 0),mr([r.property({type:Boolean})],Or.prototype,"removable",void 0),mr([r.property({type:Boolean})],Or.prototype,"disabled",void 0),mr([r.property({type:Boolean})],Or.prototype,"clickable",void 0),mr([r.property({type:Boolean})],Or.prototype,"iconClickable",void 0),mr([r.property({type:Boolean})],Or.prototype,"dense",void 0),mr([r.property({type:Boolean})],Or.prototype,"multiLine",void 0),mr([r.property()],Or.prototype,"label",void 0),mr([r.property()],Or.prototype,"iconLabel",void 0),mr([r.property()],Or.prototype,"icon",void 0),mr([r.property()],Or.prototype,"iconVariant",void 0),mr([r.property({type:Boolean})],Or.prototype,"trailingIcon",void 0),mr([r.query("ft-typography slot")],Or.prototype,"slottedContent",void 0),o.customElement("ft-chip")(Or);var vr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Nr extends f{constructor(){super(...arguments),this.editorMode=!1}render(){return e.html`
964
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new vr))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new vr))}getLabel(){return this.label||this.textContent}get textContent(){var t,o;return null!==(o=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==o?o:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}Nr.elementDefinitions={"ft-ripple":Ge,"ft-typography":xo,"ft-icon":_e,"ft-button":pr},Nr.styles=xr,Or([r.property({type:Boolean})],Nr.prototype,"highlighted",void 0),Or([r.property({type:Boolean})],Nr.prototype,"removable",void 0),Or([r.property({type:Boolean})],Nr.prototype,"disabled",void 0),Or([r.property({type:Boolean})],Nr.prototype,"clickable",void 0),Or([r.property({type:Boolean})],Nr.prototype,"iconClickable",void 0),Or([r.property({type:Boolean})],Nr.prototype,"dense",void 0),Or([r.property({type:Boolean})],Nr.prototype,"multiLine",void 0),Or([r.property()],Nr.prototype,"label",void 0),Or([r.property()],Nr.prototype,"iconLabel",void 0),Or([r.property()],Nr.prototype,"icon",void 0),Or([r.property()],Nr.prototype,"iconVariant",void 0),Or([r.property({type:Boolean})],Nr.prototype,"trailingIcon",void 0),Or([r.query("ft-typography slot")],Nr.prototype,"slottedContent",void 0),o.customElement("ft-chip")(Nr);var Sr=function(t,o,e,r){for(var i,n=arguments.length,a=n<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r,l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(o,e,a):i(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class $r extends f{constructor(){super(...arguments),this.editorMode=!1}render(){return e.html`
965
965
  <ft-tooltip text="${this.tooltipText}">
966
966
  <ft-chip>
967
967
  ${this.renderContent()}
@@ -974,4 +974,4 @@ const Y=Symbol.for(""),V=t=>{if(t?.r===Y)return t?._$litStatic$},X=t=>({_$litSta
974
974
  display: none !important;
975
975
  }
976
976
  </style>
977
- `}get valueText(){var t,o;return null!==(o=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==o?o:""}get tooltipText(){var t,o;return this.metadata?`${null!==(o=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==o?o:this.metadata.key}: ${this.valueText}`:""}}Nr.elementDefinitions={"ft-tooltip":Ie,"ft-chip":Or},Nr.styles=a,vr([r.property(),o.reduxReactive()],Nr.prototype,"key",void 0),vr([r.property({attribute:!1})],Nr.prototype,"editorMode",void 0),vr([o.redux({selector:(t,o)=>{var e,r;return null===(r=null===(e=t.map)||void 0===e?void 0:e.metadata)||void 0===r?void 0:r.find((t=>t.key===o.key))}})],Nr.prototype,"metadata",void 0),o.customElement("ft-reader-metadata")(Nr),t.FtReaderMetadata=Nr,t.FtReaderMetadataCssVariables={},t.styles=a}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
977
+ `}get valueText(){var t,o;return null!==(o=null===(t=this.metadata)||void 0===t?void 0:t.values.join(", "))&&void 0!==o?o:""}get tooltipText(){var t,o;return this.metadata?`${null!==(o=null===(t=this.metadata)||void 0===t?void 0:t.label)&&void 0!==o?o:this.metadata.key}: ${this.valueText}`:""}}$r.elementDefinitions={"ft-tooltip":ke,"ft-chip":Nr},$r.styles=a,Sr([r.property(),o.reduxReactive()],$r.prototype,"key",void 0),Sr([r.property({attribute:!1})],$r.prototype,"editorMode",void 0),Sr([o.redux({selector:(t,o)=>{var e,r;return null===(r=null===(e=t.map)||void 0===e?void 0:e.metadata)||void 0===r?void 0:r.find((t=>t.key===o.key))}})],$r.prototype,"metadata",void 0),o.customElement("ft-reader-metadata")($r),t.FtReaderMetadata=$r,t.FtReaderMetadataCssVariables={},t.styles=a}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);