@fluid-topics/ft-search-bar 0.1.17 → 0.2.1

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,95 +1,80 @@
1
- !function(t,e,i,o,r,a,c,n){var s,l=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};!function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(s||(s={}));class d extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}let p=class extends a.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=s.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new a.Debouncer}getStyles(){return e.css`
2
- .ft-size-watcher--pixel {
3
- width: 0;
4
- height: 0;
5
- overflow: hidden;
6
- }
7
-
8
- .ft-size-watcher--pixel.ft-size-watcher--local {
9
- width: 100%;
10
- }
11
-
12
- .ft-size-watcher--watcher {
13
- height: 1px;
14
- width: 100vw;
15
- }
16
-
17
- .ft-size-watcher--local .ft-size-watcher--watcher {
18
- width: 100%;
19
- }
20
- `}getTemplate(){return e.html`
1
+ !function(t,e,i,o,s,n,r){var l,a,c=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.S="S",t.M="M",t.L="L",t.XL="XL",t.XXL="XXL"}(l||(l={}));class h extends CustomEvent{constructor(t,e){super("change",{detail:{size:t,category:e}})}}class p extends e.FtLitElement{constructor(){super(...arguments),this.debounceTimeout=100,this.local=!1,this.size=0,this.category=l.S,this.resizeObserver=new ResizeObserver((()=>this.updateSize())),this.debouncer=new e.Debouncer}render(){return i.html`
21
2
  <div class="ft-size-watcher--pixel ${this.local?"ft-size-watcher--local":""}">
22
3
  <div class="ft-size-watcher--watcher"></div>
23
4
  </div>
24
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=s.S:this.size<976?this.category=s.M:this.size<1024?this.category=s.L:this.size<1440?this.category=s.XL:this.category=s.XXL,this.dispatchEvent(new d(this.size,this.category)))}),this.debounceTimeout)}};
25
- /**
26
- * @license
27
- * Copyright 2017 Google LLC
28
- * SPDX-License-Identifier: BSD-3-Clause
29
- */
30
- var h;p.elementDefinitions={},l([i.property({type:Number})],p.prototype,"debounceTimeout",void 0),l([i.property({type:Boolean})],p.prototype,"local",void 0),l([i.property({type:Number,reflect:!0})],p.prototype,"size",void 0),l([i.property({type:String,reflect:!0})],p.prototype,"category",void 0),l([i.query(".ft-size-watcher--watcher")],p.prototype,"watcher",void 0),p=l([a.customElement("ft-size-watcher")],p);const f=globalThis.trustedTypes,u=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,m=`lit$${(Math.random()+"").slice(9)}$`,b="?"+m,g=`<${b}>`,v=document,x=(t="")=>v.createComment(t),y=t=>null===t||"object"!=typeof t&&"function"!=typeof t,k=Array.isArray,$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,w=/>/g,z=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,S=/'/g,O=/"/g,C=/^(?:script|style|textarea|title)$/i,B=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),E=Symbol.for("lit-noChange"),T=Symbol.for("lit-nothing"),A=new WeakMap,F=v.createTreeWalker(v,129,null,!1),I=(t,e)=>{const i=t.length-1,o=[];let r,a=2===e?"<svg>":"",c=$;for(let e=0;e<i;e++){const i=t[e];let n,s,l=-1,d=0;for(;d<i.length&&(c.lastIndex=d,s=c.exec(i),null!==s);)d=c.lastIndex,c===$?"!--"===s[1]?c=_:void 0!==s[1]?c=w:void 0!==s[2]?(C.test(s[2])&&(r=RegExp("</"+s[2],"g")),c=z):void 0!==s[3]&&(c=z):c===z?">"===s[0]?(c=null!=r?r:$,l=-1):void 0===s[1]?l=-2:(l=c.lastIndex-s[2].length,n=s[1],c=void 0===s[3]?z:'"'===s[3]?O:S):c===O||c===S?c=z:c===_||c===w?c=$:(c=z,r=void 0);const p=c===z&&t[e+1].startsWith("/>")?" ":"";a+=c===$?i+g:l>=0?(o.push(n),i.slice(0,l)+"$lit$"+i.slice(l)+m+p):i+m+(-2===l?(o.push(void 0),e):p)}const n=a+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==u?u.createHTML(n):n,o]};class R{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,a=0;const c=t.length-1,n=this.parts,[s,l]=I(t,e);if(this.el=R.createElement(s,i),F.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=F.nextNode())&&n.length<c;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(m)){const i=l[a++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(m),e=/([.?@])?(.*)/.exec(i);n.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?P:"?"===e[1]?H:"@"===e[1]?U:M})}else n.push({type:6,index:r})}for(const e of t)o.removeAttribute(e)}if(C.test(o.tagName)){const t=o.textContent.split(m),e=t.length-1;if(e>0){o.textContent=f?f.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],x()),F.nextNode(),n.push({type:2,index:++r});o.append(t[e],x())}}}else if(8===o.nodeType)if(o.data===b)n.push({type:2,index:r});else{let t=-1;for(;-1!==(t=o.data.indexOf(m,t+1));)n.push({type:7,index:r}),t+=m.length-1}r++}}static createElement(t,e){const i=v.createElement("template");return i.innerHTML=t,i}}function D(t,e,i=t,o){var r,a,c,n;if(e===E)return e;let s=void 0!==o?null===(r=i._$Cl)||void 0===r?void 0:r[o]:i._$Cu;const l=y(e)?void 0:e._$litDirective$;return(null==s?void 0:s.constructor)!==l&&(null===(a=null==s?void 0:s._$AO)||void 0===a||a.call(s,!1),void 0===l?s=void 0:(s=new l(t),s._$AT(t,i,o)),void 0!==o?(null!==(c=(n=i)._$Cl)&&void 0!==c?c:n._$Cl=[])[o]=s:i._$Cu=s),void 0!==s&&(e=D(t,s._$AS(t,e.values),s,o)),e}class L{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:v).importNode(i,!0);F.currentNode=r;let a=F.nextNode(),c=0,n=0,s=o[0];for(;void 0!==s;){if(c===s.index){let e;2===s.type?e=new j(a,a.nextSibling,this,t):1===s.type?e=new s.ctor(a,s.name,s.strings,this,t):6===s.type&&(e=new V(a,this,t)),this.v.push(e),s=o[++n]}c!==(null==s?void 0:s.index)&&(a=F.nextNode(),c++)}return r}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class j{constructor(t,e,i,o){var r;this.type=2,this._$AH=T,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(r=null==o?void 0:o.isConnected)||void 0===r||r}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=D(this,t,e),y(t)?t===T||null==t||""===t?(this._$AH!==T&&this._$AR(),this._$AH=T):t!==this._$AH&&t!==E&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return k(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==T&&y(this._$AH)?this._$AA.nextSibling.data=t:this.S(v.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,r="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=R.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.m(i);else{const t=new L(r,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=A.get(t.strings);return void 0===e&&A.set(t.strings,e=new R(t)),e}A(t){k(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new j(this.M(x()),this.M(x()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class M{constructor(t,e,i,o,r){this.type=1,this._$AH=T,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=T}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const r=this.strings;let a=!1;if(void 0===r)t=D(this,t,e,0),a=!y(t)||t!==this._$AH&&t!==E,a&&(this._$AH=t);else{const o=t;let c,n;for(t=r[0],c=0;c<r.length-1;c++)n=D(this,o[i+c],e,c),n===E&&(n=this._$AH[c]),a||(a=!y(n)||n!==this._$AH[c]),n===T?t=T:t!==T&&(t+=(null!=n?n:"")+r[c+1]),this._$AH[c]=n}a&&!o&&this.k(t)}k(t){t===T?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class P extends M{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===T?void 0:t}}const N=f?f.emptyScript:"";class H extends M{constructor(){super(...arguments),this.type=4}k(t){t&&t!==T?this.element.setAttribute(this.name,N):this.element.removeAttribute(this.name)}}class U extends M{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=D(this,t,e,0))&&void 0!==i?i:T)===E)return;const o=this._$AH,r=t===T&&o!==T||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==T&&(o===T||r);r&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class V{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){D(this,t)}}const Z=window.litHtmlPolyfillSupport;null==Z||Z(R,j),(null!==(h=globalThis.litHtmlVersions)&&void 0!==h?h:globalThis.litHtmlVersions=[]).push("2.1.3");
5
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.watcher&&this.resizeObserver.observe(this.watcher),this.updateSize()}updateSize(){this.debouncer.run((()=>{this.watcher&&this.size!==this.watcher.clientWidth&&(this.size=this.watcher.clientWidth,this.size<768?this.category=l.S:this.size<976?this.category=l.M:this.size<1024?this.category=l.L:this.size<1440?this.category=l.XL:this.category=l.XXL,this.dispatchEvent(new h(this.size,this.category)))}),this.debounceTimeout)}}p.elementDefinitions={},p.styles=i.css`
6
+ .ft-size-watcher--pixel {
7
+ width: 0;
8
+ height: 0;
9
+ overflow: hidden;
10
+ }
11
+
12
+ .ft-size-watcher--pixel.ft-size-watcher--local {
13
+ width: 100%;
14
+ }
15
+
16
+ .ft-size-watcher--watcher {
17
+ height: 1px;
18
+ width: 100vw;
19
+ }
20
+
21
+ .ft-size-watcher--local .ft-size-watcher--watcher {
22
+ width: 100%;
23
+ }
24
+ `,c([o.property({type:Number})],p.prototype,"debounceTimeout",void 0),c([o.property({type:Boolean})],p.prototype,"local",void 0),c([o.property({type:Number,reflect:!0})],p.prototype,"size",void 0),c([o.property({type:String,reflect:!0})],p.prototype,"category",void 0),c([o.query(".ft-size-watcher--watcher")],p.prototype,"watcher",void 0),e.customElement("ft-size-watcher")(p);const f=globalThis.trustedTypes,d=f?f.createPolicy("lit-html",{createHTML:t=>t}):void 0,u=`lit$${(Math.random()+"").slice(9)}$`,b="?"+u,v=`<${b}>`,g=document,x=(t="")=>g.createComment(t),y=t=>null===t||"object"!=typeof t&&"function"!=typeof t,m=Array.isArray,$=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,w=/-->/g,k=/>/g,S=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,z=/'/g,O=/"/g,B=/^(?:script|style|textarea|title)$/i,C=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),E=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),D=new WeakMap,F=g.createTreeWalker(g,129,null,!1),L=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=$;for(let e=0;e<i;e++){const i=t[e];let l,a,c=-1,h=0;for(;h<i.length&&(r.lastIndex=h,a=r.exec(i),null!==a);)h=r.lastIndex,r===$?"!--"===a[1]?r=w:void 0!==a[1]?r=k:void 0!==a[2]?(B.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=S):void 0!==a[3]&&(r=S):r===S?">"===a[0]?(r=null!=s?s:$,c=-1):void 0===a[1]?c=-2:(c=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?S:'"'===a[3]?O:z):r===O||r===z?r=S:r===w||r===k?r=$:(r=S,s=void 0);const p=r===S&&t[e+1].startsWith("/>")?" ":"";n+=r===$?i+v:c>=0?(o.push(l),i.slice(0,c)+"$lit$"+i.slice(c)+u+p):i+u+(-2===c?(o.push(void 0),e):p)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==d?d.createHTML(l):l,o]};class j{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,c]=L(t,e);if(this.el=j.createElement(a,i),F.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=F.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(u)){const i=c[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(u),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?R:"?"===e[1]?_:"@"===e[1]?U:N})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(B.test(o.tagName)){const t=o.textContent.split(u),e=t.length-1;if(e>0){o.textContent=f?f.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],x()),F.nextNode(),l.push({type:2,index:++s});o.append(t[e],x())}}}else if(8===o.nodeType)if(o.data===b)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(u,t+1));)l.push({type:7,index:s}),t+=u.length-1}s++}}static createElement(t,e){const i=g.createElement("template");return i.innerHTML=t,i}}function M(t,e,i=t,o){var s,n,r,l;if(e===E)return e;let a=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const c=y(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=M(t,a._$AS(t,e.values),a,o)),e}class A{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:g).importNode(i,!0);F.currentNode=s;let n=F.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new T(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new Z(n,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=F.nextNode(),r++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class T{constructor(t,e,i,o){var s;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=M(this,t,e),y(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==E&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return m(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==I&&y(this._$AH)?this._$AA.nextSibling.data=t:this.S(g.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=j.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new A(s,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=D.get(t.strings);return void 0===e&&D.set(t.strings,e=new j(t)),e}A(t){m(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new T(this.M(x()),this.M(x()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class N{constructor(t,e,i,o,s){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=s,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=M(this,t,e,0),n=!y(t)||t!==this._$AH&&t!==E,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=M(this,o[i+r],e,r),l===E&&(l=this._$AH[r]),n||(n=!y(l)||l!==this._$AH[r]),l===I?t=I:t!==I&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.k(t)}k(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class R extends N{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===I?void 0:t}}const P=f?f.emptyScript:"";class _ extends N{constructor(){super(...arguments),this.type=4}k(t){t&&t!==I?this.element.setAttribute(this.name,P):this.element.removeAttribute(this.name)}}class U extends N{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=M(this,t,e,0))&&void 0!==i?i:I)===E)return;const o=this._$AH,s=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==I&&(o===I||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){M(this,t)}}const H=window.litHtmlPolyfillSupport;null==H||H(j,T),(null!==(a=globalThis.litHtmlVersions)&&void 0!==a?a:globalThis.litHtmlVersions=[]).push("2.1.3");
31
25
  /**
32
26
  * @license
33
27
  * Copyright 2020 Google LLC
34
28
  * SPDX-License-Identifier: BSD-3-Clause
35
29
  */
36
- const q=t=>({_$litStatic$:t}),G=new Map,K=(t=>(e,...i)=>{var o;const r=i.length;let a,c;const n=[],s=[];let l,d=0,p=!1;for(;d<r;){for(l=e[d];d<r&&void 0!==(c=i[d],a=null===(o=c)||void 0===o?void 0:o._$litStatic$);)l+=a+e[++d],p=!0;s.push(c),n.push(l),d++}if(d===r&&n.push(e[r]),p){const t=n.join("$$lit$$");void 0===(e=G.get(t))&&(n.raw=n,G.set(t,e=n)),i=s}return t(e,...i)})(B);var W,X=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};!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"}(W||(W={}));const J=a.FtCssVariable.extend("--ft-typography-font-family",a.designSystemVariables.titleFont),Y=a.FtCssVariable.extend("--ft-typography-font-family",a.designSystemVariables.contentFont),Q={fontFamily:Y,fontSize:a.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:a.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:a.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:a.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:a.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},tt=a.FtCssVariable.extend("--ft-typography-title-font-family",J),et=a.FtCssVariable.extend("--ft-typography-title-font-size",Q.fontSize,"20px"),it=a.FtCssVariable.extend("--ft-typography-title-font-weight",Q.fontWeight,"normal"),ot=a.FtCssVariable.extend("--ft-typography-title-letter-spacing",Q.letterSpacing,"0.15px"),rt=a.FtCssVariable.extend("--ft-typography-title-line-height",Q.lineHeight,"24px"),at=a.FtCssVariable.extend("--ft-typography-title-text-transform",Q.textTransform,"inherit"),ct=a.FtCssVariable.extend("--ft-typography-title-dense-font-family",J),nt=a.FtCssVariable.extend("--ft-typography-title-dense-font-size",Q.fontSize,"14px"),st=a.FtCssVariable.extend("--ft-typography-title-dense-font-weight",Q.fontWeight,"normal"),lt=a.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",Q.letterSpacing,"0.105px"),dt=a.FtCssVariable.extend("--ft-typography-title-dense-line-height",Q.lineHeight,"24px"),pt=a.FtCssVariable.extend("--ft-typography-title-dense-text-transform",Q.textTransform,"inherit"),ht=a.FtCssVariable.extend("--ft-typography-subtitle1-font-family",Y),ft=a.FtCssVariable.extend("--ft-typography-subtitle1-font-size",Q.fontSize,"16px"),ut=a.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",Q.fontWeight,"600"),mt=a.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",Q.letterSpacing,"0.144px"),bt=a.FtCssVariable.extend("--ft-typography-subtitle1-line-height",Q.lineHeight,"24px"),gt=a.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",Q.textTransform,"inherit"),vt=a.FtCssVariable.extend("--ft-typography-subtitle2-font-family",Y),xt=a.FtCssVariable.extend("--ft-typography-subtitle2-font-size",Q.fontSize,"14px"),yt=a.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",Q.fontWeight,"normal"),kt=a.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",Q.letterSpacing,"0.098px"),$t=a.FtCssVariable.extend("--ft-typography-subtitle2-line-height",Q.lineHeight,"24px"),_t=a.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",Q.textTransform,"inherit"),wt={fontFamily:a.FtCssVariable.extend("--ft-typography-body1-font-family",Y),fontSize:a.FtCssVariable.extend("--ft-typography-body1-font-size",Q.fontSize,"16px"),fontWeight:a.FtCssVariable.extend("--ft-typography-body1-font-weight",Q.fontWeight,"normal"),letterSpacing:a.FtCssVariable.extend("--ft-typography-body1-letter-spacing",Q.letterSpacing,"0.496px"),lineHeight:a.FtCssVariable.extend("--ft-typography-body1-line-height",Q.lineHeight,"24px"),textTransform:a.FtCssVariable.extend("--ft-typography-body1-text-transform",Q.textTransform,"inherit")},zt={fontFamily:a.FtCssVariable.extend("--ft-typography-body2-font-family",Y),fontSize:a.FtCssVariable.extend("--ft-typography-body2-font-size",Q.fontSize,"14px"),fontWeight:a.FtCssVariable.extend("--ft-typography-body2-font-weight",Q.fontWeight,"normal"),letterSpacing:a.FtCssVariable.extend("--ft-typography-body2-letter-spacing",Q.letterSpacing,"0.252px"),lineHeight:a.FtCssVariable.extend("--ft-typography-body2-line-height",Q.lineHeight,"20px"),textTransform:a.FtCssVariable.extend("--ft-typography-body2-text-transform",Q.textTransform,"inherit")},St={fontFamily:a.FtCssVariable.extend("--ft-typography-caption-font-family",Y),fontSize:a.FtCssVariable.extend("--ft-typography-caption-font-size",Q.fontSize,"12px"),fontWeight:a.FtCssVariable.extend("--ft-typography-caption-font-weight",Q.fontWeight,"normal"),letterSpacing:a.FtCssVariable.extend("--ft-typography-caption-letter-spacing",Q.letterSpacing,"0.396px"),lineHeight:a.FtCssVariable.extend("--ft-typography-caption-line-height",Q.lineHeight,"16px"),textTransform:a.FtCssVariable.extend("--ft-typography-caption-text-transform",Q.textTransform,"inherit")},Ot=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",Y),Ct=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",Q.fontSize,"10px"),Bt=a.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",Q.fontWeight,"normal"),Et=a.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",Q.letterSpacing,"0.33px"),Tt=a.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",Q.lineHeight,"16px"),At=a.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",Q.textTransform,"inherit"),Ft=a.FtCssVariable.extend("--ft-typography-overline-font-family",Y),It=a.FtCssVariable.extend("--ft-typography-overline-font-size",Q.fontSize,"10px"),Rt=a.FtCssVariable.extend("--ft-typography-overline-font-weight",Q.fontWeight,"normal"),Dt=a.FtCssVariable.extend("--ft-typography-overline-letter-spacing",Q.letterSpacing,"1.5px"),Lt=a.FtCssVariable.extend("--ft-typography-overline-line-height",Q.lineHeight,"16px"),jt=a.FtCssVariable.extend("--ft-typography-overline-text-transform",Q.textTransform,"uppercase"),Mt={fontFamily:a.FtCssVariable.extend("--ft-typography-button-font-family",Y),fontSize:a.FtCssVariable.extend("--ft-typography-button-font-size",Q.fontSize,"14px"),fontWeight:a.FtCssVariable.extend("--ft-typography-button-font-weight",Q.fontWeight,"600"),letterSpacing:a.FtCssVariable.extend("--ft-typography-button-letter-spacing",Q.letterSpacing,"1.246px"),lineHeight:a.FtCssVariable.extend("--ft-typography-button-line-height",Q.lineHeight,"16px"),textTransform:a.FtCssVariable.extend("--ft-typography-button-text-transform",Q.textTransform,"uppercase")},Pt=e.css`
30
+ const K=t=>({_$litStatic$:t}),q=new Map,V=(t=>(e,...i)=>{var o;const s=i.length;let n,r;const l=[],a=[];let c,h=0,p=!1;for(;h<s;){for(c=e[h];h<s&&void 0!==(r=i[h],n=null===(o=r)||void 0===o?void 0:o._$litStatic$);)c+=n+e[++h],p=!0;a.push(r),l.push(c),h++}if(h===s&&l.push(e[s]),p){const t=l.join("$$lit$$");void 0===(e=q.get(t))&&(l.raw=l,q.set(t,e=l)),i=a}return t(e,...i)})(C);var W,G=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!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"}(W||(W={}));const X=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),J=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),Y={fontFamily:J,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},Q=e.FtCssVariable.extend("--ft-typography-title-font-family",X),tt=e.FtCssVariable.extend("--ft-typography-title-font-size",Y.fontSize,"20px"),et=e.FtCssVariable.extend("--ft-typography-title-font-weight",Y.fontWeight,"normal"),it=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",Y.letterSpacing,"0.15px"),ot=e.FtCssVariable.extend("--ft-typography-title-line-height",Y.lineHeight,"24px"),st=e.FtCssVariable.extend("--ft-typography-title-text-transform",Y.textTransform,"inherit"),nt=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",X),rt=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",Y.fontSize,"14px"),lt=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",Y.fontWeight,"normal"),at=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",Y.letterSpacing,"0.105px"),ct=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",Y.lineHeight,"24px"),ht=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",Y.textTransform,"inherit"),pt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",J),ft=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",Y.fontSize,"16px"),dt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",Y.fontWeight,"600"),ut=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",Y.letterSpacing,"0.144px"),bt=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",Y.lineHeight,"24px"),vt=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",Y.textTransform,"inherit"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",J),xt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",Y.fontSize,"14px"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",Y.fontWeight,"normal"),mt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",Y.letterSpacing,"0.098px"),$t=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",Y.lineHeight,"24px"),wt=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",Y.textTransform,"inherit"),kt={fontFamily:e.FtCssVariable.extend("--ft-typography-body1-font-family",J),fontSize:e.FtCssVariable.extend("--ft-typography-body1-font-size",Y.fontSize,"16px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body1-font-weight",Y.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",Y.letterSpacing,"0.496px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body1-line-height",Y.lineHeight,"24px"),textTransform:e.FtCssVariable.extend("--ft-typography-body1-text-transform",Y.textTransform,"inherit")},St={fontFamily:e.FtCssVariable.extend("--ft-typography-body2-font-family",J),fontSize:e.FtCssVariable.extend("--ft-typography-body2-font-size",Y.fontSize,"14px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body2-font-weight",Y.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",Y.letterSpacing,"0.252px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body2-line-height",Y.lineHeight,"20px"),textTransform:e.FtCssVariable.extend("--ft-typography-body2-text-transform",Y.textTransform,"inherit")},zt={fontFamily:e.FtCssVariable.extend("--ft-typography-caption-font-family",J),fontSize:e.FtCssVariable.extend("--ft-typography-caption-font-size",Y.fontSize,"12px"),fontWeight:e.FtCssVariable.extend("--ft-typography-caption-font-weight",Y.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",Y.letterSpacing,"0.396px"),lineHeight:e.FtCssVariable.extend("--ft-typography-caption-line-height",Y.lineHeight,"16px"),textTransform:e.FtCssVariable.extend("--ft-typography-caption-text-transform",Y.textTransform,"inherit")},Ot=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",J),Bt=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",Y.fontSize,"10px"),Ct=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",Y.fontWeight,"normal"),Et=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",Y.letterSpacing,"0.33px"),It=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",Y.lineHeight,"16px"),Dt=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",Y.textTransform,"inherit"),Ft=e.FtCssVariable.extend("--ft-typography-overline-font-family",J),Lt=e.FtCssVariable.extend("--ft-typography-overline-font-size",Y.fontSize,"10px"),jt=e.FtCssVariable.extend("--ft-typography-overline-font-weight",Y.fontWeight,"normal"),Mt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",Y.letterSpacing,"1.5px"),At=e.FtCssVariable.extend("--ft-typography-overline-line-height",Y.lineHeight,"16px"),Tt=e.FtCssVariable.extend("--ft-typography-overline-text-transform",Y.textTransform,"uppercase"),Nt={fontFamily:e.FtCssVariable.extend("--ft-typography-button-font-family",J),fontSize:e.FtCssVariable.extend("--ft-typography-button-font-size",Y.fontSize,"14px"),fontWeight:e.FtCssVariable.extend("--ft-typography-button-font-weight",Y.fontWeight,"600"),letterSpacing:e.FtCssVariable.extend("--ft-typography-button-letter-spacing",Y.letterSpacing,"1.246px"),lineHeight:e.FtCssVariable.extend("--ft-typography-button-line-height",Y.lineHeight,"16px"),textTransform:e.FtCssVariable.extend("--ft-typography-button-text-transform",Y.textTransform,"uppercase")},Rt=i.css`
37
31
  .ft-typography--title {
38
- font-family: ${tt};
39
- font-size: ${et};
40
- font-weight: ${it};
41
- letter-spacing: ${ot};
42
- line-height: ${rt};
43
- text-transform: ${at};
44
- }
45
- `,Nt=e.css`
32
+ font-family: ${Q};
33
+ font-size: ${tt};
34
+ font-weight: ${et};
35
+ letter-spacing: ${it};
36
+ line-height: ${ot};
37
+ text-transform: ${st};
38
+ }
39
+ `,Pt=i.css`
46
40
  .ft-typography--title-dense {
47
- font-family: ${ct};
48
- font-size: ${nt};
49
- font-weight: ${st};
50
- letter-spacing: ${lt};
51
- line-height: ${dt};
52
- text-transform: ${pt};
53
- }
54
- `,Ht=e.css`
41
+ font-family: ${nt};
42
+ font-size: ${rt};
43
+ font-weight: ${lt};
44
+ letter-spacing: ${at};
45
+ line-height: ${ct};
46
+ text-transform: ${ht};
47
+ }
48
+ `,_t=i.css`
55
49
  .ft-typography--subtitle1 {
56
- font-family: ${ht};
50
+ font-family: ${pt};
57
51
  font-size: ${ft};
58
- font-weight: ${ut};
59
- letter-spacing: ${mt};
52
+ font-weight: ${dt};
53
+ letter-spacing: ${ut};
60
54
  line-height: ${bt};
61
- text-transform: ${gt};
55
+ text-transform: ${vt};
62
56
  }
63
- `,Ut=e.css`
57
+ `,Ut=i.css`
64
58
  .ft-typography--subtitle2 {
65
- font-family: ${vt};
59
+ font-family: ${gt};
66
60
  font-size: ${xt};
67
61
  font-weight: ${yt};
68
- letter-spacing: ${kt};
62
+ letter-spacing: ${mt};
69
63
  line-height: ${$t};
70
- text-transform: ${_t};
64
+ text-transform: ${wt};
71
65
  }
72
66
 
