@fluid-topics/ft-search-saved-searches 1.0.53 → 1.0.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,i,e,o,n,r
|
|
1
|
+
!function(t,i,e,o,n,s,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")},h=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),c=h,d=i.FtCssVariableFactory.extend("--ft-ripple-background-color",h),p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),f=p,u=i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),v=e.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
4
|
}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
40
|
-
background-color: ${
|
|
40
|
+
background-color: ${d};
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
opacity: ${l.opacityContentOnSurfacePressed};
|
|
89
89
|
transform: translate(-50%, -50%) scale(1);
|
|
90
90
|
}
|
|
91
|
-
`;var g
|
|
91
|
+
`;var y,g=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class b 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:n}=this.getCoordinates(t),s=null!==(e=null===(i=this.ripple)||void 0===i?void 0:i.getBoundingClientRect())&&void 0!==e?e:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
|
|
92
92
|
<style>
|
|
93
93
|
.ft-ripple .ft-ripple--effect,
|
|
94
94
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -105,25 +105,25 @@
|
|
|
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"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}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=v,y([o.property({type:Boolean})],b.prototype,"primary",void 0),y([o.property({type:Boolean})],b.prototype,"secondary",void 0),y([o.property({type:Boolean})],b.prototype,"unbounded",void 0),y([o.property({type:Boolean})],b.prototype,"activated",void 0),y([o.property({type:Boolean})],b.prototype,"selected",void 0),y([o.property({type:Boolean})],b.prototype,"disabled",void 0),y([o.state()],b.prototype,"hovered",void 0),y([o.state()],b.prototype,"focused",void 0),y([o.state()],b.prototype,"pressed",void 0),y([o.state()],b.prototype,"rippling",void 0),y([o.state()],b.prototype,"rippleSize",void 0),y([o.state()],b.prototype,"originX",void 0),y([o.state()],b.prototype,"originY",void 0),y([o.query(".ft-ripple")],b.prototype,"ripple",void 0),y([o.query(".ft-ripple--effect")],b.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(b);const x=window,m=x.trustedTypes,$=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,w="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,k="?"+S,E=`<${k}>`,O=document,A=()=>O.createComment(""),C=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,B="[ \t\n\f\r]",I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,z=/>/g,U=RegExp(`>|${B}(?:([^\\s"'>=/]+)(${B}*=${B}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,j=/"/g,L=/^(?:script|style|textarea|title)$/i,_=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),M=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),D=new WeakMap,F=O.createTreeWalker(O,129,null,!1),H=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",s=I;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(s.lastIndex=c,l=s.exec(e),null!==l);)c=s.lastIndex,s===I?"!--"===l[1]?s=R:void 0!==l[1]?s=z:void 0!==l[2]?(L.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=U):void 0!==l[3]&&(s=U):s===U?">"===l[0]?(s=null!=n?n:I,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?U:'"'===l[3]?j:N):s===j||s===N?s=U:s===R||s===z?s=I:(s=U,n=void 0);const p=s===U&&t[i+1].startsWith("/>")?" ":"";r+=s===I?e+E:h>=0?(o.push(a),e.slice(0,h)+w+e.slice(h)+S+p):e+S+(-2===h?(o.push(void 0),i):p)}const a=r+(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 Z{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=H(t,i);if(this.el=Z.createElement(l,e),F.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=F.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(w)||i.startsWith(S)){const e=h[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+w).split(S),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?Y:"?"===i[1]?X:"@"===i[1]?J:q})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(L.test(o.tagName)){const t=o.textContent.split(S),i=t.length-1;if(i>0){o.textContent=m?m.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],A()),F.nextNode(),a.push({type:2,index:++n});o.append(t[i],A())}}}else if(8===o.nodeType)if(o.data===k)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(S,t+1));)a.push({type:7,index:n}),t+=S.length-1}n++}}static createElement(t,i){const e=O.createElement("template");return e.innerHTML=t,e}}function K(t,i,e=t,o){var n,r,s,a;if(i===M)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=C(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,e,o)),void 0!==o?(null!==(s=(a=e)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=K(t,l._$AS(t,i.values),l,o)),i}class W{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,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:O).importNode(e,!0);F.currentNode=n;let r=F.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let i;2===l.type?i=new G(r,r.nextSibling,this,t):1===l.type?i=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(i=new Q(r,this,t)),this._$AV.push(i),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=F.nextNode(),s++)}return n}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 n;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===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$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),C(t)?t===P||null==t||""===t?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==M&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>T(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&&C(this._$AH)?this._$AA.nextSibling.data=t:this.$(O.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new W(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=D.get(t.strings);return void 0===i&&D.set(t.strings,i=new Z(t)),i}T(t){T(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new G(this.k(A()),this.k(A()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class q{constructor(t,i,e,o,n){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=P}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=K(this,t,i,0),r=!C(t)||t!==this._$AH&&t!==M,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=K(this,o[e+s],i,s),a===M&&(a=this._$AH[s]),r||(r=!C(a)||a!==this._$AH[s]),a===P?t=P:t!==P&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}}const V=m?m.emptyScript:"";class X extends q{constructor(){super(...arguments),this.type=4}j(t){t&&t!==P?this.element.setAttribute(this.name,V):this.element.removeAttribute(this.name)}}class J extends q{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=K(this,t,i,0))&&void 0!==e?e:P)===M)return;const o=this._$AH,n=t===P&&o!==P||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==P&&(o===P||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const tt=x.litHtmlPolyfillSupport;null==tt||tt(Z,G),(null!==(g=x.litHtmlVersions)&&void 0!==g?g:x.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"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,n;return null!=i.x?({x:o,y:n}=i):null!=e.touches&&(o=e.touches[0].clientX,n=e.touches[0].clientY),{x:o,y:n}}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=v,g([o.property({type:Boolean})],b.prototype,"primary",void 0),g([o.property({type:Boolean})],b.prototype,"secondary",void 0),g([o.property({type:Boolean})],b.prototype,"unbounded",void 0),g([o.property({type:Boolean})],b.prototype,"activated",void 0),g([o.property({type:Boolean})],b.prototype,"selected",void 0),g([o.property({type:Boolean})],b.prototype,"disabled",void 0),g([o.state()],b.prototype,"hovered",void 0),g([o.state()],b.prototype,"focused",void 0),g([o.state()],b.prototype,"pressed",void 0),g([o.state()],b.prototype,"rippling",void 0),g([o.state()],b.prototype,"rippleSize",void 0),g([o.state()],b.prototype,"originX",void 0),g([o.state()],b.prototype,"originY",void 0),g([o.query(".ft-ripple")],b.prototype,"ripple",void 0),g([o.query(".ft-ripple--effect")],b.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(b);const x=window,m=x.trustedTypes,$=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,w="$lit$",S=`lit$${(Math.random()+"").slice(9)}$`,k="?"+S,E=`<${k}>`,O=document,A=()=>O.createComment(""),C=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,T="[ \t\n\f\r]",I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,R=/-->/g,U=/>/g,z=RegExp(`>|${T}(?:([^\\s"'>=/]+)(${T}*=${T}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,j=/"/g,L=/^(?:script|style|textarea|title)$/i,M=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),_=Symbol.for("lit-noChange"),P=Symbol.for("lit-nothing"),D=new WeakMap,F=O.createTreeWalker(O,129,null,!1),H=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=I;for(let i=0;i<e;i++){const e=t[i];let a,l,h=-1,c=0;for(;c<e.length&&(r.lastIndex=c,l=r.exec(e),null!==l);)c=r.lastIndex,r===I?"!--"===l[1]?r=R:void 0!==l[1]?r=U:void 0!==l[2]?(L.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=z):void 0!==l[3]&&(r=z):r===z?">"===l[0]?(r=null!=n?n:I,h=-1):void 0===l[1]?h=-2:(h=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?z:'"'===l[3]?j:N):r===j||r===N?r=z:r===R||r===U?r=I:(r=z,n=void 0);const d=r===z&&t[i+1].startsWith("/>")?" ":"";s+=r===I?e+E:h>=0?(o.push(a),e.slice(0,h)+w+e.slice(h)+S+d):e+S+(-2===h?(o.push(void 0),i):d)}const a=s+(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 Z{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,h]=H(t,i);if(this.el=Z.createElement(l,e),F.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=F.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith(w)||i.startsWith(S)){const e=h[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+w).split(S),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?Y:"?"===i[1]?X:"@"===i[1]?J:q})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(L.test(o.tagName)){const t=o.textContent.split(S),i=t.length-1;if(i>0){o.textContent=m?m.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],A()),F.nextNode(),a.push({type:2,index:++n});o.append(t[i],A())}}}else if(8===o.nodeType)if(o.data===k)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(S,t+1));)a.push({type:7,index:n}),t+=S.length-1}n++}}static createElement(t,i){const e=O.createElement("template");return e.innerHTML=t,e}}function K(t,i,e=t,o){var n,s,r,a;if(i===_)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const h=C(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(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 W{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,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:O).importNode(e,!0);F.currentNode=n;let s=F.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new G(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new Q(s,this,t)),this._$AV.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=F.nextNode(),r++)}return n}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 n;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===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$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),C(t)?t===P||null==t||""===t?(this._$AH!==P&&this._$AR(),this._$AH=P):t!==this._$AH&&t!==_&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>B(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&&C(this._$AH)?this._$AA.nextSibling.data=t:this.$(O.createTextNode(t)),this._$AH=t}g(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.v(e);else{const t=new W(n,this),i=t.u(this.options);t.v(e),this.$(i),this._$AH=t}}_$AC(t){let i=D.get(t.strings);return void 0===i&&D.set(t.strings,i=new Z(t)),i}T(t){B(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new G(this.k(A()),this.k(A()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cp=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class q{constructor(t,i,e,o,n){this.type=1,this._$AH=P,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=P}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=K(this,t,i,0),s=!C(t)||t!==this._$AH&&t!==_,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=K(this,o[e+r],i,r),a===_&&(a=this._$AH[r]),s||(s=!C(a)||a!==this._$AH[r]),a===P?t=P:t!==P&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===P?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Y extends q{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===P?void 0:t}}const V=m?m.emptyScript:"";class X extends q{constructor(){super(...arguments),this.type=4}j(t){t&&t!==P?this.element.setAttribute(this.name,V):this.element.removeAttribute(this.name)}}class J extends q{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=K(this,t,i,0))&&void 0!==e?e:P)===_)return;const o=this._$AH,n=t===P&&o!==P||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==P&&(o===P||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const tt=x.litHtmlPolyfillSupport;null==tt||tt(Z,G),(null!==(y=x.litHtmlVersions)&&void 0!==y?y:x.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}),nt=new Map,
|
|
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}),nt=new Map,st=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=i[h];h<o&&void 0!==(s=e[h],n=et(s));)l+=n+i[++h],c=!0;h!==o&&a.push(s),r.push(l),h++}if(h===o&&r.push(i[o]),c){const t=r.join("$$lit$$");void 0===(i=nt.get(t))&&(r.raw=r,nt.set(t,i=r)),e=a}return t(i,...e)})(M);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),ht={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")},ct=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",at),dt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",ht.fontSize,"20px"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",ht.fontWeight,"normal"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",ht.letterSpacing,"0.15px"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",ht.lineHeight,"1.2"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",ht.textTransform,"inherit"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",at),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",ht.fontSize,"14px"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",ht.fontWeight,"normal"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",ht.letterSpacing,"0.105px"),mt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",ht.lineHeight,"1.7"),$t=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",ht.textTransform,"inherit"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",lt),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",ht.fontSize,"16px"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",ht.fontWeight,"600"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",ht.letterSpacing,"0.144px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",ht.lineHeight,"1.5"),At=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",ht.textTransform,"inherit"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",lt),Bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",ht.fontSize,"14px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",ht.fontWeight,"normal"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",ht.letterSpacing,"0.098px"),Rt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",ht.lineHeight,"1.7"),Ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",ht.textTransform,"inherit"),zt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",lt),Nt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",ht.fontSize,"16px"),jt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",ht.fontWeight,"normal"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",ht.letterSpacing,"0.496px"),Mt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",ht.lineHeight,"1.5"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",ht.textTransform,"inherit"),Pt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",lt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",ht.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",ht.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",ht.letterSpacing,"0.252px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",ht.lineHeight,"1.4"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",ht.textTransform,"inherit")},Dt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",lt),Ft=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",ht.fontSize,"12px"),Ht=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",ht.fontWeight,"normal"),Zt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",ht.letterSpacing,"0.396px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",ht.lineHeight,"1.33"),Wt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",ht.textTransform,"inherit"),Gt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",lt),qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",ht.fontSize,"10px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",ht.fontWeight,"normal"),Vt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",ht.letterSpacing,"0.33px"),Xt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",ht.lineHeight,"1.6"),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",ht.textTransform,"inherit"),Qt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",lt),ti=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",ht.fontSize,"10px"),ii=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",ht.fontWeight,"normal"),ei=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",ht.letterSpacing,"1.5px"),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",ht.lineHeight,"1.6"),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",ht.textTransform,"uppercase"),si={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",lt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",ht.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",ht.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",ht.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",ht.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",ht.textTransform,"uppercase")},ri=e.css`
|
|
115
115
|
.ft-typography--title {
|
|
116
116
|
font-family: ${ct};
|
|
117
|
-
font-size: ${
|
|
118
|
-
font-weight: ${
|
|
117
|
+
font-size: ${dt};
|
|
118
|
+
font-weight: ${pt};
|
|
119
119
|
letter-spacing: ${ft};
|
|
120
120
|
line-height: ${ut};
|
|
121
121
|
text-transform: ${vt};
|
|
122
122
|
}
|
|
123
123
|
`,ai=e.css`
|
|
124
124
|
.ft-typography--title-dense {
|
|
125
|
-
font-family: ${
|
|
126
|
-
font-size: ${
|
|
125
|
+
font-family: ${yt};
|
|
126
|
+
font-size: ${gt};
|
|
127
127
|
font-weight: ${bt};
|
|
128
128
|
letter-spacing: ${xt};
|
|
129
129
|
line-height: ${mt};
|
|
@@ -141,23 +141,23 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
141
141
|
`,hi=e.css`
|
|
142
142
|
.ft-typography--subtitle2 {
|
|
143
143
|
font-family: ${Ct};
|
|
144
|
-
font-size: ${
|
|
145
|
-
font-weight: ${
|
|
144
|
+
font-size: ${Bt};
|
|
145
|
+
font-weight: ${Tt};
|
|
146
146
|
letter-spacing: ${It};
|
|
147
147
|
line-height: ${Rt};
|
|
148
|
-
text-transform: ${
|
|
148
|
+
text-transform: ${Ut};
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
`,ci=e.css`
|
|
152
152
|
.ft-typography--body1 {
|
|
153
|
-
font-family: ${
|
|
153
|
+
font-family: ${zt};
|
|
154
154
|
font-size: ${Nt};
|
|
155
155
|
font-weight: ${jt};
|
|
156
156
|
letter-spacing: ${Lt};
|
|
157
|
-
line-height: ${
|
|
158
|
-
text-transform: ${
|
|
157
|
+
line-height: ${Mt};
|
|
158
|
+
text-transform: ${_t};
|
|
159
159
|
}
|
|
160
|
-
`,
|
|
160
|
+
`,di=e.css`
|
|
161
161
|
.ft-typography--body2 {
|
|
162
162
|
font-family: ${Pt.fontFamily};
|
|
163
163
|
font-size: ${Pt.fontSize};
|
|
@@ -166,7 +166,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
166
166
|
line-height: ${Pt.lineHeight};
|
|
167
167
|
text-transform: ${Pt.textTransform};
|
|
168
168
|
}
|
|
169
|
-
`,
|
|
169
|
+
`,pi=e.css`
|
|
170
170
|
.ft-typography--caption {
|
|
171
171
|
font-family: ${Dt};
|
|
172
172
|
font-size: ${Ft};
|
|
@@ -195,25 +195,25 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
195
195
|
}
|
|
196
196
|
`,vi=e.css`
|
|
197
197
|
.ft-typography--button {
|
|
198
|
-
font-family: ${
|
|
199
|
-
font-size: ${
|
|
200
|
-
font-weight: ${
|
|
201
|
-
letter-spacing: ${
|
|
202
|
-
line-height: ${
|
|
203
|
-
text-transform: ${
|
|
204
|
-
}
|
|
205
|
-
`,
|
|
198
|
+
font-family: ${si.fontFamily};
|
|
199
|
+
font-size: ${si.fontSize};
|
|
200
|
+
font-weight: ${si.fontWeight};
|
|
201
|
+
letter-spacing: ${si.letterSpacing};
|
|
202
|
+
line-height: ${si.lineHeight};
|
|
203
|
+
text-transform: ${si.textTransform};
|
|
204
|
+
}
|
|
205
|
+
`,yi=e.css`
|
|
206
206
|
.ft-typography {
|
|
207
207
|
vertical-align: inherit;
|
|
208
208
|
}
|
|
209
|
-
`;var
|
|
209
|
+
`;var gi=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class bi extends i.FtLitElement{constructor(){super(...arguments),this.variant=rt.body1}render(){return this.element?st`
|
|
210
210
|
<${ot(this.element)}
|
|
211
211
|
class="ft-typography ft-typography--${this.variant}">
|
|
212
212
|
<slot></slot>
|
|
213
213
|
</${ot(this.element)}>
|
|
214
|
-
`:
|
|
214
|
+
`:st`
|
|
215
215
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
216
|
-
`}}bi.styles=[
|
|
216
|
+
`}}bi.styles=[ri,ai,li,hi,ci,di,pi,fi,ui,vi,yi],gi([o.property()],bi.prototype,"element",void 0),gi([o.property()],bi.prototype,"variant",void 0),i.customElement("ft-typography")(bi);const xi={padding:i.FtCssVariableFactory.create("--ft-card-padding","SIZE","12px"),outlineStyle:i.FtCssVariableFactory.create("--ft-card-outline-style","UNKNOWN","solid"),outlineWidth:i.FtCssVariableFactory.create("--ft-card-outline-width","SIZE","0"),outlineColor:i.FtCssVariableFactory.extend("--ft-card-outline-color",i.designSystemVariables.colorPrimary),borderRadius:i.FtCssVariableFactory.extend("--ft-card-border-radius",i.designSystemVariables.borderRadiusM),selectedOutlineStyle:i.FtCssVariableFactory.create("--ft-card-selected-outline-style","UNKNOWN","solid"),selectedOutlineWidth:i.FtCssVariableFactory.create("--ft-card-selected-outline-width","SIZE","2px"),selectedOutlineColor:i.FtCssVariableFactory.extend("--ft-card-selected-outline-color",i.designSystemVariables.colorPrimary),selectedBorderRadius:i.FtCssVariableFactory.extend("--ft-card-selected-border-radius",i.designSystemVariables.borderRadiusM),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceHigh:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceHigh,"Design system"),elevation02:i.FtCssVariableFactory.external(i.designSystemVariables.elevation02,"Design system"),elevation04:i.FtCssVariableFactory.external(i.designSystemVariables.elevation04,"Design system")},mi=e.css`
|
|
217
217
|
:host {
|
|
218
218
|
display: block;
|
|
219
219
|
}
|
|
@@ -287,7 +287,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
287
287
|
#action {
|
|
288
288
|
grid-area: actions;
|
|
289
289
|
}
|
|
290
|
-
`;var $i,wi,Si,ki,Ei=function(t,i,e,o){for(var n,
|
|
290
|
+
`;var $i,wi,Si,ki,Ei=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Oi extends i.FtLitElement{constructor(){super(...arguments),this.title="",this.clickable=!1,this.selected=!1,this.noHeader=!1}render(){const t={selected:this.selected,clickable:this.clickable,"no-header":this.noHeader};return e.html`
|
|
291
291
|
<div id="container" part="container" class=${n.classMap(t)}>
|
|
292
292
|
${this.clickable?e.html`
|
|
293
293
|
<ft-ripple primary ?selected=${this.selected}></ft-ripple>
|
|
@@ -315,10 +315,10 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
315
315
|
${i.setVariable(xi.colorOnSurfaceHigh,Ai.color)};
|
|
316
316
|
${i.setVariable(xi.colorOnSurfaceMedium,Ai.color)};
|
|
317
317
|
}
|
|
318
|
-
`,
|
|
319
|
-
`,
|
|
318
|
+
`,Bi=e.css`
|
|
319
|
+
`,Ti=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 Ii{static build(t){const{baseUrl:i,apiIntegrationIdentifier:e}=Ti.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?Ii.build(t):null!==(i=Ii.API)&&void 0!==i?i:Ii.API=Ii.build()}static await(t){return new Promise((i=>{let e=Ii.get(t);if(e)i(e);else{const o=Ti.subscribe((()=>{e=Ii.get(t),e&&(o(),i(e))}))}}))}}var Ri;const Ui=Symbol("clearAfterUnitTest");class zi{constructor(t){this.messageContextProvider=t,this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={},this.currentUiLocale="",this[Ri]=()=>{this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={}},this.currentUiLocale=Ti.getState().uiLocale,Ti.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Ti.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 n={...null!==(o=this.defaultMessages[t])&&void 0!==o?o:{},...e};i.deepEqual(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var n,s,r;t=t.toLowerCase(),this.fetchContext(t);const a=null!==(s=null===(n=this.cache.getNow(t))||void 0===n?void 0:n.messages)&&void 0!==s?s:{};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)))))}}Ri=Ui,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new zi((async(t,i)=>(await Ii.await()).getFluidTopicsMessageContext(t,i)))),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new zi((async(t,i)=>(await Ii.await()).getCustomMessageContext(t,i))));const Ni=window.FluidTopicsI18nService,ji=window.FluidTopicsCustomI18nService;var Li=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Mi 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=()=>Ii.get(),this.cache=new i.CacheRegistry,this.cleanSessionDebouncer=new i.Debouncer}render(){return e.html`
|
|
320
320
|
<slot></slot>
|
|
321
|
-
`}updated(t){super.updated(t),t.has("baseUrl")&&Bi.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Bi.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Bi.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Bi.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Bi.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Bi.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Bi.actions.setSession(this.session),t.has("availableUiLocales")&&Bi.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ni.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()))))}}_i.elementDefinitions={},_i.styles=Ti,Li([o.property()],_i.prototype,"baseUrl",void 0),Li([o.property()],_i.prototype,"apiIntegrationIdentifier",void 0),Li([o.property()],_i.prototype,"uiLocale",void 0),Li([i.jsonProperty([])],_i.prototype,"availableUiLocales",void 0),Li([o.property({type:Boolean})],_i.prototype,"editorMode",void 0),Li([o.property({type:Boolean})],_i.prototype,"noCustom",void 0),Li([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],_i.prototype,"noCustomComponent",void 0),Li([o.property({type:Boolean})],_i.prototype,"withManualResources",void 0),Li([i.jsonProperty([])],_i.prototype,"messageContexts",void 0),Li([i.jsonProperty(void 0)],_i.prototype,"session",void 0),Li([o.property({type:Object})],_i.prototype,"apiProvider",void 0),i.customElement("ft-app-context")(_i);class Mi extends Event{constructor(){super(Mi.eventName)}}Mi.eventName="search-context-clear-all-filters";var Pi=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class Di extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Fi=Symbol("registerInterval");class Hi 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[Fi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Fi]):this.dispatchEvent(new Di)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=Fi,Pi([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}var Zi,Ki;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.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=""}(Zi||(Zi={})),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=""}(Ki||(Ki={})),new Map([...["abw"].map((t=>[t,Ki.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,Ki.AUDIO])),...["avi"].map((t=>[t,Ki.AVI])),...["chm","xhs"].map((t=>[t,Ki.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,Ki.CODE])),...["csv"].map((t=>[t,Ki.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ki.DITA])),...["epub"].map((t=>[t,Ki.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ki.EXCEL])),...["flac"].map((t=>[t,Ki.FLAC])),...["gif"].map((t=>[t,Ki.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ki.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ki.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,Ki.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ki.JPEG])),...["json"].map((t=>[t,Ki.JSON])),...["m4a","m4p"].map((t=>[t,Ki.M4A])),...["mov","qt"].map((t=>[t,Ki.MOV])),...["mp3"].map((t=>[t,Ki.MP3])),...["mp4","m4v"].map((t=>[t,Ki.MP4])),...["ogg","oga"].map((t=>[t,Ki.OGG])),...["pdf","ps"].map((t=>[t,Ki.PDF])),...["png"].map((t=>[t,Ki.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ki.POWERPOINT])),...["rar"].map((t=>[t,Ki.RAR])),...["stp"].map((t=>[t,Ki.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ki.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,Ki.VIDEO])),...["wav"].map((t=>[t,Ki.WAV])),...["wma"].map((t=>[t,Ki.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ki.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ki.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ki.YAML])),...["zip"].map((t=>[t,Ki.ZIP]))]);const Wi={size:i.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:i.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:i.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:i.FtCssVariableFactory.extend("--ft-icon-material-font-family",i.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:i.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Gi=e.css`
|
|
321
|
+
`}updated(t){super.updated(t),t.has("baseUrl")&&Ti.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&Ti.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ti.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&Ti.actions.setNoCustom(this.noCustom),t.has("editorMode")&&Ti.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&Ti.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&Ti.actions.setSession(this.session),t.has("availableUiLocales")&&Ti.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Ni.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()))))}}Mi.elementDefinitions={},Mi.styles=Bi,Li([o.property()],Mi.prototype,"baseUrl",void 0),Li([o.property()],Mi.prototype,"apiIntegrationIdentifier",void 0),Li([o.property()],Mi.prototype,"uiLocale",void 0),Li([i.jsonProperty([])],Mi.prototype,"availableUiLocales",void 0),Li([o.property({type:Boolean})],Mi.prototype,"editorMode",void 0),Li([o.property({type:Boolean})],Mi.prototype,"noCustom",void 0),Li([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Mi.prototype,"noCustomComponent",void 0),Li([o.property({type:Boolean})],Mi.prototype,"withManualResources",void 0),Li([i.jsonProperty([])],Mi.prototype,"messageContexts",void 0),Li([i.jsonProperty(void 0)],Mi.prototype,"session",void 0),Li([o.property({type:Object})],Mi.prototype,"apiProvider",void 0);class _i{async listMySearches(){var t;return(null===(t=Ti.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Ii.await()).listMySearches(Ti.getState().session.profile.userId):[]}}const Pi=new i.CacheRegistry;class Di{async listMyBookmarks(){return Pi.get("bookmarks",(async()=>(await Ii.await()).listMyBookmarks(Ti.getState().session.profile.userId)))}clearCache(){Pi.clear("bookmarks")}}const Fi=i.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Hi=new class{constructor(){this.currentSession=Ti.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Di,Ti.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:e}=Ti.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(){Fi.actions.savedSearches(void 0)}clearMyBookmarks(){Fi.actions.bookmarks(void 0)}async reloadMySearches(){const t=new _i,i=await t.listMySearches();Fi.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;Fi.actions.bookmarks(i)}}};i.customElement("ft-app-context")(Mi);class Zi extends Event{constructor(){super(Zi.eventName)}}Zi.eventName="search-context-clear-all-filters";var Ki=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Wi extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Gi=Symbol("registerInterval");class qi 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[Gi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Gi]):this.dispatchEvent(new Wi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=Gi,Ki([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}var Yi,Vi;!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=""}(Yi||(Yi={})),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=""}(Vi||(Vi={})),new Map([...["abw"].map((t=>[t,Vi.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,Vi.AUDIO])),...["avi"].map((t=>[t,Vi.AVI])),...["chm","xhs"].map((t=>[t,Vi.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,Vi.CODE])),...["csv"].map((t=>[t,Vi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Vi.DITA])),...["epub"].map((t=>[t,Vi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Vi.EXCEL])),...["flac"].map((t=>[t,Vi.FLAC])),...["gif"].map((t=>[t,Vi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Vi.GZIP])),...["html","htm","xhtml"].map((t=>[t,Vi.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,Vi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Vi.JPEG])),...["json"].map((t=>[t,Vi.JSON])),...["m4a","m4p"].map((t=>[t,Vi.M4A])),...["mov","qt"].map((t=>[t,Vi.MOV])),...["mp3"].map((t=>[t,Vi.MP3])),...["mp4","m4v"].map((t=>[t,Vi.MP4])),...["ogg","oga"].map((t=>[t,Vi.OGG])),...["pdf","ps"].map((t=>[t,Vi.PDF])),...["png"].map((t=>[t,Vi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Vi.POWERPOINT])),...["rar"].map((t=>[t,Vi.RAR])),...["stp"].map((t=>[t,Vi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Vi.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,Vi.VIDEO])),...["wav"].map((t=>[t,Vi.WAV])),...["wma"].map((t=>[t,Vi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Vi.WORD])),...["xml","xsl","rdf"].map((t=>[t,Vi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Vi.YAML])),...["zip"].map((t=>[t,Vi.ZIP]))]);const Xi={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")},Ji=e.css`
|
|
322
322
|
:host, i.ft-icon {
|
|
323
323
|
display: inline-flex;
|
|
324
324
|
align-items: center;
|
|
@@ -327,14 +327,14 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
327
327
|
}
|
|
328
328
|
|
|
329
329
|
:host {
|
|
330
|
-
width: ${
|
|
331
|
-
height: ${
|
|
330
|
+
width: ${Xi.size};
|
|
331
|
+
height: ${Xi.size};
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
i.ft-icon {
|
|
335
335
|
width: 100%;
|
|
336
336
|
height: 100%;
|
|
337
|
-
font-size: ${
|
|
337
|
+
font-size: ${Xi.size};
|
|
338
338
|
line-height: 1;
|
|
339
339
|
font-weight: normal;
|
|
340
340
|
text-transform: none;
|
|
@@ -345,33 +345,33 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
345
345
|
text-rendering: auto;
|
|
346
346
|
-webkit-font-smoothing: antialiased;
|
|
347
347
|
-moz-osx-font-smoothing: grayscale;
|
|
348
|
-
vertical-align: ${
|
|
348
|
+
vertical-align: ${Xi.verticalAlign};
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
i.ft-icon.ft-icon--fluid-topics {
|
|
352
|
-
font-family: ${
|
|
352
|
+
font-family: ${Xi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
353
353
|
|
|
354
354
|
/* Ugly fix because font is broken */
|
|
355
|
-
font-size: calc(0.75 * ${
|
|
356
|
-
line-height: ${
|
|
355
|
+
font-size: calc(0.75 * ${Xi.size});
|
|
356
|
+
line-height: ${Xi.size};
|
|
357
357
|
position: relative;
|
|
358
358
|
top: -4%;
|
|
359
359
|
justify-content: center;
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
.ft-icon--file-format {
|
|
363
|
-
font-family: ${
|
|
363
|
+
font-family: ${Xi.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
.ft-icon--material {
|
|
367
|
-
font-family: ${
|
|
367
|
+
font-family: ${Xi.materialFontFamily}, "Material Icons", sans-serif;
|
|
368
368
|
}
|
|
369
|
-
`;var
|
|
369
|
+
`;var Qi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Qi||(Qi={}));var te=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ie extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){const t=this.variant&&Object.values(Qi).includes(this.variant)?this.variant:Qi.fluid_topics,i=t!==Qi.material||!!this.value;return e.html`
|
|
370
370
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
371
|
-
${
|
|
371
|
+
${s.unsafeHTML(this.resolvedIcon)}
|
|
372
372
|
<slot ?hidden=${i}></slot>
|
|
373
373
|
</i>
|
|
374
|
-
`}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
|
|
374
|
+
`}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 Qi.file_format:this.resolvedIcon=null!==(t=Vi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Qi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=Yi[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ie.elementDefinitions={},ie.styles=Ji,te([o.property()],ie.prototype,"variant",void 0),te([o.property()],ie.prototype,"value",void 0),te([o.state()],ie.prototype,"resolvedIcon",void 0),te([o.query("slot")],ie.prototype,"slottedContent",void 0),i.customElement("ft-icon")(ie);const ee=i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),oe=i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),ne=i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),se=i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","100"),re=i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),ae=i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px"),le=e.css`
|
|
375
375
|
.ft-tooltip--container {
|
|
376
376
|
display: block;
|
|
377
377
|
}
|
|
@@ -386,21 +386,21 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
386
386
|
box-sizing: border-box;
|
|
387
387
|
overflow: hidden;
|
|
388
388
|
width: max-content;
|
|
389
|
-
max-width: ${
|
|
389
|
+
max-width: ${ae};
|
|
390
390
|
text-align: center;
|
|
391
|
-
padding: ${
|
|
392
|
-
z-index: ${
|
|
391
|
+
padding: ${ee};
|
|
392
|
+
z-index: ${se};
|
|
393
393
|
}
|
|
394
394
|
|
|
395
395
|
.ft-tooltip--content {
|
|
396
396
|
padding: 4px 8px;
|
|
397
|
-
border-radius: ${
|
|
398
|
-
background-color: ${
|
|
399
|
-
color: ${
|
|
397
|
+
border-radius: ${re};
|
|
398
|
+
background-color: ${ne};
|
|
399
|
+
color: ${oe};
|
|
400
400
|
position: relative;
|
|
401
401
|
word-break: break-word;
|
|
402
402
|
}
|
|
403
|
-
`;var
|
|
403
|
+
`;var he=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ce 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`
|
|
404
404
|
<div part="container"
|
|
405
405
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
406
406
|
@mouseenter=${this.onHover}
|
|
@@ -418,7 +418,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
418
418
|
</div>
|
|
419
419
|
</div>
|
|
420
420
|
</div>
|
|
421
|
-
`}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,n=(t.offsetWidth-i)/2;let
|
|
421
|
+
`}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,n=(t.offsetWidth-i)/2;let s=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,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"bottom":r=t.offsetTop+t.offsetHeight-this.tooltip.offsetTop,s=t.offsetLeft+n-this.tooltip.offsetLeft;break;case"left":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft-i-this.tooltip.offsetLeft;break;case"right":r=t.offsetTop+o-this.tooltip.offsetTop,s=t.offsetLeft+t.offsetWidth-this.tooltip.offsetLeft}const a=this.tooltip.style;a.left=s+"px",a.top=r+"px";const l=this.tooltip.getBoundingClientRect();let h=-l.x,c=l.x+l.width-window.innerWidth;a.left=s+Math.round(this.correctOutOfWindowPixels(h,c))+"px";let d=-l.y,p=l.y+l.height-window.innerHeight;a.top=r+Math.round(this.correctOutOfWindowPixels(d,p))+"px",a.maxWidth=`max(${t.offsetWidth}px, ${ae})`}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))}}ce.elementDefinitions={"ft-typography":bi},ce.styles=le,he([o.property()],ce.prototype,"text",void 0),he([o.property({type:Boolean})],ce.prototype,"manual",void 0),he([o.property({type:Boolean})],ce.prototype,"inline",void 0),he([o.property({type:Number})],ce.prototype,"delay",void 0),he([o.property()],ce.prototype,"position",void 0),he([o.queryAssignedNodes("",!0)],ce.prototype,"slotNodes",void 0),he([o.query(".ft-tooltip--container")],ce.prototype,"container",void 0),he([o.query(".ft-tooltip")],ce.prototype,"tooltip",void 0),he([o.query(".ft-tooltip--content")],ce.prototype,"tooltipContent",void 0),he([o.state()],ce.prototype,"visible",void 0),i.customElement("ft-tooltip")(ce);const de={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},pe=e.css`
|
|
422
422
|
:host {
|
|
423
423
|
line-height: 0;
|
|
424
424
|
}
|
|
@@ -427,8 +427,8 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
427
427
|
display: inline-block;
|
|
428
428
|
position: relative;
|
|
429
429
|
|
|
430
|
-
width: ${
|
|
431
|
-
height: ${
|
|
430
|
+
width: ${de.size};
|
|
431
|
+
height: ${de.size};
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
.ft-loader div {
|
|
@@ -437,7 +437,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
437
437
|
width: 25%;
|
|
438
438
|
height: 25%;
|
|
439
439
|
border-radius: 50%;
|
|
440
|
-
background: ${
|
|
440
|
+
background: ${de.color};
|
|
441
441
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
442
442
|
}
|
|
443
443
|
|
|
@@ -484,17 +484,17 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
484
484
|
transform: translate(0, 0);
|
|
485
485
|
}
|
|
486
486
|
100% {
|
|
487
|
-
transform: translate(calc(0.35 * ${
|
|
487
|
+
transform: translate(calc(0.35 * ${de.size}), 0);
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
`;class
|
|
490
|
+
`;class fe extends i.FtLitElement{render(){return e.html`
|
|
491
491
|
<div class="ft-loader">
|
|
492
492
|
<div></div>
|
|
493
493
|
<div></div>
|
|
494
494
|
<div></div>
|
|
495
495
|
<div></div>
|
|
496
496
|
</div>
|
|
497
|
-
`}}
|
|
497
|
+
`}}fe.styles=pe,i.customElement("ft-loader")(fe);const ue=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),ve={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:ue,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",si.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",ue),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")},ye=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),ge={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:ye,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",ye)},be=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),xe=i.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","SIZE","2px"),me=i.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","SIZE","4px"),$e=i.FtCssVariableFactory.create("--ft-button-dense-icon-padding","SIZE","4px"),we=[e.css`
|
|
498
498
|
:host {
|
|
499
499
|
display: inline-block;
|
|
500
500
|
max-width: 100%;
|
|
@@ -505,7 +505,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
505
505
|
box-shadow: 0px 0px 0px transparent;
|
|
506
506
|
border: 0px solid transparent;
|
|
507
507
|
text-shadow: 0px 0px 0px transparent;
|
|
508
|
-
font-size: ${
|
|
508
|
+
font-size: ${ve.fontSize};
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
button:hover {
|
|
@@ -534,31 +534,31 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
534
534
|
border: none;
|
|
535
535
|
pointer-events: auto;
|
|
536
536
|
|
|
537
|
-
--ft-button-internal-line-height: max(calc(${
|
|
538
|
-
--ft-button-internal-color: ${
|
|
539
|
-
${i.setVariable(
|
|
540
|
-
${i.setVariable(l.color,
|
|
537
|
+
--ft-button-internal-line-height: max(calc(${ve.fontSize} + 2px), ${ve.iconSize});
|
|
538
|
+
--ft-button-internal-color: ${ve.color};
|
|
539
|
+
${i.setVariable(Xi.size,ve.iconSize)};
|
|
540
|
+
${i.setVariable(l.color,ve.rippleColor)};
|
|
541
541
|
|
|
542
|
-
border-radius: ${
|
|
543
|
-
padding: ${
|
|
544
|
-
background-color: ${
|
|
542
|
+
border-radius: ${ve.borderRadius};
|
|
543
|
+
padding: ${ve.verticalPadding} ${ve.horizontalPadding};
|
|
544
|
+
background-color: ${ve.backgroundColor};
|
|
545
545
|
color: var(--ft-button-internal-color);
|
|
546
546
|
-webkit-mask-image: radial-gradient(white, black);
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
.ft-button.ft-button--outlined {
|
|
550
550
|
border: 1px solid var(--ft-button-internal-color);
|
|
551
|
-
padding: calc(${
|
|
551
|
+
padding: calc(${ve.verticalPadding} - 1px) calc(${ve.horizontalPadding} - 1px);
|
|
552
552
|
}
|
|
553
553
|
|
|
554
554
|
.ft-button.ft-button--dense {
|
|
555
|
-
padding: ${
|
|
556
|
-
border-radius: ${
|
|
557
|
-
gap: ${
|
|
555
|
+
padding: ${xe} ${me};
|
|
556
|
+
border-radius: ${be};
|
|
557
|
+
gap: ${$e};
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
561
|
-
padding: calc(${
|
|
561
|
+
padding: calc(${xe} - 1px) calc(${me} - 1px);
|
|
562
562
|
}
|
|
563
563
|
|
|
564
564
|
.ft-button:not([disabled]):hover {
|
|
@@ -566,22 +566,22 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
566
566
|
}
|
|
567
567
|
|
|
568
568
|
.ft-button--round {
|
|
569
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
569
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ve.verticalPadding});
|
|
570
570
|
}
|
|
571
571
|
|
|
572
572
|
.ft-button--round.ft-button--dense {
|
|
573
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
573
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${xe});
|
|
574
574
|
}
|
|
575
575
|
|
|
576
576
|
.ft-button[disabled] {
|
|
577
577
|
filter: grayscale(1);
|
|
578
|
-
opacity: ${
|
|
578
|
+
opacity: ${ve.opacityDisabled};
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
.ft-button.ft-button--primary {
|
|
582
|
-
background-color: ${
|
|
583
|
-
--ft-button-internal-color: ${
|
|
584
|
-
${i.setVariable(l.color,
|
|
582
|
+
background-color: ${ge.backgroundColor};
|
|
583
|
+
--ft-button-internal-color: ${ge.color};
|
|
584
|
+
${i.setVariable(l.color,ge.rippleColor)};
|
|
585
585
|
}
|
|
586
586
|
|
|
587
587
|
.ft-button:focus {
|
|
@@ -594,13 +594,13 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
594
594
|
white-space: nowrap;
|
|
595
595
|
text-overflow: ellipsis;
|
|
596
596
|
display: block;
|
|
597
|
-
margin: 0 ${
|
|
598
|
-
${i.setVariable(
|
|
599
|
-
${i.setVariable(
|
|
597
|
+
margin: 0 ${ve.iconPadding};
|
|
598
|
+
${i.setVariable(si.fontSize,"1em")};
|
|
599
|
+
${i.setVariable(si.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
600
600
|
}
|
|
601
601
|
|
|
602
602
|
.ft-button--dense .ft-button--label {
|
|
603
|
-
margin: 0 ${
|
|
603
|
+
margin: 0 ${$e};
|
|
604
604
|
}
|
|
605
605
|
|
|
606
606
|
.ft-button--label[hidden] {
|
|
@@ -613,13 +613,13 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
613
613
|
}
|
|
614
614
|
|
|
615
615
|
.ft-button--label[hidden] + ft-icon {
|
|
616
|
-
margin: 0 calc(${
|
|
617
|
-
padding: 0 ${
|
|
616
|
+
margin: 0 calc(${ve.horizontalPadding} * -1);
|
|
617
|
+
padding: 0 ${ve.verticalPadding};
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
.ft-button--dense .ft-button--label[hidden] + ft-icon {
|
|
621
|
-
margin: 0 calc(${
|
|
622
|
-
padding: 0 ${
|
|
621
|
+
margin: 0 calc(${me} * -1);
|
|
622
|
+
padding: 0 ${xe};
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
@@ -628,10 +628,10 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
ft-loader {
|
|
631
|
-
${i.setVariable(
|
|
632
|
-
${i.setVariable(
|
|
631
|
+
${i.setVariable(de.size,ve.iconSize)};
|
|
632
|
+
${i.setVariable(de.color,"var(--ft-button-internal-color)")};
|
|
633
633
|
}
|
|
634
|
-
`,i.noTextSelect];var
|
|
634
|
+
`,i.noTextSelect];var Se=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ke 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`
|
|
635
635
|
<button part="button"
|
|
636
636
|
class="${n.classMap(t)}"
|
|
637
637
|
aria-label="${this.getLabel()}"
|
|
@@ -654,12 +654,12 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
654
654
|
</ft-tooltip>
|
|
655
655
|
`:t}resolveIcon(){return this.loading?e.html`
|
|
656
656
|
<ft-loader part="loader icon"></ft-loader> `:this.icon?e.html`
|
|
657
|
-
<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}}
|
|
658
|
-
`;var
|
|
657
|
+
<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}}ke.elementDefinitions={"ft-ripple":b,"ft-tooltip":ce,"ft-typography":bi,"ft-icon":ie,"ft-loader":fe},ke.styles=[i.safariEllipsisFix,we],Se([o.property({type:String,reflect:!0})],ke.prototype,"role",void 0),Se([o.property({type:Boolean})],ke.prototype,"primary",void 0),Se([o.property({type:Boolean})],ke.prototype,"outlined",void 0),Se([o.property({type:Boolean})],ke.prototype,"disabled",void 0),Se([o.property({type:Boolean})],ke.prototype,"dense",void 0),Se([o.property({type:Boolean})],ke.prototype,"round",void 0),Se([o.property()],ke.prototype,"label",void 0),Se([o.property()],ke.prototype,"icon",void 0),Se([o.property()],ke.prototype,"iconVariant",void 0),Se([o.property({type:Boolean})],ke.prototype,"trailingIcon",void 0),Se([o.property({type:Boolean})],ke.prototype,"loading",void 0),Se([o.property()],ke.prototype,"tooltipPosition",void 0),Se([o.property({type:Boolean})],ke.prototype,"hideTooltip",void 0),Se([o.property({type:Boolean})],ke.prototype,"forceTooltip",void 0),Se([o.query(".ft-button")],ke.prototype,"button",void 0),Se([o.query(".ft-button--label slot")],ke.prototype,"slottedContent",void 0),i.customElement("ft-button")(ke);const Ee=e.css`
|
|
658
|
+
`;var Oe=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const Ae=Symbol("i18nProperties"),Ce=Symbol("i18nUnsubs");function Be(t){var i;class e extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[i]=new Map}get i18nService(){return this.useCustomMessageContexts?ji:Ni}i18n(t,i,...e){var o;if("string"==typeof t)return this.i18nService.resolveMessage(t,i,...e);const n=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var i;null===(i=this[Ae])||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[Ae])||void 0===i||i.forEach(((t,i)=>{null!=t.argsProvider&&(this[i]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[Ae]&&new Set([...this[Ae].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,i){t=t.toLowerCase(),this[Ce].has(t)||this[Ce].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[Ce].forEach((t=>t())),this[Ce].clear()}}return i=Ce,Oe([o.property({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}class Te extends(Be(i.FtLitElement)){}class Ie extends(Be(i.FtLitElementRedux)){}var Re=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ue extends Ie{constructor(){super(),this.editorMode=!1,this.addStore(Ti)}render(){return this.key&&this.context?e.html`
|
|
659
659
|
<span class="ft-i18n">
|
|
660
660
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
661
661
|
</span>
|
|
662
|
-
`: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})}}
|
|
662
|
+
`: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})}}Ue.elementDefinitions={},Ue.styles=Ee,Re([i.redux()],Ue.prototype,"editorMode",void 0),Re([o.property()],Ue.prototype,"context",void 0),Re([o.property()],Ue.prototype,"key",void 0),Re([i.jsonProperty([])],Ue.prototype,"args",void 0),Re([o.property()],Ue.prototype,"defaultMessage",void 0);class ze{static build(t){return new ze(t)}static fromGwt(t){return new ze(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)=>Ni.resolveMessage(this.name,i,...t)})}}i.customElement("ft-i18n")(Ue);const Ne=ze.build("savedSearchesComponent"),je={displaySavedSearchesHere:"Display saved searches here.",missingRole:"Saved search unavailable: missing role {0}.",keywords:"Keywords",language:"Language",sort:"Sort",period:"Period",relevance:"Relevance",lastUpdate:"Last update",lastWeek:"Less than one week",lastMonth:"Less than one month",lastYear:"Less than one year",customPeriod:"Custom period",search:"Search"},Le=i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnSurface),Me={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorSurface),color:Le,fontSize:i.FtCssVariableFactory.extend("--ft-chip-font-size",Pt.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:i.FtCssVariableFactory.extend("--ft-chip-ripple-color",Le),horizontalPadding:i.FtCssVariableFactory.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:i.FtCssVariableFactory.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},_e=i.FtCssVariableFactory.extend("--ft-chip-highlighted-color",i.FtCssVariableFactory.extend("--ft-chip-color",i.designSystemVariables.colorOnPrimary)),Pe={backgroundColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color",i.FtCssVariableFactory.extend("--ft-chip-background-color",i.designSystemVariables.colorPrimary)),color:_e,rippleColor:i.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",_e)},De=i.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Fe=i.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),He=[i.noTextSelect,e.css`
|
|
663
663
|
:host {
|
|
664
664
|
display: inline-block;
|
|
665
665
|
max-width: 100%;
|
|
@@ -675,20 +675,20 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
675
675
|
box-sizing: border-box;
|
|
676
676
|
pointer-events: auto;
|
|
677
677
|
|
|
678
|
-
--ft-chip-internal-font-size: ${
|
|
678
|
+
--ft-chip-internal-font-size: ${Me.fontSize};
|
|
679
679
|
--ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
680
|
-
${i.setVariable(
|
|
681
|
-
--ft-chip-internal-vertical-padding: ${
|
|
682
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
680
|
+
${i.setVariable(Xi.size,Me.iconSize)};
|
|
681
|
+
--ft-chip-internal-vertical-padding: ${Me.verticalPadding};
|
|
682
|
+
--ft-chip-internal-horizontal-padding: ${Me.horizontalPadding};
|
|
683
683
|
--ft-chip-internal-icon-padding: 3px;
|
|
684
|
-
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${
|
|
684
|
+
--ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${Me.iconSize});
|
|
685
685
|
|
|
686
|
-
border: 1px solid ${
|
|
687
|
-
color: ${
|
|
688
|
-
${i.setVariable(l.color,
|
|
686
|
+
border: 1px solid ${Me.colorOutline};
|
|
687
|
+
color: ${Me.color};
|
|
688
|
+
${i.setVariable(l.color,Me.rippleColor)};
|
|
689
689
|
border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
|
|
690
690
|
padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
|
|
691
|
-
background-color: ${
|
|
691
|
+
background-color: ${Me.backgroundColor};
|
|
692
692
|
line-height: var(--ft-chip-internal-content-height);
|
|
693
693
|
}
|
|
694
694
|
|
|
@@ -698,8 +698,8 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
698
698
|
|
|
699
699
|
.ft-chip--dense {
|
|
700
700
|
--ft-chip-internal-icon-padding: 3px;
|
|
701
|
-
--ft-chip-internal-vertical-padding: ${
|
|
702
|
-
--ft-chip-internal-horizontal-padding: ${
|
|
701
|
+
--ft-chip-internal-vertical-padding: ${Fe};
|
|
702
|
+
--ft-chip-internal-horizontal-padding: ${De};
|
|
703
703
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
704
704
|
}
|
|
705
705
|
|
|
@@ -711,15 +711,15 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
711
711
|
cursor: default;
|
|
712
712
|
pointer-events: none;
|
|
713
713
|
filter: grayscale(1);
|
|
714
|
-
opacity: ${
|
|
714
|
+
opacity: ${Me.opacityDisabled};
|
|
715
715
|
}
|
|
716
716
|
|
|
717
717
|
.ft-chip--highlighted {
|
|
718
718
|
border: none;
|
|
719
719
|
padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
|
|
720
|
-
background-color: ${
|
|
721
|
-
${i.setVariable(l.color,
|
|
722
|
-
color: ${
|
|
720
|
+
background-color: ${Pe.backgroundColor};
|
|
721
|
+
${i.setVariable(l.color,Pe.rippleColor)};
|
|
722
|
+
color: ${Pe.color};
|
|
723
723
|
}
|
|
724
724
|
|
|
725
725
|
.ft-chip--clickable {
|
|
@@ -749,9 +749,9 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
749
749
|
}
|
|
750
750
|
|
|
751
751
|
.ft-chip--icon-button {
|
|
752
|
-
${i.setVariable(
|
|
753
|
-
${i.setVariable(
|
|
754
|
-
${i.setVariable(
|
|
752
|
+
${i.setVariable(ve.iconSize,Me.iconSize)};
|
|
753
|
+
${i.setVariable(ve.horizontalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
754
|
+
${i.setVariable(ve.verticalPadding,"var(--ft-chip-internal-icon-padding)")};
|
|
755
755
|
margin: calc((-1) * var(--ft-chip-internal-icon-padding));
|
|
756
756
|
}
|
|
757
757
|
|
|
@@ -796,7 +796,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
796
796
|
.ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
|
|
797
797
|
order: -1;
|
|
798
798
|
}
|
|
799
|
-
`];var
|
|
799
|
+
`];var Ze=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class Ke extends CustomEvent{constructor(){super("icon-click")}}class We extends i.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.icon=void 0,this.trailingIcon=!1}render(){const t={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":i.isSafari};return e.html`
|
|
800
800
|
<div class="${n.classMap(t)}"
|
|
801
801
|
aria-label="${this.getLabel()}"
|
|
802
802
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
@@ -819,7 +819,7 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
819
819
|
<div class="ft-chip--icon-container ft-no-text-select">
|
|
820
820
|
<ft-icon .variant=${this.iconVariant} .value="${this.internalIcon}"></ft-icon>
|
|
821
821
|
</div>
|
|
822
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new
|
|
822
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Ke))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Ke))}getLabel(){return this.label||this.textContent}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}}We.elementDefinitions={"ft-ripple":b,"ft-typography":bi,"ft-icon":ie,"ft-button":ke},We.styles=He,Ze([o.property({type:Boolean})],We.prototype,"highlighted",void 0),Ze([o.property({type:Boolean})],We.prototype,"removable",void 0),Ze([o.property({type:Boolean})],We.prototype,"disabled",void 0),Ze([o.property({type:Boolean})],We.prototype,"clickable",void 0),Ze([o.property({type:Boolean})],We.prototype,"iconClickable",void 0),Ze([o.property({type:Boolean})],We.prototype,"dense",void 0),Ze([o.property({type:Boolean})],We.prototype,"multiLine",void 0),Ze([o.property()],We.prototype,"label",void 0),Ze([o.property()],We.prototype,"iconLabel",void 0),Ze([o.property()],We.prototype,"icon",void 0),Ze([o.property()],We.prototype,"iconVariant",void 0),Ze([o.property({type:Boolean})],We.prototype,"trailingIcon",void 0),Ze([o.query("ft-typography slot")],We.prototype,"slottedContent",void 0),i.customElement("ft-chip")(We);var Ge,qe,Ye,Ve,Xe,Je,Qe,to,io,eo,oo,no,so=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class ro extends(Be(qi)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.selected=!1,this.addI18nContext(Ne,je)}render(){var t;return e.html`
|
|
823
823
|
<ft-card title="${null===(t=this.search)||void 0===t?void 0:t.title}" clickable ?selected="${this.selected}">
|
|
824
824
|
${this.renderAlertStatus()}
|
|
825
825
|
<div id="container">
|
|
@@ -828,13 +828,13 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
828
828
|
${this.renderSearchButton()}
|
|
829
829
|
</div>
|
|
830
830
|
</ft-card>
|
|
831
|
-
`}renderDescription(){var t;return this.showDescription?e.html`<div id="description" class="content">${null===(t=this.search)||void 0===t?void 0:t.description}</div>`:e.nothing}renderSearchButton(){return this.showSearchButton?e.html`<div id="searchButton" class="content"><ft-button id="search" icon="search">${
|
|
832
|
-
${null!==(i=null===(t=this.search)||void 0===t?void 0:t.searchRequest.query.length)&&void 0!==i&&i?this.renderMetadata(
|
|
831
|
+
`}renderDescription(){var t;return this.showDescription?e.html`<div id="description" class="content">${null===(t=this.search)||void 0===t?void 0:t.description}</div>`:e.nothing}renderSearchButton(){return this.showSearchButton?e.html`<div id="searchButton" class="content"><ft-button id="search" icon="search">${Ne.messages.search()}</ft-button></div>`:e.nothing}renderAlertStatus(){var t;return this.showAlertStatus&&(null===(t=this.search)||void 0===t?void 0:t.alert)?e.html`<ft-icon id="alertStatus" slot="header">alert</ft-icon>`:e.nothing}renderSearchFilters(){var t,i,o,n,s,r,a,l,h,c,d,p,f,u;return this.showSearchFilters?e.html`<div id="searchFilters" class="content">
|
|
832
|
+
${null!==(i=null===(t=this.search)||void 0===t?void 0:t.searchRequest.query.length)&&void 0!==i&&i?this.renderMetadata(Ne.messages.keywords(),null===(o=this.search)||void 0===o?void 0:o.searchRequest.query,!0):e.nothing}
|
|
833
833
|
${null===(n=this.search)||void 0===n?void 0:n.searchRequest.filters.map((t=>this.renderMetadata(t.label,t.values)))}
|
|
834
|
-
${null!==(a=null===(
|
|
835
|
-
${null!==(
|
|
836
|
-
${(null===(f=this.search)||void 0===f?void 0:f.searchRequest.periodFilter)?this.renderMetadata(
|
|
837
|
-
</div>`:e.nothing}renderMetadata(t,i,o=!1){return e.html`<ft-chip dense ?highlighted=${o}><span class="metadata-label">${t}</span><span class="metadata-values">${Array.isArray(i)?i.join(", "):i}</span></ft-chip>`}mapSortKey(t){switch(t){case"afs:relevance":return
|
|
834
|
+
${null!==(a=null===(r=null===(s=this.search)||void 0===s?void 0:s.searchRequest.contentLocale)||void 0===r?void 0:r.length)&&void 0!==a&&a?this.renderMetadata(Ne.messages.language(),null===(l=this.search)||void 0===l?void 0:l.searchRequest.contentLocale,!0):e.nothing}
|
|
835
|
+
${null!==(d=null===(c=null===(h=this.search)||void 0===h?void 0:h.searchRequest.sort[0])||void 0===c?void 0:c.key.length)&&void 0!==d&&d?this.renderMetadata(Ne.messages.sort(),this.mapSortKey(null===(p=this.search)||void 0===p?void 0:p.searchRequest.sort[0].key),!0):e.nothing}
|
|
836
|
+
${(null===(f=this.search)||void 0===f?void 0:f.searchRequest.periodFilter)?this.renderMetadata(Ne.messages.period(),this.mapPeriodFilter(null===(u=this.search)||void 0===u?void 0:u.searchRequest.periodFilter),!0):e.nothing}
|
|
837
|
+
</div>`:e.nothing}renderMetadata(t,i,o=!1){return e.html`<ft-chip dense ?highlighted=${o}><span class="metadata-label">${t}</span><span class="metadata-values">${Array.isArray(i)?i.join(", "):i}</span></ft-chip>`}mapSortKey(t){switch(t){case"afs:relevance":return Ne.messages.relevance();case"ft:lastEdition":return Ne.messages.lastUpdate();default:return t}}mapPeriodFilter(t){switch(t.periodType){case"LAST_WEEK":return Ne.messages.lastWeek();case"LAST_MONTH":return Ne.messages.lastMonth();case"LAST_YEAR":return Ne.messages.lastYear();case"CUSTOM":return Ne.messages.customPeriod();default:return"--"}}}ro.elementDefinitions={"ft-icon":ie,"ft-card":Oi,"ft-chip":We,"ft-button":ke},ro.styles=e.css`
|
|
838
838
|
ft-card {
|
|
839
839
|
${i.setVariable(xi.outlineStyle,Ai.inactiveSearchBorderStyle)};
|
|
840
840
|
${i.setVariable(xi.outlineWidth,Ai.inactiveSearchBorderWidth)};
|
|
@@ -852,11 +852,11 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
852
852
|
}
|
|
853
853
|
|
|
854
854
|
#search {
|
|
855
|
-
${i.setVariable(
|
|
855
|
+
${i.setVariable(ve.color,Ai.inactiveButtonTextColor)};
|
|
856
856
|
}
|
|
857
857
|
|
|
858
858
|
ft-card[selected] #search {
|
|
859
|
-
${i.setVariable(
|
|
859
|
+
${i.setVariable(ve.color,Ai.activeButtonTextColor)};
|
|
860
860
|
}
|
|
861
861
|
|
|
862
862
|
#searchFilters {
|
|
@@ -887,11 +887,11 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
887
887
|
#alertStatus {
|
|
888
888
|
color: ${Ai.color};
|
|
889
889
|
}
|
|
890
|
-
`,Qe([o.property()],to.prototype,"search",void 0),Qe([o.property({type:Boolean})],to.prototype,"showDescription",void 0),Qe([o.property({type:Boolean})],to.prototype,"showSearchFilters",void 0),Qe([o.property({type:Boolean})],to.prototype,"showSearchButton",void 0),Qe([o.property({type:Boolean})],to.prototype,"showAlertStatus",void 0),Qe([o.property({type:Boolean})],to.prototype,"selected",void 0),function(t){!function(i){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function r(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function s(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var i={next:function(){var i=t.shift();return{done:void 0===i,value:i}}};return e.iterable&&(i[Symbol.iterator]=function(){return i}),i}function l(t){this.map={},t instanceof l?t.forEach((function(t,i){this.append(i,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(i){this.append(i,t[i])}),this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function c(t){return new Promise((function(i,e){t.onload=function(){i(t.result)},t.onerror=function(){e(t.error)}}))}function p(t){var i=new FileReader,e=c(i);return i.readAsArrayBuffer(t),e}function d(t){if(t.slice)return t.slice(0);var i=new Uint8Array(t.byteLength);return i.set(new Uint8Array(t)),i.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(t){var i;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((i=t)&&DataView.prototype.isPrototypeOf(i))?(this._bodyArrayBuffer=d(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||n(t))?this._bodyArrayBuffer=d(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,i,e,o=h(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,i=new FileReader,e=c(i),i.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var i=new Uint8Array(t),e=new Array(i.length),o=0;o<i.length;o++)e[o]=String.fromCharCode(i[o]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,i){t=r(t),i=s(i);var e=this.map[t];this.map[t]=e?e+", "+i:i},l.prototype.delete=function(t){delete this.map[r(t)]},l.prototype.get=function(t){return t=r(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(r(t))},l.prototype.set=function(t,i){this.map[r(t)]=s(i)},l.prototype.forEach=function(t,i){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(i,this.map[e],e,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(i,e){t.push(e)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(i){t.push(i)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(i,e){t.push([e,i])})),a(t)},e.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(t,i){var e,o,n=(i=i||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,i.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=i.credentials||this.credentials||"same-origin",!i.headers&&this.headers||(this.headers=new l(i.headers)),this.method=(e=i.method||this.method||"GET",o=e.toUpperCase(),u.indexOf(o)>-1?o:e),this.mode=i.mode||this.mode||null,this.signal=i.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function g(t){var i=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),o=e.shift().replace(/\+/g," "),n=e.join("=").replace(/\+/g," ");i.append(decodeURIComponent(o),decodeURIComponent(n))}})),i}function y(t,i){i||(i={}),this.type="default",this.status=void 0===i.status?200:i.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in i?i.statusText:"OK",this.headers=new l(i.headers),this.url=i.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},f.call(v.prototype),f.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var b=[301,302,303,307,308];y.redirect=function(t,i){if(-1===b.indexOf(i))throw new RangeError("Invalid status code");return new y(null,{status:i,headers:{location:t}})},i.DOMException=t.DOMException;try{new i.DOMException}catch(t){i.DOMException=function(t,i){this.message=t,this.name=i;var e=Error(t);this.stack=e.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function x(t,o){return new Promise((function(n,r){var s=new v(t,o);if(s.signal&&s.signal.aborted)return r(new i.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function h(){a.abort()}a.onload=function(){var t,i,e={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",i=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),o=e.shift().trim();if(o){var n=e.join(":").trim();i.append(o,n)}})),i)};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new y(o,e))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.onabort=function(){r(new i.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&e.blob&&(a.responseType="blob"),s.headers.forEach((function(t,i){a.setRequestHeader(i,t)})),s.signal&&(s.signal.addEventListener("abort",h),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",h)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=l,t.Request=v,t.Response=y),i.Headers=l,i.Request=v,i.Response=y,i.fetch=x,Object.defineProperty(i,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Fe||(Fe={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(He||(He={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Ze||(Ze={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Ke||(Ke={})),function(t){t.ASC="ASC",t.DESC="DESC"}(We||(We={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Ge||(Ge={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK"}(qe||(qe={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Ye||(Ye={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Ve||(Ve={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Xe||(Xe={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Je||(Je={})),Je.PERSONAL_BOOK_SHARE_USER,Je.PERSONAL_BOOK_USER,Je.HTML_EXPORT_USER,Je.PERSONAL_BOOK_USER,Je.PDF_EXPORT_USER,Je.PERSONAL_BOOK_USER,Je.KHUB_ADMIN,Je.CONTENT_PUBLISHER,Je.ADMIN,Je.KHUB_ADMIN,Je.USERS_ADMIN,Je.PORTAL_ADMIN,Je.DEVELOPER,Je.BETA_USER,Je.DEBUG_USER;class io{async listMySearches(){var t;return(null===(t=Bi.getState().session)||void 0===t?void 0:t.sessionAuthenticated)?(await Ii.await()).listMySearches(Bi.getState().session.profile.userId):[]}}const eo=i.FtReduxStore.get({name:"ft-user-assets",reducers:{setSavedSearches:(t,i)=>{t.savedSearches=i.payload}},initialState:{savedSearches:void 0}});const oo=new class{clear(){this.clearMySearches()}clearMySearches(){eo.actions.setSavedSearches(void 0)}async reloadMySearches(){const t=new io,i=await t.listMySearches();eo.actions.setSavedSearches(i)}};var no=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};class ro extends(ke(Hi)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.editorMode=!1,this.requiredRole=Je.SAVED_SEARCH_USER,this.addStore(Bi),this.addStore(eo),this.addI18nContext(Be,Ie)}render(){var t;return this.editorMode&&!this.userHasRights?e.html`
|
|
891
|
-
<ft-typography>${
|
|
892
|
-
<ft-typography>${
|
|
890
|
+
`,so([o.property()],ro.prototype,"search",void 0),so([o.property({type:Boolean})],ro.prototype,"showDescription",void 0),so([o.property({type:Boolean})],ro.prototype,"showSearchFilters",void 0),so([o.property({type:Boolean})],ro.prototype,"showSearchButton",void 0),so([o.property({type:Boolean})],ro.prototype,"showAlertStatus",void 0),so([o.property({type:Boolean})],ro.prototype,"selected",void 0),function(t){!function(i){var e={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(e.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&o.indexOf(Object.prototype.toString.call(t))>-1};function s(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function r(t){return"string"!=typeof t&&(t=String(t)),t}function a(t){var i={next:function(){var i=t.shift();return{done:void 0===i,value:i}}};return e.iterable&&(i[Symbol.iterator]=function(){return i}),i}function l(t){this.map={},t instanceof l?t.forEach((function(t,i){this.append(i,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(i){this.append(i,t[i])}),this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function c(t){return new Promise((function(i,e){t.onload=function(){i(t.result)},t.onerror=function(){e(t.error)}}))}function d(t){var i=new FileReader,e=c(i);return i.readAsArrayBuffer(t),e}function p(t){if(t.slice)return t.slice(0);var i=new Uint8Array(t.byteLength);return i.set(new Uint8Array(t)),i.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(t){var i;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:e.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:e.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():e.arrayBuffer&&e.blob&&((i=t)&&DataView.prototype.isPrototypeOf(i))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||n(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var t,i,e,o=h(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,i=new FileReader,e=c(i),i.readAsText(t),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var i=new Uint8Array(t),e=new Array(i.length),o=0;o<i.length;o++)e[o]=String.fromCharCode(i[o]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},e.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,i){t=s(t),i=r(i);var e=this.map[t];this.map[t]=e?e+", "+i:i},l.prototype.delete=function(t){delete this.map[s(t)]},l.prototype.get=function(t){return t=s(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(s(t))},l.prototype.set=function(t,i){this.map[s(t)]=r(i)},l.prototype.forEach=function(t,i){for(var e in this.map)this.map.hasOwnProperty(e)&&t.call(i,this.map[e],e,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(i,e){t.push(e)})),a(t)},l.prototype.values=function(){var t=[];return this.forEach((function(i){t.push(i)})),a(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(i,e){t.push([e,i])})),a(t)},e.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(t,i){var e,o,n=(i=i||{}).body;if(t instanceof v){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,i.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=i.credentials||this.credentials||"same-origin",!i.headers&&this.headers||(this.headers=new l(i.headers)),this.method=(e=i.method||this.method||"GET",o=e.toUpperCase(),u.indexOf(o)>-1?o:e),this.mode=i.mode||this.mode||null,this.signal=i.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function y(t){var i=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),o=e.shift().replace(/\+/g," "),n=e.join("=").replace(/\+/g," ");i.append(decodeURIComponent(o),decodeURIComponent(n))}})),i}function g(t,i){i||(i={}),this.type="default",this.status=void 0===i.status?200:i.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in i?i.statusText:"OK",this.headers=new l(i.headers),this.url=i.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},f.call(v.prototype),f.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var t=new g(null,{status:0,statusText:""});return t.type="error",t};var b=[301,302,303,307,308];g.redirect=function(t,i){if(-1===b.indexOf(i))throw new RangeError("Invalid status code");return new g(null,{status:i,headers:{location:t}})},i.DOMException=t.DOMException;try{new i.DOMException}catch(t){i.DOMException=function(t,i){this.message=t,this.name=i;var e=Error(t);this.stack=e.stack},i.DOMException.prototype=Object.create(Error.prototype),i.DOMException.prototype.constructor=i.DOMException}function x(t,o){return new Promise((function(n,s){var r=new v(t,o);if(r.signal&&r.signal.aborted)return s(new i.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function h(){a.abort()}a.onload=function(){var t,i,e={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",i=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var e=t.split(":"),o=e.shift().trim();if(o){var n=e.join(":").trim();i.append(o,n)}})),i)};e.url="responseURL"in a?a.responseURL:e.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new g(o,e))},a.onerror=function(){s(new TypeError("Network request failed"))},a.ontimeout=function(){s(new TypeError("Network request failed"))},a.onabort=function(){s(new i.DOMException("Aborted","AbortError"))},a.open(r.method,r.url,!0),"include"===r.credentials?a.withCredentials=!0:"omit"===r.credentials&&(a.withCredentials=!1),"responseType"in a&&e.blob&&(a.responseType="blob"),r.headers.forEach((function(t,i){a.setRequestHeader(i,t)})),r.signal&&(r.signal.addEventListener("abort",h),a.onreadystatechange=function(){4===a.readyState&&r.signal.removeEventListener("abort",h)}),a.send(void 0===r._bodyInit?null:r._bodyInit)}))}x.polyfill=!0,t.fetch||(t.fetch=x,t.Headers=l,t.Request=v,t.Response=g),i.Headers=l,i.Request=v,i.Response=g,i.fetch=x,Object.defineProperty(i,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(Ge||(Ge={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(qe||(qe={})),function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"}(Ye||(Ye={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(Ve||(Ve={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(Xe||(Xe={})),function(t){t.ASC="ASC",t.DESC="DESC"}(Je||(Je={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(Qe||(Qe={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK"}(to||(to={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(io||(io={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(eo||(eo={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(oo||(oo={})),function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(no||(no={})),no.PERSONAL_BOOK_SHARE_USER,no.PERSONAL_BOOK_USER,no.HTML_EXPORT_USER,no.PERSONAL_BOOK_USER,no.PDF_EXPORT_USER,no.PERSONAL_BOOK_USER,no.KHUB_ADMIN,no.CONTENT_PUBLISHER,no.ADMIN,no.KHUB_ADMIN,no.USERS_ADMIN,no.PORTAL_ADMIN,no.DEVELOPER,no.BETA_USER,no.DEBUG_USER;var ao=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};class lo extends(Be(qi)){constructor(){super(),this.showDescription=!1,this.showSearchFilters=!1,this.showSearchButton=!1,this.showAlertStatus=!1,this.editorMode=!1,this.requiredRole=no.SAVED_SEARCH_USER,this.addStore(Ti),this.addStore(Fi),this.addI18nContext(Ne,je)}render(){var t;return this.editorMode&&!this.userHasRights?e.html`
|
|
891
|
+
<ft-typography>${Ne.messages.missingRole(this.requiredRole)}</ft-typography>`:this.editorMode&&this.isEmpty?e.html`
|
|
892
|
+
<ft-typography>${Ne.messages.displaySavedSearchesHere()}</ft-typography>`:this.userHasRights&&!this.isEmpty?e.html`
|
|
893
893
|
<div id="container">
|
|
894
|
-
${
|
|
894
|
+
${r.repeat(null!==(t=this.savedSearches)&&void 0!==t?t:[],(t=>t.id),(t=>e.html`
|
|
895
895
|
<ft-search-saved-search
|
|
896
896
|
.search=${t}
|
|
897
897
|
?showDescription=${this.showDescription}
|
|
@@ -908,4 +908,4 @@ const it=Symbol.for(""),et=t=>{if((null==t?void 0:t.r)===it)return null==t?void
|
|
|
908
908
|
display: none !important;
|
|
909
909
|
}
|
|
910
910
|
</style>
|
|
911
|
-
`}get userHasRights(){var t;return!!(null===(t=this.user)||void 0===t?void 0:t.roles.includes(this.requiredRole))}get isEmpty(){var t;return 0==(null!==(t=this.savedSearches)&&void 0!==t?t:[]).length}isSelected(t){var e;const o=null===(e=this.stateManager)||void 0===e?void 0:e.store.getState().request;return null!=o&&i.deepEqual(o.query,t.query)&&i.deepEqual([...o.filters],[...t.filters].map(this.mapSearchFilter))&&i.deepEqual([...o.sort].map(this.mapFtSearchSortCriterion),[...t.sort].map(this.mapFtSearchSortCriterion))&&i.deepEqual(o.contentLocale,t.contentLocale)&&i.deepEqual(o.periodFilter,t.periodFilter)}mapFtSearchSortCriterion(t){return{...t}}toFtSearchRequest(t){return null==this.stateManager?void 0:{...this.stateManager.store.getState().request,periodFilter:t.periodFilter,query:t.query,filters:t.filters.map(this.mapSearchFilter),sort:t.sort,contentLocale:t.contentLocale}}mapSearchFilter(t){return{key:t.key,values:t.values,negative:t.negative}}connectedCallback(){super.connectedCallback(),
|
|
911
|
+
`}get userHasRights(){var t;return!!(null===(t=this.user)||void 0===t?void 0:t.roles.includes(this.requiredRole))}get isEmpty(){var t;return 0==(null!==(t=this.savedSearches)&&void 0!==t?t:[]).length}isSelected(t){var e;const o=null===(e=this.stateManager)||void 0===e?void 0:e.store.getState().request;return null!=o&&i.deepEqual(o.query,t.query)&&i.deepEqual([...o.filters],[...t.filters].map(this.mapSearchFilter))&&i.deepEqual([...o.sort].map(this.mapFtSearchSortCriterion),[...t.sort].map(this.mapFtSearchSortCriterion))&&i.deepEqual(o.contentLocale,t.contentLocale)&&i.deepEqual(o.periodFilter,t.periodFilter)}mapFtSearchSortCriterion(t){return{...t}}toFtSearchRequest(t){return null==this.stateManager?void 0:{...this.stateManager.store.getState().request,periodFilter:t.periodFilter,query:t.query,filters:t.filters.map(this.mapSearchFilter),sort:t.sort,contentLocale:t.contentLocale}}mapSearchFilter(t){return{key:t.key,values:t.values,negative:t.negative}}connectedCallback(){super.connectedCallback(),Hi.reloadMySearches()}setSearch(t){var i;const e=this.toFtSearchRequest(t);null!=e&&(null===(i=this.stateManager)||void 0===i||i.setRequest(e))}update(t){super.update(t),(t.has("user")||t.has("savedSearches"))&&null==this.savedSearches&&Hi.reloadMySearches()}}lo.styles=Ci,lo.elementDefinitions={"ft-search-saved-search":ro,"ft-typography":bi},ao([o.property({type:Boolean})],lo.prototype,"showDescription",void 0),ao([o.property({type:Boolean})],lo.prototype,"showSearchFilters",void 0),ao([o.property({type:Boolean})],lo.prototype,"showSearchButton",void 0),ao([o.property({type:Boolean})],lo.prototype,"showAlertStatus",void 0),ao([i.redux({store:Fi.name})],lo.prototype,"savedSearches",void 0),ao([i.redux({store:Ti.name,selector:t=>{var i;return null===(i=t.session)||void 0===i?void 0:i.profile}})],lo.prototype,"user",void 0),ao([i.redux({store:"search"})],lo.prototype,"request",void 0),ao([i.redux({store:Ti.name})],lo.prototype,"editorMode",void 0),i.customElement("ft-search-saved-searches")(lo),t.FtSearchSavedSearches=lo,t.FtSearchSavedSearchesCssVariables=Ai,t.styles=Ci}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat);
|