@fluid-topics/ft-search-input 1.0.52 → 1.0.54
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.
- package/build/ft-search-input.light.js +77 -77
- package/build/ft-search-input.min.js +39 -39
- package/package.json +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,i,e,o,s,n,r){const a=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),l={color:a,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",a),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),h=p,c=i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),
|
|
1
|
+
!function(t,i,e,o,s,n,r){const a=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorContent),l={color:a,backgroundColor:i.FtCssVariableFactory.extend("--ft-ripple-background-color",a),opacityContentOnSurfacePressed:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.FtCssVariableFactory.external(i.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),h=p,c=i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),d=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),f=d,u=i.FtCssVariableFactory.extend("--ft-ripple-background-color",d),g=e.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
36
|
-
background-color: ${
|
|
36
|
+
background-color: ${f};
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
opacity: ${l.opacityContentOnSurfacePressed};
|
|
89
89
|
transform: translate(-50%, -50%) scale(1);
|
|
90
90
|
}
|
|
91
|
-
`;var x,v=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class
|
|
91
|
+
`;var x,v=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class y extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y:s}=this.getCoordinates(t),n=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-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`
|
|
92
92
|
<style>
|
|
93
93
|
.ft-ripple .ft-ripple--effect,
|
|
94
94
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -105,53 +105,53 @@
|
|
|
105
105
|
<div class="ft-ripple--background"></div>
|
|
106
106
|
<div class="ft-ripple--effect"></div>
|
|
107
107
|
</div>
|
|
108
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}b.elementDefinitions={},b.styles=g,v([o.property({type:Boolean})],b.prototype,"primary",void 0),v([o.property({type:Boolean})],b.prototype,"secondary",void 0),v([o.property({type:Boolean})],b.prototype,"unbounded",void 0),v([o.property({type:Boolean})],b.prototype,"activated",void 0),v([o.property({type:Boolean})],b.prototype,"selected",void 0),v([o.property({type:Boolean})],b.prototype,"disabled",void 0),v([o.state()],b.prototype,"hovered",void 0),v([o.state()],b.prototype,"focused",void 0),v([o.state()],b.prototype,"pressed",void 0),v([o.state()],b.prototype,"rippling",void 0),v([o.state()],b.prototype,"rippleSize",void 0),v([o.state()],b.prototype,"originX",void 0),v([o.state()],b.prototype,"originY",void 0),v([o.query(".ft-ripple")],b.prototype,"ripple",void 0),v([o.query(".ft-ripple--effect")],b.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(b);const y=window,m=y.trustedTypes,$=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,w="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,S="?"+k,C=`<${S}>`,z=document,E=()=>z.createComment(""),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,I=Array.isArray,j="[ \t\n\f\r]",M=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,N=/>/g,A=RegExp(`>|${j}(?:([^\\s"'>=/]+)(${j}*=${j}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),B=/'/g,T=/"/g,F=/^(?:script|style|textarea|title)$/i,D=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),R=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),L=new WeakMap,P=z.createTreeWalker(z,129,null,!1),_=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=M;for(let i=0;i<e;i++){const e=t[i];let a,l,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,l=r.exec(e),null!==l);)h=r.lastIndex,r===M?"!--"===l[1]?r=U:void 0!==l[1]?r=N:void 0!==l[2]?(F.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=A):void 0!==l[3]&&(r=A):r===A?">"===l[0]?(r=null!=s?s:M,p=-1):void 0===l[1]?p=-2:(p=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?A:'"'===l[3]?T:B):r===T||r===B?r=A:r===U||r===N?r=M:(r=A,s=void 0);const c=r===A&&t[i+1].startsWith("/>")?" ":"";n+=r===M?e+C:p>=0?(o.push(a),e.slice(0,p)+w+e.slice(p)+k+c):e+k+(-2===p?(o.push(void 0),i):c)}const a=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(a):a,o]};class K{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,p]=_(t,i);if(this.el=K.createElement(l,e),P.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=P.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(w)||i.startsWith(k)){const e=p[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+w).split(k),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?V:"?"===i[1]?X:"@"===i[1]?Y:q})}else a.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(F.test(o.tagName)){const t=o.textContent.split(k),i=t.length-1;if(i>0){o.textContent=m?m.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],E()),P.nextNode(),a.push({type:2,index:++s});o.append(t[i],E())}}}else if(8===o.nodeType)if(o.data===S)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(k,t+1));)a.push({type:7,index:s}),t+=k.length-1}s++}}static createElement(t,i){const e=z.createElement("template");return e.innerHTML=t,e}}function W(t,i,e=t,o){var s,n,r,a;if(i===R)return i;let l=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const p=O(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=W(t,l._$AS(t,i.values),l,o)),i}class H{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:z).importNode(e,!0);P.currentNode=s;let n=P.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new G(n,n.nextSibling,this,t):1===l.type?i=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(i=new J(n,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=P.nextNode(),r++)}return s}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class G{constructor(t,i,e,o){var s;this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=W(this,t,i),O(t)?t===Z||null==t||""===t?(this._$AH!==Z&&this._$AR(),this._$AH=Z):t!==this._$AH&&t!==R&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>I(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Z&&O(this._$AH)?this._$AA.nextSibling.data=t:this.$(z.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=K.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.v(e);else{const t=new H(s,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=L.get(t.strings);return void 0===i&&L.set(t.strings,i=new K(t)),i}T(t){I(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new G(this.k(E()),this.k(E()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class q{constructor(t,i,e,o,s){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=Z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=W(this,t,i,0),n=!O(t)||t!==this._$AH&&t!==R,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=W(this,o[e+r],i,r),a===R&&(a=this._$AH[r]),n||(n=!O(a)||a!==this._$AH[r]),a===Z?t=Z:t!==Z&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Z?void 0:t}}const Q=m?m.emptyScript:"";class X extends q{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Z?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class Y extends q{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=W(this,t,i,0))&&void 0!==e?e:Z)===R)return;const o=this._$AH,s=t===Z&&o!==Z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==Z&&(o===Z||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class J{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){W(this,t)}}const tt=y.litHtmlPolyfillSupport;null==tt||tt(K,G),(null!==(x=y.litHtmlVersions)&&void 0!==x?x:y.litHtmlVersions=[]).push("2.7.3");
|
|
108
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,i;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(null!==(i=this.target)&&void 0!==i?i:e),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}y.elementDefinitions={},y.styles=g,v([o.property({type:Boolean})],y.prototype,"primary",void 0),v([o.property({type:Boolean})],y.prototype,"secondary",void 0),v([o.property({type:Boolean})],y.prototype,"unbounded",void 0),v([o.property({type:Boolean})],y.prototype,"activated",void 0),v([o.property({type:Boolean})],y.prototype,"selected",void 0),v([o.property({type:Boolean})],y.prototype,"disabled",void 0),v([o.state()],y.prototype,"hovered",void 0),v([o.state()],y.prototype,"focused",void 0),v([o.state()],y.prototype,"pressed",void 0),v([o.state()],y.prototype,"rippling",void 0),v([o.state()],y.prototype,"rippleSize",void 0),v([o.state()],y.prototype,"originX",void 0),v([o.state()],y.prototype,"originY",void 0),v([o.query(".ft-ripple")],y.prototype,"ripple",void 0),v([o.query(".ft-ripple--effect")],y.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(y);const b=window,m=b.trustedTypes,$=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,w="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,S="?"+k,C=`<${S}>`,z=document,O=()=>z.createComment(""),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,I=Array.isArray,M="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,U=/-->/g,B=/>/g,N=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),A=/'/g,T=/"/g,F=/^(?:script|style|textarea|title)$/i,D=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),R=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),Z=new WeakMap,L=z.createTreeWalker(z,129,null,!1),_=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=j;for(let i=0;i<e;i++){const e=t[i];let a,l,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,l=r.exec(e),null!==l);)h=r.lastIndex,r===j?"!--"===l[1]?r=U:void 0!==l[1]?r=B:void 0!==l[2]?(F.test(l[2])&&(s=RegExp("</"+l[2],"g")),r=N):void 0!==l[3]&&(r=N):r===N?">"===l[0]?(r=null!=s?s:j,p=-1):void 0===l[1]?p=-2:(p=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?N:'"'===l[3]?T:A):r===T||r===A?r=N:r===U||r===B?r=j:(r=N,s=void 0);const c=r===N&&t[i+1].startsWith("/>")?" ":"";n+=r===j?e+C:p>=0?(o.push(a),e.slice(0,p)+w+e.slice(p)+k+c):e+k+(-2===p?(o.push(void 0),i):c)}const a=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(a):a,o]};class W{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,a=this.parts,[l,p]=_(t,i);if(this.el=W.createElement(l,e),L.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=L.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(w)||i.startsWith(k)){const e=p[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+w).split(k),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?V:"?"===i[1]?X:"@"===i[1]?Y:q})}else a.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(F.test(o.tagName)){const t=o.textContent.split(k),i=t.length-1;if(i>0){o.textContent=m?m.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],O()),L.nextNode(),a.push({type:2,index:++s});o.append(t[i],O())}}}else if(8===o.nodeType)if(o.data===S)a.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(k,t+1));)a.push({type:7,index:s}),t+=k.length-1}s++}}static createElement(t,i){const e=z.createElement("template");return e.innerHTML=t,e}}function K(t,i,e=t,o){var s,n,r,a;if(i===R)return i;let l=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const p=E(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=K(t,l._$AS(t,i.values),l,o)),i}class H{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:z).importNode(e,!0);L.currentNode=s;let n=L.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new G(n,n.nextSibling,this,t):1===l.type?i=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(i=new J(n,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(n=L.nextNode(),r++)}return s}v(t){let i=0;for(const e of this._$AV)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class G{constructor(t,i,e,o){var s;this.type=2,this._$AH=P,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cp=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===(null==t?void 0:t.nodeType)&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=K(this,t,i),E(t)?t===P||null==t||""===t?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==R&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>I(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==P&&E(this._$AH)?this._$AA.nextSibling.data=t:this.$(z.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=W.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.v(e);else{const t=new H(s,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=Z.get(t.strings);return void 0===i&&Z.set(t.strings,i=new W(t)),i}T(t){I(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new G(this.k(O()),this.k(O()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class q{constructor(t,i,e,o,s){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=P}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=K(this,t,i,0),n=!E(t)||t!==this._$AH&&t!==R,n&&(this._$AH=t);else{const o=t;let r,a;for(t=s[0],r=0;r<s.length-1;r++)a=K(this,o[e+r],i,r),a===R&&(a=this._$AH[r]),n||(n=!E(a)||a!==this._$AH[r]),a===P?t=P:t!==P&&(t+=(null!=a?a:"")+s[r+1]),this._$AH[r]=a}n&&!o&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}}const Q=m?m.emptyScript:"";class X extends q{constructor(){super(...arguments),this.type=4}j(t){t&&t!==P?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class Y extends q{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=K(this,t,i,0))&&void 0!==e?e:P)===R)return;const o=this._$AH,s=t===P&&o!==P||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==P&&(o===P||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class J{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const tt=b.litHtmlPolyfillSupport;null==tt||tt(W,G),(null!==(x=b.litHtmlVersions)&&void 0!==x?x:b.litHtmlVersions=[]).push("2.7.3");
|
|
109
109
|
/**
|
|
110
110
|
* @license
|
|
111
111
|
* Copyright 2020 Google LLC
|
|
112
112
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
113
113
|
*/
|
|
114
|
-
const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void 0:t._$litStatic$},ot=t=>({_$litStatic$:t,r:it}),st=new Map,nt=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=i[p];p<o&&void 0!==(n=e[p],s=et(n));)l+=s+i[++p],h=!0;p!==o&&a.push(n),r.push(l),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=st.get(t))&&(r.raw=r,st.set(t,i=r)),e=a}return t(i,...e)})(D);var rt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(rt||(rt={}));const at=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),lt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),pt={fontFamily:lt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",at),ct=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",pt.fontSize,"20px"),
|
|
114
|
+
const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void 0:t._$litStatic$},ot=t=>({_$litStatic$:t,r:it}),st=new Map,nt=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=i[p];p<o&&void 0!==(n=e[p],s=et(n));)l+=s+i[++p],h=!0;p!==o&&a.push(n),r.push(l),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=st.get(t))&&(r.raw=r,st.set(t,i=r)),e=a}return t(i,...e)})(D);var rt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(rt||(rt={}));const at=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),lt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),pt={fontFamily:lt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",at),ct=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",pt.fontSize,"20px"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",pt.fontWeight,"normal"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",pt.letterSpacing,"0.15px"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",pt.lineHeight,"1.2"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",pt.textTransform,"inherit"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",at),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",pt.fontSize,"14px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",pt.fontWeight,"normal"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",pt.letterSpacing,"0.105px"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",pt.lineHeight,"1.7"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",pt.textTransform,"inherit"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",lt),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",pt.fontSize,"16px"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",pt.fontWeight,"600"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",pt.letterSpacing,"0.144px"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",pt.lineHeight,"1.5"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",pt.textTransform,"inherit"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",lt),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",pt.fontSize,"14px"),Mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",pt.fontWeight,"normal"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",pt.letterSpacing,"0.098px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",pt.lineHeight,"1.7"),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",pt.textTransform,"inherit"),Nt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",lt),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",pt.fontSize,"16px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",pt.fontWeight,"normal"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",pt.letterSpacing,"0.496px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",pt.lineHeight,"1.5"),Rt=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",pt.textTransform,"inherit"),Pt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",lt),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",pt.fontSize,"14px"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",pt.fontWeight,"normal"),_t=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",pt.letterSpacing,"0.252px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",pt.lineHeight,"1.4"),Kt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",pt.textTransform,"inherit"),Ht=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",lt),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",pt.fontSize,"12px"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",pt.fontWeight,"normal"),Vt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",pt.letterSpacing,"0.396px"),Qt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",pt.lineHeight,"1.33"),Xt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",pt.textTransform,"inherit"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",lt),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",pt.fontSize,"10px"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",pt.fontWeight,"normal"),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",pt.letterSpacing,"0.33px"),ei=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",pt.lineHeight,"1.6"),oi=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",pt.textTransform,"inherit"),si=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",lt),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",pt.fontSize,"10px"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",pt.fontWeight,"normal"),ai=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",pt.letterSpacing,"1.5px"),li=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",pt.lineHeight,"1.6"),pi=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",pt.textTransform,"uppercase"),hi={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",lt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",pt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",pt.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",pt.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",pt.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",pt.textTransform,"uppercase")},ci=e.css`
|
|
115
115
|
.ft-typography--title {
|
|
116
116
|
font-family: ${ht};
|
|
117
117
|
font-size: ${ct};
|
|
118
|
-
font-weight: ${
|
|
119
|
-
letter-spacing: ${
|
|
118
|
+
font-weight: ${dt};
|
|
119
|
+
letter-spacing: ${ft};
|
|
120
120
|
line-height: ${ut};
|
|
121
121
|
text-transform: ${gt};
|
|
122
122
|
}
|
|
123
|
-
`,
|
|
123
|
+
`,di=e.css`
|
|
124
124
|
.ft-typography--title-dense {
|
|
125
125
|
font-family: ${xt};
|
|
126
126
|
font-size: ${vt};
|
|
127
|
-
font-weight: ${
|
|
128
|
-
letter-spacing: ${
|
|
127
|
+
font-weight: ${yt};
|
|
128
|
+
letter-spacing: ${bt};
|
|
129
129
|
line-height: ${mt};
|
|
130
130
|
text-transform: ${$t};
|
|
131
131
|
}
|
|
132
|
-
`,
|
|
132
|
+
`,fi=e.css`
|
|
133
133
|
.ft-typography--subtitle1 {
|
|
134
134
|
font-family: ${wt};
|
|
135
135
|
font-size: ${kt};
|
|
136
136
|
font-weight: ${St};
|
|
137
137
|
letter-spacing: ${Ct};
|
|
138
138
|
line-height: ${zt};
|
|
139
|
-
text-transform: ${
|
|
139
|
+
text-transform: ${Ot};
|
|
140
140
|
}
|
|
141
141
|
`,ui=e.css`
|
|
142
142
|
.ft-typography--subtitle2 {
|
|
143
|
-
font-family: ${
|
|
143
|
+
font-family: ${Et};
|
|
144
144
|
font-size: ${It};
|
|
145
|
-
font-weight: ${
|
|
146
|
-
letter-spacing: ${
|
|
145
|
+
font-weight: ${Mt};
|
|
146
|
+
letter-spacing: ${jt};
|
|
147
147
|
line-height: ${Ut};
|
|
148
|
-
text-transform: ${
|
|
148
|
+
text-transform: ${Bt};
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
`,gi=e.css`
|
|
152
152
|
.ft-typography--body1 {
|
|
153
|
-
font-family: ${
|
|
154
|
-
font-size: ${
|
|
153
|
+
font-family: ${Nt};
|
|
154
|
+
font-size: ${At};
|
|
155
155
|
font-weight: ${Tt};
|
|
156
156
|
letter-spacing: ${Ft};
|
|
157
157
|
line-height: ${Dt};
|
|
@@ -159,12 +159,12 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
159
159
|
}
|
|
160
160
|
`,xi=e.css`
|
|
161
161
|
.ft-typography--body2 {
|
|
162
|
-
font-family: ${
|
|
163
|
-
font-size: ${
|
|
164
|
-
font-weight: ${
|
|
162
|
+
font-family: ${Pt};
|
|
163
|
+
font-size: ${Zt};
|
|
164
|
+
font-weight: ${Lt};
|
|
165
165
|
letter-spacing: ${_t};
|
|
166
|
-
line-height: ${
|
|
167
|
-
text-transform: ${
|
|
166
|
+
line-height: ${Wt};
|
|
167
|
+
text-transform: ${Kt};
|
|
168
168
|
}
|
|
169
169
|
`,vi=e.css`
|
|
170
170
|
.ft-typography--caption {
|
|
@@ -175,7 +175,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
175
175
|
line-height: ${Qt};
|
|
176
176
|
text-transform: ${Xt};
|
|
177
177
|
}
|
|
178
|
-
`,
|
|
178
|
+
`,yi=e.css`
|
|
179
179
|
.ft-typography--breadcrumb {
|
|
180
180
|
font-family: ${Yt};
|
|
181
181
|
font-size: ${Jt};
|
|
@@ -184,7 +184,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
184
184
|
line-height: ${ei};
|
|
185
185
|
text-transform: ${oi};
|
|
186
186
|
}
|
|
187
|
-
`,
|
|
187
|
+
`,bi=e.css`
|
|
188
188
|
.ft-typography--overline {
|
|
189
189
|
font-family: ${si};
|
|
190
190
|
font-size: ${ni};
|
|
@@ -213,7 +213,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
213
213
|
</${ot(this.element)}>
|
|
214
214
|
`:nt`
|
|
215
215
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
216
|
-
`}}ki.styles=[ci,fi,
|
|
216
|
+
`}}ki.styles=[ci,di,fi,ui,gi,xi,vi,yi,bi,mi,$i],wi([o.property()],ki.prototype,"element",void 0),wi([o.property()],ki.prototype,"variant",void 0),i.customElement("ft-typography")(ki);const Si={distance:i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),color:i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","100"),borderRadiusS:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),maxWidth:i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px")},Ci=e.css`
|
|
217
217
|
.ft-tooltip--container {
|
|
218
218
|
display: block;
|
|
219
219
|
}
|
|
@@ -242,7 +242,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
242
242
|
position: relative;
|
|
243
243
|
word-break: break-word;
|
|
244
244
|
}
|
|
245
|
-
`;var zi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class
|
|
245
|
+
`;var zi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Oi extends i.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 i.Debouncer,this.revealDebouncer=new i.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return e.html`
|
|
246
246
|
<div part="container"
|
|
247
247
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
248
248
|
@mouseenter=${this.onHover}
|
|
@@ -260,7 +260,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
260
260
|
</div>
|
|
261
261
|
</div>
|
|
262
262
|
</div>
|
|
263
|
-
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&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(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,s=(t.offsetWidth-i)/2;let n=0,r=0;switch(this.validPosition){case"top":r=t.offsetTop-e,n=t.offsetLeft+s;break;case"bottom":r=t.offsetTop+t.offsetHeight,n=t.offsetLeft+s;break;case"left":r=t.offsetTop+o,n=t.offsetLeft-i;break;case"right":r=t.offsetTop+o,n=t.offsetLeft+t.offsetWidth}const a=this.tooltip.style;a.left=this.
|
|
263
|
+
`}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((i=>t.has(i)))&&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(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const i=this.tooltip.offsetWidth,e=this.tooltip.offsetHeight,o=(t.offsetHeight-e)/2,s=(t.offsetWidth-i)/2;let n=0,r=0;switch(this.tooltip.style.top="0",this.tooltip.style.left="0",this.validPosition){case"top":r=t.offsetTop-e-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,n=t.offsetLeft+s-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,n=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=n+"px",a.top=r+"px";const l=this.tooltip.getBoundingClientRect();let p=-l.x,h=l.x+l.width-window.innerWidth;a.left=n+Math.round(this.correctOutOfWindowPixels(p,h))+"px";let c=-l.y,d=l.y+l.height-window.innerHeight;a.top=r+Math.round(this.correctOutOfWindowPixels(c,d))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${Si.maxWidth})`}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,i){return Math.max(t,Math.min(0,-i))}}Oi.elementDefinitions={"ft-typography":ki},Oi.styles=Ci,zi([o.property()],Oi.prototype,"text",void 0),zi([o.property({type:Boolean})],Oi.prototype,"manual",void 0),zi([o.property({type:Boolean})],Oi.prototype,"inline",void 0),zi([o.property({type:Number})],Oi.prototype,"delay",void 0),zi([o.property()],Oi.prototype,"position",void 0),zi([o.queryAssignedNodes("",!0)],Oi.prototype,"slotNodes",void 0),zi([o.query(".ft-tooltip--container")],Oi.prototype,"container",void 0),zi([o.query(".ft-tooltip")],Oi.prototype,"tooltip",void 0),zi([o.query(".ft-tooltip--content")],Oi.prototype,"tooltipContent",void 0),zi([o.state()],Oi.prototype,"visible",void 0),i.customElement("ft-tooltip")(Oi);const Ei={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Ii=e.css`
|
|
264
264
|
:host {
|
|
265
265
|
line-height: 0;
|
|
266
266
|
}
|
|
@@ -269,8 +269,8 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
269
269
|
display: inline-block;
|
|
270
270
|
position: relative;
|
|
271
271
|
|
|
272
|
-
width: ${
|
|
273
|
-
height: ${
|
|
272
|
+
width: ${Ei.size};
|
|
273
|
+
height: ${Ei.size};
|
|
274
274
|
}
|
|
275
275
|
|
|
276
276
|
.ft-loader div {
|
|
@@ -279,7 +279,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
279
279
|
width: 25%;
|
|
280
280
|
height: 25%;
|
|
281
281
|
border-radius: 50%;
|
|
282
|
-
background: ${
|
|
282
|
+
background: ${Ei.color};
|
|
283
283
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
284
284
|
}
|
|
285
285
|
|
|
@@ -326,17 +326,17 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
326
326
|
transform: translate(0, 0);
|
|
327
327
|
}
|
|
328
328
|
100% {
|
|
329
|
-
transform: translate(calc(0.35 * ${
|
|
329
|
+
transform: translate(calc(0.35 * ${Ei.size}), 0);
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
|
-
`;class
|
|
332
|
+
`;class Mi extends i.FtLitElement{render(){return e.html`
|
|
333
333
|
<div class="ft-loader">
|
|
334
334
|
<div></div>
|
|
335
335
|
<div></div>
|
|
336
336
|
<div></div>
|
|
337
337
|
<div></div>
|
|
338
338
|
</div>
|
|
339
|
-
`}}var
|
|
339
|
+
`}}var ji,Ui;Mi.styles=Ii,i.customElement("ft-loader")(Mi),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.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=""}(ji||(ji={})),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=""}(Ui||(Ui={}));const Bi=new Map([...["abw"].map((t=>[t,Ui.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,Ui.AUDIO])),...["avi"].map((t=>[t,Ui.AVI])),...["chm","xhs"].map((t=>[t,Ui.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,Ui.CODE])),...["csv"].map((t=>[t,Ui.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ui.DITA])),...["epub"].map((t=>[t,Ui.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ui.EXCEL])),...["flac"].map((t=>[t,Ui.FLAC])),...["gif"].map((t=>[t,Ui.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ui.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ui.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,Ui.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ui.JPEG])),...["json"].map((t=>[t,Ui.JSON])),...["m4a","m4p"].map((t=>[t,Ui.M4A])),...["mov","qt"].map((t=>[t,Ui.MOV])),...["mp3"].map((t=>[t,Ui.MP3])),...["mp4","m4v"].map((t=>[t,Ui.MP4])),...["ogg","oga"].map((t=>[t,Ui.OGG])),...["pdf","ps"].map((t=>[t,Ui.PDF])),...["png"].map((t=>[t,Ui.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ui.POWERPOINT])),...["rar"].map((t=>[t,Ui.RAR])),...["stp"].map((t=>[t,Ui.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ui.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,Ui.VIDEO])),...["wav"].map((t=>[t,Ui.WAV])),...["wma"].map((t=>[t,Ui.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ui.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ui.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ui.YAML])),...["zip"].map((t=>[t,Ui.ZIP]))]),Ni=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Ai={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ti=e.css`
|
|
340
340
|
:host, i.ft-icon {
|
|
341
341
|
display: inline-flex;
|
|
342
342
|
align-items: center;
|
|
@@ -345,14 +345,14 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
:host {
|
|
348
|
-
width: ${
|
|
349
|
-
height: ${
|
|
348
|
+
width: ${Ai.size};
|
|
349
|
+
height: ${Ai.size};
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
i.ft-icon {
|
|
353
353
|
width: 100%;
|
|
354
354
|
height: 100%;
|
|
355
|
-
font-size: ${
|
|
355
|
+
font-size: ${Ai.size};
|
|
356
356
|
line-height: 1;
|
|
357
357
|
font-weight: normal;
|
|
358
358
|
text-transform: none;
|
|
@@ -363,33 +363,33 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
363
363
|
text-rendering: auto;
|
|
364
364
|
-webkit-font-smoothing: antialiased;
|
|
365
365
|
-moz-osx-font-smoothing: grayscale;
|
|
366
|
-
vertical-align: ${
|
|
366
|
+
vertical-align: ${Ai.verticalAlign};
|
|
367
367
|
}
|
|
368
368
|
|
|
369
369
|
i.ft-icon.ft-icon--fluid-topics {
|
|
370
|
-
font-family: ${
|
|
370
|
+
font-family: ${Ai.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
371
371
|
|
|
372
372
|
/* Ugly fix because font is broken */
|
|
373
|
-
font-size: calc(0.75 * ${
|
|
374
|
-
line-height: ${
|
|
373
|
+
font-size: calc(0.75 * ${Ai.size});
|
|
374
|
+
line-height: ${Ai.size};
|
|
375
375
|
position: relative;
|
|
376
376
|
top: -4%;
|
|
377
377
|
justify-content: center;
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
.ft-icon--file-format {
|
|
381
|
-
font-family: ${
|
|
381
|
+
font-family: ${Ai.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
384
|
.ft-icon--material {
|
|
385
|
-
font-family: ${
|
|
385
|
+
font-family: ${Ai.materialFontFamily}, "Material Icons", sans-serif;
|
|
386
386
|
}
|
|
387
387
|
`;var Fi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Fi||(Fi={}));var Di=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ri extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Fi).includes(this.variant)?this.variant:Fi.fluid_topics,i=t!==Fi.material||!!this.value;return e.html`
|
|
388
388
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
389
389
|
${n.unsafeHTML(this.resolvedIcon)}
|
|
390
390
|
<slot ?hidden=${i}></slot>
|
|
391
391
|
</i>
|
|
392
|
-
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Fi.file_format:this.resolvedIcon=null!==(t=Ui[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Fi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=
|
|
392
|
+
`}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Fi.file_format:this.resolvedIcon=null!==(t=Ui[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Fi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=ji[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ri.elementDefinitions={},Ri.styles=Ti,Di([o.property()],Ri.prototype,"variant",void 0),Di([o.property()],Ri.prototype,"value",void 0),Di([o.state()],Ri.prototype,"resolvedIcon",void 0),Di([o.query("slot")],Ri.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ri);const Pi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Zi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Pi,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",hi.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Pi),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),iconPadding:i.FtCssVariableFactory.create("--ft-button-icon-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Li=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),_i={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Li,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Li)},Wi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Ki=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),Hi=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),Gi=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),qi=[e.css`
|
|
393
393
|
:host {
|
|
394
394
|
display: inline-block;
|
|
395
395
|
max-width: 100%;
|
|
@@ -400,7 +400,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
400
400
|
box-shadow: 0px 0px 0px transparent;
|
|
401
401
|
border: 0px solid transparent;
|
|
402
402
|
text-shadow: 0px 0px 0px transparent;
|
|
403
|
-
font-size: ${
|
|
403
|
+
font-size: ${Zi.fontSize};
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
button:hover {
|
|
@@ -429,31 +429,31 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
429
429
|
border: none;
|
|
430
430
|
pointer-events: auto;
|
|
431
431
|
|
|
432
|
-
--ft-button-internal-line-height: max(calc(${
|
|
433
|
-
--ft-button-internal-color: ${
|
|
434
|
-
${i.setVariable(
|
|
435
|
-
${i.setVariable(l.color,
|
|
432
|
+
--ft-button-internal-line-height: max(calc(${Zi.fontSize} + 2px), ${Zi.iconSize});
|
|
433
|
+
--ft-button-internal-color: ${Zi.color};
|
|
434
|
+
${i.setVariable(Ai.size,Zi.iconSize)};
|
|
435
|
+
${i.setVariable(l.color,Zi.rippleColor)};
|
|
436
436
|
|
|
437
|
-
border-radius: ${
|
|
438
|
-
padding: ${
|
|
439
|
-
background-color: ${
|
|
437
|
+
border-radius: ${Zi.borderRadius};
|
|
438
|
+
padding: ${Zi.verticalPadding} ${Zi.horizontalPadding};
|
|
439
|
+
background-color: ${Zi.backgroundColor};
|
|
440
440
|
color: var(--ft-button-internal-color);
|
|
441
441
|
-webkit-mask-image: radial-gradient(white, black);
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
.ft-button.ft-button--outlined {
|
|
445
445
|
border: 1px solid var(--ft-button-internal-color);
|
|
446
|
-
padding: calc(${
|
|
446
|
+
padding: calc(${Zi.verticalPadding} - 1px) calc(${Zi.horizontalPadding} - 1px);
|
|
447
447
|
}
|
|
448
448
|
|
|
449
449
|
.ft-button.ft-button--dense {
|
|
450
|
-
padding: ${
|
|
451
|
-
border-radius: ${
|
|
450
|
+
padding: ${Ki} ${Hi};
|
|
451
|
+
border-radius: ${Wi};
|
|
452
452
|
gap: ${Gi};
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
456
|
-
padding: calc(${
|
|
456
|
+
padding: calc(${Ki} - 1px) calc(${Hi} - 1px);
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
.ft-button:not([disabled]):hover {
|
|
@@ -461,16 +461,16 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
.ft-button--round {
|
|
464
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
464
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Zi.verticalPadding});
|
|
465
465
|
}
|
|
466
466
|
|
|
467
467
|
.ft-button--round.ft-button--dense {
|
|
468
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
468
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ki});
|
|
469
469
|
}
|
|
470
470
|
|
|
471
471
|
.ft-button[disabled] {
|
|
472
472
|
filter: grayscale(1);
|
|
473
|
-
opacity: ${
|
|
473
|
+
opacity: ${Zi.opacityDisabled};
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
.ft-button.ft-button--primary {
|
|
@@ -489,7 +489,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
489
489
|
white-space: nowrap;
|
|
490
490
|
text-overflow: ellipsis;
|
|
491
491
|
display: block;
|
|
492
|
-
margin: 0 ${
|
|
492
|
+
margin: 0 ${Zi.iconPadding};
|
|
493
493
|
${i.setVariable(hi.fontSize,"1em")};
|
|
494
494
|
${i.setVariable(hi.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
495
495
|
}
|
|
@@ -508,13 +508,13 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
.ft-button--label[hidden] + ft-icon {
|
|
511
|
-
margin: 0 calc(${
|
|
512
|
-
padding: 0 ${
|
|
511
|
+
margin: 0 calc(${Zi.horizontalPadding} * -1);
|
|
512
|
+
padding: 0 ${Zi.verticalPadding};
|
|
513
513
|
}
|
|
514
514
|
|
|
515
515
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
516
516
|
margin: 0 calc(${Hi} * -1);
|
|
517
|
-
padding: 0 ${
|
|
517
|
+
padding: 0 ${Ki};
|
|
518
518
|
}
|
|
519
519
|
|
|
520
520
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -523,8 +523,8 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
ft-loader {
|
|
526
|
-
${i.setVariable(
|
|
527
|
-
${i.setVariable(
|
|
526
|
+
${i.setVariable(Ei.size,Zi.iconSize)};
|
|
527
|
+
${i.setVariable(Ei.color,"var(--ft-button-internal-color)")};
|
|
528
528
|
}
|
|
529
529
|
`,i.noTextSelect];var Vi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Qi extends i.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!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=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"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};return this.addTooltipIfNeeded(e.html`
|
|
530
530
|
<button part="button"
|
|
@@ -549,7 +549,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
549
549
|
</ft-tooltip>
|
|
550
550
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
551
551
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
552
|
-
<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}}Qi.elementDefinitions={"ft-ripple":
|
|
552
|
+
<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}}Qi.elementDefinitions={"ft-ripple":y,"ft-tooltip":Oi,"ft-typography":ki,"ft-icon":Ri,"ft-loader":Mi},Qi.styles=[i.safariEllipsisFix,qi],Vi([o.property({type:String,reflect:!0})],Qi.prototype,"role",void 0),Vi([o.property({type:Boolean})],Qi.prototype,"primary",void 0),Vi([o.property({type:Boolean})],Qi.prototype,"outlined",void 0),Vi([o.property({type:Boolean})],Qi.prototype,"disabled",void 0),Vi([o.property({type:Boolean})],Qi.prototype,"dense",void 0),Vi([o.property({type:Boolean})],Qi.prototype,"round",void 0),Vi([o.property()],Qi.prototype,"label",void 0),Vi([o.property()],Qi.prototype,"icon",void 0),Vi([o.property()],Qi.prototype,"iconVariant",void 0),Vi([o.property({type:Boolean})],Qi.prototype,"trailingIcon",void 0),Vi([o.property({type:Boolean})],Qi.prototype,"loading",void 0),Vi([o.property()],Qi.prototype,"tooltipPosition",void 0),Vi([o.property({type:Boolean})],Qi.prototype,"hideTooltip",void 0),Vi([o.property({type:Boolean})],Qi.prototype,"forceTooltip",void 0),Vi([o.query(".ft-button")],Qi.prototype,"button",void 0),Vi([o.query(".ft-button--label slot")],Qi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Qi);const Xi={height:i.FtCssVariableFactory.create("--ft-search-input-height","SIZE","38px"),borderRadius:i.FtCssVariableFactory.extend("--ft-search-input-border-radius",i.designSystemVariables.borderRadiusS),desktopFiltersHeight:i.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","SIZE","350px"),floatingZIndex:i.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","NUMBER","3"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),colorOnSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),elevation02:i.FtCssVariableFactory.external(i.designSystemVariables.elevation02,"Design system"),buttonColor:i.FtCssVariableFactory.external(Zi.color,"Button"),buttonRippleColor:i.FtCssVariableFactory.external(Zi.rippleColor,"Button")},Yi=e.css`
|
|
553
553
|
* {
|
|
554
554
|
box-sizing: border-box;
|
|
555
555
|
}
|
|
@@ -610,7 +610,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
610
610
|
.ft-search-input > ft-button,
|
|
611
611
|
.ft-search-input--actions ft-button {
|
|
612
612
|
flex-shrink: 0;
|
|
613
|
-
${i.setVariable(
|
|
613
|
+
${i.setVariable(Zi.backgroundColor,"transparent")};
|
|
614
614
|
}
|
|
615
615
|
|
|
616
616
|
.ft-search-input .ft-search-input--launch-search,
|
|
@@ -633,12 +633,12 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
633
633
|
`,Ji=e.css`
|
|
634
634
|
`,te=i.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,i)=>{t.baseUrl=i.payload},setApiIntegrationIdentifier:(t,i)=>{t.apiIntegrationIdentifier=i.payload},setUiLocale:(t,i)=>{t.uiLocale=i.payload},setAvailableUiLocales:(t,i)=>{t.availableUiLocales=i.payload},setEditorMode:(t,i)=>{t.editorMode=i.payload},setNoCustom:(t,i)=>{t.noCustom=i.payload},setNoCustomComponent:(t,i)=>{t.noCustomComponent=i.payload},setSession:(t,i)=>{t.session=i.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class ie{static build(t){const{baseUrl:i,apiIntegrationIdentifier:e}=te.getState(),o=null!=t?t:e;if(i&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,o,!0)}static get(t){var i;return null!=t?ie.build(t):null!==(i=ie.API)&&void 0!==i?i:ie.API=ie.build()}static await(t){return new Promise((i=>{let e=ie.get(t);if(e)i(e);else{const o=te.subscribe((()=>{e=ie.get(t),e&&(o(),i(e))}))}}))}}var ee;const oe=Symbol("clearAfterUnitTest");class se{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={},this.currentUiLocale="",this[ee]=()=>{this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={}},this.currentUiLocale=te.getState().uiLocale,te.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=te.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const i=t.name.toLowerCase();this.cache.setFinal(i,t),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const s={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};i.deepEqual(this.defaultMessages[t],s)||(this.defaultMessages[t]=s,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var s,n,r;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(n=null===(s=this.cache.getNow(t))||void 0===s?void 0:s.messages)&&void 0!==n?n:{};return new i.ParametrizedLabelResolver(null!==(r=this.defaultMessages[t])&&void 0!==r?r:{},a).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,i){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(i),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(i)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>i.delay(0).then((()=>t())).catch((()=>null)))))}}ee=oe,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new se((async(t,i)=>(await ie.await()).getFluidTopicsMessageContext(t,i)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new se((async(t,i)=>(await ie.await()).getCustomMessageContext(t,i))));const ne=window.FluidTopicsI18nService,re=window.FluidTopicsCustomI18nService;var ae=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class le extends i.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>ie.get(),this.cache=new i.CacheRegistry,this.cleanSessionDebouncer=new i.Debouncer}render(){return e.html`
|
|
635
635
|
<slot></slot>
|
|
636
|
-
`}updated(t){super.updated(t),t.has("baseUrl")&&te.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&te.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&te.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&te.actions.setNoCustom(this.noCustom),t.has("editorMode")&&te.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&te.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&te.actions.setSession(this.session),t.has("availableUiLocales")&&te.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>ne.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const i=await t.getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),i.idleTimeoutInMillis),i}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}le.elementDefinitions={},le.styles=Ji,ae([o.property()],le.prototype,"baseUrl",void 0),ae([o.property()],le.prototype,"apiIntegrationIdentifier",void 0),ae([o.property()],le.prototype,"uiLocale",void 0),ae([i.jsonProperty([])],le.prototype,"availableUiLocales",void 0),ae([o.property({type:Boolean})],le.prototype,"editorMode",void 0),ae([o.property({type:Boolean})],le.prototype,"noCustom",void 0),ae([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],le.prototype,"noCustomComponent",void 0),ae([o.property({type:Boolean})],le.prototype,"withManualResources",void 0),ae([i.jsonProperty([])],le.prototype,"messageContexts",void 0),ae([i.jsonProperty(void 0)],le.prototype,"session",void 0),ae([o.property({type:Object})],le.prototype,"apiProvider",void 0),i.customElement("ft-app-context")(le);class
|
|
637
|
-
`;var
|
|
636
|
+
`}updated(t){super.updated(t),t.has("baseUrl")&&te.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&te.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&te.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&te.actions.setNoCustom(this.noCustom),t.has("editorMode")&&te.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&te.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&te.actions.setSession(this.session),t.has("availableUiLocales")&&te.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>ne.addContext(t))),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){const t=this.apiProvider();!this.withManualResources&&t&&(null==this.session&&(this.session=await this.cache.get("session",(async()=>{const i=await t.getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),i.idleTimeoutInMillis),i}))),null==this.availableUiLocales&&(this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>t.getAvailableUiLocales()))))}}le.elementDefinitions={},le.styles=Ji,ae([o.property()],le.prototype,"baseUrl",void 0),ae([o.property()],le.prototype,"apiIntegrationIdentifier",void 0),ae([o.property()],le.prototype,"uiLocale",void 0),ae([i.jsonProperty([])],le.prototype,"availableUiLocales",void 0),ae([o.property({type:Boolean})],le.prototype,"editorMode",void 0),ae([o.property({type:Boolean})],le.prototype,"noCustom",void 0),ae([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],le.prototype,"noCustomComponent",void 0),ae([o.property({type:Boolean})],le.prototype,"withManualResources",void 0),ae([i.jsonProperty([])],le.prototype,"messageContexts",void 0),ae([i.jsonProperty(void 0)],le.prototype,"session",void 0),ae([o.property({type:Object})],le.prototype,"apiProvider",void 0);class pe{async listMySearches(){var t;return(null===(t=te.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await ie.await()).listMySearches(te.getState().session.profile.userId):[]}}const he=new i.CacheRegistry;class ce{async listMyBookmarks(){return he.get("bookmarks",(async()=>(await ie.await()).listMyBookmarks(te.getState().session.profile.userId)))}clearCache(){he.clear("bookmarks")}}const de=i.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});new class{constructor(){this.currentSession=te.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ce,te.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=te.getState();i.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==e?void 0:e.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){de.actions.savedSearches(void 0)}clearMyBookmarks(){de.actions.bookmarks(void 0)}async reloadMySearches(){const t=new pe,i=await t.listMySearches();de.actions.savedSearches(i)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const i=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;de.actions.bookmarks(i)}}},i.customElement("ft-app-context")(le);class fe extends Event{constructor(){super(fe.eventName)}}fe.eventName="search-context-clear-all-filters";var ue=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ge extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const xe=Symbol("registerInterval");class ve extends(function(t){var i;class e extends t{constructor(){super(...arguments),this[i]=0}setSearchStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"search")}clearStateManager(){this.stateManager&&(this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[xe]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[xe]):this.dispatchEvent(new ge)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=xe,ue([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}const ye=e.css`
|
|
637
|
+
`;var be=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const me=Symbol("i18nProperties"),$e=Symbol("i18nUnsubs");function we(t){var i;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[i]=new Map}get i18nService(){return this.useCustomMessageContexts?re:ne}i18n(t,i,...e){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,i,...e);const s=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...s)}onI18nUpdate(t){var i;null===(i=this[me])||void 0===i||i.forEach(((i,e)=>{i.context.toLowerCase()===t.toLowerCase()&&(this[e]=this.i18n(i))})),setTimeout((()=>this.requestUpdate()),0)}updated(t){var i;super.updated(t),null===(i=this[me])||void 0===i||i.forEach(((t,i)=>{null!=t.argsProvider&&(this[i]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[me]&&new Set([...this[me].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,i){t=t.toLowerCase(),this[$e].has(t)||this[$e].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=i?i:{})}addI18nContext(t,i){this.addI18nMessages(t.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[$e].forEach((t=>t())),this[$e].clear()}}return i=$e,be([o.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class ke extends(we(i.FtLitElement)){}class Se extends(we(i.FtLitElementRedux)){}var Ce=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class ze extends Se{constructor(){super(),this.editorMode=!1,this.addStore(te)}render(){return this.key&&this.context?e.html`
|
|
638
638
|
<span class="ft-i18n">
|
|
639
639
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
640
640
|
</span>
|
|
641
|
-
`:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}
|
|
641
|
+
`:this.editorMode?"Select a context and a label key.":e.nothing}update(t){super.update(t),this.context&&this.key&&this.defaultMessage&&this.addI18nMessages(this.context,{[this.key]:this.defaultMessage})}}ze.elementDefinitions={},ze.styles=ye,Ce([i.redux()],ze.prototype,"editorMode",void 0),Ce([o.property()],ze.prototype,"context",void 0),Ce([o.property()],ze.prototype,"key",void 0),Ce([i.jsonProperty([])],ze.prototype,"args",void 0),Ce([o.property()],ze.prototype,"defaultMessage",void 0);class Oe{static build(t){return new Oe(t)}static fromGwt(t){return new Oe(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,i)=>{const e=i;return t=>({context:this.name,key:e,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,i)=>(...t)=>ne.resolveMessage(this.name,i,...t)})}}i.customElement("ft-i18n")(ze);const Ee=Oe.build("designedSearchInput"),Ie=e.css`
|
|
642
642
|
* {
|
|
643
643
|
box-sizing: border-box;
|
|
644
644
|
}
|
|
@@ -680,7 +680,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
680
680
|
flex-grow: 1;
|
|
681
681
|
flex-shrink: 1;
|
|
682
682
|
}
|
|
683
|
-
`;var
|
|
683
|
+
`;var Me=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class je extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let Ue=class extends ve{render(){return e.html`
|
|
684
684
|
<div class="ft-search-input-suggestion ft-word-wrap"
|
|
685
685
|
part="container"
|
|
686
686
|
@keydown=${t=>this.onSuggestKeyDown(t)}>
|
|
@@ -696,16 +696,16 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
696
696
|
</a>
|
|
697
697
|
`))}
|
|
698
698
|
</div>
|
|
699
|
-
`}onSuggestKeyDown(t){var i,e,o,s,n,r;switch(t.key){case"ArrowUp":null===(o=null!==(e=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.previousElementSibling)&&void 0!==e?e:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(r=null!==(n=null===(s=this.getFocusedSuggestionElement())||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,i){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,i)}onSuggestSelected(t,i){t.preventDefault(),this.dispatchEvent(new
|
|
699
|
+
`}onSuggestKeyDown(t){var i,e,o,s,n,r;switch(t.key){case"ArrowUp":null===(o=null!==(e=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.previousElementSibling)&&void 0!==e?e:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(r=null!==(n=null===(s=this.getFocusedSuggestionElement())||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.getFirstSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,i){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,i)}onSuggestSelected(t,i){t.preventDefault(),this.dispatchEvent(new je(i))}getIcon(t){const i="DOCUMENT"===t.type?Fi.file_format:Fi.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?ji.BOOK:ji.ARTICLE;break;case"DOCUMENT":o=function(t,i){var e,o,s,n;t=(null!=t?t:"").toLowerCase(),i=(null!=i?i:"").toLowerCase();const[r,a]=((null!==(e=Ni.get(t))&&void 0!==e?e:t)+"/").split("/");return null!==(n=null!==(s=null!==(o=Bi.get(a))&&void 0!==o?o:Bi.get(i))&&void 0!==s?s:Bi.get(r))&&void 0!==n?n:Ui.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=ji.TOPICS}return e.html`
|
|
700
700
|
<ft-icon .variant="${i}" .value="${o}" part="suggestion-icon"></ft-icon>
|
|
701
|
-
`}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};
|
|
701
|
+
`}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};Ue.elementDefinitions={"ft-ripple":y,"ft-typography":ki,"ft-icon":Ri},Ue.styles=[i.wordWrap,Ie],Me([i.redux()],Ue.prototype,"suggestResults",void 0),Ue=Me([o.customElement("ft-search-input-suggestion")],Ue);var Be=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ne extends(we(ve)){constructor(){super(),this.liveQuery="",this.forceCloseSuggestion=!1,this.addI18nContext(Ee)}render(){var t,i;let o={"ft-search-input":!0,"ft-search-input--with-suggestions":null!==(i=null===(t=this.suggestResults)||void 0===t?void 0:t.length)&&void 0!==i&&i,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return e.html`
|
|
702
702
|
<div class="${s.classMap(o)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
|
|
703
703
|
<div class="ft-search-input--input-container" part="input-container" tabindex="-1">
|
|
704
704
|
<div class="ft-search-input--input-outline" part="input-outline">
|
|
705
705
|
<input class="ft-search-input--input ft-typography--body2"
|
|
706
706
|
part="input"
|
|
707
707
|
type="text"
|
|
708
|
-
placeholder="${
|
|
708
|
+
placeholder="${Ee.messages.placeholder()}"
|
|
709
709
|
.value="${this.liveQuery}"
|
|
710
710
|
@keydown=${t=>this.onSearchBarKeyDown(t)}
|
|
711
711
|
@keyup=${t=>this.onSearchBarKeyUp(t)}>
|
|
@@ -721,7 +721,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
721
721
|
part="clear-query"
|
|
722
722
|
icon="close"
|
|
723
723
|
round dense
|
|
724
|
-
label="${
|
|
724
|
+
label="${Ee.messages.clearButton()}"
|
|
725
725
|
@click=${()=>this.liveQuery=""}
|
|
726
726
|
></ft-button>
|
|
727
727
|
<div class="ft-search-input--separator"></div>
|
|
@@ -730,9 +730,9 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
730
730
|
part="launch-search-in-input"
|
|
731
731
|
icon="search"
|
|
732
732
|
round dense
|
|
733
|
-
label="${
|
|
733
|
+
label="${Ee.messages.searchButton()}"
|
|
734
734
|
@click=${()=>this.launchSearch()}
|
|
735
735
|
></ft-button>
|
|
736
736
|
</div>
|
|
737
737
|
</div>
|
|
738
|
-
`}onSearchBarKeyDown(t){if("ArrowDown"===t.key)t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion()}onSearchBarKeyUp(t){var i,e;"Enter"===t.key?(null===(i=this.stateManager)||void 0===i||i.setQuery(this.input.value),this.forceCloseSuggestion=!0):null===(e=this.stateManager)||void 0===e||e.setLiveQuery(this.input.value)}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var i;null===(i=this.stateManager)||void 0===i||i.setQuery(t.detail),this.forceCloseSuggestion=!0}}
|
|
738
|
+
`}onSearchBarKeyDown(t){if("ArrowDown"===t.key)t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion()}onSearchBarKeyUp(t){var i,e;"Enter"===t.key?(null===(i=this.stateManager)||void 0===i||i.setQuery(this.input.value),this.forceCloseSuggestion=!0):null===(e=this.stateManager)||void 0===e||e.setLiveQuery(this.input.value)}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var i;null===(i=this.stateManager)||void 0===i||i.setQuery(t.detail),this.forceCloseSuggestion=!0}}Ne.elementDefinitions={"ft-search-input-suggestion":Ue,"ft-button":Qi},Ne.styles=[xi,Yi],Be([i.redux()],Ne.prototype,"request",void 0),Be([i.redux()],Ne.prototype,"liveQuery",void 0),Be([i.redux()],Ne.prototype,"suggestResults",void 0),Be([o.state()],Ne.prototype,"forceCloseSuggestion",void 0),Be([o.query(".ft-search-input--input")],Ne.prototype,"input",void 0),Be([o.query("ft-search-input-suggestion")],Ne.prototype,"suggestion",void 0),i.customElement("ft-search-input")(Ne),t.FtSearchInput=Ne,t.FtSearchInputCssVariables=Xi,t.styles=Yi}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat);
|