73
- `,Vt=e.css`
67
+ `,Zt=i.css`
74
68
  .ft-typography--body1 {
75
- font-family: ${wt.fontFamily};
76
- font-size: ${wt.fontSize};
77
- font-weight: ${wt.fontWeight};
78
- letter-spacing: ${wt.letterSpacing};
79
- line-height: ${wt.lineHeight};
80
- text-transform: ${wt.textTransform};
81
- }
82
- `,Zt=e.css`
69
+ font-family: ${kt.fontFamily};
70
+ font-size: ${kt.fontSize};
71
+ font-weight: ${kt.fontWeight};
72
+ letter-spacing: ${kt.letterSpacing};
73
+ line-height: ${kt.lineHeight};
74
+ text-transform: ${kt.textTransform};
75
+ }
76
+ `,Ht=i.css`
83
77
  .ft-typography--body2 {
84
- font-family: ${zt.fontFamily};
85
- font-size: ${zt.fontSize};
86
- font-weight: ${zt.fontWeight};
87
- letter-spacing: ${zt.letterSpacing};
88
- line-height: ${zt.lineHeight};
89
- text-transform: ${zt.textTransform};
90
- }
91
- `,qt=e.css`
92
- .ft-typography--caption {
93
78
  font-family: ${St.fontFamily};
94
79
  font-size: ${St.fontSize};
95
80
  font-weight: ${St.fontWeight};
@@ -97,323 +82,146 @@ const q=t=>({_$litStatic$:t}),G=new Map,K=(t=>(e,...i)=>{var o;const r=i.length;
97
82
  line-height: ${St.lineHeight};
98
83
  text-transform: ${St.textTransform};
99
84
  }
100
- `,Gt=e.css`
85
+ `,Kt=i.css`
86
+ .ft-typography--caption {
87
+ font-family: ${zt.fontFamily};
88
+ font-size: ${zt.fontSize};
89
+ font-weight: ${zt.fontWeight};
90
+ letter-spacing: ${zt.letterSpacing};
91
+ line-height: ${zt.lineHeight};
92
+ text-transform: ${zt.textTransform};
93
+ }
94
+ `,qt=i.css`
101
95
  .ft-typography--breadcrumb {
102
96
  font-family: ${Ot};
103
- font-size: ${Ct};
104
- font-weight: ${Bt};
97
+ font-size: ${Bt};
98
+ font-weight: ${Ct};
105
99
  letter-spacing: ${Et};
106
- line-height: ${Tt};
107
- text-transform: ${At};
100
+ line-height: ${It};
101
+ text-transform: ${Dt};
108
102
  }
109
- `,Kt=e.css`
103
+ `,Vt=i.css`
110
104
  .ft-typography--overline {
111
105
  font-family: ${Ft};
112
- font-size: ${It};
113
- font-weight: ${Rt};
114
- letter-spacing: ${Dt};
115
- line-height: ${Lt};
116
- text-transform: ${jt};
106
+ font-size: ${Lt};
107
+ font-weight: ${jt};
108
+ letter-spacing: ${Mt};
109
+ line-height: ${At};
110
+ text-transform: ${Tt};
117
111
  }
118
- `,Wt=e.css`
112
+ `,Wt=i.css`
119
113
  .ft-typography--button {
120
- font-family: ${Mt.fontFamily};
121
- font-size: ${Mt.fontSize};
122
- font-weight: ${Mt.fontWeight};
123
- letter-spacing: ${Mt.letterSpacing};
124
- line-height: ${Mt.lineHeight};
125
- text-transform: ${Mt.textTransform};
126
- }
127
- `;let Xt=class extends a.FtLitElement{constructor(){super(...arguments),this.variant=W.body1}getStyles(){return[Pt,Nt,Ht,Ut,Vt,Zt,qt,Gt,Kt,Wt,e.css`
128
- .ft-typography {
129
- vertical-align: inherit;
130
- }
131
- `]}getTemplate(){return this.element?K`
132
- <${q(this.element)}
114
+ font-family: ${Nt.fontFamily};
115
+ font-size: ${Nt.fontSize};
116
+ font-weight: ${Nt.fontWeight};
117
+ letter-spacing: ${Nt.letterSpacing};
118
+ line-height: ${Nt.lineHeight};
119
+ text-transform: ${Nt.textTransform};
120
+ }
121
+ `;class Gt extends e.FtLitElement{constructor(){super(...arguments),this.variant=W.body1}render(){return this.element?V`
122
+ <${K(this.element)}
133
123
  class="ft-typography ft-typography--${this.variant}">
134
124
  <slot></slot>
135
- </${q(this.element)}>
136
- `:K`
125
+ </${K(this.element)}>
126
+ `:V`
137
127
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
138
- `}};function Jt(t,e){return t.flatMap((t=>[t,...Jt(e(t),e)]))}function Yt(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Qt(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>Qt(e,t.selected))),value:t.value}}function te(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>Qt(t,!1)))}}X([i.property()],Xt.prototype,"element",void 0),X([i.property()],Xt.prototype,"variant",void 0),Xt=X([a.customElement("ft-typography")],Xt);
139
- /*! *****************************************************************************
140
- Copyright (c) Microsoft Corporation.
141
-
142
- Permission to use, copy, modify, and/or distribute this software for any
143
- purpose with or without fee is hereby granted.
144
-
145
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
146
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
147
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
148
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
149
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
150
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
151
- PERFORMANCE OF THIS SOFTWARE.
152
- ***************************************************************************** */
153
- var ee=function(t,e){return ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},ee(t,e)};function ie(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}ee(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var oe=function(){return oe=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var r in e=arguments[i])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},oe.apply(this,arguments)};function re(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c}function ae(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],o=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}
154
- /**
155
- * @license
156
- * Copyright 2018 Google Inc.
157
- *
158
- * Permission is hereby granted, free of charge, to any person obtaining a copy
159
- * of this software and associated documentation files (the "Software"), to deal
160
- * in the Software without restriction, including without limitation the rights
161
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
162
- * copies of the Software, and to permit persons to whom the Software is
163
- * furnished to do so, subject to the following conditions:
164
- *
165
- * The above copyright notice and this permission notice shall be included in
166
- * all copies or substantial portions of the Software.
167
- *
168
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
169
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
170
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
171
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
172
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
173
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
174
- * THE SOFTWARE.
175
- */const ce=()=>{},ne={get passive(){return!1}};document.addEventListener("x",ce,ne),document.removeEventListener("x",ce);
176
- /**
177
- * @license
178
- * Copyright 2018 Google LLC
179
- * SPDX-License-Identifier: Apache-2.0
180
- */
181
- class se extends e.LitElement{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}
182
- /**
183
- * @license
184
- * Copyright 2016 Google Inc.
185
- *
186
- * Permission is hereby granted, free of charge, to any person obtaining a copy
187
- * of this software and associated documentation files (the "Software"), to deal
188
- * in the Software without restriction, including without limitation the rights
189
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
190
- * copies of the Software, and to permit persons to whom the Software is
191
- * furnished to do so, subject to the following conditions:
192
- *
193
- * The above copyright notice and this permission notice shall be included in
194
- * all copies or substantial portions of the Software.
195
- *
196
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
197
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
198
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
199
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
200
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
201
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
202
- * THE SOFTWARE.
203
- */var le=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),de={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},pe={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},he={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
204
- /**
205
- * @license
206
- * Copyright 2016 Google Inc.
207
- *
208
- * Permission is hereby granted, free of charge, to any person obtaining a copy
209
- * of this software and associated documentation files (the "Software"), to deal
210
- * in the Software without restriction, including without limitation the rights
211
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
212
- * copies of the Software, and to permit persons to whom the Software is
213
- * furnished to do so, subject to the following conditions:
214
- *
215
- * The above copyright notice and this permission notice shall be included in
216
- * all copies or substantial portions of the Software.
217
- *
218
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
219
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
220
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
221
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
222
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
223
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
224
- * THE SOFTWARE.
225
- */
226
- /**
227
- * @license
228
- * Copyright 2016 Google Inc.
229
- *
230
- * Permission is hereby granted, free of charge, to any person obtaining a copy
231
- * of this software and associated documentation files (the "Software"), to deal
232
- * in the Software without restriction, including without limitation the rights
233
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
234
- * copies of the Software, and to permit persons to whom the Software is
235
- * furnished to do so, subject to the following conditions:
236
- *
237
- * The above copyright notice and this permission notice shall be included in
238
- * all copies or substantial portions of the Software.
239
- *
240
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
241
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
242
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
243
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
244
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
245
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
246
- * THE SOFTWARE.
247
- */
248
- var fe=["touchstart","pointerdown","mousedown","keydown"],ue=["touchend","pointerup","mouseup","contextmenu"],me=[],be=function(t){function e(i){var o=t.call(this,oe(oe({},e.defaultAdapter),i))||this;return o.activationAnimationHasEnded=!1,o.activationTimer=0,o.fgDeactivationRemovalTimer=0,o.fgScale="0",o.frame={width:0,height:0},o.initialSize=0,o.layoutFrame=0,o.maxRadius=0,o.unboundedCoords={left:0,top:0},o.activationState=o.defaultActivationState(),o.activationTimerCallback=function(){o.activationAnimationHasEnded=!0,o.runDeactivationUXLogicIfReady()},o.activateHandler=function(t){o.activateImpl(t)},o.deactivateHandler=function(){o.deactivateImpl()},o.focusHandler=function(){o.handleFocus()},o.blurHandler=function(){o.handleBlur()},o.resizeHandler=function(){o.layout()},o}return ie(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return de},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return pe},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return he},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var o=e.cssClasses,r=o.ROOT,a=o.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(r),t.adapter.isUnbounded()&&(t.adapter.addClass(a),t.layoutInternal())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,o=i.ROOT,r=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(o),t.adapter.removeClass(r),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var o=ae(fe),r=o.next();!r.done;r=o.next()){var a=r.value;this.adapter.registerInteractionHandler(a,this.activateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var o=ae(ue),r=o.next();!r.done;r=o.next()){var a=r.value;this.adapter.registerDocumentInteractionHandler(a,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=ae(fe),o=i.next();!o.done;o=i.next()){var r=o.value;this.adapter.deregisterInteractionHandler(r,this.activateHandler)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=ae(ue),o=i.next();!o.done;o=i.next()){var r=o.value;this.adapter.deregisterDocumentInteractionHandler(r,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(i[e],null)}))},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var o=this.previousActivationEvent;if(!(o&&void 0!==t&&o.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&me.length>0&&me.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(me.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){me=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,i=e.strings,o=i.VAR_FG_TRANSLATE_START,r=i.VAR_FG_TRANSLATE_END,a=e.cssClasses,c=a.FG_DEACTIVATION,n=a.FG_ACTIVATION,s=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var l="",d="";if(!this.adapter.isUnbounded()){var p=this.getFgTranslationCoordinates(),h=p.startPoint,f=p.endPoint;l=h.x+"px, "+h.y+"px",d=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(o,l),this.adapter.updateCssVariable(r,d),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(c),this.adapter.computeBoundingRect(),this.adapter.addClass(n),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),s)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return{startPoint:t={x:(t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var o,r,a=e.x,c=e.y,n=a+i.left,s=c+i.top;if("touchstart"===t.type){var l=t;o=l.changedTouches[0].pageX-n,r=l.changedTouches[0].pageY-s}else{var d=t;o=d.pageX-n,r=d.pageY-s}return{x:o,y:r}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,o=this.activationState,r=o.hasDeactivationUXRun,a=o.isActivated;(r||!a)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),he.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=oe({},e);e.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var o=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&o%2!=0?this.initialSize=o-1:this.initialSize=o,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,i=t.VAR_FG_SIZE,o=t.VAR_LEFT,r=t.VAR_TOP,a=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(a,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(o,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(r,this.unboundedCoords.top+"px"))},e}(le),ge=be;
249
- /**
250
- * @license
251
- * Copyright 2018 Google LLC
252
- * SPDX-License-Identifier: Apache-2.0
253
- */
254
- class ve extends se{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=ge}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);var t,e;
255
- /**
256
- * @license
257
- * Copyright 2018 Google LLC
258
- * SPDX-License-Identifier: Apache-2.0
259
- */}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(t,e)=>{switch(t){case"--mdc-ripple-fg-scale":this.fgScale=e;break;case"--mdc-ripple-fg-size":this.fgSize=e;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=e;break;case"--mdc-ripple-fg-translate-start":this.translateStart=e;break;case"--mdc-ripple-left":this.leftPos=e;break;case"--mdc-ripple-top":this.topPos=e}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(t){this.waitForFoundation((()=>{this.mdcFoundation.activate(t)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(t){this.mdcFoundation?t():this.updateComplete.then(t)}update(t){t.has("disabled")&&this.disabled&&this.endHover(),super.update(t)}render(){const t=this.activated&&(this.primary||!this.accent),i=this.selected&&(this.primary||!this.accent),o={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":i,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return e.html`
260
- <div class="mdc-ripple-surface mdc-ripple-upgraded ${r.classMap(o)}"
261
- style="${c.styleMap({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}re([i.query(".mdc-ripple-surface")],ve.prototype,"mdcRoot",void 0),re([i.property({type:Boolean})],ve.prototype,"primary",void 0),re([i.property({type:Boolean})],ve.prototype,"accent",void 0),re([i.property({type:Boolean})],ve.prototype,"unbounded",void 0),re([i.property({type:Boolean})],ve.prototype,"disabled",void 0),re([i.property({type:Boolean})],ve.prototype,"activated",void 0),re([i.property({type:Boolean})],ve.prototype,"selected",void 0),re([i.property({type:Boolean})],ve.prototype,"internalUseStateLayerCustomProperties",void 0),re([i.state()],ve.prototype,"hovering",void 0),re([i.state()],ve.prototype,"bgFocused",void 0),re([i.state()],ve.prototype,"fgActivation",void 0),re([i.state()],ve.prototype,"fgDeactivation",void 0),re([i.state()],ve.prototype,"fgScale",void 0),re([i.state()],ve.prototype,"fgSize",void 0),re([i.state()],ve.prototype,"translateStart",void 0),re([i.state()],ve.prototype,"translateEnd",void 0),re([i.state()],ve.prototype,"leftPos",void 0),re([i.state()],ve.prototype,"topPos",void 0);
262
- /**
263
- * @license
264
- * Copyright 2021 Google LLC
265
- * SPDX-LIcense-Identifier: Apache-2.0
266
- */
267
- const xe=e.css`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
268
- /**
269
- * @license
270
- * Copyright 2018 Google LLC
271
- * SPDX-License-Identifier: Apache-2.0
272
- */;let ye=class extends ve{};function ke(t,e,i){if(void 0!==e)
273
- /**
274
- * @license
275
- * Copyright 2021 Google LLC
276
- * SPDX-License-Identifier: Apache-2.0
277
- */
278
- return function(t,e,i){const o=t.constructor;if(!i){const t=`__${e}`;if(!(i=o.getPropertyDescriptor(e,t)))throw new Error("@ariaProperty must be used after a @property decorator")}const r=i;let a="";if(!r.set)throw new Error(`@ariaProperty requires a setter for ${e}`);if(t.dispatchWizEvent)return i;const c={configurable:!0,enumerable:!0,set(t){if(""===a){const t=o.getPropertyOptions(e);a="string"==typeof t.attribute?t.attribute:e}this.hasAttribute(a)&&this.removeAttribute(a),r.set.call(this,t)}};return r.get&&(c.get=function(){return r.get.call(this)}),c}(t,e,i);throw new Error("@ariaProperty only supports TypeScript Decorators")}
279
- /**
280
- * @license
281
- * Copyright 2018 Google LLC
282
- * SPDX-License-Identifier: Apache-2.0
283
- */var $e,_e;ye.styles=[xe],ye=re([i.customElement("mwc-ripple")],ye);const we=null!==(_e=null===($e=window.ShadyDOM)||void 0===$e?void 0:$e.inUse)&&void 0!==_e&&_e;class ze extends se{constructor(){super(...arguments),this.disabled=!1,this.containingForm=null,this.formDataListener=t=>{this.disabled||this.setFormData(t.formData)}}findFormElement(){if(!this.shadowRoot||we)return null;const t=this.getRootNode().querySelectorAll("form");for(const e of Array.from(t))if(e.contains(this))return e;return null}connectedCallback(){var t;super.connectedCallback(),this.containingForm=this.findFormElement(),null===(t=this.containingForm)||void 0===t||t.addEventListener("formdata",this.formDataListener)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this.containingForm)||void 0===t||t.removeEventListener("formdata",this.formDataListener),this.containingForm=null}click(){this.formElement&&!this.disabled&&(this.formElement.focus(),this.formElement.click())}firstUpdated(){super.firstUpdated(),this.shadowRoot&&this.mdcRoot.addEventListener("change",(t=>{this.dispatchEvent(new Event("change",t))}))}}ze.shadowRootOptions={mode:"open",delegatesFocus:!0},re([i.property({type:Boolean})],ze.prototype,"disabled",void 0);
284
- /**
285
- * @license
286
- * Copyright 2020 Google LLC
287
- * SPDX-License-Identifier: Apache-2.0
288
- */
289
- class Se{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}
290
- /**
291
- * @license
292
- * Copyright 2018 Google LLC
293
- * SPDX-License-Identifier: BSD-3-Clause
294
- */const Oe=t=>null!=t?t:T
295
- /**
296
- * @license
297
- * Copyright 2019 Google LLC
298
- * SPDX-License-Identifier: Apache-2.0
299
- */;class Ce extends ze{constructor(){super(...arguments),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.name="",this.value="on",this.reducedTouchTarget=!1,this.animationClass="",this.shouldRenderRipple=!1,this.focused=!1,this.mdcFoundationClass=void 0,this.mdcFoundation=void 0,this.rippleElement=null,this.rippleHandlers=new Se((()=>(this.shouldRenderRipple=!0,this.ripple.then((t=>this.rippleElement=t)),this.ripple)))}createAdapter(){return{}}update(t){const e=t.get("indeterminate"),i=t.get("checked"),o=t.get("disabled");if(void 0!==e||void 0!==i||void 0!==o){const t=this.calculateAnimationStateName(!!i,!!e,!!o),r=this.calculateAnimationStateName(this.checked,this.indeterminate,this.disabled);this.animationClass=`${t}-${r}`}super.update(t)}calculateAnimationStateName(t,e,i){return i?"disabled":e?"indeterminate":t?"checked":"unchecked"}renderRipple(){return this.shouldRenderRipple?this.renderRippleTemplate():""}renderRippleTemplate(){return e.html`<mwc-ripple
300
- .disabled="${this.disabled}"
301
- unbounded></mwc-ripple>`}render(){const t=this.indeterminate||this.checked,i={"mdc-checkbox--disabled":this.disabled,"mdc-checkbox--selected":t,"mdc-checkbox--touch":!this.reducedTouchTarget,"mdc-ripple-upgraded--background-focused":this.focused,"mdc-checkbox--anim-checked-indeterminate":"checked-indeterminate"==this.animationClass,"mdc-checkbox--anim-checked-unchecked":"checked-unchecked"==this.animationClass,"mdc-checkbox--anim-indeterminate-checked":"indeterminate-checked"==this.animationClass,"mdc-checkbox--anim-indeterminate-unchecked":"indeterminate-unchecked"==this.animationClass,"mdc-checkbox--anim-unchecked-checked":"unchecked-checked"==this.animationClass,"mdc-checkbox--anim-unchecked-indeterminate":"unchecked-indeterminate"==this.animationClass},o=this.indeterminate?"mixed":void 0;return e.html`
302
- <div class="mdc-checkbox mdc-checkbox--upgraded ${r.classMap(i)}">
303
- <input type="checkbox"
304
- class="mdc-checkbox__native-control"
305
- name="${Oe(this.name)}"
306
- aria-checked="${Oe(o)}"
307
- aria-label="${Oe(this.ariaLabel)}"
308
- aria-labelledby="${Oe(this.ariaLabelledBy)}"
309
- aria-describedby="${Oe(this.ariaDescribedBy)}"
310
- data-indeterminate="${this.indeterminate?"true":"false"}"
311
- ?disabled="${this.disabled}"
312
- .indeterminate="${this.indeterminate}"
313
- .checked="${this.checked}"
314
- .value="${this.value}"
315
- @change="${this.handleChange}"
316
- @focus="${this.handleFocus}"
317
- @blur="${this.handleBlur}"
318
- @mousedown="${this.handleRippleMouseDown}"
319
- @mouseenter="${this.handleRippleMouseEnter}"
320
- @mouseleave="${this.handleRippleMouseLeave}"
321
- @touchstart="${this.handleRippleTouchStart}"
322
- @touchend="${this.handleRippleDeactivate}"
323
- @touchcancel="${this.handleRippleDeactivate}">
324
- <div class="mdc-checkbox__background"
325
- @animationend="${this.resetAnimationClass}">
326
- <svg class="mdc-checkbox__checkmark"
327
- viewBox="0 0 24 24">
328
- <path class="mdc-checkbox__checkmark-path"
329
- fill="none"
330
- d="M1.73,12.91 8.1,19.28 22.79,4.59"></path>
331
- </svg>
332
- <div class="mdc-checkbox__mixedmark"></div>
333
- </div>
334
- ${this.renderRipple()}
335
- </div>`}setFormData(t){this.name&&this.checked&&t.append(this.name,this.value)}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleBlur(){this.focused=!1,this.handleRippleBlur()}handleRippleMouseDown(t){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}handleChange(){this.checked=this.formElement.checked,this.indeterminate=this.formElement.indeterminate}resetAnimationClass(){this.animationClass=""}get isRippleActive(){var t;return(null===(t=this.rippleElement)||void 0===t?void 0:t.isActive)||!1}}re([i.query(".mdc-checkbox")],Ce.prototype,"mdcRoot",void 0),re([i.query("input")],Ce.prototype,"formElement",void 0),re([i.property({type:Boolean,reflect:!0})],Ce.prototype,"checked",void 0),re([i.property({type:Boolean})],Ce.prototype,"indeterminate",void 0),re([i.property({type:Boolean,reflect:!0})],Ce.prototype,"disabled",void 0),re([i.property({type:String,reflect:!0})],Ce.prototype,"name",void 0),re([i.property({type:String})],Ce.prototype,"value",void 0),re([ke,i.property({type:String,attribute:"aria-label"})],Ce.prototype,"ariaLabel",void 0),re([ke,i.property({type:String,attribute:"aria-labelledby"})],Ce.prototype,"ariaLabelledBy",void 0),re([ke,i.property({type:String,attribute:"aria-describedby"})],Ce.prototype,"ariaDescribedBy",void 0),re([i.property({type:Boolean})],Ce.prototype,"reducedTouchTarget",void 0),re([i.state()],Ce.prototype,"animationClass",void 0),re([i.state()],Ce.prototype,"shouldRenderRipple",void 0),re([i.state()],Ce.prototype,"focused",void 0),re([i.queryAsync("mwc-ripple")],Ce.prototype,"ripple",void 0),re([i.eventOptions({passive:!0})],Ce.prototype,"handleRippleTouchStart",null);
336
- /**
337
- * @license
338
- * Copyright 2021 Google LLC
339
- * SPDX-LIcense-Identifier: Apache-2.0
340
- */
341
- const Be=e.css`.mdc-checkbox{padding:calc((40px - 18px) / 2);padding:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);margin:calc((40px - 40px) / 2);margin:calc((var(--mdc-checkbox-touch-target-size, 40px) - 40px) / 2)}.mdc-checkbox .mdc-checkbox__ripple::before,.mdc-checkbox .mdc-checkbox__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-checkbox:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after{transition:opacity 150ms linear}.mdc-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before,.mdc-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-checkbox .mdc-checkbox__background{top:calc((40px - 18px) / 2);top:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2);left:calc((40px - 18px) / 2);left:calc((var(--mdc-checkbox-ripple-size, 40px) - 18px) / 2)}.mdc-checkbox .mdc-checkbox__native-control{top:calc((40px - 40px) / 2);top:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);right:calc((40px - 40px) / 2);right:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);left:calc((40px - 40px) / 2);left:calc((40px - var(--mdc-checkbox-touch-target-size, 40px)) / 2);width:40px;width:var(--mdc-checkbox-touch-target-size, 40px);height:40px;height:var(--mdc-checkbox-touch-target-size, 40px)}.mdc-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled~.mdc-checkbox__background{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}@keyframes mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786{0%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}50%{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}}@keyframes mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786{0%,80%{border-color:#018786;border-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786));background-color:#018786;background-color:var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #018786))}100%{border-color:rgba(0, 0, 0, 0.54);border-color:var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));background-color:transparent}}.mdc-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-in-background-8A000000FF01878600000000FF018786}.mdc-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled~.mdc-checkbox__background{animation-name:mdc-checkbox-fade-out-background-8A000000FF01878600000000FF018786}.mdc-checkbox .mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:rgba(0, 0, 0, 0.38);border-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38));background-color:transparent}.mdc-checkbox .mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox .mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:transparent;background-color:rgba(0, 0, 0, 0.38);background-color:var(--mdc-checkbox-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:enabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:#fff;color:var(--mdc-checkbox-ink-color, #fff)}.mdc-checkbox .mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:#fff;border-color:var(--mdc-checkbox-ink-color, #fff)}.mdc-touch-target-wrapper{display:inline}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:mdc-animation-deceleration-curve-timing-function;transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-checkbox__native-control[disabled]:not(:checked):not(:indeterminate):not([data-indeterminate=true])~.mdc-checkbox__background{border-color:GrayText;border-color:var(--mdc-checkbox-disabled-color, GrayText);background-color:transparent}.mdc-checkbox__native-control[disabled]:checked~.mdc-checkbox__background,.mdc-checkbox__native-control[disabled]:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true][disabled]~.mdc-checkbox__background{border-color:GrayText;background-color:transparent;background-color:var(--mdc-checkbox-disabled-color, transparent)}.mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__checkmark{color:GrayText;color:var(--mdc-checkbox-ink-color, GrayText)}.mdc-checkbox__native-control:disabled~.mdc-checkbox__background .mdc-checkbox__mixedmark{border-color:GrayText;border-color:var(--mdc-checkbox-ink-color, GrayText)}.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:transparent;pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--upgraded .mdc-checkbox__checkmark{opacity:1}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms 0ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear 0s;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear 0s;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear 0s;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background{transition:border-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark-path,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit}.mdc-checkbox__native-control:disabled{cursor:default;pointer-events:none}.mdc-checkbox--touch{margin:calc((48px - 40px) / 2);margin:calc((var(--mdc-checkbox-state-layer-size, 48px) - var(--mdc-checkbox-state-layer-size, 40px)) / 2)}.mdc-checkbox--touch .mdc-checkbox__native-control{top:calc((40px - 48px) / 2);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);right:calc((40px - 48px) / 2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);left:calc((40px - 48px) / 2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 48px)) / 2);width:48px;width:var(--mdc-checkbox-state-layer-size, 48px);height:48px;height:var(--mdc-checkbox-state-layer-size, 48px)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__checkmark{transition:opacity 180ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 180ms 0ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__checkmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background .mdc-checkbox__mixedmark,.mdc-checkbox__native-control[data-indeterminate=true]~.mdc-checkbox__background .mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__background,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__checkmark-path,.mdc-checkbox.mdc-checkbox--upgraded .mdc-checkbox__mixedmark{transition:none}:host{outline:none;display:inline-flex;-webkit-tap-highlight-color:transparent}:host([checked]),:host([indeterminate]){--mdc-ripple-color:var(--mdc-theme-secondary, #018786)}.mdc-checkbox .mdc-checkbox__background::before{content:none}`
342
- /**
343
- * @license
344
- * Copyright 2018 Google LLC
345
- * SPDX-License-Identifier: Apache-2.0
346
- */;let Ee=class extends Ce{};Ee.styles=[Be],Ee=re([i.customElement("mwc-checkbox")],Ee);var Te=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};const Ae={color:a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorContent),primaryColor:a.FtCssVariable.extend("--ft-ripple-primary-color",a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorPrimary)),secondaryColor:a.FtCssVariable.extend("--ft-ripple-secondary-color",a.FtCssVariable.extend("--ft-ripple-color",a.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:a.FtCssVariable.external(a.designSystemVariables.opacityContentOnSurfaceDragged,"Design system")};let Fe=class extends a.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return e.css`
347
- :host {
348
- display: contents;
349
-
350
- --mdc-ripple-color: ${Ae.color};
351
- --mdc-ripple-press-opacity: ${Ae.opacityContentOnSurfacePressed};
352
- --mdc-ripple-hover-opacity: ${Ae.opacityContentOnSurfaceHover};
353
- --mdc-ripple-focus-opacity: ${Ae.opacityContentOnSurfaceFocused};
354
- --mdc-ripple-selected-opacity: ${Ae.opacityContentOnSurfaceSelected};
355
- --mdc-ripple-activated-opacity: ${Ae.opacityContentOnSurfaceDragged};
356
- }
357
-
358
- mwc-ripple.ft-ripple--secondary {
359
- --mdc-ripple-color: ${Ae.secondaryColor};
360
- }
361
-
362
- mwc-ripple.ft-ripple--primary {
363
- --mdc-ripple-color: ${Ae.primaryColor};
364
- }
365
- `}getTemplate(){return e.html`
366
- <mwc-ripple
367
- class="${this.primary?"ft-ripple--primary":this.secondary?"ft-ripple--secondary":""}"
368
- ?unbounded=${this.unbounded}
369
- ?activated=${this.activated}
370
- ?selected=${this.selected}
371
- ?disabled=${this.disabled}
372
- ></mwc-ripple>
373
- `}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple()}endRipple(){var t,e,i;null===(t=this.rippleHandlers)||void 0===t||t.endHover(),null===(e=this.rippleHandlers)||void 0===e||e.endFocus(),null===(i=this.rippleHandlers)||void 0===i||i.endPress()}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentNode;if(e){const t=new Se((async()=>this.mwcRipple)),i=(...e)=>i=>{e.forEach((e=>window.addEventListener(e,t.endPress,{once:!0}))),t.startPress(i)},o=i("mouseup"),r=i("touchend","touchcancel"),a=t=>{["Enter"," "].includes(t.key)&&i("keyup")()};e.addEventListener("mouseenter",t.startHover),e.addEventListener("mouseleave",t.endHover),e.addEventListener("mousedown",o),e.addEventListener("touchstart",r),e.addEventListener("keydown",a),e.addEventListener("focus",t.startFocus),e.addEventListener("blur",t.endFocus),this.onDisconnect=()=>{e.removeEventListener("mouseenter",t.startHover),e.removeEventListener("mouseleave",t.endHover),e.removeEventListener("mousedown",o),e.removeEventListener("touchstart",r),e.removeEventListener("keydown",a),e.removeEventListener("focus",t.startFocus),e.removeEventListener("blur",t.endFocus)},this.rippleHandlers=t}}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Fe.elementDefinitions={"mwc-ripple":ye},Te([i.property({type:Boolean})],Fe.prototype,"primary",void 0),Te([i.property({type:Boolean})],Fe.prototype,"secondary",void 0),Te([i.property({type:Boolean})],Fe.prototype,"unbounded",void 0),Te([i.property({type:Boolean})],Fe.prototype,"activated",void 0),Te([i.property({type:Boolean})],Fe.prototype,"selected",void 0),Te([i.property({type:Boolean})],Fe.prototype,"disabled",void 0),Te([i.query("mwc-ripple")],Fe.prototype,"mwcRipple",void 0),Fe=Te([a.customElement("ft-ripple")],Fe);
374
- /**
375
- * @license
376
- * Copyright 2021 Google LLC
377
- * SPDX-LIcense-Identifier: Apache-2.0
378
- */
379
- const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`
380
- /**
381
- * @license
382
- * Copyright 2018 Google LLC
383
- * SPDX-License-Identifier: Apache-2.0
384
- */;let Re=class extends e.LitElement{render(){return e.html`<span><slot></slot></span>`}};Re.styles=[Ie],Re=re([i.customElement("mwc-icon")],Re);var De=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};const Le=a.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),je=a.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),Me=a.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),Pe=a.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),Ne=a.FtCssVariable.external(a.designSystemVariables.borderRadiusS,"Design system");let He=class extends a.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new a.Debouncer,this.revealDebouncer=new a.Debouncer}getStyles(){return e.css`
385
- .ft-tooltip--container {
386
- display: block;
387
- position: relative;
388
- }
389
-
390
- .ft-tooltip--inline {
391
- display: inline-block;
392
- max-width: 100%;
393
- }
394
-
395
- .ft-tooltip {
396
- position: absolute;
397
- box-sizing: border-box;
398
- overflow: hidden;
399
- width: max-content;
400
- max-width: 150px;
401
- text-align: center;
402
- padding: ${Le};
403
- z-index: ${Pe};
404
- }
405
-
406
- .ft-tooltip--content {
407
- padding: 4px 8px;
408
- border-radius: ${Ne};
409
- background-color: ${Me};
410
- color: ${je};
411
- top: -500px;
412
- left: -500px;
413
- position: relative;
414
- word-break: break-word;
128
+ `}}function Xt(t,e){return t.flatMap((t=>[t,...Xt(e(t),e)]))}function Jt(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Yt(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>Yt(e,t.selected))),value:t.value}}function Qt(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>Yt(t,!1)))}}Gt.styles=[Rt,Pt,_t,Ut,Zt,Ht,Kt,qt,Vt,Wt,i.css`
129
+ .ft-typography {
130
+ vertical-align: inherit;
415
131
  }
416
- `}getTemplate(){return e.html`
132
+ `],G([o.property()],Gt.prototype,"element",void 0),G([o.property()],Gt.prototype,"variant",void 0),e.customElement("ft-typography")(Gt);var te=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const ee={color:e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorContent),primaryColor:e.FtCssVariable.extend("--ft-ripple-primary-color",e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary)),secondaryColor:e.FtCssVariable.extend("--ft-ripple-secondary-color",e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary)),opacityContentOnSurfacePressed:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")};class ie extends e.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.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.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 i.html`
133
+ <style>
134
+ .ft-ripple .ft-ripple--effect,
135
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
136
+ width: ${this.rippleSize}px;
137
+ height: ${this.rippleSize}px;
138
+ }
139
+
140
+ .ft-ripple .ft-ripple--effect {
141
+ left: ${this.originX}px;
142
+ top: ${this.originY}px;
143
+ }
144
+ </style>
145
+ <div class="${n.classMap(t)}">
146
+ <div class="ft-ripple--background"></div>
147
+ <div class="ft-ripple--effect"></div>
148
+ </div>
149
+ `}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){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),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(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),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 e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}ie.elementDefinitions={},ie.styles=i.css`
150
+ :host {
151
+ display: contents;
152
+ }
153
+
154
+ .ft-ripple {
155
+ position: absolute;
156
+ inset: 0;
157
+ pointer-events: none;
158
+ }
159
+
160
+ .ft-ripple:not(.ft-ripple--unbounded) {
161
+ overflow: hidden;
162
+ }
163
+
164
+ .ft-ripple .ft-ripple--background,
165
+ .ft-ripple .ft-ripple--effect {
166
+ position: absolute;
167
+ opacity: 0;
168
+ background-color: ${ee.color};
169
+ }
170
+
171
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background,
172
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
173
+ background-color: ${ee.secondaryColor};
174
+ }
175
+
176
+ .ft-ripple.ft-ripple--primary .ft-ripple--background,
177
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
178
+ background-color: ${ee.primaryColor};
179
+ }
180
+
181
+ .ft-ripple .ft-ripple--background {
182
+ top: 0;
183
+ left: 0;
184
+ height: 100%;
185
+ width: 100%;
186
+ }
187
+
188
+ .ft-ripple .ft-ripple--effect,
189
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
190
+ border-radius: 50%;
191
+ }
192
+
193
+ .ft-ripple .ft-ripple--effect {
194
+ transform: translate(-50%, -50%) scale(0.15);
195
+ transition: transform 300ms ease, opacity 75ms linear;
196
+ }
197
+
198
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
199
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
200
+ left: 50%;
201
+ top: 50%;
202
+ }
203
+
204
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
205
+ transform: translate(-50%, -50%);
206
+ }
207
+
208
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
209
+ opacity: ${ee.opacityContentOnSurfaceHover};
210
+ }
211
+
212
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
213
+ opacity: ${ee.opacityContentOnSurfaceSelected};
214
+ }
215
+
216
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
217
+ opacity: ${ee.opacityContentOnSurfaceFocused};
218
+ }
219
+
220
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
221
+ opacity: ${ee.opacityContentOnSurfacePressed};
222
+ transform: translate(-50%, -50%) scale(1);
223
+ }
224
+ `,te([o.property({type:Boolean})],ie.prototype,"primary",void 0),te([o.property({type:Boolean})],ie.prototype,"secondary",void 0),te([o.property({type:Boolean})],ie.prototype,"unbounded",void 0),te([o.property({type:Boolean})],ie.prototype,"activated",void 0),te([o.property({type:Boolean})],ie.prototype,"selected",void 0),te([o.property({type:Boolean})],ie.prototype,"disabled",void 0),te([o.state()],ie.prototype,"hovered",void 0),te([o.state()],ie.prototype,"focused",void 0),te([o.state()],ie.prototype,"pressed",void 0),te([o.state()],ie.prototype,"rippling",void 0),te([o.state()],ie.prototype,"rippleSize",void 0),te([o.state()],ie.prototype,"originX",void 0),te([o.state()],ie.prototype,"originY",void 0),te([o.query(".ft-ripple")],ie.prototype,"ripple",void 0),te([o.query(".ft-ripple--effect")],ie.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ie);var oe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const se=e.FtCssVariable.create("--ft-tooltip-distance","SIZE","4px"),ne=e.FtCssVariable.create("--ft-tooltip-color","COLOR","#FFFFFF"),re=e.FtCssVariable.create("--ft-tooltip-background-color","COLOR","#666666"),le=e.FtCssVariable.create("--ft-tooltip-z-index","NUMBER","1"),ae=e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system");class ce extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}render(){return i.html`
417
225
  <div part="container"
418
226
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
419
227
  @mouseenter=${this.onHover}
@@ -428,7 +236,39 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
428
236
  </div>
429
237
  <slot></slot>
430
238
  </div>
