@fluid-topics/ft-search-input 0.3.62

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.
@@ -0,0 +1,708 @@
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")},p=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorPrimary),h=p,c=i.FtCssVariableFactory.extend("--ft-ripple-background-color",p),f=i.FtCssVariableFactory.extend("--ft-ripple-color",i.designSystemVariables.colorSecondary),d=f,u=i.FtCssVariableFactory.extend("--ft-ripple-background-color",f),g=e.css`
2
+ :host {
3
+ display: contents;
4
+ }
5
+
6
+ .ft-ripple {
7
+ position: absolute;
8
+ inset: 0;
9
+ pointer-events: none;
10
+ }
11
+
12
+ .ft-ripple:not(.ft-ripple--unbounded) {
13
+ overflow: hidden;
14
+ }
15
+
16
+ .ft-ripple .ft-ripple--background,
17
+ .ft-ripple .ft-ripple--effect {
18
+ position: absolute;
19
+ opacity: 0;
20
+ }
21
+
22
+ .ft-ripple .ft-ripple--background {
23
+ background-color: ${l.backgroundColor};
24
+ }
25
+
26
+ .ft-ripple .ft-ripple--effect {
27
+ background-color: ${l.color};
28
+ }
29
+
30
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background {
31
+ background-color: ${u};
32
+ }
33
+
34
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
35
+ background-color: ${d};
36
+ }
37
+
38
+ .ft-ripple.ft-ripple--primary .ft-ripple--background {
39
+ background-color: ${c};
40
+ }
41
+
42
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
43
+ background-color: ${h};
44
+ }
45
+
46
+ .ft-ripple .ft-ripple--background {
47
+ top: 0;
48
+ left: 0;
49
+ height: 100%;
50
+ width: 100%;
51
+ transition: opacity 75ms linear;
52
+ }
53
+
54
+ .ft-ripple .ft-ripple--effect,
55
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
56
+ border-radius: 50%;
57
+ }
58
+
59
+ .ft-ripple .ft-ripple--effect {
60
+ transform: translate(-50%, -50%) scale(0.15);
61
+ transition: transform 300ms ease, opacity 75ms linear;
62
+ }
63
+
64
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
65
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
66
+ left: 50%;
67
+ top: 50%;
68
+ }
69
+
70
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
71
+ transform: translate(-50%, -50%);
72
+ }
73
+
74
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
75
+ opacity: ${l.opacityContentOnSurfaceHover};
76
+ }
77
+
78
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
79
+ opacity: ${l.opacityContentOnSurfaceSelected};
80
+ }
81
+
82
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
83
+ opacity: ${l.opacityContentOnSurfaceFocused};
84
+ }
85
+
86
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
87
+ opacity: ${l.opacityContentOnSurfacePressed};
88
+ transform: translate(-50%, -50%) scale(1);
89
+ }
90
+ `;var v,x=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 y extends i.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new i.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new i.Debouncer(10),this.moveRipple=t=>{var i,e;let{x:o,y: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.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return e.html`
91
+ <style>
92
+ .ft-ripple .ft-ripple--effect,
93
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
94
+ width: ${this.rippleSize}px;
95
+ height: ${this.rippleSize}px;
96
+ }
97
+
98
+ .ft-ripple .ft-ripple--effect {
99
+ left: ${this.originX}px;
100
+ top: ${this.originY}px;
101
+ }
102
+ </style>
103
+ <div class="${n.classMap(t)}">
104
+ <div class="ft-ripple--background"></div>
105
+ <div class="ft-ripple--effect"></div>
106
+ </div>
107
+ `}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((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(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}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}y.elementDefinitions={},y.styles=g,x([o.property({type:Boolean})],y.prototype,"primary",void 0),x([o.property({type:Boolean})],y.prototype,"secondary",void 0),x([o.property({type:Boolean})],y.prototype,"unbounded",void 0),x([o.property({type:Boolean})],y.prototype,"activated",void 0),x([o.property({type:Boolean})],y.prototype,"selected",void 0),x([o.property({type:Boolean})],y.prototype,"disabled",void 0),x([o.state()],y.prototype,"hovered",void 0),x([o.state()],y.prototype,"focused",void 0),x([o.state()],y.prototype,"pressed",void 0),x([o.state()],y.prototype,"rippling",void 0),x([o.state()],y.prototype,"rippleSize",void 0),x([o.state()],y.prototype,"originX",void 0),x([o.state()],y.prototype,"originY",void 0),x([o.query(".ft-ripple")],y.prototype,"ripple",void 0),x([o.query(".ft-ripple--effect")],y.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(y);const b=window,m=b.trustedTypes,$=m?m.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,k="?"+w,S=`<${k}>`,z=document,C=(t="")=>z.createComment(t),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,E=Array.isArray,j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,U=/>/g,N=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),M=/'/g,A=/"/g,B=/^(?:script|style|textarea|title)$/i,T=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),F=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),R=new WeakMap,_=z.createTreeWalker(z,129,null,!1),L=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",r=j;for(let i=0;i<e;i++){const e=t[i];let a,l,p=-1,h=0;for(;h<e.length&&(r.lastIndex=h,l=r.exec(e),null!==l);)h=r.lastIndex,r===j?"!--"===l[1]?r=I:void 0!==l[1]?r=U:void 0!==l[2]?(B.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=N):void 0!==l[3]&&(r=N):r===N?">"===l[0]?(r=null!=n?n:j,p=-1):void 0===l[1]?p=-2:(p=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?N:'"'===l[3]?A:M):r===A||r===M?r=N:r===I||r===U?r=j:(r=N,n=void 0);const c=r===N&&t[i+1].startsWith("/>")?" ":"";s+=r===j?e+S:p>=0?(o.push(a),e.slice(0,p)+"$lit$"+e.slice(p)+w+c):e+w+(-2===p?(o.push(void 0),i):c)}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 P{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,p]=L(t,i);if(this.el=P.createElement(l,e),_.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=_.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(w)){const e=p[s++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(w),i=/([.?@])?(.*)/.exec(e);a.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?H:"?"===i[1]?Q:"@"===i[1]?V:G})}else a.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(B.test(o.tagName)){const t=o.textContent.split(w),i=t.length-1;if(i>0){o.textContent=m?m.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],C()),_.nextNode(),a.push({type:2,index:++n});o.append(t[i],C())}}}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(w,t+1));)a.push({type:7,index:n}),t+=w.length-1}n++}}static createElement(t,i){const e=z.createElement("template");return e.innerHTML=t,e}}function Z(t,i,e=t,o){var n,s,r,a;if(i===F)return i;let l=void 0!==o?null===(n=e._$Co)||void 0===n?void 0:n[o]:e._$Cl;const p=O(i)?void 0:i._$litDirective$;return(null==l?void 0:l.constructor)!==p&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===p?l=void 0:(l=new p(t),l._$AT(t,e,o)),void 0!==o?(null!==(r=(a=e)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:e._$Cl=l),void 0!==l&&(i=Z(t,l._$AS(t,i.values),l,o)),i}class K{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:z).importNode(e,!0);_.currentNode=n;let s=_.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let i;2===l.type?i=new W(s,s.nextSibling,this,t):1===l.type?i=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(i=new X(s,this,t)),this.u.push(i),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=_.nextNode(),r++)}return n}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class W{constructor(t,i,e,o){var n;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=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._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=Z(this,t,i),O(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==F&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>E(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==D&&O(this._$AH)?this._$AA.nextSibling.data=t:this.T(z.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=P.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.p(e);else{const t=new K(n,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=R.get(t.strings);return void 0===i&&R.set(t.strings,i=new P(t)),i}k(t){E(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 W(this.O(C()),this.O(C()),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._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class G{constructor(t,i,e,o,n){this.type=1,this._$AH=D,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=D}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=Z(this,t,i,0),s=!O(t)||t!==this._$AH&&t!==F,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=Z(this,o[e+r],i,r),a===F&&(a=this._$AH[r]),s||(s=!O(a)||a!==this._$AH[r]),a===D?t=D:t!==D&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class H extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===D?void 0:t}}const q=m?m.emptyScript:"";class Q extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==D?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class V extends G{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=Z(this,t,i,0))&&void 0!==e?e:D)===F)return;const o=this._$AH,n=t===D&&o!==D||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==D&&(o===D||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 X{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){Z(this,t)}}const Y=b.litHtmlPolyfillSupport;null==Y||Y(P,W),(null!==(v=b.litHtmlVersions)&&void 0!==v?v:b.litHtmlVersions=[]).push("2.4.0");
108
+ /**
109
+ * @license
110
+ * Copyright 2020 Google LLC
111
+ * SPDX-License-Identifier: BSD-3-Clause
112
+ */
113
+ const J=Symbol.for(""),tt=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t._$litStatic$},it=t=>({_$litStatic$:t,r:J}),et=new Map,ot=(t=>(i,...e)=>{const o=e.length;let n,s;const r=[],a=[];let l,p=0,h=!1;for(;p<o;){for(l=i[p];p<o&&void 0!==(s=e[p],n=tt(s));)l+=n+i[++p],h=!0;a.push(s),r.push(l),p++}if(p===o&&r.push(i[o]),h){const t=r.join("$$lit$$");void 0===(i=et.get(t))&&(r.raw=r,et.set(t,i=r)),e=a}return t(i,...e)})(T);var nt;!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"}(nt||(nt={}));const st=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),rt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),at={fontFamily:rt,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")},lt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",st),pt=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",at.fontSize,"20px"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",at.fontWeight,"normal"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",at.letterSpacing,"0.15px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",at.lineHeight,"1.2"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",at.textTransform,"inherit"),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",st),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",at.fontSize,"14px"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",at.fontWeight,"normal"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",at.letterSpacing,"0.105px"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",at.lineHeight,"1.7"),bt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",at.textTransform,"inherit"),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",rt),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",at.fontSize,"16px"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",at.fontWeight,"600"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",at.letterSpacing,"0.144px"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",at.lineHeight,"1.5"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",at.textTransform,"inherit"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",rt),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",at.fontSize,"14px"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",at.fontWeight,"normal"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",at.letterSpacing,"0.098px"),It=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",at.lineHeight,"1.7"),Ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",at.textTransform,"inherit"),Nt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",rt),Mt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",at.fontSize,"16px"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",at.fontWeight,"normal"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",at.letterSpacing,"0.496px"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",at.lineHeight,"1.5"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",at.textTransform,"inherit"),Dt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",rt),Rt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",at.fontSize,"14px"),_t=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",at.fontWeight,"normal"),Lt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",at.letterSpacing,"0.252px"),Pt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",at.lineHeight,"1.4"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",at.textTransform,"inherit"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",rt),Wt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",at.fontSize,"12px"),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",at.fontWeight,"normal"),Ht=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",at.letterSpacing,"0.396px"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",at.lineHeight,"1.33"),Qt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",at.textTransform,"inherit"),Vt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",rt),Xt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",at.fontSize,"10px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",at.fontWeight,"normal"),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",at.letterSpacing,"0.33px"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",at.lineHeight,"1.6"),ii=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",at.textTransform,"inherit"),ei=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",rt),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",at.fontSize,"10px"),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",at.fontWeight,"normal"),si=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",at.letterSpacing,"1.5px"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",at.lineHeight,"1.6"),ai=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",at.textTransform,"uppercase"),li={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",rt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",at.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",at.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",at.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",at.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",at.textTransform,"uppercase")},pi=e.css`
114
+ .ft-typography--title {
115
+ font-family: ${lt};
116
+ font-size: ${pt};
117
+ font-weight: ${ht};
118
+ letter-spacing: ${ct};
119
+ line-height: ${ft};
120
+ text-transform: ${dt};
121
+ }
122
+ `,hi=e.css`
123
+ .ft-typography--title-dense {
124
+ font-family: ${ut};
125
+ font-size: ${gt};
126
+ font-weight: ${vt};
127
+ letter-spacing: ${xt};
128
+ line-height: ${yt};
129
+ text-transform: ${bt};
130
+ }
131
+ `,ci=e.css`
132
+ .ft-typography--subtitle1 {
133
+ font-family: ${mt};
134
+ font-size: ${$t};
135
+ font-weight: ${wt};
136
+ letter-spacing: ${kt};
137
+ line-height: ${St};
138
+ text-transform: ${zt};
139
+ }
140
+ `,fi=e.css`
141
+ .ft-typography--subtitle2 {
142
+ font-family: ${Ct};
143
+ font-size: ${Ot};
144
+ font-weight: ${Et};
145
+ letter-spacing: ${jt};
146
+ line-height: ${It};
147
+ text-transform: ${Ut};
148
+ }
149
+
150
+ `,di=e.css`
151
+ .ft-typography--body1 {
152
+ font-family: ${Nt};
153
+ font-size: ${Mt};
154
+ font-weight: ${At};
155
+ letter-spacing: ${Bt};
156
+ line-height: ${Tt};
157
+ text-transform: ${Ft};
158
+ }
159
+ `,ui=e.css`
160
+ .ft-typography--body2 {
161
+ font-family: ${Dt};
162
+ font-size: ${Rt};
163
+ font-weight: ${_t};
164
+ letter-spacing: ${Lt};
165
+ line-height: ${Pt};
166
+ text-transform: ${Zt};
167
+ }
168
+ `,gi=e.css`
169
+ .ft-typography--caption {
170
+ font-family: ${Kt};
171
+ font-size: ${Wt};
172
+ font-weight: ${Gt};
173
+ letter-spacing: ${Ht};
174
+ line-height: ${qt};
175
+ text-transform: ${Qt};
176
+ }
177
+ `,vi=e.css`
178
+ .ft-typography--breadcrumb {
179
+ font-family: ${Vt};
180
+ font-size: ${Xt};
181
+ font-weight: ${Yt};
182
+ letter-spacing: ${Jt};
183
+ line-height: ${ti};
184
+ text-transform: ${ii};
185
+ }
186
+ `,xi=e.css`
187
+ .ft-typography--overline {
188
+ font-family: ${ei};
189
+ font-size: ${oi};
190
+ font-weight: ${ni};
191
+ letter-spacing: ${si};
192
+ line-height: ${ri};
193
+ text-transform: ${ai};
194
+ }
195
+ `,yi=e.css`
196
+ .ft-typography--button {
197
+ font-family: ${li.fontFamily};
198
+ font-size: ${li.fontSize};
199
+ font-weight: ${li.fontWeight};
200
+ letter-spacing: ${li.letterSpacing};
201
+ line-height: ${li.lineHeight};
202
+ text-transform: ${li.textTransform};
203
+ }
204
+ `,bi=e.css`
205
+ .ft-typography {
206
+ vertical-align: inherit;
207
+ }
208
+ `;var mi=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 $i extends i.FtLitElement{constructor(){super(...arguments),this.variant=nt.body1}render(){return this.element?ot`
209
+ <${it(this.element)}
210
+ class="ft-typography ft-typography--${this.variant}">
211
+ <slot></slot>
212
+ </${it(this.element)}>
213
+ `:ot`
214
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
215
+ `}}$i.styles=[pi,hi,ci,fi,di,ui,gi,vi,xi,yi,bi],mi([o.property()],$i.prototype,"element",void 0),mi([o.property()],$i.prototype,"variant",void 0),i.customElement("ft-typography")($i);const wi={distance:i.FtCssVariableFactory.create("--ft-tooltip-distance","SIZE","4px"),color:i.FtCssVariableFactory.create("--ft-tooltip-color","COLOR","#FFFFFF"),backgroundColor:i.FtCssVariableFactory.create("--ft-tooltip-background-color","COLOR","#666666"),zIndex:i.FtCssVariableFactory.create("--ft-tooltip-z-index","NUMBER","1"),borderRadiusS:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),maxWidth:i.FtCssVariableFactory.create("--ft-tooltip-max-width","SIZE","150px")},ki=e.css`
216
+ .ft-tooltip--container {
217
+ display: block;
218
+ position: relative;
219
+ }
220
+
221
+ .ft-tooltip--inline {
222
+ display: inline-block;
223
+ max-width: 100%;
224
+ }
225
+
226
+ .ft-tooltip {
227
+ position: absolute;
228
+ box-sizing: border-box;
229
+ overflow: hidden;
230
+ width: max-content;
231
+ max-width: ${wi.maxWidth};
232
+ text-align: center;
233
+ padding: ${wi.distance};
234
+ z-index: ${wi.zIndex};
235
+ }
236
+
237
+ .ft-tooltip--content {
238
+ padding: 4px 8px;
239
+ border-radius: ${wi.borderRadiusS};
240
+ background-color: ${wi.backgroundColor};
241
+ color: ${wi.color};
242
+ top: -500px;
243
+ left: -500px;
244
+ position: relative;
245
+ word-break: break-word;
246
+ }
247
+ `;var Si=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 zi 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`
248
+ <div part="container"
249
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
250
+ @mouseenter=${this.onHover}
251
+ @mouseleave=${this.onOut}
252
+ @focusin=${this.onHover}
253
+ @focusout=${this.onOut}
254
+ @touchstart=${this.onTouch}>
255
+ <slot></slot>
256
+ <div part="tooltip" role="tooltip" inert
257
+ class="ft-tooltip ft-tooltip--${this.validPosition}"
258
+ ?hidden=${!this.visible}>
259
+ <div part="tooltip-content" class="ft-tooltip--content">
260
+ <slot name="text"></slot>
261
+ <ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
262
+ </div>
263
+ </div>
264
+ </div>
265
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}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=t.getBoundingClientRect(),e=(i.height-this.tooltip.clientHeight)/2,o=(i.width-this.tooltip.clientWidth)/2;let n=0,s=0;switch(this.validPosition){case"top":s=-this.tooltip.clientHeight,n=o;break;case"bottom":s=i.height,n=o;break;case"left":s=e,n=-this.tooltip.clientWidth;break;case"right":s=e,n=i.width}i.left+n+this.tooltip.clientWidth>window.innerWidth&&(n=window.innerWidth-this.tooltip.clientWidth-i.left),i.left+n<0&&(n=0);const r=this.tooltip.style;r.left=n+"px",r.top=s+"px",r.maxWidth=`max(${i.width}px, ${wi.maxWidth})`}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}zi.elementDefinitions={"ft-typography":$i},zi.styles=ki,Si([o.property()],zi.prototype,"text",void 0),Si([o.property({type:Boolean})],zi.prototype,"manual",void 0),Si([o.property({type:Boolean})],zi.prototype,"inline",void 0),Si([o.property({type:Number})],zi.prototype,"delay",void 0),Si([o.property()],zi.prototype,"position",void 0),Si([o.queryAssignedNodes("",!0)],zi.prototype,"slotNodes",void 0),Si([o.query(".ft-tooltip--container")],zi.prototype,"container",void 0),Si([o.query("slot")],zi.prototype,"target",void 0),Si([o.query(".ft-tooltip")],zi.prototype,"tooltip",void 0),Si([o.query(".ft-tooltip--content")],zi.prototype,"tooltipContent",void 0),Si([o.state()],zi.prototype,"visible",void 0),i.customElement("ft-tooltip")(zi);const Ci={color:i.FtCssVariableFactory.extend("--ft-loader-color",i.designSystemVariables.colorPrimary),size:i.FtCssVariableFactory.create("--ft-loader-size","SIZE","80px")},Oi=e.css`
266
+ :host {
267
+ line-height: 0;
268
+ }
269
+
270
+ .ft-loader {
271
+ display: inline-block;
272
+ position: relative;
273
+
274
+ width: ${Ci.size};
275
+ height: ${Ci.size};
276
+ }
277
+
278
+ .ft-loader div {
279
+ position: absolute;
280
+ top: 37.5%;
281
+ width: 25%;
282
+ height: 25%;
283
+ border-radius: 50%;
284
+ background: ${Ci.color};
285
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
286
+ }
287
+
288
+ .ft-loader div:nth-child(1) {
289
+ left: 2.5%;
290
+ animation: appear 0.6s infinite;
291
+ }
292
+
293
+ .ft-loader div:nth-child(2) {
294
+ left: 2.5%;
295
+ animation: move 0.6s infinite;
296
+ }
297
+
298
+ .ft-loader div:nth-child(3) {
299
+ left: 37.5%;
300
+ animation: move 0.6s infinite;
301
+ }
302
+
303
+ .ft-loader div:nth-child(4) {
304
+ left: 72.5%;
305
+ animation: disappear 0.6s infinite;
306
+ }
307
+
308
+ @keyframes appear {
309
+ 0% {
310
+ transform: scale(0);
311
+ }
312
+ 100% {
313
+ transform: scale(1);
314
+ }
315
+ }
316
+
317
+ @keyframes disappear {
318
+ 0% {
319
+ transform: scale(1);
320
+ }
321
+ 100% {
322
+ transform: scale(0);
323
+ }
324
+ }
325
+
326
+ @keyframes move {
327
+ 0% {
328
+ transform: translate(0, 0);
329
+ }
330
+ 100% {
331
+ transform: translate(calc(0.35 * ${Ci.size}), 0);
332
+ }
333
+ }
334
+ `;class Ei extends i.FtLitElement{render(){return e.html`
335
+ <div class="ft-loader">
336
+ <div></div>
337
+ <div></div>
338
+ <div></div>
339
+ <div></div>
340
+ </div>
341
+ `}}var ji,Ii;Ei.styles=Oi,i.customElement("ft-loader")(Ei),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;"}(ji||(ji={})),function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"}(Ii||(Ii={}));const Ui=new Map([...["abw"].map((t=>[t,Ii.ABW])),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map((t=>[t,Ii.AUDIO])),...["avi"].map((t=>[t,Ii.AVI])),...["chm","xhs"].map((t=>[t,Ii.CHM])),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map((t=>[t,Ii.CODE])),...["csv"].map((t=>[t,Ii.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ii.DITA])),...["epub"].map((t=>[t,Ii.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ii.EXCEL])),...["flac"].map((t=>[t,Ii.FLAC])),...["gif"].map((t=>[t,Ii.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ii.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ii.HTML])),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf"].map((t=>[t,Ii.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ii.JPEG])),...["json"].map((t=>[t,Ii.JSON])),...["m4a","m4p"].map((t=>[t,Ii.M4A])),...["mov","qt"].map((t=>[t,Ii.MOV])),...["mp3"].map((t=>[t,Ii.MP3])),...["mp4","m4v"].map((t=>[t,Ii.MP4])),...["ogg","oga"].map((t=>[t,Ii.OGG])),...["pdf","ps"].map((t=>[t,Ii.PDF])),...["png"].map((t=>[t,Ii.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ii.POWERPOINT])),...["rar"].map((t=>[t,Ii.RAR])),...["stp"].map((t=>[t,Ii.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ii.TEXT])),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map((t=>[t,Ii.VIDEO])),...["wav"].map((t=>[t,Ii.WAV])),...["wma"].map((t=>[t,Ii.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ii.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ii.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ii.YAML])),...["zip"].map((t=>[t,Ii.ZIP]))]),Ni=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Mi={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")},Ai=e.css`
342
+ :host, i.ft-icon {
343
+ display: inline-flex;
344
+ align-items: center;
345
+ flex-shrink: 0;
346
+ flex-grow: 0;
347
+ }
348
+
349
+ :host {
350
+ width: ${Mi.size};
351
+ height: ${Mi.size};
352
+ }
353
+
354
+ i.ft-icon {
355
+ width: 100%;
356
+ height: 100%;
357
+ font-size: ${Mi.size};
358
+ line-height: 1;
359
+ font-weight: normal;
360
+ text-transform: none;
361
+ font-style: normal;
362
+ font-variant: normal;
363
+ speak: none;
364
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
365
+ text-rendering: auto;
366
+ -webkit-font-smoothing: antialiased;
367
+ -moz-osx-font-smoothing: grayscale;
368
+ vertical-align: ${Mi.verticalAlign};
369
+ }
370
+
371
+ i.ft-icon.ft-icon--fluid-topics {
372
+ font-family: ${Mi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
373
+
374
+ /* Ugly fix because font is broken */
375
+ font-size: calc(0.9 * ${Mi.size});
376
+ position: relative;
377
+ top: -5%;
378
+ justify-content: center;
379
+ }
380
+
381
+ .ft-icon--file-format {
382
+ font-family: ${Mi.fileFormatFontFamily}, ft-mime, sans-serif;
383
+ }
384
+
385
+ .ft-icon--material {
386
+ font-family: ${Mi.materialFontFamily}, "Material Icons", sans-serif;
387
+ }
388
+ `;var Bi;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Bi||(Bi={}));var Ti=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 Fi extends i.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=e.nothing}render(){var t;const i=null!==(t=this.variant)&&void 0!==t?t:Bi.fluid_topics,o="material"!==i||this.value;return e.html`
389
+ <i class="ft-icon ${"ft-icon--"+i}">
390
+ ${s.unsafeHTML(this.resolvedIcon)}
391
+ <slot ?hidden=${o}></slot>
392
+ </i>
393
+ `}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 Bi.file_format:this.resolvedIcon=null!==(t=Ii[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Bi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=ji[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Fi.elementDefinitions={},Fi.styles=Ai,Ti([o.property()],Fi.prototype,"variant",void 0),Ti([o.property()],Fi.prototype,"value",void 0),Ti([o.state()],Fi.prototype,"resolvedIcon",void 0),Ti([o.query("slot")],Fi.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Fi);const Di=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Ri={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Di,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",li.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Di),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},_i=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Li={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:_i,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",_i)},Pi=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Zi=[i.noTextSelect,e.css`
394
+ :host {
395
+ display: inline-block;
396
+ max-width: 100%;
397
+ pointer-events: none;
398
+ }
399
+
400
+ button {
401
+ box-shadow: 0px 0px 0px transparent;
402
+ border: 0px solid transparent;
403
+ text-shadow: 0px 0px 0px transparent;
404
+ font-size: ${Ri.fontSize};
405
+ }
406
+
407
+ button:hover {
408
+ box-shadow: 0px 0px 0px transparent;
409
+ border: 0px solid transparent;
410
+ text-shadow: 0px 0px 0px transparent;
411
+ }
412
+
413
+ button:active {
414
+ outline: none;
415
+ border: none;
416
+ }
417
+
418
+ button:focus {
419
+ outline: 0;
420
+ }
421
+
422
+ .ft-button {
423
+ position: relative;
424
+ display: flex;
425
+ justify-content: center;
426
+ align-items: center;
427
+ width: 100%;
428
+ overflow: hidden;
429
+ box-sizing: border-box;
430
+ border: none;
431
+ pointer-events: auto;
432
+
433
+ --ft-button-internal-line-height: calc(${Ri.fontSize} + 2px);
434
+ --ft-button-internal-color: ${Ri.color};
435
+ ${i.setVariable(Mi.size,Ri.iconSize)};
436
+ --ft-button-internal-vertical-padding: 6px;
437
+ --ft-button-internal-horizontal-padding: 8px;
438
+ ${i.setVariable(l.color,Ri.rippleColor)};
439
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Ri.iconSize});
440
+
441
+ border-radius: ${Ri.borderRadius};
442
+ padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
443
+ background-color: ${Ri.backgroundColor};
444
+ color: var(--ft-button-internal-color);
445
+ -webkit-mask-image: radial-gradient(white, black);
446
+ }
447
+
448
+ .ft-button:not([disabled]):hover {
449
+ cursor: pointer;
450
+ }
451
+
452
+ .ft-button--dense {
453
+ --ft-button-internal-vertical-padding: 2px;
454
+ --ft-button-internal-horizontal-padding: 4px;
455
+ border-radius: ${Pi};
456
+ }
457
+
458
+ .ft-button--round {
459
+ border-radius: calc(var(--ft-button-internal-content-height) / 2 + var(--ft-button-internal-vertical-padding));
460
+ }
461
+
462
+ .ft-button[disabled] {
463
+ filter: grayscale(1);
464
+ opacity: ${Ri.opacityDisabled};
465
+ }
466
+
467
+ .ft-button.ft-button--primary {
468
+ background-color: ${Li.backgroundColor};
469
+ --ft-button-internal-color: ${Li.color};
470
+ ${i.setVariable(l.color,Li.rippleColor)};
471
+ }
472
+
473
+ .ft-button.ft-button--outlined {
474
+ border: 1px solid var(--ft-button-internal-color);
475
+ padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
476
+ }
477
+
478
+ .ft-button:focus {
479
+ outline: none;
480
+ }
481
+
482
+ .ft-button--label {
483
+ position: relative;
484
+ overflow: hidden;
485
+ white-space: nowrap;
486
+ text-overflow: ellipsis;
487
+ display: block;
488
+ margin: 0 var(--ft-button-internal-horizontal-padding);
489
+ ${i.setVariable(li.fontSize,"1em")};
490
+ ${i.setVariable(li.lineHeight,"var(--ft-button-internal-content-height)")};
491
+ }
492
+
493
+ .ft-button--label[hidden] {
494
+ display: none;
495
+ }
496
+
497
+ ft-icon {
498
+ flex-shrink: 0;
499
+ position: relative;
500
+ }
501
+
502
+ .ft-button--label[hidden] + ft-icon {
503
+ margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
504
+ padding: 0 var(--ft-button-internal-vertical-padding);
505
+ }
506
+
507
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
508
+ .ft-button:not(.ft-button--trailing-icon) ft-loader {
509
+ order: -1;
510
+ }
511
+
512
+ ft-loader {
513
+ ${i.setVariable(Ci.size,Ri.iconSize)};
514
+ ${i.setVariable(Ci.color,"var(--ft-button-internal-color)")};
515
+ }
516
+ `];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 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.iconVariant=Bi.material,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`
517
+ <button part="button"
518
+ class="${n.classMap(t)}"
519
+ aria-label="${this.getLabel()}"
520
+ ?disabled=${this.isDisabled()}>
521
+ <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
522
+ <ft-typography part="label"
523
+ variant="button"
524
+ element="span"
525
+ class="ft-button--label ${i.isSafari?"ft-safari-ellipsis-fix":""}"
526
+ ?hidden=${!this.hasTextContent()}>
527
+ <slot @slotchange=${this.onSlotchange}></slot>
528
+ </ft-typography>
529
+ ${this.resolveIcon()}
530
+ </button>
531
+ `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?e.html`
532
+ <ft-tooltip part="tooltip"
533
+ text="${this.getLabel()}"
534
+ position="${this.tooltipPosition}">
535
+ ${t}
536
+ </ft-tooltip>
537
+ `:t}resolveIcon(){return this.loading?e.html`
538
+ <ft-loader></ft-loader> `:this.icon?e.html`
539
+ <ft-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}}Wi.elementDefinitions={"ft-ripple":y,"ft-tooltip":zi,"ft-typography":$i,"ft-icon":Fi,"ft-loader":Ei},Wi.styles=[i.safariEllipsisFix,Zi],Ki([o.property({type:String,reflect:!0})],Wi.prototype,"role",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"primary",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"outlined",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"disabled",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"dense",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"round",void 0),Ki([o.property({type:String})],Wi.prototype,"label",void 0),Ki([o.property({type:String})],Wi.prototype,"icon",void 0),Ki([o.property({type:String})],Wi.prototype,"iconVariant",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"trailingIcon",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"loading",void 0),Ki([o.property({type:String})],Wi.prototype,"tooltipPosition",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"hideTooltip",void 0),Ki([o.property({type:Boolean})],Wi.prototype,"forceTooltip",void 0),Ki([o.query(".ft-button")],Wi.prototype,"button",void 0),Ki([o.query(".ft-button--label slot")],Wi.prototype,"slottedContent",void 0),i.customElement("ft-button")(Wi);const Gi={height:i.FtCssVariableFactory.create("--ft-search-input-height","SIZE","38px"),borderRadius:i.FtCssVariableFactory.extend("--ft-search-input-border-radius",i.designSystemVariables.borderRadiusS),desktopFiltersHeight:i.FtCssVariableFactory.create("--ft-search-input-desktop-filters-height","SIZE","350px"),floatingZIndex:i.FtCssVariableFactory.create("--ft-search-input-floating-components-z-index","NUMBER","3"),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),colorOnSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:i.FtCssVariableFactory.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:i.FtCssVariableFactory.external(i.designSystemVariables.colorOutline,"Design system"),colorPrimary:i.FtCssVariableFactory.external(i.designSystemVariables.colorPrimary,"Design system"),elevation02:i.FtCssVariableFactory.external(i.designSystemVariables.elevation02,"Design system"),buttonColor:i.FtCssVariableFactory.external(Ri.color,"Button"),buttonRippleColor:i.FtCssVariableFactory.external(Ri.rippleColor,"Button")},Hi=e.css`
540
+ * {
541
+ box-sizing: border-box;
542
+ }
543
+
544
+ .ft-search-input {
545
+ position: relative;
546
+ display: flex;
547
+ flex-direction: row;
548
+ align-items: center;
549
+ height: ${Gi.height};
550
+
551
+ background: ${Gi.colorSurface};
552
+ border: 1px solid ${Gi.colorOutline};
553
+ border-radius: ${Gi.borderRadius};
554
+ }
555
+
556
+ .ft-search-input--input-container {
557
+ flex-grow: 1;
558
+ flex-shrink: 1;
559
+ position: relative;
560
+ height: calc(100% - 2px);
561
+ }
562
+
563
+ .ft-search-input--input-outline {
564
+ height: 100%;
565
+ width: 100%;
566
+ display: grid;
567
+ padding: 0 8px;
568
+ border-radius: ${Gi.borderRadius};
569
+ }
570
+
571
+ .ft-search-input--input-container:focus-within .ft-search-input--input-outline {
572
+ outline: 2px solid ${Gi.colorPrimary};
573
+ }
574
+
575
+ .ft-search-input--input {
576
+ height: 100%;
577
+ border: none;
578
+ background-color: transparent;
579
+ color: ${Gi.colorOnSurface};
580
+ outline: none;
581
+ }
582
+
583
+ .ft-search-input--input::placeholder {
584
+ color: ${Gi.colorOnSurfaceMedium};
585
+ }
586
+
587
+ .ft-search-input--actions {
588
+ flex-shrink: 0;
589
+ display: flex;
590
+ flex-direction: row;
591
+ align-items: center;
592
+ height: 100%;
593
+
594
+ ${i.setVariable(wi.zIndex,`calc(${Gi.floatingZIndex} + 1)`)};
595
+ }
596
+
597
+ .ft-search-input > ft-button,
598
+ .ft-search-input--actions ft-button {
599
+ flex-shrink: 0;
600
+ ${i.setVariable(Ri.backgroundColor,"transparent")};
601
+ }
602
+
603
+ .ft-search-input .ft-search-input--launch-search {
604
+ margin: 0 4px;
605
+ }
606
+
607
+ ft-search-input-suggestion {
608
+ display: none;
609
+ }
610
+
611
+ .ft-search-input.ft-search-input--with-suggestions:focus-within:not(.ft-search-input--with-suggestions-closed) ft-search-input-suggestion {
612
+ display: block;
613
+ }
614
+ `;var qi=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 Qi extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}}const Vi=Symbol("registerInterval");class Xi 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)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[Vi]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[Vi]):this.dispatchEvent(new Qi)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return i=Vi,qi([o.state()],e.prototype,"stateManager",void 0),e}(i.FtLitElementRedux)){}const Yi=e.css`
615
+ `,Ji=e.css`
616
+ `,te=i.FtReduxStore.get({name:"ft-app-info",reducers:{setBaseUrl:(t,i)=>{t.baseUrl=i.payload},setApiIntegrationIdentifier:(t,i)=>{t.apiIntegrationIdentifier=i.payload},setUiLocale:(t,i)=>{t.uiLocale=i.payload},setAvailableUiLocales:(t,i)=>{t.availableUiLocales=i.payload},setEditorMode:(t,i)=>{t.editorMode=i.payload},setNoCustom:(t,i)=>{t.noCustom=i.payload},setNoCustomComponent:(t,i)=>{t.noCustomComponent=i.payload},setSession:(t,i)=>{t.session=i.payload}},initialState:{uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],editorMode:!1,noCustom:!1,noCustomComponent:!1}});class ie{static build(t){const{baseUrl:i,apiIntegrationIdentifier:e}=te.getState(),o=null!=t?t:e;if(i&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,o,!0)}static get(t){var i;return null!=t?ie.build(t):null!==(i=ie.API)&&void 0!==i?i:ie.API=ie.build()}static await(t){return new Promise((i=>{let e=ie.get(t);if(e)i(e);else{const o=te.subscribe((()=>{e=ie.get(t),e&&(o(),i(e))}))}}))}}var ee;const oe=Symbol("clearAfterUnitTest");class ne{constructor(t){this.apiProvider=t,this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={},this.currentUiLocale="",this[ee]=()=>{this.defaultMessages={},this.cache=new i.CacheRegistry,this.listeners={}},this.currentUiLocale=te.getState().uiLocale,te.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=te.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const i=t.name.toLowerCase();this.cache.setFinal(i,t),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){const 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,(async()=>{var i;return await(null===(i=this.apiProvider())||void 0===i?void 0:i.getFluidTopicsMessageContext(this.currentUiLocale,t))})),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,i){var e;return t=t.toLowerCase(),this.listeners[t]=null!==(e=this.listeners[t])&&void 0!==e?e:new Set,this.listeners[t].add(i),()=>{var e;return null===(e=this.listeners[t])||void 0===e?void 0:e.delete(i)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>i.delay(0).then((()=>t())).catch((()=>null)))))}}ee=oe,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new ne(ie.get));const se=window.FluidTopicsI18nService;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 ae extends i.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.availableUiLocales=[],this.editorMode=!1,this.noCustom=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>ie.get(),this.cache=new i.CacheRegistry,this.cleanSessionDebouncer=new i.Debouncer}render(){return e.html`
617
+ <slot></slot>
618
+ `}updated(t){super.updated(t),t.has("baseUrl")&&te.actions.setBaseUrl(this.baseUrl),t.has("apiIntegrationIdentifier")&&te.actions.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&te.actions.setUiLocale(this.uiLocale),t.has("noCustom")&&te.actions.setNoCustom(this.noCustom),t.has("editorMode")&&te.actions.setEditorMode(this.editorMode),t.has("noCustomComponent")&&te.actions.setNoCustomComponent(this.noCustomComponent),t.has("session")&&te.actions.setSession(this.session),t.has("availableUiLocales")&&te.actions.setAvailableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>se.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()))))}}ae.elementDefinitions={},ae.styles=Ji,re([o.property()],ae.prototype,"baseUrl",void 0),re([o.property()],ae.prototype,"apiIntegrationIdentifier",void 0),re([o.property()],ae.prototype,"uiLocale",void 0),re([i.jsonProperty([])],ae.prototype,"availableUiLocales",void 0),re([o.property({type:Boolean})],ae.prototype,"editorMode",void 0),re([o.property({type:Boolean})],ae.prototype,"noCustom",void 0),re([o.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],ae.prototype,"noCustomComponent",void 0),re([o.property({type:Boolean})],ae.prototype,"withManualResources",void 0),re([i.jsonProperty([])],ae.prototype,"messageContexts",void 0),re([i.jsonProperty(void 0)],ae.prototype,"session",void 0),re([o.property({type:Object})],ae.prototype,"apiProvider",void 0),i.customElement("ft-app-context")(ae);const le=Symbol("i18nProperties"),pe=Symbol("i18nUnsubs");function he(t){var i;return i=pe,class extends t{constructor(){super(...arguments),this[i]=new Map}i18n(t,i,...e){var o;if("string"==typeof t)return se.resolveMessage(t,i,...e);const n=null!==(o=t.args)&&void 0!==o?o:t.argsProvider?t.argsProvider(this):[];return se.resolveMessage(t.context,t.key,...n)}onI18nUpdate(t){var i;null===(i=this[le])||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[le])||void 0===i||i.forEach(((t,i)=>{null!=t.argsProvider&&(this[i]=this.i18n(t))}))}connectedCallback(){super.connectedCallback(),null!=this[le]&&new Set([...this[le].values()].map((t=>t.context))).forEach((t=>this.addI18nMessages(t)))}addI18nMessages(t,i){t=t.toLowerCase(),this[pe].has(t)||this[pe].set(t,se.subscribe(t,(()=>this.onI18nUpdate(t)))),se.prepareContext(t,null!=i?i:{})}addI18nContext(t,i){this.addI18nMessages(t.name,i)}disconnectedCallback(){super.disconnectedCallback(),this[pe].forEach((t=>t())),this[pe].clear()}}}class ce extends(he(i.FtLitElement)){}class fe extends(he(i.FtLitElementRedux)){}var de=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 ce{render(){return this.key&&this.context?e.html`
619
+ <span class="ft-i18n">${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}</span>
620
+ `: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=Yi,de([o.property()],ue.prototype,"context",void 0),de([o.property()],ue.prototype,"key",void 0),de([i.jsonProperty([])],ue.prototype,"args",void 0),de([o.property()],ue.prototype,"defaultMessage",void 0);class ge{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)=>se.resolveMessage(this.name,i,...t)})}static build(t){return new ge(t)}static fromGwt(t){return new ge(t)}}i.customElement("ft-i18n")(ue);const ve=ge.build("designedSearchInput"),xe=e.css`
621
+ * {
622
+ box-sizing: border-box;
623
+ }
624
+
625
+ .ft-search-input-suggestion {
626
+ position: absolute;
627
+ z-index: ${Gi.floatingZIndex};
628
+ top: calc(100% + 2px);
629
+ left: -1px;
630
+ right: -1px;
631
+ background: ${Gi.colorSurface};
632
+ border: 1px solid ${Gi.colorOutline};
633
+ border-radius: 0 0 ${Gi.borderRadius} ${Gi.borderRadius};
634
+ box-shadow: ${Gi.elevation02};
635
+ }
636
+
637
+ .ft-search-input-suggestion--suggestion {
638
+ text-decoration: none;
639
+ position: relative;
640
+ display: flex;
641
+ align-items: center;
642
+ padding: 8px;
643
+ gap: 8px;
644
+ cursor: pointer;
645
+ color: ${Gi.colorOnSurface};
646
+ min-height: 44px;
647
+ }
648
+
649
+ .ft-search-input-suggestion--suggestion > *:not(ft-ripple) {
650
+ position: relative;
651
+ }
652
+
653
+ .ft-search-input-suggestion--suggestion:focus {
654
+ outline: none;
655
+ }
656
+
657
+ .ft-search-input-suggestion--suggestion ft-typography {
658
+ display: block;
659
+ flex-grow: 1;
660
+ flex-shrink: 1;
661
+ }
662
+ `;var ye=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 be extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t})}}let me=class extends Xi{constructor(){super(...arguments),this.suggestResults=[]}render(){return e.html`
663
+ <div class="ft-search-input-suggestion ft-word-wrap"
664
+ part="container"
665
+ @keydown=${t=>this.onSuggestKeyDown(t)}>
666
+ ${r.repeat(this.suggestResults,(t=>t.value),(t=>e.html`
667
+ <a href="#"
668
+ part="suggestion"
669
+ class="ft-search-input-suggestion--suggestion"
670
+ @keyup=${i=>this.onSuggestKeyUp(i,t.value)}
671
+ @click=${i=>this.onSuggestSelected(i,t.value)}>
672
+ <ft-ripple></ft-ripple>
673
+ ${this.getIcon(t)}
674
+ <ft-typography variant="body1">${t.value}</ft-typography>
675
+ </a>
676
+ `))}
677
+ </div>
678
+ `}onSuggestKeyDown(t){var i,e,o,n,s,r;switch(t.key){case"ArrowUp":null===(o=null!==(e=null===(i=this.getFocusedSuggestionElement())||void 0===i?void 0:i.previousElementSibling)&&void 0!==e?e:this.getLastSuggestionElement())||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(r=null!==(s=null===(n=this.getFocusedSuggestionElement())||void 0===n?void 0:n.nextElementSibling)&&void 0!==s?s:this.getFirstSuggestionElement())||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}}onSuggestKeyUp(t,i){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,i)}onSuggestSelected(t,i){t.preventDefault(),this.dispatchEvent(new be(i))}getIcon(t){const i="DOCUMENT"===t.type?Bi.file_format:Bi.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?ji.BOOK:ji.ARTICLE;break;case"DOCUMENT":o=function(t,i){var e,o,n,s;t=(null!=t?t:"").toLowerCase(),i=(null!=i?i:"").toLowerCase();const[r,a]=((null!==(e=Ni.get(t))&&void 0!==e?e:t)+"/").split("/");return null!==(s=null!==(n=null!==(o=Ui.get(a))&&void 0!==o?o:Ui.get(i))&&void 0!==n?n:Ui.get(r))&&void 0!==s?s:Ii.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=ji.TOPICS}return e.html`
679
+ <ft-icon variant="${i}" part="suggestion-icon">
680
+ ${o}
681
+ </ft-icon>
682
+ `}getFocusedSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion:focus-within")}getLastSuggestionElement(){let t=this.shadowRoot.querySelectorAll(".ft-search-input-suggestion--suggestion");return t.length>0?t[t.length-1]:null}getFirstSuggestionElement(){return this.shadowRoot.querySelector(".ft-search-input-suggestion--suggestion")}focusFirstSuggestion(){var t;null===(t=this.getFirstSuggestionElement())||void 0===t||t.focus()}};me.elementDefinitions={"ft-ripple":y,"ft-typography":$i,"ft-icon":Fi},me.styles=[i.wordWrap,xe],ye([i.redux()],me.prototype,"suggestResults",void 0),me=ye([o.customElement("ft-search-input-suggestion")],me);var $e=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 we extends(he(Xi)){constructor(){super(),this.liveQuery="",this.suggestResults=[],this.forceCloseSuggestion=!1,this.addI18nContext(ve)}render(){let t={"ft-search-input":!0,"ft-search-input--with-suggestions":this.suggestResults.length>0,"ft-search-input--with-suggestions-closed":this.forceCloseSuggestion};return e.html`
683
+ <div class="${n.classMap(t)}" @focusout=${()=>this.forceCloseSuggestion=!1}>
684
+ <div class="ft-search-input--input-container" part="input-container" tabindex="-1">
685
+ <div class="ft-search-input--input-outline" part="input-outline">
686
+ <input class="ft-search-input--input ft-typography--body2"
687
+ part="input"
688
+ type="text"
689
+ placeholder="${ve.messages.placeholder()}"
690
+ .value="${this.liveQuery}"
691
+ @keydown=${t=>this.onSearchBarKeyDown(t)}
692
+ @keyup=${t=>this.onSearchBarKeyUp(t)}>
693
+ </div>
694
+ <ft-search-input-suggestion exportpartsPrefix="suggestion"
695
+ @suggestion-selected=${this.onSuggestionSelected}
696
+ ></ft-search-input-suggestion>
697
+ </div>
698
+ <div class="ft-search-input--actions" part="actions">
699
+ <ft-button class="ft-search-input--launch-search"
700
+ part="launch-search-in-input"
701
+ icon="search"
702
+ round dense
703
+ label="${ve.messages.searchButton()}"
704
+ @click=${()=>this.launchSearch()}
705
+ ></ft-button>
706
+ </div>
707
+ </div>
708
+ `}onSearchBarKeyDown(t){if("ArrowDown"===t.key)t.stopPropagation(),t.preventDefault(),this.suggestion.focusFirstSuggestion()}onSearchBarKeyUp(t){var i,e;"Enter"===t.key?(null===(i=this.stateManager)||void 0===i||i.setQuery(this.input.value),this.forceCloseSuggestion=!0):null===(e=this.stateManager)||void 0===e||e.setLiveQuery(this.input.value)}launchSearch(){var t;null===(t=this.stateManager)||void 0===t||t.setQuery(this.liveQuery),this.forceCloseSuggestion=!0}onSuggestionSelected(t){var i,e;null===(i=this.stateManager)||void 0===i||i.setQuery(t.detail),null===(e=this.stateManager)||void 0===e||e.setLiveQuery(t.detail),this.forceCloseSuggestion=!0}}we.elementDefinitions={"ft-search-input-suggestion":me,"ft-button":Wi},we.styles=[ui,Hi],$e([i.redux()],we.prototype,"request",void 0),$e([i.redux()],we.prototype,"liveQuery",void 0),$e([i.redux()],we.prototype,"suggestResults",void 0),$e([o.state()],we.prototype,"forceCloseSuggestion",void 0),$e([o.query(".ft-search-input--input")],we.prototype,"input",void 0),$e([o.query("ft-search-input-suggestion")],we.prototype,"suggestion",void 0),i.customElement("ft-search-input")(we),t.FtSearchInput=we,t.FtSearchInputCssVariables=Gi,t.styles=Hi,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat);