@fluid-topics/ft-search-result-metadata 1.1.9 → 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.
|
@@ -140,7 +140,7 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
.ft-tooltip {
|
|
143
|
-
position:
|
|
143
|
+
position: fixed;
|
|
144
144
|
box-sizing: border-box;
|
|
145
145
|
overflow: hidden;
|
|
146
146
|
width: max-content;
|
|
@@ -158,7 +158,7 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
158
158
|
position: relative;
|
|
159
159
|
word-break: break-word;
|
|
160
160
|
}
|
|
161
|
-
`,ge=["start","end"],be=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+ge[0],o+"-"+ge[1])),[]),me=Math.min,xe=Math.max,ve=Math.round,Oe=t=>({x:t,y:t}),Ne={left:"right",right:"left",bottom:"top",top:"bottom"},Se={start:"end",end:"start"};function we(t,o,e){return xe(t,me(o,e))}function Ce(t,o){return"function"==typeof t?t(o):t}function $e(t){return t.split("-")[0]}function Ie(t){return t.split("-")[1]}function Ee(t){return"x"===t?"y":"x"}function Re(t){return"y"===t?"height":"width"}function Ue(t){return["top","bottom"].includes($e(t))?"y":"x"}function ke(t){return Ee(Ue(t))}function Le(t){return t.replace(/left|right|bottom|top/g,(t=>Ne[t]))}function We(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ze(t,o,e){let{reference:i,floating:r}=t;const n=Ue(o),a=ke(o),l=Re(a),s=$e(o),c="y"===n,f=i.x+i.width/2-r.width/2,p=i.y+i.height/2-r.height/2,h=i[l]/2-r[l]/2;let d;switch(s){case"top":d={x:f,y:i.y-r.height};break;case"bottom":d={x:f,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:p};break;case"left":d={x:i.x-r.width,y:p};break;default:d={x:i.x,y:i.y}}switch(Ie(o)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1)}return d}async function Ke(t,o){var e;void 0===o&&(o={});const{x:i,y:r,platform:n,rects:a,elements:l,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:d=0}=Ce(o,t),u=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}}(d),y=l[h?"floating"===p?"reference":"floating":p],g=We(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:c,rootBoundary:f,strategy:s})),b="floating"===p?{...a.floating,x:i,y:r}: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},v=We(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:s}):b);return{top:(g.top-v.top+u.top)/x.y,bottom:(v.bottom-g.bottom+u.bottom)/x.y,left:(g.left-v.left+u.left)/x.x,right:(v.right-g.right+u.right)/x.x}}function Ae(t,o,e){return(t?[...e.filter((o=>Ie(o)===t)),...e.filter((o=>Ie(o)!==t))]:e.filter((t=>$e(t)===t))).filter((e=>!t||(Ie(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>Se[t]))}(e)!==e)))}const Ze=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,i,r;const{rects:n,middlewareData:a,placement:l,platform:s,elements:c}=o,{crossAxis:f=!1,alignment:p,allowedPlacements:h=be,autoAlignment:d=!0,...u}=Ce(t,o),y=void 0!==p||h===be?Ae(p||null,d,h):h,g=await Ke(o,u),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 i=Ie(t),r=ke(t),n=Re(r);let a="x"===r?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=Le(a)),[a,Le(a)]}(m,n,await(null==s.isRTL?void 0:s.isRTL(c.floating)));if(l!==m)return{reset:{placement:y[0]}};const v=[g[$e(m)],g[x[0]],g[x[1]]],O=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:v}],N=y[b+1];if(N)return{data:{index:b+1,overflows:O},reset:{placement:N}};const S=O.map((t=>{const o=Ie(t.placement);return[t.placement,o&&f?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),w=S.filter((t=>t[2].slice(0,Ie(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=w[0])?void 0:r[0])||S[0][0];return C!==l?{data:{index:b+1,overflows:O},reset:{placement:C}}:{}}}};function Be(t){return Te(t)?(t.nodeName||"").toLowerCase():"#document"}function De(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Fe(t){var o;return null==(o=(Te(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Te(t){return t instanceof Node||t instanceof De(t).Node}function Pe(t){return t instanceof Element||t instanceof De(t).Element}function He(t){return t instanceof HTMLElement||t instanceof De(t).HTMLElement}function je(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof De(t).ShadowRoot)}function Me(t){const{overflow:o,overflowX:e,overflowY:i,display:r}=Xe(t);return/auto|scroll|overlay|hidden|clip/.test(o+i+e)&&!["inline","contents"].includes(r)}function Ge(t){return["table","td","th"].includes(Be(t))}function _e(t){const o=Ye(),e=Xe(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 Ye(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ve(t){return["html","body","#document"].includes(Be(t))}function Xe(t){return De(t).getComputedStyle(t)}function qe(t){return Pe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Je(t){if("html"===Be(t))return t;const o=t.assignedSlot||t.parentNode||je(t)&&t.host||Fe(t);return je(o)?o.host:o}function Qe(t){const o=Je(t);return Ve(o)?t.ownerDocument?t.ownerDocument.body:t.body:He(o)&&Me(o)?o:Qe(o)}function ti(t,o,e){var i;void 0===o&&(o=[]),void 0===e&&(e=!0);const r=Qe(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=De(r);return n?o.concat(a,a.visualViewport||[],Me(r)?r:[],a.frameElement&&e?ti(a.frameElement):[]):o.concat(r,ti(r,[],e))}function oi(t){const o=Xe(t);let e=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const r=He(t),n=r?t.offsetWidth:e,a=r?t.offsetHeight:i,l=ve(e)!==n||ve(i)!==a;return l&&(e=n,i=a),{width:e,height:i,$:l}}function ei(t){return Pe(t)?t:t.contextElement}function ii(t){const o=ei(t);if(!He(o))return Oe(1);const e=o.getBoundingClientRect(),{width:i,height:r,$:n}=oi(o);let a=(n?ve(e.width):e.width)/i,l=(n?ve(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const ri=Oe(0);function ni(t){const o=De(t);return Ye()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:ri}function ai(t,o,e,i){void 0===o&&(o=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),n=ei(t);let a=Oe(1);o&&(i?Pe(i)&&(a=ii(i)):a=ii(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==De(t))&&o}(n,e,i)?ni(n):Oe(0);let s=(r.left+l.x)/a.x,c=(r.top+l.y)/a.y,f=r.width/a.x,p=r.height/a.y;if(n){const t=De(n),o=i&&Pe(i)?De(i):i;let e=t.frameElement;for(;e&&i&&o!==t;){const t=ii(e),o=e.getBoundingClientRect(),i=Xe(e),r=o.left+(e.clientLeft+parseFloat(i.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(i.paddingTop))*t.y;s*=t.x,c*=t.y,f*=t.x,p*=t.y,s+=r,c+=n,e=De(e).frameElement}}return We({width:f,height:p,x:s,y:c})}function li(t){return ai(Fe(t)).left+qe(t).scrollLeft}function si(t,o,e){let i;if("viewport"===o)i=function(t,o){const e=De(t),i=Fe(t),r=e.visualViewport;let n=i.clientWidth,a=i.clientHeight,l=0,s=0;if(r){n=r.width,a=r.height;const t=Ye();(!t||t&&"fixed"===o)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:n,height:a,x:l,y:s}}(t,e);else if("document"===o)i=function(t){const o=Fe(t),e=qe(t),i=t.ownerDocument.body,r=xe(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),n=xe(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+li(t);const l=-e.scrollTop;return"rtl"===Xe(i).direction&&(a+=xe(o.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:l}}(Fe(t));else if(Pe(o))i=function(t,o){const e=ai(t,!0,"fixed"===o),i=e.top+t.clientTop,r=e.left+t.clientLeft,n=He(t)?ii(t):Oe(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(o,e);else{const e=ni(t);i={...o,x:o.x-e.x,y:o.y-e.y}}return We(i)}function ci(t,o){const e=Je(t);return!(e===o||!Pe(e)||Ve(e))&&("fixed"===Xe(e).position||ci(e,o))}function fi(t,o,e){const i=He(o),r=Fe(o),n="fixed"===e,a=ai(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const s=Oe(0);if(i||!i&&!n)if(("body"!==Be(o)||Me(r))&&(l=qe(o)),i){const t=ai(o,!0,n,o);s.x=t.x+o.clientLeft,s.y=t.y+o.clientTop}else r&&(s.x=li(r));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function pi(t,o){return He(t)&&"fixed"!==Xe(t).position?o?o(t):t.offsetParent:null}function hi(t,o){const e=De(t);if(!He(t))return e;let i=pi(t,o);for(;i&&Ge(i)&&"static"===Xe(i).position;)i=pi(i,o);return i&&("html"===Be(i)||"body"===Be(i)&&"static"===Xe(i).position&&!_e(i))?e:i||function(t){let o=Je(t);for(;He(o)&&!Ve(o);){if(_e(o))return o;o=Je(o)}return null}(t)||e}const di={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:i}=t;const r=He(e),n=Fe(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=Oe(1);const s=Oe(0);if((r||!r&&"fixed"!==i)&&(("body"!==Be(e)||Me(n))&&(a=qe(e)),He(e))){const t=ai(e);l=ii(e),s.x=t.x+e.clientLeft,s.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+s.x,y:o.y*l.y-a.scrollTop*l.y+s.y}},getDocumentElement:Fe,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:i,strategy:r}=t;const n="clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let i=ti(t,[],!1).filter((t=>Pe(t)&&"body"!==Be(t))),r=null;const n="fixed"===Xe(t).position;let a=n?Je(t):t;for(;Pe(a)&&!Ve(a);){const o=Xe(a),e=_e(a);e||"fixed"!==o.position||(r=null),(n?!e&&!r:!e&&"static"===o.position&&r&&["absolute","fixed"].includes(r.position)||Me(a)&&!e&&ci(t,a))?i=i.filter((t=>t!==a)):r=o,a=Je(a)}return o.set(t,i),i}(o,this._c):[].concat(e),a=[...n,i],l=a[0],s=a.reduce(((t,e)=>{const i=si(o,e,r);return t.top=xe(i.top,t.top),t.right=me(i.right,t.right),t.bottom=me(i.bottom,t.bottom),t.left=xe(i.left,t.left),t}),si(o,l,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:hi,getElementRects:async function(t){let{reference:o,floating:e,strategy:i}=t;const r=this.getOffsetParent||hi,n=this.getDimensions;return{reference:fi(o,await r(e),i),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return oi(t)},getScale:ii,isElement:Pe,isRTL:function(t){return"rtl"===Xe(t).direction}},ui=(t,o,e)=>{const i=new Map,r={platform:di,...e},n={...r.platform,_c:i};return(async(t,o,e)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:r}),{x:f,y:p}=ze(c,i,s),h=i,d={},u=0;for(let e=0;e<l.length;e++){const{name:n,fn:y}=l[e],{x:g,y:b,data:m,reset:x}=await y({x:f,y:p,initialPlacement:i,placement:h,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:o}});f=null!=g?g:f,p=null!=b?b:p,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:r}):x.rects),({x:f,y:p}=ze(c,h,s))),e=-1)}return{x:f,y:p,placement:h,strategy:r,middlewareData:d}})(t,o,{...r,platform:n})};var yi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class gi 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`
|
|
161
|
+
`,ge=["start","end"],be=["top","right","bottom","left"].reduce(((t,o)=>t.concat(o,o+"-"+ge[0],o+"-"+ge[1])),[]),me=Math.min,xe=Math.max,ve=Math.round,Oe=t=>({x:t,y:t}),Ne={left:"right",right:"left",bottom:"top",top:"bottom"},Se={start:"end",end:"start"};function we(t,o,e){return xe(t,me(o,e))}function Ce(t,o){return"function"==typeof t?t(o):t}function $e(t){return t.split("-")[0]}function Ie(t){return t.split("-")[1]}function Ee(t){return"x"===t?"y":"x"}function Re(t){return"y"===t?"height":"width"}function Ue(t){return["top","bottom"].includes($e(t))?"y":"x"}function ke(t){return Ee(Ue(t))}function Le(t){return t.replace(/left|right|bottom|top/g,(t=>Ne[t]))}function We(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function ze(t,o,e){let{reference:i,floating:r}=t;const n=Ue(o),a=ke(o),l=Re(a),s=$e(o),c="y"===n,f=i.x+i.width/2-r.width/2,p=i.y+i.height/2-r.height/2,h=i[l]/2-r[l]/2;let d;switch(s){case"top":d={x:f,y:i.y-r.height};break;case"bottom":d={x:f,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:p};break;case"left":d={x:i.x-r.width,y:p};break;default:d={x:i.x,y:i.y}}switch(Ie(o)){case"start":d[a]-=h*(e&&c?-1:1);break;case"end":d[a]+=h*(e&&c?-1:1)}return d}async function Ke(t,o){var e;void 0===o&&(o={});const{x:i,y:r,platform:n,rects:a,elements:l,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:h=!1,padding:d=0}=Ce(o,t),u=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}}(d),y=l[h?"floating"===p?"reference":"floating":p],g=We(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:c,rootBoundary:f,strategy:s})),b="floating"===p?{...a.floating,x:i,y:r}: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},v=We(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:s}):b);return{top:(g.top-v.top+u.top)/x.y,bottom:(v.bottom-g.bottom+u.bottom)/x.y,left:(g.left-v.left+u.left)/x.x,right:(v.right-g.right+u.right)/x.x}}function Ae(t,o,e){return(t?[...e.filter((o=>Ie(o)===t)),...e.filter((o=>Ie(o)!==t))]:e.filter((t=>$e(t)===t))).filter((e=>!t||(Ie(e)===t||!!o&&function(t){return t.replace(/start|end/g,(t=>Se[t]))}(e)!==e)))}const Ze=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(o){var e,i,r;const{rects:n,middlewareData:a,placement:l,platform:s,elements:c}=o,{crossAxis:f=!1,alignment:p,allowedPlacements:h=be,autoAlignment:d=!0,...u}=Ce(t,o),y=void 0!==p||h===be?Ae(p||null,d,h):h,g=await Ke(o,u),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 i=Ie(t),r=ke(t),n=Re(r);let a="x"===r?i===(e?"end":"start")?"right":"left":"start"===i?"bottom":"top";return o.reference[n]>o.floating[n]&&(a=Le(a)),[a,Le(a)]}(m,n,await(null==s.isRTL?void 0:s.isRTL(c.floating)));if(l!==m)return{reset:{placement:y[0]}};const v=[g[$e(m)],g[x[0]],g[x[1]]],O=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:v}],N=y[b+1];if(N)return{data:{index:b+1,overflows:O},reset:{placement:N}};const S=O.map((t=>{const o=Ie(t.placement);return[t.placement,o&&f?t.overflows.slice(0,2).reduce(((t,o)=>t+o),0):t.overflows[0],t.overflows]})).sort(((t,o)=>t[1]-o[1])),w=S.filter((t=>t[2].slice(0,Ie(t[0])?2:3).every((t=>t<=0)))),C=(null==(r=w[0])?void 0:r[0])||S[0][0];return C!==l?{data:{index:b+1,overflows:O},reset:{placement:C}}:{}}}};function Be(t){return Te(t)?(t.nodeName||"").toLowerCase():"#document"}function De(t){var o;return(null==t||null==(o=t.ownerDocument)?void 0:o.defaultView)||window}function Fe(t){var o;return null==(o=(Te(t)?t.ownerDocument:t.document)||window.document)?void 0:o.documentElement}function Te(t){return t instanceof Node||t instanceof De(t).Node}function Pe(t){return t instanceof Element||t instanceof De(t).Element}function He(t){return t instanceof HTMLElement||t instanceof De(t).HTMLElement}function je(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof De(t).ShadowRoot)}function Me(t){const{overflow:o,overflowX:e,overflowY:i,display:r}=Xe(t);return/auto|scroll|overlay|hidden|clip/.test(o+i+e)&&!["inline","contents"].includes(r)}function Ge(t){return["table","td","th"].includes(Be(t))}function _e(t){const o=Ye(),e=Xe(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 Ye(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Ve(t){return["html","body","#document"].includes(Be(t))}function Xe(t){return De(t).getComputedStyle(t)}function qe(t){return Pe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Je(t){if("html"===Be(t))return t;const o=t.assignedSlot||t.parentNode||je(t)&&t.host||Fe(t);return je(o)?o.host:o}function Qe(t){const o=Je(t);return Ve(o)?t.ownerDocument?t.ownerDocument.body:t.body:He(o)&&Me(o)?o:Qe(o)}function ti(t,o,e){var i;void 0===o&&(o=[]),void 0===e&&(e=!0);const r=Qe(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=De(r);return n?o.concat(a,a.visualViewport||[],Me(r)?r:[],a.frameElement&&e?ti(a.frameElement):[]):o.concat(r,ti(r,[],e))}function oi(t){const o=Xe(t);let e=parseFloat(o.width)||0,i=parseFloat(o.height)||0;const r=He(t),n=r?t.offsetWidth:e,a=r?t.offsetHeight:i,l=ve(e)!==n||ve(i)!==a;return l&&(e=n,i=a),{width:e,height:i,$:l}}function ei(t){return Pe(t)?t:t.contextElement}function ii(t){const o=ei(t);if(!He(o))return Oe(1);const e=o.getBoundingClientRect(),{width:i,height:r,$:n}=oi(o);let a=(n?ve(e.width):e.width)/i,l=(n?ve(e.height):e.height)/r;return a&&Number.isFinite(a)||(a=1),l&&Number.isFinite(l)||(l=1),{x:a,y:l}}const ri=Oe(0);function ni(t){const o=De(t);return Ye()&&o.visualViewport?{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}:ri}function ai(t,o,e,i){void 0===o&&(o=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),n=ei(t);let a=Oe(1);o&&(i?Pe(i)&&(a=ii(i)):a=ii(t));const l=function(t,o,e){return void 0===o&&(o=!1),!(!e||o&&e!==De(t))&&o}(n,e,i)?ni(n):Oe(0);let s=(r.left+l.x)/a.x,c=(r.top+l.y)/a.y,f=r.width/a.x,p=r.height/a.y;if(n){const t=De(n),o=i&&Pe(i)?De(i):i;let e=t.frameElement;for(;e&&i&&o!==t;){const t=ii(e),o=e.getBoundingClientRect(),i=Xe(e),r=o.left+(e.clientLeft+parseFloat(i.paddingLeft))*t.x,n=o.top+(e.clientTop+parseFloat(i.paddingTop))*t.y;s*=t.x,c*=t.y,f*=t.x,p*=t.y,s+=r,c+=n,e=De(e).frameElement}}return We({width:f,height:p,x:s,y:c})}function li(t){return ai(Fe(t)).left+qe(t).scrollLeft}function si(t,o,e){let i;if("viewport"===o)i=function(t,o){const e=De(t),i=Fe(t),r=e.visualViewport;let n=i.clientWidth,a=i.clientHeight,l=0,s=0;if(r){n=r.width,a=r.height;const t=Ye();(!t||t&&"fixed"===o)&&(l=r.offsetLeft,s=r.offsetTop)}return{width:n,height:a,x:l,y:s}}(t,e);else if("document"===o)i=function(t){const o=Fe(t),e=qe(t),i=t.ownerDocument.body,r=xe(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),n=xe(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight);let a=-e.scrollLeft+li(t);const l=-e.scrollTop;return"rtl"===Xe(i).direction&&(a+=xe(o.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:l}}(Fe(t));else if(Pe(o))i=function(t,o){const e=ai(t,!0,"fixed"===o),i=e.top+t.clientTop,r=e.left+t.clientLeft,n=He(t)?ii(t):Oe(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(o,e);else{const e=ni(t);i={...o,x:o.x-e.x,y:o.y-e.y}}return We(i)}function ci(t,o){const e=Je(t);return!(e===o||!Pe(e)||Ve(e))&&("fixed"===Xe(e).position||ci(e,o))}function fi(t,o,e){const i=He(o),r=Fe(o),n="fixed"===e,a=ai(t,!0,n,o);let l={scrollLeft:0,scrollTop:0};const s=Oe(0);if(i||!i&&!n)if(("body"!==Be(o)||Me(r))&&(l=qe(o)),i){const t=ai(o,!0,n,o);s.x=t.x+o.clientLeft,s.y=t.y+o.clientTop}else r&&(s.x=li(r));return{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function pi(t,o){return He(t)&&"fixed"!==Xe(t).position?o?o(t):t.offsetParent:null}function hi(t,o){const e=De(t);if(!He(t))return e;let i=pi(t,o);for(;i&&Ge(i)&&"static"===Xe(i).position;)i=pi(i,o);return i&&("html"===Be(i)||"body"===Be(i)&&"static"===Xe(i).position&&!_e(i))?e:i||function(t){let o=Je(t);for(;He(o)&&!Ve(o);){if(_e(o))return o;o=Je(o)}return null}(t)||e}const di={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:o,offsetParent:e,strategy:i}=t;const r=He(e),n=Fe(e);if(e===n)return o;let a={scrollLeft:0,scrollTop:0},l=Oe(1);const s=Oe(0);if((r||!r&&"fixed"!==i)&&(("body"!==Be(e)||Me(n))&&(a=qe(e)),He(e))){const t=ai(e);l=ii(e),s.x=t.x+e.clientLeft,s.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+s.x,y:o.y*l.y-a.scrollTop*l.y+s.y}},getDocumentElement:Fe,getClippingRect:function(t){let{element:o,boundary:e,rootBoundary:i,strategy:r}=t;const n="clippingAncestors"===e?function(t,o){const e=o.get(t);if(e)return e;let i=ti(t,[],!1).filter((t=>Pe(t)&&"body"!==Be(t))),r=null;const n="fixed"===Xe(t).position;let a=n?Je(t):t;for(;Pe(a)&&!Ve(a);){const o=Xe(a),e=_e(a);e||"fixed"!==o.position||(r=null),(n?!e&&!r:!e&&"static"===o.position&&r&&["absolute","fixed"].includes(r.position)||Me(a)&&!e&&ci(t,a))?i=i.filter((t=>t!==a)):r=o,a=Je(a)}return o.set(t,i),i}(o,this._c):[].concat(e),a=[...n,i],l=a[0],s=a.reduce(((t,e)=>{const i=si(o,e,r);return t.top=xe(i.top,t.top),t.right=me(i.right,t.right),t.bottom=me(i.bottom,t.bottom),t.left=xe(i.left,t.left),t}),si(o,l,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:hi,getElementRects:async function(t){let{reference:o,floating:e,strategy:i}=t;const r=this.getOffsetParent||hi,n=this.getDimensions;return{reference:fi(o,await r(e),i),floating:{x:0,y:0,...await n(e)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return oi(t)},getScale:ii,isElement:Pe,isRTL:function(t){return"rtl"===Xe(t).direction}},ui=(t,o,e)=>{const i=new Map,r={platform:di,...e},n={...r.platform,_c:i};return(async(t,o,e)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=e,l=n.filter(Boolean),s=await(null==a.isRTL?void 0:a.isRTL(o));let c=await a.getElementRects({reference:t,floating:o,strategy:r}),{x:f,y:p}=ze(c,i,s),h=i,d={},u=0;for(let e=0;e<l.length;e++){const{name:n,fn:y}=l[e],{x:g,y:b,data:m,reset:x}=await y({x:f,y:p,initialPlacement:i,placement:h,strategy:r,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:o}});f=null!=g?g:f,p=null!=b?b:p,d={...d,[n]:{...d[n],...m}},x&&u<=50&&(u++,"object"==typeof x&&(x.placement&&(h=x.placement),x.rects&&(c=!0===x.rects?await a.getElementRects({reference:t,floating:o,strategy:r}):x.rects),({x:f,y:p}=ze(c,h,s))),e=-1)}return{x:f,y:p,placement:h,strategy:r,middlewareData:d}})(t,o,{...r,platform:n})};function yi(t){return function(t){for(let o=t;o;o=gi(o))if(o instanceof Element&&"none"===getComputedStyle(o).display)return null;for(let o=gi(t);o;o=gi(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 gi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var bi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class mi 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`
|
|
162
162
|
<div part="container"
|
|
163
163
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
164
164
|
@mouseenter=${this.onHover}
|
|
@@ -166,7 +166,7 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
166
166
|
@focusin=${this.onHover}
|
|
167
167
|
@focusout=${this.onOut}
|
|
168
168
|
@touchstart=${this.onTouch}>
|
|
169
|
-
<slot></slot>
|
|
169
|
+
<slot part="slot"></slot>
|
|
170
170
|
<div part="tooltip" role="tooltip" inert
|
|
171
171
|
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
172
172
|
?hidden=${!this.visible}>
|
|
@@ -176,7 +176,7 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
176
176
|
</div>
|
|
177
177
|
</div>
|
|
178
178
|
</div>
|
|
179
|
-
`}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="",ui(this.slottedElement,this.tooltip,{middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:i,placement:r}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...s}=Ce(t,o),c={x:e,y:i},f=await Ke(o,s),p=Ue($e(r)),h=Ee(p);let d=c[h],u=c[p];if(n){const t="y"===h?"bottom":"right";d=we(d+f["y"===h?"top":"left"],d,d-f[t])}if(a){const t="y"===p?"bottom":"right";u=we(u+f["y"===p?"top":"left"],u,u-f[t])}const y=l.fn({...o,[h]:d,[p]:u});return{...y,data:{x:y.x-e,y:y.y-i}}}}),Ze({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))}}
|
|
179
|
+
`}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="",ui(this.slottedElement,this.tooltip,{platform:{...di,getOffsetParent:t=>di.getOffsetParent(t,yi)},middleware:[(t={crossAxis:!0},void 0===t&&(t={}),{name:"shift",options:t,async fn(o){const{x:e,y:i,placement:r}=o,{mainAxis:n=!0,crossAxis:a=!1,limiter:l={fn:t=>{let{x:o,y:e}=t;return{x:o,y:e}}},...s}=Ce(t,o),c={x:e,y:i},f=await Ke(o,s),p=Ue($e(r)),h=Ee(p);let d=c[h],u=c[p];if(n){const t="y"===h?"bottom":"right";d=we(d+f["y"===h?"top":"left"],d,d-f[t])}if(a){const t="y"===p?"bottom":"right";u=we(u+f["y"===p?"top":"left"],u,u-f[t])}const y=l.fn({...o,[h]:d,[p]:u});return{...y,data:{x:y.x-e,y:y.y-i}}}}),Ze({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))}}mi.elementDefinitions={"ft-typography":se},mi.styles=ye,bi([i.property()],mi.prototype,"text",void 0),bi([i.property({type:Boolean})],mi.prototype,"manual",void 0),bi([i.property({type:Boolean})],mi.prototype,"inline",void 0),bi([i.property({type:Number})],mi.prototype,"delay",void 0),bi([i.property()],mi.prototype,"position",void 0),bi([i.queryAssignedNodes()],mi.prototype,"slotNodes",void 0),bi([i.query(".ft-tooltip--container")],mi.prototype,"container",void 0),bi([i.query(".ft-tooltip")],mi.prototype,"tooltip",void 0),bi([i.query(".ft-tooltip--content")],mi.prototype,"tooltipContent",void 0),bi([i.state()],mi.prototype,"visible",void 0),bi([i.eventOptions({passive:!0})],mi.prototype,"onTouch",null),bi([i.eventOptions({passive:!0})],mi.prototype,"onHover",null),bi([i.eventOptions({passive:!0})],mi.prototype,"onOut",null),o.customElement("ft-tooltip")(mi);const xi=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorContent),vi={color:xi,backgroundColor:o.FtCssVariableFactory.extend("--ft-ripple-background-color","",xi),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")},Oi=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorPrimary),Ni=Oi,Si=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",Oi),wi=o.FtCssVariableFactory.extend("--ft-ripple-color","",o.designSystemVariables.colorSecondary),Ci=wi,$i=o.FtCssVariableFactory.extend("--ft-ripple-background-color","",wi),Ii=e.css`
|
|
180
180
|
:host {
|
|
181
181
|
display: contents;
|
|
182
182
|
}
|
|
@@ -189,7 +189,7 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
189
189
|
|
|
190
190
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
191
191
|
overflow: hidden;
|
|
192
|
-
border-radius: ${
|
|
192
|
+
border-radius: ${vi.borderRadius};
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
.ft-ripple .ft-ripple--background,
|
|
@@ -223,27 +223,27 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
.ft-ripple .ft-ripple--background {
|
|
226
|
-
background-color: ${
|
|
226
|
+
background-color: ${vi.backgroundColor};
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
.ft-ripple .ft-ripple--effect {
|
|
230
|
-
background-color: ${
|
|
230
|
+
background-color: ${vi.color};
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
234
|
-
background-color: ${
|
|
234
|
+
background-color: ${$i};
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
238
|
-
background-color: ${
|
|
238
|
+
background-color: ${Ci};
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
242
|
-
background-color: ${
|
|
242
|
+
background-color: ${Si};
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
246
|
-
background-color: ${
|
|
246
|
+
background-color: ${Ni};
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
.ft-ripple .ft-ripple--background {
|
|
@@ -273,22 +273,22 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
276
|
-
opacity: ${
|
|
276
|
+
opacity: ${vi.opacityContentOnSurfaceHover};
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
280
|
-
opacity: ${
|
|
280
|
+
opacity: ${vi.opacityContentOnSurfaceSelected};
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
284
|
-
opacity: ${
|
|
284
|
+
opacity: ${vi.opacityContentOnSurfaceFocused};
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
288
|
-
opacity: ${
|
|
288
|
+
opacity: ${vi.opacityContentOnSurfacePressed};
|
|
289
289
|
transform: translate(-50%, -50%) scale(1);
|
|
290
290
|
}
|
|
291
|
-
`;var
|
|
291
|
+
`;var Ei,Ri,Ui=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class ki 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:i,y:r}=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!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-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`
|
|
292
292
|
<style>
|
|
293
293
|
.ft-ripple .ft-ripple--effect {
|
|
294
294
|
left: ${this.originX}px;
|
|
@@ -299,7 +299,7 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
299
299
|
<div class="ft-ripple--background"></div>
|
|
300
300
|
<div class="ft-ripple--effect"></div>
|
|
301
301
|
</div>
|
|
302
|
-
`}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"),i=o("touchend","touchcancel"),r=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",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,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",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,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 i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}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()}}Ri.elementDefinitions={},Ri.styles=Ci,Ei([i.property({type:Boolean})],Ri.prototype,"primary",void 0),Ei([i.property({type:Boolean})],Ri.prototype,"secondary",void 0),Ei([i.property({type:Boolean})],Ri.prototype,"unbounded",void 0),Ei([i.property({type:Boolean})],Ri.prototype,"activated",void 0),Ei([i.property({type:Boolean})],Ri.prototype,"selected",void 0),Ei([i.property({type:Boolean})],Ri.prototype,"disabled",void 0),Ei([i.state()],Ri.prototype,"hovered",void 0),Ei([i.state()],Ri.prototype,"focused",void 0),Ei([i.state()],Ri.prototype,"pressed",void 0),Ei([i.state()],Ri.prototype,"rippling",void 0),Ei([i.state()],Ri.prototype,"originX",void 0),Ei([i.state()],Ri.prototype,"originY",void 0),Ei([i.query(".ft-ripple")],Ri.prototype,"ripple",void 0),Ei([i.query(".ft-ripple--effect")],Ri.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(Ri),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}($i||($i={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Ii||(Ii={})),new Map([...["abw"].map((t=>[t,Ii.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,Ii.AUDIO])),...["avi"].map((t=>[t,Ii.AVI])),...["chm","xhs"].map((t=>[t,Ii.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,Ii.CODE])),...["csv"].map((t=>[t,Ii.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ii.DITA])),...["epub"].map((t=>[t,Ii.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ii.EXCEL])),...["flac"].map((t=>[t,Ii.FLAC])),...["gif"].map((t=>[t,Ii.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ii.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ii.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,Ii.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ii.JPEG])),...["json"].map((t=>[t,Ii.JSON])),...["m4a","m4p"].map((t=>[t,Ii.M4A])),...["mov","qt"].map((t=>[t,Ii.MOV])),...["mp3"].map((t=>[t,Ii.MP3])),...["mp4","m4v"].map((t=>[t,Ii.MP4])),...["ogg","oga"].map((t=>[t,Ii.OGG])),...["pdf","ps"].map((t=>[t,Ii.PDF])),...["png"].map((t=>[t,Ii.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ii.POWERPOINT])),...["rar"].map((t=>[t,Ii.RAR])),...["stp"].map((t=>[t,Ii.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ii.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,Ii.VIDEO])),...["wav"].map((t=>[t,Ii.WAV])),...["wma"].map((t=>[t,Ii.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ii.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ii.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ii.YAML])),...["zip"].map((t=>[t,Ii.ZIP]))]);const Ui={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")},ki=e.css`
|
|
302
|
+
`}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"),i=o("touchend","touchcancel"),r=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",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,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",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,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 i,r;return null!=o.x?({x:i,y:r}=o):null!=e.touches&&(i=e.touches[0].clientX,r=e.touches[0].clientY),{x:i,y:r}}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()}}ki.elementDefinitions={},ki.styles=Ii,Ui([i.property({type:Boolean})],ki.prototype,"primary",void 0),Ui([i.property({type:Boolean})],ki.prototype,"secondary",void 0),Ui([i.property({type:Boolean})],ki.prototype,"unbounded",void 0),Ui([i.property({type:Boolean})],ki.prototype,"activated",void 0),Ui([i.property({type:Boolean})],ki.prototype,"selected",void 0),Ui([i.property({type:Boolean})],ki.prototype,"disabled",void 0),Ui([i.state()],ki.prototype,"hovered",void 0),Ui([i.state()],ki.prototype,"focused",void 0),Ui([i.state()],ki.prototype,"pressed",void 0),Ui([i.state()],ki.prototype,"rippling",void 0),Ui([i.state()],ki.prototype,"originX",void 0),Ui([i.state()],ki.prototype,"originY",void 0),Ui([i.query(".ft-ripple")],ki.prototype,"ripple",void 0),Ui([i.query(".ft-ripple--effect")],ki.prototype,"rippleEffect",void 0),o.customElement("ft-ripple")(ki),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.EXTLINK_LIGHT="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(Ei||(Ei={})),function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""}(Ri||(Ri={})),new Map([...["abw"].map((t=>[t,Ri.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,Ri.AUDIO])),...["avi"].map((t=>[t,Ri.AVI])),...["chm","xhs"].map((t=>[t,Ri.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,Ri.CODE])),...["csv"].map((t=>[t,Ri.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ri.DITA])),...["epub"].map((t=>[t,Ri.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ri.EXCEL])),...["flac"].map((t=>[t,Ri.FLAC])),...["gif"].map((t=>[t,Ri.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ri.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ri.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,Ri.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ri.JPEG])),...["json"].map((t=>[t,Ri.JSON])),...["m4a","m4p"].map((t=>[t,Ri.M4A])),...["mov","qt"].map((t=>[t,Ri.MOV])),...["mp3"].map((t=>[t,Ri.MP3])),...["mp4","m4v"].map((t=>[t,Ri.MP4])),...["ogg","oga"].map((t=>[t,Ri.OGG])),...["pdf","ps"].map((t=>[t,Ri.PDF])),...["png"].map((t=>[t,Ri.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ri.POWERPOINT])),...["rar"].map((t=>[t,Ri.RAR])),...["stp"].map((t=>[t,Ri.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ri.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,Ri.VIDEO])),...["wav"].map((t=>[t,Ri.WAV])),...["wma"].map((t=>[t,Ri.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ri.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ri.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ri.YAML])),...["zip"].map((t=>[t,Ri.ZIP]))]);const Li={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")},Wi=e.css`
|
|
303
303
|
:host, i.ft-icon {
|
|
304
304
|
display: inline-flex;
|
|
305
305
|
align-items: center;
|
|
@@ -308,14 +308,14 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
:host {
|
|
311
|
-
width: ${
|
|
312
|
-
height: ${
|
|
311
|
+
width: ${Li.size};
|
|
312
|
+
height: ${Li.size};
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
i.ft-icon {
|
|
316
316
|
width: 100%;
|
|
317
317
|
height: 100%;
|
|
318
|
-
font-size: ${
|
|
318
|
+
font-size: ${Li.size};
|
|
319
319
|
line-height: 1;
|
|
320
320
|
font-weight: normal;
|
|
321
321
|
text-transform: none;
|
|
@@ -326,33 +326,33 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
326
326
|
text-rendering: auto;
|
|
327
327
|
-webkit-font-smoothing: antialiased;
|
|
328
328
|
-moz-osx-font-smoothing: grayscale;
|
|
329
|
-
vertical-align: ${
|
|
329
|
+
vertical-align: ${Li.verticalAlign};
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
i.ft-icon.ft-icon--fluid-topics {
|
|
333
|
-
font-family: ${
|
|
333
|
+
font-family: ${Li.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
334
334
|
|
|
335
335
|
/* Ugly fix because font is broken */
|
|
336
|
-
font-size: calc(0.75 * ${
|
|
337
|
-
line-height: ${
|
|
336
|
+
font-size: calc(0.75 * ${Li.size});
|
|
337
|
+
line-height: ${Li.size};
|
|
338
338
|
position: relative;
|
|
339
339
|
top: -4%;
|
|
340
340
|
justify-content: center;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
.ft-icon--file-format {
|
|
344
|
-
font-family: ${
|
|
344
|
+
font-family: ${Li.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
.ft-icon--material {
|
|
348
|
-
font-family: ${
|
|
348
|
+
font-family: ${Li.materialFontFamily}, "Material Icons", sans-serif;
|
|
349
349
|
}
|
|
350
|
-
`;var
|
|
350
|
+
`;var zi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(zi||(zi={}));var Ki=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ai extends o.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(zi).includes(this.variant)?this.variant:zi.fluid_topics,o=t!==zi.material||!!this.value;return e.html`
|
|
351
351
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
352
352
|
${n.unsafeHTML(this.resolvedIcon)}
|
|
353
353
|
<slot ?hidden=${o}></slot>
|
|
354
354
|
</i>
|
|
355
|
-
`}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 i=this.value||this.textContent;switch(this.variant){case
|
|
355
|
+
`}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 i=this.value||this.textContent;switch(this.variant){case zi.file_format:this.resolvedIcon=null!==(t=Ri[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case zi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(o=Ei[i.replace("-","_").toUpperCase()])&&void 0!==o?o:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ai.elementDefinitions={},Ai.styles=Wi,Ki([i.property()],Ai.prototype,"variant",void 0),Ki([i.property()],Ai.prototype,"value",void 0),Ki([i.state()],Ai.prototype,"resolvedIcon",void 0),Ki([i.query("slot")],Ai.prototype,"slottedContent",void 0),o.customElement("ft-icon")(Ai);const Zi={color:o.FtCssVariableFactory.extend("--ft-loader-color","",o.designSystemVariables.colorPrimary),size:o.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Bi=e.css`
|
|
356
356
|
:host {
|
|
357
357
|
line-height: 0;
|
|
358
358
|
}
|
|
@@ -361,8 +361,8 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
361
361
|
display: inline-block;
|
|
362
362
|
position: relative;
|
|
363
363
|
|
|
364
|
-
width: ${
|
|
365
|
-
height: ${
|
|
364
|
+
width: ${Zi.size};
|
|
365
|
+
height: ${Zi.size};
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
.ft-loader div {
|
|
@@ -371,7 +371,7 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
371
371
|
width: 25%;
|
|
372
372
|
height: 25%;
|
|
373
373
|
border-radius: 50%;
|
|
374
|
-
background: ${
|
|
374
|
+
background: ${Zi.color};
|
|
375
375
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
376
376
|
}
|
|
377
377
|
|
|
@@ -418,10 +418,10 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
418
418
|
transform: translate(0, 0);
|
|
419
419
|
}
|
|
420
420
|
100% {
|
|
421
|
-
transform: translate(calc(0.35 * ${
|
|
421
|
+
transform: translate(calc(0.35 * ${Zi.size}), 0);
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
`,
|
|
424
|
+
`,Di=o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorPrimary),Fi={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorSurface),borderRadius:o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusL),color:Di,fontSize:o.FtCssVariableFactory.extend("--ft-button-font-size","",Yo.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.FtCssVariableFactory.extend("--ft-button-ripple-color","",Di),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")},Ti=o.FtCssVariableFactory.extend("--ft-button-primary-color","",o.FtCssVariableFactory.extend("--ft-button-color","",o.designSystemVariables.colorOnPrimary)),Pi={backgroundColor:o.FtCssVariableFactory.extend("--ft-button-primary-background-color","",o.FtCssVariableFactory.extend("--ft-button-background-color","",o.designSystemVariables.colorPrimary)),color:Ti,rippleColor:o.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Ti)},Hi=o.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",o.FtCssVariableFactory.extend("--ft-button-border-radius","",o.designSystemVariables.borderRadiusM)),ji=o.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Mi=o.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Gi=o.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),_i=[e.css`
|
|
425
425
|
:host {
|
|
426
426
|
display: inline-block;
|
|
427
427
|
max-width: 100%;
|
|
@@ -432,7 +432,7 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
432
432
|
box-shadow: 0px 0px 0px transparent;
|
|
433
433
|
border: 0px solid transparent;
|
|
434
434
|
text-shadow: 0px 0px 0px transparent;
|
|
435
|
-
font-size: ${
|
|
435
|
+
font-size: ${Fi.fontSize};
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
button:hover {
|
|
@@ -461,31 +461,31 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
461
461
|
border: none;
|
|
462
462
|
pointer-events: auto;
|
|
463
463
|
|
|
464
|
-
--ft-button-internal-line-height: max(calc(${
|
|
465
|
-
--ft-button-internal-color: ${
|
|
466
|
-
${o.setVariable(
|
|
467
|
-
${o.setVariable(
|
|
464
|
+
--ft-button-internal-line-height: max(calc(${Fi.fontSize} + 2px), ${Fi.iconSize});
|
|
465
|
+
--ft-button-internal-color: ${Fi.color};
|
|
466
|
+
${o.setVariable(Li.size,Fi.iconSize)};
|
|
467
|
+
${o.setVariable(vi.color,Fi.rippleColor)};
|
|
468
468
|
|
|
469
|
-
border-radius: ${
|
|
470
|
-
padding: ${
|
|
471
|
-
background-color: ${
|
|
469
|
+
border-radius: ${Fi.borderRadius};
|
|
470
|
+
padding: ${Fi.verticalPadding} ${Fi.horizontalPadding};
|
|
471
|
+
background-color: ${Fi.backgroundColor};
|
|
472
472
|
color: var(--ft-button-internal-color);
|
|
473
473
|
-webkit-mask-image: radial-gradient(white, black);
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
.ft-button.ft-button--outlined {
|
|
477
477
|
border: 1px solid var(--ft-button-internal-color);
|
|
478
|
-
padding: calc(${
|
|
478
|
+
padding: calc(${Fi.verticalPadding} - 1px) calc(${Fi.horizontalPadding} - 1px);
|
|
479
479
|
}
|
|
480
480
|
|
|
481
481
|
.ft-button.ft-button--dense {
|
|
482
|
-
padding: ${
|
|
483
|
-
border-radius: ${
|
|
484
|
-
gap: ${
|
|
482
|
+
padding: ${ji} ${Mi};
|
|
483
|
+
border-radius: ${Hi};
|
|
484
|
+
gap: ${Gi};
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
488
|
-
padding: calc(${
|
|
488
|
+
padding: calc(${ji} - 1px) calc(${Mi} - 1px);
|
|
489
489
|
}
|
|
490
490
|
|
|
491
491
|
.ft-button:not([disabled]):hover {
|
|
@@ -493,22 +493,22 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
493
493
|
}
|
|
494
494
|
|
|
495
495
|
.ft-button--round {
|
|
496
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
496
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Fi.verticalPadding});
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
.ft-button--round.ft-button--dense {
|
|
500
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
500
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ji});
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
.ft-button[disabled] {
|
|
504
504
|
filter: grayscale(1);
|
|
505
|
-
opacity: ${
|
|
505
|
+
opacity: ${Fi.opacityDisabled};
|
|
506
506
|
}
|
|
507
507
|
|
|
508
508
|
.ft-button.ft-button--primary {
|
|
509
|
-
background-color: ${
|
|
510
|
-
--ft-button-internal-color: ${
|
|
511
|
-
${o.setVariable(
|
|
509
|
+
background-color: ${Pi.backgroundColor};
|
|
510
|
+
--ft-button-internal-color: ${Pi.color};
|
|
511
|
+
${o.setVariable(vi.color,Pi.rippleColor)};
|
|
512
512
|
}
|
|
513
513
|
|
|
514
514
|
.ft-button:focus {
|
|
@@ -521,13 +521,13 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
521
521
|
white-space: nowrap;
|
|
522
522
|
text-overflow: ellipsis;
|
|
523
523
|
display: block;
|
|
524
|
-
margin: 0 ${
|
|
524
|
+
margin: 0 ${Fi.iconPadding};
|
|
525
525
|
${o.setVariable(Yo.fontSize,"1em")};
|
|
526
526
|
${o.setVariable(Yo.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
527
527
|
}
|
|
528
528
|
|
|
529
529
|
.ft-button--dense .ft-button--label {
|
|
530
|
-
margin: 0 ${
|
|
530
|
+
margin: 0 ${Gi};
|
|
531
531
|
}
|
|
532
532
|
|
|
533
533
|
.ft-button--label[hidden] {
|
|
@@ -540,13 +540,13 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
.ft-button--label[hidden] + ft-icon {
|
|
543
|
-
margin: 0 calc(${
|
|
544
|
-
padding: 0 ${
|
|
543
|
+
margin: 0 calc(${Fi.horizontalPadding} * -1);
|
|
544
|
+
padding: 0 ${Fi.verticalPadding};
|
|
545
545
|
}
|
|
546
546
|
|
|
547
547
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
548
|
-
margin: 0 calc(${
|
|
549
|
-
padding: 0 ${
|
|
548
|
+
margin: 0 calc(${Mi} * -1);
|
|
549
|
+
padding: 0 ${ji};
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -555,17 +555,17 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
ft-loader {
|
|
558
|
-
${o.setVariable(
|
|
559
|
-
${o.setVariable(
|
|
558
|
+
${o.setVariable(Zi.size,Fi.iconSize)};
|
|
559
|
+
${o.setVariable(Zi.color,"var(--ft-button-internal-color)")};
|
|
560
560
|
}
|
|
561
|
-
`,o.noTextSelect];class
|
|
561
|
+
`,o.noTextSelect];class Yi extends o.FtLitElement{render(){return e.html`
|
|
562
562
|
<div class="ft-loader">
|
|
563
563
|
<div></div>
|
|
564
564
|
<div></div>
|
|
565
565
|
<div></div>
|
|
566
566
|
<div></div>
|
|
567
567
|
</div>
|
|
568
|
-
`}}
|
|
568
|
+
`}}Yi.styles=Bi,o.customElement("ft-loader")(Yi);var Vi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Xi 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`
|
|
569
569
|
<button part="button"
|
|
570
570
|
class="${r.classMap(this.buttonClasses)}"
|
|
571
571
|
aria-label="${this.getLabel()}"
|
|
@@ -588,7 +588,7 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
588
588
|
</ft-tooltip>
|
|
589
589
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
590
590
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
591
|
-
<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}}
|
|
591
|
+
<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}}Xi.elementDefinitions={"ft-ripple":ki,"ft-tooltip":mi,"ft-typography":se,"ft-icon":Ai,"ft-loader":Yi},Vi([i.property({type:String,reflect:!0})],Xi.prototype,"role",void 0),Vi([i.property()],Xi.prototype,"type",void 0),Vi([i.property({type:Boolean})],Xi.prototype,"disabled",void 0),Vi([i.property()],Xi.prototype,"label",void 0),Vi([i.property()],Xi.prototype,"icon",void 0),Vi([i.property()],Xi.prototype,"iconVariant",void 0),Vi([i.property({type:Boolean})],Xi.prototype,"trailingIcon",void 0),Vi([i.property({type:Boolean})],Xi.prototype,"loading",void 0),Vi([i.property()],Xi.prototype,"tooltipPosition",void 0),Vi([i.property({type:Boolean})],Xi.prototype,"hideTooltip",void 0),Vi([i.property({type:Boolean})],Xi.prototype,"forceTooltip",void 0),Vi([i.query(".ft-button")],Xi.prototype,"button",void 0),Vi([i.query(".ft-button--label slot")],Xi.prototype,"slottedContent",void 0);var qi=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class Ji extends Xi{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"}}Ji.styles=[o.safariEllipsisFix,_i],qi([i.property({type:Boolean})],Ji.prototype,"primary",void 0),qi([i.property({type:Boolean})],Ji.prototype,"outlined",void 0),qi([i.property({type:Boolean})],Ji.prototype,"dense",void 0),qi([i.property({type:Boolean})],Ji.prototype,"round",void 0);const Qi=[e.css`
|
|
592
592
|
:host {
|
|
593
593
|
display: inline-block;
|
|
594
594
|
max-width: 100%;
|
|
@@ -667,13 +667,13 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
667
667
|
/** Primary styles **/
|
|
668
668
|
|
|
669
669
|
.ft-button--primary {
|
|
670
|
-
${o.setVariable(
|
|
670
|
+
${o.setVariable(Zi.color,Yt.primaryIconColor)};
|
|
671
671
|
|
|
672
|
-
${o.setVariable(
|
|
673
|
-
${o.setVariable(
|
|
674
|
-
${o.setVariable(
|
|
675
|
-
${o.setVariable(
|
|
676
|
-
${o.setVariable(
|
|
672
|
+
${o.setVariable(vi.color,Yt.primaryStateLayerColor)};
|
|
673
|
+
${o.setVariable(vi.opacityContentOnSurfaceHover,Yt.primaryStateLayerOpacityHover)};
|
|
674
|
+
${o.setVariable(vi.opacityContentOnSurfaceFocused,Yt.primaryStateLayerOpacityFocus)};
|
|
675
|
+
${o.setVariable(vi.opacityContentOnSurfaceSelected,Yt.primaryStateLayerOpacityActive)};
|
|
676
|
+
${o.setVariable(vi.opacityContentOnSurfacePressed,Yt.primaryStateLayerOpacityActive)};
|
|
677
677
|
|
|
678
678
|
background-color: ${Yt.primaryBackgroundColor};
|
|
679
679
|
color: ${Yt.primaryColor};
|
|
@@ -691,13 +691,13 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
691
691
|
/** Secondary styles **/
|
|
692
692
|
|
|
693
693
|
.ft-button--secondary {
|
|
694
|
-
${o.setVariable(
|
|
694
|
+
${o.setVariable(Zi.color,Yt.secondaryIconColor)};
|
|
695
695
|
|
|
696
|
-
${o.setVariable(
|
|
697
|
-
${o.setVariable(
|
|
698
|
-
${o.setVariable(
|
|
699
|
-
${o.setVariable(
|
|
700
|
-
${o.setVariable(
|
|
696
|
+
${o.setVariable(vi.color,Yt.secondaryStateLayerColor)};
|
|
697
|
+
${o.setVariable(vi.opacityContentOnSurfaceHover,Yt.secondaryStateLayerOpacityHover)};
|
|
698
|
+
${o.setVariable(vi.opacityContentOnSurfaceFocused,Yt.secondaryStateLayerOpacityFocus)};
|
|
699
|
+
${o.setVariable(vi.opacityContentOnSurfaceSelected,Yt.secondaryStateLayerOpacityActive)};
|
|
700
|
+
${o.setVariable(vi.opacityContentOnSurfacePressed,Yt.secondaryStateLayerOpacityActive)};
|
|
701
701
|
|
|
702
702
|
background-color: ${Yt.secondaryBackgroundColor};
|
|
703
703
|
color: ${Yt.secondaryColor};
|
|
@@ -716,13 +716,13 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
716
716
|
/** Tertiary styles **/
|
|
717
717
|
|
|
718
718
|
.ft-button--tertiary {
|
|
719
|
-
${o.setVariable(
|
|
719
|
+
${o.setVariable(Zi.color,Yt.tertiaryIconColor)};
|
|
720
720
|
|
|
721
|
-
${o.setVariable(
|
|
722
|
-
${o.setVariable(
|
|
723
|
-
${o.setVariable(
|
|
724
|
-
${o.setVariable(
|
|
725
|
-
${o.setVariable(
|
|
721
|
+
${o.setVariable(vi.color,Yt.tertiaryStateLayerColor)};
|
|
722
|
+
${o.setVariable(vi.opacityContentOnSurfaceHover,Yt.tertiaryStateLayerOpacityHover)};
|
|
723
|
+
${o.setVariable(vi.opacityContentOnSurfaceFocused,Yt.tertiaryStateLayerOpacityFocus)};
|
|
724
|
+
${o.setVariable(vi.opacityContentOnSurfaceSelected,Yt.tertiaryStateLayerOpacityActive)};
|
|
725
|
+
${o.setVariable(vi.opacityContentOnSurfacePressed,Yt.tertiaryStateLayerOpacityActive)};
|
|
726
726
|
|
|
727
727
|
background-color: ${Yt.tertiaryBackgroundColor};
|
|
728
728
|
color: ${Yt.tertiaryColor};
|
|
@@ -740,13 +740,13 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
740
740
|
/** Neutral styles **/
|
|
741
741
|
|
|
742
742
|
.ft-button--neutral {
|
|
743
|
-
${o.setVariable(
|
|
743
|
+
${o.setVariable(Zi.color,Yt.neutralIconColor)};
|
|
744
744
|
|
|
745
|
-
${o.setVariable(
|
|
746
|
-
${o.setVariable(
|
|
747
|
-
${o.setVariable(
|
|
748
|
-
${o.setVariable(
|
|
749
|
-
${o.setVariable(
|
|
745
|
+
${o.setVariable(vi.backgroundColor,Yt.neutralStateLayerColor)};
|
|
746
|
+
${o.setVariable(vi.opacityContentOnSurfaceHover,Yt.neutralStateLayerOpacityHover)};
|
|
747
|
+
${o.setVariable(vi.opacityContentOnSurfaceFocused,Yt.neutralStateLayerOpacityFocus)};
|
|
748
|
+
${o.setVariable(vi.opacityContentOnSurfaceSelected,Yt.neutralStateLayerOpacityActive)};
|
|
749
|
+
${o.setVariable(vi.opacityContentOnSurfacePressed,Yt.neutralStateLayerOpacityActive)};
|
|
750
750
|
|
|
751
751
|
background-color: ${Yt.neutralBackgroundColor};
|
|
752
752
|
color: ${Yt.neutralColor};
|
|
@@ -764,8 +764,8 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
764
764
|
/** Large styles **/
|
|
765
765
|
|
|
766
766
|
.ft-button--large {
|
|
767
|
-
${o.setVariable(
|
|
768
|
-
${o.setVariable(
|
|
767
|
+
${o.setVariable(Li.size,Yt.largeIconSize)};
|
|
768
|
+
${o.setVariable(Zi.size,Yt.largeIconSize)};
|
|
769
769
|
|
|
770
770
|
height: ${Yt.largeHeight};
|
|
771
771
|
padding: 0 ${Yt.largeHorizontalPadding};
|
|
@@ -787,8 +787,8 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
787
787
|
/** Small styles **/
|
|
788
788
|
|
|
789
789
|
.ft-button--small {
|
|
790
|
-
${o.setVariable(
|
|
791
|
-
${o.setVariable(
|
|
790
|
+
${o.setVariable(Li.size,Yt.smallIconSize)};
|
|
791
|
+
${o.setVariable(Zi.size,Yt.smallIconSize)};
|
|
792
792
|
|
|
793
793
|
height: ${Yt.smallHeight};
|
|
794
794
|
padding: 0 ${Yt.smallHorizontalPadding};
|
|
@@ -806,7 +806,7 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
806
806
|
width: ${Yt.smallIconOnlyWidth};
|
|
807
807
|
padding: unset;
|
|
808
808
|
}
|
|
809
|
-
`,o.noTextSelect];var
|
|
809
|
+
`,o.noTextSelect];var tr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class or extends Xi{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?Pt.caption1medium:Pt.body2medium}}or.styles=[o.safariEllipsisFix,Qi],tr([i.property({type:Boolean})],or.prototype,"primary",void 0),tr([i.property({type:Boolean})],or.prototype,"secondary",void 0),tr([i.property({type:Boolean})],or.prototype,"tertiary",void 0),tr([i.property({type:Boolean})],or.prototype,"neutral",void 0),tr([i.property({type:Boolean})],or.prototype,"small",void 0),o.customElement("ft-button")(Ji),o.customElement("ftds-button")(or);const er=o.FtCssVariableFactory.extend("--ft-chip-color","",o.designSystemVariables.colorOnSurface),ir={backgroundColor:o.FtCssVariableFactory.extend("--ft-chip-background-color","",o.designSystemVariables.colorSurface),color:er,fontSize:o.FtCssVariableFactory.extend("--ft-chip-font-size","",Ro.fontSize),iconSize:o.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),rippleColor:o.FtCssVariableFactory.extend("--ft-chip-ripple-color","",er),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")},rr=o.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",o.FtCssVariableFactory.extend("--ft-chip-color","",o.designSystemVariables.colorOnPrimary)),nr={backgroundColor:o.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",o.FtCssVariableFactory.extend("--ft-chip-background-color","",o.designSystemVariables.colorPrimary)),color:rr,rippleColor:o.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",rr)},ar=o.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),lr=o.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px"),sr=[o.noTextSelect,e.css`
|
|
810
810
|
:host {
|
|
811
811
|
display: inline-block;
|
|
812
812
|
max-width: 100%;
|
|
@@ -822,20 +822,20 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
822
822
|
box-sizing: border-box;
|
|
823
823
|
pointer-events: auto;
|
|
824
824
|
|
|
825
|
-
--ft-chip-internal-font-size: ${
|
|
825
|
+
--ft-chip-internal-font-size: ${ir.fontSize};
|
|
826
826
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
827
|
-
${o.setVariable(
|
|
828
|
-
--ft-chip-internal-vertical-padding: ${
|
|
829
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
827
|
+
${o.setVariable(Li.size,ir.iconSize)};
|
|
828
|
+
--ft-chip-internal-vertical-padding: ${ir.verticalPadding};
|
|
829
|
+
--ft-chip-internal-horizontal-padding: ${ir.horizontalPadding};
|
|
830
830
|
--ft-chip-internal-icon-padding: 3px;
|
|
831
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
831
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${ir.iconSize});
|
|
832
832
|
|
|
833
|
-
border: 1px solid ${
|
|
834
|
-
color: ${
|
|
835
|
-
${o.setVariable(
|
|
833
|
+
border: 1px solid ${ir.colorOutline};
|
|
834
|
+
color: ${ir.color};
|
|
835
|
+
${o.setVariable(vi.color,ir.rippleColor)};
|
|
836
836
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
837
837
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
838
|
-
background-color: ${
|
|
838
|
+
background-color: ${ir.backgroundColor};
|
|
839
839
|
line-height: var(--ft-chip-internal-content-height);
|
|
840
840
|
}
|
|
841
841
|
|
|
@@ -845,8 +845,8 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
845
845
|
|
|
846
846
|
.ft-chip--dense {
|
|
847
847
|
--ft-chip-internal-icon-padding: 3px;
|
|
848
|
-
--ft-chip-internal-vertical-padding: ${
|
|
849
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
848
|
+
--ft-chip-internal-vertical-padding: ${lr};
|
|
849
|
+
--ft-chip-internal-horizontal-padding: ${ar};
|
|
850
850
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
851
851
|
}
|
|
852
852
|
|
|
@@ -858,15 +858,15 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
858
858
|
cursor: default;
|
|
859
859
|
pointer-events: none;
|
|
860
860
|
filter: grayscale(1);
|
|
861
|
-
opacity: ${
|
|
861
|
+
opacity: ${ir.opacityDisabled};
|
|
862
862
|
}
|
|
863
863
|
|
|
864
864
|
.ft-chip--highlighted {
|
|
865
865
|
border: none;
|
|
866
866
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
867
|
-
background-color: ${
|
|
868
|
-
${o.setVariable(
|
|
869
|
-
color: ${
|
|
867
|
+
background-color: ${nr.backgroundColor};
|
|
868
|
+
${o.setVariable(vi.color,nr.rippleColor)};
|
|
869
|
+
color: ${nr.color};
|
|
870
870
|
}
|
|
871
871
|
|
|
872
872
|
.ft-chip--clickable {
|
|
@@ -896,9 +896,9 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
896
896
|
}
|
|
897
897
|
|
|
898
898
|
.ft-chip--icon-button {
|
|
899
|
-
${o.setVariable(
|
|
900
|
-
${o.setVariable(
|
|
901
|
-
${o.setVariable(
|
|
899
|
+
${o.setVariable(Fi.iconSize,ir.iconSize)};
|
|
900
|
+
${o.setVariable(Fi.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
901
|
+
${o.setVariable(Fi.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
902
902
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
903
903
|
}
|
|
904
904
|
|
|
@@ -943,7 +943,7 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
943
943
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
944
944
|
order: -1;
|
|
945
945
|
}
|
|
946
|
-
`];var
|
|
946
|
+
`];var cr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class fr extends CustomEvent{constructor(){super("icon-click")}}class pr 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`
|
|
947
947
|
<div class="${r.classMap(t)}"
|
|
948
948
|
aria-label="${this.getLabel()}"
|
|
949
949
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -966,7 +966,7 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
966
966
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
967
967
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
968
968
|
</div>
|
|
969
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
969
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new fr))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new fr))}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)}}pr.elementDefinitions={"ft-ripple":ki,"ft-typography":se,"ft-icon":Ai,"ft-button":Ji},pr.styles=sr,cr([i.property({type:Boolean})],pr.prototype,"highlighted",void 0),cr([i.property({type:Boolean})],pr.prototype,"removable",void 0),cr([i.property({type:Boolean})],pr.prototype,"disabled",void 0),cr([i.property({type:Boolean})],pr.prototype,"clickable",void 0),cr([i.property({type:Boolean})],pr.prototype,"iconClickable",void 0),cr([i.property({type:Boolean})],pr.prototype,"dense",void 0),cr([i.property({type:Boolean})],pr.prototype,"multiLine",void 0),cr([i.property()],pr.prototype,"label",void 0),cr([i.property()],pr.prototype,"iconLabel",void 0),cr([i.property()],pr.prototype,"icon",void 0),cr([i.property()],pr.prototype,"iconVariant",void 0),cr([i.property({type:Boolean})],pr.prototype,"trailingIcon",void 0),cr([i.query("ft-typography slot")],pr.prototype,"slottedContent",void 0),o.customElement("ft-chip")(pr);var hr=function(t,o,e,i){for(var r,n=arguments.length,a=n<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i,l=t.length-1;l>=0;l--)(r=t[l])&&(a=(n<3?r(a):n>3?r(o,e,a):r(o,e))||a);return n>3&&a&&Object.defineProperty(o,e,a),a};class dr extends(Y(H)){constructor(){super(),this.useChip=!1,this.editorMode=!1,this.addStore(N),this.addI18nContext(tt)}render(){return this.useChip?e.html`
|
|
970
970
|
<ft-tooltip text="${this.tooltipText}">
|
|
971
971
|
<ft-chip>${this.renderContent()}</ft-chip>
|
|
972
972
|
</ft-tooltip>
|
|
@@ -976,4 +976,4 @@ const Zt=Symbol.for(""),Bt=t=>{if(t?.r===Zt)return t?._$litStatic$},Dt=t=>({_$li
|
|
|
976
976
|
display: none !important;
|
|
977
977
|
}
|
|
978
978
|
</style>
|
|
979
|
-
`}getEllipsis(t){let o=this.maxLength?t.substring(0,this.maxLength):t;return o+(o.length<t.length?"…":"")}update(t){var o;super.update(t),(t.has("result")||t.has("key"))&&this.result&&(this.metadata=null===(o=this.resultData)||void 0===o?void 0:o.metadata.find((t=>t.key==this.key)))}get resultData(){var t,o,e,i,r;return null!==(i=null!==(o=null===(t=this.result)||void 0===t?void 0:t.map)&&void 0!==o?o:null===(e=this.result)||void 0===e?void 0:e.topic)&&void 0!==i?i:null===(r=this.result)||void 0===r?void 0:r.document}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}`:""}}
|
|
979
|
+
`}getEllipsis(t){let o=this.maxLength?t.substring(0,this.maxLength):t;return o+(o.length<t.length?"…":"")}update(t){var o;super.update(t),(t.has("result")||t.has("key"))&&this.result&&(this.metadata=null===(o=this.resultData)||void 0===o?void 0:o.metadata.find((t=>t.key==this.key)))}get resultData(){var t,o,e,i,r;return null!==(i=null!==(o=null===(t=this.result)||void 0===t?void 0:t.map)&&void 0!==o?o:null===(e=this.result)||void 0===e?void 0:e.topic)&&void 0!==i?i:null===(r=this.result)||void 0===r?void 0:r.document}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}`:""}}dr.elementDefinitions={"ft-tooltip":mi,"ft-chip":pr},dr.styles=a,hr([i.property()],dr.prototype,"key",void 0),hr([i.property({type:Boolean})],dr.prototype,"useChip",void 0),hr([i.property({type:Number,attribute:"max-length"})],dr.prototype,"maxLength",void 0),hr([o.redux({store:N.name})],dr.prototype,"editorMode",void 0),hr([i.state()],dr.prototype,"metadata",void 0),o.customElement("ft-search-result-metadata")(dr),t.FtSearchResultMetadata=dr,t.FtSearchResultMetadataCssVariables={},t.styles=a}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|