431
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&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.position){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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2,r=this.tooltip.style;switch(this.position){case"top":r.top=-this.tooltip.clientHeight+"px",r.left=o+"px";break;case"bottom":r.top=e.height+"px",r.left=o+"px";break;case"left":r.top=i+"px",r.left=-this.tooltip.clientWidth+"px";break;case"right":r.top=i+"px",r.left=e.width+"px"}r.maxWidth=Math.max(e.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}};He.elementDefinitions={"ft-typography":Xt},De([i.property()],He.prototype,"text",void 0),De([i.property({type:Boolean})],He.prototype,"manual",void 0),De([i.property({type:Boolean})],He.prototype,"inline",void 0),De([i.property({type:Number})],He.prototype,"delay",void 0),De([i.property()],He.prototype,"position",void 0),De([i.queryAssignedNodes("",!0)],He.prototype,"slotNodes",void 0),De([i.query(".ft-tooltip--container")],He.prototype,"container",void 0),De([i.query("slot")],He.prototype,"target",void 0),De([i.query(".ft-tooltip")],He.prototype,"tooltip",void 0),De([i.query(".ft-tooltip--content")],He.prototype,"tooltipContent",void 0),De([i.state()],He.prototype,"visible",void 0),He=De([a.customElement("ft-tooltip")],He);var Ue=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};const Ve={color:a.FtCssVariable.extend("--ft-loader-color",a.designSystemVariables.colorPrimary),size:a.FtCssVariable.create("--ft-loader-size","SIZE","80px")};let Ze=class extends a.FtLitElement{getStyles(){return e.css`
239
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&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.position){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 e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2,s=this.tooltip.style;switch(this.position){case"top":s.top=-this.tooltip.clientHeight+"px",s.left=o+"px";break;case"bottom":s.top=e.height+"px",s.left=o+"px";break;case"left":s.top=i+"px",s.left=-this.tooltip.clientWidth+"px";break;case"right":s.top=i+"px",s.left=e.width+"px"}s.maxWidth=Math.max(e.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}ce.elementDefinitions={"ft-typography":Gt},ce.styles=i.css`
240
+ .ft-tooltip--container {
241
+ display: block;
242
+ position: relative;
243
+ }
244
+
245
+ .ft-tooltip--inline {
246
+ display: inline-block;
247
+ max-width: 100%;
248
+ }
249
+
250
+ .ft-tooltip {
251
+ position: absolute;
252
+ box-sizing: border-box;
253
+ overflow: hidden;
254
+ width: max-content;
255
+ max-width: 150px;
256
+ text-align: center;
257
+ padding: ${se};
258
+ z-index: ${le};
259
+ }
260
+
261
+ .ft-tooltip--content {
262
+ padding: 4px 8px;
263
+ border-radius: ${ae};
264
+ background-color: ${re};
265
+ color: ${ne};
266
+ top: -500px;
267
+ left: -500px;
268
+ position: relative;
269
+ word-break: break-word;
270
+ }
271
+ `,oe([o.property()],ce.prototype,"text",void 0),oe([o.property({type:Boolean})],ce.prototype,"manual",void 0),oe([o.property({type:Boolean})],ce.prototype,"inline",void 0),oe([o.property({type:Number})],ce.prototype,"delay",void 0),oe([o.property()],ce.prototype,"position",void 0),oe([o.queryAssignedNodes("",!0)],ce.prototype,"slotNodes",void 0),oe([o.query(".ft-tooltip--container")],ce.prototype,"container",void 0),oe([o.query("slot")],ce.prototype,"target",void 0),oe([o.query(".ft-tooltip")],ce.prototype,"tooltip",void 0),oe([o.query(".ft-tooltip--content")],ce.prototype,"tooltipContent",void 0),oe([o.state()],ce.prototype,"visible",void 0),e.customElement("ft-tooltip")(ce);const he={color:e.FtCssVariable.extend("--ft-loader-color",e.designSystemVariables.colorPrimary),size:e.FtCssVariable.create("--ft-loader-size","SIZE","80px")};class pe extends e.FtLitElement{static get styles(){return i.css`
432
272
  :host {
433
273
  line-height: 0;
434
274
  }
@@ -437,8 +277,8 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
437
277
  display: inline-block;
438
278
  position: relative;
439
279
 
440
- width: ${Ve.size};
441
- height: ${Ve.size};
280
+ width: ${he.size};
281
+ height: ${he.size};
442
282
  }
443
283
 
444
284
  .ft-loader div {
@@ -447,7 +287,7 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
447
287
  width: 25%;
448
288
  height: 25%;
449
289
  border-radius: 50%;
450
- background: ${Ve.color};
290
+ background: ${he.color};
451
291
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
452
292
  }
453
293
 
@@ -494,20 +334,59 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
494
334
  transform: translate(0, 0);
495
335
  }
496
336
  100% {
497
- transform: translate(calc(0.35 * ${Ve.size}), 0);
337
+ transform: translate(calc(0.35 * ${he.size}), 0);
498
338
  }
499
339
  }
500
- `}getTemplate(){return e.html`
340
+ `}render(){return i.html`
501
341
  <div class="ft-loader">
502
342
  <div></div>
503
343
  <div></div>
504
344
  <div></div>
505
345
  <div></div>
506
346
  </div>
507
- `}};Ze=Ue([a.customElement("ft-loader")],Ze);var qe=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};const Ge=a.FtCssVariable.extend("--ft-button-color",a.designSystemVariables.colorPrimary),Ke={backgroundColor:a.FtCssVariable.extend("--ft-button-background-color",a.designSystemVariables.colorSurface),borderRadius:a.FtCssVariable.extend("--ft-button-border-radius",a.designSystemVariables.borderRadiusL),color:Ge,fontSize:a.FtCssVariable.extend("--ft-button-font-size",Mt.fontSize),iconSize:a.FtCssVariable.create("--ft-button-icon-size","SIZE","24px"),rippleColor:a.FtCssVariable.extend("--ft-button-ripple-color",Ge),opacityDisabled:a.FtCssVariable.external(a.designSystemVariables.colorOpacityDisabled,"Design system")},We=a.FtCssVariable.extend("--ft-button-primary-color",a.FtCssVariable.extend("--ft-button-color",a.designSystemVariables.colorOnPrimary)),Xe=a.FtCssVariable.extend("--ft-button-primary-background-color",a.FtCssVariable.extend("--ft-button-background-color",a.designSystemVariables.colorPrimary)),Je=We,Ye=(a.FtCssVariable.extend("--ft-button-primary-ripple-color",We),a.FtCssVariable.extend("--ft-button-dense-border-radius",a.FtCssVariable.extend("--ft-button-border-radius",a.designSystemVariables.borderRadiusM)));let Qe=class extends a.FtLitElement{constructor(){super(...arguments),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.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}getStyles(){return[a.noTextSelect,e.css`
347
+ `}}var fe,de;e.customElement("ft-loader")(pe),function(t){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.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",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="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",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="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(fe||(fe={})),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;"}(de||(de={}));const ue=new Map([...["abw"].map((t=>[t,de.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,de.AUDIO])),...["avi"].map((t=>[t,de.AVI])),...["chm","xhs"].map((t=>[t,de.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,de.CODE])),...["csv"].map((t=>[t,de.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,de.DITA])),...["epub"].map((t=>[t,de.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,de.EXCEL])),...["flac"].map((t=>[t,de.FLAC])),...["gif"].map((t=>[t,de.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,de.GZIP])),...["html","htm","xhtml"].map((t=>[t,de.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,de.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,de.JPEG])),...["json"].map((t=>[t,de.JSON])),...["m4a","m4p"].map((t=>[t,de.M4A])),...["mov","qt"].map((t=>[t,de.MOV])),...["mp3"].map((t=>[t,de.MP3])),...["mp4","m4v"].map((t=>[t,de.MP4])),...["ogg","oga"].map((t=>[t,de.OGG])),...["pdf","ps"].map((t=>[t,de.PDF])),...["png"].map((t=>[t,de.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,de.POWERPOINT])),...["rar"].map((t=>[t,de.RAR])),...["stp"].map((t=>[t,de.STP])),...["txt","rtf","md","mdown"].map((t=>[t,de.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,de.VIDEO])),...["wav"].map((t=>[t,de.WAV])),...["wma"].map((t=>[t,de.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,de.WORD])),...["xml","xsl","rdf"].map((t=>[t,de.XML])),...["yaml","yml","x-yaml"].map((t=>[t,de.YAML])),...["zip"].map((t=>[t,de.ZIP]))]),be=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"]]);var ve,ge=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ve||(ve={}));const xe={size:e.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariable.extend("--ft-icon-file-format-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariable.extend("--ft-icon-material-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"))};class ye extends e.FtLitElement{constructor(){super(...arguments),this.variant=ve.fluid_topics}render(){return i.html`
348
+ <i class="ft-icon ${"ft-icon--"+this.variant}">
349
+ ${r.unsafeHTML(this.getIcon())}
350
+ <slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
351
+ </i>
352
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;let o=this.textContent;return this.variant===ve.file_format?null!==(t=de[o.toUpperCase()])&&void 0!==t?t:o:this.variant===ve.fluid_topics?null!==(e=fe[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}ye.elementDefinitions={},ye.styles=i.css`
353
+ :host, i.ft-icon {
354
+ display: inline-block;
355
+ width: ${xe.size};
356
+ height: ${xe.size};
357
+ text-align: center;
358
+ }
359
+
360
+ i.ft-icon {
361
+ font-size: ${xe.size};
362
+ line-height: 1;
363
+ font-weight: normal;
364
+ text-transform: none;
365
+ font-style: normal;
366
+ font-variant: normal;
367
+ speak: none;
368
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
369
+ text-rendering: auto;
370
+ -webkit-font-smoothing: antialiased;
371
+ -moz-osx-font-smoothing: grayscale;
372
+ }
373
+
374
+ .ft-icon--fluid-topics {
375
+ font-family: ${xe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
376
+ }
377
+
378
+ .ft-icon--file-format {
379
+ font-family: ${xe.fileFormatFontFamily}, ft-mime, sans-serif;
380
+ }
381
+
382
+ .ft-icon--material {
383
+ font-family: ${xe.materialFontFamily}, "Material Icons", sans-serif;
384
+ }
385
+ `,ge([o.property()],ye.prototype,"variant",void 0),ge([o.query("slot")],ye.prototype,"slottedContent",void 0),e.customElement("ft-icon")(ye);var me=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const $e=e.FtCssVariable.extend("--ft-button-color",e.designSystemVariables.colorPrimary),we={backgroundColor:e.FtCssVariable.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariable.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:$e,fontSize:e.FtCssVariable.extend("--ft-button-font-size",Nt.fontSize),iconSize:e.FtCssVariable.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariable.extend("--ft-button-ripple-color",$e),opacityDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},ke=e.FtCssVariable.extend("--ft-button-primary-color",e.FtCssVariable.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Se={backgroundColor:e.FtCssVariable.extend("--ft-button-primary-background-color",e.FtCssVariable.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:ke,rippleColor:e.FtCssVariable.extend("--ft-button-primary-ripple-color",ke)},ze=e.FtCssVariable.extend("--ft-button-dense-border-radius",e.FtCssVariable.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM));class Oe extends e.FtLitElement{constructor(){super(...arguments),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.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[e.noTextSelect,i.css`
508
386
  :host {
509
387
  display: inline-block;
510
388
  max-width: 100%;
389
+ pointer-events: none;
511
390
  }
512
391
 
513
392
  button {
@@ -540,19 +419,20 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
540
419
  overflow: hidden;
541
420
  box-sizing: border-box;
542
421
  border: none;
422
+ pointer-events: auto;
543
423
 
544
- --ft-button-internal-font-size: ${Ke.fontSize};
424
+ --ft-button-internal-font-size: ${we.fontSize};
545
425
  --ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
546
- --ft-button-internal-color: ${Ke.color};
547
- --mdc-icon-size: ${Ke.iconSize};
426
+ --ft-button-internal-color: ${we.color};
427
+ ${e.setVariable(xe.size,we.iconSize)};
548
428
  --ft-button-internal-vertical-padding: 6px;
549
429
  --ft-button-internal-horizontal-padding: 8px;
550
- ${a.setVariable(Ae.color,Ke.rippleColor)};
551
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), var(--mdc-icon-size));
430
+ ${e.setVariable(ee.color,we.rippleColor)};
431
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${we.iconSize});
552
432
 
553
- border-radius: ${Ke.borderRadius};
433
+ border-radius: ${we.borderRadius};
554
434
  padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
555
- background-color: ${Ke.backgroundColor};
435
+ background-color: ${we.backgroundColor};
556
436
  color: var(--ft-button-internal-color);
557
437
  -webkit-mask-image: radial-gradient(white, black);
558
438
  }
@@ -564,7 +444,7 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
564
444
  .ft-button--dense {
565
445
  --ft-button-internal-vertical-padding: 2px;
566
446
  --ft-button-internal-horizontal-padding: 4px;
567
- border-radius: ${Ye};
447
+ border-radius: ${ze};
568
448
  }
569
449
 
570
450
  .ft-button--round {
@@ -573,12 +453,13 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
573
453
 
574
454
  .ft-button[disabled] {
575
455
  filter: grayscale(1);
576
- opacity: ${Ke.opacityDisabled};
456
+ opacity: ${we.opacityDisabled};
577
457
  }
578
458
 
579
459
  .ft-button.ft-button--primary {
580
- background-color: ${Xe};
581
- --ft-button-internal-color: ${Je};
460
+ background-color: ${Se.backgroundColor};
461
+ --ft-button-internal-color: ${Se.color};
462
+ ${e.setVariable(ee.color,Se.rippleColor)};
582
463
  }
583
464
 
584
465
  .ft-button.ft-button--outlined {
@@ -596,8 +477,8 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
596
477
  text-overflow: ellipsis;
597
478
  display: block;
598
479
  margin: 0 var(--ft-button-internal-horizontal-padding);
599
- ${a.setVariable(Mt.fontSize,"var(--ft-button-internal-font-size)")};
600
- ${a.setVariable(Mt.lineHeight,"var(--ft-button-internal-content-height)")};
480
+ ${e.setVariable(Nt.fontSize,"var(--ft-button-internal-font-size)")};
481
+ ${e.setVariable(Nt.lineHeight,"var(--ft-button-internal-content-height)")};
601
482
  }
602
483
 
603
484
  .ft-button--safari-fix .ft-button--label {
@@ -614,28 +495,27 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
614
495
  display: none;
615
496
  }
616
497
 
617
- mwc-icon {
498
+ ft-icon {
618
499
  flex-shrink: 0;
619
- width: var(--mdc-icon-size);
620
500
  }
621
501
 
622
- .ft-button--label[hidden] + mwc-icon {
502
+ .ft-button--label[hidden] + ft-icon {
623
503
  margin: 0 calc(var(--ft-button-internal-horizontal-padding) * -1);
624
504
  padding: 0 var(--ft-button-internal-vertical-padding);
625
505
  }
626
506
 
627
- .ft-button:not(.ft-button--trailing-icon) mwc-icon,
507
+ .ft-button:not(.ft-button--trailing-icon) ft-icon,
628
508
  .ft-button:not(.ft-button--trailing-icon) ft-loader {
629
509
  order: -1;
630
510
  }
631
511
 
632
512
  ft-loader {
633
- ${a.setVariable(Ve.size,Ke.iconSize)};
634
- ${a.setVariable(Ve.color,"var(--ft-button-internal-color)")};
513
+ ${e.setVariable(he.size,we.iconSize)};
514
+ ${e.setVariable(he.color,"var(--ft-button-internal-color)")};
635
515
  }
636
- `]}getTemplate(){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-button--safari-fix":a.isSafari,"ft-no-text-select":!0};return this.addTooltip(e.html`
516
+ `]}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-button--safari-fix":e.isSafari,"ft-no-text-select":!0};return this.addTooltip(i.html`
637
517
  <button part="button"
638
- class="${r.classMap(t)}"
518
+ class="${n.classMap(t)}"
639
519
  aria-label="${this.getLabel()}"
640
520
  ?disabled=${this.isDisabled()}>
641
521
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -647,239 +527,246 @@ const Ie=e.css`:host{font-family:var(--mdc-icon-font, "Material Icons");font-wei
647
527
  </ft-typography>
648
528
  ${this.resolveIcon()}
649
529
  </button>
650
- `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:e.html`
530
+ `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:i.html`
651
531
  <ft-tooltip part="tooltip"
652
532
  text="${this.getLabel()}"
653
533
  position="${this.tooltipPosition}">
654
534
  ${t}
655
535
  </ft-tooltip>
656
- `}resolveIcon(){return this.loading?e.html`
657
- <ft-loader></ft-loader> `:this.icon?e.html`
658
- <mwc-icon>${this.icon}</mwc-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}};Qe.elementDefinitions={"ft-ripple":Fe,"ft-tooltip":He,"ft-typography":Xt,"mwc-icon":Re,"ft-loader":Ze},qe([i.property({type:Boolean})],Qe.prototype,"primary",void 0),qe([i.property({type:Boolean})],Qe.prototype,"outlined",void 0),qe([i.property({type:Boolean})],Qe.prototype,"disabled",void 0),qe([i.property({type:Boolean})],Qe.prototype,"dense",void 0),qe([i.property({type:Boolean})],Qe.prototype,"round",void 0),qe([i.property({type:String})],Qe.prototype,"label",void 0),qe([i.property({type:String})],Qe.prototype,"icon",void 0),qe([i.property({type:Boolean})],Qe.prototype,"trailingIcon",void 0),qe([i.property({type:Boolean})],Qe.prototype,"loading",void 0),qe([i.property({type:String})],Qe.prototype,"tooltipPosition",void 0),qe([i.query(".ft-button")],Qe.prototype,"button",void 0),qe([i.query(".ft-button--label slot")],Qe.prototype,"slottedContent",void 0),Qe=qe([a.customElement("ft-button")],Qe);
659
- /**
660
- * @license
661
- * Copyright 2017 Google Inc.
662
- *
663
- * Permission is hereby granted, free of charge, to any person obtaining a copy
664
- * of this software and associated documentation files (the "Software"), to deal
665
- * in the Software without restriction, including without limitation the rights
666
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
667
- * copies of the Software, and to permit persons to whom the Software is
668
- * furnished to do so, subject to the following conditions:
669
- *
670
- * The above copyright notice and this permission notice shall be included in
671
- * all copies or substantial portions of the Software.
672
- *
673
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
674
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
675
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
676
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
677
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
678
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
679
- * THE SOFTWARE.
680
- */
681
- var ti={ROOT:"mdc-form-field"},ei={LABEL_SELECTOR:".mdc-form-field > label"},ii=function(t){function e(i){var o=t.call(this,oe(oe({},e.defaultAdapter),i))||this;return o.click=function(){o.handleClick()},o}return ie(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return ti},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return ei},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{activateInputRipple:function(){},deactivateInputRipple:function(){},deregisterInteractionHandler:function(){},registerInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("click",this.click)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("click",this.click)},e.prototype.handleClick=function(){var t=this;this.adapter.activateInputRipple(),requestAnimationFrame((function(){t.adapter.deactivateInputRipple()}))},e}(le);
682
- /**
683
- * @license
684
- * Copyright 2018 Google LLC
685
- * SPDX-License-Identifier: Apache-2.0
686
- */
687
- const oi=t=>(e,i)=>{if(e.constructor._observers){if(!e.constructor.hasOwnProperty("_observers")){const t=e.constructor._observers;e.constructor._observers=new Map,t.forEach(((t,i)=>e.constructor._observers.set(i,t)))}}else{e.constructor._observers=new Map;const t=e.updated;e.updated=function(e){t.call(this,e),e.forEach(((t,e)=>{const i=this.constructor._observers.get(e);void 0!==i&&i.call(this,this[e],t)}))}}e.constructor._observers.set(i,t)}
688
- /**
689
- * @license
690
- * Copyright 2018 Google LLC
691
- * SPDX-License-Identifier: Apache-2.0
692
- */;class ri extends se{constructor(){super(...arguments),this.alignEnd=!1,this.spaceBetween=!1,this.nowrap=!1,this.label="",this.mdcFoundationClass=ii}createAdapter(){return{registerInteractionHandler:(t,e)=>{this.labelEl.addEventListener(t,e)},deregisterInteractionHandler:(t,e)=>{this.labelEl.removeEventListener(t,e)},activateInputRipple:async()=>{const t=this.input;if(t instanceof ze){const e=await t.ripple;e&&e.startPress()}},deactivateInputRipple:async()=>{const t=this.input;if(t instanceof ze){const e=await t.ripple;e&&e.endPress()}}}}get input(){var t,e;return null!==(e=null===(t=this.slottedInputs)||void 0===t?void 0:t[0])&&void 0!==e?e:null}render(){const t={"mdc-form-field--align-end":this.alignEnd,"mdc-form-field--space-between":this.spaceBetween,"mdc-form-field--nowrap":this.nowrap};return e.html`
693
- <div class="mdc-form-field ${r.classMap(t)}">
694
- <slot></slot>
695
- <label class="mdc-label"
696
- @click="${this._labelClick}">${this.label}</label>
697
- </div>`}click(){this._labelClick()}_labelClick(){const t=this.input;t&&(t.focus(),t.click())}}re([i.property({type:Boolean})],ri.prototype,"alignEnd",void 0),re([i.property({type:Boolean})],ri.prototype,"spaceBetween",void 0),re([i.property({type:Boolean})],ri.prototype,"nowrap",void 0),re([i.property({type:String}),oi((async function(t){var e;null===(e=this.input)||void 0===e||e.setAttribute("aria-label",t)}))],ri.prototype,"label",void 0),re([i.query(".mdc-form-field")],ri.prototype,"mdcRoot",void 0),re([i.queryAssignedNodes("",!0,"*")],ri.prototype,"slottedInputs",void 0),re([i.query("label")],ri.prototype,"labelEl",void 0);
698
- /**
699
- * @license
700
- * Copyright 2021 Google LLC
701
- * SPDX-LIcense-Identifier: Apache-2.0
702
- */
703
- const ai=e.css`.mdc-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87));display:inline-flex;align-items:center;vertical-align:middle}.mdc-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{margin-left:auto;margin-right:0}[dir=rtl] .mdc-form-field>label,.mdc-form-field>label[dir=rtl]{padding-left:0;padding-right:4px}.mdc-form-field--nowrap>label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{margin-left:0;margin-right:auto}[dir=rtl] .mdc-form-field--align-end>label,.mdc-form-field--align-end>label[dir=rtl]{padding-left:4px;padding-right:0}.mdc-form-field--space-between{justify-content:space-between}.mdc-form-field--space-between>label{margin:0}[dir=rtl] .mdc-form-field--space-between>label,.mdc-form-field--space-between>label[dir=rtl]{margin:0}:host{display:inline-flex}.mdc-form-field{width:100%}::slotted(*){-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-body2-font-size, 0.875rem);line-height:1.25rem;line-height:var(--mdc-typography-body2-line-height, 1.25rem);font-weight:400;font-weight:var(--mdc-typography-body2-font-weight, 400);letter-spacing:0.0178571429em;letter-spacing:var(--mdc-typography-body2-letter-spacing, 0.0178571429em);text-decoration:inherit;text-decoration:var(--mdc-typography-body2-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-body2-text-transform, inherit);color:rgba(0, 0, 0, 0.87);color:var(--mdc-theme-text-primary-on-background, rgba(0, 0, 0, 0.87))}::slotted(mwc-switch){margin-right:10px}[dir=rtl] ::slotted(mwc-switch),::slotted(mwc-switch[dir=rtl]){margin-left:10px}`
704
- /**
705
- * @license
706
- * Copyright 2018 Google LLC
707
- * SPDX-License-Identifier: Apache-2.0
708
- */;let ci=class extends ri{};ci.styles=[ai],ci=re([i.customElement("mwc-formfield")],ci);
709
- /**
710
- * @license
711
- * Copyright 2020 Google LLC
712
- * SPDX-License-Identifier: Apache-2.0
713
- */
714
- const ni=Symbol("selection controller");class si{constructor(){this.selected=null,this.ordered=null,this.set=new Set}}class li{constructor(t){this.sets={},this.focusedSet=null,this.mouseIsDown=!1,this.updating=!1,t.addEventListener("keydown",(t=>{this.keyDownHandler(t)})),t.addEventListener("mousedown",(()=>{this.mousedownHandler()})),t.addEventListener("mouseup",(()=>{this.mouseupHandler()}))}static getController(t){const e=!("global"in t)||"global"in t&&t.global?document:t.getRootNode();let i=e[ni];return void 0===i&&(i=new li(e),e[ni]=i),i}keyDownHandler(t){const e=t.target;"checked"in e&&this.has(e)&&("ArrowRight"==t.key||"ArrowDown"==t.key?this.selectNext(e):"ArrowLeft"!=t.key&&"ArrowUp"!=t.key||this.selectPrevious(e))}mousedownHandler(){this.mouseIsDown=!0}mouseupHandler(){this.mouseIsDown=!1}has(t){return this.getSet(t.name).set.has(t)}selectPrevious(t){const e=this.getOrdered(t),i=e.indexOf(t),o=e[i-1]||e[e.length-1];return this.select(o),o}selectNext(t){const e=this.getOrdered(t),i=e.indexOf(t),o=e[i+1]||e[0];return this.select(o),o}select(t){t.click()}focus(t){if(this.mouseIsDown)return;const e=this.getSet(t.name),i=this.focusedSet;this.focusedSet=e,i!=e&&e.selected&&e.selected!=t&&e.selected.focus()}isAnySelected(t){const e=this.getSet(t.name);for(const t of e.set)if(t.checked)return!0;return!1}getOrdered(t){const e=this.getSet(t.name);return e.ordered||(e.ordered=Array.from(e.set),e.ordered.sort(((t,e)=>t.compareDocumentPosition(e)==Node.DOCUMENT_POSITION_PRECEDING?1:0))),e.ordered}getSet(t){return this.sets[t]||(this.sets[t]=new si),this.sets[t]}register(t){const e=t.name||t.getAttribute("name")||"",i=this.getSet(e);i.set.add(t),i.ordered=null}unregister(t){const e=this.getSet(t.name);e.set.delete(t),e.ordered=null,e.selected==t&&(e.selected=null)}update(t){if(this.updating)return;this.updating=!0;const e=this.getSet(t.name);if(t.checked){for(const i of e.set)i!=t&&(i.checked=!1);e.selected=t}if(this.isAnySelected(t))for(const t of e.set){if(void 0===t.formElementTabIndex)break;t.formElementTabIndex=t.checked?0:-1}this.updating=!1}}
715
- /**
716
- * @license
717
- * Copyright 2016 Google Inc.
718
- *
719
- * Permission is hereby granted, free of charge, to any person obtaining a copy
720
- * of this software and associated documentation files (the "Software"), to deal
721
- * in the Software without restriction, including without limitation the rights
722
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
723
- * copies of the Software, and to permit persons to whom the Software is
724
- * furnished to do so, subject to the following conditions:
725
- *
726
- * The above copyright notice and this permission notice shall be included in
727
- * all copies or substantial portions of the Software.
728
- *
729
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
730
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
731
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
732
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
733
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
734
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
735
- * THE SOFTWARE.
736
- */var di={NATIVE_CONTROL_SELECTOR:".mdc-radio__native-control"},pi={DISABLED:"mdc-radio--disabled",ROOT:"mdc-radio"},hi=function(t){function e(i){return t.call(this,oe(oe({},e.defaultAdapter),i))||this}return ie(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return pi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return di},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNativeControlDisabled:function(){}}},enumerable:!1,configurable:!0}),e.prototype.setDisabled=function(t){var i=e.cssClasses.DISABLED;this.adapter.setNativeControlDisabled(t),t?this.adapter.addClass(i):this.adapter.removeClass(i)},e}(le);
737
- /**
738
- * @license
739
- * Copyright 2018 Google LLC
740
- * SPDX-License-Identifier: Apache-2.0
741
- */
742
- class fi extends ze{constructor(){super(...arguments),this._checked=!1,this.useStateLayerCustomProperties=!1,this.global=!1,this.disabled=!1,this.value="on",this.name="",this.reducedTouchTarget=!1,this.mdcFoundationClass=hi,this.formElementTabIndex=0,this.focused=!1,this.shouldRenderRipple=!1,this.rippleElement=null,this.rippleHandlers=new Se((()=>(this.shouldRenderRipple=!0,this.ripple.then((t=>{this.rippleElement=t})),this.ripple)))}get checked(){return this._checked}set checked(t){var e,i;const o=this._checked;t!==o&&(this._checked=t,this.formElement&&(this.formElement.checked=t),null===(e=this._selectionController)||void 0===e||e.update(this),!1===t&&(null===(i=this.formElement)||void 0===i||i.blur()),this.requestUpdate("checked",o),this.dispatchEvent(new Event("checked",{bubbles:!0,composed:!0})))}_handleUpdatedValue(t){this.formElement.value=t}renderRipple(){return this.shouldRenderRipple?e.html`<mwc-ripple unbounded accent
743
- .internalUseStateLayerCustomProperties="${this.useStateLayerCustomProperties}"
744
- .disabled="${this.disabled}"></mwc-ripple>`:""}get isRippleActive(){var t;return(null===(t=this.rippleElement)||void 0===t?void 0:t.isActive)||!1}connectedCallback(){super.connectedCallback(),this._selectionController=li.getController(this),this._selectionController.register(this),this._selectionController.update(this)}disconnectedCallback(){this._selectionController.unregister(this),this._selectionController=void 0}focus(){this.formElement.focus()}createAdapter(){return Object.assign(Object.assign({},(t=this.mdcRoot,{addClass:e=>{t.classList.add(e)},removeClass:e=>{t.classList.remove(e)},hasClass:e=>t.classList.contains(e)})),{setNativeControlDisabled:t=>{this.formElement.disabled=t}});var t}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleClick(){this.formElement.focus()}handleBlur(){this.focused=!1,this.formElement.blur(),this.rippleHandlers.endFocus()}setFormData(t){this.name&&this.checked&&t.append(this.name,this.value)}render(){const t={"mdc-radio--touch":!this.reducedTouchTarget,"mdc-ripple-upgraded--background-focused":this.focused,"mdc-radio--disabled":this.disabled};return e.html`
745
- <div class="mdc-radio ${r.classMap(t)}">
746
- <input
747
- tabindex="${this.formElementTabIndex}"
748
- class="mdc-radio__native-control"
749
- type="radio"
750
- name="${this.name}"
751
- aria-label="${Oe(this.ariaLabel)}"
752
- aria-labelledby="${Oe(this.ariaLabelledBy)}"
753
- .checked="${this.checked}"
754
- .value="${this.value}"
755
- ?disabled="${this.disabled}"
756
- @change="${this.changeHandler}"
757
- @focus="${this.handleFocus}"
758
- @click="${this.handleClick}"
759
- @blur="${this.handleBlur}"
760
- @mousedown="${this.handleRippleMouseDown}"
761
- @mouseenter="${this.handleRippleMouseEnter}"
762
- @mouseleave="${this.handleRippleMouseLeave}"
763
- @touchstart="${this.handleRippleTouchStart}"
764
- @touchend="${this.handleRippleDeactivate}"
765
- @touchcancel="${this.handleRippleDeactivate}">
766
- <div class="mdc-radio__background">
767
- <div class="mdc-radio__outer-circle"></div>
768
- <div class="mdc-radio__inner-circle"></div>
769
- </div>
770
- ${this.renderRipple()}
771
- </div>`}handleRippleMouseDown(t){const e=()=>{window.removeEventListener("mouseup",e),this.handleRippleDeactivate()};window.addEventListener("mouseup",e),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}changeHandler(){this.checked=this.formElement.checked}}re([i.query(".mdc-radio")],fi.prototype,"mdcRoot",void 0),re([i.query("input")],fi.prototype,"formElement",void 0),re([i.state()],fi.prototype,"useStateLayerCustomProperties",void 0),re([i.property({type:Boolean})],fi.prototype,"global",void 0),re([i.property({type:Boolean,reflect:!0})],fi.prototype,"checked",null),re([i.property({type:Boolean}),oi((function(t){this.mdcFoundation.setDisabled(t)}))],fi.prototype,"disabled",void 0),re([i.property({type:String}),oi((function(t){this._handleUpdatedValue(t)}))],fi.prototype,"value",void 0),re([i.property({type:String})],fi.prototype,"name",void 0),re([i.property({type:Boolean})],fi.prototype,"reducedTouchTarget",void 0),re([i.property({type:Number})],fi.prototype,"formElementTabIndex",void 0),re([i.state()],fi.prototype,"focused",void 0),re([i.state()],fi.prototype,"shouldRenderRipple",void 0),re([i.queryAsync("mwc-ripple")],fi.prototype,"ripple",void 0),re([ke,i.property({attribute:"aria-label"})],fi.prototype,"ariaLabel",void 0),re([ke,i.property({attribute:"aria-labelledby"})],fi.prototype,"ariaLabelledBy",void 0),re([i.eventOptions({passive:!0})],fi.prototype,"handleRippleTouchStart",null);
772
- /**
773
- * @license
774
- * Copyright 2021 Google LLC
775
- * SPDX-LIcense-Identifier: Apache-2.0
776
- */
777
- const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc((40px - 20px) / 2)}.mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.54)}.mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:#018786;border-color:var(--mdc-theme-secondary, #018786)}.mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:#018786;border-color:var(--mdc-theme-secondary, #018786)}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.38)}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:rgba(0, 0, 0, 0.38)}.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:rgba(0, 0, 0, 0.38)}.mdc-radio .mdc-radio__background::before{background-color:#018786;background-color:var(--mdc-theme-secondary, #018786)}.mdc-radio .mdc-radio__background::before{top:calc(-1 * (40px - 20px) / 2);left:calc(-1 * (40px - 20px) / 2);width:40px;height:40px}.mdc-radio .mdc-radio__native-control{top:calc((40px - 40px) / 2);right:calc((40px - 40px) / 2);left:calc((40px - 40px) / 2);width:40px;height:40px}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:GrayText}.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:GrayText}}.mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color}.mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0, 0);border-width:10px;border-style:solid;border-radius:50%;transition:transform 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1),border-color 120ms 0ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1}.mdc-radio--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-radio--touch .mdc-radio__native-control{top:calc((40px - 48px) / 2);right:calc((40px - 48px) / 2);left:calc((40px - 48px) / 2);width:48px;height:48px}.mdc-radio__native-control:checked+.mdc-radio__background,.mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__outer-circle{transition:border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio--disabled{cursor:default;pointer-events:none}.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle{transform:scale(0.5);transition:transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1),border-color 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-radio__native-control:disabled+.mdc-radio__background,[aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background{cursor:default}.mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 120ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 120ms 0ms cubic-bezier(0, 0, 0.2, 1)}:host{display:inline-block;outline:none}.mdc-radio{vertical-align:bottom}.mdc-radio .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-unchecked-color, rgba(0, 0, 0, 0.54))}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-radio [aria-disabled=true] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,.mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle{border-color:var(--mdc-radio-disabled-color, rgba(0, 0, 0, 0.38))}.mdc-radio [aria-disabled=true] .mdc-radio__native-control+.mdc-radio__background .mdc-radio__inner-circle,.mdc-radio .mdc-radio__native-control:disabled+.mdc-radio__background .mdc-radio__inner-circle{border-color:var(--mdc-radio-disabled-color, rgba(0, 0, 0, 0.38))}`
778
- /**
779
- * @license
780
- * Copyright 2018 Google LLC
781
- * SPDX-License-Identifier: Apache-2.0
782
- */;let mi=class extends fi{};mi.styles=[ui],mi=re([i.customElement("mwc-radio")],mi);var bi=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};const gi={borderRadiusM:a.FtCssVariable.external(a.designSystemVariables.borderRadiusM,"Design system"),colorOutline:a.FtCssVariable.external(a.designSystemVariables.colorOutline,"Design system"),colorOnSurface:a.FtCssVariable.external(a.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:a.FtCssVariable.external(a.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:a.FtCssVariable.external(a.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:a.FtCssVariable.external(a.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:a.FtCssVariable.external(a.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:a.FtCssVariable.external(zt.fontFamily,"Body2 typography"),fontSize:a.FtCssVariable.external(zt.fontSize,"Body2 typography"),fontWeight:a.FtCssVariable.external(zt.fontWeight,"Body2 typography"),letterSpacing:a.FtCssVariable.external(zt.letterSpacing,"Body2 typography"),lineHeight:a.FtCssVariable.external(zt.lineHeight,"Body2 typography"),textTransform:a.FtCssVariable.external(zt.textTransform,"Body2 typography")};let vi=class extends a.FtLitElement{constructor(){super(...arguments),this.id="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}getStyles(){return[e.css`
783
- .ft-filter-level--container {
784
- display: flex;
785
- flex-direction: column;
786
- }
787
-
788
- .ft-filter-level--container > * {
789
- padding: 0 10px;
790
- }
791
-
792
- .ft-filter-level--go-back {
793
- flex-shrink: 0;
794
- text-decoration: none;
795
- position: relative;
796
- border-radius: ${gi.borderRadiusM};
797
- overflow: hidden;
798
- display: flex;
799
- align-items: center;
800
- padding: 4px 4px;
801
- gap: 4px;
802
- cursor: pointer;
803
- color: ${gi.colorOnSurface};
804
- }
805
-
806
- .ft-filter-level--go-back:focus {
807
- outline: none;
808
- }
809
-
810
- .ft-filter-level--go-back mwc-icon {
811
- flex-shrink: 0;
812
- }
813
-
814
- .ft-filter-level--go-back ft-typography {
815
- display: block;
816
- flex-grow: 1;
817
- flex-shrink: 0;
818
- }
819
-
820
- .ft-filter-level--option {
821
- display: flex;
822
- align-items: center;
823
- max-width: 100%;
824
- }
825
-
826
- .ft-filter-level--option ft-button {
827
- margin-right: -10px;
828
- flex-shrink: 0;
829
- }
830
-
831
- ft-button {
832
- ${a.setVariable(Ke.color,gi.colorOnSurface)};
833
- }
834
-
835
- mwc-formfield {
836
- flex-shrink: 1;
837
- flex-grow: 1;
838
- display: block;
839
- max-width: calc(100% + 10px);
840
- margin-left: -10px;
841
- word-break: break-word;
842
-
843
- --mdc-theme-secondary: ${gi.colorPrimary};
844
-
845
- --mdc-radio-unchecked-color: ${gi.colorOnSurfaceMedium};
846
- --mdc-checkbox-unchecked-color: ${gi.colorOnSurfaceMedium};
847
- --mdc-checkbox-ink-color: ${gi.colorOnPrimary};
848
-
849
- --mdc-radio-disabled-color: ${gi.colorOnSurfaceDisabled};
850
- --mdc-checkbox-disabled-color: ${gi.colorOnSurfaceDisabled};
851
-
852
- --mdc-theme-on-surface: ${gi.colorPrimary};
853
-
854
- --mdc-typography-body2-font-family: ${gi.fontFamily};
855
- --mdc-typography-body2-font-size: ${gi.fontSize};
856
- --mdc-typography-body2-font-weight: ${gi.fontWeight};
857
- --mdc-typography-body2-letter-spacing: ${gi.letterSpacing};
858
- --mdc-typography-body2-line-height: ${gi.lineHeight};
859
- --mdc-typography-body2-text-transform: ${gi.textTransform};
860
- --mdc-theme-text-primary-on-background: ${gi.colorOnSurface};
861
- }
862
-
863
- .ft-filter--disabled {
864
- --mdc-theme-text-primary-on-background: ${gi.colorOnSurfaceDisabled};
865
- }
866
- `]}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}getTemplate(){let t=this.options;this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const i=t.slice(0,this.limit);return e.html`
536
+ `}resolveIcon(){return this.loading?i.html`
537
+ <ft-loader></ft-loader> `:this.icon?i.html`
538
+ <ft-icon variant="material">${this.icon}</ft-icon> `:i.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}}Oe.elementDefinitions={"ft-ripple":ie,"ft-tooltip":ce,"ft-typography":Gt,"ft-icon":ye,"ft-loader":pe},me([o.property({type:Boolean})],Oe.prototype,"primary",void 0),me([o.property({type:Boolean})],Oe.prototype,"outlined",void 0),me([o.property({type:Boolean})],Oe.prototype,"disabled",void 0),me([o.property({type:Boolean})],Oe.prototype,"dense",void 0),me([o.property({type:Boolean})],Oe.prototype,"round",void 0),me([o.property({type:String})],Oe.prototype,"label",void 0),me([o.property({type:String})],Oe.prototype,"icon",void 0),me([o.property({type:Boolean})],Oe.prototype,"trailingIcon",void 0),me([o.property({type:Boolean})],Oe.prototype,"loading",void 0),me([o.property({type:String})],Oe.prototype,"tooltipPosition",void 0),me([o.query(".ft-button")],Oe.prototype,"button",void 0),me([o.query(".ft-button--label slot")],Oe.prototype,"slottedContent",void 0),e.customElement("ft-button")(Oe);var Be=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Ce=e.FtCssVariable.extend("--ft-checkbox-text-color",e.designSystemVariables.colorOnSurfaceHigh),Ee=e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),Ie=e.FtCssVariable.external(e.designSystemVariables.colorOnPrimary,"Design system"),De=e.FtCssVariable.extend("--ft-checkbox-border-color",e.designSystemVariables.colorOnSurfaceMedium),Fe=e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system");class Le extends e.FtLitElement{constructor(){super(...arguments),this.name="",this.checked=!1,this.indeterminate=!1,this.disabled=!1}render(){const t={"ft-checkbox":!0,"ft-checkbox--checked":this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled};return i.html`
539
+ <label class="${n.classMap(t)}">
540
+ <div class="ft-checkbox--box-container">
541
+ <input type="checkbox"
542
+ name=${this.name}
543
+ .checked=${this.checked}
544
+ .disabled=${this.disabled}
545
+ @change=${this.onChange}
546
+ >
547
+ <ft-ripple
548
+ ?disabled=${this.disabled}
549
+ ?primary=${this.checked||this.indeterminate}
550
+ unbounded>
551
+ </ft-ripple>
552
+ <div class="ft-checkbox--box">
553
+ <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24">
554
+ <path class="ft-checkbox--checkmark-path" fill="none"
555
+ d=${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}></path>
556
+ </svg>
557
+ </div>
558
+ </div>
559
+ <ft-typography variant="body2">
560
+ <slot></slot>
561
+ </ft-typography>
562
+ </label>
563
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}}Le.elementDefinitions={"ft-ripple":ie,"ft-typography":Gt},Le.styles=i.css`
564
+ * {
565
+ box-sizing: border-box;
566
+ }
567
+
568
+ .ft-checkbox {
569
+ box-sizing: border-box;
570
+ color: ${Ce};
571
+
572
+ display: inline-flex;
573
+ align-items: center;
574
+ gap: 4px;
575
+ }
576
+
577
+ .ft-checkbox--disabled {
578
+ color: ${Fe};
579
+ }
580
+
581
+ input {
582
+ opacity: 0;
583
+ position: absolute;
584
+ width: 40px;
585
+ height: 40px;
586
+ margin: 0;
587
+ }
588
+
589
+ .ft-checkbox--box-container {
590
+ position: relative;
591
+ width: 40px;
592
+ height: 40px;
593
+
594
+ display: flex;
595
+ justify-content: center;
596
+ align-items: center;
597
+ flex-shrink: 0;
598
+ }
599
+
600
+ .ft-checkbox--box {
601
+ border: 2px solid ${De};
602
+ border-radius: 2px;
603
+
604
+ width: 18px;
605
+ height: 18px;
606
+
607
+ color: ${Ie};
608
+ }
609
+
610
+
611
+ .ft-checkbox--checked .ft-checkbox--box,
612
+ .ft-checkbox--indeterminate .ft-checkbox--box {
613
+ border-color: ${Ee};
614
+ background-color: ${Ee};
615
+ }
616
+
617
+ .ft-checkbox--disabled .ft-checkbox--box {
618
+ border-color: ${Fe};
619
+ background-color: transparent;
620
+ color: ${Fe};
621
+ }
622
+
623
+ .ft-checkbox--checkmark {
624
+ transition: opacity 180ms cubic-bezier(0, 0, 0.2, 1) 0ms, transform 180ms cubic-bezier(0, 0, 0.2, 1) 0ms;
625
+ opacity: 0;
626
+ }
627
+
628
+ .ft-checkbox--checkmark-path {
629
+ stroke-dashoffset: 0;
630
+ stroke: currentcolor;
631
+ stroke-width: 3px;
632
+ stroke-dasharray: 30;
633
+ }
634
+
635
+ .ft-checkbox--checked .ft-checkbox--checkmark,
636
+ .ft-checkbox--indeterminate .ft-checkbox--checkmark {
637
+ opacity: 1;
638
+ }
639
+ `,Be([o.property()],Le.prototype,"name",void 0),Be([o.property({type:Boolean})],Le.prototype,"checked",void 0),Be([o.property({type:Boolean})],Le.prototype,"indeterminate",void 0),Be([o.property({type:Boolean})],Le.prototype,"disabled",void 0),Be([o.query(".ft-checkbox")],Le.prototype,"container",void 0),Be([o.query("ft-ripple")],Le.prototype,"ripple",void 0),e.customElement("ft-checkbox")(Le);var je=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Me=e.FtCssVariable.extend("--ft-radio-text-color",e.designSystemVariables.colorOnSurfaceHigh),Ae=e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),Te=(e.FtCssVariable.external(e.designSystemVariables.colorOnPrimary,"Design system"),e.FtCssVariable.extend("--ft-radio-border-color",e.designSystemVariables.colorOnSurfaceMedium)),Ne=e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system");class Re extends CustomEvent{constructor(t,e){super("change",{detail:{value:t,checked:e},bubbles:!0,composed:!0})}}class Pe extends e.FtLitElement{constructor(){super(...arguments),this.value="",this.name="",this.checked=!1,this.disabled=!1}render(){const t={"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled};return i.html`
640
+ <div class="${n.classMap(t)}">
641
+ <div class="ft-radio--box-container">
642
+ <input id="radio-button"
643
+ type="radio"
644
+ name="${this.name}"
645
+ value="${this.value}"
646
+ .checked=${this.checked}
647
+ .disabled=${this.disabled}
648
+ @change=${this.onChange}
649
+ >
650
+ <ft-ripple
651
+ ?disabled=${this.disabled}
652
+ ?primary=${this.checked}
653
+ unbounded>
654
+ </ft-ripple>
655
+ <div class="ft-radio--box">
656
+ </div>
657
+ </div>
658
+ <label for="radio-button" @click=${t=>t.stopPropagation()}>
659
+ <ft-typography variant="body2">
660
+ <slot></slot>
661
+ </ft-typography>
662
+ </label>
663
+ </div>
664
+ `}onChange(t){t.stopPropagation(),this.checked=t.target.checked,this.dispatchEvent(new Re(this.value,this.checked))}contentAvailableCallback(t){var e;super.contentAvailableCallback(t),null===(e=this.ripple)||void 0===e||e.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Re(this.value,this.checked)),this.focus()}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}}Pe.elementDefinitions={"ft-ripple":ie,"ft-typography":Gt},Pe.styles=i.css`
665
+ * {
666
+ box-sizing: border-box;
667
+ }
668
+
669
+ .ft-radio {
670
+ box-sizing: border-box;
671
+ color: ${Me};
672
+
673
+ display: inline-flex;
674
+ align-items: center;
675
+ gap: 4px;
676
+ }
677
+
678
+ .ft-radio--disabled {
679
+ color: ${Ne};
680
+ }
681
+
682
+ input {
683
+ opacity: 0;
684
+ position: absolute;
685
+ width: 40px;
686
+ height: 40px;
687
+ margin: 0;
688
+ }
689
+
690
+ .ft-radio--box-container {
691
+ position: relative;
692
+ width: 40px;
693
+ height: 40px;
694
+
695
+ display: flex;
696
+ justify-content: center;
697
+ align-items: center;
698
+ flex-shrink: 0;
699
+ }
700
+
701
+ .ft-radio--box {
702
+ border: 2px solid ${Te};
703
+ border-radius: 50%;
704
+
705
+ display: flex;
706
+ justify-content: center;
707
+ align-items: center;
708
+
709
+ width: 20px;
710
+ height: 20px;
711
+ }
712
+
713
+ .ft-radio--box:after {
714
+ content: " ";
715
+ background-color: ${Ae};
716
+
717
+ border-radius: 50%;
718
+
719
+ width: 12px;
720
+ height: 12px;
721
+
722
+ transform: scale(0);
723
+ transition: transform 100ms ease;
724
+ }
725
+
726
+ .ft-radio--checked .ft-radio--box {
727
+ border-color: ${Ae};
728
+ }
729
+
730
+
731
+ .ft-radio--checked .ft-radio--box:after {
732
+ transform: scale(1);
733
+ }
734
+
735
+ .ft-radio--disabled .ft-radio--box {
736
+ border-color: ${Ne};
737
+ background-color: transparent;
738
+ }
739
+
740
+ .ft-radio--disabled .ft-radio--box:after {
741
+ background-color: ${Ne};
742
+ }
743
+ `,je([o.property()],Pe.prototype,"value",void 0),je([o.property()],Pe.prototype,"name",void 0),je([o.property({type:Boolean})],Pe.prototype,"checked",void 0),je([o.property({type:Boolean})],Pe.prototype,"disabled",void 0),je([o.query(".ft-radio")],Pe.prototype,"container",void 0),je([o.query("ft-ripple")],Pe.prototype,"ripple",void 0),je([o.query("input")],Pe.prototype,"input",void 0);var _e=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ue extends e.FtLitElement{constructor(){super(...arguments),this.name=""}render(){return i.html`
744
+ <slot @slotchange=${this.onSlotChange}
745
+ @change=${this.onChange}
746
+ @keydown=${this.onKeyDown}
747
+ @focusin=${this.onFocusIn}
748
+ ></slot>
749
+ `}onSlotChange(){this.radioButtons.forEach((t=>t.name=this.name))}onChange(t){t.stopPropagation(),this.radioButtons.forEach((e=>e.checked=t.detail.value===e.value)),this.dispatchEvent(new CustomEvent("change",{detail:t.detail.value}))}onKeyDown(t){switch(t.key){case"ArrowUp":case"ArrowLeft":{let e=this.findFtRadio(t),i=this.radioButtons.indexOf(e)-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select();break}case"ArrowDown":case"ArrowRight":{let e=this.radioButtons.indexOf(this.findFtRadio(t))+1;this.radioButtons[e>this.radioButtons.length-1?0:e].select();break}}}findFtRadio(t){return t.composedPath().find((t=>"FT-RADIO"===t.tagName))}onFocusIn(){setTimeout((()=>{var t;return null===(t=this.radioButtons.find((t=>t.checked)))||void 0===t?void 0:t.focus()}),10)}}Ue.elementDefinitions={},Ue.styles=i.css`
750
+ :host {
751
+ display: contents;
752
+ }
753
+ `,_e([o.property()],Ue.prototype,"name",void 0),_e([o.queryAssignedElements()],Ue.prototype,"radioButtons",void 0),e.customElement("ft-radio")(Pe),e.customElement("ft-radio-group")(Ue);var Ze=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const He={borderRadiusM:e.FtCssVariable.external(e.designSystemVariables.borderRadiusM,"Design system"),colorOutline:e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),colorOnSurface:e.FtCssVariable.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:e.FtCssVariable.external(e.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:e.FtCssVariable.external(St.fontFamily,"Body2 typography"),fontSize:e.FtCssVariable.external(St.fontSize,"Body2 typography"),fontWeight:e.FtCssVariable.external(St.fontWeight,"Body2 typography"),letterSpacing:e.FtCssVariable.external(St.letterSpacing,"Body2 typography"),lineHeight:e.FtCssVariable.external(St.lineHeight,"Body2 typography"),textTransform:e.FtCssVariable.external(St.textTransform,"Body2 typography")};class Ke extends e.FtLitElement{constructor(){super(...arguments),this.id="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1}get hasHiddenValues(){let t=this.limit;return null!=t&&t<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var t,e;return null!==(e=null===(t=this.container)||void 0===t?void 0:t.scrollHeight)&&void 0!==e?e:0}render(){let t=this.options;this.hideSelectedOptions&&(t=t.filter((t=>!t.selected))),this.filter&&(t=t.filter((t=>t.label.toLowerCase().includes(this.filter.toLowerCase()))));const e=t.slice(0,this.limit);return i.html`
867
754
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
868
- ${null==this.parent?null:e.html`
755
+ ${null==this.parent?null:i.html`
869
756
  <div tabindex="0"
870
757
  class="ft-filter-level--go-back"
871
758
  ?disabled=${this.disabled}
872
759
  @keyup=${this.goBackOnKeyPress}
873
760
  @click=${this.goBackOnClick}>
874
761
  <ft-ripple></ft-ripple>
875
- <mwc-icon>chevron_left</mwc-icon>
762
+ <ft-icon variant="material">chevron_left</ft-icon>
876
763
  <ft-typography variant="body2">${this.parent.label}</ft-typography>
877
764
  </div>
878
765
  `}
879
- ${o.repeat(i,(t=>t.value),(t=>{var i;return e.html`
766
+ ${s.repeat(e,(t=>t.value),(t=>{var e;return i.html`
880
767
  <div class="ft-filter-level--option" part="options">
881
768
  ${this.multivalued?this.buildMultiValuedOption(t):this.buildMonoValuedOption(t)}
882
- ${this.preventNavigation||t.selected||0===(null!==(i=t.subOptions)&&void 0!==i?i:[]).length?e.nothing:e.html`
769
+ ${this.preventNavigation||t.selected||0===(null!==(e=t.subOptions)&&void 0!==e?e:[]).length?i.nothing:i.html`
883
770
  <ft-button icon="chevron_right"
884
771
  label="${t.label}"
885
772
  ?disabled=${this.disabled}
@@ -888,7 +775,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
888
775
  `}
889
776
  </div>
890
777
  `}))}
891
- ${i.length<t.length?e.html`
778
+ ${e.length<t.length?i.html`
892
779
  <ft-button
893
780
  class="ft-filter-level--display-more"
894
781
  icon="expand_more"
@@ -896,162 +783,96 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
896
783
  @click=${this.displayMore}>
897
784
  ${this.moreValuesButtonLabel}
898
785
  </ft-button>
899
- `:e.nothing}
786
+ `:i.nothing}
900
787
  </div>
901
- `}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var i;return e.html`
902
- <mwc-formfield label="${t.label}">
903
- <mwc-checkbox
904
- reducedTouchTarget
905
- .checked=${t.selected}
906
- .disabled=${this.disabled}
907
- .indeterminate=${Jt(null!==(i=t.subOptions)&&void 0!==i?i:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
908
- @change=${e=>this.optionsChanged(e,t)}
909
- ></mwc-checkbox>
910
- </mwc-formfield>
911
- `}buildMonoValuedOption(t){return e.html`
912
- <mwc-formfield label="${t.label}">
913
- <mwc-radio
914
- reducedTouchTarget
915
- name="${this.id}"
916
- ?checked=${t.selected}
917
- ?disabled=${this.disabled}
918
- @click=${e=>this.optionsChanged(e,t)}
919
- ></mwc-radio>
920
- </mwc-formfield>
921
- `}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}};vi.elementDefinitions={"ft-button":Qe,"ft-ripple":Fe,"ft-typography":Xt,"mwc-checkbox":Ee,"mwc-formfield":ci,"mwc-icon":Re,"mwc-radio":mi},bi([i.property({type:String})],vi.prototype,"id",void 0),bi([i.property({type:Object})],vi.prototype,"parent",void 0),bi([i.property({type:Array})],vi.prototype,"options",void 0),bi([i.property({type:Boolean})],vi.prototype,"multivalued",void 0),bi([i.property({type:Boolean})],vi.prototype,"disabled",void 0),bi([i.property({type:Boolean})],vi.prototype,"hideSelectedOptions",void 0),bi([i.property({type:Boolean})],vi.prototype,"preventNavigation",void 0),bi([i.property({type:String})],vi.prototype,"filter",void 0),bi([i.property({type:String})],vi.prototype,"moreValuesButtonLabel",void 0),bi([i.property({type:Number})],vi.prototype,"displayedValuesLimit",void 0),bi([i.query(".ft-filter-level--container")],vi.prototype,"container",void 0),bi([i.state()],vi.prototype,"displayedPages",void 0),vi=bi([a.customElement("ft-filter-level")],vi);var xi=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};const yi={buttonsColor:a.FtCssVariable.extend("--ft-snap-scroll-buttons-color",a.designSystemVariables.colorPrimary),buttonsZIndex:a.FtCssVariable.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:a.FtCssVariable.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:a.FtCssVariable.external(a.designSystemVariables.colorSurface,"Design system")};class ki extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}let $i=class extends a.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new a.Debouncer(200),this.updateScrollDebouncer=new a.Debouncer(100)}getStyles(){return e.css`
922
- .ft-snap-scroll {
923
- box-sizing: border-box;
924
- position: relative;
925
- display: flex;
788
+ `}goBackOnKeyPress(t){"Enter"!==t.key&&" "!==t.key||this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(t){t.stopPropagation(),t.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){this.displayedPages++}buildMultiValuedOption(t){var e;return i.html`
789
+ <ft-checkbox name="${this.id}"
790
+ .checked=${t.selected}
791
+ .disabled=${this.disabled}
792
+ .indeterminate=${Xt(null!==(e=t.subOptions)&&void 0!==e?e:[],(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).some((t=>t.selected))}
793
+ @change=${e=>this.optionsChanged(e,t)}>
794
+ ${t.label}
795
+ </ft-checkbox>
796
+ `}buildMonoValuedOption(t){return i.html`
797
+ <ft-radio name="${this.id+Math.round(1e6*Math.random())}"
798
+ .checked=${t.selected}
799
+ ?disabled=${this.disabled}
800
+ @click=${e=>this.optionsChanged(e,t)}
801
+ @keyup=${e=>this.onRadioKeyUp(e,t)}
802
+ @change=${t=>t.stopPropagation()}>
926
803
 
927
- --ft-snap-scroll-transparent-color: transparent;
804
+ ${t.label}
805
+ </ft-radio>
806
+ `}onRadioKeyUp(t,e){e.selected&&" "===t.key&&this.optionsChanged(t,e)}optionsChanged(t,e){t.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:e}))}displayLevel(t){this.dispatchEvent(new CustomEvent("display-level",{detail:t}))}}Ke.elementDefinitions={"ft-button":Oe,"ft-ripple":ie,"ft-typography":Gt,"ft-checkbox":Le,"ft-icon":ye,"ft-radio":Pe},Ke.styles=[i.css`
807
+ .ft-filter-level--container {
808
+ display: flex;
809
+ flex-direction: column;
928
810
  }
929
811
 
930
- .ft-snap-scroll.ft-snap-scroll--safari-fix {
931
- /* Safari handles "transparent" as rgba(0,0,0,0) so it's ugly in linear-gradiant with default --ft-color-surface */
932
- /* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
933
- --ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
812
+ .ft-filter-level--container > * {
813
+ padding: 0 10px;
934
814
  }
935
815
 
936
- .ft-snap-scroll,
937
- .ft-snap-scroll--content {
816
+ .ft-filter-level--go-back {
817
+ flex-shrink: 0;
818
+ text-decoration: none;
819
+ position: relative;
820
+ border-radius: ${He.borderRadiusM};
938
821
  overflow: hidden;
939
- }
940
-
941
- .ft-snap-scroll--limit-size,
942
- .ft-snap-scroll--limit-size .ft-snap-scroll--content {
943
- width: 100%;
944
- height: 100%;
945
- }
946
-
947
- .ft-snap-scroll--content {
948
- flex-grow: 1;
949
- flex-shrink: 1;
950
- box-sizing: border-box;
951
- scroll-snap-align: start;
952
822
  display: flex;
953
- flex-wrap: nowrap;
954
- align-items: flex-start;
955
- justify-content: flex-start;
956
- gap: ${yi.gap};
957
- }
958
-
959
- .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
960
- display: none;
823
+ align-items: center;
824
+ padding: 4px 4px;
825
+ gap: 4px;
826
+ cursor: pointer;
827
+ color: ${He.colorOnSurface};
961
828
  }
962
829
 
963
- .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content {
964
- -ms-overflow-style: none;
965
- scrollbar-width: none;
830
+ .ft-filter-level--go-back:focus {
831
+ outline: none;
966
832
  }
967
833
 
968
- .ft-snap-scroll--content::slotted(*) {
834
+ .ft-filter-level--go-back ft-icon {
969
835
  flex-shrink: 0;
970
- flex-grow: 1;
971
- max-height: 100%;
972
- max-width: 100%;
973
- }
974
-
975
- .ft-snap-scroll--horizontal,
976
- .ft-snap-scroll--horizontal .ft-snap-scroll--content {
977
- width: 100%;
978
- }
979
-
980
- .ft-snap-scroll--vertical,
981
- .ft-snap-scroll--vertical .ft-snap-scroll--content {
982
- height: 100%;
983
- }
984
-
985
- .ft-snap-scroll--horizontal .ft-snap-scroll--content {
986
- flex-direction: row;
987
- overflow-x: auto;
988
836
  }
989
837
 
990
- .ft-snap-scroll--vertical .ft-snap-scroll--content {
991
- flex-direction: column;
992
- overflow-y: auto;
838
+ .ft-filter-level--go-back ft-typography {
839
+ display: block;
840
+ flex-grow: 1;
841
+ flex-shrink: 0;
993
842
  }
994
843
 
995
- .ft-snap-scroll--previous,
996
- .ft-snap-scroll--next {
997
- position: absolute;
844
+ .ft-filter-level--option {
998
845
  display: flex;
999
- z-index: ${yi.buttonsZIndex};
1000
- opacity: 1;
1001
- transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1002
- ${a.setVariable(Ke.backgroundColor,"transparent")};
1003
- ${a.setVariable(Ke.color,yi.buttonsColor)};
1004
- }
1005
-
1006
- .ft-snap-scroll--previous[hidden],
1007
- .ft-snap-scroll--next[hidden] {
1008
- z-index: -1;
1009
- opacity: 0;
1010
- }
1011
-
1012
- .ft-snap-scroll--horizontal .ft-snap-scroll--previous {
1013
- top: 0;
1014
- left: -1px;
1015
- bottom: 0;
1016
- background: linear-gradient(to right, ${yi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1017
- }
1018
-
1019
- .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1020
- top: -1px;
1021
- left: 0;
1022
- right: 0;
1023
- background: linear-gradient(to bottom, ${yi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
846
+ align-items: center;
847
+ max-width: 100%;
1024
848
  }
1025
849
 
1026
- .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1027
- top: 0;
1028
- right: -1px;
1029
- bottom: 0;
1030
- background: linear-gradient(to left, ${yi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
850
+ .ft-filter-level--option ft-button {
851
+ margin-right: -10px;
852
+ flex-shrink: 0;
1031
853
  }
1032
854
 
1033
- .ft-snap-scroll--vertical .ft-snap-scroll--next {
1034
- left: 0;
1035
- right: 0;
1036
- bottom: -1px;
1037
- background: linear-gradient(to top, ${yi.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
855
+ ft-button {
856
+ ${e.setVariable(we.color,He.colorOnSurface)};
1038
857
  }
1039
858
 
1040
- .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1041
- .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1042
- .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1043
- .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1044
- background-color: ${yi.colorSurface};
859
+ ft-radio, ft-checkbox {
860
+ flex-shrink: 1;
861
+ flex-grow: 1;
862
+ display: block;
863
+ max-width: calc(100% + 10px);
864
+ margin-left: -10px;
865
+ word-break: break-word;
1045
866
  }
1046
- `}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}getTemplate(){const t=r.classMap({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":a.isSafari}),i=this.controls&&this.withScroll;return e.html`
867
+ `],Ze([o.property({type:String})],Ke.prototype,"id",void 0),Ze([o.property({type:Object})],Ke.prototype,"parent",void 0),Ze([o.property({type:Array})],Ke.prototype,"options",void 0),Ze([o.property({type:Boolean})],Ke.prototype,"multivalued",void 0),Ze([o.property({type:Boolean})],Ke.prototype,"disabled",void 0),Ze([o.property({type:Boolean})],Ke.prototype,"hideSelectedOptions",void 0),Ze([o.property({type:Boolean})],Ke.prototype,"preventNavigation",void 0),Ze([o.property({type:String})],Ke.prototype,"filter",void 0),Ze([o.property({type:String})],Ke.prototype,"moreValuesButtonLabel",void 0),Ze([o.property({type:Number})],Ke.prototype,"displayedValuesLimit",void 0),Ze([o.query(".ft-filter-level--container")],Ke.prototype,"container",void 0),Ze([o.state()],Ke.prototype,"displayedPages",void 0);var qe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Ve={buttonsColor:e.FtCssVariable.extend("--ft-snap-scroll-buttons-color",e.designSystemVariables.colorPrimary),buttonsZIndex:e.FtCssVariable.create("--ft-snap-scroll-buttons-z-index","COLOR","1"),gap:e.FtCssVariable.create("--ft-snap-scroll-gap","SIZE","0"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system")};class We extends CustomEvent{constructor(t,e){super("current-element-change",{detail:{index:t,element:e}})}}class Ge extends e.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new e.Debouncer(200),this.updateScrollDebouncer=new e.Debouncer(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let e=this.elements[t];if(e){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(e[this.offsetAttribute]<i||e[this.offsetAttribute]+e[this.sizeAttribute]>t)&&this.scrollToElement(e)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=n.classMap({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":e.isSafari}),o=this.controls&&this.withScroll;return i.html`
1047
868
  <div part="container" class="${t}">
1048
869
  <ft-button
1049
870
  class="ft-snap-scroll--previous"
1050
871
  part="controls"
1051
872
  primary
1052
873
  icon="${this.horizontal?"arrow_back_ios_new":"expand_less"}"
1053
- ?hidden=${!i||this.startReached}
1054
- ?disabled=${!i||this.startReached}
874
+ ?hidden=${!o||this.startReached}
875
+ ?disabled=${!o||this.startReached}
1055
876
  @click=${this.previous}
1056
877
  ></ft-button>
1057
878
  <slot class="ft-snap-scroll--content"
@@ -1062,137 +883,155 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1062
883
  part="controls"
1063
884
  primary
1064
885
  icon="${this.horizontal?"arrow_forward_ios":"expand_more"}"
1065
- ?hidden=${!i||this.endReached}
1066
- ?disabled=${!i||this.endReached}
886
+ ?hidden=${!o||this.endReached}
887
+ ?disabled=${!o||this.endReached}
1067
888
  @click=${this.next}
1068
889
  ></ft-button>
1069
890
  </div>
1070
- `}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new ki(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}};$i.elementDefinitions={"ft-button":Qe},xi([i.property({type:Boolean})],$i.prototype,"horizontal",void 0),xi([i.property({type:Boolean})],$i.prototype,"hideScrollbar",void 0),xi([i.property({type:Boolean})],$i.prototype,"controls",void 0),xi([i.property({type:Boolean})],$i.prototype,"limitSize",void 0),xi([i.state()],$i.prototype,"elements",void 0),xi([i.state()],$i.prototype,"currentElement",void 0),xi([i.state()],$i.prototype,"withScroll",void 0),xi([i.state()],$i.prototype,"startReached",void 0),xi([i.state()],$i.prototype,"endReached",void 0),xi([i.query(".ft-snap-scroll--content")],$i.prototype,"contentSlot",void 0),$i=xi([a.customElement("ft-snap-scroll")],$i);var _i=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};let wi=class extends a.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}getTemplate(){return e.html`
1071
- <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1072
- `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};wi.elementDefinitions={},_i([i.property({type:String})],wi.prototype,"label",void 0),_i([i.property({type:Object,converter:t=>t})],wi.prototype,"value",void 0),_i([i.property({type:Boolean,reflect:!0})],wi.prototype,"selected",void 0),_i([i.property({type:Object})],wi.prototype,"subOptions",void 0),_i([i.query(".ft-filter-option--slot")],wi.prototype,"slotElement",void 0),wi=_i([a.customElement("ft-filter-option")],wi);var zi=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};const Si=a.FtCssVariable.external(a.designSystemVariables.colorOutline,"Design system"),Oi=a.FtCssVariable.external(a.designSystemVariables.colorOnSurface,"Design system"),Ci=a.FtCssVariable.external(a.designSystemVariables.colorOnSurfaceMedium,"Design system"),Bi=a.FtCssVariable.external(a.designSystemVariables.colorPrimary,"Design system"),Ei=a.FtCssVariable.external(a.designSystemVariables.colorSurface,"Design system"),Ti=a.FtCssVariable.external(a.designSystemVariables.transitionDuration,"Design system"),Ai=a.FtCssVariable.external(a.designSystemVariables.transitionTimingFunction,"Design system");class Fi extends CustomEvent{constructor(t){super("change",{detail:t})}}let Ii=class extends a.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new a.Debouncer(300),this.changeDebouncer=new a.Debouncer(10)}getStyles(){return[qt,e.css`
1073
- :host {
1074
- display: flex;
1075
- max-height: 100%;
1076
- max-width: 100%;
1077
- }
1078
-
1079
- .ft-filter--container {
1080
- flex-grow: 1;
1081
- display: flex;
1082
- flex-direction: column;
1083
- max-height: 100%;
1084
- max-width: 100%;
1085
- color: ${Oi};
1086
- background: ${Ei};
1087
- }
1088
-
1089
- .ft-filter--header {
1090
- display: flex;
1091
- flex-wrap: wrap;
1092
- gap: 4px;
1093
- flex-shrink: 0;
1094
- padding: 0 10px;
1095
- margin-bottom: 8px;
1096
- ${a.setVariable(Q.fontSize,"14px")};
1097
- }
1098
-
1099
- .ft-filter--header ft-button {
1100
- flex-shrink: 0;
1101
- margin-left: auto;
1102
- ${a.setVariable(Ke.iconSize,"18px")};
1103
- }
1104
-
1105
- .ft-filter--label {
1106
- display: block;
1107
- flex-shrink: 1;
1108
- flex-grow: 1;
1109
- word-break: break-word;
1110
- ${a.setVariable(Q.lineHeight,"22px")};
1111
- ${a.setVariable(Q.fontWeight,"bold")};
1112
- }
1113
-
1114
- .ft-filter--filter {
1115
- flex-shrink: 0;
1116
- display: flex;
1117
- margin: 0;
1118
- margin-bottom: 8px;
1119
- padding: 0 10px;
1120
- overflow: hidden;
1121
- height: 32px;
1122
- transition: height ${Ti} ${Ai},
1123
- margin ${Ti} ${Ai};
1124
- transition-delay: 500ms;
1125
- }
1126
-
1127
- .ft-filter--filter[hidden] {
1128
- height: 0;
1129
- margin-bottom: 0;
1130
- }
1131
-
1132
- input {
1133
- display: block;
1134
- width: 100%;
1135
- border-radius: 4px;
1136
- border: 1px solid ${Si};
1137
- padding: 4px;
1138
- background-color: ${Ei};
1139
- color: ${Ci};
1140
- outline-color: ${Bi};
1141
- }
1142
-
1143
- .ft-filter--values {
1144
- flex-grow: 1;
1145
- flex-shrink: 1;
1146
- max-width: 100%;
1147
- overflow-x: hidden;
1148
- overflow-y: auto;
1149
- }
1150
-
1151
- .ft-filter--separator {
1152
- border-top: 1px solid ${Si};
1153
- margin: 4px 10px;
1154
- }
1155
-
1156
- .ft-filter--levels-container {
1157
- position: relative;
1158
- overflow: hidden;
1159
- }
1160
-
1161
- .ft-filter--levels {
1162
- position: relative;
1163
- overflow: hidden;
1164
- }
1165
-
1166
- ft-filter-level {
1167
- width: 100%;
1168
- }
1169
-
1170
- .ft-filter--level-left {
1171
- height: 0;
1172
- }
1173
-
1174
- slot {
1175
- display: none;
1176
- }
1177
- `]}get flatOptions(){return Jt(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}getTemplate(){var t,i;const o=this.flatOptions.some((t=>t.selected));let r=this.withScroll||this.filter||null!==(i=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==i&&i;return e.html`
891
+ `}updated(t){var e;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(e=this.listenedContainer)||void 0===e||e.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new We(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const e=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<e&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var e,i;t&&(this.horizontal?null===(e=this.contentSlot)||void 0===e||e.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(i=this.contentSlot)||void 0===i||i.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,e;this.elements=null!==(e=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==e?e:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let e=0;e<this.elements.length;e++)(t<0||this.getDistanceFromStart(this.elements[e])<this.getDistanceFromStart(this.elements[t]))&&(t=e);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const e=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-e)}}Ge.elementDefinitions={"ft-button":Oe},Ge.styles=i.css`
892
+ .ft-snap-scroll {
893
+ box-sizing: border-box;
894
+ position: relative;
895
+ display: flex;
896
+
897
+ --ft-snap-scroll-transparent-color: transparent;
898
+ }
899
+
900
+ .ft-snap-scroll.ft-snap-scroll--safari-fix {
901
+ /* Safari handles "transparent" as rgba(0,0,0,0) so it's ugly in linear-gradiant with default --ft-color-surface */
902
+ /* this value should be overridden with --ft-color-surface with alpha set to 0 when needed */
903
+ --ft-snap-scroll-transparent-color: rgba(255, 255, 255, 0);
904
+ }
905
+
906
+ .ft-snap-scroll,
907
+ .ft-snap-scroll--content {
908
+ overflow: hidden;
909
+ }
910
+
911
+ .ft-snap-scroll--limit-size,
912
+ .ft-snap-scroll--limit-size .ft-snap-scroll--content {
913
+ width: 100%;
914
+ height: 100%;
915
+ }
916
+
917
+ .ft-snap-scroll--content {
918
+ flex-grow: 1;
919
+ flex-shrink: 1;
920
+ box-sizing: border-box;
921
+ scroll-snap-align: start;
922
+ display: flex;
923
+ flex-wrap: nowrap;
924
+ align-items: flex-start;
925
+ justify-content: flex-start;
926
+ gap: ${Ve.gap};
927
+ }
928
+
929
+ .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
930
+ display: none;
931
+ }
932
+
933
+ .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content {
934
+ -ms-overflow-style: none;
935
+ scrollbar-width: none;
936
+ }
937
+
938
+ .ft-snap-scroll--content::slotted(*) {
939
+ flex-shrink: 0;
940
+ flex-grow: 1;
941
+ max-height: 100%;
942
+ max-width: 100%;
943
+ }
944
+
945
+ .ft-snap-scroll--horizontal,
946
+ .ft-snap-scroll--horizontal .ft-snap-scroll--content {
947
+ width: 100%;
948
+ }
949
+
950
+ .ft-snap-scroll--vertical,
951
+ .ft-snap-scroll--vertical .ft-snap-scroll--content {
952
+ height: 100%;
953
+ }
954
+
955
+ .ft-snap-scroll--horizontal .ft-snap-scroll--content {
956
+ flex-direction: row;
957
+ overflow-x: auto;
958
+ }
959
+
960
+ .ft-snap-scroll--vertical .ft-snap-scroll--content {
961
+ flex-direction: column;
962
+ overflow-y: auto;
963
+ }
964
+
965
+ .ft-snap-scroll--previous,
966
+ .ft-snap-scroll--next {
967
+ position: absolute;
968
+ display: flex;
969
+ z-index: ${Ve.buttonsZIndex};
970
+ opacity: 1;
971
+ transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
972
+ ${e.setVariable(we.backgroundColor,"transparent")};
973
+ ${e.setVariable(we.color,Ve.buttonsColor)};
974
+ }
975
+
976
+ .ft-snap-scroll--previous[hidden],
977
+ .ft-snap-scroll--next[hidden] {
978
+ z-index: -1;
979
+ opacity: 0;
980
+ }
981
+
982
+ .ft-snap-scroll--horizontal .ft-snap-scroll--previous {
983
+ top: 0;
984
+ left: -1px;
985
+ bottom: 0;
986
+ background: linear-gradient(to right, ${Ve.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
987
+ }
988
+
989
+ .ft-snap-scroll--vertical .ft-snap-scroll--previous {
990
+ top: -1px;
991
+ left: 0;
992
+ right: 0;
993
+ background: linear-gradient(to bottom, ${Ve.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
994
+ }
995
+
996
+ .ft-snap-scroll--horizontal .ft-snap-scroll--next {
997
+ top: 0;
998
+ right: -1px;
999
+ bottom: 0;
1000
+ background: linear-gradient(to left, ${Ve.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1001
+ }
1002
+
1003
+ .ft-snap-scroll--vertical .ft-snap-scroll--next {
1004
+ left: 0;
1005
+ right: 0;
1006
+ bottom: -1px;
1007
+ background: linear-gradient(to top, ${Ve.colorSurface} 50%, var(--ft-snap-scroll-transparent-color));
1008
+ }
1009
+
1010
+ .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1011
+ .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1012
+ .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1013
+ .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1014
+ background-color: ${Ve.colorSurface};
1015
+ }
1016
+ `,qe([o.property({type:Boolean})],Ge.prototype,"horizontal",void 0),qe([o.property({type:Boolean})],Ge.prototype,"hideScrollbar",void 0),qe([o.property({type:Boolean})],Ge.prototype,"controls",void 0),qe([o.property({type:Boolean})],Ge.prototype,"limitSize",void 0),qe([o.state()],Ge.prototype,"elements",void 0),qe([o.state()],Ge.prototype,"currentElement",void 0),qe([o.state()],Ge.prototype,"withScroll",void 0),qe([o.state()],Ge.prototype,"startReached",void 0),qe([o.state()],Ge.prototype,"endReached",void 0),qe([o.query(".ft-snap-scroll--content")],Ge.prototype,"contentSlot",void 0),e.customElement("ft-snap-scroll")(Ge);var Xe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Je=e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),Ye=e.FtCssVariable.external(e.designSystemVariables.colorOnSurface,"Design system"),Qe=e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),ti=e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),ei=e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),ii=e.FtCssVariable.external(e.designSystemVariables.transitionDuration,"Design system"),oi=e.FtCssVariable.external(e.designSystemVariables.transitionTimingFunction,"Design system");class si extends CustomEvent{constructor(t){super("change",{detail:t})}}class ni extends e.FtLitElement{constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayedValuesLimit=0,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver((()=>this.updateScroll())),this.levelsScrollDebouncer=new e.Debouncer(300),this.changeDebouncer=new e.Debouncer(10)}get flatOptions(){return Xt(this.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]}))}render(){var t,e;const o=this.flatOptions.some((t=>t.selected));let s=this.withScroll||this.filter||null!==(e=null===(t=this.lastLevel)||void 0===t?void 0:t.hasHiddenValues)&&void 0!==e&&e;return i.html`
1178
1017
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1179
1018
  part="container">
1180
- ${this.label||o?e.html`
1019
+ ${this.label||o?i.html`
1181
1020
  <div class="ft-filter--header" part="header">
1182
1021
  <ft-typography class="ft-filter--label" variant="overline" part="label">${this.label}
1183
1022
  </ft-typography>
1184
- ${o?e.html`
1023
+ ${o?i.html`
1185
1024
  <ft-button icon="close" dense @click=${this.clear} part="clear-button">
1186
1025
  ${this.clearButtonLabel}
1187
1026
  </ft-button>
1188
1027
  `:null}
1189
1028
  </div>
1190
1029
  `:null}
1191
- <div class="ft-filter--filter" ?hidden=${!r}>
1030
+ <div class="ft-filter--filter" ?hidden=${!s}>
1192
1031
  <input type="search"
1193
1032
  part="input"
1194
1033
  class="ft-typography--caption"
1195
- ?disabled=${!r}
1034
+ ?disabled=${!s}
1196
1035
  placeholder="${this.filterPlaceHolder.replace("{0}",this.label)}"
1197
1036
  @keyup=${this.onFilterChange}>
1198
1037
  </div>
@@ -1203,14 +1042,14 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1203
1042
  @slotchange=${this.updateOptionsFromSlot}
1204
1043
  @option-change=${this.optionsChanged}></slot>
1205
1044
  </div>
1206
- `}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e)))}}contentAvailableCallback(t){var e,i;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(i=this.levelsContainer)||void 0===i||i.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300))}renderLevels(){const t=this.flatOptions,i=t.filter((t=>t.selected)),o=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,r=o<0?"ft-filter--level-center":"ft-filter--level-left";return e.html`
1207
- ${this.raiseSelectedOptions&&i.length>0?e.html`
1045
+ `}update(t){if(super.update(t),t.has("options")){const t=new Set(this.flatOptions.map((t=>t.value)));this.displayedLevels=this.displayedLevels.filter((e=>t.has(e)))}}contentAvailableCallback(t){var e,i;super.contentAvailableCallback(t),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),t.has("options")&&(this.updateScroll(),null===(e=this.levelsContainer)||void 0===e||e.scrollToIndex(this.displayedLevels.length)),t.has("slideIn")&&this.slideIn&&setTimeout((()=>{var t;null===(t=this.levelsContainer)||void 0===t||t.next(),this.slideIn=void 0}),0),t.has("slideOut")&&this.slideOut&&(null===(i=this.levelsContainer)||void 0===i||i.previous(),setTimeout((()=>{this.displayedLevels.pop(),this.slideOut=void 0}),300))}renderLevels(){const t=this.flatOptions,e=t.filter((t=>t.selected)),o=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,s=o<0?"ft-filter--level-center":"ft-filter--level-left";return i.html`
1046
+ ${this.raiseSelectedOptions&&e.length>0?i.html`
1208
1047
  <ft-filter-level
1209
1048
  id="${this.id}"
1210
1049
  ?multivalued=${this.multivalued}
1211
1050
  ?disabled=${this.disabled}
1212
1051
  preventNavigation
1213
- .options=${i}
1052
+ .options=${e}
1214
1053
  @change=${this.onChange}
1215
1054
  part="selected-values"
1216
1055
  ></ft-filter-level>
@@ -1219,10 +1058,10 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1219
1058
  <ft-snap-scroll horizontal hideScrollbar
1220
1059
  class="ft-filter--levels"
1221
1060
  @current-element-change=${t=>this.levelsScrollDebouncer.run((()=>{for(;t.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()}))}>
1222
- ${this.renderLevel(r,this.options)}
1223
- ${this.displayedLevels.map((e=>t.find((t=>t.value===e)))).map(((t,e)=>{var i;const r=(null==t?void 0:t.value)===this.slideIn||(null==t?void 0:t.value)===this.slideOut?"ft-filter--level-right":e===o?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(r,null!==(i=null==t?void 0:t.subOptions)&&void 0!==i?i:[],t)}))}
1061
+ ${this.renderLevel(s,this.options)}
1062
+ ${this.displayedLevels.map((e=>t.find((t=>t.value===e)))).map(((t,e)=>{var i;const s=(null==t?void 0:t.value)===this.slideIn||(null==t?void 0:t.value)===this.slideOut?"ft-filter--level-right":e===o?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(s,null!==(i=null==t?void 0:t.subOptions)&&void 0!==i?i:[],t)}))}
1224
1063
  </ft-snap-scroll>
1225
- `}renderLevel(t,i,o){return e.html`
1064
+ `}renderLevel(t,e,o){return i.html`
1226
1065
  <ft-filter-level
1227
1066
  class="${t}"
1228
1067
  id="${this.id}"
@@ -1232,95 +1071,129 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1232
1071
  ?disabled=${this.disabled||"ft-filter--level-center"!==t}
1233
1072
  ?hideSelectedOptions=${this.raiseSelectedOptions}
1234
1073
  .parent=${o}
1235
- .options=${i}
1074
+ .options=${e}
1236
1075
  .displayedValuesLimit=${this.displayedValuesLimit}
1237
1076
  @change=${this.onChange}
1238
1077
  @go-back=${this.goBack}
1239
1078
  @display-level=${this.onDisplayLevel}
1240
1079
  part="values"
1241
1080
  ></ft-filter-level>
1242
- `}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new Fi(e)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(t){const e=t.composedPath()[0];this.filter=e.value}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};var Ri,Di;Ii.elementDefinitions={"ft-button":Qe,"ft-filter-level":vi,"ft-snap-scroll":$i,"ft-typography":Xt},zi([i.property({type:String})],Ii.prototype,"id",void 0),zi([i.property({type:String})],Ii.prototype,"label",void 0),zi([i.property({type:String})],Ii.prototype,"filterPlaceHolder",void 0),zi([i.property({type:String})],Ii.prototype,"clearButtonLabel",void 0),zi([i.property({type:String})],Ii.prototype,"moreValuesButtonLabel",void 0),zi([a.jsonProperty([])],Ii.prototype,"options",void 0),zi([i.property({type:Boolean})],Ii.prototype,"multivalued",void 0),zi([i.property({type:Boolean})],Ii.prototype,"disabled",void 0),zi([i.property({type:Boolean})],Ii.prototype,"raiseSelectedOptions",void 0),zi([i.property({type:Number})],Ii.prototype,"displayedValuesLimit",void 0),zi([i.query(".ft-filter--slot")],Ii.prototype,"slotElement",void 0),zi([i.query(".ft-filter--container")],Ii.prototype,"container",void 0),zi([i.query(".ft-filter--values")],Ii.prototype,"valuesContainer",void 0),zi([i.query(".ft-filter--levels")],Ii.prototype,"levelsContainer",void 0),zi([i.query(".ft-filter--levels ft-filter-level:last-child")],Ii.prototype,"lastLevel",void 0),zi([i.queryAll(".ft-filter--levels ft-filter-level")],Ii.prototype,"levels",void 0),zi([i.state()],Ii.prototype,"withScroll",void 0),zi([i.state()],Ii.prototype,"filter",void 0),zi([i.state()],Ii.prototype,"slideIn",void 0),zi([i.state()],Ii.prototype,"slideOut",void 0),Ii=zi([a.customElement("ft-filter")],Ii),function(t){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.STAR_PLAIN="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN_PLAIN="&#xe94d;",t.THUMBS_DOWN="&#xe94e;",t.THUMBS_UP_PLAIN="&#xe94f;",t.THUMBS_UP="&#xe950;",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="&#xe900;",t.EYE="\f06e",t.DISC="&#xe901;",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="&#xe902;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe90f;",t.ADMIN_USERS="&#xe910;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe912;"}(Ri||(Ri={})),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;"}(Di||(Di={}));const Li=new Map([...["abw"].map((t=>[t,Di.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,Di.AUDIO])),...["avi"].map((t=>[t,Di.AVI])),...["chm","xhs"].map((t=>[t,Di.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,Di.CODE])),...["csv"].map((t=>[t,Di.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Di.DITA])),...["epub"].map((t=>[t,Di.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Di.EXCEL])),...["flac"].map((t=>[t,Di.FLAC])),...["gif"].map((t=>[t,Di.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Di.GZIP])),...["html","htm","xhtml"].map((t=>[t,Di.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,Di.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Di.JPEG])),...["json"].map((t=>[t,Di.JSON])),...["m4a","m4p"].map((t=>[t,Di.M4A])),...["mov","qt"].map((t=>[t,Di.MOV])),...["mp3"].map((t=>[t,Di.MP3])),...["mp4","m4v"].map((t=>[t,Di.MP4])),...["ogg","oga"].map((t=>[t,Di.OGG])),...["pdf","ps"].map((t=>[t,Di.PDF])),...["png"].map((t=>[t,Di.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Di.POWERPOINT])),...["rar"].map((t=>[t,Di.RAR])),...["stp"].map((t=>[t,Di.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Di.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,Di.VIDEO])),...["wav"].map((t=>[t,Di.WAV])),...["wma"].map((t=>[t,Di.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Di.WORD])),...["xml","xsl","rdf"].map((t=>[t,Di.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Di.YAML])),...["zip"].map((t=>[t,Di.ZIP]))]),ji=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"]]);var Mi,Pi=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format"}(Mi||(Mi={}));const Ni=a.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),Hi=a.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",a.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Ui=a.FtCssVariable.extend("--ft-icon-file-format-font-family",a.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Vi=e.css`
1243
- .ft-icon--fluid-topics {
1244
- font-family: ${Hi}, ft-icons, fticons, sans-serif;
1245
- font-size: ${Ni};
1246
- line-height: 1;
1247
- font-weight: normal;
1248
- text-transform: none;
1249
- font-style: normal;
1250
- font-variant: normal;
1251
- speak: none;
1252
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
1253
- text-rendering: auto;
1254
- -webkit-font-smoothing: antialiased;
1255
- -moz-osx-font-smoothing: grayscale;
1256
- }
1257
- `,Zi=e.css`
1258
- .ft-icon--file-format {
1259
- font-family: ${Ui}, ft-mime, sans-serif;
1260
- font-size: ${Ni};
1261
- line-height: 1;
1262
- font-weight: normal;
1263
- text-transform: none;
1264
- font-style: normal;
1265
- font-variant: normal;
1266
- speak: none;
1267
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
1268
- text-rendering: auto;
1269
- -webkit-font-smoothing: antialiased;
1270
- -moz-osx-font-smoothing: grayscale;
1271
- }
1272
- `;let qi=class extends a.FtLitElement{constructor(){super(...arguments),this.variant=Mi.fluid_topics}getStyles(){return[Vi,Zi,e.css`
1273
- :host, i.ft-icon {
1274
- display: inline-block;
1275
- width: ${Ni};
1276
- height: ${Ni};
1277
- text-align: center;
1278
- }
1279
- `]}getTemplate(){return e.html`
1280
- <slot @slotchange=${()=>this.requestUpdate()} hidden></slot>
1281
- <i class="ft-icon ${"ft-icon--"+this.variant}">${n.unsafeHTML(this.getIcon())}</i>
1282
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}getIcon(){var t,e;return this.variant===Mi.file_format?null!==(t=Di[this.textContent.toUpperCase()])&&void 0!==t?t:this.textContent:null!==(e=Ri[this.textContent.toUpperCase()])&&void 0!==e?e:this.textContent}};qi.elementDefinitions={},Pi([i.property()],qi.prototype,"variant",void 0),Pi([i.query("slot")],qi.prototype,"slottedContent",void 0),qi=Pi([a.customElement("ft-icon")],qi);var Gi=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};const Ki=a.FtCssVariable.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),Wi=a.FtCssVariable.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),Xi=a.FtCssVariable.external(a.designSystemVariables.colorOutline,"Design system");let Ji=class extends a.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}getStyles(){return e.css`
1283
- .ft-accordion-item {
1081
+ `}goBack(t){this.slideOut=t.detail.value}onDisplayLevel(t){this.displayedLevels.push(t.detail.value),this.slideIn=t.detail.value}clear(){if(this.flatOptions.forEach((t=>t.selected=!1)),this.displayedLevels.length>0){let t=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[t],this.slideOut=t}this.optionsChanged()}onChange(t){var e;t.stopPropagation();const i=this.flatOptions.find((e=>e.value===t.detail.value));i.selected=!i.selected;const o=t=>{var e;t!==i&&(t.selected=!1),null===(e=t.subOptions)||void 0===e||e.forEach(o)};this.multivalued?null===(e=i.subOptions)||void 0===e||e.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run((()=>{var t;const e=this.flatOptions.filter((t=>t.selected)).map((t=>t.value));this.dispatchEvent(new si(e)),this.requestUpdate(),null===(t=this.levels)||void 0===t||t.forEach((t=>t.requestUpdate()))}))}updateOptionsFromSlot(t){t.stopPropagation(),this.options=this.slotElement.assignedElements().map((t=>t)),this.optionsChanged()}onFilterChange(t){const e=t.composedPath()[0];this.filter=e.value}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}}ni.elementDefinitions={"ft-button":Oe,"ft-filter-level":Ke,"ft-snap-scroll":Ge,"ft-typography":Gt},ni.styles=[Kt,i.css`
1082
+ :host {
1083
+ display: flex;
1084
+ max-height: 100%;
1085
+ max-width: 100%;
1086
+ }
1087
+
1088
+ .ft-filter--container {
1089
+ flex-grow: 1;
1284
1090
  display: flex;
1285
1091
  flex-direction: column;
1092
+ max-height: 100%;
1093
+ max-width: 100%;
1094
+ color: ${Ye};
1095
+ background: ${ei};
1286
1096
  }
1287
1097
 
1288
- .ft-accordion-item--toggle {
1289
- flex-shrink: 0;
1290
- flex-grow: 0;
1291
- position: relative;
1098
+ .ft-filter--header {
1292
1099
  display: flex;
1293
- align-items: center;
1294
- cursor: pointer;
1295
- padding: ${Wi} ${Ki};
1296
- gap: calc(${Ki} / 2);
1297
- outline: none;
1100
+ flex-wrap: wrap;
1101
+ gap: 4px;
1102
+ flex-shrink: 0;
1103
+ padding: 0 10px;
1104
+ margin-bottom: 8px;
1105
+ ${e.setVariable(Y.fontSize,"14px")};
1298
1106
  }
1299
1107
 
1300
- .ft-accordion-item--label {
1301
- flex-grow: 1;
1302
- flex-shrink: 1;
1303
- display: block;
1108
+ .ft-filter--header ft-button {
1109
+ flex-shrink: 0;
1110
+ margin-left: auto;
1111
+ ${e.setVariable(we.iconSize,"18px")};
1304
1112
  }
1305
1113
 
1306
- .ft-accordion-item--content {
1307
- box-sizing: border-box;
1114
+ .ft-filter--label {
1115
+ display: block;
1308
1116
  flex-shrink: 1;
1309
1117
  flex-grow: 1;
1118
+ word-break: break-word;
1119
+ ${e.setVariable(Y.lineHeight,"22px")};
1120
+ ${e.setVariable(Y.fontWeight,"bold")};
1121
+ }
1122
+
1123
+ .ft-filter--filter {
1124
+ flex-shrink: 0;
1125
+ display: flex;
1126
+ margin: 0;
1127
+ margin-bottom: 8px;
1128
+ padding: 0 10px;
1310
1129
  overflow: hidden;
1130
+ height: 32px;
1131
+ transition: height ${ii} ${oi},
1132
+ margin ${ii} ${oi};
1133
+ transition-delay: 500ms;
1134
+ }
1135
+
1136
+ .ft-filter--filter[hidden] {
1311
1137
  height: 0;
1138
+ margin-bottom: 0;
1139
+ }
1140
+
1141
+ input {
1142
+ display: block;
1143
+ width: 100%;
1144
+ border-radius: 4px;
1145
+ border: 1px solid ${Je};
1146
+ padding: 4px;
1147
+ background-color: ${ei};
1148
+ color: ${Qe};
1149
+ outline-color: ${ti};
1150
+ }
1151
+
1152
+ .ft-filter--values {
1153
+ flex-grow: 1;
1154
+ flex-shrink: 1;
1155
+ max-width: 100%;
1156
+ overflow-x: hidden;
1157
+ overflow-y: auto;
1312
1158
  }
1313
1159
 
1314
- .ft-accordion-item--active .ft-accordion-item--content {
1315
- height: initial;
1316
- overflow: visible;
1317
- padding: ${Wi} ${Ki};
1160
+ .ft-filter--separator {
1161
+ border-top: 1px solid ${Je};
1162
+ margin: 4px 10px;
1318
1163
  }
1319
1164
 
1320
- .ft-accordion-item--separator {
1321
- border-bottom: 1px solid ${Xi};
1165
+ .ft-filter--levels-container {
1166
+ position: relative;
1167
+ overflow: hidden;
1168
+ }
1169
+
1170
+ .ft-filter--levels {
1171
+ position: relative;
1172
+ overflow: hidden;
1173
+ }
1174
+
1175
+ ft-filter-level {
1176
+ width: 100%;
1177
+ }
1178
+
1179
+ .ft-filter--level-left {
1180
+ height: 0;
1181
+ }
1182
+
1183
+ slot {
1184
+ display: none;
1322
1185
  }
1323
- `}getTemplate(){return e.html`
1186
+ `],Xe([o.property({type:String})],ni.prototype,"id",void 0),Xe([o.property({type:String})],ni.prototype,"label",void 0),Xe([o.property({type:String})],ni.prototype,"filterPlaceHolder",void 0),Xe([o.property({type:String})],ni.prototype,"clearButtonLabel",void 0),Xe([o.property({type:String})],ni.prototype,"moreValuesButtonLabel",void 0),Xe([e.jsonProperty([])],ni.prototype,"options",void 0),Xe([o.property({type:Boolean})],ni.prototype,"multivalued",void 0),Xe([o.property({type:Boolean})],ni.prototype,"disabled",void 0),Xe([o.property({type:Boolean})],ni.prototype,"raiseSelectedOptions",void 0),Xe([o.property({type:Number})],ni.prototype,"displayedValuesLimit",void 0),Xe([o.query(".ft-filter--slot")],ni.prototype,"slotElement",void 0),Xe([o.query(".ft-filter--container")],ni.prototype,"container",void 0),Xe([o.query(".ft-filter--values")],ni.prototype,"valuesContainer",void 0),Xe([o.query(".ft-filter--levels")],ni.prototype,"levelsContainer",void 0),Xe([o.query(".ft-filter--levels ft-filter-level:last-child")],ni.prototype,"lastLevel",void 0),Xe([o.queryAll(".ft-filter--levels ft-filter-level")],ni.prototype,"levels",void 0),Xe([o.state()],ni.prototype,"withScroll",void 0),Xe([o.state()],ni.prototype,"filter",void 0),Xe([o.state()],ni.prototype,"slideIn",void 0),Xe([o.state()],ni.prototype,"slideOut",void 0);var ri=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class li extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return i.html`
1187
+ <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1188
+ `}updateSubOptionsFromSlot(t){t.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map((t=>t))}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}li.elementDefinitions={},ri([o.property({type:String})],li.prototype,"label",void 0),ri([o.property({type:Object,converter:t=>t})],li.prototype,"value",void 0),ri([o.property({type:Boolean,reflect:!0})],li.prototype,"selected",void 0),ri([o.property({type:Object})],li.prototype,"subOptions",void 0),ri([o.query(".ft-filter-option--slot")],li.prototype,"slotElement",void 0),e.customElement("ft-filter")(ni),e.customElement("ft-filter-option")(li);var ai=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class ci extends e.FtLitElement{constructor(){super(...arguments),this.multi=!1}render(){return i.html`
1189
+ <div class="ft-accordion">
1190
+ <slot @activated=${this.onChange}></slot>
1191
+ </div>
1192
+ `}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}ci.elementDefinitions={},ci.styles=i.css`
1193
+ .ft-accordion {
1194
+ box-sizing: border-box;
1195
+ }
1196
+ `,ai([o.property({type:Boolean})],ci.prototype,"multi",void 0),ai([o.query("slot")],ci.prototype,"content",void 0);var hi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const pi=e.FtCssVariable.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),fi=e.FtCssVariable.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),di=e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system");class ui extends e.FtLitElement{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return i.html`
1324
1197
  <div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
1325
1198
  <div class="ft-accordion-item--toggle"
1326
1199
  part="toggle"
@@ -1328,34 +1201,68 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1328
1201
  @keydown=${this.onToggleKeyDown}
1329
1202
  tabindex="0">
1330
1203
  <ft-ripple part="toggle-ripple"></ft-ripple>
1331
- ${this.icon?e.html`
1332
- <mwc-icon>${this.icon}</mwc-icon>
1204
+ ${this.icon?i.html`
1205
+ <ft-icon variant="material">${this.icon}</ft-icon>
1333
1206
  `:null}
1334
- ${this.label?e.html`
1207
+ ${this.label?i.html`
1335
1208
  <ft-typography class="ft-accordion-item--label" variant="body1" part="label">${this.label}
1336
1209
  </ft-typography>
1337
- `:e.html`
1210
+ `:i.html`
1338
1211
  <slot class="ft-accordion-item--label" name="toggle" part="label"></slot>
1339
1212
  `}
1340
- <mwc-icon>${this.active?"expand_less":"expand_more"}</mwc-icon>
1213
+ <ft-icon variant="material">${this.active?"expand_less":"expand_more"}</ft-icon>
1341
1214
  </div>
1342
1215
  <div class="ft-accordion-item--content" part="content" @focusin=${()=>this.active=!0}>
1343
1216
  <slot></slot>
1344
1217
  </div>
1345
1218
  <div class="ft-accordion-item--separator" part="separator"></div>
1346
1219
  </div>
1347
- `}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}};Ji.elementDefinitions={"ft-ripple":Fe,"ft-typography":Xt,"mwc-icon":Re},Gi([i.property({type:String})],Ji.prototype,"icon",void 0),Gi([i.property({type:String})],Ji.prototype,"label",void 0),Gi([i.property({type:Boolean,reflect:!0})],Ji.prototype,"active",void 0),Ji=Gi([a.customElement("ft-accordion-item")],Ji);var Yi=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};let Qi=class extends a.FtLitElement{constructor(){super(...arguments),this.multi=!1}getStyles(){return e.css`
1348
- .ft-accordion {
1349
- box-sizing: border-box;
1350
- }
1351
- `}getTemplate(){return e.html`
1352
- <div class="ft-accordion">
1353
- <slot @activated=${this.onChange}></slot>
1354
- </div>
1355
- `}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}};Qi.elementDefinitions={},Yi([i.property({type:Boolean})],Qi.prototype,"multi",void 0),Yi([i.query("slot")],Qi.prototype,"content",void 0),Qi=Yi([a.customElement("ft-accordion")],Qi);var to=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};const eo=a.FtCssVariable.extend("--ft-chip-color",a.designSystemVariables.colorOnSurface),io={backgroundColor:a.FtCssVariable.extend("--ft-chip-background-color",a.designSystemVariables.colorSurface),color:eo,fontSize:a.FtCssVariable.extend("--ft-chip-font-size",zt.fontSize),iconSize:a.FtCssVariable.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:a.FtCssVariable.extend("--ft-chip-ripple-color",eo),horizontalPadding:a.FtCssVariable.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:a.FtCssVariable.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:a.FtCssVariable.external(a.designSystemVariables.colorOutline,"Design system"),opacityDisabled:a.FtCssVariable.external(a.designSystemVariables.colorOpacityDisabled,"Design system")},oo=a.FtCssVariable.extend("--ft-chip-highlighted-color",a.FtCssVariable.extend("--ft-chip-color",a.designSystemVariables.colorOnPrimary)),ro={backgroundColor:a.FtCssVariable.extend("--ft-chip-highlighted-background-color",a.FtCssVariable.extend("--ft-chip-background-color",a.designSystemVariables.colorPrimary)),color:oo,rippleColor:a.FtCssVariable.extend("--ft-chip-highlighted-ripple-color",oo)},ao=a.FtCssVariable.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),co=a.FtCssVariable.create("--ft-chip-dense-vertical-padding","SIZE","4px");class no extends CustomEvent{constructor(){super("icon-click")}}let so=class extends a.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.icon=void 0,this.trailingIcon=!1}getStyles(){return[a.noTextSelect,e.css`
1220
+ `}update(t){super.update(t),t.has("active")&&this.active&&this.dispatchEvent(new Event("activated",{composed:!0,bubbles:!0}))}onToggleKeyDown(t){"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.active=!this.active)}}ui.elementDefinitions={"ft-ripple":ie,"ft-typography":Gt,"ft-icon":ye},ui.styles=i.css`
1221
+ .ft-accordion-item {
1222
+ display: flex;
1223
+ flex-direction: column;
1224
+ }
1225
+
1226
+ .ft-accordion-item--toggle {
1227
+ flex-shrink: 0;
1228
+ flex-grow: 0;
1229
+ position: relative;
1230
+ display: flex;
1231
+ align-items: center;
1232
+ cursor: pointer;
1233
+ padding: ${fi} ${pi};
1234
+ gap: calc(${pi} / 2);
1235
+ outline: none;
1236
+ }
1237
+
1238
+ .ft-accordion-item--label {
1239
+ flex-grow: 1;
1240
+ flex-shrink: 1;
1241
+ display: block;
1242
+ }
1243
+
1244
+ .ft-accordion-item--content {
1245
+ box-sizing: border-box;
1246
+ flex-shrink: 1;
1247
+ flex-grow: 1;
1248
+ overflow: hidden;
1249
+ height: 0;
1250
+ }
1251
+
1252
+ .ft-accordion-item--active .ft-accordion-item--content {
1253
+ height: initial;
1254
+ overflow: visible;
1255
+ padding: ${fi} ${pi};
1256
+ }
1257
+
1258
+ .ft-accordion-item--separator {
1259
+ border-bottom: 1px solid ${di};
1260
+ }
1261
+ `,hi([o.property({type:String})],ui.prototype,"icon",void 0),hi([o.property({type:String})],ui.prototype,"label",void 0),hi([o.property({type:Boolean,reflect:!0})],ui.prototype,"active",void 0),e.customElement("ft-accordion")(ci),e.customElement("ft-accordion-item")(ui);var bi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const vi=e.FtCssVariable.extend("--ft-chip-color",e.designSystemVariables.colorOnSurface),gi={backgroundColor:e.FtCssVariable.extend("--ft-chip-background-color",e.designSystemVariables.colorSurface),color:vi,fontSize:e.FtCssVariable.extend("--ft-chip-font-size",St.fontSize),iconSize:e.FtCssVariable.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:e.FtCssVariable.extend("--ft-chip-ripple-color",vi),horizontalPadding:e.FtCssVariable.create("--ft-chip-horizontal-padding","SIZE","6px"),verticalPadding:e.FtCssVariable.create("--ft-chip-vertical-padding","SIZE","6px"),colorOutline:e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),opacityDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},xi=e.FtCssVariable.extend("--ft-chip-highlighted-color",e.FtCssVariable.extend("--ft-chip-color",e.designSystemVariables.colorOnPrimary)),yi={backgroundColor:e.FtCssVariable.extend("--ft-chip-highlighted-background-color",e.FtCssVariable.extend("--ft-chip-background-color",e.designSystemVariables.colorPrimary)),color:xi,rippleColor:e.FtCssVariable.extend("--ft-chip-highlighted-ripple-color",xi)},mi=e.FtCssVariable.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),$i=e.FtCssVariable.create("--ft-chip-dense-vertical-padding","SIZE","4px");class wi extends CustomEvent{constructor(){super("icon-click")}}class ki extends e.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.icon=void 0,this.trailingIcon=!1}static get styles(){return[e.noTextSelect,i.css`
1356
1262
  :host {
1357
1263
  display: inline-block;
1358
1264
  max-width: 100%;
1265
+ pointer-events: none;
1359
1266
  }
1360
1267
 
1361
1268
  .ft-chip {
@@ -1366,28 +1273,29 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1366
1273
  width: 100%;
1367
1274
  overflow: hidden;
1368
1275
  box-sizing: border-box;
1276
+ pointer-events: auto;
1369
1277
 
1370
- --ft-chip-internal-font-size: ${io.fontSize};
1278
+ --ft-chip-internal-font-size: ${gi.fontSize};
1371
1279
  --ft-chip-internal-line-height: max(20px, calc(var(--ft-chip-internal-font-size) + 2px));
1372
- --mdc-icon-size: ${io.iconSize};
1373
- --ft-chip-internal-vertical-padding: ${io.verticalPadding};
1374
- --ft-chip-internal-horizontal-padding: ${io.horizontalPadding};
1280
+ ${e.setVariable(xe.size,gi.iconSize)};
1281
+ --ft-chip-internal-vertical-padding: ${gi.verticalPadding};
1282
+ --ft-chip-internal-horizontal-padding: ${gi.horizontalPadding};
1375
1283
  --ft-chip-internal-icon-padding: 3px;
1376
- --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), var(--mdc-icon-size));
1284
+ --ft-chip-internal-content-height: max(var(--ft-chip-internal-line-height), ${gi.iconSize});
1377
1285
 
1378
- border: 1px solid ${io.colorOutline};
1379
- color: ${io.color};
1380
- ${a.setVariable(Ae.color,io.rippleColor)};
1286
+ border: 1px solid ${gi.colorOutline};
1287
+ color: ${gi.color};
1288
+ ${e.setVariable(ee.color,gi.rippleColor)};
1381
1289
  border-radius: calc(var(--ft-chip-internal-content-height) / 2 + var(--ft-chip-internal-vertical-padding));
1382
1290
  padding: calc(var(--ft-chip-internal-vertical-padding) - 1px) calc(var(--ft-chip-internal-horizontal-padding) - 1px);
1383
- background-color: ${io.backgroundColor};
1291
+ background-color: ${gi.backgroundColor};
1384
1292
  line-height: var(--ft-chip-internal-content-height);
1385
1293
  }
1386
1294
 
1387
1295
  .ft-chip--dense {
1388
1296
  --ft-chip-internal-icon-padding: 3px;
1389
- --ft-chip-internal-vertical-padding: ${co};
1390
- --ft-chip-internal-horizontal-padding: ${ao};
1297
+ --ft-chip-internal-vertical-padding: ${$i};
1298
+ --ft-chip-internal-horizontal-padding: ${mi};
1391
1299
  --ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
1392
1300
  }
1393
1301
 
@@ -1399,15 +1307,15 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1399
1307
  cursor: default;
1400
1308
  pointer-events: none;
1401
1309
  filter: grayscale(1);
1402
- opacity: ${io.opacityDisabled};
1310
+ opacity: ${gi.opacityDisabled};
1403
1311
  }
1404
1312
 
1405
1313
  .ft-chip--highlighted {
1406
1314
  border: none;
1407
1315
  padding: var(--ft-chip-internal-vertical-padding) var(--ft-chip-internal-horizontal-padding);
1408
- background-color: ${ro.backgroundColor};
1409
- ${a.setVariable(Ae.color,ro.rippleColor)};
1410
- color: ${ro.color};
1316
+ background-color: ${yi.backgroundColor};
1317
+ ${e.setVariable(ee.color,yi.rippleColor)};
1318
+ color: ${yi.color};
1411
1319
  }
1412
1320
 
1413
1321
  .ft-chip--clickable {
@@ -1436,8 +1344,8 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1436
1344
  vertical-align: bottom;
1437
1345
  display: block;
1438
1346
  margin: 0 var(--ft-chip-internal-horizontal-padding);
1439
- ${a.setVariable(zt.fontSize,"var(--ft-chip-internal-font-size)")};
1440
- ${a.setVariable(zt.lineHeight,"var(--ft-chip-internal-content-height)")};
1347
+ ${e.setVariable(St.fontSize,"var(--ft-chip-internal-font-size)")};
1348
+ ${e.setVariable(St.lineHeight,"var(--ft-chip-internal-content-height)")};
1441
1349
  }
1442
1350
 
1443
1351
  .ft-chip--safari-fix .ft-chip--label {
@@ -1472,8 +1380,8 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1472
1380
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-container {
1473
1381
  order: -1;
1474
1382
  }
1475
- `]}getTemplate(){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":a.isSafari};return e.html`
1476
- <div class="${r.classMap(t)}"
1383
+ `]}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":e.isSafari};return i.html`
1384
+ <div class="${n.classMap(t)}"
1477
1385
  aria-label="${this.getLabel()}"
1478
1386
  tabindex="${this.interactionsOnChip?0:-1}"
1479
1387
  @keyup=${this.onKeyUp}>
@@ -1483,294 +1391,294 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1483
1391
  </ft-typography>
1484
1392
  ${this.internalIcon?this.renderIcon():null}
1485
1393
  </div>
1486
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return e.html`
1394
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return i.html`
1487
1395
  <div class="ft-chip--icon-container ft-no-text-select ${this.interactionsOnIcon?"ft-chip--clickable":""}"
1488
1396
  tabindex="${this.interactionsOnIcon?0:-1}"
1489
1397
  @click=${this.onIconClick}
1490
1398
  @keyup=${this.onIconKeyUp}>
1491
1399
  <ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
1492
- <mwc-icon>${this.internalIcon}</mwc-icon>
1400
+ <ft-icon variant="material">${this.internalIcon}</ft-icon>
1493
1401
  </div>
1494
- `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new no))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new no))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}};so.elementDefinitions={"ft-ripple":Fe,"ft-typography":Xt,"mwc-icon":Re},to([i.property({type:Boolean})],so.prototype,"highlighted",void 0),to([i.property({type:Boolean})],so.prototype,"removable",void 0),to([i.property({type:Boolean})],so.prototype,"disabled",void 0),to([i.property({type:Boolean})],so.prototype,"clickable",void 0),to([i.property({type:Boolean})],so.prototype,"iconClickable",void 0),to([i.property({type:Boolean})],so.prototype,"dense",void 0),to([i.property({type:Boolean})],so.prototype,"multiLine",void 0),to([i.property({type:String})],so.prototype,"label",void 0),to([i.property({type:String})],so.prototype,"icon",void 0),to([i.property({type:Boolean})],so.prototype,"trailingIcon",void 0),to([i.query("ft-typography slot")],so.prototype,"slottedContent",void 0),so=to([a.customElement("ft-chip")],so);var lo=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};const po={fontSize:a.FtCssVariable.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:a.FtCssVariable.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:a.FtCssVariable.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:a.FtCssVariable.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:a.FtCssVariable.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:a.FtCssVariable.extend("--ft-input-label-border-color",a.designSystemVariables.colorOutline),textColor:a.FtCssVariable.extend("--ft-input-label-text-color",a.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:a.FtCssVariable.extend("--ft-input-label-disabled-text-color",a.designSystemVariables.colorOnSurfaceDisabled),colorSurface:a.FtCssVariable.external(a.designSystemVariables.colorSurface,"Design system"),borderRadiusS:a.FtCssVariable.external(a.designSystemVariables.borderRadiusS,"Design system")};let ho=class extends a.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1}getStyles(){return[qt,e.css`
1495
- .ft-input-label {
1496
- position: absolute;
1497
- inset: 0;
1498
- display: flex;
1499
- }
1500
-
1501
- .ft-input-label {
1502
- border-color: ${po.borderColor};
1503
- }
1504
-
1505
- .ft-input-label:before,
1506
- .ft-input-label:after {
1507
- content: "";
1508
- display: flex;
1509
- border-bottom-width: 1px;
1510
- border-bottom-style: solid;
1511
- border-color: inherit;
1512
- }
1513
-
1514
- .ft-input-label:before {
1515
- width: ${po.horizontalSpacing};
1516
- flex-shrink: 0;
1517
- }
1518
-
1519
- .ft-input-label:after {
1520
- flex-grow: 1;
1521
- flex-shrink: 1;
1522
- }
1523
-
1524
- .ft-input-label--text {
1525
- display: flex;
1526
- flex-shrink: 1;
1527
- position: relative;
1528
- border-bottom-width: 1px;
1529
- border-bottom-style: solid;
1530
- border-color: inherit;
1531
- color: ${po.textColor};
1532
- transition: font-size 250ms, line-height 250ms, color 250ms;
1533
- ${a.setVariable(St.fontSize,po.fontSize)};
1534
- ${a.setVariable(St.lineHeight,po.fontSize)};
1535
- }
1536
-
1537
- .ft-input-label--disabled .ft-input-label--text {
1538
- color: ${po.disabledTextColor};
1539
- }
1540
-
1541
- .ft-input-label--hidden-text {
1542
- padding: 0 4px;
1543
- opacity: 0;
1544
- }
1545
-
1546
- .ft-input-label--floating-text {
1547
- position: absolute;
1548
- top: calc(50% - var(--ft-typography-caption-line-height) / 2);
1549
- transition: top 250ms;
1550
- width: calc(100% - 8px);
1551
- overflow: hidden;
1552
- white-space: nowrap;
1553
- text-overflow: ellipsis;
1554
- padding: ${po.verticalSpacing} 4px;
1555
- margin: calc(${po.verticalSpacing} * -1) 0;
1556
- }
1557
-
1558
- .ft-input-label--raised .ft-input-label--text {
1559
- ${a.setVariable(St.fontSize,po.raisedFontSize)};
1560
- ${a.setVariable(St.lineHeight,po.raisedFontSize)};
1561
- }
1562
-
1563
- .ft-input-label--raised .ft-input-label--floating-text {
1564
- top: ${po.verticalSpacing};
1565
- }
1566
-
1567
- .ft-input-label--outlined .ft-input-label--text,
1568
- .ft-input-label--outlined:before,
1569
- .ft-input-label--outlined:after {
1570
- border-top-width: 1px;
1571
- border-top-style: solid;
1572
- }
1573
-
1574
- .ft-input-label--outlined:before {
1575
- border-left-width: 1px;
1576
- border-left-style: solid;
1577
- border-radius: ${po.borderRadiusS} 0 0 ${po.borderRadiusS};
1578
- }
1579
-
1580
- .ft-input-label--outlined:after {
1581
- border-right-width: 1px;
1582
- border-right-style: solid;
1583
- border-radius: 0 ${po.borderRadiusS} ${po.borderRadiusS} 0;
1584
- }
1585
-
1586
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1587
- padding: 2px 4px;
1588
- z-index: ${po.raisedZIndex};
1589
- background-color: ${po.colorSurface};
1590
- border-radius: ${po.borderRadiusS};
1591
- top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1592
- }
1593
-
1594
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1595
- border-top: none;
1596
- }
1597
- `]}getTemplate(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled};return e.html`
1598
- <div class="${r.classMap(t)}">
1599
- ${this.text?e.html`
1402
+ `}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new wi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new wi))}getLabel(){return this.label||this.textContent}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}ki.elementDefinitions={"ft-ripple":ie,"ft-typography":Gt,"ft-icon":ye},bi([o.property({type:Boolean})],ki.prototype,"highlighted",void 0),bi([o.property({type:Boolean})],ki.prototype,"removable",void 0),bi([o.property({type:Boolean})],ki.prototype,"disabled",void 0),bi([o.property({type:Boolean})],ki.prototype,"clickable",void 0),bi([o.property({type:Boolean})],ki.prototype,"iconClickable",void 0),bi([o.property({type:Boolean})],ki.prototype,"dense",void 0),bi([o.property({type:Boolean})],ki.prototype,"multiLine",void 0),bi([o.property({type:String})],ki.prototype,"label",void 0),bi([o.property({type:String})],ki.prototype,"icon",void 0),bi([o.property({type:Boolean})],ki.prototype,"trailingIcon",void 0),bi([o.query("ft-typography slot")],ki.prototype,"slottedContent",void 0),e.customElement("ft-chip")(ki);var Si=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const zi={fontSize:e.FtCssVariable.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariable.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariable.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariable.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariable.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariable.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariable.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariable.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system")};class Oi extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled};return i.html`
1403
+ <div class="${n.classMap(t)}">
1404
+ ${this.text?i.html`
1600
1405
  <div class="ft-input-label--text ft-typography--caption">
1601
1406
  <span class="ft-input-label--floating-text">${this.text}</span>
1602
1407
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1603
1408
  </div>
1604
1409
  `:null}
1605
1410
  </div>
1606
- `}};ho.elementDefinitions={},lo([i.property({type:String})],ho.prototype,"text",void 0),lo([i.property({type:Boolean})],ho.prototype,"raised",void 0),lo([i.property({type:Boolean})],ho.prototype,"outlined",void 0),lo([i.property({type:Boolean})],ho.prototype,"disabled",void 0),ho=lo([a.customElement("ft-input-label")],ho);var fo=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};let uo=class extends a.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}getTemplate(){return e.html``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};uo.elementDefinitions={},fo([i.property({type:String})],uo.prototype,"label",void 0),fo([i.property({type:Object,converter:t=>t})],uo.prototype,"value",void 0),fo([i.property({type:Boolean,reflect:!0})],uo.prototype,"selected",void 0),uo=fo([a.customElement("ft-select-option")],uo);const mo={labelSize:a.FtCssVariable.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:a.FtCssVariable.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:a.FtCssVariable.create("--ft-select-vertical-spacing","SIZE","4px"),selectedOptionColor:a.FtCssVariable.extend("--ft-select-selected-option-color",a.designSystemVariables.colorOnSurface),helperColor:a.FtCssVariable.extend("--ft-select-helper-color",a.designSystemVariables.colorOnSurfaceMedium),optionsColor:a.FtCssVariable.extend("--ft-select-options-color",a.designSystemVariables.colorOnSurface),optionsZIndex:a.FtCssVariable.create("--ft-select-options-z-index","NUMBER","2"),colorSurface:a.FtCssVariable.external(a.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:a.FtCssVariable.external(a.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:a.FtCssVariable.external(a.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:a.FtCssVariable.external(a.designSystemVariables.borderRadiusS,"Design system"),elevation02:a.FtCssVariable.external(a.designSystemVariables.elevation02,"Design system")};let bo=class extends a.FtLitElement{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}getStyles(){return[Zt,qt,e.css`
1607
- *:focus {
1608
- outline: none;
1609
- }
1610
-
1611
- .ft-select {
1612
- display: flex;
1613
- flex-direction: column;
1614
- align-items: stretch;
1615
- }
1616
-
1617
- .ft-select--main-panel {
1618
- position: relative;
1619
- display: flex;
1620
- height: calc(4 * ${mo.verticalSpacing} + ${mo.labelSize} + ${mo.selectedOptionSize});
1621
- }
1622
-
1623
- .ft-select--input-panel {
1624
- flex-grow: 1;
1625
- position: relative;
1626
- display: flex;
1627
- align-items: center;
1628
- overflow: hidden;
1629
- padding-left: 16px;
1630
- padding-right: 8px;
1631
- gap: 8px;
1632
- color: ${mo.selectedOptionColor};
1633
- ${a.setVariable(Ae.color,mo.selectedOptionColor)};
1634
- }
1635
-
1636
- .ft-select--input-panel,
1637
- .ft-select--option {
1638
- ${a.setVariable(Ae.opacityContentOnSurfaceHover,"0.08")};
1639
- ${a.setVariable(Ae.opacityContentOnSurfaceDragged,"0.04")};
1640
- }
1411
+ `}}Oi.elementDefinitions={},Oi.styles=[Kt,i.css`
1412
+ .ft-input-label {
1413
+ position: absolute;
1414
+ inset: 0;
1415
+ display: flex;
1416
+ }
1641
1417
 
1642
- .ft-select--disabled .ft-select--input-panel,
1643
- .ft-select--disabled .ft-select--option {
1644
- color: ${mo.colorOnSurfaceDisabled};
1645
- }
1418
+ .ft-input-label {
1419
+ border-color: ${zi.borderColor};
1420
+ }
1646
1421
 
1647
- .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
1648
- .ft-select:not(.ft-select--disabled) .ft-select--option {
1649
- cursor: pointer;
1650
- }
1422
+ .ft-input-label:before,
1423
+ .ft-input-label:after {
1424
+ content: "";
1425
+ display: flex;
1426
+ border-bottom-width: 1px;
1427
+ border-bottom-style: solid;
1428
+ border-color: inherit;
1429
+ }
1651
1430
 
1652
- ft-input-label {
1653
- ${a.setVariable(po.fontSize,mo.selectedOptionSize)};
1654
- ${a.setVariable(po.raisedFontSize,mo.labelSize)};
1655
- ${a.setVariable(po.verticalSpacing,mo.verticalSpacing)};
1656
- }
1431
+ .ft-input-label:before {
1432
+ width: ${zi.horizontalSpacing};
1433
+ flex-shrink: 0;
1434
+ }
1657
1435
 
1658
- .ft-select:not(.ft-select--disabled):focus-within mwc-icon {
1659
- color: ${mo.colorPrimary};
1660
- }
1436
+ .ft-input-label:after {
1437
+ flex-grow: 1;
1438
+ flex-shrink: 1;
1439
+ }
1661
1440
 
1662
- .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
1663
- ${a.setVariable(po.borderColor,mo.colorPrimary)};
1664
- ${a.setVariable(po.textColor,mo.colorPrimary)};
1665
- }
1441
+ .ft-input-label--text {
1442
+ display: flex;
1443
+ flex-shrink: 1;
1444
+ position: relative;
1445
+ border-bottom-width: 1px;
1446
+ border-bottom-style: solid;
1447
+ border-color: inherit;
1448
+ color: ${zi.textColor};
1449
+ transition: font-size 250ms, line-height 250ms, color 250ms;
1450
+ ${e.setVariable(zt.fontSize,zi.fontSize)};
1451
+ ${e.setVariable(zt.lineHeight,zi.fontSize)};
1452
+ }
1666
1453
 
1667
- .ft-select--selected-option {
1668
- display: block;
1669
- flex-grow: 1;
1670
- flex-shrink: 1;
1671
- overflow: hidden;
1672
- white-space: nowrap;
1673
- text-overflow: ellipsis;
1674
- ${a.setVariable(wt.fontSize,mo.selectedOptionSize)};
1675
- ${a.setVariable(wt.lineHeight,mo.selectedOptionSize)};
1676
- }
1454
+ .ft-input-label--disabled .ft-input-label--text {
1455
+ color: ${zi.disabledTextColor};
1456
+ }
1677
1457
 
1678
- mwc-icon {
1679
- flex-shrink: 0;
1680
- }
1458
+ .ft-input-label--hidden-text {
1459
+ padding: 0 4px;
1460
+ opacity: 0;
1461
+ }
1681
1462
 
1682
- slot {
1683
- display: none;
1684
- }
1463
+ .ft-input-label--floating-text {
1464
+ position: absolute;
1465
+ top: calc(50% - var(--ft-typography-caption-line-height) / 2);
1466
+ transition: top 250ms;
1467
+ width: calc(100% - 8px);
1468
+ overflow: hidden;
1469
+ white-space: nowrap;
1470
+ text-overflow: ellipsis;
1471
+ padding: ${zi.verticalSpacing} 4px;
1472
+ margin: calc(${zi.verticalSpacing} * -1) 0;
1473
+ }
1685
1474
 
1686
- .ft-select--filled .ft-select--input-panel {
1687
- border-radius: ${mo.borderRadiusS} ${mo.borderRadiusS} 0 0;
1688
- }
1475
+ .ft-input-label--raised .ft-input-label--text {
1476
+ ${e.setVariable(zt.fontSize,zi.raisedFontSize)};
1477
+ ${e.setVariable(zt.lineHeight,zi.raisedFontSize)};
1478
+ }
1689
1479
 
1690
- .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
1691
- align-self: stretch;
1692
- padding-top: calc(${mo.labelSize} + 2 * ${mo.verticalSpacing});
1693
- }
1480
+ .ft-input-label--raised .ft-input-label--floating-text {
1481
+ top: ${zi.verticalSpacing};
1482
+ }
1694
1483
 
1695
- .ft-select--outlined .ft-select--input-panel {
1696
- border-radius: ${mo.borderRadiusS};
1697
- }
1484
+ .ft-input-label--outlined .ft-input-label--text,
1485
+ .ft-input-label--outlined:before,
1486
+ .ft-input-label--outlined:after {
1487
+ border-top-width: 1px;
1488
+ border-top-style: solid;
1489
+ }
1698
1490
 
1699
- .ft-select--options {
1700
- display: none;
1701
- position: absolute;
1702
- top: 100%;
1703
- left: 0;
1704
- right: 0;
1705
- color: ${mo.optionsColor};
1706
- background: ${mo.colorSurface};
1707
- z-index: ${mo.optionsZIndex};
1708
- box-shadow: ${mo.elevation02};
1709
- }
1491
+ .ft-input-label--outlined:before {
1492
+ border-left-width: 1px;
1493
+ border-left-style: solid;
1494
+ border-radius: ${zi.borderRadiusS} 0 0 ${zi.borderRadiusS};
1495
+ }
1710
1496
 
1711
- .ft-select--options-displayed .ft-select--options {
1712
- display: block;
1713
- }
1497
+ .ft-input-label--outlined:after {
1498
+ border-right-width: 1px;
1499
+ border-right-style: solid;
1500
+ border-radius: 0 ${zi.borderRadiusS} ${zi.borderRadiusS} 0;
1501
+ }
1714
1502
 
1715
- .ft-select--option {
1716
- position: relative;
1717
- padding: 4px 16px;
1718
- min-height: 32px;
1719
- display: flex;
1720
- align-items: center;
1721
- }
1503
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
1504
+ padding: 2px 4px;
1505
+ z-index: ${zi.raisedZIndex};
1506
+ background-color: ${zi.colorSurface};
1507
+ border-radius: ${zi.borderRadiusS};
1508
+ top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
1509
+ }
1722
1510
 
1723
- .ft-select--helper-text {
1724
- padding: 0 12px 0 16px;
1725
- color: ${mo.helperColor};
1726
- }
1727
- `]}getTemplate(){var t,i,a,c,n;let s=!this.disabled&&this.optionsDisplayed&&this.hasOptions,l=this.disabled||!this.hasOptions;const d=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(a=null===(i=this.selectedOption)||void 0===i?void 0:i.label)&&void 0!==a?a:"").length>0,p={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":l,"ft-select--options-displayed":s,"ft-select--has-option-selected":d,"ft-select--no-label":!this.label};return e.html`
1728
- <div class="${r.classMap(p)}" part="container">
1511
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
1512
+ border-top: none;
1513
+ }
1514
+ `],Si([o.property({type:String})],Oi.prototype,"text",void 0),Si([o.property({type:Boolean})],Oi.prototype,"raised",void 0),Si([o.property({type:Boolean})],Oi.prototype,"outlined",void 0),Si([o.property({type:Boolean})],Oi.prototype,"disabled",void 0),e.customElement("ft-input-label")(Oi);var Bi=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ci extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return i.html``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Ci.elementDefinitions={},Bi([o.property({type:String})],Ci.prototype,"label",void 0),Bi([o.property({type:Object,converter:t=>t})],Ci.prototype,"value",void 0),Bi([o.property({type:Boolean,reflect:!0})],Ci.prototype,"selected",void 0);const Ei={labelSize:e.FtCssVariable.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:e.FtCssVariable.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:e.FtCssVariable.create("--ft-select-vertical-spacing","SIZE","4px"),selectedOptionColor:e.FtCssVariable.extend("--ft-select-selected-option-color",e.designSystemVariables.colorOnSurface),helperColor:e.FtCssVariable.extend("--ft-select-helper-color",e.designSystemVariables.colorOnSurfaceMedium),optionsColor:e.FtCssVariable.extend("--ft-select-options-color",e.designSystemVariables.colorOnSurface),optionsZIndex:e.FtCssVariable.create("--ft-select-options-z-index","NUMBER","2"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation02:e.FtCssVariable.external(e.designSystemVariables.elevation02,"Design system")};class Ii extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,o,r,l;let a=!this.disabled&&this.optionsDisplayed&&this.hasOptions,c=this.disabled||!this.hasOptions;const h=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(o=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==o?o:"").length>0,p={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":c,"ft-select--options-displayed":a,"ft-select--has-option-selected":h,"ft-select--no-label":!this.label};return i.html`
1515
+ <div class="${n.classMap(p)}" part="container">
1729
1516
  <div class="ft-select--main-panel" part="main-panel">
1730
1517
  <ft-input-label text="${this.label}"
1731
1518
  part="label"
1732
- ?disabled=${l}
1519
+ ?disabled=${c}
1733
1520
  ?outlined=${this.outlined}
1734
- ?raised=${d||s}
1521
+ ?raised=${h||a}
1735
1522
  ></ft-input-label>
1736
1523
  <div class="ft-select--input-panel"
1737
1524
  part="selected-value"
1738
- tabindex="${l?"-1":"0"}"
1525
+ tabindex="${c?"-1":"0"}"
1739
1526
  @click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
1740
1527
  @keydown=${this.onMainPanelKeyDown}
1741
1528
  aria-label="${this.label}"
1742
1529
  aria-haspopup="listbox"
1743
- aria-expanded="${s}">
1744
- <ft-ripple ?disabled=${l} ?activated=${!this.outlined}></ft-ripple>
1530
+ aria-expanded="${a}">
1531
+ <ft-ripple ?disabled=${c} ?activated=${!this.outlined}></ft-ripple>
1745
1532
  <ft-typography variant="body1" class="ft-select--selected-option">
1746
- ${null!==(n=null===(c=this.selectedOption)||void 0===c?void 0:c.label)&&void 0!==n?n:""}
1533
+ ${null!==(l=null===(r=this.selectedOption)||void 0===r?void 0:r.label)&&void 0!==l?l:""}
1747
1534
  </ft-typography>
1748
- <mwc-icon>${s?"expand_less":"expand_more"}</mwc-icon>
1535
+ <ft-icon variant="material">${a?"expand_less":"expand_more"}</ft-icon>
1749
1536
  </div>
1750
1537
  <div class="ft-select--options"
1751
1538
  part="options"
1752
1539
  @keydown=${this.onOptionsKeyDown}
1753
1540
  innerrole="listbox">
1754
- ${o.repeat(this.options,(t=>t.value),(t=>this.renderOption(t)))}
1541
+ ${s.repeat(this.options,(t=>t.value),(t=>this.renderOption(t)))}
1755
1542
  </div>
1756
1543
  </div>
1757
- ${this.helper?e.html`
1544
+ ${this.helper?i.html`
1758
1545
  <ft-typography class="ft-select--helper-text" variant="caption">${this.helper}
1759
1546
  </ft-typography>`:void 0}
1760
1547
  </div>
1761
1548
  <slot @slotchange=${this.updateOptionsFromSlot}
1762
1549
  @option-change=${this.updateOptionsFromSlot}
1763
1550
  ></slot>
1764
- `}renderOption(t){let i=this.selectedOption===t;const o={"ft-select--option":!0,"ft-select--option-selected":i,"ft-typography--body2":!0};return e.html`
1765
- <div class="${r.classMap(o)}"
1551
+ `}renderOption(t){let e=this.selectedOption===t;const o={"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0};return i.html`
1552
+ <div class="${n.classMap(o)}"
1766
1553
  part="option"
1767
1554
  tabindex="0"
1768
1555
  @keydown=${e=>this.onOptionKeyDown(e,t)}
1769
1556
  @click=${()=>this.selectOption(t)}>
1770
- <ft-ripple ?primary=${i} ?activated=${i}></ft-ripple>
1557
+ <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
1771
1558
  ${t.label}
1772
1559
  </div>
1773
- `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value})))}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,r,a;let c;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),c=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),c=null!==(a=null===(r=this.focusedOption)||void 0===r?void 0:r.nextElementSibling)&&void 0!==a?a:this.firstOption}null==c||c.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};bo.elementDefinitions={"ft-input-label":ho,"ft-typography":Xt,"ft-ripple":Fe,"mwc-icon":Re},fo([i.property({type:String})],bo.prototype,"label",void 0),fo([i.property({type:String})],bo.prototype,"helper",void 0),fo([i.property({type:Boolean})],bo.prototype,"outlined",void 0),fo([i.property({type:Boolean})],bo.prototype,"disabled",void 0),fo([i.property({type:Array})],bo.prototype,"options",void 0),fo([i.state()],bo.prototype,"selectedOption",void 0),fo([i.state()],bo.prototype,"optionsDisplayed",void 0),fo([i.state()],bo.prototype,"focusOptions",void 0),fo([i.query(".ft-select")],bo.prototype,"container",void 0),fo([i.query(".ft-select--input-panel")],bo.prototype,"mainPanel",void 0),fo([i.query(".ft-select--option:first-child")],bo.prototype,"firstOption",void 0),fo([i.query(".ft-select--option:focus")],bo.prototype,"focusedOption",void 0),fo([i.query(".ft-select--option.ft-select--option-selected")],bo.prototype,"selectedOptionElement",void 0),fo([i.query(".ft-select--option:last-child")],bo.prototype,"lastOption",void 0),fo([i.query("slot")],bo.prototype,"optionsSlot",void 0),bo=fo([a.customElement("ft-select")],bo);const go={height:a.FtCssVariable.create("--ft-search-bar-height","SIZE","38px"),borderRadius:a.FtCssVariable.extend("--ft-search-bar-border-radius",a.designSystemVariables.borderRadiusS),mobileOpenPosition:a.FtCssVariable.create("--ft-search-bar-mobile-open-position","POSITION","fixed"),mobileOpenTop:a.FtCssVariable.create("--ft-search-bar-mobile-open-top","SIZE","0"),mobileOpenBottom:a.FtCssVariable.create("--ft-search-bar-mobile-open-bottom","SIZE","0"),mobileOpenLeft:a.FtCssVariable.create("--ft-search-bar-mobile-open-left","SIZE","0"),mobileOpenRight:a.FtCssVariable.create("--ft-search-bar-mobile-open-right","SIZE","0"),floatingZIndex:a.FtCssVariable.create("--ft-search-bar-floating-components-z-index","NUMBER","2"),colorSurface:a.FtCssVariable.external(a.designSystemVariables.colorSurface,"Design system"),colorOnSurface:a.FtCssVariable.external(a.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:a.FtCssVariable.external(a.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:a.FtCssVariable.external(a.designSystemVariables.colorOutline,"Design system"),colorPrimary:a.FtCssVariable.external(a.designSystemVariables.colorPrimary,"Design system"),elevation02:a.FtCssVariable.external(a.designSystemVariables.elevation02,"Design system"),buttonColor:a.FtCssVariable.external(Ke.color,"Button"),buttonRippleColor:a.FtCssVariable.external(Ke.rippleColor,"Button")},vo=e.css`
1560
+ `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value})))}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,n;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(n=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Ii.elementDefinitions={"ft-input-label":Oi,"ft-typography":Gt,"ft-ripple":ie,"ft-icon":ye},Ii.styles=[Ht,Kt,i.css`
1561
+ *:focus {
1562
+ outline: none;
1563
+ }
1564
+
1565
+ .ft-select {
1566
+ display: flex;
1567
+ flex-direction: column;
1568
+ align-items: stretch;
1569
+ }
1570
+
1571
+ .ft-select--main-panel {
1572
+ position: relative;
1573
+ display: flex;
1574
+ height: calc(4 * ${Ei.verticalSpacing} + ${Ei.labelSize} + ${Ei.selectedOptionSize});
1575
+ }
1576
+
1577
+ .ft-select--input-panel {
1578
+ flex-grow: 1;
1579
+ position: relative;
1580
+ display: flex;
1581
+ align-items: center;
1582
+ overflow: hidden;
1583
+ padding-left: 16px;
1584
+ padding-right: 8px;
1585
+ gap: 8px;
1586
+ color: ${Ei.selectedOptionColor};
1587
+ ${e.setVariable(ee.color,Ei.selectedOptionColor)};
1588
+ }
1589
+
1590
+ .ft-select--input-panel,
1591
+ .ft-select--option {
1592
+ ${e.setVariable(ee.opacityContentOnSurfaceHover,"0.08")};
1593
+ ${e.setVariable(ee.opacityContentOnSurfacePressed,"0.04")};
1594
+ }
1595
+
1596
+ .ft-select--disabled .ft-select--input-panel,
1597
+ .ft-select--disabled .ft-select--option {
1598
+ color: ${Ei.colorOnSurfaceDisabled};
1599
+ }
1600
+
1601
+ .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
1602
+ .ft-select:not(.ft-select--disabled) .ft-select--option {
1603
+ cursor: pointer;
1604
+ }
1605
+
1606
+ ft-input-label {
1607
+ ${e.setVariable(zi.fontSize,Ei.selectedOptionSize)};
1608
+ ${e.setVariable(zi.raisedFontSize,Ei.labelSize)};
1609
+ ${e.setVariable(zi.verticalSpacing,Ei.verticalSpacing)};
1610
+ }
1611
+
1612
+ .ft-select:not(.ft-select--disabled):focus-within ft-icon {
1613
+ color: ${Ei.colorPrimary};
1614
+ }
1615
+
1616
+ .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
1617
+ ${e.setVariable(zi.borderColor,Ei.colorPrimary)};
1618
+ ${e.setVariable(zi.textColor,Ei.colorPrimary)};
1619
+ }
1620
+
1621
+ .ft-select--selected-option {
1622
+ display: block;
1623
+ flex-grow: 1;
1624
+ flex-shrink: 1;
1625
+ overflow: hidden;
1626
+ white-space: nowrap;
1627
+ text-overflow: ellipsis;
1628
+ ${e.setVariable(kt.fontSize,Ei.selectedOptionSize)};
1629
+ ${e.setVariable(kt.lineHeight,Ei.selectedOptionSize)};
1630
+ }
1631
+
1632
+ ft-icon {
1633
+ flex-shrink: 0;
1634
+ }
1635
+
1636
+ slot {
1637
+ display: none;
1638
+ }
1639
+
1640
+ .ft-select--filled .ft-select--input-panel {
1641
+ border-radius: ${Ei.borderRadiusS} ${Ei.borderRadiusS} 0 0;
1642
+ }
1643
+
1644
+ .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
1645
+ align-self: stretch;
1646
+ padding-top: calc(${Ei.labelSize} + 2 * ${Ei.verticalSpacing});
1647
+ }
1648
+
1649
+ .ft-select--outlined .ft-select--input-panel {
1650
+ border-radius: ${Ei.borderRadiusS};
1651
+ }
1652
+
1653
+ .ft-select--options {
1654
+ display: none;
1655
+ position: absolute;
1656
+ top: 100%;
1657
+ left: 0;
1658
+ right: 0;
1659
+ color: ${Ei.optionsColor};
1660
+ background: ${Ei.colorSurface};
1661
+ z-index: ${Ei.optionsZIndex};
1662
+ box-shadow: ${Ei.elevation02};
1663
+ }
1664
+
1665
+ .ft-select--options-displayed .ft-select--options {
1666
+ display: block;
1667
+ }
1668
+
1669
+ .ft-select--option {
1670
+ position: relative;
1671
+ padding: 4px 16px;
1672
+ min-height: 32px;
1673
+ display: flex;
1674
+ align-items: center;
1675
+ }
1676
+
1677
+ .ft-select--helper-text {
1678
+ padding: 0 12px 0 16px;
1679
+ color: ${Ei.helperColor};
1680
+ }
1681
+ `],Bi([o.property({type:String})],Ii.prototype,"label",void 0),Bi([o.property({type:String})],Ii.prototype,"helper",void 0),Bi([o.property({type:Boolean})],Ii.prototype,"outlined",void 0),Bi([o.property({type:Boolean})],Ii.prototype,"disabled",void 0),Bi([o.property({type:Array})],Ii.prototype,"options",void 0),Bi([o.state()],Ii.prototype,"selectedOption",void 0),Bi([o.state()],Ii.prototype,"optionsDisplayed",void 0),Bi([o.state()],Ii.prototype,"focusOptions",void 0),Bi([o.query(".ft-select")],Ii.prototype,"container",void 0),Bi([o.query(".ft-select--input-panel")],Ii.prototype,"mainPanel",void 0),Bi([o.query(".ft-select--option:first-child")],Ii.prototype,"firstOption",void 0),Bi([o.query(".ft-select--option:focus")],Ii.prototype,"focusedOption",void 0),Bi([o.query(".ft-select--option.ft-select--option-selected")],Ii.prototype,"selectedOptionElement",void 0),Bi([o.query(".ft-select--option:last-child")],Ii.prototype,"lastOption",void 0),Bi([o.query("slot")],Ii.prototype,"optionsSlot",void 0),e.customElement("ft-select")(Ii),e.customElement("ft-select-option")(Ci);const Di={height:e.FtCssVariable.create("--ft-search-bar-height","SIZE","38px"),borderRadius:e.FtCssVariable.extend("--ft-search-bar-border-radius",e.designSystemVariables.borderRadiusS),mobileOpenPosition:e.FtCssVariable.create("--ft-search-bar-mobile-open-position","POSITION","fixed"),mobileOpenTop:e.FtCssVariable.create("--ft-search-bar-mobile-open-top","SIZE","0"),mobileOpenBottom:e.FtCssVariable.create("--ft-search-bar-mobile-open-bottom","SIZE","0"),mobileOpenLeft:e.FtCssVariable.create("--ft-search-bar-mobile-open-left","SIZE","0"),mobileOpenRight:e.FtCssVariable.create("--ft-search-bar-mobile-open-right","SIZE","0"),floatingZIndex:e.FtCssVariable.create("--ft-search-bar-floating-components-z-index","NUMBER","2"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurface:e.FtCssVariable.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOutline:e.FtCssVariable.external(e.designSystemVariables.colorOutline,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),elevation02:e.FtCssVariable.external(e.designSystemVariables.elevation02,"Design system"),buttonColor:e.FtCssVariable.external(we.color,"Button"),buttonRippleColor:e.FtCssVariable.external(we.rippleColor,"Button")},Fi=i.css`
1774
1682
  * {
1775
1683
  box-sizing: border-box;
1776
1684
  }
@@ -1779,7 +1687,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1779
1687
  display: flex;
1780
1688
  flex-direction: column;
1781
1689
  gap: 8px;
1782
- color: ${go.colorOnSurface};
1690
+ color: ${Di.colorOnSurface};
1783
1691
  outline: none;
1784
1692
  }
1785
1693
 
@@ -1788,14 +1696,14 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1788
1696
  }
1789
1697
 
1790
1698
  .ft-search-bar--mobile-menu-open {
1791
- position: ${go.mobileOpenPosition};
1792
- top: ${go.mobileOpenTop};
1793
- bottom: ${go.mobileOpenBottom};
1794
- left: ${go.mobileOpenLeft};
1795
- right: ${go.mobileOpenRight};
1796
- z-index: ${go.floatingZIndex};
1699
+ position: ${Di.mobileOpenPosition};
1700
+ top: ${Di.mobileOpenTop};
1701
+ bottom: ${Di.mobileOpenBottom};
1702
+ left: ${Di.mobileOpenLeft};
1703
+ right: ${Di.mobileOpenRight};
1704
+ z-index: ${Di.floatingZIndex};
1797
1705
  padding: 16px;
1798
- background: ${go.colorSurface};
1706
+ background: ${Di.colorSurface};
1799
1707
  }
1800
1708
 
1801
1709
  .ft-search-bar {
@@ -1803,15 +1711,15 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1803
1711
  display: flex;
1804
1712
  flex-direction: row;
1805
1713
  align-items: center;
1806
- height: ${go.height};
1714
+ height: ${Di.height};
1807
1715
 
1808
- background: ${go.colorSurface};
1809
- border: 1px solid ${go.colorOutline};
1810
- border-radius: ${go.borderRadius};
1716
+ background: ${Di.colorSurface};
1717
+ border: 1px solid ${Di.colorOutline};
1718
+ border-radius: ${Di.borderRadius};
1811
1719
  }
1812
1720
 
1813
1721
  .ft-search-bar--floating-panel-open .ft-search-bar {
1814
- border-radius: ${go.borderRadius} ${go.borderRadius} 0 0;
1722
+ border-radius: ${Di.borderRadius} ${Di.borderRadius} 0 0;
1815
1723
  }
1816
1724
 
1817
1725
  .ft-search-bar--input-container {
@@ -1829,7 +1737,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1829
1737
  align-self: stretch;
1830
1738
  display: grid;
1831
1739
  padding: 0 8px;
1832
- border-radius: ${go.borderRadius};
1740
+ border-radius: ${Di.borderRadius};
1833
1741
  }
1834
1742
 
1835
1743
  .ft-search-bar--dense .ft-search-bar--input-outline {
@@ -1838,7 +1746,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1838
1746
  }
1839
1747
 
1840
1748
  .ft-search-bar--input-container:focus-within .ft-search-bar--input-outline {
1841
- outline: 2px solid ${go.colorPrimary};
1749
+ outline: 2px solid ${Di.colorPrimary};
1842
1750
  }
1843
1751
 
1844
1752
  .ft-search-bar--input {
@@ -1859,8 +1767,8 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1859
1767
  }
1860
1768
 
1861
1769
  .ft-search-bar--left-action {
1862
- ${a.setVariable(Ke.borderRadius,e.css`calc(${go.borderRadius} - 1px) 0 0 calc(${go.borderRadius} - 1px)`)};
1863
- border-right: 1px solid ${go.colorOutline};
1770
+ ${e.setVariable(we.borderRadius,i.css`calc(${Di.borderRadius} - 1px) 0 0 calc(${Di.borderRadius} - 1px)`)};
1771
+ border-right: 1px solid ${Di.colorOutline};
1864
1772
  height: 100%;
1865
1773
  }
1866
1774
 
@@ -1869,7 +1777,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1869
1777
  }
1870
1778
 
1871
1779
  .ft-search-bar--floating-panel-open .ft-search-bar--left-action {
1872
- ${a.setVariable(Ke.borderRadius,e.css`calc(${go.borderRadius} - 1px) 0 0 0`)};
1780
+ ${e.setVariable(we.borderRadius,i.css`calc(${Di.borderRadius} - 1px) 0 0 0`)};
1873
1781
  }
1874
1782
 
1875
1783
  .ft-search-bar .ft-search-bar--launch-search,
@@ -1879,13 +1787,13 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1879
1787
 
1880
1788
  .ft-search-bar--separator {
1881
1789
  height: 20px;
1882
- border-right: 1px solid ${go.colorOutline};
1790
+ border-right: 1px solid ${Di.colorOutline};
1883
1791
  }
1884
1792
 
1885
1793
  .ft-search-bar--left-action.ft-search-bar--content-locale {
1886
- ${a.setVariable(po.borderColor,"transparent")};
1887
- ${a.setVariable(po.borderRadiusS,e.css`calc(${go.borderRadius} - 1px)`)};
1888
- ${a.setVariable(mo.selectedOptionColor,go.buttonColor)};
1794
+ ${e.setVariable(zi.borderColor,"transparent")};
1795
+ ${e.setVariable(zi.borderRadiusS,i.css`calc(${Di.borderRadius} - 1px)`)};
1796
+ ${e.setVariable(Ei.selectedOptionColor,Di.buttonColor)};
1889
1797
  }
1890
1798
 
1891
1799
  .ft-search-bar--left-action.ft-search-bar--content-locale,
@@ -1902,17 +1810,17 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
1902
1810
  }
1903
1811
 
1904
1812
  .ft-search-bar--left-action.ft-search-bar--content-locale::part(selected-value) {
1905
- border-radius: calc(${go.borderRadius} - 1px) 0 0 calc(${go.borderRadius} - 1px);
1813
+ border-radius: calc(${Di.borderRadius} - 1px) 0 0 calc(${Di.borderRadius} - 1px);
1906
1814
  }
1907
1815
 
1908
- `,xo=e.css`
1816
+ `,Li=i.css`
1909
1817
  .ft-search-bar--floating-panel .ft-search-bar--presets {
1910
1818
  margin-right: auto;
1911
1819
  }
1912
1820
 
1913
1821
  .ft-search-bar--floating-panel .ft-search-bar--presets {
1914
1822
  min-width: 250px;
1915
- ${a.setVariable(mo.optionsZIndex,"2")};
1823
+ ${e.setVariable(Ei.optionsZIndex,"2")};
1916
1824
  }
1917
1825
 
1918
1826
  .ft-search-bar--floating-panel {
@@ -2004,7 +1912,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2004
1912
 
2005
1913
  .ft-search-bar--filter-label > :last-child {
2006
1914
  flex-shrink: 1;
2007
- color: ${go.colorOnSurfaceMedium};
1915
+ color: ${Di.colorOnSurfaceMedium};
2008
1916
  }
2009
1917
 
2010
1918
  ft-accordion-item::part(toggle) {
@@ -2024,7 +1932,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2024
1932
  .ft-search-bar--floating-panel .ft-search-bar--launch-search {
2025
1933
  margin: 0;
2026
1934
  }
2027
- `,yo=e.css`
1935
+ `,ji=i.css`
2028
1936
  .ft-search-bar--selected-filters:not(ft-snap-scroll) {
2029
1937
  flex-shrink: 0;
2030
1938
  display: flex;
@@ -2035,7 +1943,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2035
1943
 
2036
1944
  ft-snap-scroll.ft-search-bar--selected-filters {
2037
1945
  overflow: hidden;
2038
- ${a.setVariable(yi.gap,"4px")};
1946
+ ${e.setVariable(Ve.gap,"4px")};
2039
1947
  }
2040
1948
 
2041
1949
  ft-snap-scroll.ft-search-bar--selected-filters::part(content) {
@@ -2043,8 +1951,8 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2043
1951
  }
2044
1952
 
2045
1953
  .ft-search-bar--desktop ft-snap-scroll.ft-search-bar--selected-filters {
2046
- ${a.setVariable(io.iconSize,"17px")};
2047
- ${a.setVariable(io.fontSize,"12px")};
1954
+ ${e.setVariable(gi.iconSize,"17px")};
1955
+ ${e.setVariable(gi.fontSize,"12px")};
2048
1956
  }
2049
1957
 
2050
1958
  .ft-search-bar--selected-filters * {
@@ -2054,7 +1962,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2054
1962
  .ft-search-bar--selected-filters ft-chip {
2055
1963
  flex-grow: 0;
2056
1964
  }
2057
- `,ko=e.css`
1965
+ `,Mi=i.css`
2058
1966
  .ft-search-bar--mobile .ft-search-bar--suggestions {
2059
1967
  flex-grow: 1;
2060
1968
  flex-shrink: 1;
@@ -2063,7 +1971,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2063
1971
  }
2064
1972
 
2065
1973
  .ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
2066
- border-top: 1px solid ${go.colorOutline};
1974
+ border-top: 1px solid ${Di.colorOutline};
2067
1975
  }
2068
1976
 
2069
1977
  .ft-search-bar--mobile-menu-open .ft-search-bar--suggestions {
@@ -2078,10 +1986,10 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2078
1986
  left: -1px;
2079
1987
  right: -1px;
2080
1988
  display: none;
2081
- background: ${go.colorSurface};
2082
- border: 1px solid ${go.colorOutline};
2083
- border-radius: 0 0 ${go.borderRadius} ${go.borderRadius};
2084
- box-shadow: ${go.elevation02};
1989
+ background: ${Di.colorSurface};
1990
+ border: 1px solid ${Di.colorOutline};
1991
+ border-radius: 0 0 ${Di.borderRadius} ${Di.borderRadius};
1992
+ box-shadow: ${Di.elevation02};
2085
1993
  outline: none;
2086
1994
  }
2087
1995
 
@@ -2096,7 +2004,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2096
2004
  .ft-search-bar--no-suggestions {
2097
2005
  text-align: center;
2098
2006
  padding: 8px;
2099
- color: ${go.colorOnSurface};
2007
+ color: ${Di.colorOnSurface};
2100
2008
  }
2101
2009
 
2102
2010
  .ft-search-bar--suggestion {
@@ -2107,7 +2015,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2107
2015
  padding: 8px;
2108
2016
  gap: 8px;
2109
2017
  cursor: pointer;
2110
- color: ${go.colorOnSurface};
2018
+ color: ${Di.colorOnSurface};
2111
2019
  min-height: 52px;
2112
2020
  }
2113
2021
 
@@ -2120,7 +2028,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2120
2028
  }
2121
2029
 
2122
2030
  .ft-search-bar--recent-search + .ft-search-bar--suggestion:not(.ft-search-bar--recent-search) {
2123
- border-top: 1px solid ${go.colorOutline};
2031
+ border-top: 1px solid ${Di.colorOutline};
2124
2032
  }
2125
2033
 
2126
2034
  .ft-search-bar--suggestion ft-typography {
@@ -2128,12 +2036,12 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2128
2036
  flex-grow: 1;
2129
2037
  flex-shrink: 1;
2130
2038
  }
2131
- `;var $o=function(t,e,i,o){for(var r,a=arguments.length,c=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,n=t.length-1;n>=0;n--)(r=t[n])&&(c=(a<3?r(c):a>3?r(e,i,c):r(e,i))||c);return a>3&&c&&Object.defineProperty(e,i,c),c};null==window.fluidtopics&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");const _o={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",searchButton:"Search",noSuggestions:"No results found…",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Preset",removeRecentSearch:"Remove",back:"Back"};class wo extends CustomEvent{constructor(t){super("launch-search",{detail:t})}}class zo extends CustomEvent{constructor(t){super("change",{detail:t})}}t.FtSearchBar=class extends a.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.labels={},this.labelResolver=new a.ParametrizedLabelResolver(_o,{}),this.displayedFilters=[],this.presets=[],this.searchRequestSerializer=t=>function(t,e){var i;const o=new URLSearchParams({"content-lang":null!==(i=e.contentLocale)&&void 0!==i?i:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");o.append("filters",t)}return new URL(`${t}/search/all?${o.toString()}`).href}(this.baseUrl,t),this.searchFilters=[],this.sizeCategory=s.S,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.knownFacetLabels={},this.query="",this.suggestions=[],this.suggestionsLoaded=!0,this.recentSearches=[],this.updateFacetsDebouncer=new a.Debouncer(500),this.suggestDebouncer=new a.Debouncer(300),this.facetsLoaded=!1,this.closeFloatingContainer=t=>{this.isMobile||(this.displayFacets=this.displayFacets&&t.composedPath().some((t=>t===this.floatingContainer)))},this.compareFilters=(t,e)=>t.key===e.key&&t.negative==e.negative&&t.values.length===e.values.length&&t.values.every((t=>e.values.includes(t))),this.compareRequests=(t,e)=>(null==t.contentLocale||null==e.contentLocale||t.contentLocale===e.contentLocale)&&t.filters.length===e.filters.length&&t.filters.every((t=>e.filters.some((e=>this.compareFilters(t,e)))))}getStyles(){return[Zt,vo,xo,yo,ko]}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,filters:this.searchFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){const t=this.searchFilters.filter((t=>!this.displayedFilters.includes(t.key))).map((t=>({id:t.key})));return[...this.displayedFilters.map((t=>({id:t}))),...t]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,filters:this.searchFilters,sort:[]}}get isMobile(){return this.sizeCategory===s.S}get hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets.length>0}get hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;null===(t=this.container)||void 0===t||t.focus()}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}getTemplate(){const t={"ft-search-bar--container":!0,"ft-search-bar--dense":!this.isMobile&&this.dense,"ft-search-bar--mobile":this.isMobile,"ft-search-bar--desktop":!this.isMobile,"ft-search-bar--floating-panel-open":!this.isMobile&&this.displayFacets,"ft-search-bar--mobile-menu-open":this.mobileMenuOpen};return e.html`
2039
+ `;var Ai=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};null==window.fluidtopics&&console.warn("Fluid Topics public API was not found. You can find it here: https://www.npmjs.com/package/@fluid-topics/public-api");const Ti={filtersButton:"Filters",inputPlaceHolder:"Search",filterInputPlaceHolder:"Filter {0}",clearInputButton:"Clear",clearFilterButton:"Clear",displayMoreFilterValuesButton:"More",searchButton:"Search",noSuggestions:"No results found…",clearFilters:"Clear filters",contentLocaleSelector:"Lang",presetsSelector:"Preset",removeRecentSearch:"Remove",back:"Back"};class Ni extends CustomEvent{constructor(t){super("launch-search",{detail:t})}}class Ri extends CustomEvent{constructor(t){super("change",{detail:t})}}class Pi extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.baseUrl="",this.apiIntegrationIdentifier="ft-search-bar",this.availableContentLocales=[],this.labels={},this.labelResolver=new e.ParametrizedLabelResolver(Ti,{}),this.displayedFilters=[],this.presets=[],this.searchRequestSerializer=t=>function(t,e){var i;const o=new URLSearchParams({"content-lang":null!==(i=e.contentLocale)&&void 0!==i?i:"all",query:e.query});if(e.filters.length>0){const t=e.filters.map((t=>{const e=t.values.map((t=>t.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*"))).map((t=>encodeURIComponent(function(t){return`"${t}"`}(t)))).join("_");return`${t.key}~${e}`})).join("*");o.append("filters",t)}return new URL(`${t}/search/all?${o.toString()}`).href}(this.baseUrl,t),this.searchFilters=[],this.sizeCategory=l.S,this.displayFacets=!1,this.mobileMenuOpen=!1,this.facets=[],this.knownFacetLabels={},this.query="",this.suggestions=[],this.suggestionsLoaded=!0,this.recentSearches=[],this.updateFacetsDebouncer=new e.Debouncer(500),this.suggestDebouncer=new e.Debouncer(300),this.facetsLoaded=!1,this.closeFloatingContainer=t=>{this.isMobile||(this.displayFacets=this.displayFacets&&t.composedPath().some((t=>t===this.floatingContainer)))},this.compareFilters=(t,e)=>t.key===e.key&&t.negative==e.negative&&t.values.length===e.values.length&&t.values.every((t=>e.values.includes(t))),this.compareRequests=(t,e)=>(null==t.contentLocale||null==e.contentLocale||t.contentLocale===e.contentLocale)&&t.filters.length===e.filters.length&&t.filters.every((t=>e.filters.some((e=>this.compareFilters(t,e)))))}get recentSearchesStorageKey(){return this.baseUrl+":ft:recent-search-queries"}get request(){return{uiLocale:this.uiLocale,contentLocale:this.contentLocale,query:this.query,facets:this.facetsRequest,filters:this.searchFilters,paging:{perPage:0,page:1},sort:[]}}get facetsRequest(){const t=this.searchFilters.filter((t=>!this.displayedFilters.includes(t.key))).map((t=>({id:t.key})));return[...this.displayedFilters.map((t=>({id:t}))),...t]}get suggestRequest(){return{contentLocale:this.contentLocale,input:this.query,filters:this.searchFilters,sort:[]}}get isMobile(){return this.sizeCategory===l.S}get hasFacets(){return this.facetsRequest.length>0}get hasPresets(){return this.presets.length>0}get hasLocaleSelector(){return this.availableContentLocales.length>1}focus(){var t;null===(t=this.container)||void 0===t||t.focus()}clear(){this.query="",this.searchFilters=[],this.input&&(this.input.value=""),this.mobileMenuOpen=!1,this.displayFacets=!1}render(){const t={"ft-search-bar--container":!0,"ft-search-bar--dense":!this.isMobile&&this.dense,"ft-search-bar--mobile":this.isMobile,"ft-search-bar--desktop":!this.isMobile,"ft-search-bar--floating-panel-open":!this.isMobile&&this.displayFacets,"ft-search-bar--mobile-menu-open":this.mobileMenuOpen};return i.html`
2132
2040
  <ft-size-watcher @change=${this.updateSize}></ft-size-watcher>
2133
- <div class="${r.classMap(t)}" part="container" tabindex="-1">
2041
+ <div class="${n.classMap(t)}" part="container" tabindex="-1">
2134
2042
  ${this.isMobile?this.renderMobileSearchBar():this.renderDesktopSearchBar()}
2135
2043
  </div>
2136
- `}renderMobileSearchBar(){return e.html`
2044
+ `}renderMobileSearchBar(){return i.html`
2137
2045
  <div class="ft-search-bar">
2138
2046
  <div class="ft-search-bar--input-container" part="input-container">
2139
2047
  <div class="ft-search-bar--input-outline" part="input-outline">
@@ -2150,15 +2058,15 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2150
2058
  </div>
2151
2059
  ${this.displayFacets?this.renderFacetsActions():this.renderSelectedFacets()}
2152
2060
  ${this.displayFacets?this.renderMobileFacets():this.renderSuggestions()}
2153
- ${this.mobileMenuOpen||this.displayFacets?e.html`
2061
+ ${this.mobileMenuOpen||this.displayFacets?i.html`
2154
2062
  <ft-button class="ft-search-bar--launch-search"
2155
2063
  part="search-bar-actions"
2156
2064
  icon="search"
2157
2065
  @click=${this.launchSearch}>
2158
2066
  ${this.labelResolver.resolve("searchButton")}
2159
2067
  </ft-button>
2160
- `:e.nothing}
2161
- `}renderMobileSearchBarButtons(){return this.query||this.mobileMenuOpen?e.html`
2068
+ `:i.nothing}
2069
+ `}renderMobileSearchBarButtons(){return this.query||this.mobileMenuOpen?i.html`
2162
2070
  <ft-button class="ft-search-bar--clear-query"
2163
2071
  part="search-bar-actions"
2164
2072
  icon="close"
@@ -2166,7 +2074,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2166
2074
  label="${this.labelResolver.resolve("clearInputButton")}"
2167
2075
  @click=${()=>{this.setQuery(""),this.mobileMenuOpen=!1,this.displayFacets=!1}}
2168
2076
  ></ft-button>
2169
- `:e.html`
2077
+ `:i.html`
2170
2078
  <ft-button class="ft-search-bar--launch-search"
2171
2079
  part="search-bar-actions"
2172
2080
  icon="search"
@@ -2174,15 +2082,15 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2174
2082
  label="${this.labelResolver.resolve("searchButton")}"
2175
2083
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}
2176
2084
  ></ft-button>
2177
- `}renderMobileFacets(){var t;const i=this.availableContentLocales.filter((t=>t.lang===this.contentLocale)).pop();return e.html`
2085
+ `}renderMobileFacets(){var t;const e=this.availableContentLocales.filter((t=>t.lang===this.contentLocale)).pop();return i.html`
2178
2086
  <ft-accordion class="ft-search-bar--filters-container">
2179
- ${this.hasLocaleSelector?e.html`
2087
+ ${this.hasLocaleSelector?i.html`
2180
2088
  <ft-accordion-item data-facet-key="ft:contentLocale">
2181
2089
  <div class="ft-search-bar--filter-label" slot="toggle">
2182
2090
  <ft-typography variant="button">${this.labelResolver.resolve("contentLocaleSelector")}
2183
2091
  </ft-typography>
2184
2092
  <ft-typography variant="body2">
2185
- ${null!==(t=null==i?void 0:i.label)&&void 0!==t?t:""}
2093
+ ${null!==(t=null==e?void 0:e.label)&&void 0!==t?t:""}
2186
2094
  </ft-typography>
2187
2095
  </div>
2188
2096
  <ft-filter
@@ -2194,35 +2102,35 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2194
2102
  ></ft-filter>
2195
2103
  </ft-accordion-item>
2196
2104
  `:null}
2197
- ${o.repeat(this.facets,(t=>t.key),(t=>{const i=te(t);return e.html`
2105
+ ${s.repeat(this.facets,(t=>t.key),(t=>{const e=Qt(t);return i.html`
2198
2106
  <ft-accordion-item data-facet-key="${t.key}">
2199
2107
  <div class="ft-search-bar--filter-label" slot="toggle">
2200
2108
  <ft-typography variant="button">${t.label}</ft-typography>
2201
2109
  <ft-typography variant="body2">
2202
- ${function(t){return Jt(t.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).filter((t=>t.selected)).map((t=>t.label))}(i).join(", ")}
2110
+ ${function(t){return Xt(t.options,(t=>{var e;return null!==(e=t.subOptions)&&void 0!==e?e:[]})).filter((t=>t.selected)).map((t=>t.label))}(e).join(", ")}
2203
2111
  </ft-typography>
2204
2112
  </div>
2205
2113
  <ft-filter
2206
2114
  part="filters"
2207
- id="${i.id}"
2208
- filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",i.label)}"
2115
+ id="${e.id}"
2116
+ filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",e.label)}"
2209
2117
  clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
2210
2118
  moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}"
2211
- ?multivalued=${i.multivalued}
2119
+ ?multivalued=${e.multivalued}
2212
2120
  raiseSelectedOptions
2213
- .options=${i.options}
2121
+ .options=${e.options}
2214
2122
  .displayedValuesLimit=${10}
2215
- @change=${t=>this.setFilter(i.id,t.detail)}
2123
+ @change=${t=>this.setFilter(e.id,t.detail)}
2216
2124
  ></ft-filter>
2217
2125
  </ft-accordion-item>
2218
2126
  `}))}
2219
2127
  </ft-accordion>
2220
- `}contentLocalesAsFilterOptions(){return this.availableContentLocales.map((t=>({value:t.lang,label:t.label,selected:t.lang==this.contentLocale})))}renderDesktopSearchBar(){return e.html`
2128
+ `}contentLocalesAsFilterOptions(){return this.availableContentLocales.map((t=>({value:t.lang,label:t.label,selected:t.lang==this.contentLocale})))}renderDesktopSearchBar(){return i.html`
2221
2129
  <div class="ft-search-bar" part="search-bar">
2222
2130
  ${this.renderSearchBarLeftAction()}
2223
2131
  <div class="ft-search-bar--input-container" part="input-container">
2224
2132
  <div class="ft-search-bar--input-outline" part="input-outline">
2225
- ${this.dense?this.renderSelectedFacets():e.nothing}
2133
+ ${this.dense?this.renderSelectedFacets():i.nothing}
2226
2134
  <input class="ft-search-bar--input ft-typography--body2"
2227
2135
  part="input"
2228
2136
  type="text"
@@ -2247,8 +2155,8 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2247
2155
  </div>
2248
2156
  </div>
2249
2157
  </div>
2250
- ${this.dense?e.nothing:this.renderSelectedFacets()}
2251
- `}renderSearchBarLeftAction(){return this.hasFacets?e.html`
2158
+ ${this.dense?i.nothing:this.renderSelectedFacets()}
2159
+ `}renderSearchBarLeftAction(){return this.hasFacets?i.html`
2252
2160
  <ft-button class="ft-search-bar--filters-opener ft-search-bar--left-action"
2253
2161
  part="filters-opener"
2254
2162
  trailingIcon
@@ -2257,20 +2165,20 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2257
2165
  @focusin=${t=>t.stopPropagation()}>
2258
2166
  ${this.labelResolver.resolve("filtersButton")}
2259
2167
  </ft-button>
2260
- `:this.hasLocaleSelector?e.html`
2168
+ `:this.hasLocaleSelector?i.html`
2261
2169
  <ft-select outlined
2262
2170
  class="ft-search-bar--content-locale ft-search-bar--left-action"
2263
2171
  part="content-locale"
2264
2172
  @change=${t=>this.contentLocale=null==t.detail?void 0:t.detail}>
2265
- ${o.repeat(this.availableContentLocales,(t=>t.lang),(t=>e.html`
2173
+ ${s.repeat(this.availableContentLocales,(t=>t.lang),(t=>i.html`
2266
2174
  <ft-select-option .value=${t.lang}
2267
2175
  label="${t.label}"
2268
2176
  ?selected=${t.lang===this.contentLocale}>
2269
2177
  </ft-select-option>
2270
2178
  `))}
2271
2179
  </ft-select>
2272
- `:e.nothing}renderDesktopSearchBarButtons(){return e.html`
2273
- ${this.query?e.html`
2180
+ `:i.nothing}renderDesktopSearchBarButtons(){return i.html`
2181
+ ${this.query?i.html`
2274
2182
  <ft-button class="ft-search-bar--clear-query"
2275
2183
  part="search-bar-actions"
2276
2184
  icon="close"
@@ -2287,36 +2195,36 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2287
2195
  label="${this.labelResolver.resolve("searchButton")}"
2288
2196
  @click=${this.launchSearch}
2289
2197
  ></ft-button>
2290
- `}renderFacetsActions(){return e.html`
2198
+ `}renderFacetsActions(){return i.html`
2291
2199
  <div class="ft-search-bar--facets-actions">
2292
- ${this.hasPresets?e.html`
2200
+ ${this.hasPresets?i.html`
2293
2201
  <ft-select
2294
2202
  class="ft-search-bar--presets"
2295
2203
  part="presets"
2296
2204
  label="${this.labelResolver.resolve("presetsSelector")}"
2297
2205
  outlined
2298
2206
  @change=${t=>this.selectedPreset=t.detail}>
2299
- ${o.repeat(this.presets,(t=>t.name),(t=>e.html`
2207
+ ${s.repeat(this.presets,(t=>t.name),(t=>i.html`
2300
2208
  <ft-select-option value="${t.name}"
2301
2209
  label="${t.name}"
2302
2210
  ?selected=${t.name===this.selectedPreset}>
2303
2211
  </ft-select-option>
2304
2212
  `))}
2305
2213
  </ft-select>
2306
- `:e.nothing}
2307
- ${this.searchFilters.length>0?e.html`
2214
+ `:i.nothing}
2215
+ ${this.searchFilters.length>0?i.html`
2308
2216
  <ft-button part="facets-actions"
2309
2217
  @click=${this.clearFilters}>
2310
2218
  ${this.labelResolver.resolve("clearFilters")}
2311
2219
  </ft-button>
2312
- `:e.nothing}
2220
+ `:i.nothing}
2313
2221
  <slot name="facets-actions"></slot>
2314
2222
  </div>
2315
- `}renderDesktopFacets(){return this.hasFacets?e.html`
2223
+ `}renderDesktopFacets(){return this.hasFacets?i.html`
2316
2224
  <ft-snap-scroll horizontal limitSize controls
2317
2225
  class="ft-search-bar--filters-container"
2318
2226
  part="filters-container">
2319
- ${this.hasLocaleSelector?e.html`
2227
+ ${this.hasLocaleSelector?i.html`
2320
2228
  <ft-filter part="filters"
2321
2229
  class="ft-search-bar--content-locale"
2322
2230
  label="${this.labelResolver.resolve("contentLocaleSelector")}"
@@ -2324,26 +2232,26 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2324
2232
  .options=${this.contentLocalesAsFilterOptions()}
2325
2233
  @change=${t=>this.contentLocale=t.detail[0]}
2326
2234
  ></ft-filter>
2327
- `:e.nothing}
2328
- ${o.repeat(this.facets,(t=>t.key),(t=>{const i=te(t),o=i.options.some((t=>{var e,i;return(null!==(i=null===(e=t.subOptions)||void 0===e?void 0:e.length)&&void 0!==i?i:0)>0}));return e.html`
2235
+ `:i.nothing}
2236
+ ${s.repeat(this.facets,(t=>t.key),(t=>{const e=Qt(t),o=e.options.some((t=>{var e,i;return(null!==(i=null===(e=t.subOptions)||void 0===e?void 0:e.length)&&void 0!==i?i:0)>0}));return i.html`
2329
2237
  <ft-filter
2330
2238
  class="${o?"ft-search-bar--hierarchical-filter":""}"
2331
2239
  part="filters"
2332
- id="${i.id}"
2333
- label="${i.label}"
2334
- filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",i.label)}"
2240
+ id="${e.id}"
2241
+ label="${e.label}"
2242
+ filterPlaceHolder="${this.labelResolver.resolve("filterInputPlaceHolder",e.label)}"
2335
2243
  clearButtonLabel="${this.labelResolver.resolve("clearFilterButton")}"
2336
2244
  moreValuesButtonLabel="${this.labelResolver.resolve("displayMoreFilterValuesButton")}"
2337
- ?multivalued=${i.multivalued}
2245
+ ?multivalued=${e.multivalued}
2338
2246
  raiseSelectedOptions
2339
- .options=${i.options}
2247
+ .options=${e.options}
2340
2248
  .displayedValuesLimit=${10}
2341
- @change=${t=>this.setFilter(i.id,t.detail)}
2249
+ @change=${t=>this.setFilter(e.id,t.detail)}
2342
2250
  ></ft-filter>
2343
2251
  `}))}
2344
2252
  </ft-snap-scroll>
2345
- `:e.nothing}renderSelectedFacets(){if(!this.hasLocaleSelector&&!this.hasFacets)return null;const t=!this.isMobile&&this.dense||this.isMobile&&this.mobileMenuOpen,i=e.html`
2346
- ${this.hasLocaleSelector&&(this.hasFacets||this.isMobile)?e.html`
2253
+ `:i.nothing}renderSelectedFacets(){if(!this.hasLocaleSelector&&!this.hasFacets)return null;const t=!this.isMobile&&this.dense||this.isMobile&&this.mobileMenuOpen,e=i.html`
2254
+ ${this.hasLocaleSelector&&(this.hasFacets||this.isMobile)?i.html`
2347
2255
  <ft-chip part="selected-filters"
2348
2256
  ?dense=${this.dense&&!this.isMobile}
2349
2257
  ?clickable=${this.isMobile}
@@ -2351,53 +2259,53 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2351
2259
  ${this.getLocaleLabel(this.contentLocale)}
2352
2260
  </ft-chip>
2353
2261
  `:null}
2354
- ${o.repeat(this.facets,(t=>t.key),(i=>{const r=function(t){return Jt(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}(i);return o.repeat(r,(o=>{let a=i.label+": "+function(t){return Yt(t).split("|").join(" > ")}(o);const c=e.html`
2262
+ ${s.repeat(this.facets,(t=>t.key),(e=>{const o=function(t){return Xt(t.rootNodes,(t=>t.selected?[]:t.childNodes)).filter((t=>t.selected)).map((t=>t.value))}(e);return s.repeat(o,(s=>{let n=e.label+": "+function(t){return Jt(t).split("|").join(" > ")}(s);const r=i.html`
2355
2263
  <ft-chip
2356
2264
  part="selected-filters"
2357
2265
  ?dense=${this.dense&&!this.isMobile}
2358
2266
  ?clickable=${this.isMobile}
2359
2267
  ?removable=${!this.isMobile}
2360
- icon=${this.isMobile?e.nothing:"close"}
2361
- label="${a}"
2362
- title=${t?a:e.nothing}
2363
- @click=${()=>this.openMobileFilters(i.key)}
2364
- @icon-click=${()=>this.setFilter(i.key,r.filter((t=>t!==o)))}>
2365
- ${function(t){return Yt(t).split("|").pop()}(o)}
2268
+ icon=${this.isMobile?i.nothing:"close"}
2269
+ label="${n}"
2270
+ title=${t?n:i.nothing}
2271
+ @click=${()=>this.openMobileFilters(e.key)}
2272
+ @icon-click=${()=>this.setFilter(e.key,o.filter((t=>t!==s)))}>
2273
+ ${function(t){return Jt(t).split("|").pop()}(s)}
2366
2274
  </ft-chip>
2367
- `;return t?c:e.html`
2368
- <ft-tooltip inline text="${a}">
2369
- ${c}
2275
+ `;return t?r:i.html`
2276
+ <ft-tooltip inline text="${n}">
2277
+ ${r}
2370
2278
  </ft-tooltip>
2371
2279
  `}))}))}
2372
- ${this.isMobile?e.html`
2280
+ ${this.isMobile?i.html`
2373
2281
  <ft-chip part="selected-filters"
2374
2282
  icon="add"
2375
2283
  clickable
2376
2284
  @click=${()=>{this.mobileMenuOpen=!0,this.displayFacets=!0}}>
2377
2285
  ${this.labelResolver.resolve("filtersButton")}
2378
2286
  </ft-chip>
2379
- `:e.nothing}
2380
- `;return t?e.html`
2287
+ `:i.nothing}
2288
+ `;return t?i.html`
2381
2289
  <ft-snap-scroll horizontal controls hideScrollbar limitSize
2382
2290
  class="ft-search-bar--selected-filters"
2383
2291
  part="selected-filters-container">
2384
- ${i}
2292
+ ${e}
2385
2293
  </ft-snap-scroll>
2386
- `:e.html`
2294
+ `:i.html`
2387
2295
  <div class="ft-search-bar--selected-filters" part="selected-filters-container">
2388
- ${i}
2296
+ ${e}
2389
2297
  </div>
2390
- `}renderSuggestions(){const t=this.recentSearches.filter((t=>t.toLowerCase().includes(this.query.toLowerCase()))),i=this.query.length>2||t.length>0;return e.html`
2391
- <div class="ft-search-bar--suggestions ${i?"ft-search-bar--suggestions-not-empty":""}"
2298
+ `}renderSuggestions(){const t=this.recentSearches.filter((t=>t.toLowerCase().includes(this.query.toLowerCase()))),e=this.query.length>2||t.length>0;return i.html`
2299
+ <div class="ft-search-bar--suggestions ${e?"ft-search-bar--suggestions-not-empty":""}"
2392
2300
  @keydown=${this.onSuggestKeyDown}>
2393
- ${o.repeat(t.slice(0,5),(t=>t),(t=>e.html`
2301
+ ${s.repeat(t.slice(0,5),(t=>t),(t=>i.html`
2394
2302
  <a href="${this.searchRequestSerializer({...this.request,query:t})}"
2395
2303
  part="suggestions"
2396
2304
  class="ft-search-bar--suggestion ft-search-bar--recent-search"
2397
2305
  @keyup=${e=>this.onSuggestKeyUp(e,t)}
2398
2306
  @click=${e=>this.onSuggestClick(e,t)}>
2399
2307
  <ft-ripple></ft-ripple>
2400
- <mwc-icon part="suggestion-icon">history</mwc-icon>
2308
+ <ft-icon variant="material" part="suggestion-icon">history</ft-icon>
2401
2309
  <ft-typography variant="body1">${t}</ft-typography>
2402
2310
  <ft-button icon="close"
2403
2311
  round
@@ -2407,7 +2315,7 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2407
2315
  @click=${e=>this.removeRecentSearch(e,t)}></ft-button>
2408
2316
  </a>
2409
2317
  `))}
2410
- ${o.repeat(this.suggestions,(t=>t.value),(t=>e.html`
2318
+ ${s.repeat(this.suggestions,(t=>t.value),(t=>i.html`
2411
2319
  <a href="${this.searchRequestSerializer({...this.request,query:t.value})}"
2412
2320
  part="suggestions"
2413
2321
  class="ft-search-bar--suggestion"
@@ -2418,15 +2326,15 @@ const ui=e.css`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc(
2418
2326
  <ft-typography variant="body1">${t.value}</ft-typography>
2419
2327
  </a>
2420
2328
  `))}
2421
- ${0===t.length&&0===this.suggestions.length&&this.query.length>2&&this.suggestionsLoaded?e.html`
2329
+ ${0===t.length&&0===this.suggestions.length&&this.query.length>2&&this.suggestionsLoaded?i.html`
2422
2330
  <ft-typography class="ft-search-bar--no-suggestions" element="p"
2423
2331
  variant="body2">
2424
2332
  ${this.labelResolver.resolve("noSuggestions")}
2425
2333
  </ft-typography>
2426
2334
  `:null}
2427
2335
  </div>
2428
- `}getIcon(t){const i="DOCUMENT"===t.type?Mi.file_format:Mi.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?Ri.BOOK:Ri.ARTICLE;break;case"DOCUMENT":o=function(t,e){var i,o,r,a;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[c,n]=((null!==(i=ji.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(a=null!==(r=null!==(o=Li.get(n))&&void 0!==o?o:Li.get(e))&&void 0!==r?r:Li.get(c))&&void 0!==a?a:Di.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=Ri.TOPICS}return e.html`
2429
- <ft-icon variant="${i}" part="suggestion-icon">
2336
+ `}getIcon(t){const e="DOCUMENT"===t.type?ve.file_format:ve.fluid_topics;let o;switch(t.type){case"MAP":o="BOOK"===t.editorialType?fe.BOOK:fe.ARTICLE;break;case"DOCUMENT":o=function(t,e){var i,o,s,n;t=(null!=t?t:"").toLowerCase(),e=(null!=e?e:"").toLowerCase();const[r,l]=((null!==(i=be.get(t))&&void 0!==i?i:t)+"/").split("/");return null!==(n=null!==(s=null!==(o=ue.get(l))&&void 0!==o?o:ue.get(e))&&void 0!==s?s:ue.get(r))&&void 0!==n?n:de.UNKNOWN}(t.mimeType,t.filenameExtension);break;case"TOPIC":o=fe.TOPICS}return i.html`
2337
+ <ft-icon variant="${e}" part="suggestion-icon">
2430
2338
  ${o}
2431
2339
  </ft-icon>
2432
- `}openMobileFilters(t){this.isMobile&&(this.mobileMenuOpen=!0,this.displayFacets=!0,this.scrollToFacet=t)}async firstUpdated(t){var e,i;super.firstUpdated(t),this.initApi(),this.availableContentLocales=null!==(i=await(null===(e=this.api)||void 0===e?void 0:e.getAvailableSearchLocales().then((t=>t.contentLocales)).catch((()=>[]))))&&void 0!==i?i:[]}update(t){var e,i,o;if(t.has("labels")&&(this.labelResolver=new a.ParametrizedLabelResolver(_o,this.labels)),t.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile),super.update(t),(t.has("availableContentLocales")||t.has("contentLocale"))&&this.availableContentLocales.length>0){const i=t=>this.availableContentLocales.some((e=>e.lang===t));i(this.contentLocale)||(this.contentLocale=t.has("contentLocale")&&i(t.get("contentLocale"))?t.get("contentLocale"):null===(e=this.availableContentLocales[0])||void 0===e?void 0:e.lang)}if(t.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.recentSearches=JSON.parse(null!==(i=window.localStorage.getItem(this.recentSearchesStorageKey))&&void 0!==i?i:"[]")),t.has("selectedPreset")){const t=this.presets.find((t=>t.name===this.selectedPreset));t&&!this.compareRequests(this.request,t)&&this.setFiltersFromPreset(t)}["contentLocale","searchFilters"].some((e=>t.has(e)))&&(this.selectedPreset=null===(o=this.presets.find((t=>this.compareRequests(t,this.request))))||void 0===o?void 0:o.name),["baseUrl","apiIntegrationIdentifier"].some((e=>t.has(e)))&&this.setApi(),["uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateFacets(),["query","uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateSuggestions(),["query","uiLocale","contentLocale","searchFilters"].some((e=>t.has(e)))&&this.dispatchEvent(new zo(this.request))}contentAvailableCallback(t){var e,i,o;if(super.contentAvailableCallback(t),t.has("displayFacets")&&this.displayFacets&&(null===(e=this.floatingContainer)||void 0===e||e.focus()),null!=this.scrollToFacet&&this.facetsLoaded){null===(i=this.scrollingFiltersContainer)||void 0===i||i.scrollIndexIntoView(this.facets.findIndex((t=>t.key===this.scrollToFacet)));const t=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);t&&(t.active=!0),this.scrollToFacet=void 0}}initApi(){null==this.api&&(this.setApi(),setTimeout((()=>this.initApi()),100))}setApi(){this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run((async()=>{var t,e;this.facets=null!==(e=await(null===(t=this.api)||void 0===t?void 0:t.search({...this.request,query:""}).then((t=>t.facets)).catch((()=>[]))))&&void 0!==e?e:[],this.facets.forEach((t=>this.knownFacetLabels[t.key]=t.label)),this.facetsLoaded=!0}))):this.facets=[]}updateSuggestions(){this.suggestionsLoaded=!1,this.suggestDebouncer.run((async()=>{this.suggestions=this.api&&this.query.length>2?await this.api.getSuggestions(this.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],this.suggestionsLoaded=!0}))}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.query=e.value,"Enter"===t.key&&this.launchSearch()}onSearchBarKeyDown(t){var e,i;switch(t.key){case"Escape":this.mobileMenuOpen=!1,null===(e=this.input)||void 0===e||e.blur();break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),null===(i=this.firstSuggestion)||void 0===i||i.focus()}}onFloatingContainerKeyUp(t){var e;"Escape"===t.key&&(this.displayFacets=!1,null===(e=this.filtersOpener)||void 0===e||e.focus())}setQuery(t){this.input&&(this.input.value=t),this.query=t}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.setQuery(e),this.launchSearch()}launchSearch(){if(this.query){let t=this.recentSearches.filter((t=>t.toLowerCase()!==this.query.toLowerCase())).filter(((t,e)=>e<20));this.recentSearches=[this.query,...t],this.saveRecentSearches()}this.dispatchEvent(new wo(this.request)),this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}saveRecentSearches(){window.localStorage.setItem(this.recentSearchesStorageKey,JSON.stringify(this.recentSearches))}connectedCallback(){super.connectedCallback(),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}updateSize(t){this.sizeCategory=t.detail.category}getLocaleLabel(t){var e;return null!==(e=this.availableContentLocales.filter((e=>{var i;return(null!==(i=e.lang)&&void 0!==i?i:"").toLowerCase()===(null!=t?t:"").toLowerCase()})).map((t=>t.label)).pop())&&void 0!==e?e:t}setFilter(t,e){let i=this.searchFilters.filter((e=>e.key!==t));this.facets.forEach((i=>{i.key===t&&Jt(i.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=e.includes(t.value)))})),e.length&&i.push({key:t,negative:!1,values:e}),this.searchFilters=i,this.scrollToFacet=t}setFiltersFromPreset(t){null!=t&&(null!=t.contentLocale&&(this.contentLocale=t.contentLocale),this.searchFilters=t.filters)}clearFilters(){this.facets.forEach((t=>Jt(t.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=!1)))),this.searchFilters=[];const t=this.facets[0];this.scrollToFacet=null==t?void 0:t.key}removeRecentSearch(t,e){var i,o,r,a;t.preventDefault(),t.stopPropagation();const c=null!==(a=null!==(o=null===(i=this.focusedSuggestion)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:null===(r=this.focusedSuggestion)||void 0===r?void 0:r.nextElementSibling)&&void 0!==a?a:this.input;null==c||c.focus(),this.recentSearches=this.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.saveRecentSearches()}onSuggestKeyDown(t){var e,i,o,r,a,c;switch(t.key){case"ArrowUp":null===(o=null!==(i=null===(e=this.focusedSuggestion)||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.lastSuggestion)||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(c=null!==(a=null===(r=this.focusedSuggestion)||void 0===r?void 0:r.nextElementSibling)&&void 0!==a?a:this.firstSuggestion)||void 0===c||c.focus(),t.preventDefault(),t.stopPropagation()}}},t.FtSearchBar.elementDefinitions={"ft-accordion":Qi,"ft-accordion-item":Ji,"ft-button":Qe,"ft-chip":so,"ft-filter":Ii,"ft-filter-option":wi,"ft-icon":qi,"ft-ripple":Fe,"ft-select":bo,"ft-select-option":uo,"ft-size-watcher":p,"ft-snap-scroll":$i,"ft-tooltip":He,"ft-typography":Xt,"mwc-icon":Re},$o([i.property({type:Boolean})],t.FtSearchBar.prototype,"dense",void 0),$o([i.property({type:String})],t.FtSearchBar.prototype,"baseUrl",void 0),$o([i.property({type:String})],t.FtSearchBar.prototype,"apiIntegrationIdentifier",void 0),$o([i.property({type:String})],t.FtSearchBar.prototype,"contentLocale",void 0),$o([i.state()],t.FtSearchBar.prototype,"availableContentLocales",void 0),$o([i.property({type:String})],t.FtSearchBar.prototype,"uiLocale",void 0),$o([a.jsonProperty({})],t.FtSearchBar.prototype,"labels",void 0),$o([a.jsonProperty([])],t.FtSearchBar.prototype,"displayedFilters",void 0),$o([a.jsonProperty([])],t.FtSearchBar.prototype,"presets",void 0),$o([i.property({type:String,reflect:!0})],t.FtSearchBar.prototype,"selectedPreset",void 0),$o([i.property()],t.FtSearchBar.prototype,"searchRequestSerializer",void 0),$o([i.state()],t.FtSearchBar.prototype,"searchFilters",void 0),$o([i.state()],t.FtSearchBar.prototype,"sizeCategory",void 0),$o([i.state()],t.FtSearchBar.prototype,"displayFacets",void 0),$o([i.state()],t.FtSearchBar.prototype,"mobileMenuOpen",void 0),$o([i.state()],t.FtSearchBar.prototype,"facets",void 0),$o([i.query(".ft-search-bar--container")],t.FtSearchBar.prototype,"container",void 0),$o([i.query(".ft-search-bar--filters-opener")],t.FtSearchBar.prototype,"filtersOpener",void 0),$o([i.query(".ft-search-bar--floating-panel")],t.FtSearchBar.prototype,"floatingContainer",void 0),$o([i.query("ft-snap-scroll.ft-search-bar--filters-container")],t.FtSearchBar.prototype,"scrollingFiltersContainer",void 0),$o([i.query(".ft-search-bar--input")],t.FtSearchBar.prototype,"input",void 0),$o([i.state()],t.FtSearchBar.prototype,"query",void 0),$o([i.state()],t.FtSearchBar.prototype,"suggestions",void 0),$o([i.state()],t.FtSearchBar.prototype,"suggestionsLoaded",void 0),$o([i.state()],t.FtSearchBar.prototype,"recentSearches",void 0),$o([i.state()],t.FtSearchBar.prototype,"scrollToFacet",void 0),$o([i.query(".ft-search-bar--suggestion:first-child")],t.FtSearchBar.prototype,"firstSuggestion",void 0),$o([i.query(".ft-search-bar--suggestion:focus-within")],t.FtSearchBar.prototype,"focusedSuggestion",void 0),$o([i.query(".ft-search-bar--suggestion:last-child")],t.FtSearchBar.prototype,"lastSuggestion",void 0),$o([i.state()],t.FtSearchBar.prototype,"api",void 0),t.FtSearchBar=$o([a.customElement("ft-search-bar")],t.FtSearchBar),t.DEFAULT_LABELS=_o,t.FtSearchBarCssVariables=go,t.LaunchSearchEvent=wo,t.SearchStateChangeEvent=zo,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.wcUtils,ftGlobals.litStyleMap,ftGlobals.litUnsafeHTML);
2340
+ `}openMobileFilters(t){this.isMobile&&(this.mobileMenuOpen=!0,this.displayFacets=!0,this.scrollToFacet=t)}async firstUpdated(t){var e,i;super.firstUpdated(t),this.initApi(),this.availableContentLocales=null!==(i=await(null===(e=this.api)||void 0===e?void 0:e.getAvailableSearchLocales().then((t=>t.contentLocales)).catch((()=>[]))))&&void 0!==i?i:[]}update(t){var i,o,s;if(t.has("labels")&&(this.labelResolver=new e.ParametrizedLabelResolver(Ti,this.labels)),t.has("sizeCategory")&&(this.mobileMenuOpen=!1,this.displayFacets=this.displayFacets&&!this.isMobile),super.update(t),(t.has("availableContentLocales")||t.has("contentLocale"))&&this.availableContentLocales.length>0){const e=t=>this.availableContentLocales.some((e=>e.lang===t));e(this.contentLocale)||(this.contentLocale=t.has("contentLocale")&&e(t.get("contentLocale"))?t.get("contentLocale"):null===(i=this.availableContentLocales[0])||void 0===i?void 0:i.lang)}if(t.has("baseUrl")&&this.baseUrl&&(this.baseUrl.endsWith("/")&&(this.baseUrl=this.baseUrl.replace(/\/$/,"")),this.recentSearches=JSON.parse(null!==(o=window.localStorage.getItem(this.recentSearchesStorageKey))&&void 0!==o?o:"[]")),t.has("selectedPreset")){const t=this.presets.find((t=>t.name===this.selectedPreset));t&&!this.compareRequests(this.request,t)&&this.setFiltersFromPreset(t)}["contentLocale","searchFilters"].some((e=>t.has(e)))&&(this.selectedPreset=null===(s=this.presets.find((t=>this.compareRequests(t,this.request))))||void 0===s?void 0:s.name),["baseUrl","apiIntegrationIdentifier"].some((e=>t.has(e)))&&this.setApi(),["uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateFacets(),["query","uiLocale","contentLocale","searchFilters","displayedFilters","api"].some((e=>t.has(e)))&&this.updateSuggestions(),["query","uiLocale","contentLocale","searchFilters"].some((e=>t.has(e)))&&this.dispatchEvent(new Ri(this.request))}contentAvailableCallback(t){var e,i,o;if(super.contentAvailableCallback(t),t.has("displayFacets")&&this.displayFacets&&(null===(e=this.floatingContainer)||void 0===e||e.focus()),null!=this.scrollToFacet&&this.facetsLoaded){null===(i=this.scrollingFiltersContainer)||void 0===i||i.scrollIndexIntoView(this.facets.findIndex((t=>t.key===this.scrollToFacet)));const t=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(`ft-accordion-item[data-facet-key="${this.scrollToFacet}"]`);t&&(t.active=!0),this.scrollToFacet=void 0}}initApi(){null==this.api&&(this.setApi(),setTimeout((()=>this.initApi()),100))}setApi(){this.api=window.fluidtopics?new window.fluidtopics.FluidTopicsApi(this.baseUrl,this.apiIntegrationIdentifier,!0):void 0}updateFacets(){this.facetsRequest.length>0?(this.facetsLoaded=!1,this.updateFacetsDebouncer.run((async()=>{var t,e;this.facets=null!==(e=await(null===(t=this.api)||void 0===t?void 0:t.search({...this.request,query:""}).then((t=>t.facets)).catch((()=>[]))))&&void 0!==e?e:[],this.facets.forEach((t=>this.knownFacetLabels[t.key]=t.label)),this.facetsLoaded=!0}))):this.facets=[]}updateSuggestions(){this.suggestionsLoaded=!1,this.suggestDebouncer.run((async()=>{this.suggestions=this.api&&this.query.length>2?await this.api.getSuggestions(this.suggestRequest).then((t=>t.suggestions)).catch((()=>[])):[],this.suggestionsLoaded=!0}))}onSearchBarKeyUp(t){const e=t.composedPath()[0];this.query=e.value,"Enter"===t.key&&this.launchSearch()}onSearchBarKeyDown(t){var e,i;switch(t.key){case"Escape":this.mobileMenuOpen=!1,null===(e=this.input)||void 0===e||e.blur();break;case"ArrowDown":t.stopPropagation(),t.preventDefault(),null===(i=this.firstSuggestion)||void 0===i||i.focus()}}onFloatingContainerKeyUp(t){var e;"Escape"===t.key&&(this.displayFacets=!1,null===(e=this.filtersOpener)||void 0===e||e.focus())}setQuery(t){this.input&&(this.input.value=t),this.query=t}onSuggestClick(t,e){t.ctrlKey||t.metaKey||this.onSuggestSelected(t,e)}onSuggestKeyUp(t,e){"Enter"!==t.key&&" "!==t.key||this.onSuggestSelected(t,e)}onSuggestSelected(t,e){t.preventDefault(),this.setQuery(e),this.launchSearch()}launchSearch(){if(this.query){let t=this.recentSearches.filter((t=>t.toLowerCase()!==this.query.toLowerCase())).filter(((t,e)=>e<20));this.recentSearches=[this.query,...t],this.saveRecentSearches()}this.dispatchEvent(new Ni(this.request)),this.mobileMenuOpen=!1,this.displayFacets=!1,this.focus()}saveRecentSearches(){window.localStorage.setItem(this.recentSearchesStorageKey,JSON.stringify(this.recentSearches))}connectedCallback(){super.connectedCallback(),document.addEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("focusin",this.closeFloatingContainer),document.addEventListener("click",this.closeFloatingContainer)}updateSize(t){this.sizeCategory=t.detail.category}getLocaleLabel(t){var e;return null!==(e=this.availableContentLocales.filter((e=>{var i;return(null!==(i=e.lang)&&void 0!==i?i:"").toLowerCase()===(null!=t?t:"").toLowerCase()})).map((t=>t.label)).pop())&&void 0!==e?e:t}setFilter(t,e){let i=this.searchFilters.filter((e=>e.key!==t));this.facets.forEach((i=>{i.key===t&&Xt(i.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=e.includes(t.value)))})),e.length&&i.push({key:t,negative:!1,values:e}),this.searchFilters=i,this.scrollToFacet=t}setFiltersFromPreset(t){null!=t&&(null!=t.contentLocale&&(this.contentLocale=t.contentLocale),this.searchFilters=t.filters)}clearFilters(){this.facets.forEach((t=>Xt(t.rootNodes,(t=>t.childNodes)).forEach((t=>t.selected=!1)))),this.searchFilters=[];const t=this.facets[0];this.scrollToFacet=null==t?void 0:t.key}removeRecentSearch(t,e){var i,o,s,n;t.preventDefault(),t.stopPropagation();const r=null!==(n=null!==(o=null===(i=this.focusedSuggestion)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:null===(s=this.focusedSuggestion)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.input;null==r||r.focus(),this.recentSearches=this.recentSearches.filter((t=>t.toLowerCase()!==e.toLowerCase())),this.saveRecentSearches()}onSuggestKeyDown(t){var e,i,o,s,n,r;switch(t.key){case"ArrowUp":null===(o=null!==(i=null===(e=this.focusedSuggestion)||void 0===e?void 0:e.previousElementSibling)&&void 0!==i?i:this.lastSuggestion)||void 0===o||o.focus(),t.preventDefault(),t.stopPropagation();break;case"ArrowDown":null===(r=null!==(n=null===(s=this.focusedSuggestion)||void 0===s?void 0:s.nextElementSibling)&&void 0!==n?n:this.firstSuggestion)||void 0===r||r.focus(),t.preventDefault(),t.stopPropagation()}}}Pi.elementDefinitions={"ft-accordion":ci,"ft-accordion-item":ui,"ft-button":Oe,"ft-chip":ki,"ft-filter":ni,"ft-filter-option":li,"ft-icon":ye,"ft-ripple":ie,"ft-select":Ii,"ft-select-option":Ci,"ft-size-watcher":p,"ft-snap-scroll":Ge,"ft-tooltip":ce,"ft-typography":Gt},Pi.styles=[Ht,Fi,Li,ji,Mi],Ai([o.property({type:Boolean})],Pi.prototype,"dense",void 0),Ai([o.property({type:String})],Pi.prototype,"baseUrl",void 0),Ai([o.property({type:String})],Pi.prototype,"apiIntegrationIdentifier",void 0),Ai([o.property({type:String})],Pi.prototype,"contentLocale",void 0),Ai([o.state()],Pi.prototype,"availableContentLocales",void 0),Ai([o.property({type:String})],Pi.prototype,"uiLocale",void 0),Ai([e.jsonProperty({})],Pi.prototype,"labels",void 0),Ai([e.jsonProperty([])],Pi.prototype,"displayedFilters",void 0),Ai([e.jsonProperty([])],Pi.prototype,"presets",void 0),Ai([o.property({type:String,reflect:!0})],Pi.prototype,"selectedPreset",void 0),Ai([o.property()],Pi.prototype,"searchRequestSerializer",void 0),Ai([o.state()],Pi.prototype,"searchFilters",void 0),Ai([o.state()],Pi.prototype,"sizeCategory",void 0),Ai([o.state()],Pi.prototype,"displayFacets",void 0),Ai([o.state()],Pi.prototype,"mobileMenuOpen",void 0),Ai([o.state()],Pi.prototype,"facets",void 0),Ai([o.query(".ft-search-bar--container")],Pi.prototype,"container",void 0),Ai([o.query(".ft-search-bar--filters-opener")],Pi.prototype,"filtersOpener",void 0),Ai([o.query(".ft-search-bar--floating-panel")],Pi.prototype,"floatingContainer",void 0),Ai([o.query("ft-snap-scroll.ft-search-bar--filters-container")],Pi.prototype,"scrollingFiltersContainer",void 0),Ai([o.query(".ft-search-bar--input")],Pi.prototype,"input",void 0),Ai([o.state()],Pi.prototype,"query",void 0),Ai([o.state()],Pi.prototype,"suggestions",void 0),Ai([o.state()],Pi.prototype,"suggestionsLoaded",void 0),Ai([o.state()],Pi.prototype,"recentSearches",void 0),Ai([o.state()],Pi.prototype,"scrollToFacet",void 0),Ai([o.query(".ft-search-bar--suggestion:first-child")],Pi.prototype,"firstSuggestion",void 0),Ai([o.query(".ft-search-bar--suggestion:focus-within")],Pi.prototype,"focusedSuggestion",void 0),Ai([o.query(".ft-search-bar--suggestion:last-child")],Pi.prototype,"lastSuggestion",void 0),Ai([o.state()],Pi.prototype,"api",void 0),e.customElement("ft-search-bar")(Pi),t.DEFAULT_LABELS=Ti,t.FtSearchBar=Pi,t.FtSearchBarCssVariables=Di,t.LaunchSearchEvent=Ni,t.SearchStateChangeEvent=Ri,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litRepeat,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);